@lifeready/core 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15650,6 +15650,147 @@
15650
15650
  })
15651
15651
  ], exports.TpPasswordResetRequestService);
15652
15652
 
15653
+ var UpdateNotificationMutation = gqlTyped(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\nmutation UpdateNotificationMutation($input: UpdateNotificationInput!) {\n updateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"], ["\nmutation UpdateNotificationMutation($input: UpdateNotificationInput!) {\n updateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"])));
15654
+ var UpdateAllNotificationsReadStateMutation = gqlTyped(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\nmutation UpdateAllNotificationsReadStateMutation($input: UpdateAllNotificationsReadStateInput!) {\n updateAllNotificationsReadState(input: $input) {\n count\n }\n}\n"], ["\nmutation UpdateAllNotificationsReadStateMutation($input: UpdateAllNotificationsReadStateInput!) {\n updateAllNotificationsReadState(input: $input) {\n count\n }\n}\n"])));
15655
+ var DebugCreateNotificationMutation = gqlTyped(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\nmutation DebugCreateNotificationMutation($input: DebugCreateNotificationInput!) {\n debugCreateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"], ["\nmutation DebugCreateNotificationMutation($input: DebugCreateNotificationInput!) {\n debugCreateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"])));
15656
+ var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\nmutation DebugDeleteAllNotificationsMutation($input: DebugDeleteAllNotificationsInput!) {\n debugDeleteAllNotifications(input: $input) {\n count\n }\n}\n"], ["\nmutation DebugDeleteAllNotificationsMutation($input: DebugDeleteAllNotificationsInput!) {\n debugDeleteAllNotifications(input: $input) {\n count\n }\n}\n"])));
15657
+ var UpdateNotificationFeatureStateMutation = gqlTyped(templateObject_5$h || (templateObject_5$h = __makeTemplateObject(["\nmutation UpdateNotificationFeatureStateMutation($input: UpdateNotificationFeatureStateInput!) {\n updateNotificationFeatureState(input: $input) {\n featureState {\n notificationsLastViewed\n\t\t}\n }\n}\n"], ["\nmutation UpdateNotificationFeatureStateMutation($input: UpdateNotificationFeatureStateInput!) {\n updateNotificationFeatureState(input: $input) {\n featureState {\n notificationsLastViewed\n\t\t}\n }\n}\n"])));
15658
+ var templateObject_1$s, templateObject_2$o, templateObject_3$m, templateObject_4$l, templateObject_5$h;
15659
+
15660
+ exports.NotificationService = /** @class */ (function (_super) {
15661
+ __extends(NotificationService, _super);
15662
+ function NotificationService(ngZone, injector) {
15663
+ var _this = _super.call(this, injector) || this;
15664
+ _this.ngZone = ngZone;
15665
+ _this.injector = injector;
15666
+ return _this;
15667
+ }
15668
+ NotificationService.prototype.updateNotification = function (options) {
15669
+ return __awaiter(this, void 0, void 0, function () {
15670
+ return __generator(this, function (_b) {
15671
+ return [2 /*return*/, this.mutate(this.updateNotificationMutation(options))];
15672
+ });
15673
+ });
15674
+ };
15675
+ NotificationService.prototype.updateNotificationMutation = function (options) {
15676
+ return __awaiter(this, void 0, void 0, function () {
15677
+ return __generator(this, function (_b) {
15678
+ return [2 /*return*/, new LrMutation({
15679
+ mutation: UpdateNotificationMutation,
15680
+ variables: {
15681
+ input: Object.assign({}, options),
15682
+ },
15683
+ })];
15684
+ });
15685
+ });
15686
+ };
15687
+ NotificationService.prototype.updateAllNotificationsReadState = function (options) {
15688
+ return __awaiter(this, void 0, void 0, function () {
15689
+ return __generator(this, function (_b) {
15690
+ return [2 /*return*/, this.mutate(this.updateAllNotificationsReadStateMutation(options))];
15691
+ });
15692
+ });
15693
+ };
15694
+ NotificationService.prototype.updateAllNotificationsReadStateMutation = function (options) {
15695
+ return __awaiter(this, void 0, void 0, function () {
15696
+ return __generator(this, function (_b) {
15697
+ return [2 /*return*/, new LrMutation({
15698
+ mutation: UpdateAllNotificationsReadStateMutation,
15699
+ variables: {
15700
+ input: Object.assign({}, options),
15701
+ },
15702
+ })];
15703
+ });
15704
+ });
15705
+ };
15706
+ NotificationService.prototype.debugCreateNotification = function (options) {
15707
+ return __awaiter(this, void 0, void 0, function () {
15708
+ return __generator(this, function (_b) {
15709
+ return [2 /*return*/, this.mutate(this.debugCreateNotificationMutation(options))];
15710
+ });
15711
+ });
15712
+ };
15713
+ NotificationService.prototype.debugCreateNotificationMutation = function (options) {
15714
+ var _a;
15715
+ return __awaiter(this, void 0, void 0, function () {
15716
+ return __generator(this, function (_b) {
15717
+ return [2 /*return*/, new LrMutation({
15718
+ mutation: DebugCreateNotificationMutation,
15719
+ variables: {
15720
+ input: {
15721
+ receiverId: options.receiverId,
15722
+ hasBeenRead: options.hasBeenRead,
15723
+ timeRead: (_a = options.timeRead) === null || _a === void 0 ? void 0 : _a.toISOString(),
15724
+ plainData: JSON.stringify(options.plainData),
15725
+ plainMeta: JSON.stringify(options.plainMeta),
15726
+ },
15727
+ },
15728
+ })];
15729
+ });
15730
+ });
15731
+ };
15732
+ NotificationService.prototype.debugDeleteAllNotifications = function (options) {
15733
+ return __awaiter(this, void 0, void 0, function () {
15734
+ return __generator(this, function (_b) {
15735
+ return [2 /*return*/, this.mutate(this.debugDeleteAllNotificationsMutation(options))];
15736
+ });
15737
+ });
15738
+ };
15739
+ NotificationService.prototype.debugDeleteAllNotificationsMutation = function (options) {
15740
+ return __awaiter(this, void 0, void 0, function () {
15741
+ return __generator(this, function (_b) {
15742
+ return [2 /*return*/, new LrMutation({
15743
+ mutation: DebugDeleteAllNotificationsMutation,
15744
+ variables: {
15745
+ input: {
15746
+ receiverId: options.receiverId,
15747
+ },
15748
+ },
15749
+ })];
15750
+ });
15751
+ });
15752
+ };
15753
+ NotificationService.prototype.updateNotificationFeatureState = function (options) {
15754
+ return __awaiter(this, void 0, void 0, function () {
15755
+ return __generator(this, function (_b) {
15756
+ return [2 /*return*/, this.mutate(this.updateNotificationFeatureStateMutation(options))];
15757
+ });
15758
+ });
15759
+ };
15760
+ NotificationService.prototype.updateNotificationFeatureStateMutation = function (options) {
15761
+ var _a;
15762
+ return __awaiter(this, void 0, void 0, function () {
15763
+ return __generator(this, function (_b) {
15764
+ return [2 /*return*/, new LrMutation({
15765
+ mutation: UpdateNotificationFeatureStateMutation,
15766
+ variables: {
15767
+ input: {
15768
+ lastViewed: (_a = options.lastViewed) === null || _a === void 0 ? void 0 : _a.toISOString(),
15769
+ clearLastViewed: options.lastViewed == null || undefined,
15770
+ },
15771
+ },
15772
+ })];
15773
+ });
15774
+ });
15775
+ };
15776
+ return NotificationService;
15777
+ }(LrService));
15778
+ exports.NotificationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NotificationService_Factory() { return new exports.NotificationService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR)); }, token: exports.NotificationService, providedIn: "root" });
15779
+ exports.NotificationService.decorators = [
15780
+ { type: i0.Injectable, args: [{
15781
+ providedIn: 'root',
15782
+ },] }
15783
+ ];
15784
+ exports.NotificationService.ctorParameters = function () { return [
15785
+ { type: i0.NgZone },
15786
+ { type: i0.Injector }
15787
+ ]; };
15788
+ exports.NotificationService = __decorate([
15789
+ RunOutsideAngular({
15790
+ ngZoneName: 'ngZone',
15791
+ })
15792
+ ], exports.NotificationService);
15793
+
15653
15794
  /*
15654
15795
  * Public API Surface of lr-auth
15655
15796
  */