@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/mock-server",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.66.0",
|
|
4
4
|
"description": "Reusable in-memory Genesis WebSocket protocol mock server for client automation/CI, without a JVM or database.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"bun": "./src/index.ts",
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./presets": {
|
|
15
|
+
"types": "./dist/presets/index.d.ts",
|
|
16
|
+
"bun": "./src/presets/index.ts",
|
|
17
|
+
"default": "./dist/presets/index.js"
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
20
|
"files": [
|
|
@@ -24,7 +29,8 @@
|
|
|
24
29
|
"typecheck": "tsc --noEmit",
|
|
25
30
|
"test": "node --experimental-strip-types --test \"test/**/*.test.ts\"",
|
|
26
31
|
"test:conformance": "node --experimental-strip-types --test \"test/conformance/**/*.test.ts\"",
|
|
27
|
-
"conformance:record": "node --experimental-strip-types test/conformance/record.ts"
|
|
32
|
+
"conformance:record": "node --experimental-strip-types test/conformance/record.ts",
|
|
33
|
+
"preset:generate": "node --experimental-strip-types scripts/platform-preset/generate.ts"
|
|
28
34
|
},
|
|
29
35
|
"dependencies": {
|
|
30
36
|
"ws": "^8.18.0"
|
|
@@ -9,7 +9,8 @@ import type { GenesisMessage, MockServerConfig, ResourceItem } from '../types.ts
|
|
|
9
9
|
// "not exist" client-side, before META_REQUEST or DATA_LOGON is ever tried.
|
|
10
10
|
// Auto-derive it from config.queries/requestReplies/eventHandlers (same
|
|
11
11
|
// philosophy as db/metadata.ts's field inference) so projects don't have to
|
|
12
|
-
// hand-maintain a redundant list; set config.resources explicitly to override
|
|
12
|
+
// hand-maintain a redundant list; set config.resources explicitly to override,
|
|
13
|
+
// or config.additionalResources to add to it.
|
|
13
14
|
function deriveResources(config: MockServerConfig): ResourceItem[] {
|
|
14
15
|
const resources: ResourceItem[] = [];
|
|
15
16
|
for (const name of Object.keys(config.queries ?? {})) {
|
|
@@ -33,6 +34,22 @@ function deriveResources(config: MockServerConfig): ResourceItem[] {
|
|
|
33
34
|
return resources;
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
const resourceKey = (resource: ResourceItem) =>
|
|
38
|
+
`${resource.RESOURCE_TYPE}:${resource.RESOURCE_NAME}`;
|
|
39
|
+
|
|
40
|
+
// The derived resources, then config.additionalResources not among them.
|
|
41
|
+
export function listResources(config: MockServerConfig): ResourceItem[] {
|
|
42
|
+
if (config.resources) return config.resources;
|
|
43
|
+
const resources = deriveResources(config);
|
|
44
|
+
const listed = new Set(resources.map(resourceKey));
|
|
45
|
+
for (const resource of config.additionalResources ?? []) {
|
|
46
|
+
if (listed.has(resourceKey(resource))) continue;
|
|
47
|
+
listed.add(resourceKey(resource));
|
|
48
|
+
resources.push(resource);
|
|
49
|
+
}
|
|
50
|
+
return resources;
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
export function handleResourcesRequest(
|
|
37
54
|
message: GenesisMessage,
|
|
38
55
|
connection: Connection,
|
|
@@ -40,6 +57,6 @@ export function handleResourcesRequest(
|
|
|
40
57
|
): void {
|
|
41
58
|
connection.reply(message, {
|
|
42
59
|
MESSAGE_TYPE: MESSAGE_TYPE.RESOURCES_REQUEST_ACK,
|
|
43
|
-
RESOURCES:
|
|
60
|
+
RESOURCES: listResources(config),
|
|
44
61
|
});
|
|
45
62
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Row } from '../types.ts';
|
|
2
|
+
|
|
3
|
+
// The rows of a GSF seed CSV (an app's or a PBC's data/*.csv): a header line,
|
|
4
|
+
// then one record per line; a value is bare or double-quoted ("" is a quote
|
|
5
|
+
// inside one). Values stay strings — a table's declared fields convert them
|
|
6
|
+
// when the rows are stored, as GSF's loader does. An empty cell is left out of
|
|
7
|
+
// its row (null), since SendTable sets only the non-empty cells
|
|
8
|
+
// (SendTableOperation.createRecord, genesis-db, GSF v8.15.29).
|
|
9
|
+
export function parseSeedCsv(text: string): Row[] {
|
|
10
|
+
const records: string[][] = [];
|
|
11
|
+
let record: string[] = [];
|
|
12
|
+
let field = '';
|
|
13
|
+
let quoted = false;
|
|
14
|
+
const endRecord = () => {
|
|
15
|
+
record.push(field);
|
|
16
|
+
if (record.some((value) => value !== '')) records.push(record);
|
|
17
|
+
record = [];
|
|
18
|
+
field = '';
|
|
19
|
+
};
|
|
20
|
+
for (let i = 0; i < text.length; i += 1) {
|
|
21
|
+
const char = text[i];
|
|
22
|
+
if (quoted) {
|
|
23
|
+
if (char === '"' && text[i + 1] === '"') {
|
|
24
|
+
field += '"';
|
|
25
|
+
i += 1;
|
|
26
|
+
} else if (char === '"') {
|
|
27
|
+
quoted = false;
|
|
28
|
+
} else {
|
|
29
|
+
field += char;
|
|
30
|
+
}
|
|
31
|
+
} else if (char === '"') {
|
|
32
|
+
quoted = true;
|
|
33
|
+
} else if (char === ',') {
|
|
34
|
+
record.push(field);
|
|
35
|
+
field = '';
|
|
36
|
+
} else if (char === '\n' || char === '\r') {
|
|
37
|
+
if (char === '\r' && text[i + 1] === '\n') i += 1;
|
|
38
|
+
endRecord();
|
|
39
|
+
} else {
|
|
40
|
+
field += char;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
endRecord();
|
|
44
|
+
const [header = [], ...rows] = records;
|
|
45
|
+
return rows.map((values) =>
|
|
46
|
+
Object.fromEntries(
|
|
47
|
+
header.flatMap((name, i) => (values[i] ? [[name.trim(), values[i]] as const] : [])),
|
|
48
|
+
),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { AuthUser, MockServerConfig, OnMessageHook, ResourceItem } from '../types.ts';
|
|
2
|
+
|
|
3
|
+
const NAMED = [
|
|
4
|
+
'tables',
|
|
5
|
+
'views',
|
|
6
|
+
'queries',
|
|
7
|
+
'requestReplies',
|
|
8
|
+
'eventHandlers',
|
|
9
|
+
'eventSchemas',
|
|
10
|
+
] as const;
|
|
11
|
+
|
|
12
|
+
function mergeUsers(a: AuthUser[] = [], b: AuthUser[] = []): AuthUser[] {
|
|
13
|
+
const users = new Map(a.map((user) => [user.username, user]));
|
|
14
|
+
for (const user of b) users.set(user.username, user);
|
|
15
|
+
return [...users.values()];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function mergeResources(a: ResourceItem[] = [], b: ResourceItem[] = []): ResourceItem[] {
|
|
19
|
+
const resources = new Map<string, ResourceItem>();
|
|
20
|
+
for (const resource of [...a, ...b]) {
|
|
21
|
+
resources.set(`${resource.RESOURCE_TYPE}:${resource.RESOURCE_NAME}`, resource);
|
|
22
|
+
}
|
|
23
|
+
return [...resources.values()];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Both hooks, in order: the second sees what the first returned, and a
|
|
27
|
+
// message the first handled (false) goes no further.
|
|
28
|
+
function chainHooks(first: OnMessageHook, second: OnMessageHook): OnMessageHook {
|
|
29
|
+
return (message, ctx) => {
|
|
30
|
+
const hooked = first(message, ctx);
|
|
31
|
+
if (hooked === false) return false;
|
|
32
|
+
return second(hooked ?? message, ctx) ?? hooked;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function mergeTwo(base: MockServerConfig, over: MockServerConfig): MockServerConfig {
|
|
37
|
+
const merged: MockServerConfig = { ...base };
|
|
38
|
+
for (const [key, value] of Object.entries(over)) {
|
|
39
|
+
if (value !== undefined) (merged as Record<string, unknown>)[key] = value;
|
|
40
|
+
}
|
|
41
|
+
for (const key of NAMED) {
|
|
42
|
+
if (base[key] && over[key]) merged[key] = { ...base[key], ...over[key] } as never;
|
|
43
|
+
}
|
|
44
|
+
if (base.auth && over.auth) {
|
|
45
|
+
merged.auth = {
|
|
46
|
+
...base.auth,
|
|
47
|
+
...over.auth,
|
|
48
|
+
users: mergeUsers(base.auth.users, over.auth.users),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (base.additionalResources && over.additionalResources) {
|
|
52
|
+
merged.additionalResources = mergeResources(base.additionalResources, over.additionalResources);
|
|
53
|
+
}
|
|
54
|
+
// The later config's routes are tried first.
|
|
55
|
+
if (base.httpRoutes && over.httpRoutes) {
|
|
56
|
+
merged.httpRoutes = [...over.httpRoutes, ...base.httpRoutes];
|
|
57
|
+
}
|
|
58
|
+
if (base.onMessage && over.onMessage) {
|
|
59
|
+
merged.onMessage = chainHooks(base.onMessage, over.onMessage);
|
|
60
|
+
}
|
|
61
|
+
return merged;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Merges mock-server configs into one, later configs over earlier ones:
|
|
66
|
+
* `createMockServer(mergeConfigs(platformPreset(), appConfig))`.
|
|
67
|
+
*
|
|
68
|
+
* - tables, views, queries, requestReplies, eventHandlers, eventSchemas: by
|
|
69
|
+
* name, a later entry replacing an earlier one whole.
|
|
70
|
+
* - auth.users: by username, a later user replacing an earlier one; the other
|
|
71
|
+
* auth settings, setting by setting.
|
|
72
|
+
* - additionalResources: both lists, without repeats.
|
|
73
|
+
* - httpRoutes: both, the later config's tried first. onMessage: both, in order.
|
|
74
|
+
* - Anything else (resources, fidelity, defaultEventHandler, productName, ...):
|
|
75
|
+
* the later config's, when it sets one.
|
|
76
|
+
*/
|
|
77
|
+
export function mergeConfigs(...configs: MockServerConfig[]): MockServerConfig {
|
|
78
|
+
return configs.reduce<MockServerConfig>((merged, config) => mergeTwo(merged, config), {});
|
|
79
|
+
}
|
|
@@ -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
|
+
]
|