@azrico/webobject 1.5.54 → 1.5.55

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.
@@ -1,5 +1,10 @@
1
1
  import { SimpleObject, deltaParams, sendChangesType } from "../index";
2
2
  import { WebObjectManager } from "../index";
3
+ export type ObjectWithUsers = Partial<{
4
+ _creator: string;
5
+ _users: string[];
6
+ attentions: string[];
7
+ }>;
3
8
  export declare class WebObject extends SimpleObject {
4
9
  static readonly __web_path: string;
5
10
  static readonly __protectedProperties: string[];
@@ -19,12 +24,11 @@ export declare class WebObject extends SimpleObject {
19
24
  */
20
25
  getAllUsers(): string[];
21
26
  /**
22
- * get a list of all user ids that work on the given object
23
- * _creator + _users + attentions(old)
24
- * removes duplicates
27
+ * get a unique list of all user ids that work on the given object
28
+ * `_creator + _users + attentions`
25
29
  * @returns array of ids
26
30
  */
27
- static getAllUsers(obj: any): string[];
31
+ static getAllUsers(obj: ObjectWithUsers): string[];
28
32
  /**
29
33
  * Update meta value of this object , meta data is stored in meta_data variable
30
34
  * @param key
@@ -66,9 +66,8 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
66
66
  return WebObject.getAllUsers(this);
67
67
  }
68
68
  /**
69
- * get a list of all user ids that work on the given object
70
- * _creator + _users + attentions(old)
71
- * removes duplicates
69
+ * get a unique list of all user ids that work on the given object
70
+ * `_creator + _users + attentions`
72
71
  * @returns array of ids
73
72
  */
74
73
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.54",
3
+ "version": "1.5.55",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",