@lifeready/core 1.1.9 → 1.1.10
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 +65 -8
- 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/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/item2/item2.service.js +5 -1
- package/esm2015/lib/password/password.service.js +2 -2
- package/esm2015/lib/server-config/server-config.gql.js +9 -0
- package/esm2015/lib/server-config/server-config.service.js +41 -0
- package/esm2015/lib/time/time.service.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/fesm2015/lifeready-core.js +49 -3
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +3 -0
- package/lib/server-config/server-config.gql.d.ts +5 -0
- package/lib/server-config/server-config.service.d.ts +9 -0
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
return LrBadStateException;
|
|
533
533
|
}(LrException));
|
|
534
534
|
|
|
535
|
-
//
|
|
535
|
+
// Ref: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
|
|
536
536
|
var moment = moment___namespace;
|
|
537
537
|
var ServerTimeQuery = gql__default['default'](templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query {\n serverTime {\n timestamp\n }\n }\n"], ["\n query {\n serverTime {\n timestamp\n }\n }\n"])));
|
|
538
538
|
var TimeService = /** @class */ (function () {
|
|
@@ -5007,7 +5007,7 @@
|
|
|
5007
5007
|
var PasswordChangeConfigQuery = gql__default['default'](templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n query PasswordChangeConfigQuery {\n passwordChangeConfig {\n maxAuthAgeSeconds\n authTime\n serverTime\n }\n }\n"], ["\n query PasswordChangeConfigQuery {\n passwordChangeConfig {\n maxAuthAgeSeconds\n authTime\n serverTime\n }\n }\n"])));
|
|
5008
5008
|
var templateObject_1$8, templateObject_2$6, templateObject_3$5;
|
|
5009
5009
|
|
|
5010
|
-
//
|
|
5010
|
+
// Ref: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
|
|
5011
5011
|
var moment$1 = moment___namespace;
|
|
5012
5012
|
var PasswordCheck = /** @class */ (function () {
|
|
5013
5013
|
function PasswordCheck() {
|
|
@@ -8398,12 +8398,20 @@
|
|
|
8398
8398
|
case 1:
|
|
8399
8399
|
tempDir = _c.sent();
|
|
8400
8400
|
// Clear the temp directory of the ones we are about to create.
|
|
8401
|
+
// NOTE: this mutation can not be merged into a single mutation with the
|
|
8402
|
+
// the createDirectory mutation because it uses the current server time to
|
|
8403
|
+
// clean up. So it must successfully complete before the creation of the
|
|
8404
|
+
// directories.
|
|
8401
8405
|
return [4 /*yield*/, this.beginDeleteChildItemLinksWindow({
|
|
8402
8406
|
directoryId: tempDir.id,
|
|
8403
8407
|
requestWindowMs: options.requestWindowMs,
|
|
8404
8408
|
})];
|
|
8405
8409
|
case 2:
|
|
8406
8410
|
// Clear the temp directory of the ones we are about to create.
|
|
8411
|
+
// NOTE: this mutation can not be merged into a single mutation with the
|
|
8412
|
+
// the createDirectory mutation because it uses the current server time to
|
|
8413
|
+
// clean up. So it must successfully complete before the creation of the
|
|
8414
|
+
// directories.
|
|
8407
8415
|
_c.sent();
|
|
8408
8416
|
return [4 /*yield*/, this.createDirectoryExec({
|
|
8409
8417
|
cipherMetaClearJson: options.cipherMetaClearJson,
|
|
@@ -13758,11 +13766,60 @@
|
|
|
13758
13766
|
})
|
|
13759
13767
|
], exports.ScenarioService);
|
|
13760
13768
|
|
|
13761
|
-
var
|
|
13769
|
+
var ServerConfigQuery = gqlTyped(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\nquery ServerConfigQuery {\n serverConfig {\n relayConnectionMaxLimit\n }\n}\n"], ["\nquery ServerConfigQuery {\n serverConfig {\n relayConnectionMaxLimit\n }\n}\n"])));
|
|
13770
|
+
var templateObject_1$s;
|
|
13771
|
+
|
|
13772
|
+
exports.ServerConfigService = /** @class */ (function (_super) {
|
|
13773
|
+
__extends(ServerConfigService, _super);
|
|
13774
|
+
function ServerConfigService(ngZone, injector) {
|
|
13775
|
+
var _this = _super.call(this, injector) || this;
|
|
13776
|
+
_this.ngZone = ngZone;
|
|
13777
|
+
_this.injector = injector;
|
|
13778
|
+
return _this;
|
|
13779
|
+
}
|
|
13780
|
+
ServerConfigService.prototype.getConfig = function () {
|
|
13781
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13782
|
+
var _a;
|
|
13783
|
+
return __generator(this, function (_b) {
|
|
13784
|
+
switch (_b.label) {
|
|
13785
|
+
case 0:
|
|
13786
|
+
if (!(this.serverConfig == null)) return [3 /*break*/, 2];
|
|
13787
|
+
_a = this;
|
|
13788
|
+
return [4 /*yield*/, this.query({
|
|
13789
|
+
query: ServerConfigQuery,
|
|
13790
|
+
includeKeyGraph: false,
|
|
13791
|
+
})];
|
|
13792
|
+
case 1:
|
|
13793
|
+
_a.serverConfig = (_b.sent()).serverConfig;
|
|
13794
|
+
_b.label = 2;
|
|
13795
|
+
case 2: return [2 /*return*/, this.serverConfig];
|
|
13796
|
+
}
|
|
13797
|
+
});
|
|
13798
|
+
});
|
|
13799
|
+
};
|
|
13800
|
+
return ServerConfigService;
|
|
13801
|
+
}(LrService));
|
|
13802
|
+
exports.ServerConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ServerConfigService_Factory() { return new exports.ServerConfigService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR)); }, token: exports.ServerConfigService, providedIn: "root" });
|
|
13803
|
+
exports.ServerConfigService.decorators = [
|
|
13804
|
+
{ type: i0.Injectable, args: [{
|
|
13805
|
+
providedIn: 'root',
|
|
13806
|
+
},] }
|
|
13807
|
+
];
|
|
13808
|
+
exports.ServerConfigService.ctorParameters = function () { return [
|
|
13809
|
+
{ type: i0.NgZone },
|
|
13810
|
+
{ type: i0.Injector }
|
|
13811
|
+
]; };
|
|
13812
|
+
exports.ServerConfigService = __decorate([
|
|
13813
|
+
RunOutsideAngular({
|
|
13814
|
+
ngZoneName: 'ngZone',
|
|
13815
|
+
})
|
|
13816
|
+
], exports.ServerConfigService);
|
|
13817
|
+
|
|
13818
|
+
var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\nmutation UpdateOwnedContactCardMutation(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(input: $input) {\n ownedContactCard {\n id\n }\n }\n}"], ["\nmutation UpdateOwnedContactCardMutation(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(input: $input) {\n ownedContactCard {\n id\n }\n }\n}"])));
|
|
13762
13819
|
var UpdateReceivedContactCardMutation = gqlTyped(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\nmutation UpdateReceivedContactCardMutation(\n $input: UpdateReceivedContactCardInput!\n) {\n updateReceivedContactCard(input: $input) {\n receivedContactCard {\n id\n }\n }\n}"], ["\nmutation UpdateReceivedContactCardMutation(\n $input: UpdateReceivedContactCardInput!\n) {\n updateReceivedContactCard(input: $input) {\n receivedContactCard {\n id\n }\n }\n}"])));
|
|
13763
13820
|
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\nquery GetOwnedContactCardKeyIdsQuery($id: LrRelayIdInput!) {\n ownedContactCard(id: $id) {\n sharedKey {\n id\n }\n ownerKey {\n id\n }\n }\n}"], ["\nquery GetOwnedContactCardKeyIdsQuery($id: LrRelayIdInput!) {\n ownedContactCard(id: $id) {\n sharedKey {\n id\n }\n ownerKey {\n id\n }\n }\n}"])));
|
|
13764
13821
|
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\nquery GetReceivedContactCardKeyIdQuery($id: LrRelayIdInput!) {\n receivedContactCard(id: $id) {\n receiverKey {\n id\n }\n }\n}"], ["\nquery GetReceivedContactCardKeyIdQuery($id: LrRelayIdInput!) {\n receivedContactCard(id: $id) {\n receiverKey {\n id\n }\n }\n}"])));
|
|
13765
|
-
var templateObject_1$
|
|
13822
|
+
var templateObject_1$t, templateObject_2$o, templateObject_3$k, templateObject_4$g;
|
|
13766
13823
|
|
|
13767
13824
|
exports.SharedContactCard2Service = /** @class */ (function () {
|
|
13768
13825
|
function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
|
|
@@ -14361,7 +14418,7 @@
|
|
|
14361
14418
|
})
|
|
14362
14419
|
], exports.TpPasswordResetService);
|
|
14363
14420
|
|
|
14364
|
-
var DeleteTpMutation = gqlTyped(templateObject_1$
|
|
14421
|
+
var DeleteTpMutation = gqlTyped(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\nmutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n}\n"])));
|
|
14365
14422
|
var ShareDirectoryMutation = gqlTyped(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"], ["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"])));
|
|
14366
14423
|
var UnshareDirectoryMutation = gqlTyped(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"], ["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"])));
|
|
14367
14424
|
var ShareFileMutation = gqlTyped(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n tpFile {\n id\n }\n }\n }\n"], ["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n tpFile {\n id\n }\n }\n }\n"])));
|
|
@@ -14369,10 +14426,10 @@
|
|
|
14369
14426
|
var RequestTpMkReshareMutation = gqlTyped(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\nmutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {\n requestTpMkReshare(input: $input) {\n id\n }\n}"], ["\nmutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {\n requestTpMkReshare(input: $input) {\n id\n }\n}"])));
|
|
14370
14427
|
var RespondTpMkReshareMutation = gqlTyped(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n mutation RespondTpMkReshareMutation($input: RespondTpMkReshareInput!) {\n respondTpMkReshare(input: $input) {\n id\n }\n }\n"], ["\n mutation RespondTpMkReshareMutation($input: RespondTpMkReshareInput!) {\n respondTpMkReshare(input: $input) {\n id\n }\n }\n"])));
|
|
14371
14428
|
var CompleteTpMkReshareMutation = gqlTyped(templateObject_8$9 || (templateObject_8$9 = __makeTemplateObject(["\nmutation CompleteTpMkReshareMutation($input: CompleteTpMkReshareInput!) {\n completeTpMkReshare(input: $input) {\n id\n }\n}"], ["\nmutation CompleteTpMkReshareMutation($input: CompleteTpMkReshareInput!) {\n completeTpMkReshare(input: $input) {\n id\n }\n}"])));
|
|
14372
|
-
var templateObject_1$
|
|
14429
|
+
var templateObject_1$u, templateObject_2$p, templateObject_3$l, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$a, templateObject_8$9;
|
|
14373
14430
|
|
|
14374
|
-
var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$
|
|
14375
|
-
var templateObject_1$
|
|
14431
|
+
var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\nquery TpCurrentUserSharedKeyQuery($id: LrRelayIdInput!) {\n tp(id: $id){\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n }\n mkReshareRequestCipher\n mkReshareRequestSent\n mkReshareResponseCipher\n mkReshareResponseSent\n }\n }\n }\n}\n"], ["\nquery TpCurrentUserSharedKeyQuery($id: LrRelayIdInput!) {\n tp(id: $id){\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n }\n mkReshareRequestCipher\n mkReshareRequestSent\n mkReshareResponseCipher\n mkReshareResponseSent\n }\n }\n }\n}\n"])));
|
|
14432
|
+
var templateObject_1$v;
|
|
14376
14433
|
|
|
14377
14434
|
exports.TrustedParty2Service = /** @class */ (function (_super) {
|
|
14378
14435
|
__extends(TrustedParty2Service, _super);
|