@fairandsmart/consents-ce 1.4.1 → 1.4.5

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.
@@ -1,4 +1,4 @@
1
- import { ConsentOrigin, FormLayout } from '../models';
1
+ import { ConsentOrigin, FormLayout, PeerContext } from '../models';
2
2
  export declare enum Confirmation {
3
3
  NONE = "NONE",
4
4
  FORM_CODE = "FORM_CODE",
@@ -71,8 +71,10 @@ export interface ConsentContext {
71
71
  };
72
72
  /** The reference to the 'theme' that will apply */
73
73
  theme?: string;
74
- /** The reference to the 'email' mode for notification */
74
+ /** The reference to the 'email' model for notification (this overrides the layout notification model) */
75
75
  notification?: string;
76
+ /** The specific contexts parameters for peer transactions */
77
+ peerContexts?: PeerContext[];
76
78
  }
77
79
  export interface ConsentTransaction {
78
80
  id: string;
package/index.d.ts CHANGED
@@ -12,4 +12,4 @@ export * as SystemResource from './system';
12
12
  export * as TokensResource from './tokens';
13
13
  export * as UsersResource from './users';
14
14
  export { ConsentCollector } from './forms';
15
- export declare const version = "v1.3.3";
15
+ export declare const version = "v1.4.4 (ce)";
package/index.js CHANGED
@@ -43,4 +43,4 @@ exports.TokensResource = __importStar(require("./tokens"));
43
43
  exports.UsersResource = __importStar(require("./users"));
44
44
  var forms_1 = require("./forms");
45
45
  Object.defineProperty(exports, "ConsentCollector", { enumerable: true, get: function () { return forms_1.ConsentCollector; } });
46
- exports.version = "v1.3.3";
46
+ exports.version = "v1.4.4 (ce)";
@@ -146,15 +146,20 @@ export interface Email extends ModelData {
146
146
  }
147
147
  export interface PeerElements {
148
148
  peer: string;
149
- info: string;
149
+ info?: string;
150
150
  elements: string[];
151
- notification: string;
151
+ defaultNotification?: string;
152
152
  connectionId?: string;
153
153
  }
154
+ export interface PeerContext {
155
+ peer: string;
156
+ notification: string;
157
+ }
154
158
  export interface FormLayout extends ModelData {
155
159
  type: 'layout';
156
160
  info: string;
157
161
  elements: string[];
162
+ defaultNotification?: string;
158
163
  peerElements?: PeerElements[];
159
164
  orientation?: FormLayoutOrientation;
160
165
  existingElementsVisible?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "1.4.1",
3
+ "version": "1.4.5",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},