@lifeready/core 1.1.8 → 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.
Files changed (31) hide show
  1. package/bundles/lifeready-core.umd.js +137 -38
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +1 -1
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/types.js +1 -1
  6. package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +1 -1
  7. package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
  8. package/esm2015/lib/auth/life-ready-auth.service.js +12 -1
  9. package/esm2015/lib/item2/item2.gql.js +2 -1
  10. package/esm2015/lib/item2/item2.service.js +37 -12
  11. package/esm2015/lib/item2/item2.types.js +1 -1
  12. package/esm2015/lib/password/password.service.js +2 -2
  13. package/esm2015/lib/server-config/server-config.gql.js +9 -0
  14. package/esm2015/lib/server-config/server-config.service.js +41 -0
  15. package/esm2015/lib/time/time.service.js +2 -2
  16. package/esm2015/public-api.js +2 -1
  17. package/fesm2015/lifeready-core.js +91 -14
  18. package/fesm2015/lifeready-core.js.map +1 -1
  19. package/lib/_common/types.d.ts +1 -0
  20. package/lib/api/lr-graphql/lr-graphql.service.d.ts +2 -2
  21. package/lib/api/types/lr-graphql.types.d.ts +3 -0
  22. package/lib/auth/life-ready-auth.service.d.ts +4 -0
  23. package/lib/item2/item2.gql.d.ts +4 -3
  24. package/lib/item2/item2.service.d.ts +8 -4
  25. package/lib/item2/item2.types.d.ts +7 -3
  26. package/lib/server-config/server-config.gql.d.ts +5 -0
  27. package/lib/server-config/server-config.service.d.ts +9 -0
  28. package/lib/tp-password-reset/tp-password-reset-request.service.d.ts +1 -1
  29. package/lifeready-core.metadata.json +1 -1
  30. package/package.json +1 -1
  31. package/public-api.d.ts +1 -0
@@ -532,7 +532,7 @@
532
532
  return LrBadStateException;
533
533
  }(LrException));
534
534
 
535
- // "why?" you ask: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
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
- // "why?" you ask: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
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() {
@@ -6204,6 +6204,9 @@
6204
6204
  this.assemblyController = assemblyController;
6205
6205
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6206
6206
  this.hubSubject = new rxjs.ReplaySubject(1);
6207
+ // Could use rxjs observables here. But trying to have kc-client use as little angular
6208
+ // features as possible. Rxjs is not used anywhere else in kc-client.
6209
+ this.logoutListeners = new Set();
6207
6210
  }
6208
6211
  LifeReadyAuthService.prototype.initialise = function () {
6209
6212
  return __awaiter(this, void 0, void 0, function () {
@@ -6214,6 +6217,12 @@
6214
6217
  });
6215
6218
  });
6216
6219
  };
