mcp-creatio 0.3.10 → 0.4.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/Agent.md +4 -1
- package/README.md +117 -108
- package/dist/creatio/engines/admin-operation/admin-operation-engine.d.ts +13 -0
- package/dist/creatio/engines/admin-operation/admin-operation-engine.d.ts.map +1 -0
- package/dist/creatio/engines/admin-operation/admin-operation-engine.js +27 -0
- package/dist/creatio/engines/admin-operation/admin-operation-engine.js.map +1 -0
- package/dist/creatio/engines/configuration/configuration-engine.d.ts +10 -0
- package/dist/creatio/engines/configuration/configuration-engine.d.ts.map +1 -0
- package/dist/creatio/engines/configuration/configuration-engine.js +18 -0
- package/dist/creatio/engines/configuration/configuration-engine.js.map +1 -0
- package/dist/creatio/engines/engine-manager.d.ts +13 -1
- package/dist/creatio/engines/engine-manager.d.ts.map +1 -1
- package/dist/creatio/engines/engine-manager.js +17 -0
- package/dist/creatio/engines/engine-manager.js.map +1 -1
- package/dist/creatio/engines/engine-registry.d.ts +3 -0
- package/dist/creatio/engines/engine-registry.d.ts.map +1 -1
- package/dist/creatio/engines/engine-registry.js +3 -0
- package/dist/creatio/engines/engine-registry.js.map +1 -1
- package/dist/creatio/engines/feature/feature-engine.d.ts +10 -0
- package/dist/creatio/engines/feature/feature-engine.d.ts.map +1 -0
- package/dist/creatio/engines/feature/feature-engine.js +18 -0
- package/dist/creatio/engines/feature/feature-engine.js.map +1 -0
- package/dist/creatio/engines/index.d.ts +3 -0
- package/dist/creatio/engines/index.d.ts.map +1 -1
- package/dist/creatio/engines/index.js +3 -0
- package/dist/creatio/engines/index.js.map +1 -1
- package/dist/creatio/provider-context.d.ts +4 -1
- package/dist/creatio/provider-context.d.ts.map +1 -1
- package/dist/creatio/providers/admin-operation-provider.d.ts +27 -0
- package/dist/creatio/providers/admin-operation-provider.d.ts.map +1 -0
- package/dist/creatio/providers/admin-operation-provider.js +3 -0
- package/dist/creatio/providers/admin-operation-provider.js.map +1 -0
- package/dist/creatio/providers/configuration-provider.d.ts +19 -0
- package/dist/creatio/providers/configuration-provider.d.ts.map +1 -0
- package/dist/creatio/providers/configuration-provider.js +3 -0
- package/dist/creatio/providers/configuration-provider.js.map +1 -0
- package/dist/creatio/providers/feature-provider.d.ts +10 -0
- package/dist/creatio/providers/feature-provider.d.ts.map +1 -0
- package/dist/creatio/providers/feature-provider.js +3 -0
- package/dist/creatio/providers/feature-provider.js.map +1 -0
- package/dist/creatio/providers/index.d.ts +3 -0
- package/dist/creatio/providers/index.d.ts.map +1 -1
- package/dist/creatio/providers/index.js +3 -0
- package/dist/creatio/providers/index.js.map +1 -1
- package/dist/creatio/services/admin-operation-service-provider.d.ts +15 -0
- package/dist/creatio/services/admin-operation-service-provider.d.ts.map +1 -0
- package/dist/creatio/services/admin-operation-service-provider.js +69 -0
- package/dist/creatio/services/admin-operation-service-provider.js.map +1 -0
- package/dist/creatio/services/configuration-service-provider.d.ts +14 -0
- package/dist/creatio/services/configuration-service-provider.d.ts.map +1 -0
- package/dist/creatio/services/configuration-service-provider.js +90 -0
- package/dist/creatio/services/configuration-service-provider.js.map +1 -0
- package/dist/creatio/services/creatio-service-context.d.ts +4 -1
- package/dist/creatio/services/creatio-service-context.d.ts.map +1 -1
- package/dist/creatio/services/creatio-service-context.js +9 -0
- package/dist/creatio/services/creatio-service-context.js.map +1 -1
- package/dist/creatio/services/feature-service-provider.d.ts +10 -0
- package/dist/creatio/services/feature-service-provider.d.ts.map +1 -0
- package/dist/creatio/services/feature-service-provider.js +43 -0
- package/dist/creatio/services/feature-service-provider.js.map +1 -0
- package/dist/creatio/services/index.d.ts +3 -0
- package/dist/creatio/services/index.d.ts.map +1 -1
- package/dist/creatio/services/index.js +3 -0
- package/dist/creatio/services/index.js.map +1 -1
- package/dist/server/mcp/prompts-data.d.ts +58 -0
- package/dist/server/mcp/prompts-data.d.ts.map +1 -1
- package/dist/server/mcp/prompts-data.js +391 -1
- package/dist/server/mcp/prompts-data.js.map +1 -1
- package/dist/server/mcp/server.d.ts.map +1 -1
- package/dist/server/mcp/server.js +69 -0
- package/dist/server/mcp/server.js.map +1 -1
- package/dist/server/mcp/tools-data.d.ts +63 -0
- package/dist/server/mcp/tools-data.d.ts.map +1 -1
- package/dist/server/mcp/tools-data.js +110 -5
- package/dist/server/mcp/tools-data.js.map +1 -1
- package/package.json +8 -8
- package/src/creatio/engines/admin-operation/admin-operation-engine.ts +44 -0
- package/src/creatio/engines/configuration/configuration-engine.ts +26 -0
- package/src/creatio/engines/engine-manager.ts +56 -1
- package/src/creatio/engines/engine-registry.ts +3 -0
- package/src/creatio/engines/feature/feature-engine.ts +20 -0
- package/src/creatio/engines/index.ts +3 -0
- package/src/creatio/provider-context.ts +12 -1
- package/src/creatio/providers/admin-operation-provider.ts +34 -0
- package/src/creatio/providers/configuration-provider.ts +22 -0
- package/src/creatio/providers/feature-provider.ts +10 -0
- package/src/creatio/providers/index.ts +3 -0
- package/src/creatio/services/admin-operation-service-provider.ts +115 -0
- package/src/creatio/services/configuration-service-provider.ts +127 -0
- package/src/creatio/services/creatio-service-context.ts +18 -1
- package/src/creatio/services/feature-service-provider.ts +60 -0
- package/src/creatio/services/index.ts +3 -0
- package/src/server/mcp/prompts-data.ts +396 -0
- package/src/server/mcp/server.ts +111 -0
- package/src/server/mcp/tools-data.ts +160 -4
package/Agent.md
CHANGED
|
@@ -42,6 +42,9 @@ CreatioServiceContext
|
|
|
42
42
|
├─ ODataCrudProvider → implements CrudProvider using http + metadata
|
|
43
43
|
├─ ProcessServiceProvider → POSTs to ProcessEngineService
|
|
44
44
|
├─ SysSettingsServiceProvider → DataService JSON endpoint
|
|
45
|
+
├─ FeatureServiceProvider → /rest/FeatureService/ClearFeaturesCacheForAllUsers
|
|
46
|
+
├─ AdminOperationServiceProvider → /rest/RightsService/{Upsert,Delete}AdminOperation[,Grantee]
|
|
47
|
+
├─ ConfigurationServiceProvider → generic /rest/<service>/<method> caller
|
|
45
48
|
└─ UserInfoProvider → UserInfoService for current user data
|
|
46
49
|
```
|
|
47
50
|
|
|
@@ -71,7 +74,7 @@ Usage pattern:
|
|
|
71
74
|
5. Keep tool names stable: lowercase kebab-case (e.g. `execute-process`).
|
|
72
75
|
6. Keep authentication precedence: Authorization Code > Client Credentials > Legacy.
|
|
73
76
|
7. Do not leak secrets or access tokens in tool responses.
|
|
74
|
-
8. `READONLY_MODE=true` must guarantee no mutation tools (`create`, `update`, `delete`, `execute-process`) are registered.
|
|
77
|
+
8. `READONLY_MODE=true` must guarantee no mutation tools (`create`, `update`, `delete`, `execute-process`, `set-sys-settings-value`, `create-sys-setting`, `update-sys-setting-definition`, `refresh-feature-cache`, `upsert-admin-operation`, `delete-admin-operation`, `set-admin-operation-grantee`, `delete-admin-operation-grantee`, `call-configuration-service`) are registered.
|
|
75
78
|
|
|
76
79
|
## 5. Adding a New Tool (Checklist)
|
|
77
80
|
|
package/README.md
CHANGED
|
@@ -12,23 +12,26 @@ Also discoverable as:
|
|
|
12
12
|
- Model Context Protocol for Creatio
|
|
13
13
|
|
|
14
14
|
## Overview
|
|
15
|
-
|
|
16
|
-
- Exposes Creatio data as MCP tools for MCP-compatible clients (Claude Desktop, ChatGPT Connectors, GitHub Copilot)
|
|
17
|
-
- Supports reading, creating, updating, deleting records and inspecting schema
|
|
18
|
-
- Execute Creatio business processes with parameters
|
|
19
|
-
- Uses Creatio OData v4 API under the hood
|
|
20
|
-
|
|
21
|
-
## Features
|
|
22
|
-
|
|
23
|
-
- **CRUD operations**:
|
|
24
|
-
- **Schema discovery**:
|
|
25
|
-
- **Business processes**:
|
|
26
|
-
- **System settings**:
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
|
|
15
|
+
|
|
16
|
+
- Exposes Creatio data as MCP tools for MCP-compatible clients (Claude Desktop, ChatGPT Connectors, GitHub Copilot)
|
|
17
|
+
- Supports reading, creating, updating, deleting records and inspecting schema
|
|
18
|
+
- Execute Creatio business processes with parameters
|
|
19
|
+
- Uses Creatio OData v4 API under the hood
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
- **CRUD operations**: read, create, update, delete Creatio records
|
|
24
|
+
- **Schema discovery**: list entity sets and inspect entity schemas
|
|
25
|
+
- **Business processes**: run Creatio workflows with parameters
|
|
26
|
+
- **System settings**: read, write, and manage system setting metadata
|
|
27
|
+
- **Feature toggles**: manage `Feature` / `AdminUnitFeatureState` and refresh the feature cache. ⚠️ Only DB-backed features are reachable — features defined exclusively in `web.config` or other non-DB providers are invisible to MCP.
|
|
28
|
+
- **System operations**: manage `SysAdminOperation` and per-user/role grants (Creatio blocks these tables for OData modifications, so dedicated tools are provided)
|
|
29
|
+
- **Custom services**: invoke any configuration-package REST service (`/0/rest/<service>/<method>`) when no dedicated tool fits
|
|
30
|
+
- **AI assistant compatibility**: Claude Desktop, ChatGPT Connectors, GitHub Copilot
|
|
31
|
+
- **Three authentication modes**: Legacy login/password, OAuth2 client credentials, OAuth2 authorization code
|
|
32
|
+
- **Built-in OAuth server**: Automatic MCP client authentication
|
|
33
|
+
- **Docker ready**: Multi-arch images available
|
|
34
|
+
|
|
32
35
|
## Run Modes
|
|
33
36
|
|
|
34
37
|
This project supports two runtime modes:
|
|
@@ -45,7 +48,7 @@ Use this mode for MCP clients that launch a command directly (VS Code MCP, Claud
|
|
|
45
48
|
Run directly from npm:
|
|
46
49
|
|
|
47
50
|
```bash
|
|
48
|
-
npx -y mcp-creatio \
|
|
51
|
+
npx -y mcp-creatio@latest \
|
|
49
52
|
--base-url https://your-creatio.com \
|
|
50
53
|
--login your_login \
|
|
51
54
|
--password your_password
|
|
@@ -61,7 +64,7 @@ VS Code MCP config (command-based):
|
|
|
61
64
|
"command": "npx",
|
|
62
65
|
"args": [
|
|
63
66
|
"-y",
|
|
64
|
-
"mcp-creatio",
|
|
67
|
+
"mcp-creatio@latest",
|
|
65
68
|
"--base-url",
|
|
66
69
|
"https://your-creatio.com",
|
|
67
70
|
"--login",
|
|
@@ -103,101 +106,107 @@ Then connect using URL:
|
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
```
|
|
106
|
-
|
|
107
|
-
## Configuration
|
|
108
|
-
|
|
109
|
-
| Variable | Description |
|
|
110
|
-
| ---------------------------- | -------------------------------------------------------------------- |
|
|
111
|
-
| `CREATIO_BASE_URL` | **Required**. Creatio instance URL (e.g. `https://your-creatio.com`) |
|
|
112
|
-
| `CREATIO_LOGIN` | Username for legacy auth |
|
|
113
|
-
| `CREATIO_PASSWORD` | Password for legacy auth |
|
|
114
|
-
| `CREATIO_CLIENT_ID` | OAuth2 client credentials ID |
|
|
115
|
-
| `CREATIO_CLIENT_SECRET` | OAuth2 client credentials secret |
|
|
116
|
-
| `CREATIO_ID_BASE_URL` | Identity Service URL (if separate from main Creatio instance) |
|
|
117
|
-
| `CREATIO_CODE_CLIENT_ID` | OAuth2 authorization code client ID |
|
|
109
|
+
|
|
110
|
+
## Configuration
|
|
111
|
+
|
|
112
|
+
| Variable | Description |
|
|
113
|
+
| ---------------------------- | -------------------------------------------------------------------- |
|
|
114
|
+
| `CREATIO_BASE_URL` | **Required**. Creatio instance URL (e.g. `https://your-creatio.com`) |
|
|
115
|
+
| `CREATIO_LOGIN` | Username for legacy auth |
|
|
116
|
+
| `CREATIO_PASSWORD` | Password for legacy auth |
|
|
117
|
+
| `CREATIO_CLIENT_ID` | OAuth2 client credentials ID |
|
|
118
|
+
| `CREATIO_CLIENT_SECRET` | OAuth2 client credentials secret |
|
|
119
|
+
| `CREATIO_ID_BASE_URL` | Identity Service URL (if separate from main Creatio instance) |
|
|
120
|
+
| `CREATIO_CODE_CLIENT_ID` | OAuth2 authorization code client ID |
|
|
118
121
|
| `CREATIO_CODE_CLIENT_SECRET` | OAuth2 authorization code client secret |
|
|
119
122
|
| `CREATIO_CODE_REDIRECT_URI` | OAuth2 redirect URI (e.g. `http://localhost:3000/oauth/callback`) |
|
|
120
123
|
| `CREATIO_CODE_SCOPE` | OAuth2 scope (e.g. `offline_access ApplicationAccess_yourappguid`) |
|
|
121
124
|
| `READONLY_MODE` | Set `true` to disable create/update/delete operations |
|
|
122
125
|
| `MCP_CREATIO_LOG_LEVEL` | Log verbosity: `silent` (default), `error`, `warn`, `info` |
|
|
123
|
-
|
|
124
|
-
## Authentication Modes
|
|
125
|
-
|
|
126
|
-
Choose one of three ways to authenticate with Creatio:
|
|
127
|
-
|
|
128
|
-
### 1. Legacy (Username/Password)
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
CREATIO_LOGIN=YourLogin
|
|
132
|
-
CREATIO_PASSWORD=YourPassword
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### 2. OAuth2 Client Credentials
|
|
136
|
-
|
|
137
|
-
For server-to-server authentication. [Setup guide →](https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/integrations-and-api/authentication/oauth-2-0-authorization/identity-service-overview)
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
CREATIO_CLIENT_ID=your_client_id
|
|
141
|
-
CREATIO_CLIENT_SECRET=your_client_secret
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### 3. OAuth2 Authorization Code
|
|
145
|
-
|
|
146
|
-
For user-delegated access with web authorization. [Setup guide →](https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/integrations-and-api/authentication/oauth-2-0-authorization/authorization-code-grant)
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
CREATIO_CODE_CLIENT_ID=your_client_id
|
|
150
|
-
CREATIO_CODE_CLIENT_SECRET=your_client_secret
|
|
151
|
-
CREATIO_CODE_REDIRECT_URI=http://localhost:3000/oauth/callback
|
|
152
|
-
CREATIO_CODE_SCOPE="offline_access ApplicationAccess_yourappguid"
|
|
153
|
-
```
|
|
154
|
-
|
|
126
|
+
|
|
127
|
+
## Authentication Modes
|
|
128
|
+
|
|
129
|
+
Choose one of three ways to authenticate with Creatio:
|
|
130
|
+
|
|
131
|
+
### 1. Legacy (Username/Password)
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
CREATIO_LOGIN=YourLogin
|
|
135
|
+
CREATIO_PASSWORD=YourPassword
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### 2. OAuth2 Client Credentials
|
|
139
|
+
|
|
140
|
+
For server-to-server authentication. [Setup guide →](https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/integrations-and-api/authentication/oauth-2-0-authorization/identity-service-overview)
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
CREATIO_CLIENT_ID=your_client_id
|
|
144
|
+
CREATIO_CLIENT_SECRET=your_client_secret
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 3. OAuth2 Authorization Code
|
|
148
|
+
|
|
149
|
+
For user-delegated access with web authorization. [Setup guide →](https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/integrations-and-api/authentication/oauth-2-0-authorization/authorization-code-grant)
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
CREATIO_CODE_CLIENT_ID=your_client_id
|
|
153
|
+
CREATIO_CODE_CLIENT_SECRET=your_client_secret
|
|
154
|
+
CREATIO_CODE_REDIRECT_URI=http://localhost:3000/oauth/callback
|
|
155
|
+
CREATIO_CODE_SCOPE="offline_access ApplicationAccess_yourappguid"
|
|
156
|
+
```
|
|
157
|
+
|
|
155
158
|
**Note**: Currently uses in-memory storage for OAuth tokens. Tokens will be lost on server restart.
|
|
156
159
|
|
|
157
160
|
**Important**: OAuth2 Authorization Code requires **Server Mode (`http`)**.
|
|
158
|
-
|
|
159
|
-
**Priority**: Authorization Code > Client Credentials > Legacy
|
|
160
|
-
|
|
161
|
+
|
|
162
|
+
**Priority**: Authorization Code > Client Credentials > Legacy
|
|
163
|
+
|
|
161
164
|
## MCP Client Authentication (HTTP Mode)
|
|
162
|
-
|
|
163
|
-
The server includes OAuth 2.1 Authorization Server for MCP clients (Claude Desktop, etc.). No additional setup required - clients authenticate automatically through standard OAuth flow.
|
|
164
|
-
|
|
165
|
-
## Examples
|
|
166
|
-
|
|
167
|
-
### Node.js (Legacy Auth)
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
export CREATIO_BASE_URL="https://your-creatio.com"
|
|
171
|
-
export CREATIO_LOGIN="YourLogin"
|
|
172
|
-
export CREATIO_PASSWORD="YourPassword"
|
|
173
|
-
npm start
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
### Docker (Legacy Auth)
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
docker run --rm -p 3000:3000 \
|
|
180
|
-
-e CREATIO_BASE_URL="https://your-creatio.com" \
|
|
181
|
-
-e CREATIO_LOGIN="YourLogin" \
|
|
182
|
-
-e CREATIO_PASSWORD="YourPassword" \
|
|
183
|
-
crackish/mcp-creatio
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
## Available Tools
|
|
187
|
-
|
|
188
|
-
| Tool
|
|
189
|
-
|
|
|
190
|
-
| `get-current-user-info`
|
|
191
|
-
| `list-entities`
|
|
192
|
-
| `describe-entity`
|
|
193
|
-
| `read`
|
|
194
|
-
| `create`
|
|
195
|
-
| `update`
|
|
196
|
-
| `delete`
|
|
197
|
-
| `execute-process`
|
|
198
|
-
| `query-sys-settings`
|
|
199
|
-
| `set-sys-settings-value`
|
|
200
|
-
| `create-sys-setting`
|
|
201
|
-
| `update-sys-setting-definition`
|
|
202
|
-
|
|
203
|
-
|
|
165
|
+
|
|
166
|
+
The server includes OAuth 2.1 Authorization Server for MCP clients (Claude Desktop, etc.). No additional setup required - clients authenticate automatically through standard OAuth flow.
|
|
167
|
+
|
|
168
|
+
## Examples
|
|
169
|
+
|
|
170
|
+
### Node.js (Legacy Auth)
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
export CREATIO_BASE_URL="https://your-creatio.com"
|
|
174
|
+
export CREATIO_LOGIN="YourLogin"
|
|
175
|
+
export CREATIO_PASSWORD="YourPassword"
|
|
176
|
+
npm start
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Docker (Legacy Auth)
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
docker run --rm -p 3000:3000 \
|
|
183
|
+
-e CREATIO_BASE_URL="https://your-creatio.com" \
|
|
184
|
+
-e CREATIO_LOGIN="YourLogin" \
|
|
185
|
+
-e CREATIO_PASSWORD="YourPassword" \
|
|
186
|
+
crackish/mcp-creatio
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Available Tools
|
|
190
|
+
|
|
191
|
+
| Tool | Description |
|
|
192
|
+
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
193
|
+
| `get-current-user-info` | Fetch the Creatio contact details for the authenticated MCP user |
|
|
194
|
+
| `list-entities` | List all available entity sets |
|
|
195
|
+
| `describe-entity` | Get schema for an entity (fields, types, keys) |
|
|
196
|
+
| `read` | Query records with optional filters, select, expand, ordering |
|
|
197
|
+
| `create` | Create a new record |
|
|
198
|
+
| `update` | Update an existing record |
|
|
199
|
+
| `delete` | Delete a record |
|
|
200
|
+
| `execute-process` | Run a Creatio business process |
|
|
201
|
+
| `query-sys-settings` | Read current values and metadata for one or more system settings |
|
|
202
|
+
| `set-sys-settings-value` | Update one or more system setting values |
|
|
203
|
+
| `create-sys-setting` | Create a new system setting (with optional initial value) |
|
|
204
|
+
| `update-sys-setting-definition` | Modify system setting metadata (name, value type, cache flags, lookup reference) |
|
|
205
|
+
| `refresh-feature-cache` | Invalidate the in-memory feature-toggle cache. Call after editing `Feature` / `AdminUnitFeatureState` rows |
|
|
206
|
+
| `upsert-admin-operation` | Create or update a `SysAdminOperation` (system operation / permission). Required because OData modifications are blocked for this entity |
|
|
207
|
+
| `delete-admin-operation` | Delete one or more `SysAdminOperation` rows (related grantee rows are cleaned up automatically) |
|
|
208
|
+
| `set-admin-operation-grantee` | Grant or revoke a system operation for users/roles. Repeated calls update the existing row instead of duplicating |
|
|
209
|
+
| `delete-admin-operation-grantee` | Remove specific grant rows by Id. Prefer `set-admin-operation-grantee` to flip allow ↔ deny |
|
|
210
|
+
| `call-configuration-service` | Escape hatch: invoke any configuration-package REST service method by name. Use only when no dedicated tool covers the operation |
|
|
211
|
+
|
|
212
|
+
> **Note**: Previously documented `search`/`fetch` helper tools (for a specific connector workflow) have been removed as they are no longer required.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdminOperationProvider, AdminOperationServiceResult, SetAdminOperationGranteeRequest, UpsertAdminOperationRequest, UpsertAdminOperationResult } from '../../providers';
|
|
2
|
+
import { CreatioEngine } from '../engine';
|
|
3
|
+
export declare class AdminOperationEngine implements CreatioEngine {
|
|
4
|
+
private readonly _provider;
|
|
5
|
+
readonly name = "admin-operation";
|
|
6
|
+
constructor(provider: AdminOperationProvider);
|
|
7
|
+
get kind(): string;
|
|
8
|
+
upsertAdminOperation(request: UpsertAdminOperationRequest): Promise<UpsertAdminOperationResult>;
|
|
9
|
+
deleteAdminOperation(recordIds: string[]): Promise<AdminOperationServiceResult>;
|
|
10
|
+
setAdminOperationGrantee(request: SetAdminOperationGranteeRequest): Promise<AdminOperationServiceResult>;
|
|
11
|
+
deleteAdminOperationGrantee(recordIds: string[]): Promise<AdminOperationServiceResult>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=admin-operation-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-operation-engine.d.ts","sourceRoot":"","sources":["../../../../src/creatio/engines/admin-operation/admin-operation-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,sBAAsB,EACtB,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAC3B,0BAA0B,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,qBAAa,oBAAqB,YAAW,aAAa;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IAEnD,SAAgB,IAAI,qBAAqB;gBAE7B,QAAQ,EAAE,sBAAsB;IAI5C,IAAW,IAAI,IAAI,MAAM,CAExB;IAEM,oBAAoB,CAC1B,OAAO,EAAE,2BAA2B,GAClC,OAAO,CAAC,0BAA0B,CAAC;IAI/B,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAI/E,wBAAwB,CAC9B,OAAO,EAAE,+BAA+B,GACtC,OAAO,CAAC,2BAA2B,CAAC;IAIhC,2BAA2B,CACjC,SAAS,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,2BAA2B,CAAC;CAGvC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminOperationEngine = void 0;
|
|
4
|
+
class AdminOperationEngine {
|
|
5
|
+
_provider;
|
|
6
|
+
name = 'admin-operation';
|
|
7
|
+
constructor(provider) {
|
|
8
|
+
this._provider = provider;
|
|
9
|
+
}
|
|
10
|
+
get kind() {
|
|
11
|
+
return this._provider.kind;
|
|
12
|
+
}
|
|
13
|
+
upsertAdminOperation(request) {
|
|
14
|
+
return this._provider.upsertAdminOperation(request);
|
|
15
|
+
}
|
|
16
|
+
deleteAdminOperation(recordIds) {
|
|
17
|
+
return this._provider.deleteAdminOperation(recordIds);
|
|
18
|
+
}
|
|
19
|
+
setAdminOperationGrantee(request) {
|
|
20
|
+
return this._provider.setAdminOperationGrantee(request);
|
|
21
|
+
}
|
|
22
|
+
deleteAdminOperationGrantee(recordIds) {
|
|
23
|
+
return this._provider.deleteAdminOperationGrantee(recordIds);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.AdminOperationEngine = AdminOperationEngine;
|
|
27
|
+
//# sourceMappingURL=admin-operation-engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-operation-engine.js","sourceRoot":"","sources":["../../../../src/creatio/engines/admin-operation/admin-operation-engine.ts"],"names":[],"mappings":";;;AASA,MAAa,oBAAoB;IACf,SAAS,CAAyB;IAEnC,IAAI,GAAG,iBAAiB,CAAC;IAEzC,YAAY,QAAgC;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAW,IAAI;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;IAC5B,CAAC;IAEM,oBAAoB,CAC1B,OAAoC;QAEpC,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAEM,oBAAoB,CAAC,SAAmB;QAC9C,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;IAEM,wBAAwB,CAC9B,OAAwC;QAExC,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;IAEM,2BAA2B,CACjC,SAAmB;QAEnB,OAAO,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC;CACD;AAlCD,oDAkCC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CallConfigurationServiceRequest, CallConfigurationServiceResult, ConfigurationProvider } from '../../providers';
|
|
2
|
+
import { CreatioEngine } from '../engine';
|
|
3
|
+
export declare class ConfigurationEngine implements CreatioEngine {
|
|
4
|
+
private readonly _provider;
|
|
5
|
+
readonly name = "configuration";
|
|
6
|
+
constructor(provider: ConfigurationProvider);
|
|
7
|
+
get kind(): string;
|
|
8
|
+
call(request: CallConfigurationServiceRequest): Promise<CallConfigurationServiceResult>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=configuration-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration-engine.d.ts","sourceRoot":"","sources":["../../../../src/creatio/engines/configuration/configuration-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,+BAA+B,EAC/B,8BAA8B,EAC9B,qBAAqB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,qBAAa,mBAAoB,YAAW,aAAa;IACxD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAElD,SAAgB,IAAI,mBAAmB;gBAE3B,QAAQ,EAAE,qBAAqB;IAI3C,IAAW,IAAI,IAAI,MAAM,CAExB;IAEM,IAAI,CACV,OAAO,EAAE,+BAA+B,GACtC,OAAO,CAAC,8BAA8B,CAAC;CAG1C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationEngine = void 0;
|
|
4
|
+
class ConfigurationEngine {
|
|
5
|
+
_provider;
|
|
6
|
+
name = 'configuration';
|
|
7
|
+
constructor(provider) {
|
|
8
|
+
this._provider = provider;
|
|
9
|
+
}
|
|
10
|
+
get kind() {
|
|
11
|
+
return this._provider.kind;
|
|
12
|
+
}
|
|
13
|
+
call(request) {
|
|
14
|
+
return this._provider.call(request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ConfigurationEngine = ConfigurationEngine;
|
|
18
|
+
//# sourceMappingURL=configuration-engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration-engine.js","sourceRoot":"","sources":["../../../../src/creatio/engines/configuration/configuration-engine.ts"],"names":[],"mappings":";;;AAOA,MAAa,mBAAmB;IACd,SAAS,CAAwB;IAElC,IAAI,GAAG,eAAe,CAAC;IAEvC,YAAY,QAA+B;QAC1C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAW,IAAI;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;IAC5B,CAAC;IAEM,IAAI,CACV,OAAwC;QAExC,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACD;AAlBD,kDAkBC"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { CreatioProviderContext } from '../provider-context';
|
|
2
|
-
import { CrudProvider, ProcessProvider, SysSettingsProvider, UserProvider } from '../providers';
|
|
2
|
+
import { AdminOperationProvider, ConfigurationProvider, CrudProvider, FeatureProvider, ProcessProvider, SysSettingsProvider, UserProvider } from '../providers';
|
|
3
|
+
import { AdminOperationEngine } from './admin-operation/admin-operation-engine';
|
|
4
|
+
import { ConfigurationEngine } from './configuration/configuration-engine';
|
|
3
5
|
import { CrudEngine } from './crud/crud-engine';
|
|
4
6
|
import { EngineRegistry } from './engine-registry';
|
|
7
|
+
import { FeatureEngine } from './feature/feature-engine';
|
|
5
8
|
import { ProcessEngine } from './process/process-engine';
|
|
6
9
|
import { SysSettingsEngine } from './sys-settings/sys-settings-engine';
|
|
7
10
|
import { UserEngine } from './user/user-engine';
|
|
8
11
|
export interface EngineManagerOptions {
|
|
12
|
+
adminOperationProvider?: AdminOperationProvider;
|
|
13
|
+
configurationProvider?: ConfigurationProvider;
|
|
9
14
|
crudProvider?: CrudProvider;
|
|
15
|
+
featureProvider?: FeatureProvider;
|
|
10
16
|
processProvider?: ProcessProvider;
|
|
11
17
|
sysSettingsProvider?: SysSettingsProvider;
|
|
12
18
|
userProvider?: UserProvider;
|
|
19
|
+
enableAdminOperation?: boolean;
|
|
20
|
+
enableConfiguration?: boolean;
|
|
13
21
|
enableCrud?: boolean;
|
|
22
|
+
enableFeature?: boolean;
|
|
14
23
|
enableProcess?: boolean;
|
|
15
24
|
enableSysSettings?: boolean;
|
|
16
25
|
enableUser?: boolean;
|
|
@@ -22,7 +31,10 @@ export declare class CreatioEngineManager {
|
|
|
22
31
|
private readonly _engines;
|
|
23
32
|
get authProvider(): import("..").ICreatioAuthProvider;
|
|
24
33
|
get registry(): EngineRegistry;
|
|
34
|
+
get adminOperation(): AdminOperationEngine;
|
|
35
|
+
get configuration(): ConfigurationEngine;
|
|
25
36
|
get crud(): CrudEngine;
|
|
37
|
+
get feature(): FeatureEngine;
|
|
26
38
|
get process(): ProcessEngine;
|
|
27
39
|
get sysSettings(): SysSettingsEngine;
|
|
28
40
|
get user(): UserEngine;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-manager.d.ts","sourceRoot":"","sources":["../../../src/creatio/engines/engine-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"engine-manager.d.ts","sourceRoot":"","sources":["../../../src/creatio/engines/engine-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACN,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAc,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACpC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmC;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAE7D,IAAW,YAAY,sCAEtB;IAED,IAAW,QAAQ,IAAI,cAAc,CAEpC;IAED,IAAW,cAAc,IAAI,oBAAoB,CAEhD;IAED,IAAW,aAAa,IAAI,mBAAmB,CAE9C;IAED,IAAW,IAAI,IAAI,UAAU,CAE5B;IAED,IAAW,OAAO,IAAI,aAAa,CAElC;IAED,IAAW,OAAO,IAAI,aAAa,CAElC;IAED,IAAW,WAAW,IAAI,iBAAiB,CAE1C;IAED,IAAW,IAAI,IAAI,UAAU,CAE5B;gBAEW,OAAO,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,oBAAoB;IAM3E,OAAO,CAAC,WAAW;IA0DnB,OAAO,CAAC,eAAe;CAYvB"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreatioEngineManager = void 0;
|
|
4
|
+
const admin_operation_engine_1 = require("./admin-operation/admin-operation-engine");
|
|
5
|
+
const configuration_engine_1 = require("./configuration/configuration-engine");
|
|
4
6
|
const crud_engine_1 = require("./crud/crud-engine");
|
|
5
7
|
const engine_registry_1 = require("./engine-registry");
|
|
8
|
+
const feature_engine_1 = require("./feature/feature-engine");
|
|
6
9
|
const process_engine_1 = require("./process/process-engine");
|
|
7
10
|
const sys_settings_engine_1 = require("./sys-settings/sys-settings-engine");
|
|
8
11
|
const user_engine_1 = require("./user/user-engine");
|
|
@@ -17,9 +20,18 @@ class CreatioEngineManager {
|
|
|
17
20
|
get registry() {
|
|
18
21
|
return this._registry;
|
|
19
22
|
}
|
|
23
|
+
get adminOperation() {
|
|
24
|
+
return this._registry.require(engine_registry_1.EngineType.AdminOperation);
|
|
25
|
+
}
|
|
26
|
+
get configuration() {
|
|
27
|
+
return this._registry.require(engine_registry_1.EngineType.Configuration);
|
|
28
|
+
}
|
|
20
29
|
get crud() {
|
|
21
30
|
return this._registry.require(engine_registry_1.EngineType.Crud);
|
|
22
31
|
}
|
|
32
|
+
get feature() {
|
|
33
|
+
return this._registry.require(engine_registry_1.EngineType.Feature);
|
|
34
|
+
}
|
|
23
35
|
get process() {
|
|
24
36
|
return this._registry.require(engine_registry_1.EngineType.Process);
|
|
25
37
|
}
|
|
@@ -35,7 +47,12 @@ class CreatioEngineManager {
|
|
|
35
47
|
this._initialize();
|
|
36
48
|
}
|
|
37
49
|
_initialize() {
|
|
50
|
+
this._registerEngine(engine_registry_1.EngineType.AdminOperation, () => new admin_operation_engine_1.AdminOperationEngine(this._options?.adminOperationProvider ??
|
|
51
|
+
this._context.adminOperation), this._options?.enableAdminOperation ?? true);
|
|
52
|
+
this._registerEngine(engine_registry_1.EngineType.Configuration, () => new configuration_engine_1.ConfigurationEngine(this._options?.configurationProvider ??
|
|
53
|
+
this._context.configuration), this._options?.enableConfiguration ?? true);
|
|
38
54
|
this._registerEngine(engine_registry_1.EngineType.Crud, () => new crud_engine_1.CrudEngine(this._options?.crudProvider ?? this._context.crud), this._options?.enableCrud ?? true);
|
|
55
|
+
this._registerEngine(engine_registry_1.EngineType.Feature, () => new feature_engine_1.FeatureEngine(this._options?.featureProvider ?? this._context.feature), this._options?.enableFeature ?? true);
|
|
39
56
|
this._registerEngine(engine_registry_1.EngineType.Process, () => new process_engine_1.ProcessEngine(this._options?.processProvider ?? this._context.process), this._options?.enableProcess ?? true);
|
|
40
57
|
this._registerEngine(engine_registry_1.EngineType.SysSettings, () => new sys_settings_engine_1.SysSettingsEngine(this._options?.sysSettingsProvider ??
|
|
41
58
|
this._context.sysSettings), this._options?.enableSysSettings ?? true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-manager.js","sourceRoot":"","sources":["../../../src/creatio/engines/engine-manager.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"engine-manager.js","sourceRoot":"","sources":["../../../src/creatio/engines/engine-manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-registry.d.ts","sourceRoot":"","sources":["../../../src/creatio/engines/engine-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,oBAAY,UAAU;IACrB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,IAAI,SAAS;CACb;AAED,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAEtD,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;IAQ9C,GAAG,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAIzE,OAAO,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;IAQjE,OAAO,IAAI,gBAAgB,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAG3D"}
|
|
1
|
+
{"version":3,"file":"engine-registry.d.ts","sourceRoot":"","sources":["../../../src/creatio/engines/engine-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,oBAAY,UAAU;IACrB,cAAc,oBAAoB;IAClC,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,IAAI,SAAS;CACb;AAED,qBAAa,cAAc;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;IAEtD,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;IAQ9C,GAAG,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAIzE,OAAO,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;IAQjE,OAAO,IAAI,gBAAgB,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAG3D"}
|
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EngineRegistry = exports.EngineType = void 0;
|
|
4
4
|
var EngineType;
|
|
5
5
|
(function (EngineType) {
|
|
6
|
+
EngineType["AdminOperation"] = "admin-operation";
|
|
7
|
+
EngineType["Configuration"] = "configuration";
|
|
6
8
|
EngineType["Crud"] = "crud";
|
|
9
|
+
EngineType["Feature"] = "feature";
|
|
7
10
|
EngineType["Process"] = "process";
|
|
8
11
|
EngineType["SysSettings"] = "sys-settings";
|
|
9
12
|
EngineType["User"] = "user";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-registry.js","sourceRoot":"","sources":["../../../src/creatio/engines/engine-registry.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"engine-registry.js","sourceRoot":"","sources":["../../../src/creatio/engines/engine-registry.ts"],"names":[],"mappings":";;;AAEA,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,gDAAkC,CAAA;IAClC,6CAA+B,CAAA;IAC/B,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,0CAA4B,CAAA;IAC5B,2BAAa,CAAA;AACd,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,MAAa,cAAc;IACT,QAAQ,GAAG,IAAI,GAAG,EAAyB,CAAC;IAEtD,QAAQ,CAAC,MAAqB;QACpC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,6BAA6B,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACvC,OAAO,MAAM,CAAC;IACf,CAAC;IAEM,GAAG,CAA0C,IAAY;QAC/D,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAkB,CAAC;IACjD,CAAC;IAEM,OAAO,CAA0C,IAAY;QACnE,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAI,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IAEM,OAAO;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAChC,CAAC;CACD;AA1BD,wCA0BC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClearFeatureCacheResult, FeatureProvider } from '../../providers';
|
|
2
|
+
import { CreatioEngine } from '../engine';
|
|
3
|
+
export declare class FeatureEngine implements CreatioEngine {
|
|
4
|
+
private readonly _provider;
|
|
5
|
+
readonly name = "feature";
|
|
6
|
+
constructor(provider: FeatureProvider);
|
|
7
|
+
get kind(): string;
|
|
8
|
+
clearFeaturesCache(featureCode?: string): Promise<ClearFeatureCacheResult>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=feature-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-engine.d.ts","sourceRoot":"","sources":["../../../../src/creatio/engines/feature/feature-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,qBAAa,aAAc,YAAW,aAAa;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAE5C,SAAgB,IAAI,aAAa;gBAErB,QAAQ,EAAE,eAAe;IAIrC,IAAW,IAAI,IAAI,MAAM,CAExB;IAEM,kBAAkB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAGjF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeatureEngine = void 0;
|
|
4
|
+
class FeatureEngine {
|
|
5
|
+
_provider;
|
|
6
|
+
name = 'feature';
|
|
7
|
+
constructor(provider) {
|
|
8
|
+
this._provider = provider;
|
|
9
|
+
}
|
|
10
|
+
get kind() {
|
|
11
|
+
return this._provider.kind;
|
|
12
|
+
}
|
|
13
|
+
clearFeaturesCache(featureCode) {
|
|
14
|
+
return this._provider.clearFeaturesCache(featureCode);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.FeatureEngine = FeatureEngine;
|
|
18
|
+
//# sourceMappingURL=feature-engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-engine.js","sourceRoot":"","sources":["../../../../src/creatio/engines/feature/feature-engine.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IACR,SAAS,CAAkB;IAE5B,IAAI,GAAG,SAAS,CAAC;IAEjC,YAAY,QAAyB;QACpC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAW,IAAI;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;IAC5B,CAAC;IAEM,kBAAkB,CAAC,WAAoB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;CACD;AAhBD,sCAgBC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './engine';
|
|
2
2
|
export * from './engine-manager';
|
|
3
3
|
export * from './engine-registry';
|
|
4
|
+
export * from './admin-operation/admin-operation-engine';
|
|
5
|
+
export * from './configuration/configuration-engine';
|
|
4
6
|
export * from './crud/crud-engine';
|
|
7
|
+
export * from './feature/feature-engine';
|
|
5
8
|
export * from './process/process-engine';
|
|
6
9
|
export * from './sys-settings/sys-settings-engine';
|
|
7
10
|
export * from './user/user-engine';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/creatio/engines/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/creatio/engines/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC"}
|
|
@@ -17,7 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./engine"), exports);
|
|
18
18
|
__exportStar(require("./engine-manager"), exports);
|
|
19
19
|
__exportStar(require("./engine-registry"), exports);
|
|
20
|
+
__exportStar(require("./admin-operation/admin-operation-engine"), exports);
|
|
21
|
+
__exportStar(require("./configuration/configuration-engine"), exports);
|
|
20
22
|
__exportStar(require("./crud/crud-engine"), exports);
|
|
23
|
+
__exportStar(require("./feature/feature-engine"), exports);
|
|
21
24
|
__exportStar(require("./process/process-engine"), exports);
|
|
22
25
|
__exportStar(require("./sys-settings/sys-settings-engine"), exports);
|
|
23
26
|
__exportStar(require("./user/user-engine"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/creatio/engines/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,2DAAyC;AACzC,qEAAmD;AACnD,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/creatio/engines/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,2EAAyD;AACzD,uEAAqD;AACrD,qDAAmC;AACnC,2DAAyC;AACzC,2DAAyC;AACzC,qEAAmD;AACnD,qDAAmC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ICreatioAuthProvider } from './auth';
|
|
2
|
-
import { CrudProvider, ProcessProvider, SysSettingsProvider, UserProvider } from './providers';
|
|
2
|
+
import { AdminOperationProvider, ConfigurationProvider, CrudProvider, FeatureProvider, ProcessProvider, SysSettingsProvider, UserProvider } from './providers';
|
|
3
3
|
export interface CreatioProviderContext {
|
|
4
4
|
authProvider: ICreatioAuthProvider;
|
|
5
|
+
adminOperation: AdminOperationProvider;
|
|
6
|
+
configuration: ConfigurationProvider;
|
|
5
7
|
crud: CrudProvider;
|
|
8
|
+
feature: FeatureProvider;
|
|
6
9
|
process: ProcessProvider;
|
|
7
10
|
sysSettings: SysSettingsProvider;
|
|
8
11
|
user: UserProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-context.d.ts","sourceRoot":"","sources":["../../src/creatio/provider-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"provider-context.d.ts","sourceRoot":"","sources":["../../src/creatio/provider-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACN,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,sBAAsB;IACtC,YAAY,EAAE,oBAAoB,CAAC;IACnC,cAAc,EAAE,sBAAsB,CAAC;IACvC,aAAa,EAAE,qBAAqB,CAAC;IACrC,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,EAAE,YAAY,CAAC;CACnB"}
|