@lifeready/core 1.0.8 → 1.0.9

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.
@@ -12832,283 +12832,13 @@
12832
12832
  return StripeBillingPortalSession;
12833
12833
  }());
12834
12834
 
12835
- (function (SearchItemType) {
12836
- SearchItemType["RECORD"] = "RECORD";
12837
- SearchItemType["CATEGORY"] = "CATEGORY";
12838
- })(exports.SearchItemType || (exports.SearchItemType = {}));
12839
-
12840
- var MAX_CATEGORY_DEPTH = 4;
12841
- var DEFAULT_CATEGORY_DEPTH = 4;
12842
- var SearchRecordContentsQuery = gql(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n query GetRecordContents(\n $id: LrRelayIdInput!\n $depth: Int\n $first: Int\n $after: String\n $recordContentFilter: LrJSONFilter!\n ) {\n category: directory(id: $id) {\n descendantDirectories(depth: $depth) {\n recordContents: files(\n first: $first\n after: $after\n plainMeta: $recordContentFilter\n orderBy: \"-created\"\n ) {\n edges {\n node {\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n nParentDirectoryLinks(n: 1) {\n list {\n parentDirectory {\n id\n keyId\n created\n modified\n archived\n plainMeta\n cipherMeta\n nParentDirectoryLinks(n: 3) {\n list {\n parentDirectory {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query GetRecordContents(\n $id: LrRelayIdInput!\n $depth: Int\n $first: Int\n $after: String\n $recordContentFilter: LrJSONFilter!\n ) {\n category: directory(id: $id) {\n descendantDirectories(depth: $depth) {\n recordContents: files(\n first: $first\n after: $after\n plainMeta: $recordContentFilter\n orderBy: \"-created\"\n ) {\n edges {\n node {\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n nParentDirectoryLinks(n: 1) {\n list {\n parentDirectory {\n id\n keyId\n created\n modified\n archived\n plainMeta\n cipherMeta\n nParentDirectoryLinks(n: 3) {\n list {\n parentDirectory {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
12843
- var templateObject_1$l;
12844
-
12845
- function debugPopulateCategory(categoryService, recordService, keyFactory, categoryId, recordsPerCategory) {
12846
- return __awaiter(this, void 0, void 0, function () {
12847
- var tasks, category, i, name, i, id;
12848
- return __generator(this, function (_a) {
12849
- switch (_a.label) {
12850
- case 0:
12851
- tasks = [];
12852
- return [4 /*yield*/, categoryService.getCategory(categoryId)];
12853
- case 1:
12854
- category = _a.sent();
12855
- i = category.records.length;
12856
- _a.label = 2;
12857
- case 2:
12858
- if (!(i < recordsPerCategory)) return [3 /*break*/, 5];
12859
- name = category.category.name + "+" + keyFactory.randomString(16);
12860
- console.log('Creating record: ', name);
12861
- return [4 /*yield*/, recordService.createRecord({
12862
- categoryIds: [category.category.id],
12863
- name: name,
12864
- recordType: {
12865
- id: '1',
12866
- version: 1,
12867
- name: 'Vehicle Details',
12868
- },
12869
- fields: [
12870
- {
12871
- id: '1-vin',
12872
- type: exports.RecordFieldType.Text,
12873
- label: 'VIN Number',
12874
- value: '1234567890',
12875
- },
12876
- {
12877
- id: '1-location',
12878
- type: exports.RecordFieldType.Text,
12879
- label: 'Location',
12880
- value: '10'.repeat(1000),
12881
- },
12882
- ],
12883
- })];
12884
- case 3:
12885
- _a.sent();
12886
- _a.label = 4;
12887
- case 4:
12888
- ++i;
12889
- return [3 /*break*/, 2];
12890
- case 5:
12891
- i = category.records.length;
12892
- _a.label = 6;
12893
- case 6:
12894
- if (!(i > recordsPerCategory)) return [3 /*break*/, 9];
12895
- id = category.records[i - 1].id;
12896
- console.log('Deleting record: ', id);
12897
- return [4 /*yield*/, recordService.deleteRecord(id)];
12898
- case 7:
12899
- _a.sent();
12900
- _a.label = 8;
12901
- case 8:
12902
- --i;
12903
- return [3 /*break*/, 6];
12904
- case 9: return [2 /*return*/];
12905
- }
12906
- });
12907
- });
12908
- }
12909
- function debugPopulateRecords(categoryService, recordService, keyFactory, recordsPerCategory) {
12910
- return __awaiter(this, void 0, void 0, function () {
12911
- var pillars, pillars_1, pillars_1_1, pillar, category, _a, _b, subCategory, e_1_1, e_2_1;
12912
- var e_2, _c, e_1, _d;
12913
- return __generator(this, function (_e) {
12914
- switch (_e.label) {
12915
- case 0: return [4 /*yield*/, categoryService.getCategories()];
12916
- case 1:
12917
- pillars = _e.sent();
12918
- _e.label = 2;
12919
- case 2:
12920
- _e.trys.push([2, 14, 15, 16]);
12921
- pillars_1 = __values(pillars), pillars_1_1 = pillars_1.next();
12922
- _e.label = 3;
12923
- case 3:
12924
- if (!!pillars_1_1.done) return [3 /*break*/, 13];
12925
- pillar = pillars_1_1.value;
12926
- return [4 /*yield*/, categoryService.getCategory(pillar.id)];
12927
- case 4:
12928
- category = _e.sent();
12929
- _e.label = 5;
12930
- case 5:
12931
- _e.trys.push([5, 10, 11, 12]);
12932
- _a = (e_1 = void 0, __values(category.subCategories)), _b = _a.next();
12933
- _e.label = 6;
12934
- case 6:
12935
- if (!!_b.done) return [3 /*break*/, 9];
12936
- subCategory = _b.value;
12937
- if (!subCategory.allowRecords) return [3 /*break*/, 8];
12938
- return [4 /*yield*/, debugPopulateCategory(categoryService, recordService, keyFactory, subCategory.id, recordsPerCategory)];
12939
- case 7:
12940
- _e.sent();
12941
- _e.label = 8;
12942
- case 8:
12943
- _b = _a.next();
12944
- return [3 /*break*/, 6];
12945
- case 9: return [3 /*break*/, 12];
12946
- case 10:
12947
- e_1_1 = _e.sent();
12948
- e_1 = { error: e_1_1 };
12949
- return [3 /*break*/, 12];
12950
- case 11:
12951
- try {
12952
- if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
12953
- }
12954
- finally { if (e_1) throw e_1.error; }
12955
- return [7 /*endfinally*/];
12956
- case 12:
12957
- pillars_1_1 = pillars_1.next();
12958
- return [3 /*break*/, 3];
12959
- case 13: return [3 /*break*/, 16];
12960
- case 14:
12961
- e_2_1 = _e.sent();
12962
- e_2 = { error: e_2_1 };
12963
- return [3 /*break*/, 16];
12964
- case 15:
12965
- try {
12966
- if (pillars_1_1 && !pillars_1_1.done && (_c = pillars_1.return)) _c.call(pillars_1);
12967
- }
12968
- finally { if (e_2) throw e_2.error; }
12969
- return [7 /*endfinally*/];
12970
- case 16: return [2 /*return*/];
12971
- }
12972
- });
12973
- });
12974
- }
12975
- exports.SearchService = /** @class */ (function () {
12976
- function SearchService(ngZone, lrApollo, categoryService, keyGraph) {
12977
- this.ngZone = ngZone;
12978
- this.lrApollo = lrApollo;
12979
- this.categoryService = categoryService;
12980
- this.keyGraph = keyGraph;
12981
- this.vaultItems = {};
12982
- }
12983
- SearchService.prototype.mapRecordContent = function (recordContent) {
12984
- return __awaiter(this, void 0, void 0, function () {
12985
- var record, state, plainCipherMeta, _a;
12986
- return __generator(this, function (_b) {
12987
- switch (_b.label) {
12988
- case 0:
12989
- record = recordContent.nParentDirectoryLinks.list[0].parentDirectory;
12990
- state = recordContent.currentVersion.state;
12991
- _a = state.cipherMeta;
12992
- if (!_a) return [3 /*break*/, 2];
12993
- return [4 /*yield*/, this.keyGraph.decryptFromString(state.keyId, state.cipherMeta)];
12994
- case 1:
12995
- _a = (_b.sent());
12996
- _b.label = 2;
12997
- case 2:
12998
- plainCipherMeta = _a;
12999
- return [2 /*return*/, {
13000
- type: exports.SearchItemType.RECORD,
13001
- id: record.id,
13002
- created: new Date(record.created),
13003
- modified: new Date(record.modified),
13004
- archived: record.archived,
13005
- plainMeta: state.plainMeta &&
13006
- JSON.parse(recordContent.currentVersion.state.plainMeta),
13007
- plainCipherMeta: plainCipherMeta,
13008
- parentCategoryId: record.nParentDirectoryLinks.list[0].parentDirectory.id,
13009
- }];
13010
- }
13011
- });
13012
- });
13013
- };
13014
- SearchService.prototype.mapRecordContents = function (edges) {
13015
- return __awaiter(this, void 0, void 0, function () {
13016
- var _this = this;
13017
- return __generator(this, function (_a) {
13018
- return [2 /*return*/, Promise.all(edges.map(function (edge) { return _this.mapRecordContent(edge.node); }))];
13019
- });
13020
- });
13021
- };
13022
- SearchService.prototype.load = function () {
13023
- return __awaiter(this, void 0, void 0, function () {
13024
- var defaultVault, start, end, _a, items, items_1, items_1_1, item;
13025
- var e_3, _b;
13026
- return __generator(this, function (_c) {
13027
- switch (_c.label) {
13028
- case 0: return [4 /*yield*/, this.categoryService.getDefaultVault()];
13029
- case 1:
13030
- defaultVault = _c.sent();
13031
- start = Date.now();
13032
- _a = this;
13033
- return [4 /*yield*/, this.lrApollo.query({
13034
- query: SearchRecordContentsQuery,
13035
- variables: {
13036
- id: defaultVault.id,
13037
- depth: 5,
13038
- first: null,
13039
- after: null,
13040
- recordContentFilter: RecordContentFilter,
13041
- },
13042
- })];
13043
- case 2:
13044
- _a.recordContentsResult = _c.sent();
13045
- end = Date.now();
13046
- console.log('Search API time (s): ', (end - start) / 1000);
13047
- start = Date.now();
13048
- return [4 /*yield*/, this.mapRecordContents(this.recordContentsResult.category.descendantDirectories.recordContents
13049
- .edges)];
13050
- case 3:
13051
- items = _c.sent();
13052
- try {
13053
- for (items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
13054
- item = items_1_1.value;
13055
- this.vaultItems[item.id] = item;
13056
- }
13057
- }
13058
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
13059
- finally {
13060
- try {
13061
- if (items_1_1 && !items_1_1.done && (_b = items_1.return)) _b.call(items_1);
13062
- }
13063
- finally { if (e_3) throw e_3.error; }
13064
- }
13065
- end = Date.now();
13066
- console.log('Search mapCategory time (s): ', (end - start) / 1000);
13067
- return [2 /*return*/];
13068
- }
13069
- });
13070
- });
13071
- };
13072
- SearchService.prototype.refresh = function () {
13073
- return __awaiter(this, void 0, void 0, function () {
13074
- return __generator(this, function (_a) {
13075
- switch (_a.label) {
13076
- case 0: return [4 /*yield*/, this.load()];
13077
- case 1:
13078
- _a.sent();
13079
- console.log(Object.values(this.vaultItems));
13080
- return [2 /*return*/, this.vaultItems];
13081
- }
13082
- });
13083
- });
13084
- };
13085
- return SearchService;
13086
- }());
13087
- exports.SearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SearchService_Factory() { return new exports.SearchService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(LrApolloService), i0.ɵɵinject(CategoryService), i0.ɵɵinject(KeyGraphService)); }, token: exports.SearchService, providedIn: "root" });
13088
- exports.SearchService.decorators = [
13089
- { type: i0.Injectable, args: [{
13090
- providedIn: 'root',
13091
- },] }
13092
- ];
13093
- exports.SearchService.ctorParameters = function () { return [
13094
- { type: i0.NgZone },
13095
- { type: LrApolloService },
13096
- { type: CategoryService },
13097
- { type: KeyGraphService }
13098
- ]; };
13099
- exports.SearchService = __decorate([
13100
- RunOutsideAngular({
13101
- ngZoneName: 'ngZone',
13102
- })
13103
- ], exports.SearchService);
13104
-
13105
- var ContactCardFragment = gqlTyped(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n fragment ContactCardFragment on ContactCardNode {\n id\n publicData\n publicSearchable\n cipherData\n key {\n id\n }\n }\n"], ["\n fragment ContactCardFragment on ContactCardNode {\n id\n publicData\n publicSearchable\n cipherData\n key {\n id\n }\n }\n"])));
12835
+ var ContactCardFragment = gqlTyped(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n fragment ContactCardFragment on ContactCardNode {\n id\n publicData\n publicSearchable\n cipherData\n key {\n id\n }\n }\n"], ["\n fragment ContactCardFragment on ContactCardNode {\n id\n publicData\n publicSearchable\n cipherData\n key {\n id\n }\n }\n"])));
13106
12836
  var CreateContactCardMutation$2 = gqlTyped(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n mutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n ) {\n createContactCard(input: $input) {\n contactCard {\n id\n }\n }\n }\n"], ["\n mutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n ) {\n createContactCard(input: $input) {\n contactCard {\n id\n }\n }\n }\n"])));
13107
12837
  var UpdateContactCardMutation$2 = gqlTyped(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n mutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n }\n }\n }\n"], ["\n mutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n }\n }\n }\n"])));
