@legalplace/models-v3-types 3.6.0 → 3.8.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.
- package/index.ts +8 -5
- package/package.json +3 -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?:
|
|
114
|
+
grantLevel?: ROLE;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
117
|
};
|
|
@@ -124,6 +124,9 @@ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
|
|
|
124
124
|
customization: {
|
|
125
125
|
disableAutoDefault?: boolean;
|
|
126
126
|
meta?: ConstumizationMeta;
|
|
127
|
+
dataStorage?: {
|
|
128
|
+
extendedDuration?: boolean;
|
|
129
|
+
}
|
|
127
130
|
};
|
|
128
131
|
}
|
|
129
132
|
|
|
@@ -195,7 +198,7 @@ export interface SectionV3 {
|
|
|
195
198
|
/**
|
|
196
199
|
* Section's grant type
|
|
197
200
|
*/
|
|
198
|
-
grantLevel?:
|
|
201
|
+
grantLevel?: ROLE;
|
|
199
202
|
/**
|
|
200
203
|
* Section's title
|
|
201
204
|
*/
|
|
@@ -281,7 +284,7 @@ export interface OptionV3 {
|
|
|
281
284
|
/**
|
|
282
285
|
* Option's grantLevel
|
|
283
286
|
*/
|
|
284
|
-
grantLevel?:
|
|
287
|
+
grantLevel?: ROLE;
|
|
285
288
|
/**
|
|
286
289
|
* Option style
|
|
287
290
|
*/
|
|
@@ -419,7 +422,7 @@ export interface VariableV3 {
|
|
|
419
422
|
/**
|
|
420
423
|
* Variable's grantLevel
|
|
421
424
|
*/
|
|
422
|
-
grantLevel?:
|
|
425
|
+
grantLevel?: ROLE;
|
|
423
426
|
/**
|
|
424
427
|
* Variable's suffix
|
|
425
428
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/models-v3-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"main": "",
|
|
5
5
|
"types": "index",
|
|
6
6
|
"author": "Moncef Hammou <moncef@legalplace.fr>",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"write-schema": "typescript-json-schema tsconfig.json ModelV3 -o schema.json"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"typescript-json-schema": "^0.43.0"
|
|
12
|
+
"typescript-json-schema": "^0.43.0",
|
|
13
|
+
"@legalplace/typeorm-constants": "^2.3.1"
|
|
13
14
|
}
|
|
14
15
|
}
|