@lifeready/core 1.0.7 → 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,11 +15650,11 @@
15650
15650
  })
15651
15651
  ], exports.TpPasswordResetRequestService);
15652
15652
 
15653
- var UpdateNotificationManagementStateMutation = gqlTyped(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\nmutation UpdateNotificationManagementStateMutation($input: ChangeFileParentsInput!) {\n updateNotificationManagementState(input: $input) {\n lastViewed\n }\n}\n"], ["\nmutation UpdateNotificationManagementStateMutation($input: ChangeFileParentsInput!) {\n updateNotificationManagementState(input: $input) {\n lastViewed\n }\n}\n"])));
15654
- var UpdateNotificationMutation = gqlTyped(templateObject_2$o || (templateObject_2$o = __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"])));
15655
- var UpdateAllNotificationsReadStateMutation = gqlTyped(templateObject_3$m || (templateObject_3$m = __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"])));
15656
- var DebugCreateNotificationMutation = gqlTyped(templateObject_4$l || (templateObject_4$l = __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"])));
15657
- var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_5$h || (templateObject_5$h = __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"])));
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
15658
  var templateObject_1$s, templateObject_2$o, templateObject_3$m, templateObject_4$l, templateObject_5$h;
15659
15659
 
15660
15660
  exports.NotificationService = /** @class */ (function (_super) {
@@ -15665,32 +15665,6 @@
15665
15665
  _this.injector = injector;
15666
15666
  return _this;
15667
15667
  }
15668
- NotificationService.prototype.updateNotificationManagementState = function (options) {
15669
- return __awaiter(this, void 0, void 0, function () {
15670
- return __generator(this, function (_b) {
15671
- return [2 /*return*/, this.mutate(this.updateNotificationManagementStateMutation(options))];
15672
- });
15673
- });
15674
- };
15675
- NotificationService.prototype.updateNotificationManagementStateMutation = function (options) {
15676
- var _a;
15677
- return __awaiter(this, void 0, void 0, function () {
15678
- return __generator(this, function (_b) {
15679
- if (options.lastViewed == null || options.clearLastViewed == null) {
15680
- throw new LrBadArgumentException('Must specify either lastViewed or clearLastViewed');
15681
- }
15682
- return [2 /*return*/, new LrMutation({
15683
- mutation: UpdateNotificationManagementStateMutation,
15684
- variables: {
15685
- input: {
15686
- lastViewed: (_a = options.lastViewed) === null || _a === void 0 ? void 0 : _a.toISOString(),
15687
- clearLastViewed: options.clearLastViewed,
15688
- },
15689
- },
15690
- })];
15691
- });
15692
- });
15693
- };
15694
15668
  NotificationService.prototype.updateNotification = function (options) {
15695
15669
  return __awaiter(this, void 0, void 0, function () {
15696
15670
  return __generator(this, function (_b) {
@@ -15776,6 +15750,29 @@
15776
15750
  });
15777
15751
  });
15778
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
+ };
15779
15776
  return NotificationService;
15780
15777
  }(LrService));
15781
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" });