@platecms/delta-types 1.18.0 → 1.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platecms/delta-types",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "This package contains various utility types.",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -17,8 +17,8 @@
17
17
  "src/**/*"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@platecms/delta-cast": "1.18.0",
21
- "@platecms/delta-plate-resource-notation": "1.18.0",
20
+ "@platecms/delta-cast": "1.20.0",
21
+ "@platecms/delta-plate-resource-notation": "1.20.0",
22
22
  "class-transformer": "0.5.1",
23
23
  "reflect-metadata": "0.2.2",
24
24
  "tslib": "2.8.1"
@@ -32,6 +32,7 @@ export enum PermissionResource {
32
32
  PUBLICATION = "Publication",
33
33
  CONTENT_VALIDATION_RULE = "ContentValidationRule",
34
34
  SCHEDULED_PUBLICATION = "ScheduledPublication",
35
+ REMINDER = "Reminder",
35
36
  }
36
37
 
37
38
  /**
@@ -107,6 +108,7 @@ export const RESOURCE_ACTIONS: Record<PermissionResource, readonly PermissionAct
107
108
  [PermissionResource.PUBLICATION]: [PermissionAction.READ, PermissionAction.CREATE, PermissionAction.REMOVE],
108
109
  [PermissionResource.CONTENT_VALIDATION_RULE]: CRUD_ACTIONS,
109
110
  [PermissionResource.SCHEDULED_PUBLICATION]: CRUD_ACTIONS,
111
+ [PermissionResource.REMINDER]: CRUD_ACTIONS,
110
112
  } as const satisfies Record<PermissionResource, readonly PermissionAction[]>;
111
113
 
112
114
  /**
@@ -321,6 +323,12 @@ export const PRESET_PERMISSION_SETS: Record<string, Permissions> = {
321
323
  [PermissionAction.UPDATE]: true,
322
324
  [PermissionAction.REMOVE]: true,
323
325
  },
326
+ [PermissionResource.REMINDER]: {
327
+ [PermissionAction.READ]: true,
328
+ [PermissionAction.CREATE]: true,
329
+ [PermissionAction.UPDATE]: true,
330
+ [PermissionAction.REMOVE]: true,
331
+ },
324
332
  },
325
333
  contentEditor: {
326
334
  [PermissionResource.CONTENT_TYPE]: {
@@ -454,6 +462,12 @@ export const PRESET_PERMISSION_SETS: Record<string, Permissions> = {
454
462
  [PermissionResource.CONTENT_VALIDATION_RULE]: {
455
463
  [PermissionAction.READ]: true,
456
464
  },
465
+ [PermissionResource.REMINDER]: {
466
+ [PermissionAction.READ]: true,
467
+ [PermissionAction.CREATE]: true,
468
+ [PermissionAction.UPDATE]: true,
469
+ [PermissionAction.REMOVE]: true,
470
+ },
457
471
  },
458
472
  contentViewer: {
459
473
  [PermissionResource.CONTENT_TYPE]: {
@@ -543,6 +557,9 @@ export const PRESET_PERMISSION_SETS: Record<string, Permissions> = {
543
557
  [PermissionResource.CONTENT_VALIDATION_RULE]: {
544
558
  [PermissionAction.READ]: true,
545
559
  },
560
+ [PermissionResource.REMINDER]: {
561
+ [PermissionAction.READ]: true,
562
+ },
546
563
  },
547
564
  cdaApiToken: {
548
565
  [PermissionResource.CONTENT_EXPERIENCE]: {