@legalplace/models-v3-types 3.1.2 → 3.2.1
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 +25 -16
- 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
|
|
@@ -50,15 +50,31 @@ export interface ModelV3 {
|
|
|
50
50
|
[k: string]: VariableV3;
|
|
51
51
|
};
|
|
52
52
|
customization: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
disableAutoDefault?: boolean;
|
|
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
|
*/
|