1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | var __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 | };
|
24 | import { ConsoleLogger as Logger } from '@aws-amplify/core';
|
25 | var logger = new Logger('AbstractInteractionsProvider');
|
26 | var AbstractInteractionsProvider = (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 | }());
|
49 | export { AbstractInteractionsProvider };
|
50 |
|
\ | No newline at end of file |