@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 CHANGED
@@ -1,65 +1,57 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSubmitFormPreview =
4
- exports.postSubmissionValuesJson =
5
- exports.getTransactionJson =
6
- exports.createTransactionJson =
7
- void 0;
3
+ exports.getSubmitFormPreview = exports.postSubmissionValuesJson = exports.getTransactionJson = exports.createTransactionJson = void 0;
8
4
  var api_1 = require("../api");
9
5
  function createTransactionJson(ctx, lang, options) {
10
- return api_1.RightConsents.http({
11
- method: "POST",
12
- url: "".concat(api_1.RightConsents.config.apiRoot, "/consents"),
13
- body: ctx,
14
- resolveHeaders: true,
15
- headers: {
16
- "Content-Type": "application/json",
17
- "Accept-Language": lang,
18
- },
19
- options: options,
20
- });
6
+ return api_1.RightConsents.http({
7
+ method: 'POST',
8
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/consents"),
9
+ body: ctx,
10
+ resolveHeaders: true,
11
+ headers: {
12
+ 'Content-Type': 'application/json',
13
+ 'Accept-Language': lang,
14
+ },
15
+ options: options
16
+ });
21
17
  }
22
18
  exports.createTransactionJson = createTransactionJson;
23
19
  function getTransactionJson(txid, options) {
24
- return api_1.RightConsents.http({
25
- method: "GET",
26
- url: ""
27
- .concat(api_1.RightConsents.config.apiRoot, "/consents/")
28
- .concat(txid),
29
- headers: {
30
- "Content-Type": "application/json",
31
- },
32
- options: options,
33
- });
20
+ return api_1.RightConsents.http({
21
+ method: 'GET',
22
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/consents/").concat(txid),
23
+ headers: {
24
+ 'Content-Type': 'application/json',
25
+ },
26
+ options: options
27
+ });
34
28
  }
35
29
  exports.getTransactionJson = getTransactionJson;
36
30
  function postSubmissionValuesJson(txid, values, options) {
37
- return api_1.RightConsents.http({
38
- method: "POST",
39
- url: ""
40
- .concat(api_1.RightConsents.config.apiRoot, "/consents/")
41
- .concat(txid, "/submit"),
42
- body: values,
43
- responseType: "text",
44
- headers: {
45
- "Content-Type": "application/json",
46
- },
47
- options: options,
48
- });
31
+ return api_1.RightConsents.http({
32
+ method: 'POST',
33
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/consents/").concat(txid, "/submit"),
34
+ body: values,
35
+ responseType: 'text',
36
+ headers: {
37
+ 'Content-Type': 'application/json',
38
+ },
39
+ options: options
40
+ });
49
41
  }
50
42
  exports.postSubmissionValuesJson = postSubmissionValuesJson;
51
43
  function getSubmitFormPreview(ctx, lang, options) {
52
- return api_1.RightConsents.http({
53
- method: "POST",
54
- url: "".concat(api_1.RightConsents.config.apiRoot, "/consents/preview"),
55
- body: ctx,
56
- responseType: "text",
57
- headers: {
58
- "Content-Type": "application/json",
59
- Accept: "text/html",
60
- "Accept-Language": lang,
61
- },
62
- options: options,
63
- });
44
+ return api_1.RightConsents.http({
45
+ method: 'POST',
46
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/consents/preview"),
47
+ body: ctx,
48
+ responseType: 'text',
49
+ headers: {
50
+ 'Content-Type': 'application/json',
51
+ 'Accept': 'text/html',
52
+ 'Accept-Language': lang,
53
+ },
54
+ options: options
55
+ });
64
56
  }
65
57
  exports.getSubmitFormPreview = getSubmitFormPreview;
@@ -3,23 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConsentHelper = void 0;
4
4
  var models_1 = require("../models");
5
5
  var ConsentHelper = /** @class */ (function () {
6
- function ConsentHelper() {}
7
- ConsentHelper.generateContextFromRecord = function (entry, record, lang) {
8
- if (lang === void 0) {
9
- lang = entry.defaultLanguage;
6
+ function ConsentHelper() {
10
7
  }
11
- return {
12
- language: lang,
13
- subject: record.subject,
14
- object: record.object,
15
- origin: models_1.ConsentOrigin.USER,
16
- layoutData: {
17
- info: "",
18
- blocs: [{ parent: { location: "", key: entry.key } }],
19
- type: "layout",
20
- },
8
+ ConsentHelper.generateContextFromRecord = function (entry, record, lang) {
9
+ if (lang === void 0) { lang = entry.defaultLanguage; }
10
+ return {
11
+ language: lang,
12
+ subject: record.subject,
13
+ object: record.object,
14
+ origin: models_1.ConsentOrigin.USER,
15
+ layoutData: {
16
+ info: '',
17
+ blocs: [{ parent: { location: '', key: entry.key } }],
18
+ type: 'layout',
19
+ }
20
+ };
21
21
  };
22
- };
23
- return ConsentHelper;
24
- })();
22
+ return ConsentHelper;
23
+ }());
25
24
  exports.ConsentHelper = ConsentHelper;
