1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.EVENT_KEYS = void 0;
|
8 | var tslib_1 = require("tslib");
|
9 | var TelemetryEvent_1 = tslib_1.__importDefault(require("./TelemetryEvent"));
|
10 | var TelemetryUtils_1 = require("./TelemetryUtils");
|
11 | exports.EVENT_KEYS = {
|
12 | USER_CANCELLED: TelemetryUtils_1.prependEventNamePrefix("user_cancelled"),
|
13 | ACCESS_DENIED: TelemetryUtils_1.prependEventNamePrefix("access_denied")
|
14 | };
|
15 | var UiEvent = (function (_super) {
|
16 | tslib_1.__extends(UiEvent, _super);
|
17 | function UiEvent(correlationId) {
|
18 | return _super.call(this, TelemetryUtils_1.prependEventNamePrefix("ui_event"), correlationId, "UiEvent") || this;
|
19 | }
|
20 | Object.defineProperty(UiEvent.prototype, "userCancelled", {
|
21 | set: function (userCancelled) {
|
22 | this.event[exports.EVENT_KEYS.USER_CANCELLED] = userCancelled;
|
23 | },
|
24 | enumerable: false,
|
25 | configurable: true
|
26 | });
|
27 | Object.defineProperty(UiEvent.prototype, "accessDenied", {
|
28 | set: function (accessDenied) {
|
29 | this.event[exports.EVENT_KEYS.ACCESS_DENIED] = accessDenied;
|
30 | },
|
31 | enumerable: false,
|
32 | configurable: true
|
33 | });
|
34 | return UiEvent;
|
35 | }(TelemetryEvent_1.default));
|
36 | exports.default = UiEvent;
|
37 |
|
\ | No newline at end of file |