@esri/hub-common 14.197.0 → 14.198.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/dist/esm/groups/_internal/GroupSchema.js +84 -2
- package/dist/esm/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreate.js +376 -71
- package/dist/esm/groups/_internal/GroupUiSchemaCreate.js.map +1 -1
- package/dist/esm/groups/_internal/convertHubGroupToGroup.js +15 -0
- package/dist/esm/groups/_internal/convertHubGroupToGroup.js.map +1 -1
- package/dist/esm/groups/_internal/getPropertyMap.js +3 -0
- package/dist/esm/groups/_internal/getPropertyMap.js.map +1 -1
- package/dist/esm/groups/getWellKnownGroup.js +10 -0
- package/dist/esm/groups/getWellKnownGroup.js.map +1 -1
- package/dist/esm/permissions/PlatformPermissionPolicies.js +7 -0
- package/dist/esm/permissions/PlatformPermissionPolicies.js.map +1 -1
- package/dist/node/groups/_internal/GroupSchema.js +84 -2
- package/dist/node/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreate.js +376 -71
- package/dist/node/groups/_internal/GroupUiSchemaCreate.js.map +1 -1
- package/dist/node/groups/_internal/convertHubGroupToGroup.js +15 -0
- package/dist/node/groups/_internal/convertHubGroupToGroup.js.map +1 -1
- package/dist/node/groups/_internal/getPropertyMap.js +3 -0
- package/dist/node/groups/_internal/getPropertyMap.js.map +1 -1
- package/dist/node/groups/getWellKnownGroup.js +10 -0
- package/dist/node/groups/getWellKnownGroup.js.map +1 -1
- package/dist/node/permissions/PlatformPermissionPolicies.js +7 -0
- package/dist/node/permissions/PlatformPermissionPolicies.js.map +1 -1
- package/dist/types/core/types/IHubGroup.d.ts +14 -0
- package/dist/types/groups/_internal/GroupUiSchemaCreate.d.ts +2 -1
- package/dist/types/groups/getWellKnownGroup.d.ts +1 -1
- package/dist/types/permissions/types/PlatformPrivilege.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ exports.buildDefaults = exports.buildUiSchema = void 0;
|
|
|
4
4
|
const types_1 = require("../../core/schemas/types");
|
|
5
5
|
const permissions_1 = require("../../permissions");
|
|
6
6
|
const getWellKnownGroup_1 = require("../getWellKnownGroup");
|
|
7
|
+
const objects_1 = require("../../objects");
|
|
7
8
|
/**
|
|
8
9
|
* @private
|
|
9
10
|
* constructs the complete uiSchema for creating a view
|
|
@@ -15,104 +16,408 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
15
16
|
type: "Layout",
|
|
16
17
|
elements: [
|
|
17
18
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
type: "Section",
|
|
20
|
+
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
21
|
+
elements: [
|
|
22
|
+
{
|
|
23
|
+
labelKey: `${i18nScope}.fields.name.label`,
|
|
24
|
+
scope: "/properties/name",
|
|
25
|
+
type: "Control",
|
|
26
|
+
options: {
|
|
27
|
+
messages: [
|
|
28
|
+
{
|
|
29
|
+
type: "ERROR",
|
|
30
|
+
keyword: "required",
|
|
31
|
+
icon: true,
|
|
32
|
+
labelKey: `${i18nScope}.fields.name.requiredError`,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "ERROR",
|
|
36
|
+
keyword: "maxLength",
|
|
37
|
+
icon: true,
|
|
38
|
+
labelKey: `${i18nScope}.fields.name.maxLengthError`,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
28
41
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
labelKey: `${i18nScope}.fields.access.label`,
|
|
45
|
+
scope: "/properties/access",
|
|
46
|
+
type: "Control",
|
|
47
|
+
options: {
|
|
48
|
+
control: "hub-field-input-tile-select",
|
|
49
|
+
descriptions: [
|
|
50
|
+
`{{${i18nScope}.fields.access.private.description:translate}}`,
|
|
51
|
+
`{{${i18nScope}.fields.access.org.description:translate}}`,
|
|
52
|
+
`{{${i18nScope}.fields.access.public.description:translate}}`,
|
|
53
|
+
],
|
|
54
|
+
icons: ["users", "organization", "globe"],
|
|
55
|
+
labels: [
|
|
56
|
+
`{{${i18nScope}.fields.access.private.label:translate}}`,
|
|
57
|
+
`{{${i18nScope}.fields.access.org.label:translate}}`,
|
|
58
|
+
`{{${i18nScope}.fields.access.public.label:translate}}`,
|
|
59
|
+
],
|
|
60
|
+
rules: [
|
|
61
|
+
{
|
|
62
|
+
effect: types_1.UiSchemaRuleEffects.NONE,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
effect: types_1.UiSchemaRuleEffects.ENABLE,
|
|
66
|
+
conditions: [
|
|
67
|
+
permissions_1.checkPermission("platform:portal:user:shareGroupToOrg", context).access,
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
effect: types_1.UiSchemaRuleEffects.ENABLE,
|
|
72
|
+
conditions: [
|
|
73
|
+
permissions_1.checkPermission("platform:portal:user:shareGroupToPublic", context).access,
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
34
77
|
},
|
|
35
|
-
|
|
36
|
-
|
|
78
|
+
},
|
|
79
|
+
],
|
|
37
80
|
},
|
|
38
81
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
82
|
+
type: "Section",
|
|
83
|
+
labelKey: `${i18nScope}.sections.capabilities.label`,
|
|
84
|
+
elements: [
|
|
85
|
+
{
|
|
86
|
+
labelKey: `${i18nScope}.fields.isSharedUpdate.label`,
|
|
87
|
+
scope: "/properties/isSharedUpdate",
|
|
88
|
+
type: "Control",
|
|
89
|
+
options: {
|
|
90
|
+
control: "hub-field-input-switch",
|
|
91
|
+
helperText: {
|
|
92
|
+
labelKey: `${i18nScope}.fields.isSharedUpdate.helperText`,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
rule: {
|
|
96
|
+
effect: types_1.UiSchemaRuleEffects.ENABLE,
|
|
97
|
+
conditions: [
|
|
98
|
+
permissions_1.checkPermission("platform:portal:admin:createUpdateCapableGroup", context).access,
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
labelKey: `${i18nScope}.fields.isAdmin.label`,
|
|
104
|
+
scope: "/properties/leavingDisallowed",
|
|
105
|
+
type: "Control",
|
|
106
|
+
options: {
|
|
107
|
+
control: "hub-field-input-switch",
|
|
108
|
+
helperText: {
|
|
109
|
+
labelKey: `${i18nScope}.fields.isAdmin.helperText`,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
rules: [
|
|
113
|
+
{
|
|
114
|
+
effect: types_1.UiSchemaRuleEffects.ENABLE,
|
|
115
|
+
conditions: [
|
|
116
|
+
permissions_1.checkPermission("platform:portal:admin:createLeavingDisallowedGroup", context).access,
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
labelKey: `${i18nScope}.fields.isOpenData.label`,
|
|
123
|
+
scope: "/properties/isOpenData",
|
|
124
|
+
type: "Control",
|
|
125
|
+
options: {
|
|
126
|
+
control: "hub-field-input-switch",
|
|
127
|
+
helperText: {
|
|
128
|
+
labelKey: `${i18nScope}.fields.isOpenData.helperText`,
|
|
129
|
+
},
|
|
130
|
+
messages: [
|
|
131
|
+
{
|
|
132
|
+
type: "ERROR",
|
|
133
|
+
keyword: "const",
|
|
134
|
+
icon: true,
|
|
135
|
+
labelKey: `${i18nScope}.fields.isOpenData.constError`,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
rules: [
|
|
140
|
+
{
|
|
141
|
+
effect: types_1.UiSchemaRuleEffects.ENABLE,
|
|
142
|
+
conditions: [
|
|
143
|
+
{
|
|
144
|
+
scope: "/properties/access",
|
|
145
|
+
schema: { const: "public" },
|
|
146
|
+
},
|
|
147
|
+
permissions_1.checkPermission("platform:opendata:user:designateGroup", context).access,
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
effect: types_1.UiSchemaRuleEffects.RESET,
|
|
152
|
+
conditions: [
|
|
153
|
+
{
|
|
154
|
+
scope: "/properties/access",
|
|
155
|
+
schema: { not: { const: "public" } },
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
effect: types_1.UiSchemaRuleEffects.SHOW,
|
|
161
|
+
conditions: [
|
|
162
|
+
// should only exist if user's org has portal.portalProperties.opendata.enabled: true
|
|
163
|
+
!!objects_1.getProp(context, "portal.portalProperties.openData.enabled"),
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
],
|
|
46
167
|
},
|
|
47
|
-
|
|
168
|
+
],
|
|
48
169
|
},
|
|
49
170
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
171
|
+
type: "Section",
|
|
172
|
+
labelKey: `${i18nScope}.sections.membershipAccess.label`,
|
|
173
|
+
elements: [
|
|
174
|
+
{
|
|
175
|
+
labelKey: `${i18nScope}.fields.membershipAccess.label`,
|
|
176
|
+
scope: "/properties/membershipAccess",
|
|
177
|
+
type: "Control",
|
|
178
|
+
options: {
|
|
179
|
+
control: "hub-field-input-tile-select",
|
|
180
|
+
labels: [
|
|
181
|
+
`{{${i18nScope}.fields.membershipAccess.org.label:translate}}`,
|
|
182
|
+
`{{${i18nScope}.fields.membershipAccess.collab.label:translate}}`,
|
|
183
|
+
`{{${i18nScope}.fields.membershipAccess.any.label:translate}}`,
|
|
184
|
+
],
|
|
185
|
+
descriptions: [
|
|
186
|
+
`{{${i18nScope}.fields.membershipAccess.org.description:translate}}`,
|
|
187
|
+
`{{${i18nScope}.fields.membershipAccess.collab.description:translate}}`,
|
|
188
|
+
`{{${i18nScope}.fields.membershipAccess.any.description:translate}}`,
|
|
189
|
+
],
|
|
190
|
+
// rules that pertain to the individual options
|
|
191
|
+
rules: [
|
|
192
|
+
[
|
|
193
|
+
{
|
|
194
|
+
effect: types_1.UiSchemaRuleEffects.NONE,
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
[
|
|
198
|
+
{
|
|
199
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
200
|
+
conditions: [
|
|
201
|
+
{
|
|
202
|
+
scope: "/properties/leavingDisallowed",
|
|
203
|
+
schema: { const: true },
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
{
|
|
210
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
211
|
+
conditions: [
|
|
212
|
+
{
|
|
213
|
+
scope: "/properties/leavingDisallowed",
|
|
214
|
+
schema: { const: true },
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
220
|
+
conditions: [
|
|
221
|
+
{
|
|
222
|
+
scope: "/properties/isSharedUpdate",
|
|
223
|
+
schema: { const: true },
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
],
|
|
229
|
+
messages: [
|
|
230
|
+
{
|
|
231
|
+
type: "ERROR",
|
|
232
|
+
keyword: "pattern",
|
|
233
|
+
icon: true,
|
|
234
|
+
labelKey: `${i18nScope}.fields.membershipAccess.patternError`,
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: "ERROR",
|
|
238
|
+
keyword: "const",
|
|
239
|
+
icon: true,
|
|
240
|
+
labelKey: `${i18nScope}.fields.membershipAccess.constError`,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
// rules that pertain to the control as a whole
|
|
245
|
+
rules: [
|
|
65
246
|
{
|
|
66
|
-
effect: types_1.UiSchemaRuleEffects.
|
|
247
|
+
effect: types_1.UiSchemaRuleEffects.RESET,
|
|
248
|
+
conditions: [
|
|
249
|
+
{
|
|
250
|
+
scope: "/properties/leavingDisallowed",
|
|
251
|
+
schema: { const: true },
|
|
252
|
+
},
|
|
253
|
+
],
|
|
67
254
|
},
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
255
|
{
|
|
71
|
-
effect: types_1.UiSchemaRuleEffects.
|
|
256
|
+
effect: types_1.UiSchemaRuleEffects.RESET,
|
|
72
257
|
conditions: [
|
|
73
|
-
|
|
258
|
+
{
|
|
259
|
+
scope: "/properties/isSharedUpdate",
|
|
260
|
+
schema: { const: true },
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
scope: "/properties/membershipAccess",
|
|
264
|
+
schema: { const: "anyone" },
|
|
265
|
+
},
|
|
74
266
|
],
|
|
75
267
|
},
|
|
76
268
|
],
|
|
77
|
-
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
labelKey: `${i18nScope}.fields.join.label`,
|
|
272
|
+
scope: "/properties/_join",
|
|
273
|
+
type: "Control",
|
|
274
|
+
options: {
|
|
275
|
+
control: "hub-field-input-tile-select",
|
|
276
|
+
labels: [
|
|
277
|
+
`{{${i18nScope}.fields.join.invite.label:translate}}`,
|
|
278
|
+
`{{${i18nScope}.fields.join.request.label:translate}}`,
|
|
279
|
+
`{{${i18nScope}.fields.join.auto.label:translate}}`,
|
|
280
|
+
],
|
|
281
|
+
descriptions: [
|
|
282
|
+
`{{${i18nScope}.fields.join.invite.description:translate}}`,
|
|
283
|
+
`{{${i18nScope}.fields.join.request.description:translate}}`,
|
|
284
|
+
`{{${i18nScope}.fields.join.auto.description:translate}}`,
|
|
285
|
+
],
|
|
286
|
+
// rules that pertain to the individual options
|
|
287
|
+
rules: [
|
|
288
|
+
[
|
|
289
|
+
{
|
|
290
|
+
effect: types_1.UiSchemaRuleEffects.NONE,
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
{
|
|
295
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
296
|
+
conditions: [
|
|
297
|
+
{
|
|
298
|
+
scope: "/properties/access",
|
|
299
|
+
schema: { const: "private" },
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
[
|
|
305
|
+
{
|
|
306
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
307
|
+
conditions: [
|
|
308
|
+
{
|
|
309
|
+
scope: "/properties/access",
|
|
310
|
+
schema: { const: "private" },
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
316
|
+
conditions: [
|
|
317
|
+
{
|
|
318
|
+
scope: "/properties/leavingDisallowed",
|
|
319
|
+
schema: { const: true },
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
325
|
+
conditions: [
|
|
326
|
+
{
|
|
327
|
+
scope: "/properties/isSharedUpdate",
|
|
328
|
+
schema: { const: true },
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
],
|
|
334
|
+
messages: [
|
|
335
|
+
{
|
|
336
|
+
type: "ERROR",
|
|
337
|
+
keyword: "const",
|
|
338
|
+
icon: true,
|
|
339
|
+
labelKey: `${i18nScope}.fields.join.constError`,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
type: "ERROR",
|
|
343
|
+
keyword: "pattern",
|
|
344
|
+
icon: true,
|
|
345
|
+
labelKey: `${i18nScope}.fields.join.patternError`,
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
},
|
|
349
|
+
// rules that pertain to the control as a whole
|
|
350
|
+
rules: [
|
|
78
351
|
{
|
|
79
|
-
effect: types_1.UiSchemaRuleEffects.
|
|
352
|
+
effect: types_1.UiSchemaRuleEffects.RESET,
|
|
80
353
|
conditions: [
|
|
81
|
-
|
|
354
|
+
{
|
|
355
|
+
scope: "/properties/access",
|
|
356
|
+
schema: { const: "private" },
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
effect: types_1.UiSchemaRuleEffects.RESET,
|
|
362
|
+
conditions: [
|
|
363
|
+
{
|
|
364
|
+
scope: "/properties/leavingDisallowed",
|
|
365
|
+
schema: { const: true },
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
scope: "/properties/_join",
|
|
369
|
+
schema: { const: "auto" },
|
|
370
|
+
},
|
|
82
371
|
],
|
|
83
372
|
},
|
|
84
373
|
{
|
|
85
|
-
effect: types_1.UiSchemaRuleEffects.
|
|
374
|
+
effect: types_1.UiSchemaRuleEffects.RESET,
|
|
86
375
|
conditions: [
|
|
87
376
|
{
|
|
88
377
|
scope: "/properties/isSharedUpdate",
|
|
89
378
|
schema: { const: true },
|
|
90
379
|
},
|
|
380
|
+
{
|
|
381
|
+
scope: "/properties/_join",
|
|
382
|
+
schema: { const: "auto" },
|
|
383
|
+
},
|
|
91
384
|
],
|
|
92
385
|
},
|
|
93
386
|
],
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
labelKey: `${i18nScope}.fields.hiddenMembers.label`,
|
|
390
|
+
scope: "/properties/hiddenMembers",
|
|
391
|
+
type: "Control",
|
|
392
|
+
options: {
|
|
393
|
+
control: "hub-field-input-tile-select",
|
|
394
|
+
labels: [
|
|
395
|
+
`{{${i18nScope}.fields.hiddenMembers.members.label:translate}}`,
|
|
396
|
+
`{{${i18nScope}.fields.hiddenMembers.admins.label:translate}}`,
|
|
397
|
+
],
|
|
398
|
+
descriptions: [
|
|
399
|
+
`{{${i18nScope}.fields.hiddenMembers.members.description:translate}}`,
|
|
400
|
+
`{{${i18nScope}.fields.hiddenMembers.admins.description:translate}}`,
|
|
401
|
+
],
|
|
101
402
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
labelKey: `${i18nScope}.fields.contributeContent.label`,
|
|
406
|
+
scope: "/properties/isViewOnly",
|
|
407
|
+
type: "Control",
|
|
408
|
+
options: {
|
|
409
|
+
control: "hub-field-input-tile-select",
|
|
410
|
+
labels: [
|
|
411
|
+
`{{${i18nScope}.fields.contributeContent.members.label:translate}}`,
|
|
412
|
+
`{{${i18nScope}.fields.contributeContent.admins.label:translate}}`,
|
|
413
|
+
],
|
|
414
|
+
descriptions: [
|
|
415
|
+
`{{${i18nScope}.fields.contributeContent.members.description:translate}}`,
|
|
416
|
+
`{{${i18nScope}.fields.contributeContent.admins.description:translate}}`,
|
|
417
|
+
],
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
],
|
|
116
421
|
},
|
|
117
422
|
],
|
|
118
423
|
};
|
|
@@ -128,6 +433,6 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
128
433
|
* @returns
|
|
129
434
|
*/
|
|
130
435
|
exports.buildDefaults = async (i18nScope, options, context) => {
|
|
131
|
-
return Object.assign(Object.assign({}, getWellKnownGroup_1.getWellKnownGroup("
|
|
436
|
+
return Object.assign(Object.assign({}, getWellKnownGroup_1.getWellKnownGroup("hubGroup", context)), options);
|
|
132
437
|
};
|
|
133
438
|
//# sourceMappingURL=GroupUiSchemaCreate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreate.ts"],"names":[],"mappings":";;;AAAA,oDAIkC;AAGlC,mDAAoD;AACpD,4DAAyD;AAEzD;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"GroupUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreate.ts"],"names":[],"mappings":";;;AAAA,oDAIkC;AAGlC,mDAAoD;AACpD,4DAAyD;AAEzD,2CAAwC;AAExC;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA2B,EAC3B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;iCACpD;6BACF;yBACF;qBACF;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,sBAAsB;wBAC5C,KAAK,EAAE,oB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}
|
|
@@ -8,6 +8,21 @@ const getPropertyMap_1 = require("./getPropertyMap");
|
|
|
8
8
|
* @param hubGroup
|
|
9
9
|
*/
|
|
10
10
|
function convertHubGroupToGroup(hubGroup) {
|
|
11
|
+
// take the _join props and map them to isInvitationOnly and autoJoin
|
|
12
|
+
switch (hubGroup._join) {
|
|
13
|
+
case "invite":
|
|
14
|
+
hubGroup.isInvitationOnly = true;
|
|
15
|
+
hubGroup.autoJoin = false;
|
|
16
|
+
break;
|
|
17
|
+
case "request":
|
|
18
|
+
hubGroup.isInvitationOnly = false;
|
|
19
|
+
hubGroup.autoJoin = false;
|
|
20
|
+
break;
|
|
21
|
+
case "auto":
|
|
22
|
+
hubGroup.isInvitationOnly = false;
|
|
23
|
+
hubGroup.autoJoin = true;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
11
26
|
const mapper = new PropertyMapper_1.PropertyMapper(getPropertyMap_1.getPropertyMap());
|
|
12
27
|
const group = mapper.entityToStore(hubGroup, {});
|
|
13
28
|
// convert isSharedUpdate to the updateitemcontrol capability
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertHubGroupToGroup.js","sourceRoot":"","sources":["../../../../src/groups/_internal/convertHubGroupToGroup.ts"],"names":[],"mappings":";;;AACA,wEAAqE;AAErE,qDAAkD;AAElD;;;GAGG;AAEH,SAAgB,sBAAsB,CAAC,QAAmB;IACxD,MAAM,MAAM,GAAG,IAAI,+BAAc,CAC/B,+BAAc,EAAE,CACjB,CAAC;IACF,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,CAChC,QAAQ,EACR,EAAuB,CACd,CAAC;IACZ,6DAA6D;IAC7D,IAAI,QAAQ,CAAC,cAAc,EAAE;QAC3B,KAAK,CAAC,YAAY,GAAG,mBAAmB,CAAC;KAC1C;IACD,kDAAkD;IAClD,2BAA2B;IAC3B,IAAI,KAAK,CAAC,gBAAgB,KAAK,cAAc,EAAE;QAC7C,KAAK,CAAC,gBAAgB,GAAG,KAAK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gBAAgB,KAAK,cAAc,EAAE;QAC7C,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC;KAChC;IACD,IAAI,KAAK,CAAC,gBAAgB,KAAK,eAAe,EAAE;QAC9C,KAAK,CAAC,gBAAgB,GAAG,eAAe,CAAC;KAC1C;IACD,kDAAkD;IAClD,sDAAsD;IACtD,IAAI,KAAK,CAAC,gBAAgB,KAAK,QAAQ,EAAE;QACvC,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC;QAC5B,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC;KAChC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AA3CD,wDA2CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPropertyMap.js","sourceRoot":"","sources":["../../../../src/groups/_internal/getPropertyMap.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AAEH,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAmB,EAAE,CAAC;IAE/B;;OAEG;IACH,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IACxD,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC,CAAC;IAE3E,qCAAqC;IAErC,MAAM,UAAU,GAAG;QACjB,QAAQ;QACR,UAAU;QACV,aAAa;QACb,IAAI;QACJ,kBAAkB;QAClB,eAAe;QACf,YAAY;QACZ,YAAY;QACZ,kBAAkB;QAClB,OAAO;QACP,OAAO;QACP,WAAW;QACX,WAAW;QACX,WAAW;QACX,MAAM;QACN,WAAW;QACX,cAAc;QACd,cAAc;QACd,gBAAgB;
|
|
1
|
+
{"version":3,"file":"getPropertyMap.js","sourceRoot":"","sources":["../../../../src/groups/_internal/getPropertyMap.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AAEH,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAmB,EAAE,CAAC;IAE/B;;OAEG;IACH,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IACxD,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC,CAAC;IAE3E,qCAAqC;IAErC,MAAM,UAAU,GAAG;QACjB,QAAQ;QACR,UAAU;QACV,aAAa;QACb,IAAI;QACJ,kBAAkB;QAClB,eAAe;QACf,YAAY;QACZ,YAAY;QACZ,kBAAkB;QAClB,OAAO;QACP,OAAO;QACP,WAAW;QACX,WAAW;QACX,WAAW;QACX,MAAM;QACN,WAAW;QACX,cAAc;QACd,cAAc;QACd,gBAAgB;QAChB,YAAY;QACZ,eAAe;QACf,mBAAmB;KACpB,CAAC;IACF,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3B,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC;AAzCD,wCAyCC"}
|
|
@@ -10,6 +10,16 @@ const permissions_1 = require("../permissions");
|
|
|
10
10
|
*/
|
|
11
11
|
function getWellKnownGroup(groupType, context) {
|
|
12
12
|
const configs = {
|
|
13
|
+
hubGroup: {
|
|
14
|
+
access: "private",
|
|
15
|
+
autoJoin: false,
|
|
16
|
+
isSharedUpdate: false,
|
|
17
|
+
isInvitationOnly: false,
|
|
18
|
+
hiddenMembers: false,
|
|
19
|
+
isViewOnly: false,
|
|
20
|
+
tags: ["Hub Group"],
|
|
21
|
+
membershipAccess: "organization",
|
|
22
|
+
},
|
|
13
23
|
hubViewGroup: {
|
|
14
24
|
access: "org",
|
|
15
25
|
autoJoin: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWellKnownGroup.js","sourceRoot":"","sources":["../../../src/groups/getWellKnownGroup.ts"],"names":[],"mappings":";;;AACA,gDAAiD;
|
|
1
|
+
{"version":3,"file":"getWellKnownGroup.js","sourceRoot":"","sources":["../../../src/groups/getWellKnownGroup.ts"],"names":[],"mappings":";;;AACA,gDAAiD;AASjD;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,SAAyB,EACzB,OAAuB;IAEvB,MAAM,OAAO,GAA+C;QAC1D,QAAQ,EAAE;YACR,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,KAAK;YACf,cAAc,EAAE,KAAK;YACrB,gBAAgB,EAAE,KAAK;YACvB,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,KAAK;YACjB,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,gBAAgB,EAAE,cAAc;SACjC;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,KAAK;YACf,cAAc,EAAE,KAAK;YACrB,gBAAgB,EAAE,KAAK;YACvB,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,KAAK;YACjB,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,gBAAgB,EAAE,6BAAe,CAC/B,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;gBACN,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,cAAc;SACnB;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,KAAK;YACf,cAAc,EAAE,IAAI;YACpB,gBAAgB,EAAE,KAAK;YACvB,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,KAAK;YACjB,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,gBAAgB,EAAE,6BAAe,CAC/B,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;gBACN,CAAC,CAAC,eAAe;gBACjB,CAAC,CAAC,cAAc;SACnB;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,IAAI;YACd,gBAAgB,EAAE,KAAK;YACvB,UAAU,EAAE,IAAI;SACjB;QACD,oBAAoB,EAAE;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,KAAK;YACf,gBAAgB,EAAE,KAAK;YACvB,UAAU,EAAE,IAAI;YAChB,gBAAgB,EAAE,6BAAe,CAC/B,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;gBACN,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,cAAc;YAClB,SAAS,EAAE,IAAI;SAChB;KACF,CAAC;IAEF,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC5B,CAAC;AAnED,8CAmEC"}
|
|
@@ -18,6 +18,7 @@ exports.PlatformPermissions = [
|
|
|
18
18
|
"platform:portal:admin:changeUserRoles",
|
|
19
19
|
"platform:portal:admin:createGPWebhook",
|
|
20
20
|
"platform:portal:admin:createUpdateCapableGroup",
|
|
21
|
+
"platform:portal:admin:createLeavingDisallowedGroup",
|
|
21
22
|
"platform:portal:admin:deleteGroups",
|
|
22
23
|
"platform:portal:admin:deleteItems",
|
|
23
24
|
"platform:portal:admin:deleteUsers",
|
|
@@ -188,6 +189,12 @@ exports.PlatformPermissionPolicies = [
|
|
|
188
189
|
authenticated: true,
|
|
189
190
|
privileges: ["portal:admin:createUpdateCapableGroup"],
|
|
190
191
|
},
|
|
192
|
+
{
|
|
193
|
+
permission: "platform:portal:admin:createLeavingDisallowedGroup",
|
|
194
|
+
services: ["portal"],
|
|
195
|
+
authenticated: true,
|
|
196
|
+
privileges: ["portal:admin:createLeavingDisallowedGroup"],
|
|
197
|
+
},
|
|
191
198
|
{
|
|
192
199
|
permission: "platform:portal:admin:deleteGroups",
|
|
193
200
|
services: ["portal"],
|