asv-hlps 1.3.72 → 1.3.74

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.
@@ -17,5 +17,6 @@ export declare class HlpCrud {
17
17
  update(id: number, tob: any, model: typeof Entity | any): any;
18
18
  save(tob: any, model: typeof Entity | any): any;
19
19
  findById(id: string | number, model: typeof Entity | any): any;
20
+ toLowerCase(tob: any): void;
20
21
  private checkObj;
21
22
  }
@@ -184,6 +184,11 @@ class HlpCrud {
184
184
  }
185
185
  catch (error) { }
186
186
  }
187
+ toLowerCase(tob) {
188
+ tob.code = tob.code ? tob.code.toLowerCase() : null;
189
+ tob.iconName = tob.iconName ? tob.iconName.toLowerCase() : null;
190
+ tob.iconPack = tob.iconPack ? tob.iconPack.toLowerCase() : null;
191
+ }
187
192
  checkObj(obj, reqId, res) {
188
193
  if (!obj) {
189
194
  return res.send(true);
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export interface Capacity extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export default interface Color {
2
+ id?: number;
3
+ nameFr?: string;
4
+ nameEn?: string;
5
+ hexa: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export default interface Matter extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export default interface Measure extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export default interface Size extends NaAc {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,8 @@ export { default as NaAc } from "./NaAc";
5
5
  export { default as NaCoAc } from "./NaCoAc";
6
6
  export { default as NaCoShortAc } from "./NaCoShortAc";
7
7
  export { default as OpDate } from "./OpDate";
8
+ export { default as Matter } from "./Matter";
9
+ export { default as Measure } from "./Measure";
10
+ export { default as Size } from "./Size";
11
+ export { default as Color } from "./Color";
8
12
  export { IParam };
@@ -17,5 +17,6 @@ export declare class HlpCrud {
17
17
  update(id: number, tob: any, model: typeof Entity | any): any;
18
18
  save(tob: any, model: typeof Entity | any): any;
19
19
  findById(id: string | number, model: typeof Entity | any): any;
20
+ toLowerCase(tob: any): void;
20
21
  private checkObj;
21
22
  }
@@ -181,6 +181,11 @@ export class HlpCrud {
181
181
  }
182
182
  catch (error) { }
183
183
  }
184
+ toLowerCase(tob) {
185
+ tob.code = tob.code ? tob.code.toLowerCase() : null;
186
+ tob.iconName = tob.iconName ? tob.iconName.toLowerCase() : null;
187
+ tob.iconPack = tob.iconPack ? tob.iconPack.toLowerCase() : null;
188
+ }
184
189
  checkObj(obj, reqId, res) {
185
190
  if (!obj) {
186
191
  return res.send(true);
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export interface Capacity extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export default interface Color {
2
+ id?: number;
3
+ nameFr?: string;
4
+ nameEn?: string;
5
+ hexa: string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export default interface Matter extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export default interface Measure extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import NaAc from "./NaAc";
2
+ export default interface Size extends NaAc {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -5,4 +5,8 @@ export { default as NaAc } from "./NaAc";
5
5
  export { default as NaCoAc } from "./NaCoAc";
6
6
  export { default as NaCoShortAc } from "./NaCoShortAc";
7
7
  export { default as OpDate } from "./OpDate";
8
+ export { default as Matter } from "./Matter";
9
+ export { default as Measure } from "./Measure";
10
+ export { default as Size } from "./Size";
11
+ export { default as Color } from "./Color";
8
12
  export { IParam };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.72",
3
+ "version": "1.3.74",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",