@lifeready/core 1.0.5 → 1.0.7
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.
- package/bundles/lifeready-core.umd.js +145 -1
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +2 -2
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/notification/notification.gql.js +41 -0
- package/esm2015/lib/notification/notification.service.js +122 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/lifeready-core.js +156 -2
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +8 -0
- package/lib/notification/notification.gql.d.ts +35 -0
- package/lib/notification/notification.service.d.ts +64 -0
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -4210,7 +4210,7 @@
|
|
|
4210
4210
|
ret = Object.assign({}, field);
|
|
4211
4211
|
if (!field.assembly) return [3 /*break*/, 2];
|
|
4212
4212
|
if (field.applied == null) {
|
|
4213
|
-
throw new LrBadRequestException('If you request for field
|
|
4213
|
+
throw new LrBadRequestException('If you request for field "assembly" in the TpPasswordResetNode, then you must also request the "applied" field');
|
|
4214
4214
|
}
|
|
4215
4215
|
_b = ret;
|
|
4216
4216
|
return [4 /*yield*/, this.processTpAssemblyNode(field.assembly, field.applied)];
|
|
@@ -15650,6 +15650,150 @@
|
|
|
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"])));
|
|
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.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
|
+
NotificationService.prototype.updateNotification = function (options) {
|
|
15695
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15696
|
+
return __generator(this, function (_b) {
|
|
15697
|
+
return [2 /*return*/, this.mutate(this.updateNotificationMutation(options))];
|
|
15698
|
+
});
|
|
15699
|
+
});
|
|
15700
|
+
};
|
|
15701
|
+
NotificationService.prototype.updateNotificationMutation = function (options) {
|
|
15702
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15703
|
+
return __generator(this, function (_b) {
|
|
15704
|
+
return [2 /*return*/, new LrMutation({
|
|
15705
|
+
mutation: UpdateNotificationMutation,
|
|
15706
|
+
variables: {
|
|
15707
|
+
input: Object.assign({}, options),
|
|
15708
|
+
},
|
|
15709
|
+
})];
|
|
15710
|
+
});
|
|
15711
|
+
});
|
|
15712
|
+
};
|
|
15713
|
+
NotificationService.prototype.updateAllNotificationsReadState = function (options) {
|
|
15714
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15715
|
+
return __generator(this, function (_b) {
|
|
15716
|
+
return [2 /*return*/, this.mutate(this.updateAllNotificationsReadStateMutation(options))];
|
|
15717
|
+
});
|
|
15718
|
+
});
|
|
15719
|
+
};
|
|
15720
|
+
NotificationService.prototype.updateAllNotificationsReadStateMutation = function (options) {
|
|
15721
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15722
|
+
return __generator(this, function (_b) {
|
|
15723
|
+
return [2 /*return*/, new LrMutation({
|
|
15724
|
+
mutation: UpdateAllNotificationsReadStateMutation,
|
|
15725
|
+
variables: {
|
|
15726
|
+
input: Object.assign({}, options),
|
|
15727
|
+
},
|
|
15728
|
+
})];
|
|
15729
|
+
});
|
|
15730
|
+
});
|
|
15731
|
+
};
|
|
15732
|
+
NotificationService.prototype.debugCreateNotification = function (options) {
|
|
15733
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15734
|
+
return __generator(this, function (_b) {
|
|
15735
|
+
return [2 /*return*/, this.mutate(this.debugCreateNotificationMutation(options))];
|
|
15736
|
+
});
|
|
15737
|
+
});
|
|
15738
|
+
};
|
|
15739
|
+
NotificationService.prototype.debugCreateNotificationMutation = function (options) {
|
|
15740
|
+
var _a;
|
|
15741
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15742
|
+
return __generator(this, function (_b) {
|
|
15743
|
+
return [2 /*return*/, new LrMutation({
|
|
15744
|
+
mutation: DebugCreateNotificationMutation,
|
|
15745
|
+
variables: {
|
|
15746
|
+
input: {
|
|
15747
|
+
receiverId: options.receiverId,
|
|
15748
|
+
hasBeenRead: options.hasBeenRead,
|
|
15749
|
+
timeRead: (_a = options.timeRead) === null || _a === void 0 ? void 0 : _a.toISOString(),
|
|
15750
|
+
plainData: JSON.stringify(options.plainData),
|
|
15751
|
+
plainMeta: JSON.stringify(options.plainMeta),
|
|
15752
|
+
},
|
|
15753
|
+
},
|
|
15754
|
+
})];
|
|
15755
|
+
});
|
|
15756
|
+
});
|
|
15757
|
+
};
|
|
15758
|
+
NotificationService.prototype.debugDeleteAllNotifications = function (options) {
|
|
15759
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15760
|
+
return __generator(this, function (_b) {
|
|
15761
|
+
return [2 /*return*/, this.mutate(this.debugDeleteAllNotificationsMutation(options))];
|
|
15762
|
+
});
|
|
15763
|
+
});
|
|
15764
|
+
};
|
|
15765
|
+
NotificationService.prototype.debugDeleteAllNotificationsMutation = function (options) {
|
|
15766
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15767
|
+
return __generator(this, function (_b) {
|
|
15768
|
+
return [2 /*return*/, new LrMutation({
|
|
15769
|
+
mutation: DebugDeleteAllNotificationsMutation,
|
|
15770
|
+
variables: {
|
|
15771
|
+
input: {
|
|
15772
|
+
receiverId: options.receiverId,
|
|
15773
|
+
},
|
|
15774
|
+
},
|
|
15775
|
+
})];
|
|
15776
|
+
});
|
|
15777
|
+
});
|
|
15778
|
+
};
|
|
15779
|
+
return NotificationService;
|
|
15780
|
+
}(LrService));
|
|
15781
|
+
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" });
|
|
15782
|
+
exports.NotificationService.decorators = [
|
|
15783
|
+
{ type: i0.Injectable, args: [{
|
|
15784
|
+
providedIn: 'root',
|
|
15785
|
+
},] }
|
|
15786
|
+
];
|
|
15787
|
+
exports.NotificationService.ctorParameters = function () { return [
|
|
15788
|
+
{ type: i0.NgZone },
|
|
15789
|
+
{ type: i0.Injector }
|
|
15790
|
+
]; };
|
|
15791
|
+
exports.NotificationService = __decorate([
|
|
15792
|
+
RunOutsideAngular({
|
|
15793
|
+
ngZoneName: 'ngZone',
|
|
15794
|
+
})
|
|
15795
|
+
], exports.NotificationService);
|
|
15796
|
+
|
|
15653
15797
|
/*
|
|
15654
15798
|
* Public API Surface of lr-auth
|
|
15655
15799
|
*/
|