UNPKG

1.45 kBJavaScriptView Raw
1"use strict";
2/*
3 * Copyright (c) Microsoft Corporation. All rights reserved.
4 * Licensed under the MIT License.
5 */
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.EVENT_KEYS = void 0;
8var tslib_1 = require("tslib");
9var TelemetryEvent_1 = tslib_1.__importDefault(require("./TelemetryEvent"));
10var TelemetryUtils_1 = require("./TelemetryUtils");
11exports.EVENT_KEYS = {
12 USER_CANCELLED: TelemetryUtils_1.prependEventNamePrefix("user_cancelled"),
13 ACCESS_DENIED: TelemetryUtils_1.prependEventNamePrefix("access_denied")
14};
15var UiEvent = /** @class */ (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));
36exports.default = UiEvent;
37//# sourceMappingURL=UiEvent.js.map
\No newline at end of file