@azrico/webobject 1.4.195 → 1.4.197
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.
|
@@ -96,6 +96,7 @@ export declare class WebObject extends SimpleObject {
|
|
|
96
96
|
get __web_path(): string;
|
|
97
97
|
get_webpath(): string;
|
|
98
98
|
static get_webpath(): string;
|
|
99
|
+
static get_dbname(): string;
|
|
99
100
|
onDelete(...p: any): Promise<any>;
|
|
100
101
|
onArchive(...p: any): Promise<any>;
|
|
101
102
|
onUnArchive(...p: any): Promise<any>;
|
|
@@ -119,17 +120,17 @@ export declare class WebObject extends SimpleObject {
|
|
|
119
120
|
* get a single web object
|
|
120
121
|
* default order of parameters : search,readonly,fetchID
|
|
121
122
|
*/
|
|
122
|
-
static get_single(...p: any[]): Promise<WebObject | undefined>;
|
|
123
|
+
static get_single(...p: any[]): Promise<WebObject | any | undefined>;
|
|
123
124
|
/**
|
|
124
125
|
* Get a list of web objects
|
|
125
126
|
* default order of parameters : search,readonly,fetchID
|
|
126
127
|
*/
|
|
127
|
-
static get_list(...p: any[]): Promise<WebObject
|
|
128
|
+
static get_list(...p: any[]): Promise<Array<WebObject | any>>;
|
|
128
129
|
/**
|
|
129
130
|
* Get a list of web objects and convert them to basic objects
|
|
130
131
|
* can be passed to client components
|
|
131
132
|
* default order of parameters : search,readonly,fetchID
|
|
132
133
|
*/
|
|
133
|
-
static get_basicList(...p: any[]): Promise<
|
|
134
|
+
static get_basicList(...p: any[]): Promise<any[]>;
|
|
134
135
|
}
|
|
135
136
|
export default WebObject;
|
|
@@ -1225,6 +1225,11 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1225
1225
|
value: function get_webpath() {
|
|
1226
1226
|
return this.__web_path || this.__db_name || "";
|
|
1227
1227
|
}
|
|
1228
|
+
}, {
|
|
1229
|
+
key: "get_dbname",
|
|
1230
|
+
value: function get_dbname() {
|
|
1231
|
+
return this.__db_name || this.__web_path || "";
|
|
1232
|
+
}
|
|
1228
1233
|
}, {
|
|
1229
1234
|
key: "saveResultHasID",
|
|
1230
1235
|
value: function saveResultHasID(s) {
|