package/consents/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);
@@ -1,36 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfirmationConfigKeys =
4
- exports.SubjectInfosKeys =
5
- exports.CONFIRMATION_TYPES =
6
- exports.Confirmation =
7
- void 0;
3
+ exports.ConfirmationConfigKeys = exports.SubjectInfosKeys = exports.CONFIRMATION_TYPES = exports.Confirmation = void 0;
8
4
  var Confirmation;
9
5
  (function (Confirmation) {
10
- Confirmation["NONE"] = "NONE";
11
- Confirmation["FORM_CODE"] = "FORM_CODE";
12
- Confirmation["EMAIL_CODE"] = "EMAIL_CODE";
13
- Confirmation["MAGIC_LINK"] = "MAGIC_LINK";
14
- Confirmation["SMS_CODE"] = "SMS_CODE";
15
- Confirmation["SIGNATURE"] = "SIGNATURE";
16
- Confirmation["AUDIO_RECORD"] = "AUDIO_RECORD";
17
- Confirmation["VIDEO_RECORD"] = "VIDEO_RECORD";
18
- Confirmation["DIGITAL_SIGNATURE"] = "DIGITAL_SIGNATURE";
19
- })((Confirmation = exports.Confirmation || (exports.Confirmation = {})));
6
+ Confirmation["NONE"] = "NONE";
7
+ Confirmation["FORM_CODE"] = "FORM_CODE";
8
+ Confirmation["EMAIL_CODE"] = "EMAIL_CODE";
9
+ Confirmation["MAGIC_LINK"] = "MAGIC_LINK";
10
+ Confirmation["SMS_CODE"] = "SMS_CODE";
11
+ Confirmation["SIGNATURE"] = "SIGNATURE";
12
+ Confirmation["AUDIO_RECORD"] = "AUDIO_RECORD";
13
+ Confirmation["VIDEO_RECORD"] = "VIDEO_RECORD";
14
+ Confirmation["DIGITAL_SIGNATURE"] = "DIGITAL_SIGNATURE";
15
+ })(Confirmation = exports.Confirmation || (exports.Confirmation = {}));
20
16
  exports.CONFIRMATION_TYPES = Object.keys(Confirmation);
21
17
  var SubjectInfosKeys;
22
18
  (function (SubjectInfosKeys) {
23
- SubjectInfosKeys["EMAIL_KEY"] = "emailAddress";
24
- SubjectInfosKeys["PHONE_KEY"] = "phoneNumber";
25
- })(
26
- (SubjectInfosKeys =
27
- exports.SubjectInfosKeys || (exports.SubjectInfosKeys = {})),
28
- );
19
+ SubjectInfosKeys["EMAIL_KEY"] = "emailAddress";
20
+ SubjectInfosKeys["PHONE_KEY"] = "phoneNumber";
21
+ })(SubjectInfosKeys = exports.SubjectInfosKeys || (exports.SubjectInfosKeys = {}));
29
22
  var ConfirmationConfigKeys;
30
23
  (function (ConfirmationConfigKeys) {
31
- ConfirmationConfigKeys["SENDER_EMAIL_KEY"] = "senderEmail";
32
- ConfirmationConfigKeys["SENDER_PHONE_KEY"] = "senderPhone";
33
- })(
34
- (ConfirmationConfigKeys =
35
- exports.ConfirmationConfigKeys || (exports.ConfirmationConfigKeys = {})),
36
- );
24
+ ConfirmationConfigKeys["SENDER_EMAIL_KEY"] = "senderEmail";
25
+ ConfirmationConfigKeys["SENDER_PHONE_KEY"] = "senderPhone";
26
+ })(ConfirmationConfigKeys = exports.ConfirmationConfigKeys || (exports.ConfirmationConfigKeys = {}));
@@ -4,118 +4,99 @@ exports.ConsentCollector = void 0;
4
4
  var api_1 = require("../api");
5
5
  var iframe_resizer_1 = require("iframe-resizer");
