@fairandsmart/consents-ce 2.0.13 → 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/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
- return api_1.RightConsents.http({
12
- method: "GET",
13
- url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks"),
14
- options: options,
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
- return api_1.RightConsents.http({
20
- method: "POST",
21
- url: "".concat(api_1.RightConsents.config.apiRoot, "/webhooks"),
22
- body: webhook,
23
- resolveHeaders: true,
24
- headers: {
25
- "Content-Type": "application/json",
26
- },
27
- options: options,
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
- return api_1.RightConsents.http({
33
- method: "GET",
34
- url: ""
35
- .concat(api_1.RightConsents.config.apiRoot, "/webhooks/")
36
- .concat(webhookid),
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
- return api_1.RightConsents.http({
43
- method: "PUT",
44
- url: ""
45
- .concat(api_1.RightConsents.config.apiRoot, "/webhooks/")
46
- .concat(webhookid),
47
- body: webhook,
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
- return api_1.RightConsents.http({
54
- method: "DELETE",
55
- url: ""
56
- .concat(api_1.RightConsents.config.apiRoot, "/webhooks/")
57
- .concat(webhookid),
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
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (
9
- !desc ||
10
- ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
11
- ) {
12
- desc = {
13
- enumerable: true,
14
- get: function () {
15
- return m[k];
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);
@@ -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
- SubscribedActions["CONSENT_COMMIT"] = "CONSENT_COMMIT";
7
- })(
8
- (SubscribedActions =
9
- exports.SubscribedActions || (exports.SubscribedActions = {})),
10
- );
6
+ SubscribedActions["CONSENT_COMMIT"] = "CONSENT_COMMIT";
7
+ })(SubscribedActions = exports.SubscribedActions || (exports.SubscribedActions = {}));
Binary file