@dwtechs/antity-pgsql 0.3.1 → 0.3.2

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/README.md CHANGED
@@ -265,6 +265,7 @@ List of secondary types :
265
265
  | jwt | string |
266
266
  | symbol | string |
267
267
  | email | string |
268
+ | password | string |
268
269
  | regex | string |
269
270
  | ipAddress | string |
270
271
  | slug | string |
@@ -25,6 +25,7 @@ https://github.com/DWTechs/Antity-pgsql.js
25
25
  */
26
26
 
27
27
  import { Entity, Property } from "@dwtechs/antity";
28
+ import { Type } from "@dwtechs/antity";
28
29
  import type { Request, Response, NextFunction } from 'express';
29
30
 
30
31
  export type Operation = "SELECT" | "INSERT" | "UPDATE" | "DELETE";
@@ -37,11 +38,11 @@ export type Filter = {
37
38
  subProps?: string[];
38
39
  matchMode?: MatchMode;
39
40
  };
41
+ export { Type };
40
42
  export type LogicalOperator = "AND" | "OR";
41
43
  export type Comparator = "=" | "<" | ">" | "<=" | ">=" | "<>" | "IS" | "IS NOT" | "IN" | "LIKE" | "NOT LIKE";
42
44
  export type MatchMode = "startsWith" | "endsWith" | "contains" | "notContains" | "equals" | "notEquals" | "between" | "in" | "lt" | "lte" | "gt" | "gte" | "is" | "isNot" | "before" | "after" | "st_contains" | "st_dwithin";
43
45
  export type MappedType = "string" | "number" | "date";
44
- export type Type = "boolean" | "string" | "number" | "integer" | "float" | "even" | "odd" | "positive" | "negative" | "powerOfTwo" | "ascii" | "array" | "jwt" | "symbol" | "email" | "regex" | "json" | "ipAddress" | "slug" | "hexadecimal" | "date" | "timestamp" | "function" | "htmlElement" | "htmlEventAttribute" | "node" | "object" | "geometry";
45
46
  export type Geometry = {
46
47
  lng: number;
47
48
  lat: number;
@@ -55,6 +55,8 @@ function type(type) {
55
55
  return s;
56
56
  case "symbol":
57
57
  return s;
58
+ case "password":
59
+ return s;
58
60
  case "email":
59
61
  return s;
60
62
  case "regex":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dwtechs/antity-pgsql",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Open source library for easy entity management",
5
5
  "keywords": [
6
6
  "entities"
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@dwtechs/checkard": "3.2.3",
40
40
  "@dwtechs/winstan": "0.4.0",
41
- "@dwtechs/antity": "0.9.2",
41
+ "@dwtechs/antity": "0.10.0",
42
42
  "@dwtechs/sparray": "0.2.0",
43
43
  "pg": "8.13.1"
44
44
  },