@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.
- package/changelog.md +8 -0
- package/dist/rm-core.js +31 -10
- package/dist/rm-core.min.js +1 -1
- package/dist/types/src/classes/ChangesDeltaBase.d.ts +15 -0
- package/package.json +1 -1
|
@@ -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
|
/**
|