@legalplace/models-v3-types 3.4.1 → 3.4.3
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 +49 -1
- package/package.json +8 -2
- package/schema.json +875 -74
- package/yarn.lock +276 -0
package/index.ts
CHANGED
|
@@ -29,6 +29,14 @@ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
|
|
|
29
29
|
* Document's sections list
|
|
30
30
|
*/
|
|
31
31
|
sections: SectionV3[];
|
|
32
|
+
/**
|
|
33
|
+
* Document's PDF link
|
|
34
|
+
*/
|
|
35
|
+
pdf?: {
|
|
36
|
+
id: string
|
|
37
|
+
form: FDFFormV3
|
|
38
|
+
thumbnails: string[]
|
|
39
|
+
}
|
|
32
40
|
/**
|
|
33
41
|
* Document's params
|
|
34
42
|
*/
|
|
@@ -37,7 +45,10 @@ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
|
|
|
37
45
|
pdf?: boolean;
|
|
38
46
|
docx?: boolean;
|
|
39
47
|
};
|
|
40
|
-
|
|
48
|
+
visibility?: {
|
|
49
|
+
[key: string]: boolean | undefined;
|
|
50
|
+
private?: boolean;
|
|
51
|
+
};
|
|
41
52
|
conditions?: ConditionV3;
|
|
42
53
|
grantLevel?: 'ADMIN' | 'MANAGER' | 'USER' | 'GUEST';
|
|
43
54
|
};
|
|
@@ -317,6 +328,10 @@ export interface VariableV3 {
|
|
|
317
328
|
* Variable's label
|
|
318
329
|
*/
|
|
319
330
|
label: string;
|
|
331
|
+
/**
|
|
332
|
+
* Variable's Fallback Label
|
|
333
|
+
*/
|
|
334
|
+
fallbackLabel?: string;
|
|
320
335
|
/**
|
|
321
336
|
* Variable's type
|
|
322
337
|
*/
|
|
@@ -471,6 +486,7 @@ export interface VariableV3 {
|
|
|
471
486
|
hide?: boolean;
|
|
472
487
|
};
|
|
473
488
|
}
|
|
489
|
+
|
|
474
490
|
/**
|
|
475
491
|
* A Prefilling, is a conditionned text placeholder/example used to fill a textarea according to different conditions
|
|
476
492
|
*/
|
|
@@ -484,3 +500,35 @@ export interface PrefillingV3 {
|
|
|
484
500
|
*/
|
|
485
501
|
conditions?: ConditionV3;
|
|
486
502
|
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* FDF
|
|
506
|
+
*/
|
|
507
|
+
export interface FDFFormV3 {
|
|
508
|
+
inputs: FDFInputsV3
|
|
509
|
+
boxes: FDFBoxesV3
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* FDF Inputs
|
|
514
|
+
*/
|
|
515
|
+
export interface FDFInputsV3 {
|
|
516
|
+
name: string
|
|
517
|
+
page: number
|
|
518
|
+
variables: {
|
|
519
|
+
id: number,
|
|
520
|
+
conditions?: ConditionV3
|
|
521
|
+
}[]
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* FDF Boxes
|
|
526
|
+
*/
|
|
527
|
+
export interface FDFBoxesV3 {
|
|
528
|
+
name: string
|
|
529
|
+
page: number
|
|
530
|
+
options: {
|
|
531
|
+
id: number,
|
|
532
|
+
conditions?: ConditionV3
|
|
533
|
+
}[]
|
|
534
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/models-v3-types",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"main": "",
|
|
5
5
|
"types": "index",
|
|
6
6
|
"author": "Moncef Hammou <moncef@legalplace.fr>",
|
|
7
|
-
"license": "MIT"
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"write-schema": "typescript-json-schema tsconfig.json ModelV3 -o schema.json"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"typescript-json-schema": "^0.43.0"
|
|
13
|
+
}
|
|
8
14
|
}
|