ionic-vhframeworks 8.3.7 → 8.3.9
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.
|
@@ -12859,59 +12859,6 @@ export declare class VhQueryAutoWeb {
|
|
|
12859
12859
|
* @return Promise => array = [{_id, name, type},...]
|
|
12860
12860
|
*/
|
|
12861
12861
|
getCanBeClonedBlockOrObject(id_node: string, type: string): Promise<unknown>;
|
|
12862
|
-
/**
|
|
12863
|
-
* @example:
|
|
12864
|
-
* this.vhQueryAutoWeb.CreatePageDetail({name:'Danh mục 1'})
|
|
12865
|
-
.then((page)=>{
|
|
12866
|
-
console.log('CreatePageDetail', page);
|
|
12867
|
-
},(error:any)=>{
|
|
12868
|
-
console.log('error', error);
|
|
12869
|
-
})
|
|
12870
|
-
* @param data
|
|
12871
|
-
* @return Promise => obj = {}
|
|
12872
|
-
* Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
|
|
12873
|
-
*/
|
|
12874
|
-
CreatePageDetail(data: any): Promise<unknown>;
|
|
12875
|
-
/**
|
|
12876
|
-
* @example:
|
|
12877
|
-
* this.vhQueryAutoWeb.updatePageDetail('5fb6780ca2148e09806c5b01', {quantity:400})
|
|
12878
|
-
.then((bool:any)=>{
|
|
12879
|
-
console.log('updatePageDetail', bool);
|
|
12880
|
-
})
|
|
12881
|
-
* @param id_page_detail
|
|
12882
|
-
* @param data
|
|
12883
|
-
* @return Promise => bool = true or false
|
|
12884
|
-
*/
|
|
12885
|
-
updatePageDetail(id_page_detail: string, data: object): Promise<unknown>;
|
|
12886
|
-
/**
|
|
12887
|
-
* @example:
|
|
12888
|
-
* this.vhQueryAutoWeb.deletePageDetail('5fb67fda87c0f21d484cbdf3')
|
|
12889
|
-
.then((bool:any)=>{
|
|
12890
|
-
console.log('deletePageDetail', bool);
|
|
12891
|
-
})
|
|
12892
|
-
* @param id_page_detail
|
|
12893
|
-
* @return Promise => bool = true or false
|
|
12894
|
-
*/
|
|
12895
|
-
deletePageDetail(id_page_detail: string): Promise<unknown>;
|
|
12896
|
-
/**
|
|
12897
|
-
* @example
|
|
12898
|
-
* this.vhQueryAutoWeb.getPageDetail('5fb67fda87c0f21d484cbdf3')
|
|
12899
|
-
.then((page)=>{
|
|
12900
|
-
console.log('getPageDetail', page);
|
|
12901
|
-
})
|
|
12902
|
-
* @param id_page_detail
|
|
12903
|
-
* @return Promise => obj ={} or null
|
|
12904
|
-
*/
|
|
12905
|
-
getPageDetail(id_page_detail: string): Promise<unknown>;
|
|
12906
|
-
/**
|
|
12907
|
-
* @example
|
|
12908
|
-
* this.vhQueryAutoWeb.getPageDetails_byIDPage()
|
|
12909
|
-
.then((pages)=>{
|
|
12910
|
-
console.log('getPageDetails_byIDPage', pages);
|
|
12911
|
-
})
|
|
12912
|
-
* @return Promise => array(object) = [{},{},..]
|
|
12913
|
-
*/
|
|
12914
|
-
getPageDetails_byIDPage(id_page: string): Promise<unknown>;
|
|
12915
12862
|
/**
|
|
12916
12863
|
* @example:
|
|
12917
12864
|
* this.vhQueryAutoWeb.addBlock({name:'Danh mục 1'})
|
|
@@ -13006,97 +12953,6 @@ export declare class VhQueryAutoWeb {
|
|
|
13006
12953
|
* @return Promise => detailblock = {}
|
|
13007
12954
|
*/
|
|
13008
12955
|
getDetailBlock_byBlock(block: any): Promise<unknown>;
|
|
13009
|
-
/**
|
|
13010
|
-
* @example:
|
|
13011
|
-
* this.vhQueryAutoWeb.addFrame({name:'Danh mục 1'})
|
|
13012
|
-
.then((frame)=>{
|
|
13013
|
-
console.log('addFrame', frame);
|
|
13014
|
-
},(error:any)=>{
|
|
13015
|
-
console.log('error', error);
|
|
13016
|
-
})
|
|
13017
|
-
* @param data
|
|
13018
|
-
* @return Promise => obj = {}
|
|
13019
|
-
* Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
|
|
13020
|
-
*/
|
|
13021
|
-
addFrame(data: any): Promise<unknown>;
|
|
13022
|
-
/**
|
|
13023
|
-
* @example:
|
|
13024
|
-
* this.vhQueryAutoWeb.updateFrame('5fb6780ca2148e09806c5b01', {quantity:400})
|
|
13025
|
-
.then((bool:any)=>{
|
|
13026
|
-
console.log('updateFrame', bool);
|
|
13027
|
-
})
|
|
13028
|
-
* @param id_frame
|
|
13029
|
-
* @param data
|
|
13030
|
-
* @return Promise => bool = true or false
|
|
13031
|
-
*/
|
|
13032
|
-
updateFrame(id_frame: string, data: object): Promise<unknown>;
|
|
13033
|
-
/**
|
|
13034
|
-
* @example:
|
|
13035
|
-
* this.vhQueryAutoWeb.deleteFrame('5fb67fda87c0f21d484cbdf3')
|
|
13036
|
-
.then((bool:any)=>{
|
|
13037
|
-
console.log('deleteFrame', bool);
|
|
13038
|
-
})
|
|
13039
|
-
* @param id_frame
|
|
13040
|
-
* @return Promise => bool = true or false
|
|
13041
|
-
*/
|
|
13042
|
-
deleteFrame(id_frame: string): Promise<unknown>;
|
|
13043
|
-
/**
|
|
13044
|
-
* @example
|
|
13045
|
-
* this.vhQueryAutoWeb.getFrame('5fb67fda87c0f21d484cbdf3')
|
|
13046
|
-
.then((block)=>{
|
|
13047
|
-
console.log('getFrame', block);
|
|
13048
|
-
})
|
|
13049
|
-
* @param id_frame
|
|
13050
|
-
* @return Promise => obj ={} or null
|
|
13051
|
-
*/
|
|
13052
|
-
getFrame(id_frame: string): Promise<unknown>;
|
|
13053
|
-
/**
|
|
13054
|
-
* Hàm này sẽ bỏ vì đã có page_detail
|
|
13055
|
-
* @example
|
|
13056
|
-
* this.vhQueryAutoWeb.getFrames_byIDblock()
|
|
13057
|
-
.then((frames)=>{
|
|
13058
|
-
console.log('getFrames_byIDblock', frames);
|
|
13059
|
-
})
|
|
13060
|
-
* @param id_block
|
|
13061
|
-
* @return Promise => array(object) = [{},{},..]
|
|
13062
|
-
*/
|
|
13063
|
-
getFrames_byIDblock(id_block: any): Promise<unknown>;
|
|
13064
|
-
/**
|
|
13065
|
-
* @example
|
|
13066
|
-
* this.vhQueryAutoWeb.getFrames_byIDframe('00Tm41GNYN0aYbAtuncH')
|
|
13067
|
-
.then((frames)=>{
|
|
13068
|
-
console.log('getFrames_byIDframe', frames);
|
|
13069
|
-
})
|
|
13070
|
-
* @param id_block
|
|
13071
|
-
* @return Promise => array(object) = [{},{},..]
|
|
13072
|
-
*/
|
|
13073
|
-
getFrames_byIDframe(id_frame: any): Promise<unknown>;
|
|
13074
|
-
/**
|
|
13075
|
-
* @example
|
|
13076
|
-
* this.vhQueryAutoWeb.getFrames_byFields({id_block:{$eq:'00Tm41GNYN0aYbAtuncH'}}, {}, {}, 0)
|
|
13077
|
-
.then((frames)=>{
|
|
13078
|
-
console.log('getFrames_byFields', frames);
|
|
13079
|
-
})
|
|
13080
|
-
* @param query
|
|
13081
|
-
* @param projection
|
|
13082
|
-
* @param sort
|
|
13083
|
-
* @param limit
|
|
13084
|
-
* @return Promise => array(object) = [{},{},..]
|
|
13085
|
-
*/
|
|
13086
|
-
getFrames_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
13087
|
-
/**
|
|
13088
|
-
* Hàm này trả về 1 frame (có đủ thông tin frame), trong mỗi frame có trường objects (có đủ thông tin từng object)
|
|
13089
|
-
* @example
|
|
13090
|
-
* this.vhQueryAutoWeb.getDetailFrame('00Tm41GNYN0aYbAtuncH')
|
|
13091
|
-
.then((frame)=>{
|
|
13092
|
-
console.log('getDetailFrame', frame);
|
|
13093
|
-
}, error=>{
|
|
13094
|
-
console.log('error', error);
|
|
13095
|
-
})
|
|
13096
|
-
* @param id_frame
|
|
13097
|
-
* @return Promise => page = {}
|
|
13098
|
-
*/
|
|
13099
|
-
getDetailFrame(id_frame: any): Promise<unknown>;
|
|
13100
12956
|
/**
|
|
13101
12957
|
* @example:
|
|
13102
12958
|
* this.vhQueryAutoWeb.addObject({name:'Danh mục 1'})
|
|
@@ -13210,6 +13066,97 @@ export declare class VhQueryAutoWeb {
|
|
|
13210
13066
|
* @return Promise => array(object) = [{},{},..]
|
|
13211
13067
|
*/
|
|
13212
13068
|
getObjects_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
13069
|
+
/**
|
|
13070
|
+
* @example:
|
|
13071
|
+
* this.vhQueryAutoWeb.addFrame({name:'Danh mục 1'})
|
|
13072
|
+
.then((frame)=>{
|
|
13073
|
+
console.log('addFrame', frame);
|
|
13074
|
+
},(error:any)=>{
|
|
13075
|
+
console.log('error', error);
|
|
13076
|
+
})
|
|
13077
|
+
* @param data
|
|
13078
|
+
* @return Promise => obj = {}
|
|
13079
|
+
* Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
|
|
13080
|
+
*/
|
|
13081
|
+
addFrame(data: any): Promise<unknown>;
|
|
13082
|
+
/**
|
|
13083
|
+
* @example:
|
|
13084
|
+
* this.vhQueryAutoWeb.updateFrame('5fb6780ca2148e09806c5b01', {quantity:400})
|
|
13085
|
+
.then((bool:any)=>{
|
|
13086
|
+
console.log('updateFrame', bool);
|
|
13087
|
+
})
|
|
13088
|
+
* @param id_frame
|
|
13089
|
+
* @param data
|
|
13090
|
+
* @return Promise => bool = true or false
|
|
13091
|
+
*/
|
|
13092
|
+
updateFrame(id_frame: string, data: object): Promise<unknown>;
|
|
13093
|
+
/**
|
|
13094
|
+
* @example:
|
|
13095
|
+
* this.vhQueryAutoWeb.deleteFrame('5fb67fda87c0f21d484cbdf3')
|
|
13096
|
+
.then((bool:any)=>{
|
|
13097
|
+
console.log('deleteFrame', bool);
|
|
13098
|
+
})
|
|
13099
|
+
* @param id_frame
|
|
13100
|
+
* @return Promise => bool = true or false
|
|
13101
|
+
*/
|
|
13102
|
+
deleteFrame(id_frame: string): Promise<unknown>;
|
|
13103
|
+
/**
|
|
13104
|
+
* @example
|
|
13105
|
+
* this.vhQueryAutoWeb.getFrame('5fb67fda87c0f21d484cbdf3')
|
|
13106
|
+
.then((block)=>{
|
|
13107
|
+
console.log('getFrame', block);
|
|
13108
|
+
})
|
|
13109
|
+
* @param id_frame
|
|
13110
|
+
* @return Promise => obj ={} or null
|
|
13111
|
+
*/
|
|
13112
|
+
getFrame(id_frame: string): Promise<unknown>;
|
|
13113
|
+
/**
|
|
13114
|
+
* Hàm này sẽ bỏ vì đã có page_detail
|
|
13115
|
+
* @example
|
|
13116
|
+
* this.vhQueryAutoWeb.getFrames_byIDblock()
|
|
13117
|
+
.then((frames)=>{
|
|
13118
|
+
console.log('getFrames_byIDblock', frames);
|
|
13119
|
+
})
|
|
13120
|
+
* @param id_block
|
|
13121
|
+
* @return Promise => array(object) = [{},{},..]
|
|
13122
|
+
*/
|
|
13123
|
+
getFrames_byIDblock(id_block: any): Promise<unknown>;
|
|
13124
|
+
/**
|
|
13125
|
+
* @example
|
|
13126
|
+
* this.vhQueryAutoWeb.getFrames_byIDframe('00Tm41GNYN0aYbAtuncH')
|
|
13127
|
+
.then((frames)=>{
|
|
13128
|
+
console.log('getFrames_byIDframe', frames);
|
|
13129
|
+
})
|
|
13130
|
+
* @param id_block
|
|
13131
|
+
* @return Promise => array(object) = [{},{},..]
|
|
13132
|
+
*/
|
|
13133
|
+
getFrames_byIDframe(id_frame: any): Promise<unknown>;
|
|
13134
|
+
/**
|
|
13135
|
+
* @example
|
|
13136
|
+
* this.vhQueryAutoWeb.getFrames_byFields({id_block:{$eq:'00Tm41GNYN0aYbAtuncH'}}, {}, {}, 0)
|
|
13137
|
+
.then((frames)=>{
|
|
13138
|
+
console.log('getFrames_byFields', frames);
|
|
13139
|
+
})
|
|
13140
|
+
* @param query
|
|
13141
|
+
* @param projection
|
|
13142
|
+
* @param sort
|
|
13143
|
+
* @param limit
|
|
13144
|
+
* @return Promise => array(object) = [{},{},..]
|
|
13145
|
+
*/
|
|
13146
|
+
getFrames_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
13147
|
+
/**
|
|
13148
|
+
* Hàm này trả về 1 frame (có đủ thông tin frame), trong mỗi frame có trường objects (có đủ thông tin từng object)
|
|
13149
|
+
* @example
|
|
13150
|
+
* this.vhQueryAutoWeb.getDetailFrame('00Tm41GNYN0aYbAtuncH')
|
|
13151
|
+
.then((frame)=>{
|
|
13152
|
+
console.log('getDetailFrame', frame);
|
|
13153
|
+
}, error=>{
|
|
13154
|
+
console.log('error', error);
|
|
13155
|
+
})
|
|
13156
|
+
* @param id_frame
|
|
13157
|
+
* @return Promise => page = {}
|
|
13158
|
+
*/
|
|
13159
|
+
getDetailFrame(id_frame: any): Promise<unknown>;
|
|
13213
13160
|
/**
|
|
13214
13161
|
* Hàm này dùng để thêm trường mới (trường động) cho bất kỳ ngành hàng nào
|
|
13215
13162
|
* @example:
|
|
@@ -19386,13 +19333,6 @@ export declare class VhDesignAutoWeb {
|
|
|
19386
19333
|
* @return Promise => bool = true or false
|
|
19387
19334
|
*/
|
|
19388
19335
|
static_deleteDoc_fromDatabase(database: string, colname: string, id_doc: string): Promise<unknown>;
|
|
19389
|
-
/**
|
|
19390
|
-
* @example:
|
|
19391
|
-
* this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
|
|
19392
|
-
* @param block_or_object
|
|
19393
|
-
* @returns
|
|
19394
|
-
*/
|
|
19395
|
-
isCloneBlockOrObject(block_or_object: any): boolean;
|
|
19396
19336
|
/**
|
|
19397
19337
|
* @example
|
|
19398
19338
|
* this.vhDesignAutoWeb.static_getDoc_fromService('a3y5AmtZEjx0FcRfGP7k', 'categories', '5fb67fda87c0f21d484cbdf3')
|
|
@@ -19471,6 +19411,13 @@ export declare class VhDesignAutoWeb {
|
|
|
19471
19411
|
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
19472
19412
|
*/
|
|
19473
19413
|
searchList(colname: string, array_field: any, value: string, sort: object, limit: number, page: number): Promise<unknown>;
|
|
19414
|
+
/**
|
|
19415
|
+
* @example:
|
|
19416
|
+
* this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
|
|
19417
|
+
* @param block_or_object
|
|
19418
|
+
* @returns
|
|
19419
|
+
*/
|
|
19420
|
+
isCloneBlockOrObject(block_or_object: any): boolean;
|
|
19474
19421
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhDesignAutoWeb, never>;
|
|
19475
19422
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhDesignAutoWeb>;
|
|
19476
19423
|
}
|