namirasoft-node 1.4.48 → 1.4.50

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.
@@ -14,64 +14,88 @@ export interface IFilterableDatabase<WhereOptions> {
14
14
  getIn: (column_name: string, not: boolean, values: string[]) => {
15
15
  condition: WhereOptions;
16
16
  partial: boolean;
17
- required: boolean;
17
+ independant?: {
18
+ not: boolean;
19
+ };
18
20
  };
19
21
  getLike: (column_name: string, not: boolean, value: string) => {
20
22
  condition: WhereOptions;
21
23
  partial: boolean;
22
- required: boolean;
24
+ independant?: {
25
+ not: boolean;
26
+ };
23
27
  };
24
28
  getRegex: (column_name: string, not: boolean, value: string) => {
25
29
  condition: WhereOptions;
26
30
  partial: boolean;
27
- required: boolean;
31
+ independant?: {
32
+ not: boolean;
33
+ };
28
34
  };
29
35
  getEmpty: (column_name: string, not: boolean) => {
30
36
  condition: WhereOptions;
31
37
  partial: boolean;
32
- required: boolean;
38
+ independant?: {
39
+ not: boolean;
40
+ };
33
41
  };
34
42
  getExists: (column_name: string, not: boolean) => {
35
43
  condition: WhereOptions;
36
44
  partial: boolean;
37
- required: boolean;
45
+ independant?: {
46
+ not: boolean;
47
+ };
38
48
  };
39
49
  getIncludes: (column_name: string, not: boolean, value: string[]) => {
40
50
  condition: WhereOptions;
41
51
  partial: boolean;
42
- required: boolean;
52
+ independant?: {
53
+ not: boolean;
54
+ };
43
55
  };
44
56
  getStartsWith: (column_name: string, not: boolean, value: string) => {
45
57
  condition: WhereOptions;
46
58
  partial: boolean;
47
- required: boolean;
59
+ independant?: {
60
+ not: boolean;
61
+ };
48
62
  };
49
63
  getEndsWith: (column_name: string, not: boolean, value: string) => {
50
64
  condition: WhereOptions;
51
65
  partial: boolean;
52
- required: boolean;
66
+ independant?: {
67
+ not: boolean;
68
+ };
53
69
  };
54
70
  getLT: (column_name: string, value: any) => {
55
71
  condition: WhereOptions;
56
72
  partial: boolean;
57
- required: boolean;
73
+ independant?: {
74
+ not: boolean;
75
+ };
58
76
  };
59
77
  getLTE: (column_name: string, value: any) => {
60
78
  condition: WhereOptions;
61
79
  partial: boolean;
62
- required: boolean;
80
+ independant?: {
81
+ not: boolean;
82
+ };
63
83
  };
64
84
  getGT: (column_name: string, value: any) => {
65
85
  condition: WhereOptions;
66
86
  partial: boolean;
67
- required: boolean;
87
+ independant?: {
88
+ not: boolean;
89
+ };
68
90
  };
69
91
  getGTE: (column_name: string, value: any) => {
70
92
  condition: WhereOptions;
71
93
  partial: boolean;
72
- required: boolean;
94
+ independant?: {
95
+ not: boolean;
96
+ };
73
97
  };
74
- getInSelect: (t: BaseTable<BaseDatabase, any>, not: boolean, join: BaseDatabase_FilterTable<WhereOptions>, conditions: WhereOptions[]) => WhereOptions;
98
+ getInSelect: (t: BaseTable<BaseDatabase, any>, not: boolean, join: BaseDatabase_FilterTable<WhereOptions>, conditions: WhereOptions[]) => Promise<WhereOptions>;
75
99
  }
76
100
  export declare abstract class BaseDatabase {
77
101
  private tables;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.48",
11
+ "version": "1.4.50",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -15,18 +15,18 @@ export interface BaseDatabase_FilterTable<WhereOptions>
15
15
 
16
16
  export interface IFilterableDatabase<WhereOptions>
17
17
  {
18
- getIn: (column_name: string, not: boolean, values: string[]) => { condition: WhereOptions, partial: boolean, required: boolean };
19
- getLike: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, required: boolean };
20
- getRegex: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, required: boolean };
21
- getEmpty: (column_name: string, not: boolean) => { condition: WhereOptions, partial: boolean, required: boolean };
22
- getExists: (column_name: string, not: boolean) => { condition: WhereOptions, partial: boolean, required: boolean };
23
- getIncludes: (column_name: string, not: boolean, value: string[]) => { condition: WhereOptions, partial: boolean, required: boolean };
24
- getStartsWith: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, required: boolean };
25
- getEndsWith: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, required: boolean };
26
- getLT: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, required: boolean };
27
- getLTE: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, required: boolean };
28
- getGT: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, required: boolean };
29
- getGTE: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, required: boolean };
18
+ getIn: (column_name: string, not: boolean, values: string[]) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
19
+ getLike: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
20
+ getRegex: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
21
+ getEmpty: (column_name: string, not: boolean) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
22
+ getExists: (column_name: string, not: boolean) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
23
+ getIncludes: (column_name: string, not: boolean, value: string[]) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
24
+ getStartsWith: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
25
+ getEndsWith: (column_name: string, not: boolean, value: string) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
26
+ getLT: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
27
+ getLTE: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
28
+ getGT: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
29
+ getGTE: (column_name: string, value: any) => { condition: WhereOptions, partial: boolean, independant?: { not: boolean } };
30
30
  getInSelect: (t: BaseTable<BaseDatabase, any>, not: boolean, join: BaseDatabase_FilterTable<WhereOptions>, conditions: WhereOptions[]) => Promise<WhereOptions>;
31
31
  }
32
32