6
6
  var ConsentCollector = /** @class */ (function () {
7
- function ConsentCollector(config) {
8
- this.config = config;
9
- }
10
- ConsentCollector.prototype.getContext = function () {
11
- return this.config.consentContext;
12
- };
13
- ConsentCollector.prototype.overrideSubject = function (newSubject) {
14
- this.config.consentContext.subject = newSubject;
15
- this.config.consentContext.author = newSubject;
16
- };
17
- ConsentCollector.prototype.collect = function (callback) {
18
- var _this = this;
19
- return new Promise(function (resolve, reject) {
20
- _this
21
- .getTokenFromBroker()
22
- .toPromise()
23
- .then(function (response) {
24
- if (
25
- !(response === null || response === void 0
26
- ? void 0
27
- : response.token)
28
- ) {
29
- throw new Error("Could not retrieve token");
30
- }
31
- switch (_this.config.mode) {
32
- case "embed":
33
- return _this.replaceElement(response.location);
34
- case "iframe":
35
- return _this.openInIframe(response.location);
36
- case "window":
37
- default:
38
- return _this.openInNewWindow(response.location);
39
- }
40
- })
41
- .then(function () {
42
- if (callback) {
43
- callback();
44
- }
45
- resolve();
46
- })
47
- .catch(function (err) {
48
- return reject(err);
7
+ function ConsentCollector(config) {
8
+ this.config = config;
9
+ }
10
+ ConsentCollector.prototype.getContext = function () {
11
+ return this.config.consentContext;
12
+ };
13
+ ConsentCollector.prototype.overrideSubject = function (newSubject) {
14
+ this.config.consentContext.subject = newSubject;
15
+ this.config.consentContext.author = newSubject;
16
+ };
17
+ ConsentCollector.prototype.collect = function (callback) {
18
+ var _this = this;
19
+ return new Promise(function (resolve, reject) {
20
+ _this.getTokenFromBroker()
21
+ .toPromise()
22
+ .then(function (response) {
23
+ if (!(response === null || response === void 0 ? void 0 : response.token)) {
24
+ throw new Error('Could not retrieve token');
25
+ }
26
+ switch (_this.config.mode) {
27
+ case 'embed':
28
+ return _this.replaceElement(response.location);
29
+ case 'iframe':
30
+ return _this.openInIframe(response.location);
31
+ case 'window':
32
+ default:
33
+ return _this.openInNewWindow(response.location);
34
+ }
35
+ })
36
+ .then(function () {
37
+ if (callback) {
38
+ callback();
39
+ }
40
+ resolve();
41
+ })
42
+ .catch(function (err) { return reject(err); });
49
43
  });
50
- });
51
- };
52
- ConsentCollector.prototype.getTokenFromBroker = function () {
53
- return api_1.RightConsents.http({
54
- method: "POST",
55
- url:
56
- this.config.tokenBrokerEndpoint +
57
- "?lang=" +
58
- this.config.consentContext.language,
59
- body: this.config.consentContext,
60
- options: {
61
- noAuth: true,
62
- },
63
- headers: {
64
- "Content-Type": "application/json",
65
- },
66
- });
67
- };
68
- ConsentCollector.prototype.openInNewWindow = function (location) {
69
- return new Promise(function (resolve) {
70
- var newWindow = window.open(
71
- location,
72
- "com_fs_window_consentCollect",
73
- "menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=900px,height=600px",
74
- );
75
- if (!newWindow) {
76
- throw new Error("Could not open window");
77
- }
78
- var interval = setInterval(function () {
79
- if (newWindow.closed) {
80
- resolve();
81
- clearInterval(interval);
82
- }
83
- }, 1500);
84
- });
85
- };
86
- ConsentCollector.prototype.openInIframe = function (location, callback) {
87
- var _this = this;
88
- return new Promise(function (resolve) {
89
- var parentEl;
90
- if (_this.config.iframeParentElementId) {
91
- parentEl = document.getElementById(_this.config.iframeParentElementId);
92
- }
93
- if (!parentEl) {
94
- parentEl = document.body;
95
- }
96
- var el = document.createElement("iframe");
97
- el.style.position = "absolute";
98
- el.style.width = "100%";
99
- el.style.height = "100%";
100
- el.setAttribute("src", location);
101
- parentEl.appendChild(el);
102
- (0, iframe_resizer_1.iframeResizer)(
103
- {
104
- log: false,
105
- checkOrigin: false,
106
- closedCallback: function (iframeId) {
107
- resolve();
108
- },
109
- },
110
- el,
111
- );
112
- });
113
- };
114
- ConsentCollector.prototype.replaceElement = function (token, callback) {
115
- return new Promise(function (resolve) {
116
- return resolve();
117
- });
118
- };
119
- return ConsentCollector;
120
- })();
44
+ };
45
+ ConsentCollector.prototype.getTokenFromBroker = function () {
46
+ return api_1.RightConsents.http({
47
+ method: 'POST',
48
+ url: this.config.tokenBrokerEndpoint + '?lang=' + this.config.consentContext.language,
49
+ body: this.config.consentContext,
50
+ options: {
51
+ noAuth: true
52
+ },
53
+ headers: {
54
+ 'Content-Type': 'application/json',
55
+ },
56
+ });
57
+ };
58
+ ConsentCollector.prototype.openInNewWindow = function (location) {
59
+ return new Promise(function (resolve) {
60
+ var newWindow = window.open(location, 'com_fs_window_consentCollect', 'menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=900px,height=600px');
61
+ if (!newWindow) {
62
+ throw new Error('Could not open window');
63
+ }
64
+ var interval = setInterval(function () {
65
+ if (newWindow.closed) {
66
+ resolve();
67
+ clearInterval(interval);
68
+ }
69
+ }, 1500);
70
+ });
71
+ };
72
+ ConsentCollector.prototype.openInIframe = function (location, callback) {
73
+ var _this = this;
74
+ return new Promise(function (resolve) {
75
+ var parentEl;
76
+ if (_this.config.iframeParentElementId) {
77
+ parentEl = document.getElementById(_this.config.iframeParentElementId);
78
+ }
79
+ if (!parentEl) {
80
+ parentEl = document.body;
81
+ }
82
+ var el = document.createElement('iframe');
83
+ el.style.position = 'absolute';
84
+ el.style.width = '100%';
85
+ el.style.height = '100%';
86
+ el.setAttribute('src', location);
87
+ parentEl.appendChild(el);
88
+ (0, iframe_resizer_1.iframeResizer)({
89
+ log: false,
90
+ checkOrigin: false,
91
+ closedCallback: function (iframeId) {
92
+ resolve();
93
+ },
94
+ }, el);
95
+ });
96
+ };
97
+ ConsentCollector.prototype.replaceElement = function (token, callback) {
98
+ return new Promise(function (resolve) { return resolve(); });
99
+ };
100
+ return ConsentCollector;
101
+ }());
121
102
  exports.ConsentCollector = ConsentCollector;
