@legalplace/models-v3-types 3.7.0 → 3.10.0

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.
Files changed (2) hide show
  1. package/index.ts +6 -5
  2. package/package.json +4 -2
package/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Type definitions for model v3
2
2
  // TypeScript Version: 2.1
3
-
3
+ import type { ROLE } from "@legalplace/typeorm-constants"
4
4
  type CONDITION_TYPE =
5
5
  | "selected"
6
6
  | "not-selected"
@@ -111,7 +111,7 @@ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
111
111
  };
112
112
  };
113
113
  conditions?: ConditionV3;
114
- grantLevel?: "ADMIN" | "MANAGER" | "USER" | "GUEST";
114
+ grantLevel?: ROLE;
115
115
  };
116
116
  };
117
117
  };
@@ -198,7 +198,7 @@ export interface SectionV3 {
198
198
  /**
199
199
  * Section's grant type
200
200
  */
201
- grantLevel?: "ADMIN" | "MANAGER" | "USER" | "GUEST";
201
+ grantLevel?: ROLE;
202
202
  /**
203
203
  * Section's title
204
204
  */
@@ -284,7 +284,7 @@ export interface OptionV3 {
284
284
  /**
285
285
  * Option's grantLevel
286
286
  */
287
- grantLevel?: "ADMIN" | "MANAGER" | "USER" | "GUEST";
287
+ grantLevel?: ROLE;
288
288
  /**
289
289
  * Option style
290
290
  */
@@ -418,11 +418,12 @@ export interface VariableV3 {
418
418
  | "hour"
419
419
  | "email"
420
420
  | "user_email"
421
+ | "phone_number"
421
422
  | "mask";
422
423
  /**
423
424
  * Variable's grantLevel
424
425
  */
425
- grantLevel?: "ADMIN" | "MANAGER" | "USER" | "GUEST";
426
+ grantLevel?: ROLE;
426
427
  /**
427
428
  * Variable's suffix
428
429
  */
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@legalplace/models-v3-types",
3
- "version": "3.7.0",
3
+ "version": "3.10.0",
4
4
  "main": "",
5
5
  "types": "index",
6
6
  "author": "Moncef Hammou <moncef@legalplace.fr>",
7
7
  "license": "MIT",
8
8
  "scripts": {
9
+ "build": "tsc",
9
10
  "write-schema": "typescript-json-schema tsconfig.json ModelV3 -o schema.json"
10
11
  },
11
12
  "devDependencies": {
12
- "typescript-json-schema": "^0.43.0"
13
+ "typescript-json-schema": "^0.43.0",
14
+ "@legalplace/typeorm-constants": "^2.3.1"
13
15
  }
14
16
  }