ionic-vhframeworks 8.2.5 → 8.2.7
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.
|
@@ -157,12 +157,12 @@ export declare class VhAlgorithm {
|
|
|
157
157
|
*/
|
|
158
158
|
isToday(date: any): boolean;
|
|
159
159
|
/**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
160
|
+
* @example SET:
|
|
161
|
+
* localStorageSET('local_name', {a=1, b='hai'});
|
|
162
|
+
* localStorageSET('local_name', 15000);
|
|
163
|
+
* localStorageSET('local_name', 'muoi lam nghin dong');
|
|
164
|
+
* @returns
|
|
165
|
+
*/
|
|
166
166
|
localStorageSET(name: string, value: any): void;
|
|
167
167
|
/**
|
|
168
168
|
* @example GET:
|
|
@@ -512,10 +512,11 @@ export declare class VhAuth {
|
|
|
512
512
|
*/
|
|
513
513
|
onAuthStateChanged(): Promise<unknown>;
|
|
514
514
|
signUpOwner_AutoWeb_Designer(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
515
|
+
signUpOwner_AutoWeb_Mongo_Designer(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
515
516
|
signUpOwner_AutoWeb_Developer(email: string, password: string, phoneNumber: string, info: any): Promise<unknown>;
|
|
516
517
|
/**
|
|
517
518
|
* @example:
|
|
518
|
-
* this.vhAuth.
|
|
519
|
+
* this.vhAuth.signInWithEmailAndPassword_AutoWeb_Designer('emp11@gmail.com', '123456')
|
|
519
520
|
.then((rsp)=>{
|
|
520
521
|
if(rsp.vcode===0){
|
|
521
522
|
this.vhQueryAutoWeb.syncCollections_Desktop()
|
|
@@ -870,7 +871,7 @@ export declare class VhAuth {
|
|
|
870
871
|
reject(error);
|
|
871
872
|
})
|
|
872
873
|
* @param projectname
|
|
873
|
-
* @param dbstorage: 'firebase'
|
|
874
|
+
* @param dbstorage: 'firebase', 'firebase-mongo', or 'mongo'
|
|
874
875
|
* @param imgstorage: 'firebase' or 'viethas'
|
|
875
876
|
* @param cssstorage : nơi css sẽ được lưu trữ 'local', 'firebase', 'mongo' or 'file'
|
|
876
877
|
* @param dbserverversion
|
|
@@ -880,6 +881,24 @@ export declare class VhAuth {
|
|
|
880
881
|
* @returns Promise
|
|
881
882
|
*/
|
|
882
883
|
initializeBuildProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
|
|
884
|
+
/**
|
|
885
|
+
* @example:
|
|
886
|
+
* this.vhAuth.initializeDesignProject('vhsales','firebase-mongo', 'viethas', 'firebase', 'research', 'research', 324852)
|
|
887
|
+
.then(()=>{
|
|
888
|
+
resolve(null);
|
|
889
|
+
},error=>{
|
|
890
|
+
reject(error);
|
|
891
|
+
})
|
|
892
|
+
* @param projectname
|
|
893
|
+
* @param dbstorage: 'firebase', 'firebase-mongo', or 'mongo'
|
|
894
|
+
* @param imgstorage: 'firebase' or 'viethas'
|
|
895
|
+
* @param cssstorage : nơi css sẽ được lưu trữ 'local', 'firebase', 'mongo' or 'file'
|
|
896
|
+
* @param dbserverversion
|
|
897
|
+
* @param camserverversion
|
|
898
|
+
* @param fwcode
|
|
899
|
+
* @returns Promise
|
|
900
|
+
*/
|
|
901
|
+
initializeDesignProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number): any;
|
|
883
902
|
/**
|
|
884
903
|
* @example:
|
|
885
904
|
* this.vhAuth.initializeWebAppProject('vhsales', 356842, 'all');
|
|
@@ -12602,6 +12621,18 @@ export declare class VhQueryAutoWeb {
|
|
|
12602
12621
|
* @return Promise => page = {}
|
|
12603
12622
|
*/
|
|
12604
12623
|
getDetailPage(id_page: any): Promise<unknown>;
|
|
12624
|
+
/**
|
|
12625
|
+
* this.vhQueryAutoWeb.getCanBeClonedBlockOrObject(null, 'root')
|
|
12626
|
+
.then((array)=>{
|
|
12627
|
+
console.log('getCanBeClonedBlockOrObject', array);
|
|
12628
|
+
},(error:any)=>{
|
|
12629
|
+
console.log('error', error);
|
|
12630
|
+
})
|
|
12631
|
+
* @param id_node: id của node hover chuột lên
|
|
12632
|
+
* @param type: loại node là 'root', 'page', 'block', 'object'
|
|
12633
|
+
* @return Promise => array = [{_id, name, type},...]
|
|
12634
|
+
*/
|
|
12635
|
+
getCanBeClonedBlockOrObject(id_node: string, type: string): Promise<unknown>;
|
|
12605
12636
|
/**
|
|
12606
12637
|
* @example:
|
|
12607
12638
|
* this.vhQueryAutoWeb.CreatePageDetail({name:'Danh mục 1'})
|
|
@@ -13084,6 +13115,26 @@ export declare class VhQueryAutoWeb {
|
|
|
13084
13115
|
*/
|
|
13085
13116
|
getProducts_byFields(query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
13086
13117
|
/**
|
|
13118
|
+
* @example:
|
|
13119
|
+
* this.vhQueryAutoWeb.getProducts_byFields_byPages({name:{$eq:'name abc'}}, {},{},6,1)
|
|
13120
|
+
.then(response=>{
|
|
13121
|
+
console.log('response', response);
|
|
13122
|
+
if(response.vcode === 0){
|
|
13123
|
+
//-----------your code-----------
|
|
13124
|
+
let products = response.data;
|
|
13125
|
+
}
|
|
13126
|
+
},(error:any)=>{
|
|
13127
|
+
console.log('error', error)
|
|
13128
|
+
})
|
|
13129
|
+
* @param query
|
|
13130
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
13131
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
13132
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
13133
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
13134
|
+
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
13135
|
+
*/
|
|
13136
|
+
getProducts_byFields_byPages(query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
13137
|
+
/**
|
|
13087
13138
|
* @example
|
|
13088
13139
|
* let id_sub_or_product = id_subproduct?id_subproduct:id_product;
|
|
13089
13140
|
* this.vhQueryAutoWeb.getDetailProduct(id_sub_or_product)
|
|
@@ -13116,6 +13167,26 @@ export declare class VhQueryAutoWeb {
|
|
|
13116
13167
|
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
13117
13168
|
*/
|
|
13118
13169
|
getDetailProducts_byFields(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
13170
|
+
/**
|
|
13171
|
+
* @example:
|
|
13172
|
+
* this.vhQueryAutoWeb.getDetailProductsByFields({name:{$eq:'name abc'}}, {},{},6,1)
|
|
13173
|
+
.then(response=>{
|
|
13174
|
+
console.log('response', response);
|
|
13175
|
+
if(response.vcode === 0){
|
|
13176
|
+
//-----------your code-----------
|
|
13177
|
+
let products = response.data;
|
|
13178
|
+
}
|
|
13179
|
+
},(error:any)=>{
|
|
13180
|
+
console.log('error', error)
|
|
13181
|
+
})
|
|
13182
|
+
* @param query
|
|
13183
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
13184
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
13185
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
13186
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
13187
|
+
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
13188
|
+
*/
|
|
13189
|
+
getDetailProducts_byFields_byPages(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
13119
13190
|
/**
|
|
13120
13191
|
* hàm này tạo product và thêm subs vào product (lần đầu)
|
|
13121
13192
|
* Lưu ý: trong product, subProductArray không có các trường quantity, quantity_branch và subs
|
|
@@ -18937,6 +19008,120 @@ export declare class VhDesignAutoWeb {
|
|
|
18937
19008
|
* @return Promise => array(object) = [{},{},..]
|
|
18938
19009
|
*/
|
|
18939
19010
|
dynamic_getDocs_fromService_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
19011
|
+
/**
|
|
19012
|
+
* @example
|
|
19013
|
+
* this.vhDesignAutoWeb.dynamic_getProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19014
|
+
.then((doc)=>{
|
|
19015
|
+
console.log('dynamic_getProduct', doc);
|
|
19016
|
+
})
|
|
19017
|
+
* @param id_doc
|
|
19018
|
+
* @return null or object
|
|
19019
|
+
*/
|
|
19020
|
+
dynamic_getProduct(colname: string, id_doc: string): Promise<unknown>;
|
|
19021
|
+
/**
|
|
19022
|
+
* @example:
|
|
19023
|
+
* this.vhDesignAutoWeb.dynamic_getProducts_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
19024
|
+
.then(response=>{
|
|
19025
|
+
console.log('response', response);
|
|
19026
|
+
//-----------your code-----------
|
|
19027
|
+
let products = response.data;
|
|
19028
|
+
},(error:any)=>{
|
|
19029
|
+
console.log('error', error)
|
|
19030
|
+
})
|
|
19031
|
+
* @param colname
|
|
19032
|
+
* @param query
|
|
19033
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
19034
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
19035
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
19036
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
19037
|
+
* @return Promise => array(object) = [{},{},..]
|
|
19038
|
+
*/
|
|
19039
|
+
dynamic_getProducts_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
19040
|
+
/**
|
|
19041
|
+
* @example:
|
|
19042
|
+
* this.vhDesignAutoWeb.dynamic_getProducts_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
19043
|
+
.then(response=>{
|
|
19044
|
+
console.log('response', response);
|
|
19045
|
+
if(response.vcode === 0){
|
|
19046
|
+
//-----------your code-----------
|
|
19047
|
+
let products = response.data;
|
|
19048
|
+
}
|
|
19049
|
+
},(error:any)=>{
|
|
19050
|
+
console.log('error', error)
|
|
19051
|
+
})
|
|
19052
|
+
* @param colname
|
|
19053
|
+
* @param query
|
|
19054
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
19055
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
19056
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
19057
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
19058
|
+
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
19059
|
+
*/
|
|
19060
|
+
dynamic_getProducts_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
19061
|
+
/**
|
|
19062
|
+
* @example:
|
|
19063
|
+
* this.vhDesignAutoWeb.dynamic_getDetailProducts_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
19064
|
+
.then(response=>{
|
|
19065
|
+
console.log('response', response);
|
|
19066
|
+
//-----------your code-----------
|
|
19067
|
+
let products = response.data;
|
|
19068
|
+
},(error:any)=>{
|
|
19069
|
+
console.log('error', error)
|
|
19070
|
+
})
|
|
19071
|
+
* @param colname
|
|
19072
|
+
* @param query
|
|
19073
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
19074
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
19075
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
19076
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
19077
|
+
* @return Promise => array(object) = [{},{},..]
|
|
19078
|
+
*/
|
|
19079
|
+
dynamic_getDetailProducts_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
19080
|
+
/**
|
|
19081
|
+
* @example:
|
|
19082
|
+
* this.vhDesignAutoWeb.dynamic_getDetailProducts_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
19083
|
+
.then(response=>{
|
|
19084
|
+
console.log('response', response);
|
|
19085
|
+
if(response.vcode === 0){
|
|
19086
|
+
//-----------your code-----------
|
|
19087
|
+
let products = response.data;
|
|
19088
|
+
}
|
|
19089
|
+
},(error:any)=>{
|
|
19090
|
+
console.log('error', error)
|
|
19091
|
+
})
|
|
19092
|
+
* @param colname
|
|
19093
|
+
* @param query
|
|
19094
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
19095
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
19096
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
19097
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
19098
|
+
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
19099
|
+
*/
|
|
19100
|
+
dynamic_getDetailProducts_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
19101
|
+
/**
|
|
19102
|
+
* @example
|
|
19103
|
+
* this.vhDesignAutoWeb.dynamic_getDetailProduct_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19104
|
+
.then((doc)=>{
|
|
19105
|
+
console.log('dynamic_getDetailProduct_fromService', doc);
|
|
19106
|
+
},(error:any)=>{
|
|
19107
|
+
console.log('error', error)
|
|
19108
|
+
})
|
|
19109
|
+
* @param id_sub_or_product
|
|
19110
|
+
* @Promise => obj ={} or null
|
|
19111
|
+
*/
|
|
19112
|
+
dynamic_getDetailProduct(id_sub_or_product: any): Promise<unknown>;
|
|
19113
|
+
/**
|
|
19114
|
+
* @example
|
|
19115
|
+
* this.vhDesignAutoWeb.dynamic_getDetailFood_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19116
|
+
.then((doc)=>{
|
|
19117
|
+
console.log('dynamic_getDetailFood_fromService', doc);
|
|
19118
|
+
},(error:any)=>{
|
|
19119
|
+
console.log('error', error)
|
|
19120
|
+
})
|
|
19121
|
+
* @param id_sub_or_food
|
|
19122
|
+
* @Promise => obj ={} or null
|
|
19123
|
+
*/
|
|
19124
|
+
dynamic_getDetailFood(id_sub_or_food: any): Promise<unknown>;
|
|
18940
19125
|
/**
|
|
18941
19126
|
* @example:
|
|
18942
19127
|
* this.vhDesignAutoWeb.addDoc_fromDatabase('atw_pages',{name:name: 'Quảng cáo 1'})
|
|
@@ -18977,7 +19162,7 @@ export declare class VhDesignAutoWeb {
|
|
|
18977
19162
|
static_deleteDoc_fromDatabase(database: string, colname: string, id_doc: string): Promise<unknown>;
|
|
18978
19163
|
/**
|
|
18979
19164
|
* @example
|
|
18980
|
-
* this.vhDesignAutoWeb.
|
|
19165
|
+
* this.vhDesignAutoWeb.static_getDoc_fromService('a3y5AmtZEjx0FcRfGP7k', 'categories', '5fb67fda87c0f21d484cbdf3')
|
|
18981
19166
|
.then((doc)=>{
|
|
18982
19167
|
console.log('getDoc_fromService_vhuserweb', doc);
|
|
18983
19168
|
})
|
|
@@ -18997,13 +19182,9 @@ export declare class VhDesignAutoWeb {
|
|
|
18997
19182
|
static_getDoc_fromDatabase(database: string, colname: string, id_doc: string): Promise<unknown>;
|
|
18998
19183
|
/**
|
|
18999
19184
|
* @example:
|
|
19000
|
-
* this.vhDesignAutoWeb.
|
|
19001
|
-
.then(
|
|
19002
|
-
console.log('
|
|
19003
|
-
if(response.vcode === 0){
|
|
19004
|
-
//-----------your code-----------
|
|
19005
|
-
let products = response.data;
|
|
19006
|
-
}
|
|
19185
|
+
* this.vhDesignAutoWeb.static_getDocs_fromService_byFields('uvpDssEj8bizjfseCgAc', webapp_abouts', {name:{$eq:'ten abc'}}, {},{},1)
|
|
19186
|
+
.then(array=>{
|
|
19187
|
+
console.log('array', array);
|
|
19007
19188
|
},(error:any)=>{
|
|
19008
19189
|
console.log('error', error)
|
|
19009
19190
|
})
|
|
@@ -19036,30 +19217,6 @@ export declare class VhDesignAutoWeb {
|
|
|
19036
19217
|
* @return Promise => array(object) = [{},{},..]
|
|
19037
19218
|
*/
|
|
19038
19219
|
static_getDocs_fromDatabase_byFields(database: string, colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
19039
|
-
/**
|
|
19040
|
-
* @example
|
|
19041
|
-
* this.vhDesignAutoWeb.dynamic_getDetailProduct_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19042
|
-
.then((doc)=>{
|
|
19043
|
-
console.log('dynamic_getDetailProduct_fromService', doc);
|
|
19044
|
-
},(error:any)=>{
|
|
19045
|
-
console.log('error', error)
|
|
19046
|
-
})
|
|
19047
|
-
* @param id_sub_or_product
|
|
19048
|
-
* @Promise => obj ={} or null
|
|
19049
|
-
*/
|
|
19050
|
-
dynamic_getDetailProduct_fromService(database: string, id_sub_or_product: any): Promise<unknown>;
|
|
19051
|
-
/**
|
|
19052
|
-
* @example
|
|
19053
|
-
* this.vhDesignAutoWeb.dynamic_getDetailFood_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19054
|
-
.then((doc)=>{
|
|
19055
|
-
console.log('dynamic_getDetailFood_fromService', doc);
|
|
19056
|
-
},(error:any)=>{
|
|
19057
|
-
console.log('error', error)
|
|
19058
|
-
})
|
|
19059
|
-
* @param id_sub_or_food
|
|
19060
|
-
* @Promise => obj ={} or null
|
|
19061
|
-
*/
|
|
19062
|
-
dynamic_getDetailFood_fromService(database: string, id_sub_or_food: any): Promise<unknown>;
|
|
19063
19220
|
/**
|
|
19064
19221
|
* @example
|
|
19065
19222
|
* this.vhDesignAutoWeb.searchList('atw_products',["name", "describe"], 'Điện Thoại', 20, 1)
|