rads-db 3.0.11 → 3.0.13

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.
package/dist/index.d.ts CHANGED
@@ -112,6 +112,8 @@ interface UiFieldDecoratorArgs {
112
112
  icon?: string;
113
113
  /** Free text - hint to display under editor field in UI */
114
114
  hint?: string;
115
+ /** If true, field is hidden from the rads-ui */
116
+ isHidden?: boolean;
115
117
  /** TODO: Preferred component to display or edit this value */
116
118
  component?: string;
117
119
  }
@@ -142,6 +144,8 @@ interface UiDecoratorArgs<T = any> {
142
144
  searchOperator?: 'startsWith' | 'istartsWith' | 'contains' | 'icontains';
143
145
  /** Defines section name in rads-ui where this entity will be grouped under */
144
146
  group?: string;
147
+ /** If true, field is hidden from the rads-ui */
148
+ isHidden?: boolean;
145
149
  }
146
150
  interface EntityDecoratorArgs {
147
151
  driver?: string;
@@ -11,7 +11,9 @@ var _default = () => {
11
11
  if (!context.schema[context.typeName]?.fields?.isDeleted) return;
12
12
  if (args.where.isDeleted || args.where.isDeleted_in) return;
13
13
  args.where._and = [...(args.where._and || []), {
14
- isDeleted: false
14
+ _not: {
15
+ isDeleted: true
16
+ }
15
17
  }];
16
18
  }
17
19
  };
@@ -6,7 +6,7 @@ export default () => {
6
6
  return;
7
7
  if (args.where.isDeleted || args.where.isDeleted_in)
8
8
  return;
9
- args.where._and = [...args.where._and || [], { isDeleted: false }];
9
+ args.where._and = [...args.where._and || [], { _not: { isDeleted: true } }];
10
10
  }
11
11
  };
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.0.11",
3
+ "version": "3.0.13",
4
4
  "files": [
5
5
  "dist",
6
6
  "drivers",