@legalplace/models-v3-types 3.1.1 → 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 +38 -10
  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,12 +51,30 @@ export interface ModelV3 {
51
51
  };
52
52
  customization: {
53
53
  disableAutoDefaut?: boolean;
54
- extracts?: ExtractV3[];
55
- clientType?: {
56
- type: "ind" | "pro" | "conditionnal";
57
- conditions?: ConditionV3;
58
- }
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;
59
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
+ }
60
78
  }
61
79
 
62
80
  /**
@@ -79,6 +97,16 @@ export interface ExtractV3 {
79
97
  }
80
98
  }
81
99
 
100
+ /**
101
+ * Email Customization
102
+ */
103
+ export interface EmailStep {
104
+ sectionTitle?: string
105
+ icon?: "download"|"continue"
106
+ ctaLabel?: string
107
+ label?: string
108
+ }
109
+
82
110
  /**
83
111
  * Section V3
84
112
  */
@@ -136,7 +164,7 @@ export interface OptionV3 {
136
164
  | 'repeated'
137
165
  | 'box'
138
166
  | 'separator';
139
-
167
+
140
168
  /**
141
169
  * Option's label
142
170
  */
@@ -202,7 +230,7 @@ export interface OptionV3 {
202
230
  */
203
231
  message?: string;
204
232
  };
205
-
233
+
206
234
  /**
207
235
  * MULTIPLE PARAMS
208
236
  */
@@ -224,7 +252,7 @@ export interface OptionV3 {
224
252
  */
225
253
  incrementationStart?: number;
226
254
  };
227
-
255
+
228
256
  /**
229
257
  * TERMSHEET PARAMS
230
258
  */
@@ -238,7 +266,7 @@ export interface OptionV3 {
238
266
  */
239
267
  hide?: boolean;
240
268
  };
241
-
269
+
242
270
  /**
243
271
  * BOX PARAMS
244
272
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/models-v3-types",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "main": "",
5
5
  "types": "index",
6
6
  "author": "Moncef Hammou <moncef@legalplace.fr>",