@antcde/connect-ts 0.4.40-rc.8 → 0.4.41-rc.1
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 +23 -4
- package/build/AntConnect.d.ts +9 -0
- package/build/AntConnect.d.ts.map +1 -1
- package/build/AntConnect.js +6 -0
- package/build/comms/models.d.ts +9 -0
- package/build/comms/models.d.ts.map +1 -1
- package/build/comms/python-schema.d.ts +2 -2
- package/build/comms/python-schema.d.ts.map +1 -1
- package/build/comms/signalTourTypes.d.ts +17 -0
- package/build/comms/signalTourTypes.d.ts.map +1 -0
- package/build/comms/signalTourTypes.js +1 -0
- package/build/comms/signalTypes.d.ts +13 -7
- package/build/comms/signalTypes.d.ts.map +1 -1
- package/build/index.d.ts +5 -1
- package/build/index.d.ts.map +1 -1
- package/build/service-types-app.d.ts +1 -1
- package/build/service-types-app.d.ts.map +1 -1
- package/build/service-types.d.ts +2 -0
- package/build/service-types.d.ts.map +1 -1
- package/build/service-types.js +0 -1
- package/build/services/AppService/factory/appConfig.d.ts +23 -0
- package/build/services/AppService/factory/appConfig.d.ts.map +1 -0
- package/build/services/AppService/factory/appConfig.js +11 -0
- package/build/services/AppService/factory/bundles.d.ts +41 -0
- package/build/services/AppService/factory/bundles.d.ts.map +1 -0
- package/build/services/AppService/factory/bundles.js +22 -0
- package/build/services/AppService/factory/resourceCommerce.d.ts.map +1 -1
- package/build/services/AppService/factory/resourceCommerce.js +8 -6
- package/build/services/AppService/factory/subscriptions.d.ts +2 -6
- package/build/services/AppService/factory/subscriptions.d.ts.map +1 -1
- package/build/services/AppService/factory/subscriptions.js +15 -13
- package/build/services/AppService/index.d.ts +5 -5
- package/build/services/AppService/index.d.ts.map +1 -1
- package/build/services/AppService/index.js +10 -3
- package/build/services/AppService/types/app.d.ts +9 -0
- package/build/services/AppService/types/app.d.ts.map +1 -1
- package/build/services/AppService/types/appConfigReference.d.ts +202 -0
- package/build/services/AppService/types/appConfigReference.d.ts.map +1 -0
- package/build/services/AppService/types/appConfigReference.js +3 -0
- package/build/services/AppService/types/appConfigStatus.d.ts +14 -1
- package/build/services/AppService/types/appConfigStatus.d.ts.map +1 -1
- package/build/services/AppService/types/appList.d.ts +2 -0
- package/build/services/AppService/types/appList.d.ts.map +1 -1
- package/build/services/AppService/types/appManifest.d.ts +50 -2
- package/build/services/AppService/types/appManifest.d.ts.map +1 -1
- package/build/services/AppService/types/appManifest.js +1 -3
- package/build/services/AppService/types/appManifestPresets.d.ts +73 -0
- package/build/services/AppService/types/appManifestPresets.d.ts.map +1 -0
- package/build/services/AppService/types/appManifestPresets.js +1 -0
- package/build/services/AppService/types/bundles.d.ts +159 -0
- package/build/services/AppService/types/bundles.d.ts.map +1 -0
- package/build/services/AppService/types/bundles.js +4 -0
- package/build/services/AppService/types/pricingTiers.d.ts +6 -14
- package/build/services/AppService/types/pricingTiers.d.ts.map +1 -1
- package/build/services/AppService/types/refusals.d.ts +17 -0
- package/build/services/AppService/types/refusals.d.ts.map +1 -0
- package/build/services/AppService/types/refusals.js +1 -0
- package/build/services/AppService/types/sellableResources.d.ts +16 -0
- package/build/services/AppService/types/sellableResources.d.ts.map +1 -1
- package/build/services/AppService/types/subscriptions.d.ts +35 -0
- package/build/services/AppService/types/subscriptions.d.ts.map +1 -1
- package/build/services/AppService/types/taxonomy.d.ts +5 -12
- package/build/services/AppService/types/taxonomy.d.ts.map +1 -1
- package/build/services/AppService/types.d.ts +4 -0
- package/build/services/AppService/types.d.ts.map +1 -1
- package/build/services/AppService/types.js +4 -0
- package/build/services/ProjectService.d.ts +3 -0
- package/build/services/ProjectService.d.ts.map +1 -1
- package/build/services/PublisherBundleService.d.ts +59 -0
- package/build/services/PublisherBundleService.d.ts.map +1 -0
- package/build/services/PublisherBundleService.js +37 -0
- package/build/services/PublisherBundleService.types.d.ts +90 -0
- package/build/services/PublisherBundleService.types.d.ts.map +1 -0
- package/build/services/PublisherBundleService.types.js +1 -0
- package/build/services/RBAC/PermissionService.d.ts +3 -1
- package/build/services/RBAC/PermissionService.d.ts.map +1 -1
- package/build/services/ResourceTypeService.d.ts +2 -0
- package/build/services/ResourceTypeService.d.ts.map +1 -1
- package/build/services/TaskRelation.types.d.ts +3 -0
- package/build/services/TaskRelation.types.d.ts.map +1 -1
- package/build/services/TaskSeries.types.d.ts +147 -0
- package/build/services/TaskSeries.types.d.ts.map +1 -0
- package/build/services/TaskSeries.types.js +1 -0
- package/build/services/TaskSeriesService.d.ts +37 -0
- package/build/services/TaskSeriesService.d.ts.map +1 -0
- package/build/services/TaskSeriesService.js +16 -0
- package/build/services/TaskService.d.ts +2 -1
- package/build/services/TaskService.d.ts.map +1 -1
- package/build/services/TaskService.js +1 -1
- package/build/services/TaskService.requests.d.ts +4 -0
- package/build/services/TaskService.requests.d.ts.map +1 -1
- package/build/services/TaskService.types.d.ts +14 -0
- package/build/services/TaskService.types.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.js +2 -0
- package/build/services/TaskTemplate.types.d.ts +10 -26
- package/build/services/TaskTemplate.types.d.ts.map +1 -1
- package/build/services/TaskTemplate.types.js +0 -3
- package/build/services/TemplateClone.types.d.ts +35 -0
- package/build/services/TemplateClone.types.d.ts.map +1 -0
- package/build/services/TemplateClone.types.js +1 -0
- package/build/services/TemplatePlan.types.d.ts +109 -0
- package/build/services/TemplatePlan.types.d.ts.map +1 -0
- package/build/services/TemplatePlan.types.js +2 -0
- package/build/services/TemplatePlanService.d.ts +25 -0
- package/build/services/TemplatePlanService.d.ts.map +1 -0
- package/build/services/TemplatePlanService.js +13 -0
- package/build/services/UserService.d.ts +2 -1
- package/build/services/UserService.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/app-config.schema.json +319 -44
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://antcde.io/schemas/app-config.schema.json",
|
|
4
4
|
"title": "ANT App Manifest",
|
|
5
|
-
"description": "Shape of app-config.json shipped inside an ANT app's distribution.
|
|
5
|
+
"description": "Shape of app-config.json shipped inside an ANT app's distribution. Mirrors the schema the App Store checks uploads against (served with the full key reference at GET /api/2.0/store/app-config/reference). Deliberately lenient: no level closes additionalProperties, so an app may ship keys this schema does not know (a field added to the Store before this schema catches up, or an app-private extension) without the manifest going invalid. Declared values are still checked. Do not re-close it without a reason: unknown keys are tolerated on purpose.",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": ["version"],
|
|
7
|
+
"required": ["version", "tables"],
|
|
8
8
|
"properties": {
|
|
9
9
|
"$schema": {
|
|
10
10
|
"type": "string",
|
|
@@ -12,25 +12,36 @@
|
|
|
12
12
|
},
|
|
13
13
|
"version": {
|
|
14
14
|
"type": "string",
|
|
15
|
-
"description": "
|
|
15
|
+
"description": "The version of this build (semver). Each upload must be higher than the app's highest version so far."
|
|
16
16
|
},
|
|
17
17
|
"tagline": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"description": "Short
|
|
19
|
+
"description": "Short line under the app's name in the Store."
|
|
20
20
|
},
|
|
21
21
|
"tables": {
|
|
22
22
|
"type": "array",
|
|
23
|
-
"description": "
|
|
23
|
+
"description": "The app's tables. Required; use [] for an app without data. Each install creates them in its scope and every update adds what is new; nothing is removed or retyped.",
|
|
24
24
|
"items": { "$ref": "#/$defs/tableEntry" }
|
|
25
25
|
},
|
|
26
|
+
"roles": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"description": "Roles the app needs, by key. Each install finds a role of that name in its scope or creates it. Table `access` and `$role.<key>` values name them by key.",
|
|
29
|
+
"additionalProperties": { "$ref": "#/$defs/roleEntry" }
|
|
30
|
+
},
|
|
26
31
|
"resource_types": {
|
|
27
32
|
"type": "object",
|
|
28
|
-
"description": "Task and project types the app creates records with. Created on the license when the app is installed there or in any of its projects
|
|
33
|
+
"description": "Task and project types the app creates records with. Created on the license when the app is installed there or in any of its projects; new types and fields are added on update, nothing is changed or removed.",
|
|
29
34
|
"properties": {
|
|
30
35
|
"task": { "type": "array", "items": { "$ref": "#/$defs/resourceTypeEntry" } },
|
|
31
36
|
"project": { "type": "array", "items": { "$ref": "#/$defs/resourceTypeEntry" } }
|
|
32
37
|
}
|
|
33
38
|
},
|
|
39
|
+
"presets": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"description": "Optional starting structure the app offers but never forces, by key. A starter kit or bundle that includes the app picks which presets to apply; they are applied once and belong to the customer afterwards.",
|
|
42
|
+
"propertyNames": { "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$" },
|
|
43
|
+
"additionalProperties": { "$ref": "#/$defs/presetEntry" }
|
|
44
|
+
},
|
|
34
45
|
"signals": {
|
|
35
46
|
"type": "object",
|
|
36
47
|
"description": "Declares the comms signals this app sends and receives.",
|
|
@@ -38,9 +49,7 @@
|
|
|
38
49
|
"topics": {
|
|
39
50
|
"type": "object",
|
|
40
51
|
"description": "Generic topic pub/sub capabilities keyed by topic name.",
|
|
41
|
-
"patternProperties": {
|
|
42
|
-
"^[A-Za-z0-9_-]+$": { "$ref": "#/$defs/topicEntry" }
|
|
43
|
-
}
|
|
52
|
+
"patternProperties": { "^[A-Za-z0-9_-]+$": { "$ref": "#/$defs/topicEntry" } }
|
|
44
53
|
}
|
|
45
54
|
}
|
|
46
55
|
},
|
|
@@ -51,9 +60,7 @@
|
|
|
51
60
|
"queryParams": {
|
|
52
61
|
"type": "object",
|
|
53
62
|
"description": "Query params the app understands, keyed by param name.",
|
|
54
|
-
"patternProperties": {
|
|
55
|
-
"^[A-Za-z0-9_-]+$": { "$ref": "#/$defs/queryParamEntry" }
|
|
56
|
-
}
|
|
63
|
+
"patternProperties": { "^[A-Za-z0-9_-]+$": { "$ref": "#/$defs/queryParamEntry" } }
|
|
57
64
|
},
|
|
58
65
|
"intents": {
|
|
59
66
|
"type": "array",
|
|
@@ -123,7 +130,7 @@
|
|
|
123
130
|
},
|
|
124
131
|
"tableEntry": {
|
|
125
132
|
"type": "object",
|
|
126
|
-
"description": "A table the app declares.
|
|
133
|
+
"description": "A table the app declares. Install finds an existing table of that name in the scope and adopts it, else creates it.",
|
|
127
134
|
"required": ["name", "columns"],
|
|
128
135
|
"properties": {
|
|
129
136
|
"name": {
|
|
@@ -139,13 +146,23 @@
|
|
|
139
146
|
"master_table": {
|
|
140
147
|
"type": "boolean",
|
|
141
148
|
"default": false,
|
|
142
|
-
"description": "
|
|
149
|
+
"description": "Accepted for compatibility; the platform does nothing with it."
|
|
143
150
|
},
|
|
151
|
+
"broadcasts_changes": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"default": false,
|
|
154
|
+
"description": "Send a live event when rows change, so open screens refresh. Follows the latest version on update."
|
|
155
|
+
},
|
|
156
|
+
"row_security": {
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"default": false,
|
|
159
|
+
"description": "Row-level security: members only see the rows their roles' `access` rules allow. Switched on only while the table is still empty."
|
|
160
|
+
},
|
|
161
|
+
"access": { "$ref": "#/$defs/accessMap" },
|
|
144
162
|
"columns": {
|
|
145
163
|
"type": "array",
|
|
146
|
-
"description": "
|
|
147
|
-
"items": { "$ref": "#/$defs/columnEntry" }
|
|
148
|
-
"minItems": 1
|
|
164
|
+
"description": "The table's columns. New columns are added on update; columns a newer version no longer declares are unlocked, never deleted.",
|
|
165
|
+
"items": { "$ref": "#/$defs/columnEntry" }
|
|
149
166
|
}
|
|
150
167
|
}
|
|
151
168
|
},
|
|
@@ -160,21 +177,8 @@
|
|
|
160
177
|
},
|
|
161
178
|
"type": {
|
|
162
179
|
"type": "string",
|
|
163
|
-
"enum": [
|
|
164
|
-
|
|
165
|
-
"text",
|
|
166
|
-
"text-field",
|
|
167
|
-
"boolean",
|
|
168
|
-
"date",
|
|
169
|
-
"link",
|
|
170
|
-
"email",
|
|
171
|
-
"dropdown",
|
|
172
|
-
"document",
|
|
173
|
-
"float",
|
|
174
|
-
"sbscode",
|
|
175
|
-
"table"
|
|
176
|
-
],
|
|
177
|
-
"description": "Column data type."
|
|
180
|
+
"enum": ["integer", "text", "text-field", "boolean", "date", "link", "email", "dropdown", "document", "float", "sbscode", "table", "uuid"],
|
|
181
|
+
"description": "Column data type. Never changed on an existing column. A `reference` needs `uuid`."
|
|
178
182
|
},
|
|
179
183
|
"required": {
|
|
180
184
|
"type": "boolean",
|
|
@@ -189,24 +193,27 @@
|
|
|
189
193
|
"is_indexed": {
|
|
190
194
|
"type": "boolean",
|
|
191
195
|
"default": false,
|
|
192
|
-
"description": "
|
|
196
|
+
"description": "Add a database index, for columns you filter or sort on. Max 2 per table; not allowed for text-field or link. Only ever turned on by an update."
|
|
193
197
|
},
|
|
194
198
|
"default_value": {
|
|
195
|
-
"
|
|
199
|
+
"type": ["string", "boolean", "number"],
|
|
200
|
+
"description": "Value a new row gets, in the column's JSON type (`true`, `5`). For dropdowns, one of options_value. Only set when the column is created."
|
|
196
201
|
},
|
|
197
202
|
"options_value": {
|
|
198
203
|
"type": "array",
|
|
199
204
|
"items": { "type": "string" },
|
|
200
|
-
"description": "Allowed values for dropdown columns."
|
|
205
|
+
"description": "Allowed values for dropdown columns. Only set when the column is created; later edits are the customer's."
|
|
201
206
|
},
|
|
202
207
|
"hint": {
|
|
203
208
|
"type": "string",
|
|
204
|
-
"description": "
|
|
209
|
+
"description": "Help text shown with the field."
|
|
205
210
|
},
|
|
206
211
|
"field_name": {
|
|
207
212
|
"type": "string",
|
|
208
|
-
"
|
|
213
|
+
"maxLength": 255,
|
|
214
|
+
"description": "Display name of the field, when it differs from the column name."
|
|
209
215
|
},
|
|
216
|
+
"reference": { "$ref": "#/$defs/columnReference" },
|
|
210
217
|
"dms_folder": {
|
|
211
218
|
"type": "string",
|
|
212
219
|
"maxLength": 255,
|
|
@@ -222,14 +229,279 @@
|
|
|
222
229
|
{
|
|
223
230
|
"if": { "required": ["dms_folder"] },
|
|
224
231
|
"then": { "properties": { "type": { "const": "document" } } }
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"if": { "required": ["reference"] },
|
|
235
|
+
"then": { "properties": { "type": { "const": "uuid" } } }
|
|
225
236
|
}
|
|
226
237
|
]
|
|
227
238
|
},
|
|
239
|
+
"columnReference": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"description": "Makes a `uuid` column point at a row of another table or at a system entity. Declared by name, since a manifest has no ids.",
|
|
242
|
+
"minProperties": 1,
|
|
243
|
+
"properties": {
|
|
244
|
+
"target_type": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"enum": ["table", "user", "task", "project", "role"],
|
|
247
|
+
"default": "table",
|
|
248
|
+
"description": "What the column points at."
|
|
249
|
+
},
|
|
250
|
+
"target_table": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"description": "The target table's name. Required when the target is a table."
|
|
253
|
+
},
|
|
254
|
+
"target_column": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"description": "Match a column of the target instead of its row id. Usually left out."
|
|
257
|
+
},
|
|
258
|
+
"display_column": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"description": "Column of the target shown instead of the id."
|
|
261
|
+
},
|
|
262
|
+
"display_field": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "Field of a system entity shown instead of the id (e.g. a user's name)."
|
|
265
|
+
},
|
|
266
|
+
"enforce_integrity": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"default": false,
|
|
269
|
+
"description": "Refuse a value that matches no target row. Only ever turned on by an update."
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"if": {
|
|
273
|
+
"required": ["target_type"],
|
|
274
|
+
"properties": { "target_type": { "enum": ["user", "task", "project", "role"] } }
|
|
275
|
+
},
|
|
276
|
+
"then": true,
|
|
277
|
+
"else": { "required": ["target_table"] }
|
|
278
|
+
},
|
|
279
|
+
"roleEntry": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"description": "One role; its key is what `access` and `$role.<key>` use.",
|
|
282
|
+
"required": ["name"],
|
|
283
|
+
"properties": {
|
|
284
|
+
"name": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"minLength": 1,
|
|
287
|
+
"maxLength": 255,
|
|
288
|
+
"description": "The role's name, unique within the manifest: install matches roles by name."
|
|
289
|
+
},
|
|
290
|
+
"description": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"description": "What the role is for."
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"accessMap": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"description": "Per role key (declared under `roles`), what the role may do: each action is `true` (every row) or a row rule. Missing links are added on update; a link an admin removed stays removed.",
|
|
299
|
+
"additionalProperties": {
|
|
300
|
+
"type": "object",
|
|
301
|
+
"propertyNames": { "enum": ["read", "create", "update", "delete"] },
|
|
302
|
+
"additionalProperties": {
|
|
303
|
+
"anyOf": [
|
|
304
|
+
{ "const": true },
|
|
305
|
+
{
|
|
306
|
+
"type": "array",
|
|
307
|
+
"minItems": 1,
|
|
308
|
+
"items": { "$ref": "#/$defs/rowRuleBranch" },
|
|
309
|
+
"description": "OR-ed branches."
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"rowRuleBranch": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"description": "One branch: column name → its conditions (AND-ed), or `$has` → a child table whose visible rows point at this row.",
|
|
318
|
+
"minProperties": 1,
|
|
319
|
+
"properties": {
|
|
320
|
+
"$has": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"required": ["table", "column"],
|
|
323
|
+
"properties": {
|
|
324
|
+
"table": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"description": "A table of this app, in the same context."
|
|
327
|
+
},
|
|
328
|
+
"column": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"description": "Its column that references this table."
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"additionalProperties": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/rowRuleCondition" } }
|
|
336
|
+
},
|
|
337
|
+
"rowRuleCondition": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"required": ["operator", "boolean"],
|
|
340
|
+
"properties": {
|
|
341
|
+
"operator": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"enum": ["=", "<>", "<", ">", "<=", ">=", "like", "not like", "between", "not between", "is null", "is not null", "visible"]
|
|
344
|
+
},
|
|
345
|
+
"value": {
|
|
346
|
+
"description": "Compared value. May be `$user.id`, `$user.role_ids` or `$role.<key>`."
|
|
347
|
+
},
|
|
348
|
+
"values": {
|
|
349
|
+
"type": "array",
|
|
350
|
+
"description": "`[min, max]` for between, or a list for `=`."
|
|
351
|
+
},
|
|
352
|
+
"boolean": { "type": "string", "enum": ["and", "or"] }
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"presetEntry": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"description": "One preset.",
|
|
358
|
+
"required": ["name", "spec"],
|
|
359
|
+
"additionalProperties": false,
|
|
360
|
+
"properties": {
|
|
361
|
+
"name": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"minLength": 1,
|
|
364
|
+
"description": "Name the kit or bundle editor and the customer see."
|
|
365
|
+
},
|
|
366
|
+
"description": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"description": "What the preset sets up."
|
|
369
|
+
},
|
|
370
|
+
"spec": { "$ref": "#/$defs/presetSpec" }
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"presetSpec": {
|
|
374
|
+
"type": "object",
|
|
375
|
+
"description": "What the preset creates. Entries carry a `key`; references between them use keys. The Store refuses keys other than these.",
|
|
376
|
+
"properties": {
|
|
377
|
+
"tables": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"description": "Tables in the shape of top-level `tables`, created unmanaged: the customer may change them freely. An existing table only gains missing columns. `access` and `row_security` are refused; grant access through the preset's roles.",
|
|
380
|
+
"items": {
|
|
381
|
+
"allOf": [
|
|
382
|
+
{ "$ref": "#/$defs/tableEntry" },
|
|
383
|
+
{
|
|
384
|
+
"properties": { "access": false, "row_security": false }
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"labels": { "type": "array", "items": { "$ref": "#/$defs/presetLabel" } },
|
|
390
|
+
"dms_folders": { "type": "array", "items": { "$ref": "#/$defs/presetFolder" } },
|
|
391
|
+
"roles": { "type": "array", "items": { "$ref": "#/$defs/presetRole" } },
|
|
392
|
+
"workflows": { "type": "array", "items": { "$ref": "#/$defs/presetWorkflow" } }
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"presetKey": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,120}$" },
|
|
396
|
+
"presetScope": { "type": "string", "enum": ["license", "project"] },
|
|
397
|
+
"presetLabel": {
|
|
398
|
+
"type": "object",
|
|
399
|
+
"required": ["key", "name"],
|
|
400
|
+
"properties": {
|
|
401
|
+
"key": { "$ref": "#/$defs/presetKey" },
|
|
402
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
403
|
+
"description": { "type": ["string", "null"] },
|
|
404
|
+
"color": { "type": ["string", "null"], "maxLength": 32 },
|
|
405
|
+
"icon": { "type": ["string", "null"], "maxLength": 64 },
|
|
406
|
+
"parent": {
|
|
407
|
+
"type": ["string", "null"],
|
|
408
|
+
"description": "A label key."
|
|
409
|
+
},
|
|
410
|
+
"scope": { "$ref": "#/$defs/presetScope" }
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"presetFolder": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"required": ["key", "name"],
|
|
416
|
+
"properties": {
|
|
417
|
+
"key": { "$ref": "#/$defs/presetKey" },
|
|
418
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 255 },
|
|
419
|
+
"parent": {
|
|
420
|
+
"type": ["string", "null"],
|
|
421
|
+
"description": "A folder key, in the same scope."
|
|
422
|
+
},
|
|
423
|
+
"scope": { "$ref": "#/$defs/presetScope" }
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"presetRole": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"required": ["key", "name"],
|
|
429
|
+
"properties": {
|
|
430
|
+
"key": { "$ref": "#/$defs/presetKey" },
|
|
431
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 191 },
|
|
432
|
+
"scope": { "$ref": "#/$defs/presetScope" },
|
|
433
|
+
"assign_admin": {
|
|
434
|
+
"type": "boolean",
|
|
435
|
+
"description": "Defaults to true: the installing admin gets the role."
|
|
436
|
+
},
|
|
437
|
+
"grants": {
|
|
438
|
+
"type": "array",
|
|
439
|
+
"items": {
|
|
440
|
+
"type": "object",
|
|
441
|
+
"required": ["subject", "permissions"],
|
|
442
|
+
"properties": {
|
|
443
|
+
"subject": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"pattern": "^(table|folder|app):.+$",
|
|
446
|
+
"description": "`table:<name>`, `folder:<key>` or `app:<appId>`."
|
|
447
|
+
},
|
|
448
|
+
"permissions": {
|
|
449
|
+
"type": "array",
|
|
450
|
+
"items": { "type": "string", "pattern": "^[a-z]+(\\.[a-z_]+)+$" },
|
|
451
|
+
"description": "e.g. tables.read, dms.upload, app.use."
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"presetWorkflow": {
|
|
459
|
+
"type": "object",
|
|
460
|
+
"description": "A workflow template, published for the customer to start.",
|
|
461
|
+
"required": ["key", "name", "tasks"],
|
|
462
|
+
"properties": {
|
|
463
|
+
"key": { "$ref": "#/$defs/presetKey" },
|
|
464
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 255 },
|
|
465
|
+
"description": { "type": ["string", "null"] },
|
|
466
|
+
"scope": { "$ref": "#/$defs/presetScope" },
|
|
467
|
+
"start_in_project": { "type": "boolean" },
|
|
468
|
+
"offset_days": { "type": "integer", "minimum": 0, "maximum": 365 },
|
|
469
|
+
"tasks": {
|
|
470
|
+
"type": "array",
|
|
471
|
+
"items": {
|
|
472
|
+
"type": "object",
|
|
473
|
+
"required": ["key", "title"],
|
|
474
|
+
"properties": {
|
|
475
|
+
"key": { "$ref": "#/$defs/presetKey" },
|
|
476
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 255 },
|
|
477
|
+
"description": { "type": ["string", "null"] },
|
|
478
|
+
"parent": { "type": ["string", "null"] },
|
|
479
|
+
"predecessors": { "type": "array", "items": { "type": "string" } },
|
|
480
|
+
"duration_days": { "type": ["integer", "null"], "minimum": 0, "maximum": 3650 },
|
|
481
|
+
"done": { "type": "boolean" },
|
|
482
|
+
"app_id": { "type": ["string", "null"], "maxLength": 64 },
|
|
483
|
+
"app_state": {
|
|
484
|
+
"type": ["object", "null"],
|
|
485
|
+
"maxProperties": 20,
|
|
486
|
+
"propertyNames": { "pattern": "^[A-Za-z0-9_.:-]{1,64}$" },
|
|
487
|
+
"additionalProperties": { "type": "string", "maxLength": 500 }
|
|
488
|
+
},
|
|
489
|
+
"trigger": false
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
},
|
|
228
495
|
"resourceTypeEntry": {
|
|
229
496
|
"type": "object",
|
|
230
497
|
"required": ["key", "label"],
|
|
231
498
|
"properties": {
|
|
232
|
-
"key": {
|
|
499
|
+
"key": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"maxLength": 255,
|
|
502
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
|
|
503
|
+
"description": "Slug, used as the record's type_key."
|
|
504
|
+
},
|
|
233
505
|
"label": { "type": "string", "maxLength": 255 },
|
|
234
506
|
"description": { "type": "string" },
|
|
235
507
|
"fields": { "type": "array", "items": { "$ref": "#/$defs/resourceFieldEntry" } }
|
|
@@ -241,10 +513,16 @@
|
|
|
241
513
|
"properties": {
|
|
242
514
|
"key": { "type": "string", "maxLength": 255, "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$" },
|
|
243
515
|
"label": { "type": "string", "maxLength": 255 },
|
|
244
|
-
"data_type": {
|
|
516
|
+
"data_type": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"enum": ["string", "int", "float", "bool", "date", "datetime", "uuid", "select", "json"]
|
|
519
|
+
},
|
|
245
520
|
"is_required": { "type": "boolean" },
|
|
246
521
|
"is_hidden": { "type": "boolean" },
|
|
247
|
-
"options": {
|
|
522
|
+
"options": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"description": "For select fields: { \"choices\": [...] }."
|
|
525
|
+
}
|
|
248
526
|
}
|
|
249
527
|
},
|
|
250
528
|
"topicEntry": {
|
|
@@ -263,10 +541,7 @@
|
|
|
263
541
|
},
|
|
264
542
|
"direction": {
|
|
265
543
|
"type": "array",
|
|
266
|
-
"items": {
|
|
267
|
-
"type": "string",
|
|
268
|
-
"enum": ["send", "receive"]
|
|
269
|
-
},
|
|
544
|
+
"items": { "type": "string", "enum": ["send", "receive"] },
|
|
270
545
|
"uniqueItems": true,
|
|
271
546
|
"minItems": 1,
|
|
272
547
|
"default": ["receive"],
|