UNPKG

baasic-sdk-javascript

Version:

JavaScript SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).

76 lines (75 loc) 3.4 kB
"use strict"; /* globals module */ /** * @module notificationsClient * @description Notifications Client provides an easy way to consume Notifications REST API end-points. In order to obtain needed routes `notificationsClient` uses `notificationsRoute`. */ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var inversify_1 = require("inversify"); var _1 = require("./"); var NotificationsClient = /** @class */ (function () { function NotificationsClient(notificationsPublishClient, basicNotificationsSubscriptionsClient, notificationsRegistrationsClient, notificationsSettingsClient, notificationsRoute) { this.notificationsPublishClient = notificationsPublishClient; this.basicNotificationsSubscriptionsClient = basicNotificationsSubscriptionsClient; this.notificationsRegistrationsClient = notificationsRegistrationsClient; this.notificationsSettingsClient = notificationsSettingsClient; this.notificationsRoute = notificationsRoute; } Object.defineProperty(NotificationsClient.prototype, "routeDefinition", { get: function () { return this.notificationsRoute; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationsClient.prototype, "publish", { get: function () { return this.notificationsPublishClient; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationsClient.prototype, "subscriptions", { get: function () { return this.basicNotificationsSubscriptionsClient; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationsClient.prototype, "registrations", { get: function () { return this.notificationsRegistrationsClient; }, enumerable: true, configurable: true }); Object.defineProperty(NotificationsClient.prototype, "settings", { get: function () { return this.notificationsSettingsClient; }, enumerable: true, configurable: true }); NotificationsClient = tslib_1.__decorate([ inversify_1.injectable(), tslib_1.__param(0, inversify_1.inject(_1.TYPES.NotificationsPublishClient)), tslib_1.__param(1, inversify_1.inject(_1.TYPES.NotificationsSubscriptionsClient)), tslib_1.__param(2, inversify_1.inject(_1.TYPES.NotificationsRegistrationsClient)), tslib_1.__param(3, inversify_1.inject(_1.TYPES.NotificationsSettingsClient)), tslib_1.__param(4, inversify_1.inject(_1.TYPES.NotificationsRoute)), tslib_1.__metadata("design:paramtypes", [_1.NotificationsPublishClient, _1.NotificationsSubscriptionsClient, _1.NotificationsRegistrationsClient, _1.NotificationsSettingsClient, _1.NotificationsRoute]) ], NotificationsClient); return NotificationsClient; }()); exports.NotificationsClient = NotificationsClient; /** * @overview ***Notes:** - Refer to the [REST API documentation](https://github.com/Baasic/baasic-rest-api/wiki) for detailed information about available Baasic REST API end-points. - All end-point objects are transformed by the associated route service. */