ionic-vhframeworks 8.7.9 → 8.8.1
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.
|
@@ -273,9 +273,10 @@ export declare class VhAlgorithm {
|
|
|
273
273
|
waitingStack(): Promise<unknown>;
|
|
274
274
|
searchList(value: any, array_list: any, array_field: any): any[];
|
|
275
275
|
/**
|
|
276
|
+
* Ham đổi chuỗi alias có dấu thành không dấu
|
|
276
277
|
* @example:
|
|
277
278
|
* this.vhAlgorithm.changeAlias(alias);
|
|
278
|
-
*
|
|
279
|
+
* @alias: chuỗi có dấu và các ký tự đặc biệt
|
|
279
280
|
*/
|
|
280
281
|
changeAlias(alias: any): any;
|
|
281
282
|
/**
|
|
@@ -1842,7 +1843,7 @@ export declare class VhImage {
|
|
|
1842
1843
|
if(rsp.vcode === 0){
|
|
1843
1844
|
if(options.compress_type == 'no-compress'){
|
|
1844
1845
|
|
|
1845
|
-
}else if(options.compress_type == 'compress-
|
|
1846
|
+
}else if(options.compress_type == 'compress-screen'){
|
|
1846
1847
|
|
|
1847
1848
|
}else if(options.compress_type == 'compress-frame'){
|
|
1848
1849
|
|
|
@@ -1865,10 +1866,10 @@ export declare class VhImage {
|
|
|
1865
1866
|
* @param options: {compress_type, resolution}
|
|
1866
1867
|
* @field compress_type:
|
|
1867
1868
|
* + 'no-compress': Không nén ảnh sau khi tải lên
|
|
1868
|
-
* + 'compress-
|
|
1869
|
+
* + 'compress-screen': Nén ảnh sau khi tải lên, nén ảnh theo tỉ lệ màn hình của mỗi thiết bị
|
|
1869
1870
|
* + 'compress-frame': Nén ảnh sau khi tải lên, nén ảnh theo tỉ lệ màn hình của mỗi khung hình thiết bị
|
|
1870
1871
|
* @field resolution: {} hoặc {width, height} của màn hình hoặc {width, height} của khung hình
|
|
1871
|
-
* @returns Object => obj = {vcode,
|
|
1872
|
+
* @returns Object => obj = {vcode, msg, data, error}
|
|
1872
1873
|
* vcode === 0 : upload ảnh thành công
|
|
1873
1874
|
* vcode === 1 : lỗi import file ảnh
|
|
1874
1875
|
* vcode === 2 : lỗi upload file ảnh
|
|
@@ -12059,9 +12060,9 @@ export declare class VhQueryAutoWeb {
|
|
|
12059
12060
|
*/
|
|
12060
12061
|
deployWebAppsource_toBuild_byEmail(build_email: string, build_password: string): Promise<unknown>;
|
|
12061
12062
|
/**
|
|
12062
|
-
* Hàm này đẩy source webapp từ dự án Autoweb_design lên hosting dự án Autoweb_build
|
|
12063
|
+
* Hàm này đẩy source webapp từ dự án Autoweb_design lên hosting dự án Autoweb_build, dùng database Cloud Mongo của Viethas
|
|
12063
12064
|
* @example:
|
|
12064
|
-
* this.vhQueryAutoWeb.
|
|
12065
|
+
* this.vhQueryAutoWeb.deployWebAppsource_toMongoHosting_byEmail('domain05', 'devdomain05@gmail.com','123456')
|
|
12065
12066
|
.then((rsp:any)=>{
|
|
12066
12067
|
console.log('rsp', rsp);
|
|
12067
12068
|
if(rsp.vcode === 0){
|
|
@@ -12079,7 +12080,48 @@ export declare class VhQueryAutoWeb {
|
|
|
12079
12080
|
* vcode == 0: Message sent to email address successfully
|
|
12080
12081
|
* vcode == 1: Email address does not exist
|
|
12081
12082
|
*/
|
|
12082
|
-
|
|
12083
|
+
deployWebAppsource_toMongoHosting_byEmail(hosting: string, hosting_email: string, hosting_password: string, cloning_options: any): Promise<unknown>;
|
|
12084
|
+
/**
|
|
12085
|
+
* Hàm này đẩy source webapp từ dự án Autoweb_design lên hosting dự án Autoweb_build, dùng database MySQL của hosting
|
|
12086
|
+
* @example:
|
|
12087
|
+
* this.vhQueryAutoWeb.deployWebAppsource_toMySqlHosting_byEmail('domain05', 'devdomain05@gmail.com','123456')
|
|
12088
|
+
.then((rsp:any)=>{
|
|
12089
|
+
console.log('rsp', rsp);
|
|
12090
|
+
if(rsp.vcode === 0){
|
|
12091
|
+
//-----------your code 0-----------
|
|
12092
|
+
}else if(rsp.vcode === 1){
|
|
12093
|
+
//-----------your code 1-----------
|
|
12094
|
+
}
|
|
12095
|
+
},(error:any)=>{
|
|
12096
|
+
console.log('error', error)
|
|
12097
|
+
})
|
|
12098
|
+
* @param hosting_email
|
|
12099
|
+
* @param hosting_password
|
|
12100
|
+
* @param cloning_options = {source_webapp:none/renew/overwrite, template_webapp: none/renew/overwrite, commondata_webapp: none/renew/overwrite, database_webapp: none/renew/overwrite}
|
|
12101
|
+
* @return Promise object => response = {vcode, msg}
|
|
12102
|
+
* vcode == 0: Message sent to email address successfully
|
|
12103
|
+
* vcode == 1: Email address does not exist
|
|
12104
|
+
*/
|
|
12105
|
+
deployWebAppsource_toMySqlHosting_byEmail(hosting: string, hosting_email: string, hosting_password: string, cloning_options: any): Promise<unknown>;
|
|
12106
|
+
/**
|
|
12107
|
+
* Hàm này tải source webapp từ dự án Autoweb_design về dạng package, chép lên hosting, chạy url cài đặt, sau đó vào website bình thường
|
|
12108
|
+
* @example:
|
|
12109
|
+
* this.vhQueryAutoWeb.deployWebAppsource_toMySqlHosting_byEmail()
|
|
12110
|
+
.then((rsp:any)=>{
|
|
12111
|
+
console.log('rsp', rsp);
|
|
12112
|
+
if(rsp.vcode === 0){
|
|
12113
|
+
//-----------your code 0-----------
|
|
12114
|
+
let url = rsp.data;
|
|
12115
|
+
window.open(url);
|
|
12116
|
+
}else if(rsp.vcode === 1){
|
|
12117
|
+
//-----------your code 1-----------
|
|
12118
|
+
}
|
|
12119
|
+
},(error:any)=>{
|
|
12120
|
+
console.log('error', error)
|
|
12121
|
+
})
|
|
12122
|
+
* @return Promise object => response = {vcode, msg, data}
|
|
12123
|
+
*/
|
|
12124
|
+
deployWebAppsource_toPackage(): Promise<unknown>;
|
|
12083
12125
|
/**
|
|
12084
12126
|
* Hàm này tạo tài khoản hosting cho dự án Autoweb_Build
|
|
12085
12127
|
* @example:
|
|
@@ -13339,6 +13381,19 @@ export declare class VhQueryAutoWeb {
|
|
|
13339
13381
|
* @return Promise => array(object) = [{},{},..]
|
|
13340
13382
|
*/
|
|
13341
13383
|
getNewFields_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
13384
|
+
/**
|
|
13385
|
+
* @example
|
|
13386
|
+
* this.vhQueryAutoWeb.getNewFields_byFields_byPages({id_object:{$eq:'00Tm41GNYN0aYbAtuncH'}}, {}, {}, 0,0)
|
|
13387
|
+
.then((newfields)=>{
|
|
13388
|
+
console.log('getNewFields_byFields_byPages', newfields);
|
|
13389
|
+
})
|
|
13390
|
+
* @param query
|
|
13391
|
+
* @param projection
|
|
13392
|
+
* @param sort
|
|
13393
|
+
* @param limit
|
|
13394
|
+
* @return Promise => array(object) = [{},{},..]
|
|
13395
|
+
*/
|
|
13396
|
+
getNewFields_byFields_byPages(query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
13342
13397
|
/**
|
|
13343
13398
|
* @example:
|
|
13344
13399
|
* this.vhQueryAutoWeb.addProduct({name:'Sản phẩm 1'})
|
|
@@ -14797,8 +14852,9 @@ export declare class VhQueryAutoWeb {
|
|
|
14797
14852
|
*/
|
|
14798
14853
|
getCategorys_byFields(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14799
14854
|
/**
|
|
14800
|
-
*
|
|
14801
|
-
*
|
|
14855
|
+
* Lấy về cây danh mục phân cấp mới theo id_father_category
|
|
14856
|
+
* @example:▲
|
|
14857
|
+
* this.vhQueryAutoWeb.getCategorySteps_byIdFatherCategory("5QKS9fq2rsl4egOJCf7h", {}, {},{},6,1)
|
|
14802
14858
|
.then(response=>{
|
|
14803
14859
|
console.log('response', response);
|
|
14804
14860
|
if(response.vcode === 0){
|
|
@@ -14808,6 +14864,7 @@ export declare class VhQueryAutoWeb {
|
|
|
14808
14864
|
},(error:any)=>{
|
|
14809
14865
|
console.log('error', error)
|
|
14810
14866
|
})
|
|
14867
|
+
* @param query
|
|
14811
14868
|
* @param id_father_category: chuối giá trị "5QKS9fq2rsl4egOJCf7h" (một nhánh) hoặc chuỗi trống "" (cả cây danh mục)
|
|
14812
14869
|
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
14813
14870
|
* @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
|
|
@@ -14815,7 +14872,7 @@ export declare class VhQueryAutoWeb {
|
|
|
14815
14872
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
14816
14873
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14817
14874
|
*/
|
|
14818
|
-
getCategorySteps_byIdFatherCategory(id_father_category: string, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14875
|
+
getCategorySteps_byIdFatherCategory(id_father_category: string, query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14819
14876
|
/**
|
|
14820
14877
|
* Lấy về cây danh mục phân cấp mới theo các phần tử nhánh và lá trong mảng IdCategoryArray
|
|
14821
14878
|
* @example:
|
|
@@ -19227,7 +19284,7 @@ export declare class VhDesignAutoWeb {
|
|
|
19227
19284
|
deployWebAppsource_toBuild_byEmail(database: string, build_email: string, build_password: string): Promise<any>;
|
|
19228
19285
|
/**
|
|
19229
19286
|
* @example:
|
|
19230
|
-
* this.vhDesignAutoWeb.
|
|
19287
|
+
* this.vhDesignAutoWeb.deployWebAppsource_toMongoHosting_byEmail('nlQaKuDIMi6M7XtwmNMk', 'domain05', 'devhosting@gmail.com', '***')
|
|
19231
19288
|
.then((response:any)=>{
|
|
19232
19289
|
console.log('response', response);
|
|
19233
19290
|
if(response.vcode === 0){
|
|
@@ -19245,7 +19302,29 @@ export declare class VhDesignAutoWeb {
|
|
|
19245
19302
|
* vcode == 0: Message sent to email address successfully
|
|
19246
19303
|
* vcode == 1: Email address does not exist
|
|
19247
19304
|
*/
|
|
19248
|
-
|
|
19305
|
+
deployWebAppsource_toMongoHosting_byEmail(database: string, hosting: string, hosting_email: string, hosting_password: string, cloning_options: any): Promise<any>;
|
|
19306
|
+
/**
|
|
19307
|
+
* @example:
|
|
19308
|
+
* this.vhDesignAutoWeb.deployWebAppsource_toMySqlHosting_byEmail('nlQaKuDIMi6M7XtwmNMk', 'domain05', 'devhosting@gmail.com', '***')
|
|
19309
|
+
.then((response:any)=>{
|
|
19310
|
+
console.log('response', response);
|
|
19311
|
+
if(response.vcode === 0){
|
|
19312
|
+
//-----------your code 0-----------
|
|
19313
|
+
}else if(response.vcode === 1){
|
|
19314
|
+
//-----------your code 1-----------
|
|
19315
|
+
}
|
|
19316
|
+
},(error:any)=>{
|
|
19317
|
+
console.log('error', error)
|
|
19318
|
+
})
|
|
19319
|
+
* @param email
|
|
19320
|
+
* @param password
|
|
19321
|
+
* @param cloning_options = {source_webapp:none/renew/overwrite, template_webapp: none/renew/overwrite, database_webapp: none/renew/overwrite}
|
|
19322
|
+
* @return Promise object => response = {vcode, msg}
|
|
19323
|
+
* vcode == 0: Message sent to email address successfully
|
|
19324
|
+
* vcode == 1: Email address does not exist
|
|
19325
|
+
*/
|
|
19326
|
+
deployWebAppsource_toMySqlHosting_byEmail(database: string, hosting: string, hosting_email: string, hosting_password: string, cloning_options: any): Promise<any>;
|
|
19327
|
+
deployWebAppsource_toPackage(database: string): Promise<any>;
|
|
19249
19328
|
/**
|
|
19250
19329
|
* @example:
|
|
19251
19330
|
* this.vhDesignAutoWeb.forgotPasswordEndUser_byEmail('salesf110@gmail.com','h674567')
|
|
@@ -20022,6 +20101,23 @@ export declare class VhDesignAutoWeb {
|
|
|
20022
20101
|
* @return Promise => array(object) = [{},{},..]
|
|
20023
20102
|
*/
|
|
20024
20103
|
static_getDocs_fromService_byFields(database: string, colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
20104
|
+
/**
|
|
20105
|
+
* @example:
|
|
20106
|
+
* this.vhDesignAutoWeb.static_getDocs_fromService_byFields_byPages('uvpDssEj8bizjfseCgAc', webapp_abouts', {name:{$eq:'ten abc'}}, {},{},1)
|
|
20107
|
+
.then(array=>{
|
|
20108
|
+
console.log('array', array);
|
|
20109
|
+
},(error:any)=>{
|
|
20110
|
+
console.log('error', error)
|
|
20111
|
+
})
|
|
20112
|
+
* @param colname
|
|
20113
|
+
* @param query
|
|
20114
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
20115
|
+
* @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
|
|
20116
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
20117
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
20118
|
+
* @return Promise => array(object) = [{},{},..]
|
|
20119
|
+
*/
|
|
20120
|
+
static_getDocs_fromService_byFields_byPages(database: string, colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
20025
20121
|
/**
|
|
20026
20122
|
* @example:
|
|
20027
20123
|
* this.vhDesignAutoWeb.getDocs_byFields_fromService_vhuserweb('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|