13108
12838
  var DeleteContactCardMutation$1 = gqlTyped(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n mutation DeleteContactCardMutation($input: DeleteContactCardInput!) {\n deleteContactCard(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteContactCardMutation($input: DeleteContactCardInput!) {\n deleteContactCard(input: $input) {\n id\n }\n }\n"])));
13109
12839
  var ContactCardsQuery = gqlTyped(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n query ContactCardsQuery {\n contactCards(orderBy: \"created\") {\n edges {\n node {\n ...ContactCardFragment\n }\n }\n }\n }\n ", "\n"], ["\n query ContactCardsQuery {\n contactCards(orderBy: \"created\") {\n edges {\n node {\n ...ContactCardFragment\n }\n }\n }\n }\n ", "\n"])), ContactCardFragment);
13110
12840
  var ContactCardQuery$1 = gqlTyped(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n query ContactCardQuery($id: LrRelayIdInput!) {\n contactCard(id: $id) {\n ...ContactCardFragment\n }\n }\n ", "\n"], ["\n query ContactCardQuery($id: LrRelayIdInput!) {\n contactCard(id: $id) {\n ...ContactCardFragment\n }\n }\n ", "\n"])), ContactCardFragment);
13111
- var templateObject_1$m, templateObject_2$i, templateObject_3$g, templateObject_4$f, templateObject_5$d, templateObject_6$b;
12841
+ var templateObject_1$l, templateObject_2$i, templateObject_3$g, templateObject_4$f, templateObject_5$d, templateObject_6$b;
13112
12842
 
13113
12843
  var OwnerPlainDataJson = /** @class */ (function () {
13114
12844
  function OwnerPlainDataJson() {
@@ -13238,7 +12968,7 @@
13238
12968
  })
13239
12969
  ], exports.ContactCard2Service);
13240
12970
 
13241
- var DirectoryKeyQuery = gqlTyped(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"], ["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"])));
12971
+ var DirectoryKeyQuery = gqlTyped(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"], ["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"])));
13242
12972
  var FileKeyQuery = gqlTyped(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\nquery FileKeyQuery($id: LrRelayIdInput!) {\n file(id: $id) {\n keyId\n }\n}\n"], ["\nquery FileKeyQuery($id: LrRelayIdInput!) {\n file(id: $id) {\n keyId\n }\n}\n"])));
13243
12973
  var FileStateKeyQuery = gqlTyped(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\nquery FileStateKeyQuery($id: LrRelayIdInput!) {\n fileState(id: $id) {\n keyId\n }\n}\n"], ["\nquery FileStateKeyQuery($id: LrRelayIdInput!) {\n fileState(id: $id) {\n keyId\n }\n}\n"])));
13244
12974
  var CreateDirectoryMutation = gqlTyped(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
@@ -13251,7 +12981,7 @@
13251
12981
  var UnarchiveDirectoryMutation$1 = gqlTyped(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
13252
12982
  var ChangeDirectoryParentsMutation = gqlTyped(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
13253
12983
  var ChangeFileParentsMutation = gqlTyped(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"])));
13254
- var templateObject_1$n, templateObject_2$j, templateObject_3$h, templateObject_4$g, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$7, templateObject_9$4, templateObject_10$4, templateObject_11$3, templateObject_12$3, templateObject_13$3;
12984
+ var templateObject_1$m, templateObject_2$j, templateObject_3$h, templateObject_4$g, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$7, templateObject_9$4, templateObject_10$4, templateObject_11$3, templateObject_12$3, templateObject_13$3;
13255
12985
 
13256
12986
  (function (DirectoryLinkType) {
13257
12987
  DirectoryLinkType["HARD"] = "HARD";
@@ -13727,7 +13457,7 @@
13727
13457
  })
13728
13458
  ], exports.Item2Service);
13729
13459
 
13730
- var KeyExchangeFragment = gqlTyped(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\nfragment KeyExchangeFragment on KeyExchangeNode {\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n}\n"], ["\nfragment KeyExchangeFragment on KeyExchangeNode {\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n}\n"])));
13460
+ var KeyExchangeFragment = gqlTyped(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\nfragment KeyExchangeFragment on KeyExchangeNode {\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n}\n"], ["\nfragment KeyExchangeFragment on KeyExchangeNode {\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n}\n"])));
13731
13461
  var UserSharedKeyFragment = gqlTyped(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\nfragment UserSharedKeyFragment on UserSharedKeyNode {\n userSigPrk {\n id\n }\n otherSigPbk {\n id\n }\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n}"], ["\nfragment UserSharedKeyFragment on UserSharedKeyNode {\n userSigPrk {\n id\n }\n otherSigPbk {\n id\n }\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n}"])));
13732
13462
  var KeyExchangesQuery2 = gqlTyped(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\nquery KeyExchangesQuery2($state: String) {\n keyExchanges(state: $state) {\n edges {\n node {\n ...KeyExchangeFragment\n }\n }\n }\n}\n", "\n"], ["\nquery KeyExchangesQuery2($state: String) {\n keyExchanges(state: $state) {\n edges {\n node {\n ...KeyExchangeFragment\n }\n }\n }\n}\n", "\n"])), KeyExchangeFragment);
13733
13463
  var KeyExchangeQuery2 = gqlTyped(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\nquery KeyExchangeQuery2($id: LrRelayIdInput!) {\n keyExchange(id: $id) {\n ...KeyExchangeFragment\n }\n}\n", "\n"], ["\nquery KeyExchangeQuery2($id: LrRelayIdInput!) {\n keyExchange(id: $id) {\n ...KeyExchangeFragment\n }\n}\n", "\n"])), KeyExchangeFragment);
@@ -13738,7 +13468,7 @@
13738
13468
  var RespondKeyExchangeOtkMutation = gqlTyped(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\nmutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"], ["\nmutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"])), KeyExchangeFragment, UserSharedKeyFragment);
13739
13469
  var CompleteKeyExchangeOtkMutation = gqlTyped(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\nmutation CompleteKeyExchangeOtkMutation(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"], ["\nmutation CompleteKeyExchangeOtkMutation(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"])), KeyExchangeFragment, UserSharedKeyFragment);
13740
13470
  var CurrentUserSharedKeyQuery2 = gqlTyped(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\nquery CurrentUserSharedKeyQuery2(\n $username: String\n $userId: LrRelayIdInput\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ...UserSharedKeyFragment\n }\n }\n}\n", "\n"], ["\nquery CurrentUserSharedKeyQuery2(\n $username: String\n $userId: LrRelayIdInput\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ...UserSharedKeyFragment\n }\n }\n}\n", "\n"])), UserSharedKeyFragment);
13741
- var templateObject_1$o, templateObject_2$k, templateObject_3$i, templateObject_4$h, templateObject_5$f, templateObject_6$d, templateObject_7$a, templateObject_8$8, templateObject_9$5, templateObject_10$5, templateObject_11$4;
13471
+ var templateObject_1$n, templateObject_2$k, templateObject_3$i, templateObject_4$h, templateObject_5$f, templateObject_6$d, templateObject_7$a, templateObject_8$8, templateObject_9$5, templateObject_10$5, templateObject_11$4;
13742
13472
 
13743
13473
  exports.KeyExchange2Service = /** @class */ (function () {
13744
13474
  function KeyExchange2Service(ngZone, keyFactory, keyService, encryptionService, userService, keyGraph, lrGraphQL) {
@@ -14425,11 +14155,11 @@
14425
14155
  })
14426
14156
  ], exports.KeyExchange2Service);
14427
14157
 
14428
- var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$p || (templateObject_1$p = __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}"])));
14158
+ var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$o || (templateObject_1$o = __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}"])));
14429
14159
  var UpdateReceivedContactCardMutation = gqlTyped(templateObject_2$l || (templateObject_2$l = __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}"])));
14430
14160
  var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$j || (templateObject_3$j = __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}"])));
14431
14161
  var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$i || (templateObject_4$i = __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}"])));
14432
- var templateObject_1$p, templateObject_2$l, templateObject_3$j, templateObject_4$i;
14162
+ var templateObject_1$o, templateObject_2$l, templateObject_3$j, templateObject_4$i;
14433
14163
 
14434
14164
  exports.SharedContactCard2Service = /** @class */ (function () {
14435
14165
  function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
@@ -14586,11 +14316,11 @@
14586
14316
  })
14587
14317
  ], exports.SharedContactCard2Service);
14588
14318
 
14589
- var LockFragment = gqlTyped(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"], ["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"])));
14319
+ var LockFragment = gqlTyped(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"], ["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"])));
14590
14320
  var UpdateLockMutation = gqlTyped(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
14591
14321
  var AcquireLockMutation = gqlTyped(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
14592
14322
  var ReleaseLockMutation = gqlTyped(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
14593
- var templateObject_1$q, templateObject_2$m, templateObject_3$k, templateObject_4$j;
14323
+ var templateObject_1$p, templateObject_2$m, templateObject_3$k, templateObject_4$j;
14594
14324
 
14595
14325
  exports.LockService = /** @class */ (function (_super) {
14596
14326
  __extends(LockService, _super);
@@ -14652,7 +14382,7 @@
14652
14382
  })
14653
14383
  ], exports.LockService);
14654
14384
 
14655
- var DeleteTpMutation = gqlTyped(templateObject_1$r || (templateObject_1$r = __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"])));
14385
+ var DeleteTpMutation = gqlTyped(templateObject_1$q || (templateObject_1$q = __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"])));
14656
14386
  var ShareDirectoryMutation = gqlTyped(templateObject_2$n || (templateObject_2$n = __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"])));
14657
14387
  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"])));
14658
14388
  var ShareFileMutation = gqlTyped(templateObject_4$k || (templateObject_4$k = __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"])));
@@ -14661,7 +14391,7 @@
14661
14391
  var RequestTpMkReshareMutation = gqlTyped(templateObject_7$b || (templateObject_7$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}"])));
14662
14392
  var RespondTpMkReshareMutation = gqlTyped(templateObject_8$9 || (templateObject_8$9 = __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"])));
14663
14393
  var CompleteTpMkReshareMutation = gqlTyped(templateObject_9$6 || (templateObject_9$6 = __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}"])));
14664
- var templateObject_1$r, templateObject_2$n, templateObject_3$l, templateObject_4$k, templateObject_5$g, templateObject_6$e, templateObject_7$b, templateObject_8$9, templateObject_9$6;
14394
+ var templateObject_1$q, templateObject_2$n, templateObject_3$l, templateObject_4$k, templateObject_5$g, templateObject_6$e, templateObject_7$b, templateObject_8$9, templateObject_9$6;
14665
14395
 
14666
14396
  exports.TrustedParty2Service = /** @class */ (function () {
14667
14397
  function TrustedParty2Service(ngZone, keyGraph, lrGraphQL, item2Service, keyService, keyFactory, encryptionService) {
@@ -15650,12 +15380,12 @@
15650
15380
  })
15651
15381
  ], exports.TpPasswordResetRequestService);
15652
15382
 
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"])));
15383
+ var UpdateNotificationMutation = gqlTyped(templateObject_1$r || (templateObject_1$r = __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
15384
  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
15385
  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
15386
  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
15387
  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;
15388
+ var templateObject_1$r, templateObject_2$o, templateObject_3$m, templateObject_4$l, templateObject_5$h;
15659
15389
 
15660
15390
  exports.NotificationService = /** @class */ (function (_super) {
15661
15391
  __extends(NotificationService, _super);
@@ -16056,7 +15786,6 @@
16056
15786
  exports.awsFetch = awsFetch;
16057
15787
  exports.configureAmplifyAuth = configureAmplifyAuth;
16058
15788
  exports.configureApollo = configureApollo;
16059
- exports.debugPopulateRecords = debugPopulateRecords;
16060
15789
  exports.fragmentSpreadAstSelection = fragmentSpreadAstSelection;
16061
15790
  exports.gqlTyped = gqlTyped;
16062
15791
  exports.handleApolloError = handleApolloError;