@openinc/parse-server-opendash 3.20.3 → 3.21.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.
@@ -21,4 +21,7 @@ export declare namespace Permissions {
21
21
  enum CORE {
22
22
  adminoverview = "opendash:can-access-admin-overview"
23
23
  }
24
+ enum DOCUMENTATION {
25
+ see_app = "documentation:can-see-app"
26
+ }
24
27
  }
@@ -33,6 +33,11 @@ var Permissions;
33
33
  //Access
34
34
  CORE["adminoverview"] = "opendash:can-access-admin-overview";
35
35
  })(CORE = Permissions.CORE || (Permissions.CORE = {}));
36
+ let DOCUMENTATION;
37
+ (function (DOCUMENTATION) {
38
+ //access
39
+ DOCUMENTATION["see_app"] = "documentation:can-see-app";
40
+ })(DOCUMENTATION = Permissions.DOCUMENTATION || (Permissions.DOCUMENTATION = {}));
36
41
  // can also be used for nested permissions
37
42
  // Example:
38
43
  // export namespace TestPlugin {
@@ -5,6 +5,7 @@ export interface AssetsAttributes {
5
5
  objectId: string;
6
6
  createdAt: Date;
7
7
  updatedAt: Date;
8
+ context?: string;
8
9
  description: string;
9
10
  file: Parse.File;
10
11
  meta?: any;
@@ -14,6 +15,8 @@ export interface AssetsAttributes {
14
15
  export declare class Assets extends Parse.Object<AssetsAttributes> {
15
16
  static className: string;
16
17
  constructor(data?: Partial<AssetsAttributes>);
18
+ get context(): string | undefined;
19
+ set context(value: string | undefined);
17
20
  get description(): string;
18
21
  set description(value: string);
19
22
  get file(): Parse.File;
@@ -5,6 +5,12 @@ class Assets extends Parse.Object {
5
5
  constructor(data) {
6
6
  super("OD3_Assets", data);
7
7
  }
8
+ get context() {
9
+ return super.get("context");
10
+ }
11
+ set context(value) {
12
+ super.set("context", value);
13
+ }
8
14
  get description() {
9
15
  return super.get("description");
10
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "3.20.3",
3
+ "version": "3.21.0",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.15.0",
6
6
  "keywords": [
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "fields": {
3
+ "context": {
4
+ "type": "String",
5
+ "required": false
6
+ },
3
7
  "description": {
4
8
  "type": "String",
5
9
  "required": true