@azrico/webobject 1.4.160 → 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.
- package/package.json +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -16
- package/dist/src/WebObjects/ParentWebObject.d.ts +0 -24
- package/dist/src/WebObjects/ParentWebObject.js +0 -122
- package/dist/src/WebObjects/WebObject.d.ts +0 -120
- package/dist/src/WebObjects/WebObject.js +0 -1319
- package/dist/src/WebObjects/WebObjectManager.d.ts +0 -65
- package/dist/src/WebObjects/WebObjectManager.js +0 -807
- package/dist/src/WebObjects/WebObjectPathHelper.d.ts +0 -36
- package/dist/src/WebObjects/WebObjectPathHelper.js +0 -156
- package/dist/src/WebObjects/WebObjectPathHelper.test.d.ts +0 -1
- package/dist/src/WebObjects/WebObjectPathHelper.test.js +0 -122
- package/dist/src/index.d.ts +0 -10
- package/dist/src/index.js +0 -115
- package/dist/src/structs/DummyObject.d.ts +0 -5
- package/dist/src/structs/DummyObject.js +0 -32
- package/dist/src/structs/MapableObject.d.ts +0 -43
- package/dist/src/structs/MapableObject.js +0 -124
- package/dist/src/structs/MetaObject.d.ts +0 -15
- package/dist/src/structs/MetaObject.js +0 -122
- package/dist/src/structs/ObjectArray.d.ts +0 -10
- package/dist/src/structs/ObjectArray.js +0 -69
- package/dist/src/structs/ObjectManager.d.ts +0 -123
- package/dist/src/structs/ObjectManager.js +0 -738
- package/dist/src/structs/ObjectWithTemp.d.ts +0 -11
- package/dist/src/structs/ObjectWithTemp.js +0 -69
- package/dist/src/structs/SimpleObject.d.ts +0 -266
- package/dist/src/structs/SimpleObject.js +0 -1599
|
@@ -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_webname(): 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;
|