ztechno_core 0.0.33 → 0.0.34

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.
@@ -12,6 +12,17 @@ export declare class ZSqlService {
12
12
  on(eventName: 'log', listener: ZOnLogCallback): void;
13
13
  private triggerEvent;
14
14
  private getPoolConnection;
15
+ query(
16
+ sql: string,
17
+ params?:
18
+ | any[]
19
+ | {
20
+ [key: string]: any;
21
+ },
22
+ ): Promise<{
23
+ insertId: number;
24
+ affectedRows: number;
25
+ }>;
15
26
  query<T = any>(
16
27
  sql: string,
17
28
  params?:
@@ -19,10 +30,6 @@ export declare class ZSqlService {
19
30
  | {
20
31
  [key: string]: any;
21
32
  },
22
- ): Promise<
23
- T[] & {
24
- insertId?: number;
25
- }
26
- >;
33
+ ): Promise<T>;
27
34
  }
28
35
  export {};
@@ -41,11 +41,10 @@ export declare class ZTranslateService {
41
41
  key: string,
42
42
  lang: string,
43
43
  data: TranslateData,
44
- ): Promise<
45
- any[] & {
46
- insertId?: number;
47
- }
48
- >;
44
+ ): Promise<{
45
+ insertId: number;
46
+ affectedRows: number;
47
+ }>;
49
48
  private checkLocalCache;
50
49
  private insertLocalCache;
51
50
  private clearLocalCache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",