@fairandsmart/consents-ce 1.3.21 → 1.4.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.
package/consents/api.js CHANGED
@@ -56,6 +56,7 @@ function getSubmitFormPreview(ctx, lang, options) {
56
56
  responseType: "text",
57
57
  headers: {
58
58
  "Content-Type": "application/json",
59
+ Accept: "text/html",
59
60
  "Accept-Language": lang,
60
61
  },
61
62
  options: options,
@@ -213,6 +213,7 @@ export interface CreateModelDto {
213
213
  export interface UpdateModelDto {
214
214
  name: string;
215
215
  description: string;
216
+ shared?: boolean;
216
217
  }
217
218
  export interface ModelVersionDtoLight<T extends ModelData = ModelData> {
218
219
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairandsmart/consents-ce",
3
- "version": "1.3.21",
3
+ "version": "1.4.0",
4
4
  "description": "TypeScript mappings for the Fair&Smart's Right Consents Community features",
5
5
  "sideEffects": false,
6
6
  "scripts": {},
package/peers/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { RCApiOptions } from '../http';
2
2
  import { Observable } from 'rxjs';
3
- import { Peer } from './interfaces';
3
+ import { CreatePeerDto, Peer } from './interfaces';
4
4
  export declare function listPeers(options?: RCApiOptions): Observable<Peer[]>;
5
- export declare function createPeer(peer: Peer, options?: RCApiOptions): Observable<Peer>;
5
+ export declare function createPeer(peerDto: CreatePeerDto, options?: RCApiOptions): Observable<Peer>;
6
6
  export declare function getPeer(id: string, options?: RCApiOptions): Observable<void>;
7
7
  export declare function updatePeer(id: string, peer: Peer, options?: RCApiOptions): Observable<Peer>;
8
8
  export declare function deletePeer(id: string, options?: RCApiOptions): Observable<void>;
package/peers/api.js CHANGED
@@ -15,11 +15,11 @@ function listPeers(options) {
15
15
  });
16
16
  }
17
17
  exports.listPeers = listPeers;
18
- function createPeer(peer, options) {
18
+ function createPeer(peerDto, options) {
19
19
  return api_1.RightConsents.http({
20
20
  method: "POST",
21
21
  url: "".concat(api_1.RightConsents.config.apiRoot, "/peers"),
22
- body: peer,
22
+ body: peerDto,
23
23
  options: options,
24
24
  });
25
25
  }
@@ -1,6 +1,12 @@
1
+ export interface CreatePeerDto {
2
+ name: string;
3
+ url: string;
4
+ apiKey: string;
5
+ withCounterPart: boolean;
6
+ }
1
7
  export interface Peer {
2
- id?: string;
3
- name?: string;
8
+ id: string;
9
+ name: string;
4
10
  url: string;
5
11
  apiKey: string;
6
12
  }