@fairandsmart/consents-ce 2.0.12 → 2.0.14
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/models/api.d.ts +1 -0
- package/models/api.js +14 -0
- package/models/interfaces.d.ts +7 -1
- package/package.json +1 -1
- package/fairandsmart-consents-ce-2.0.12.tgz +0 -0
package/models/api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare function getEntry(id: string, options?: RCApiOptions): Observable
|
|
|
9
9
|
export declare function updateEntry(id: string, dto: UpdateModelDto, options?: RCApiOptions): Observable<ModelEntryDto>;
|
|
10
10
|
export declare function updateEntryVisibility(id: string, dto: UpdateModelDto, options?: RCApiOptions): Observable<ModelEntryDto>;
|
|
11
11
|
export declare function deleteEntry(id: string, options?: RCApiOptions): Observable<void>;
|
|
12
|
+
export declare function getEntryByRKey(recordKey: string, options?: RCApiOptions): Observable<ModelEntryDto>;
|
|
12
13
|
export declare function setDefaultInfoModel(user: string, operator: string, form: string, options?: RCApiOptions): Observable<void>;
|
|
13
14
|
export declare function listVersions<T extends ModelData = ModelData>(id: string, options?: RCApiOptions): Observable<ModelVersionDtoLight<T>[]>;
|
|
14
15
|
export declare function createVersion<T extends ModelData = ModelData>(id: string, dto: ModelVersionDto<T>, options?: RCApiOptions): Observable<ModelVersionDto<T>>;
|
package/models/api.js
CHANGED
|
@@ -13,6 +13,7 @@ exports.importEntry =
|
|
|
13
13
|
exports.createVersion =
|
|
14
14
|
exports.listVersions =
|
|
15
15
|
exports.setDefaultInfoModel =
|
|
16
|
+
exports.getEntryByRKey =
|
|
16
17
|
exports.deleteEntry =
|
|
17
18
|
exports.updateEntryVisibility =
|
|
18
19
|
exports.updateEntry =
|
|
@@ -83,6 +84,19 @@ function deleteEntry(id, options) {
|
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
exports.deleteEntry = deleteEntry;
|
|
87
|
+
function getEntryByRKey(recordKey, options) {
|
|
88
|
+
if (options === void 0) {
|
|
89
|
+
options = { noAuth: true };
|
|
90
|
+
}
|
|
91
|
+
return api_1.RightConsents.http({
|
|
92
|
+
method: "GET",
|
|
93
|
+
url: ""
|
|
94
|
+
.concat(api_1.RightConsents.config.apiRoot, "/models/serials")
|
|
95
|
+
.concat(recordKey),
|
|
96
|
+
options: options,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
exports.getEntryByRKey = getEntryByRKey;
|
|
86
100
|
function setDefaultInfoModel(user, operator, form, options) {
|
|
87
101
|
return api_1.RightConsents.http({
|
|
88
102
|
method: "POST",
|
package/models/interfaces.d.ts
CHANGED
|
@@ -127,6 +127,12 @@ export interface Preference extends ModelData {
|
|
|
127
127
|
defaultValues: string[];
|
|
128
128
|
optional: boolean;
|
|
129
129
|
}
|
|
130
|
+
export interface Objection extends ModelData {
|
|
131
|
+
type: 'objection';
|
|
132
|
+
title: string;
|
|
133
|
+
description: string;
|
|
134
|
+
objectByDefault: boolean;
|
|
135
|
+
}
|
|
130
136
|
export interface Conditions extends ModelData {
|
|
131
137
|
type: 'conditions';
|
|
132
138
|
title: string;
|
|
@@ -200,7 +206,7 @@ export declare enum ConsentOrigin {
|
|
|
200
206
|
USER = "USER"
|
|
201
207
|
}
|
|
202
208
|
export declare const CONSENT_ORIGIN: ConsentOrigin[];
|
|
203
|
-
export declare type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout' | 'notice';
|
|
209
|
+
export declare type ModelDataType = 'information' | 'processing' | 'conditions' | 'theme' | 'email' | 'preference' | 'layout' | 'notice' | 'objection';
|
|
204
210
|
export declare enum PreviewType {
|
|
205
211
|
FORM = "FORM",
|
|
206
212
|
RECEIPT = "RECEIPT",
|
package/package.json
CHANGED
|
Binary file
|