package/forms/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("./consent-collector"), exports);
package/keys/api.js CHANGED
@@ -3,27 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deleteKey = exports.createKey = exports.listKeys = void 0;
4
4
  var api_1 = require("../api");
5
5
  function listKeys(options) {
6
- return api_1.RightConsents.http({
7
- method: "GET",
8
- url: "".concat(api_1.RightConsents.config.apiRoot, "/keys"),
9
- options: options,
10
- });
6
+ return api_1.RightConsents.http({
7
+ method: 'GET',
8
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/keys"),
9
+ options: options
10
+ });
11
11
  }
12
12
  exports.listKeys = listKeys;
13
13
  function createKey(key, options) {
14
- return api_1.RightConsents.http({
15
- method: "POST",
16
- url: "".concat(api_1.RightConsents.config.apiRoot, "/keys"),
17
- body: key,
18
- options: options,
19
- });
14
+ return api_1.RightConsents.http({
15
+ method: 'POST',
16
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/keys"),
17
+ body: key,
18
+ options: options
19
+ });
20
20
  }
21
21
  exports.createKey = createKey;
22
22
  function deleteKey(id, options) {
23
- return api_1.RightConsents.http({
24
- method: "DELETE",
25
- url: "".concat(api_1.RightConsents.config.apiRoot, "/keys/").concat(id),
26
- options: options,
27
- });
23
+ return api_1.RightConsents.http({
24
+ method: 'DELETE',
25
+ url: "".concat(api_1.RightConsents.config.apiRoot, "/keys/").concat(id),
26
+ options: options
27
+ });
28
28
  }
29
29
  exports.deleteKey = deleteKey;
package/keys/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,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KeyScope = void 0;
4
4
  var KeyScope;
5
5
  (function (KeyScope) {
6
- KeyScope["OWNER"] = "OWNER";
7
- KeyScope["PEER"] = "PEER";
8
- })((KeyScope = exports.KeyScope || (exports.KeyScope = {})));
6
+ KeyScope["OWNER"] = "OWNER";
7
+ KeyScope["PEER"] = "PEER";
8
+ })(KeyScope = exports.KeyScope || (exports.KeyScope = {}));