@azrico/webobject 1.4.161 → 1.4.162

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,65 +0,0 @@
1
- import { ClassType } from "@azrico/types";
2
- import { WebObject, sendChangesType } from "../index";
3
- import ObjectManager from "../structs/ObjectManager";
4
- /**
5
- * This class manages the events of an Simple Object
6
- */
7
- export declare class WebObjectManager<T extends WebObject> extends ObjectManager<T> {
8
- static readonly __object_type: ClassType<WebObject>;
9
- static readonly __save_message: boolean;
10
- constructor(defaultObject?: T);
11
- setObject(toObj: T | undefined): boolean;
12
- /**
13
- * Update meta value of this object , meta data is stored in meta_data variable
14
- * @param key
15
- * @param value
16
- * @param createIfNotExists should we create a new meta if key does not exist
17
- * @param sendChange
18
- * @returns
19
- */
20
- setMetaValue(key: string, value: any, sendChange?: sendChangesType): Promise<boolean | undefined>;
21
- getMetaValue(key: string): any;
22
- get_deltaObject(): Promise<any>;
23
- Save(): Promise<boolean>;
24
- Delete(): Promise<any>;
25
- Lock(): Promise<any>;
26
- UnLock(): Promise<any>;
27
- Archive(): Promise<any>;
28
- UnArchive(): Promise<any>;
29
- Load(search: any, ...p: any[]): Promise<WebObject | undefined>;
30
- get __web_path(): string;
31
- get __db_name(): string;
32
- get __object_name(): string;
33
- get_webpath(): string;
34
- private __getObjectData;
35
- /**
36
- * Use this when you load new Object
37
- * @param p
38
- * @returns
39
- */
40
- onNew(...p: any): Promise<any>;
41
- /**
42
- * Use this when you delete Object
43
- * @param p
44
- * @returns
45
- */
46
- onDelete(...p: any): Promise<any>;
47
- onArchive(...p: any): Promise<any>;
48
- onUnArchive(...p: any): Promise<any>;
49
- onLock(...p: any): Promise<any>;
50
- onUnLock(...p: any): Promise<any>;
51
- /**
52
- * Use this when you load data to the object
53
- * @param p
54
- * @returns
55
- */
56
- onLoad(...p: any): Promise<any>;
57
- /**
58
- * Use this after succesful save to Database
59
- * @param p
60
- * @returns
61
- */
62
- onSave(...p: any): Promise<any>;
63
- onAfterSave(...p: any): Promise<any>;
64
- }
65
- export default WebObjectManager;