@azrico/webobject 1.4.68 → 1.4.70
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,5 @@
|
|
|
1
1
|
import SimpleObject, { sendChangesType } from "../structs/SimpleObject";
|
|
2
|
-
import {
|
|
2
|
+
import { WebObjectManager } from "../index";
|
|
3
3
|
export type deltaParams = {
|
|
4
4
|
type?: string;
|
|
5
5
|
isChild?: boolean;
|
|
@@ -14,7 +14,9 @@ export declare class WebObject extends SimpleObject {
|
|
|
14
14
|
static readonly __web_type: string;
|
|
15
15
|
static readonly __protectedProperties: string[];
|
|
16
16
|
static readonly __requiredProperties: never[];
|
|
17
|
-
meta_data:
|
|
17
|
+
meta_data: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
18
20
|
_id: string;
|
|
19
21
|
_created_date?: string | Date;
|
|
20
22
|
_creator?: string;
|
|
@@ -36,37 +38,23 @@ export declare class WebObject extends SimpleObject {
|
|
|
36
38
|
* Update meta value of this object , meta data is stored in meta_data variable
|
|
37
39
|
* @param key
|
|
38
40
|
* @param value
|
|
39
|
-
* @param createIfNotExists should we create a new meta if key does not exist
|
|
40
41
|
* @param sendChange
|
|
41
42
|
* @returns
|
|
42
43
|
*/
|
|
43
|
-
setMetaValue(key: string, value: any,
|
|
44
|
-
/**
|
|
45
|
-
* Get meta object by key
|
|
46
|
-
* @param key
|
|
47
|
-
* @returns meta object
|
|
48
|
-
*/
|
|
49
|
-
getMeta(key: string): any;
|
|
44
|
+
setMetaValue(key: string, value: any, sendChange?: sendChangesType): Promise<boolean>;
|
|
50
45
|
/**
|
|
51
46
|
* Get meta value by key
|
|
52
47
|
* @param key
|
|
53
48
|
* @returns value or undefined
|
|
54
49
|
*/
|
|
55
50
|
getMetaValue(key: string): any;
|
|
56
|
-
/**
|
|
57
|
-
* Get meta object by key
|
|
58
|
-
* @param o
|
|
59
|
-
* @param key
|
|
60
|
-
* @returns meta object
|
|
61
|
-
*/
|
|
62
|
-
static getMeta(o: WebObject | null | undefined, key: string): any;
|
|
63
51
|
/**
|
|
64
52
|
* Get meta value by key
|
|
65
53
|
* @param o
|
|
66
54
|
* @param key
|
|
67
55
|
* @returns value or undefined
|
|
68
56
|
*/
|
|
69
|
-
static getMetaValue(o: WebObject | null | undefined, key: string): any;
|
|
57
|
+
static getMetaValue(o: WebObject | null | undefined, key: string): any | undefined;
|
|
70
58
|
static zipSaveList(svlist: any): string;
|
|
71
59
|
static unzipSaveList(svlist: any): any[];
|
|
72
60
|
static saveList(itemList: WebObject[], extraOptions?: {
|