@rentman/rm-core 12.0.5-1 → 12.0.5-3

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.
@@ -5,10 +5,25 @@ export declare type ChangesDeltaResult = {
5
5
  created: ItemEntry[];
6
6
  };
7
7
  export declare enum ChangesDeltaItemUpdateMode {
8
+ /**
9
+ * For create/update responses you always want to overwrite whatever is cached
10
+ */
8
11
  CLEAR_ALWAYS = "overwrite",
12
+ /**
13
+ * For socket messages you want to clear the user's changes if they are the same as what is received
14
+ */
9
15
  CLEAR_WHEN_SAME = "same",
16
+ /**
17
+ * For user changes you want to store them if they are different than on a parent
18
+ */
10
19
  KEEP_WHEN_DIFFERENT = "different",
20
+ /**
21
+ * Used when expanding local items
22
+ */
11
23
  APPEND = "append",
24
+ /**
25
+ * Used for query responses (you don't want to do anything with user changes)
26
+ */
12
27
  QUERY = "query"
13
28
  }
14
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "12.0.5-1",
3
+ "version": "12.0.5-3",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/src/index.d.ts",