@fairandsmart/consents-ce 2.0.3 → 2.0.6

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.
@@ -15,7 +15,7 @@ var ConsentHelper = /** @class */ (function () {
15
15
  origin: models_1.ConsentOrigin.USER,
16
16
  layoutData: {
17
17
  info: "",
18
- elements: [entry.key],
18
+ blocs: [{ parent: { location: "", key: entry.key } }],
19
19
  type: "layout",
20
20
  },
21
21
  };
@@ -1,4 +1,4 @@
1
- import { ConsentOrigin, FormLayout, PeerContext } from '../models';
1
+ import { ConsentOrigin, FormLayout } from '../models';
2
2
  export declare enum Confirmation {
3
3
  NONE = "NONE",
4
4
  FORM_CODE = "FORM_CODE",
@@ -75,8 +75,6 @@ export interface ConsentContext {
75
75
  notification?: string;
76
76
  /** Whether to send an invitation email upon transaction creation */
77
77
  sendInvitation?: boolean;
78
- /** The specific contexts parameters for peer transactions */
79
- peerContexts?: PeerContext[];
80
78
  }
81
79
  export interface ConsentTransaction {
82
80
  id: string;
@@ -1,4 +1,4 @@
1
- interface HintEntry {
1
+ export interface HintEntry {
2
2
  value: string;
3
3
  context: {
4
4
  [key: string]: string;
@@ -11,4 +11,3 @@ interface HintEntry {
11
11
  };
12
12
  }
13
13
  export declare const CSS_HINTS: HintEntry[];
14
- export {};
@@ -163,35 +163,32 @@ export interface Notice extends ModelData {
163
163
  description: string;
164
164
  associatedProcessing: string[];
165
165
  }
166
- export interface PeerElements {
167
- peer: string;
168
- info?: string;
169
- elements: string[];
170
- defaultNotification?: string;
171
- connectionId?: string;
172
- }
173
- export interface PeerContext {
174
- peer: string;
175
- notification: string;
176
- theme: string;
177
- }
178
166
  export interface FormLayout extends ModelData {
179
167
  type: 'layout';
180
168
  info: string;
181
- elements: string[];
169
+ blocs: FormLayoutBloc[];
170
+ hiddenBlocs?: string[];
182
171
  defaultNotification?: string;
183
- peerElements?: PeerElements[];
184
172
  orientation?: FormLayoutOrientation;
173
+ blocDetailText?: string;
174
+ acceptAllText?: string;
175
+ submitText?: string;
176
+ cancelText?: string;
185
177
  existingElementsVisible?: boolean;
186
178
  validityVisible?: boolean;
187
179
  includeIFrameResizer?: boolean;
188
180
  acceptAllVisible?: boolean;
189
- acceptAllText?: string;
190
- submitText?: string;
191
- cancelText?: string;
192
181
  cancelVisible?: boolean;
193
182
  footerOnTop?: boolean;
194
183
  }
184
+ export interface FormLayoutBloc {
185
+ parent: FormLayoutElement;
186
+ children?: FormLayoutElement[];
187
+ }
188
+ export interface FormLayoutElement {
189
+ location?: string;
190
+ key: string;
191
+ }
195
192
  export declare enum FormLayoutOrientation {
196
193
  HORIZONTAL = "HORIZONTAL",
197
194
  VERTICAL = "VERTICAL"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "2.0.3",
3
+ "version": "2.0.6",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},
@@ -31,12 +31,14 @@
31
31
  "module": "./index.js",
32
32
  "exports": {
33
33
  ".": "./index.js",
34
+ "./css-autocomplete": "./css-autocomplete.js",
34
35
  "./api": "./api.js",
35
36
  "./http": "./http.js",
36
37
  "./common": "./common.js",
37
38
  "./consents": "./consents/index.js",
38
39
  "./keys": "./keys/index.js",
39
40
  "./models": "./models/index.js",
41
+ "./peers": "./peers/index.js",
40
42
  "./receipts": "./receipts/index.js",
41
43
  "./records": "./records/index.js",
42
44
  "./statistics": "./statistics/index.js",
@@ -1,4 +1,5 @@
1
1
  import { SortDirection } from '../common';
2
+ import { ModelDataType } from '../models';
2
3
  export declare enum RecordStates {
3
4
  PENDING = "PENDING",
4
5
  COMMITTED = "COMMITTED",
@@ -66,6 +67,7 @@ export declare enum ExtractionConfigOperator {
66
67
  OR = "OR"
67
68
  }
68
69
  export interface ExtractionConfigCondition {
70
+ type: ModelDataType;
69
71
  key: string;
70
72
  value: string;
71
73
  regexpValue: boolean;
Binary file