UNPKG

2.06 kBJavaScriptView Raw
1/*
2 * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5 * the License. A copy of the License is located at
6 *
7 * http://aws.amazon.com/apache2.0/
8 *
9 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11 * and limitations under the License.
12 */
13var __assign = (this && this.__assign) || function () {
14 __assign = Object.assign || function(t) {
15 for (var s, i = 1, n = arguments.length; i < n; i++) {
16 s = arguments[i];
17 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
18 t[p] = s[p];
19 }
20 return t;
21 };
22 return __assign.apply(this, arguments);
23};
24import { ConsoleLogger as Logger } from '@aws-amplify/core';
25var logger = new Logger('AbstractInteractionsProvider');
26var AbstractInteractionsProvider = /** @class */ (function () {
27 function AbstractInteractionsProvider(options) {
28 if (options === void 0) { options = {}; }
29 this._config = options;
30 }
31 AbstractInteractionsProvider.prototype.configure = function (config) {
32 if (config === void 0) { config = {}; }
33 this._config = __assign(__assign({}, this._config), config);
34 logger.debug("configure " + this.getProviderName(), this._config);
35 return this.options;
36 };
37 AbstractInteractionsProvider.prototype.getCategory = function () {
38 return 'Interactions';
39 };
40 Object.defineProperty(AbstractInteractionsProvider.prototype, "options", {
41 get: function () {
42 return __assign({}, this._config);
43 },
44 enumerable: true,
45 configurable: true
46 });
47 return AbstractInteractionsProvider;
48}());
49export { AbstractInteractionsProvider };
50//# sourceMappingURL=InteractionsProvider.js.map
\No newline at end of file