@fairandsmart/consents-ce 2.0.14 → 2.0.15
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 +42 -50
- package/consents/helpers.js +16 -17
- package/consents/index.js +14 -30
- package/consents/interfaces.js +17 -27
- package/forms/consent-collector.js +94 -113
- package/forms/index.js +14 -30
- package/keys/api.js +16 -16
- package/keys/index.js +14 -30
- package/keys/interfaces.js +3 -3
- package/models/api.js +122 -191
- package/models/helpers.js +14 -23
- package/models/index.js +14 -30
- package/models/interfaces.js +59 -109
- package/package.json +1 -1
- package/peers/api.js +28 -33
- package/peers/index.js +14 -30
- package/receipts/api.js +7 -9
- package/receipts/index.js +14 -30
- package/records/api.js +39 -44
- package/records/index.js +14 -30
- package/records/interfaces.js +39 -61
- package/statistics/api.js +5 -5
- package/statistics/index.js +14 -30
- package/statistics/interfaces.js +4 -4
- package/subjects/api.js +45 -65
- package/subjects/index.js +14 -30
- package/system/api.js +15 -15
- package/system/index.js +14 -30
- package/tokens/api.js +7 -7
- package/tokens/index.js +14 -30
- package/users/api.js +15 -15
- package/users/index.js +14 -30
- package/webhooks/api.js +32 -43
- package/webhooks/index.js +14 -30
- package/webhooks/interfaces.js +2 -5
package/webhooks/api.js
CHANGED
|
@@ -1,61 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteWebhook =
|
|
4
|
-
exports.updateWebhook =
|
|
5
|
-
exports.getWebhook =
|
|
6
|
-
exports.createWebhook =
|
|
7
|
-
exports.listWebhooks =
|
|
8
|
-
void 0;
|
|
3
|
+
exports.deleteWebhook = exports.updateWebhook = exports.getWebhook = exports.createWebhook = exports.listWebhooks = void 0;
|
|
9
4
|
var api_1 = require("../api");
|
|
10
5
|
function listWebhooks(options) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
return api_1.RightConsents.http({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks"),
|
|
9
|
+
options: options
|
|
10
|
+
});
|
|
16
11
|
}
|
|
17
12
|
exports.listWebhooks = listWebhooks;
|
|
18
13
|
function createWebhook(webhook, options) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
return api_1.RightConsents.http({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks"),
|
|
17
|
+
body: webhook,
|
|
18
|
+
resolveHeaders: true,
|
|
19
|
+
headers: {
|
|
20
|
+
'Content-Type': 'application/json'
|
|
21
|
+
},
|
|
22
|
+
options: options
|
|
23
|
+
});
|
|
29
24
|
}
|
|
30
25
|
exports.createWebhook = createWebhook;
|
|
31
26
|
function getWebhook(webhookid, options) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
options: options,
|
|
38
|
-
});
|
|
27
|
+
return api_1.RightConsents.http({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks/").concat(webhookid),
|
|
30
|
+
options: options
|
|
31
|
+
});
|
|
39
32
|
}
|
|
40
33
|
exports.getWebhook = getWebhook;
|
|
41
34
|
function updateWebhook(webhookid, webhook, options) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
options: options,
|
|
49
|
-
});
|
|
35
|
+
return api_1.RightConsents.http({
|
|
36
|
+
method: 'PUT',
|
|
37
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks/").concat(webhookid),
|
|
38
|
+
body: webhook,
|
|
39
|
+
options: options
|
|
40
|
+
});
|
|
50
41
|
}
|
|
51
42
|
exports.updateWebhook = updateWebhook;
|
|
52
43
|
function deleteWebhook(webhookid, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
options: options,
|
|
59
|
-
});
|
|
44
|
+
return api_1.RightConsents.http({
|
|
45
|
+
method: 'DELETE',
|
|
46
|
+
url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks/").concat(webhookid),
|
|
47
|
+
options: options
|
|
48
|
+
});
|
|
60
49
|
}
|
|
61
50
|
exports.deleteWebhook = deleteWebhook;
|
package/webhooks/index.js
CHANGED
|
@@ -1,34 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}
|
|
21
|
-
: function (o, m, k, k2) {
|
|
22
|
-
if (k2 === undefined) k2 = k;
|
|
23
|
-
o[k2] = m[k];
|
|
24
|
-
});
|
|
25
|
-
var __exportStar =
|
|
26
|
-
(this && this.__exportStar) ||
|
|
27
|
-
function (m, exports) {
|
|
28
|
-
for (var p in m)
|
|
29
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
30
|
-
__createBinding(exports, m, p);
|
|
31
|
-
};
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
32
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
17
|
__exportStar(require("./interfaces"), exports);
|
|
34
18
|
__exportStar(require("./api"), exports);
|
package/webhooks/interfaces.js
CHANGED
|
@@ -3,8 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SubscribedActions = void 0;
|
|
4
4
|
var SubscribedActions;
|
|
5
5
|
(function (SubscribedActions) {
|
|
6
|
-
|
|
7
|
-
})(
|
|
8
|
-
(SubscribedActions =
|
|
9
|
-
exports.SubscribedActions || (exports.SubscribedActions = {})),
|
|
10
|
-
);
|
|
6
|
+
SubscribedActions["CONSENT_COMMIT"] = "CONSENT_COMMIT";
|
|
7
|
+
})(SubscribedActions = exports.SubscribedActions || (exports.SubscribedActions = {}));
|