@legalplace/models-v3-types 3.1.2 → 3.2.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 +24 -15
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -14,7 +14,7 @@ export type ConditionV3 = CONDITION_OPERATOR & CONDITION;
14
14
  /**
15
15
  * Model
16
16
  */
17
- export interface ModelV3 {
17
+ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
18
18
  documents: {
19
19
  /**
20
20
  * This interface was referenced by `undefined`'s JSON-Schema definition
@@ -51,14 +51,30 @@ export interface ModelV3 {
51
51
  };
52
52
  customization: {
53
53
  disableAutoDefaut?: boolean;
54
- email?: EmailStep;
55
- preview?: PreviewCustomization;
56
- extracts?: ExtractV3[];
57
- clientType?: {
58
- type: "ind" | "pro" | "conditionnal";
59
- conditions?: ConditionV3;
60
- }
54
+ meta?: ConstumizationMeta
55
+ };
56
+ }
57
+
58
+ /**
59
+ * Default meta customization
60
+ */
61
+ export interface CustomizationMetaDefault {
62
+ [key: string]: any,
63
+ extracts?: ExtractV3[];
64
+ clientType?: {
65
+ type: "ind" | "pro" | "conditionnal";
66
+ conditions?: ConditionV3;
61
67
  };
68
+ isTwoSteps?: boolean;
69
+ isFullWidth?: boolean;
70
+ previewTitle?: string;
71
+ emailSection?: {
72
+ sectionTitle?: string;
73
+ inputLabel?: string;
74
+ warningBlock?: string;
75
+ ctaLabel?: string;
76
+ ctaIcon?: string
77
+ }
62
78
  }
63
79
 
64
80
  /**
@@ -91,13 +107,6 @@ export interface EmailStep {
91
107
  label?: string
92
108
  }
93
109
 
94
- /**
95
- * Preview Customization
96
- */
97
- export interface PreviewCustomization {
98
- title?: string
99
- }
100
-
101
110
  /**
102
111
  * Section V3
103
112
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/models-v3-types",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "main": "",
5
5
  "types": "index",
6
6
  "author": "Moncef Hammou <moncef@legalplace.fr>",