6220
+ LifeReadyAuthService.prototype.addLogoutListener = function (callback) {
6221
+ this.logoutListeners.add(callback);
6222
+ };
6223
+ LifeReadyAuthService.prototype.removeLogoutListener = function (callback) {
6224
+ this.logoutListeners.delete(callback);
6225
+ };
6217
6226
  LifeReadyAuthService.prototype.loginIdpImpl = function (emailOrPhone, password, passIdpParams, recoveryStatus) {
6218
6227
  return __awaiter(this, void 0, void 0, function () {
6219
6228
  var passIdpResult, user;
@@ -6595,12 +6604,17 @@
6595
6604
  return __awaiter(this, void 0, void 0, function () {
6596
6605
  return __generator(this, function (_b) {
6597
6606
  switch (_b.label) {
6598
- case 0:
6607
+ case 0:
6608
+ // Notify all listeners to clean up.
6609
+ return [4 /*yield*/, Promise.all(__spread(this.logoutListeners).map(function (callback) { return callback(); }))];
6610
+ case 1:
6611
+ // Notify all listeners to clean up.
6612
+ _b.sent();
6599
6613
  this.currentUser = null;
6600
6614
  this.keyService.purgeKeys();
6601
6615
  this.keyGraphService.purgeKeys();
6602
6616
  return [4 /*yield*/, Promise.all([this.auth.signOut(), this.profileService.signOut()])];
6603
- case 1:
6617
+ case 2:
6604
6618
  _b.sent();
6605
6619
  return [2 /*return*/];
6606
6620
  }
@@ -7938,7 +7952,7 @@
7938
7952
  var CreateDirectoryMutation = gqlTyped(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"])));
7939
7953
  var UpdateDirectoryMutation = gqlTyped(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"], ["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"])));
7940
7954
  var DeleteDirectoryMutation = gqlTyped(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"])));
7941
- var CreateFileMutation$1 = gqlTyped(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7955
+ var CreateFileMutation$1 = gqlTyped(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"])));
7942
7956
  var UpdateFileMutation = gqlTyped(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7943
7957
  var RevertFileMutation = gqlTyped(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7944
7958
  var DeleteFileMutation$1 = gqlTyped(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"])));
@@ -7960,7 +7974,7 @@
7960
7974
  var Item2Service_1;
7961
7975
  exports.Item2Service = Item2Service_1 = /** @class */ (function (_super) {
7962
7976
  __extends(Item2Service, _super);
7963
- function Item2Service(ngZone, injector, fileUploadService, keyService, keyFactory, keyGraph, lockService) {
7977
+ function Item2Service(ngZone, injector, fileUploadService, keyService, keyFactory, keyGraph, lockService, authService) {
7964
7978
  var _this = _super.call(this, injector) || this;
7965
7979
  _this.ngZone = ngZone;
7966
7980
  _this.injector = injector;
@@ -7969,6 +7983,10 @@
7969
7983
  _this.keyFactory = keyFactory;
7970
7984
  _this.keyGraph = keyGraph;
7971
7985
  _this.lockService = lockService;
7986
+ _this.authService = authService;
7987
+ // Caching the temp directory.
7988
+ _this.tempDirectory = null;
7989
+ _this.authService.addLogoutListener(function () { return _this.onLogout(); });
7972
7990
  return _this;
7973
7991
  }
7974
7992
  Item2Service.prototype.downloadFileContent = function (options) {
@@ -8310,12 +8328,16 @@
8310
8328
  var existing, createDirectory, updateLock, _c, createDirectoryResult, _d, id, keyId, _e, id, keyId;
8311
8329
  return __generator(this, function (_f) {
8312
8330
  switch (_f.label) {
8313
- case 0: return [4 /*yield*/, this.query({
8314
- query: TempDirectoryQuery,
8315
- variables: {
8316
- plainMeta: Item2Service_1.TEMP_DIRECTORY_PLAIN_META_FILTER,
8317
- },
8318
- })];
8331
+ case 0:
8332
+ if (this.tempDirectory) {
8333
+ return [2 /*return*/, this.tempDirectory];
8334
+ }
8335
+ return [4 /*yield*/, this.query({
8336
+ query: TempDirectoryQuery,
8337
+ variables: {
8338
+ plainMeta: Item2Service_1.TEMP_DIRECTORY_PLAIN_META_FILTER,
8339
+ },
8340
+ })];
8319
8341
  case 1:
8320
8342
  existing = _f.sent();
8321
8343
  if (existing.rootDirectories.edges.length > 1) {
@@ -8338,16 +8360,19 @@
8338
8360
  case 3:
8339
8361
  _c = __read.apply(void 0, [_f.sent(), 1]), createDirectoryResult = _c[0];
8340
8362
  _d = createDirectoryResult.createDirectory.directory, id = _d.id, keyId = _d.keyId;
8341
- return [2 /*return*/, {
8342
- id: id,
8343
- keyId: keyId,
8344
- }];
8363
+ this.tempDirectory = {
8364
+ id: id,
8365
+ keyId: keyId,
8366
+ };
8367
+ return [3 /*break*/, 5];
8345
8368
  case 4:
8346
8369
  _e = existing.rootDirectories.edges[0].node, id = _e.id, keyId = _e.keyId;
8347
- return [2 /*return*/, {
8348
- id: id,
8349
- keyId: keyId,
8350
- }];
8370
+ this.tempDirectory = {
8371
+ id: id,
8372
+ keyId: keyId,
8373
+ };
8374
+ _f.label = 5;
8375
+ case 5: return [2 /*return*/, this.tempDirectory];
8351
8376
  }
8352
8377
  });
8353
8378
  });
@@ -8366,19 +8391,27 @@
8366
8391
  */
8367
8392
  Item2Service.prototype.createDirectoryTreeMutation = function (options) {
8368
8393
  return __awaiter(this, void 0, void 0, function () {
8369
- var tempDir, dirId;
8394
+ var tempDir, directory;
8370
8395
  return __generator(this, function (_c) {
8371
8396
  switch (_c.label) {
8372
8397
  case 0: return [4 /*yield*/, this.ensureTempDirectory()];
8373
8398
  case 1:
8374
8399
  tempDir = _c.sent();
8375
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.
8376
8405
  return [4 /*yield*/, this.beginDeleteChildItemLinksWindow({
8377
8406
  directoryId: tempDir.id,
8378
8407
  requestWindowMs: options.requestWindowMs,
8379
8408
  })];
8380
8409
  case 2:
8381
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.
8382
8415
  _c.sent();
8383
8416
  return [4 /*yield*/, this.createDirectoryExec({
8384
8417
  cipherMetaClearJson: options.cipherMetaClearJson,
@@ -8391,9 +8424,12 @@
8391
8424
  plainMetaJson: options.plainMetaJson,
8392
8425
  })];
8393
8426
  case 3:
8394
- dirId = (_c.sent()).createDirectory.directory.id;
8427
+ directory = (_c.sent()).createDirectory.directory;
8395
8428
  // Create the contents
8396
- return [4 /*yield*/, options.createContent(dirId)];
8429
+ return [4 /*yield*/, options.createContent({
8430
+ id: directory.id,
8431
+ keyId: directory.keyId,
8432
+ })];
8397
8433
  case 4:
8398
8434
  // Create the contents
8399
8435
  _c.sent();
@@ -8401,7 +8437,8 @@
8401
8437
  // TODO return the server time where delete is scheduled. Expirable mutation
8402
8438
  // Return the mutation that moves the directory into the dst directories
8403
8439
  return [2 /*return*/, this.changeDirectoryParentsMutation({
8404
- directoryId: dirId,
8440
+ directoryId: directory.id,
8441
+ directoryKeyId: directory.keyId,
8405
8442
  parentsToRemove: [tempDir.id],
8406
8443
  parentsToAdd: options.parentDirectories,
8407
8444
  })];
@@ -8540,15 +8577,23 @@
8540
8577
  };
8541
8578
  Item2Service.prototype.prepareChangeItemParents = function (options, itemKey) {
8542
8579
  return __awaiter(this, void 0, void 0, function () {
8543
- var parentsToAdd;
8580
+ var parentsToAdd, _c;
8544
8581
  var _this = this;
8545
- return __generator(this, function (_c) {
8546
- switch (_c.label) {
8547
- case 0: return [4 /*yield*/, Promise.all(options.parentsToAdd.map(function (t) { return _this.prepareParentDirectory(t, itemKey); }))];
8582
+ return __generator(this, function (_d) {
8583
+ switch (_d.label) {
8584
+ case 0:
8585
+ if (!options.parentsToAdd) return [3 /*break*/, 2];
8586
+ return [4 /*yield*/, Promise.all(options.parentsToAdd.map(function (t) { return _this.prepareParentDirectory(t, itemKey); }))];
8548
8587
  case 1:
8549
- parentsToAdd = _c.sent();
8588
+ _c = _d.sent();
8589
+ return [3 /*break*/, 3];
8590
+ case 2:
8591
+ _c = [];
8592
+ _d.label = 3;
8593
+ case 3:
8594
+ parentsToAdd = _c;
8550
8595
  return [2 /*return*/, {
8551
- directoriesToRemove: options.parentsToRemove,
8596
+ directoriesToRemove: options.parentsToRemove || [],
8552
8597
  directoriesToAdd: parentsToAdd,
8553
8598
  }];
8554
8599
  }
@@ -8713,6 +8758,10 @@
8713
8758
  });
8714
8759
  });
8715
8760
  };
8761
+ Item2Service.prototype.onLogout = function () {
8762
+ // Clear all cached data.
8763
+ this.tempDirectory = null;
8764
+ };
8716
8765
  return Item2Service;
8717
8766
  }(LrService));
8718
8767
  exports.Item2Service.TEMP_DIRECTORY_PLAIN_META = { kcType: 'temp' };
@@ -8723,7 +8772,7 @@
8723
8772
  },
8724
8773
  ],
8725
8774
  });
8726
- exports.Item2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function Item2Service_Factory() { return new exports.Item2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(FileUploadService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.LockService)); }, token: exports.Item2Service, providedIn: "root" });
8775
+ exports.Item2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function Item2Service_Factory() { return new exports.Item2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(FileUploadService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.LockService), i0.ɵɵinject(LifeReadyAuthService)); }, token: exports.Item2Service, providedIn: "root" });
8727
8776
  exports.Item2Service.decorators = [
8728
8777
  { type: i0.Injectable, args: [{
8729
8778
  providedIn: 'root',
@@ -8736,7 +8785,8 @@
8736
8785
  { type: KeyService },
8737
8786
  { type: KeyFactoryService },
8738
8787
  { type: KeyGraphService },
8739
- { type: exports.LockService }
8788
+ { type: exports.LockService },
8789
+ { type: LifeReadyAuthService }
8740
8790
  ]; };
8741
8791
  exports.Item2Service = Item2Service_1 = __decorate([
8742
8792
  RunOutsideAngular({
@@ -13716,11 +13766,60 @@
13716
13766
  })
13717
13767
  ], exports.ScenarioService);
13718
13768
 
13719
- var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$s || (templateObject_1$s = __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}"])));
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}"])));
13720
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}"])));
13721
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}"])));
13722
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}"])));
13723
- var templateObject_1$s, templateObject_2$o, templateObject_3$k, templateObject_4$g;
13822
+ var templateObject_1$t, templateObject_2$o, templateObject_3$k, templateObject_4$g;
13724
13823
 
13725
13824
  exports.SharedContactCard2Service = /** @class */ (function () {
13726
13825
  function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
@@ -14319,7 +14418,7 @@
14319
14418
  })
14320
14419
  ], exports.TpPasswordResetService);
14321
14420
 
14322
- var DeleteTpMutation = gqlTyped(templateObject_1$t || (templateObject_1$t = __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"])));
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"])));
14323
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"])));
14324
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"])));
14325
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"])));
@@ -14327,10 +14426,10 @@
14327
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}"])));
14328
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"])));
14329
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}"])));
14330
- var templateObject_1$t, templateObject_2$p, templateObject_3$l, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$a, templateObject_8$9;
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;
14331
14430
 
14332
- var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$u || (templateObject_1$u = __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"])));
14333
- var templateObject_1$u;
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;
14334
14433
 
14335
14434
  exports.TrustedParty2Service = /** @class */ (function (_super) {
14336
14435
  __extends(TrustedParty2Service, _super);