UNPKG

1.24 kBJavaScriptView Raw
1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3import { __assign } from "tslib";
4import { ConsoleLogger as Logger } from '@aws-amplify/core';
5var logger = new Logger('AbstractInteractionsProvider');
6var AbstractInteractionsProvider = /** @class */ (function () {
7 function AbstractInteractionsProvider(options) {
8 if (options === void 0) { options = {}; }
9 this._config = options;
10 }
11 AbstractInteractionsProvider.prototype.configure = function (config) {
12 if (config === void 0) { config = {}; }
13 this._config = __assign(__assign({}, this._config), config);
14 logger.debug("configure " + this.getProviderName(), this._config);
15 return this.options;
16 };
17 AbstractInteractionsProvider.prototype.getCategory = function () {
18 return 'Interactions';
19 };
20 Object.defineProperty(AbstractInteractionsProvider.prototype, "options", {
21 get: function () {
22 return __assign({}, this._config);
23 },
24 enumerable: true,
25 configurable: true
26 });
27 return AbstractInteractionsProvider;
28}());
29export { AbstractInteractionsProvider };
30//# sourceMappingURL=InteractionsProvider.js.map
\No newline at end of file