@legalplace/models-v3-types 3.4.2 → 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 +45 -0
- 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
|
*/
|
|
@@ -320,6 +328,10 @@ export interface VariableV3 {
|
|
|
320
328
|
* Variable's label
|
|
321
329
|
*/
|
|
322
330
|
label: string;
|
|
331
|
+
/**
|
|
332
|
+
* Variable's Fallback Label
|
|
333
|
+
*/
|
|
334
|
+
fallbackLabel?: string;
|
|
323
335
|
/**
|
|
324
336
|
* Variable's type
|
|
325
337
|
*/
|
|
@@ -474,6 +486,7 @@ export interface VariableV3 {
|
|
|
474
486
|
hide?: boolean;
|
|
475
487
|
};
|
|
476
488
|
}
|
|
489
|
+
|
|
477
490
|
/**
|
|
478
491
|
* A Prefilling, is a conditionned text placeholder/example used to fill a textarea according to different conditions
|
|
479
492
|
*/
|
|
@@ -487,3 +500,35 @@ export interface PrefillingV3 {
|
|
|
487
500
|
*/
|
|
488
501
|
conditions?: ConditionV3;
|
|
489
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
|
}
|