@lifeready/core 1.0.22 → 1.1.2

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 (169) hide show
  1. package/bundles/lifeready-core.umd.js +241 -201
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +1 -15
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/ast.js +2 -1
  6. package/esm2015/lib/_common/deferred-promise.js +1 -1
  7. package/esm2015/lib/_common/exceptions.js +1 -1
  8. package/esm2015/lib/_common/queries.gql.js +1 -1
  9. package/esm2015/lib/_common/run-outside-angular.js +2 -1
  10. package/esm2015/lib/_common/types.js +2 -1
  11. package/esm2015/lib/_common/utils.js +2 -1
  12. package/esm2015/lib/api/lr-apollo.service.js +2 -1
  13. package/esm2015/lib/api/lr-graphql/index.js +1 -1
  14. package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +7 -6
  15. package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +5 -6
  16. package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +1 -1
  17. package/esm2015/lib/api/lr-graphql/lr-mutation.js +3 -3
  18. package/esm2015/lib/api/lr-graphql/lr.service.js +1 -1
  19. package/esm2015/lib/api/query-processor/common-processors.service.js +2 -1
  20. package/esm2015/lib/api/query-processor/index.js +1 -1
  21. package/esm2015/lib/api/query-processor/query-processor.service.js +2 -1
  22. package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +3 -3
  23. package/esm2015/lib/api/types/graphql.types.js +2 -1
  24. package/esm2015/lib/api/types/index.js +1 -1
  25. package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
  26. package/esm2015/lib/auth/auth.config.js +1 -1
  27. package/esm2015/lib/auth/auth.gql.js +1 -1
  28. package/esm2015/lib/auth/auth.types.js +1 -1
  29. package/esm2015/lib/auth/life-ready-auth.service.js +5 -2
  30. package/esm2015/lib/category/category-meta.service.js +1 -1
  31. package/esm2015/lib/category/category.gql.js +3 -2
  32. package/esm2015/lib/category/category.service.js +5 -4
  33. package/esm2015/lib/category/category.types.js +1 -1
  34. package/esm2015/lib/contact-card/contact-card.gql.js +1 -1
  35. package/esm2015/lib/contact-card/contact-card.service.js +3 -1
  36. package/esm2015/lib/contact-card/contact-card2.gql.js +1 -1
  37. package/esm2015/lib/contact-card/contact-card2.service.js +1 -1
  38. package/esm2015/lib/encryption/encryption.service.js +2 -1
  39. package/esm2015/lib/file-upload/file-upload.service.js +2 -2
  40. package/esm2015/lib/file-upload/file-upload.types.js +2 -1
  41. package/esm2015/lib/idle/idle.service.js +1 -1
  42. package/esm2015/lib/idle/idle.types.js +1 -1
  43. package/esm2015/lib/item2/item2.gql.js +127 -0
  44. package/esm2015/lib/item2/item2.gql.private.js +23 -0
  45. package/esm2015/lib/item2/item2.service.js +519 -0
  46. package/esm2015/lib/item2/item2.types.js +2 -0
  47. package/esm2015/lib/key/key-factory.service.js +1 -1
  48. package/esm2015/lib/key/key-graph.service.js +2 -1
  49. package/esm2015/lib/key/key-meta.service.js +2 -1
  50. package/esm2015/lib/key/key.service.js +1 -1
  51. package/esm2015/lib/key/key.types.js +1 -1
  52. package/esm2015/lib/key-exchange/key-exchange.gql.js +1 -1
  53. package/esm2015/lib/key-exchange/key-exchange.service.js +2 -4
  54. package/esm2015/lib/key-exchange/key-exchange.types.js +1 -1
  55. package/esm2015/lib/key-exchange/key-exchange2.gql.js +1 -1
  56. package/esm2015/lib/key-exchange/key-exchange2.service.js +1 -1
  57. package/esm2015/lib/lbop/lbop.service.js +3 -1
  58. package/esm2015/lib/life-ready.config.js +2 -1
  59. package/esm2015/lib/life-ready.module.js +1 -1
  60. package/esm2015/lib/lock/lock.gql.js +1 -1
  61. package/esm2015/lib/lock/lock.service.js +1 -1
  62. package/esm2015/lib/message/message.gql.js +1 -1
  63. package/esm2015/lib/message/message.service.js +13 -11
  64. package/esm2015/lib/message/message.types.js +2 -1
  65. package/esm2015/lib/notification/notification.gql.js +1 -1
  66. package/esm2015/lib/notification/notification.service.js +2 -2
  67. package/esm2015/lib/password/password.gql.js +1 -1
  68. package/esm2015/lib/password/password.service.js +3 -2
  69. package/esm2015/lib/persist/persist.service.js +2 -1
  70. package/esm2015/lib/plan/plan.gql.js +1 -1
  71. package/esm2015/lib/plan/plan.service.js +3 -2
  72. package/esm2015/lib/plan/plan.types.js +1 -1
  73. package/esm2015/lib/profile/profile-details.service.js +3 -2
  74. package/esm2015/lib/profile/profile.gql.js +2 -1
  75. package/esm2015/lib/profile/profile.service.js +2 -1
  76. package/esm2015/lib/profile/profile.types.js +1 -1
  77. package/esm2015/lib/record/record-attachment.service.js +2 -1
  78. package/esm2015/lib/record/record.gql.js +1 -1
  79. package/esm2015/lib/record/record.service.js +6 -6
  80. package/esm2015/lib/record/record.types.js +1 -1
  81. package/esm2015/lib/record-type/record-type.service.js +1 -1
  82. package/esm2015/lib/record-type/record-type.types.js +1 -1
  83. package/esm2015/lib/register/register.service.js +2 -1
  84. package/esm2015/lib/scenario/scenario.constants.js +1 -1
  85. package/esm2015/lib/scenario/scenario.controller.js +1 -1
  86. package/esm2015/lib/scenario/scenario.gql.js +1 -1
  87. package/esm2015/lib/scenario/scenario.private.gql.js +1 -1
  88. package/esm2015/lib/scenario/scenario.service.js +12 -10
  89. package/esm2015/lib/scenario/scenario.types.js +2 -1
  90. package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +1 -1
  91. package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +1 -1
  92. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +1 -1
  93. package/esm2015/lib/slip39/slip39.service.js +5 -7
  94. package/esm2015/lib/time/time.service.js +1 -1
  95. package/esm2015/lib/tp-assembly/tp-assembly.js +1 -1
  96. package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +1 -1
  97. package/esm2015/lib/tp-assembly/tp-assembly.types.js +2 -1
  98. package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +2 -2
  99. package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +4 -3
  100. package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +1 -1
  101. package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +1 -1
  102. package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +1 -1
  103. package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +1 -1
  104. package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +1 -1
  105. package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +1 -1
  106. package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +2 -1
  107. package/esm2015/lib/trusted-party/trusted-party.gql.js +1 -1
  108. package/esm2015/lib/trusted-party/trusted-party.service.js +3 -2
  109. package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
  110. package/esm2015/lib/trusted-party/trusted-party2.gql.js +1 -1
  111. package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +1 -1
  112. package/esm2015/lib/trusted-party/trusted-party2.service.js +3 -3
  113. package/esm2015/lib/trusted-party/trusted-party2.types.js +2 -1
  114. package/esm2015/lib/two-factor/two-factor.service.js +1 -1
  115. package/esm2015/lib/user/user.gql.js +1 -1
  116. package/esm2015/lib/user/user.service.js +3 -2
  117. package/esm2015/lib/user/user.types.js +2 -1
  118. package/esm2015/lib/web-crypto/web-crypto.service.js +1 -1
  119. package/esm2015/lifeready-core.js +1 -1
  120. package/esm2015/public-api.js +3 -3
  121. package/fesm2015/lifeready-core.js +93 -84
  122. package/fesm2015/lifeready-core.js.map +1 -1
  123. package/lib/_common/utils.d.ts +2 -2
  124. package/lib/api/lr-apollo.service.d.ts +1 -1
  125. package/lib/api/lr-graphql/lr-graphql.service.d.ts +25 -7
  126. package/lib/api/lr-graphql/lr-merged-mutation.d.ts +22 -4
  127. package/lib/api/lr-graphql/lr-mutation.d.ts +1 -2
  128. package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +1 -1
  129. package/lib/api/types/lr-graphql.types.d.ts +3 -3
  130. package/lib/auth/auth.types.d.ts +3 -3
  131. package/lib/auth/life-ready-auth.service.d.ts +2 -2
  132. package/lib/category/category.service.d.ts +2 -2
  133. package/lib/contact-card/contact-card2.service.d.ts +17 -2
  134. package/lib/encryption/encryption.service.d.ts +8 -7
  135. package/lib/file-upload/file-upload.service.d.ts +2 -1
  136. package/lib/idle/idle.service.d.ts +2 -2
  137. package/lib/{items2 → item2}/item2.gql.d.ts +16 -16
  138. package/lib/{items2 → item2}/item2.service.d.ts +24 -25
  139. package/lib/key/key-factory.service.d.ts +2 -1
  140. package/lib/key/key-graph.service.d.ts +1 -1
  141. package/lib/key/key.types.d.ts +5 -5
  142. package/lib/key-exchange/key-exchange2.service.d.ts +11 -11
  143. package/lib/life-ready.config.d.ts +1 -1
  144. package/lib/message/message.service.d.ts +8 -1
  145. package/lib/notification/notification.service.d.ts +3 -2
  146. package/lib/password/password.service.d.ts +1 -1
  147. package/lib/plan/plan.service.d.ts +3 -2
  148. package/lib/plan/plan.types.d.ts +2 -1
  149. package/lib/profile/profile-details.service.d.ts +1 -1
  150. package/lib/profile/profile.types.d.ts +2 -1
  151. package/lib/record/record.service.d.ts +2 -2
  152. package/lib/scenario/scenario.service.d.ts +103 -3
  153. package/lib/slip39/slip39.service.d.ts +0 -1
  154. package/lib/tp-assembly/tp-assembly.types.d.ts +2 -2
  155. package/lib/tp-password-reset/tp-password-reset-request.service.d.ts +1 -1
  156. package/lib/tp-password-reset/tp-password-reset.gql.d.ts +2 -2
  157. package/lib/tp-password-reset/tp-password-reset.types.d.ts +2 -2
  158. package/lib/trusted-party/trusted-party.service.d.ts +1 -1
  159. package/lib/trusted-party/trusted-party2.service.d.ts +1 -1
  160. package/lib/user/user.service.d.ts +1 -1
  161. package/lifeready-core.metadata.json +1 -1
  162. package/package.json +2 -2
  163. package/public-api.d.ts +2 -2
  164. package/esm2015/lib/items2/item2.gql.js +0 -127
  165. package/esm2015/lib/items2/item2.gql.private.js +0 -23
  166. package/esm2015/lib/items2/item2.service.js +0 -516
  167. package/esm2015/lib/items2/item2.types.js +0 -1
  168. /package/lib/{items2 → item2}/item2.gql.private.d.ts +0 -0
  169. /package/lib/{items2 → item2}/item2.types.d.ts +0 -0
@@ -1,13 +1,36 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('apollo-angular'), require('@dagrejs/graphlib'), require('lodash'), require('node-jose'), require('@aws-amplify/auth/lib-esm/Auth'), require('graphql-tag'), require('moment'), require('@apollo/client/core'), require('@apollo/client/link/context'), require('@apollo/client/link/retry'), require('ngx-cookie-service'), require('graphql/language/printer'), require('@aws-amplify/auth'), require('@aws-amplify/core'), require('rxjs'), require('@angular/common/http'), require('@ng-idle/core'), require('@ng-idle/keepalive'), require('slip39')) :
3
3
  typeof define === 'function' && define.amd ? define('@lifeready/core', ['exports', '@angular/core', 'apollo-angular', '@dagrejs/graphlib', 'lodash', 'node-jose', '@aws-amplify/auth/lib-esm/Auth', 'graphql-tag', 'moment', '@apollo/client/core', '@apollo/client/link/context', '@apollo/client/link/retry', 'ngx-cookie-service', 'graphql/language/printer', '@aws-amplify/auth', '@aws-amplify/core', 'rxjs', '@angular/common/http', '@ng-idle/core', '@ng-idle/keepalive', 'slip39'], factory) :
4
- (global = global || self, factory((global.lifeready = global.lifeready || {}, global.lifeready.core = {}), global.ng.core, global['apollo-angular'], global['@dagrejs/graphlib'], global.lodash, global['node-jose'], global['@aws-amplify/auth/lib-esm/Auth'], global['graphql-tag'], global.moment, global['@apollo/client/core'], global['@apollo/client/link/context'], global['@apollo/client/link/retry'], global['ngx-cookie-service'], global['graphql/language/printer'], global['@aws-amplify/auth'], global['@aws-amplify/core'], global.rxjs, global.ng.common.http, global['@ng-idle/core'], global['@ng-idle/keepalive'], global.slip39));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.lifeready = global.lifeready || {}, global.lifeready.core = {}), global.ng.core, global['apollo-angular'], global['@dagrejs/graphlib'], global.lodash, global['node-jose'], global['@aws-amplify/auth/lib-esm/Auth'], global['graphql-tag'], global.moment, global['@apollo/client/core'], global['@apollo/client/link/context'], global['@apollo/client/link/retry'], global['ngx-cookie-service'], global['graphql/language/printer'], global['@aws-amplify/auth'], global['@aws-amplify/core'], global.rxjs, global.ng.common.http, global['@ng-idle/core'], global['@ng-idle/keepalive'], global.slip39));
5
5
  }(this, (function (exports, i0, i1, graphlib, _, nodeJose, i4, gql, moment_, core, context, retry, i2, gqlPrinter, Auth, core$1, rxjs, i2$1, i3, i4$1, slip39) { 'use strict';
6
6
 
7
- var graphlib__default = 'default' in graphlib ? graphlib['default'] : graphlib;
8
- var ___default = 'default' in _ ? _['default'] : _;
9
- gql = gql && Object.prototype.hasOwnProperty.call(gql, 'default') ? gql['default'] : gql;
10
- var Auth__default = 'default' in Auth ? Auth['default'] : Auth;
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () {
19
+ return e[k];
20
+ }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n['default'] = e;
26
+ return Object.freeze(n);
27
+ }
28
+
29
+ var graphlib__default = /*#__PURE__*/_interopDefaultLegacy(graphlib);
30
+ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
31
+ var gql__default = /*#__PURE__*/_interopDefaultLegacy(gql);
32
+ var moment___namespace = /*#__PURE__*/_interopNamespace(moment_);
33
+ var Auth__default = /*#__PURE__*/_interopDefaultLegacy(Auth);
11
34
 
12
35
  /*! *****************************************************************************
13
36
  Copyright (c) Microsoft Corporation.
@@ -510,8 +533,8 @@
510
533
  }(LrException));
511
534
 
512
535
  // "why?" you ask: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
513
- var moment = moment_;
514
- var ServerTimeQuery = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query {\n serverTime {\n timestamp\n }\n }\n"], ["\n query {\n serverTime {\n timestamp\n }\n }\n"])));
536
+ var moment = moment___namespace;
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"])));
515
538
  var TimeService = /** @class */ (function () {
516
539
  function TimeService(auth, apollo) {
517
540
  this.auth = auth;
@@ -1794,7 +1817,7 @@
1794
1817
  }
1795
1818
  var node = {
1796
1819
  type: KeyGraphNodeType.Key,
1797
- data: ___default.cloneDeep(key),
1820
+ data: ___default['default'].cloneDeep(key),
1798
1821
  };
1799
1822
  this.graph.setNode(key.id, node);
1800
1823
  }
@@ -1817,7 +1840,7 @@
1817
1840
  }
1818
1841
  var edge = {
1819
1842
  type: KeyGraphEdgeType.KeyLink,
1820
- data: ___default.cloneDeep(keyLink),
1843
+ data: ___default['default'].cloneDeep(keyLink),
1821
1844
  };
1822
1845
  // Edge goes from wrapping key to wrapped key.
1823
1846
  this.graph.setEdge(keyLink.wrappingKeyId, keyLink.keyId, edge);
@@ -1841,7 +1864,7 @@
1841
1864
  }
1842
1865
  var edge = {
1843
1866
  type: KeyGraphEdgeType.PassKeyLink,
1844
- data: ___default.cloneDeep(passKeyLink),
1867
+ data: ___default['default'].cloneDeep(passKeyLink),
1845
1868
  };
1846
1869
  // Edge goes from wrapping key to wrapped key.
1847
1870
  this.graph.setEdge(passKeyLink.passKeyId, passKeyLink.keyId, edge);
@@ -1887,7 +1910,7 @@
1887
1910
  // D: { distance: 2, predecessor: 'A' },
1888
1911
  // E: { distance: 8, predecessor: 'F' },
1889
1912
  // F: { distance: 4, predecessor: 'D' } }
1890
- var distances = graphlib__default.alg.dijkstra(this.graph, knownKeyId);
1913
+ var distances = graphlib__default['default'].alg.dijkstra(this.graph, knownKeyId);
1891
1914
  // Trace path from keyId to knownKeyId
1892
1915
  return this.tracePath(distances, keyId);
1893
1916
  };
@@ -2212,19 +2235,6 @@
2212
2235
  { type: KeyGraphService }
2213
2236
  ]; };
2214
2237
 
2215
- var KeyGraphFragmentBase = "\n{\n keys {\n id\n }\n keyLinks {\n keyId\n wrappingKeyId\n wrappedKey\n }\n passKeys {\n id\n }\n passKeyLinks {\n keyId\n passKeyId\n wrappedKey\n }\n __typename\n}\n";
2216
- var KeyGraphFragment = gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\nfragment KeyGraphFragment on KeyGraphType ", "\n"], ["\nfragment KeyGraphFragment on KeyGraphType ", "\n"])), KeyGraphFragmentBase);
2217
- var KeyGraphField = "keyGraph " + KeyGraphFragmentBase;
2218
- var FetchKeyGraphField = "keyGraph: fetchKeyGraph " + KeyGraphFragmentBase;
2219
- var FileQuery = gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query File($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n file(id: $id) {\n id\n keyId\n currentVersion {\n id\n operation\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n id\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n }\n }\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n id\n plainMeta\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query File($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n file(id: $id) {\n id\n keyId\n currentVersion {\n id\n operation\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n id\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n }\n }\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n id\n plainMeta\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
2220
- var DirectoryQuery = gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Directory($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n directory(id: $id) {\n id\n keyId\n plainMeta\n cipherMeta\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query Directory($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n directory(id: $id) {\n id\n keyId\n plainMeta\n cipherMeta\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
2221
- var CreateFileQuery = gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
2222
- var UpdateFileQuery = gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"], ["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"])));
2223
- var RevertFileQuery = gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n mutation RevertFile($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"], ["\n mutation RevertFile($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"])));
2224
- var MoveFileQuery = gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n mutation MoveFile(\n $fileId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput!\n $toParentDirectoryId: LrRelayIdInput!\n $wrappingKeyId: LrRelayIdInput!\n $wrappedKey: String!\n ) {\n moveFile(\n input: {\n fileId: $fileId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappingKeyId: $wrappingKeyId\n wrappedKey: $wrappedKey\n }\n ) {\n file {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"], ["\n mutation MoveFile(\n $fileId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput!\n $toParentDirectoryId: LrRelayIdInput!\n $wrappingKeyId: LrRelayIdInput!\n $wrappedKey: String!\n ) {\n moveFile(\n input: {\n fileId: $fileId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappingKeyId: $wrappingKeyId\n wrappedKey: $wrappedKey\n }\n ) {\n file {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"])));
2225
- var MoveDirectoryQuery = gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation MoveDirectory(\n $directoryId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput\n $toParentDirectoryId: LrRelayIdInput!\n $wrappedKey: String!\n $wrappingKeyId: LrRelayIdInput!\n ) {\n moveDirectory(\n input: {\n directoryId: $directoryId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappedKey: $wrappedKey\n wrappingKeyId: $wrappingKeyId\n }\n ) {\n directory {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"], ["\n mutation MoveDirectory(\n $directoryId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput\n $toParentDirectoryId: LrRelayIdInput!\n $wrappedKey: String!\n $wrappingKeyId: LrRelayIdInput!\n ) {\n moveDirectory(\n input: {\n directoryId: $directoryId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappedKey: $wrappedKey\n wrappingKeyId: $wrappingKeyId\n }\n ) {\n directory {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"])));
2226
- var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
2227
-
2228
2238
  function getAstOperation(astDocument, operation) {
2229
2239
  var operations = astDocument.definitions.filter(function (def) { return def.kind === 'OperationDefinition'; });
2230
2240
  if (operations.length > 1) {
@@ -2263,9 +2273,22 @@
2263
2273
  for (var _i = 1; _i < arguments.length; _i++) {
2264
2274
  placeholders[_i - 1] = arguments[_i];
2265
2275
  }
2266
- return gql.apply(void 0, __spread([literals], placeholders));
2276
+ return gql__default['default'].apply(void 0, __spread([literals], placeholders));
2267
2277
  }
2268
2278
 
2279
+ var KeyGraphFragmentBase = "\n{\n keys {\n id\n }\n keyLinks {\n keyId\n wrappingKeyId\n wrappedKey\n }\n passKeys {\n id\n }\n passKeyLinks {\n keyId\n passKeyId\n wrappedKey\n }\n __typename\n}\n";
2280
+ var KeyGraphFragment = gql__default['default'](templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\nfragment KeyGraphFragment on KeyGraphType ", "\n"], ["\nfragment KeyGraphFragment on KeyGraphType ", "\n"])), KeyGraphFragmentBase);
2281
+ var KeyGraphField = "keyGraph " + KeyGraphFragmentBase;
2282
+ var FetchKeyGraphField = "keyGraph: fetchKeyGraph " + KeyGraphFragmentBase;
2283
+ var FileQuery = gql__default['default'](templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query File($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n file(id: $id) {\n id\n keyId\n currentVersion {\n id\n operation\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n id\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n }\n }\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n id\n plainMeta\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query File($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n file(id: $id) {\n id\n keyId\n currentVersion {\n id\n operation\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n id\n state {\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n }\n }\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n id\n plainMeta\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
2284
+ var DirectoryQuery = gql__default['default'](templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Directory($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n directory(id: $id) {\n id\n keyId\n plainMeta\n cipherMeta\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query Directory($id: LrRelayIdInput!, $cachedKeyIds: [LrRelayIdInput!]) {\n directory(id: $id) {\n id\n keyId\n plainMeta\n cipherMeta\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
2285
+ var CreateFileQuery = gql__default['default'](templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
2286
+ var UpdateFileQuery = gql__default['default'](templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"], ["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"])));
2287
+ var RevertFileQuery = gql__default['default'](templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n mutation RevertFile($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"], ["\n mutation RevertFile($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n currentVersion {\n id\n state {\n id\n }\n }\n }\n }\n }\n"])));
2288
+ var MoveFileQuery = gql__default['default'](templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n mutation MoveFile(\n $fileId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput!\n $toParentDirectoryId: LrRelayIdInput!\n $wrappingKeyId: LrRelayIdInput!\n $wrappedKey: String!\n ) {\n moveFile(\n input: {\n fileId: $fileId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappingKeyId: $wrappingKeyId\n wrappedKey: $wrappedKey\n }\n ) {\n file {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"], ["\n mutation MoveFile(\n $fileId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput!\n $toParentDirectoryId: LrRelayIdInput!\n $wrappingKeyId: LrRelayIdInput!\n $wrappedKey: String!\n ) {\n moveFile(\n input: {\n fileId: $fileId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappingKeyId: $wrappingKeyId\n wrappedKey: $wrappedKey\n }\n ) {\n file {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"])));
2289
+ var MoveDirectoryQuery = gql__default['default'](templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation MoveDirectory(\n $directoryId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput\n $toParentDirectoryId: LrRelayIdInput!\n $wrappedKey: String!\n $wrappingKeyId: LrRelayIdInput!\n ) {\n moveDirectory(\n input: {\n directoryId: $directoryId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappedKey: $wrappedKey\n wrappingKeyId: $wrappingKeyId\n }\n ) {\n directory {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"], ["\n mutation MoveDirectory(\n $directoryId: LrRelayIdInput!\n $fromParentDirectoryId: LrRelayIdInput\n $toParentDirectoryId: LrRelayIdInput!\n $wrappedKey: String!\n $wrappingKeyId: LrRelayIdInput!\n ) {\n moveDirectory(\n input: {\n directoryId: $directoryId\n fromParentDirectoryId: $fromParentDirectoryId\n toParentDirectoryId: $toParentDirectoryId\n wrappedKey: $wrappedKey\n wrappingKeyId: $wrappingKeyId\n }\n ) {\n directory {\n id\n parentDirectoryLinks {\n edges {\n node {\n parentDirectory {\n plainMeta\n }\n }\n }\n }\n }\n }\n }\n"])));
2290
+ var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
2291
+
2269
2292
  /**
2270
2293
  * If you wish to change the behaviour of those, you'll need to create a derived
2271
2294
  * class and override the methods.
@@ -2354,6 +2377,7 @@
2354
2377
  };
2355
2378
  }
2356
2379
 
2380
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2357
2381
  // Promise.all always returns a promise, even if all the values are not async.
2358
2382
  // During processing of deep hierarchies of nested objects we don't always need to
2359
2383
  // promote everything to a promise.
@@ -2714,7 +2738,7 @@
2714
2738
  });
2715
2739
  });
2716
2740
  };
2717
- TpPasswordResetProcessorService.prototype.processTpAssemblyApproverNode = function (approver, applied) {
2741
+ TpPasswordResetProcessorService.prototype.processTpAssemblyApproverNode = function (approver, _applied) {
2718
2742
  return __awaiter(this, void 0, void 0, function () {
2719
2743
  return __generator(this, function (_b) {
2720
2744
  return [2 /*return*/, approver];
@@ -3082,7 +3106,7 @@
3082
3106
  return DeferredPromise;
3083
3107
  }());
3084
3108
 
3085
- var fragmentSpreadAstSelection = getQuery(gql(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query {\n ...FragmentName\n }\n"], ["\n query {\n ...FragmentName\n }\n"])))).selectionSet.selections[0];
3109
+ var fragmentSpreadAstSelection = getQuery(gql__default['default'](templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n query {\n ...FragmentName\n }\n"], ["\n query {\n ...FragmentName\n }\n"])))).selectionSet.selections[0];
3086
3110
  // const fragmentSpreadAstSelection = () =>
3087
3111
  // lodash.deepClone(_fragmentSpreadAstSelection) as FragmentSpreadNode;
3088
3112
  /**
@@ -3320,8 +3344,7 @@
3320
3344
  return selections.map(function (selection) {
3321
3345
  switch (selection.kind) {
3322
3346
  case 'Field':
3323
- var field = _this.renameField(selection, prefix);
3324
- return _this.processSelection(field, prefix);
3347
+ return _this.processSelection(_this.renameField(selection, prefix), prefix);
3325
3348
  default:
3326
3349
  return selection;
3327
3350
  }
@@ -3400,8 +3423,8 @@
3400
3423
 
3401
3424
  // Data structures
3402
3425
  // --------------------------------------------------------------------------
3403
- var keyGraphFieldAstSelection = getQuery(gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\nquery {\n ", "\n}\n"], ["\nquery {\n ", "\n}\n"])), KeyGraphField)).selectionSet.selections[0];
3404
- var fetchKeyGraphFieldAstSelection = getQuery(gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery {\n ", "\n}\n"], ["\nquery {\n ", "\n}\n"])), FetchKeyGraphField)).selectionSet.selections[0];
3426
+ var keyGraphFieldAstSelection = getQuery(gql__default['default'](templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\nquery {\n ", "\n}\n"], ["\nquery {\n ", "\n}\n"])), KeyGraphField)).selectionSet.selections[0];
3427
+ var fetchKeyGraphFieldAstSelection = getQuery(gql__default['default'](templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery {\n ", "\n}\n"], ["\nquery {\n ", "\n}\n"])), FetchKeyGraphField)).selectionSet.selections[0];
3405
3428
  exports.ɵh = /** @class */ (function () {
3406
3429
  function LrGraphQLService(ngZone, apollo, keyGraph, queryProcessor) {
3407
3430
  this.ngZone = ngZone;
@@ -3484,7 +3507,7 @@
3484
3507
  // Format to string and parse again. This allows the "loc": { "start": ... }
3485
3508
  // part of the DocumentNode to be correctly setup. It's extra processing
3486
3509
  // in serialising and parsing, but probably minimal overhead.
3487
- options.mutation = gql(gqlPrinter.print(options.mutation));
3510
+ options.mutation = gql__default['default'](gqlPrinter.print(options.mutation));
3488
3511
  return [4 /*yield*/, this.apollo.mutate(options).toPromise()];
3489
3512
  case 1:
3490
3513
  response = _a.sent();
@@ -3580,13 +3603,6 @@
3580
3603
  return LrService;
3581
3604
  }());
3582
3605
 
3583
- // ------------------------------------------------------
3584
- // Basic types
3585
- // ------------------------------------------------------
3586
- // These types map directory to types of the same name in graphql.
3587
- // We use these aliases in case in the future we wish to reify the types and do
3588
- // additional automated conversion.
3589
-
3590
3606
  function mapEdges(connection) {
3591
3607
  return connection.edges.map(function (edge) { return edge.node; });
3592
3608
  }
@@ -4000,12 +4016,12 @@
4000
4016
  ]; };
4001
4017
 
4002
4018
  var ContactCardFields = "\nid\npublicData\npublicSearchable\ncipherData\nkey {\n id\n}\n";
4003
- var ContactCardQuery = gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\nquery ContactCardQuery(\n$id: LrRelayIdInput!\n) {\ncontactCard (\n id: $id\n) {\n ", "\n}\n", "\n}"], ["\nquery ContactCardQuery(\n$id: LrRelayIdInput!\n) {\ncontactCard (\n id: $id\n) {\n ", "\n}\n", "\n}"])), ContactCardFields, KeyGraphField);
4004
- var SearchContactCardQuery = gql(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\nquery SearchContactCardQuery(\n $publicSearchable: LrJSONFilter!\n) {\n searchContactCards(\n publicSearchable: $publicSearchable\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery SearchContactCardQuery(\n $publicSearchable: LrJSONFilter!\n) {\n searchContactCards(\n publicSearchable: $publicSearchable\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), ContactCardFields, KeyGraphField);
4005
- var ContactCardListQuery = gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\nquery ContactCardListQuery {\n contactCards(\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery ContactCardListQuery {\n contactCards(\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), ContactCardFields, KeyGraphField);
4006
- var CreateContactCardMutation = gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"], ["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"])), ContactCardFields);
4007
- var UpdateContactCardMutation = gql(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\nmutation UpdateContactCardMutation(\n $input: UpdateContactCardInput!\n) {\n updateContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"], ["\nmutation UpdateContactCardMutation(\n $input: UpdateContactCardInput!\n) {\n updateContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"])), ContactCardFields);
4008
- var DeleteContactCardMutation = gql(templateObject_6$1 || (templateObject_6$1 = __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"])));
4019
+ var ContactCardQuery = gql__default['default'](templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\nquery ContactCardQuery(\n$id: LrRelayIdInput!\n) {\ncontactCard (\n id: $id\n) {\n ", "\n}\n", "\n}"], ["\nquery ContactCardQuery(\n$id: LrRelayIdInput!\n) {\ncontactCard (\n id: $id\n) {\n ", "\n}\n", "\n}"])), ContactCardFields, KeyGraphField);
4020
+ var SearchContactCardQuery = gql__default['default'](templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\nquery SearchContactCardQuery(\n $publicSearchable: LrJSONFilter!\n) {\n searchContactCards(\n publicSearchable: $publicSearchable\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery SearchContactCardQuery(\n $publicSearchable: LrJSONFilter!\n) {\n searchContactCards(\n publicSearchable: $publicSearchable\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), ContactCardFields, KeyGraphField);
4021
+ var ContactCardListQuery = gql__default['default'](templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\nquery ContactCardListQuery {\n contactCards(\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery ContactCardListQuery {\n contactCards(\n orderBy: \"created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), ContactCardFields, KeyGraphField);
4022
+ var CreateContactCardMutation = gql__default['default'](templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"], ["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"])), ContactCardFields);
4023
+ var UpdateContactCardMutation = gql__default['default'](templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\nmutation UpdateContactCardMutation(\n $input: UpdateContactCardInput!\n) {\n updateContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"], ["\nmutation UpdateContactCardMutation(\n $input: UpdateContactCardInput!\n) {\n updateContactCard(input: $input) {\n contactCard {\n ", "\n }\n }\n}"])), ContactCardFields);
4024
+ var DeleteContactCardMutation = gql__default['default'](templateObject_6$1 || (templateObject_6$1 = __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"])));
4009
4025
  var templateObject_1$4, templateObject_2$2, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1;
4010
4026
 
4011
4027
  var DEFAULT_BREADCRUMB_DEPTH = 5;
@@ -4047,11 +4063,11 @@
4047
4063
  var descendantDirectories = "\ndescendantDirectories(depth: " + DEFAULT_DESCENDANTS_DEPTH + ", plainMeta: $categoryFilter, archived: false) {\n recordsCount: directoriesCount(plainMeta: $recordFilter, archived: false)\n}\n";
4048
4064
  var CategoryFields = "\n id\n keyId\n archived\n plainMeta\n cipherMeta\n " + AccessFields + "\n " + descendantDirectories + "\n";
4049
4065
  var VaultFields = "\n id\n keyId\n plainMeta\n cipherMeta\n";
4050
- var GetRootDirectoryIdsQuery = gql(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n query GetRootDirectoryIdsQuery($archived: Boolean) {\n rootDirectories(archived: $archived) {\n edges {\n node {\n id\n }\n }\n }\n }\n"], ["\n query GetRootDirectoryIdsQuery($archived: Boolean) {\n rootDirectories(archived: $archived) {\n edges {\n node {\n id\n }\n }\n }\n }\n"])));
4051
- var GetCategoriesQuery = gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery GetCategories($vaultFilter: LrJSONFilter!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $archived: Boolean, $cachedKeyIds: [LrRelayIdInput!])\n{\n vaults: rootDirectories(plainMeta: $vaultFilter) {\n edges {\n node {\n childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\", archived: $archived) {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetCategories($vaultFilter: LrJSONFilter!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $archived: Boolean, $cachedKeyIds: [LrRelayIdInput!])\n{\n vaults: rootDirectories(plainMeta: $vaultFilter) {\n edges {\n node {\n childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\", archived: $archived) {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), CategoryFields, KeyGraphFragment);
4052
- var GetVaultsQuery = gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\nquery GetVaults($plainMetaFilter: LrJSONFilter!, $cachedKeyIds: [LrRelayIdInput!])\n{\n list: rootDirectories(plainMeta: $plainMetaFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetVaults($plainMetaFilter: LrJSONFilter!, $cachedKeyIds: [LrRelayIdInput!])\n{\n list: rootDirectories(plainMeta: $plainMetaFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), VaultFields, KeyGraphFragment);
4053
- var GetTrustedPartyCategoriesQuery = gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\nquery GetTrustedPartyCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n sharedItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetTrustedPartyCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n sharedItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), CategoryFields, AccessFields, KeyGraphFragment);
4054
- var GetMySharedCategoriesQuery = gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\nquery GetMySharedCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n myItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetMySharedCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n myItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), CategoryFields, AccessFields, KeyGraphFragment);
4066
+ var GetRootDirectoryIdsQuery = gql__default['default'](templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n query GetRootDirectoryIdsQuery($archived: Boolean) {\n rootDirectories(archived: $archived) {\n edges {\n node {\n id\n }\n }\n }\n }\n"], ["\n query GetRootDirectoryIdsQuery($archived: Boolean) {\n rootDirectories(archived: $archived) {\n edges {\n node {\n id\n }\n }\n }\n }\n"])));
4067
+ var GetCategoriesQuery = gql__default['default'](templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery GetCategories($vaultFilter: LrJSONFilter!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $archived: Boolean, $cachedKeyIds: [LrRelayIdInput!])\n{\n vaults: rootDirectories(plainMeta: $vaultFilter) {\n edges {\n node {\n childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\", archived: $archived) {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetCategories($vaultFilter: LrJSONFilter!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $archived: Boolean, $cachedKeyIds: [LrRelayIdInput!])\n{\n vaults: rootDirectories(plainMeta: $vaultFilter) {\n edges {\n node {\n childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\", archived: $archived) {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), CategoryFields, KeyGraphFragment);
4068
+ var GetVaultsQuery = gql__default['default'](templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\nquery GetVaults($plainMetaFilter: LrJSONFilter!, $cachedKeyIds: [LrRelayIdInput!])\n{\n list: rootDirectories(plainMeta: $plainMetaFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetVaults($plainMetaFilter: LrJSONFilter!, $cachedKeyIds: [LrRelayIdInput!])\n{\n list: rootDirectories(plainMeta: $plainMetaFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), VaultFields, KeyGraphFragment);
4069
+ var GetTrustedPartyCategoriesQuery = gql__default['default'](templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\nquery GetTrustedPartyCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n sharedItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetTrustedPartyCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n sharedItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), CategoryFields, AccessFields, KeyGraphFragment);
4070
+ var GetMySharedCategoriesQuery = gql__default['default'](templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\nquery GetMySharedCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n myItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery GetMySharedCategoriesQuery($trustedPartyId: LrRelayIdInput!, $categoryFilter: LrJSONFilter!, $recordFilter: LrJSONFilter!, $contentFilter: LrJSONFilter, $cachedKeyIds: [LrRelayIdInput!])\n{\n tp(id: $trustedPartyId) {\n myItems {\n list: directories(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n ", "\n }\n }\n }\n records: directories(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), CategoryFields, AccessFields, KeyGraphFragment);
4055
4071
  var parentCategoriesField = function (depth) {
4056
4072
  if (depth === void 0) { depth = DEFAULT_BREADCRUMB_DEPTH; }
4057
4073
  if (!depth) {
@@ -4061,15 +4077,15 @@
4061
4077
  };
4062
4078
  var GetCategoryQuery = function (depth) {
4063
4079
  if (depth === void 0) { depth = DEFAULT_BREADCRUMB_DEPTH; }
4064
- return gql(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\nquery GetCategory(\n $id: LrRelayIdInput!,\n $categoryFilter: LrJSONFilter!,\n $recordFilter: LrJSONFilter!,\n $contentFilter: LrJSONFilter,\n $cachedKeyIds: [LrRelayIdInput!]) {\n category: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n ", "\n ", "\n ", "\n subCategories: childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n records: childDirectoryLinks(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", " "], ["\nquery GetCategory(\n $id: LrRelayIdInput!,\n $categoryFilter: LrJSONFilter!,\n $recordFilter: LrJSONFilter!,\n $contentFilter: LrJSONFilter,\n $cachedKeyIds: [LrRelayIdInput!]) {\n category: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n ", "\n ", "\n ", "\n subCategories: childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n records: childDirectoryLinks(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", " "])), AccessFields, descendantDirectories, parentCategoriesField(depth), CategoryFields, AccessFields, KeyGraphFragment);
4080
+ return gql__default['default'](templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\nquery GetCategory(\n $id: LrRelayIdInput!,\n $categoryFilter: LrJSONFilter!,\n $recordFilter: LrJSONFilter!,\n $contentFilter: LrJSONFilter,\n $cachedKeyIds: [LrRelayIdInput!]) {\n category: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n ", "\n ", "\n ", "\n subCategories: childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n records: childDirectoryLinks(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", " "], ["\nquery GetCategory(\n $id: LrRelayIdInput!,\n $categoryFilter: LrJSONFilter!,\n $recordFilter: LrJSONFilter!,\n $contentFilter: LrJSONFilter,\n $cachedKeyIds: [LrRelayIdInput!]) {\n category: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n ", "\n ", "\n ", "\n subCategories: childDirectoryLinks(plainMeta: $categoryFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n ", "\n }\n }\n }\n }\n records: childDirectoryLinks(plainMeta: $recordFilter, orderBy: \"created\") {\n edges {\n node {\n childDirectory {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n archived\n currentVersion {\n state {\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", " "])), AccessFields, descendantDirectories, parentCategoriesField(depth), CategoryFields, AccessFields, KeyGraphFragment);
4065
4081
  };
4066
- var GetCategoryKeyIdQuery = gql(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n query GetCategoryKeyIdQuery(\n $id: LrRelayIdInput!\n $cachedKeyIds: [LrRelayIdInput!]\n ) {\n category: directory(id: $id) {\n keyId\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query GetCategoryKeyIdQuery(\n $id: LrRelayIdInput!\n $cachedKeyIds: [LrRelayIdInput!]\n ) {\n category: directory(id: $id) {\n keyId\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
4067
- var CreateCategoryMutation = gql(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"], ["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"])));
4068
- var CreateVaultMutation = gql(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n vault: directory {\n id\n keyId\n }\n }\n }\n"], ["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n vault: directory {\n id\n keyId\n }\n }\n }\n"])));
4069
- var UpdateCategoryMutation = gql(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n mutation UpdateCategory($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation UpdateCategory($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
4070
- var DeleteCategoryMutation = gql(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n mutation DeleteCategory($categoryId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $categoryId }) {\n id\n }\n }\n"], ["\n mutation DeleteCategory($categoryId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $categoryId }) {\n id\n }\n }\n"])));
4071
- var ArchiveDirectoryMutation = gql(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n mutation ArchiveDirectory($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation ArchiveDirectory($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
4072
- var UnarchiveDirectoryMutation = gql(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n mutation UnarchiveDirectory($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation UnarchiveDirectory($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
4082
+ var GetCategoryKeyIdQuery = gql__default['default'](templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n query GetCategoryKeyIdQuery(\n $id: LrRelayIdInput!\n $cachedKeyIds: [LrRelayIdInput!]\n ) {\n category: directory(id: $id) {\n keyId\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query GetCategoryKeyIdQuery(\n $id: LrRelayIdInput!\n $cachedKeyIds: [LrRelayIdInput!]\n ) {\n category: directory(id: $id) {\n keyId\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
4083
+ var CreateCategoryMutation = gql__default['default'](templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"], ["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"])));
4084
+ var CreateVaultMutation = gql__default['default'](templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n vault: directory {\n id\n keyId\n }\n }\n }\n"], ["\n mutation CreateCategory(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n vault: directory {\n id\n keyId\n }\n }\n }\n"])));
4085
+ var UpdateCategoryMutation = gql__default['default'](templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n mutation UpdateCategory($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation UpdateCategory($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
4086
+ var DeleteCategoryMutation = gql__default['default'](templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n mutation DeleteCategory($categoryId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $categoryId }) {\n id\n }\n }\n"], ["\n mutation DeleteCategory($categoryId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $categoryId }) {\n id\n }\n }\n"])));
4087
+ var ArchiveDirectoryMutation = gql__default['default'](templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n mutation ArchiveDirectory($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation ArchiveDirectory($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
4088
+ var UnarchiveDirectoryMutation = gql__default['default'](templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n mutation UnarchiveDirectory($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation UnarchiveDirectory($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
4073
4089
  var templateObject_1$5, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
4074
4090
 
4075
4091
  var WrappedContent = /** @class */ (function () {
@@ -4372,18 +4388,18 @@
4372
4388
  { type: KeyFactoryService }
4373
4389
  ]; };
4374
4390
 
4375
- var CreateStripeCheckoutSessionMutation = gql(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n mutation CreateStripeCheckoutSession(\n $priceId: String!\n $successUrl: String!\n $cancelUrl: String!\n ) {\n createStripeCheckoutSession(\n input: {\n priceId: $priceId\n successUrl: $successUrl\n cancelUrl: $cancelUrl\n }\n ) {\n sessionId\n }\n }\n"], ["\n mutation CreateStripeCheckoutSession(\n $priceId: String!\n $successUrl: String!\n $cancelUrl: String!\n ) {\n createStripeCheckoutSession(\n input: {\n priceId: $priceId\n successUrl: $successUrl\n cancelUrl: $cancelUrl\n }\n ) {\n sessionId\n }\n }\n"])));
4376
- var CreateStripeBillingPortalSessionMutation = gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n mutation CreateStripeBillingPortalSession($returnUrl: String!) {\n createStripeBillingPortalSession(input: { returnUrl: $returnUrl }) {\n sessionUrl\n }\n }\n"], ["\n mutation CreateStripeBillingPortalSession($returnUrl: String!) {\n createStripeBillingPortalSession(input: { returnUrl: $returnUrl }) {\n sessionUrl\n }\n }\n"])));
4391
+ var CreateStripeCheckoutSessionMutation = gql__default['default'](templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n mutation CreateStripeCheckoutSession(\n $priceId: String!\n $successUrl: String!\n $cancelUrl: String!\n ) {\n createStripeCheckoutSession(\n input: {\n priceId: $priceId\n successUrl: $successUrl\n cancelUrl: $cancelUrl\n }\n ) {\n sessionId\n }\n }\n"], ["\n mutation CreateStripeCheckoutSession(\n $priceId: String!\n $successUrl: String!\n $cancelUrl: String!\n ) {\n createStripeCheckoutSession(\n input: {\n priceId: $priceId\n successUrl: $successUrl\n cancelUrl: $cancelUrl\n }\n ) {\n sessionId\n }\n }\n"])));
4392
+ var CreateStripeBillingPortalSessionMutation = gql__default['default'](templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n mutation CreateStripeBillingPortalSession($returnUrl: String!) {\n createStripeBillingPortalSession(input: { returnUrl: $returnUrl }) {\n sessionUrl\n }\n }\n"], ["\n mutation CreateStripeBillingPortalSession($returnUrl: String!) {\n createStripeBillingPortalSession(input: { returnUrl: $returnUrl }) {\n sessionUrl\n }\n }\n"])));
4377
4393
  var planFields = "\n name\n data\n state\n";
4378
- var CreateUserIssuedPlanMutation = gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\nmutation CreateUserIssuedPlan($input: CreateUserIssuedPlanInput!){\n createUserIssuedPlan(input: $input) {\n userIssuedPlan {\n id\n plan {\n ", "\n }\n token\n tokenExpiryTime\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n }\n}"], ["\nmutation CreateUserIssuedPlan($input: CreateUserIssuedPlanInput!){\n createUserIssuedPlan(input: $input) {\n userIssuedPlan {\n id\n plan {\n ", "\n }\n token\n tokenExpiryTime\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n }\n}"])), planFields);
4379
- var DeleteUserIssuedPlanMutation = gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation DeleteUserIssuedPlan($input: DeleteUserIssuedPlanInput!) {\n deleteUserIssuedPlan(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteUserIssuedPlan($input: DeleteUserIssuedPlanInput!) {\n deleteUserIssuedPlan(input: $input) {\n id\n }\n }\n"])));
4380
- var UserIssuablePlansQuery = gql(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\nquery UserIssuablePlans {\n userIssuablePlans {\n plan {\n ", "\n }\n }\n}\n"], ["\nquery UserIssuablePlans {\n userIssuablePlans {\n plan {\n ", "\n }\n }\n}\n"])), planFields);
4394
+ var CreateUserIssuedPlanMutation = gql__default['default'](templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\nmutation CreateUserIssuedPlan($input: CreateUserIssuedPlanInput!){\n createUserIssuedPlan(input: $input) {\n userIssuedPlan {\n id\n plan {\n ", "\n }\n token\n tokenExpiryTime\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n }\n}"], ["\nmutation CreateUserIssuedPlan($input: CreateUserIssuedPlanInput!){\n createUserIssuedPlan(input: $input) {\n userIssuedPlan {\n id\n plan {\n ", "\n }\n token\n tokenExpiryTime\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n }\n}"])), planFields);
4395
+ var DeleteUserIssuedPlanMutation = gql__default['default'](templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation DeleteUserIssuedPlan($input: DeleteUserIssuedPlanInput!) {\n deleteUserIssuedPlan(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteUserIssuedPlan($input: DeleteUserIssuedPlanInput!) {\n deleteUserIssuedPlan(input: $input) {\n id\n }\n }\n"])));
4396
+ var UserIssuablePlansQuery = gql__default['default'](templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\nquery UserIssuablePlans {\n userIssuablePlans {\n plan {\n ", "\n }\n }\n}\n"], ["\nquery UserIssuablePlans {\n userIssuablePlans {\n plan {\n ", "\n }\n }\n}\n"])), planFields);
4381
4397
  // Put other fields in as needed.
4382
- var UserIssuedPlansQuery = gql(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n query UserIssuedPlans {\n userIssuedPlans {\n edges {\n node {\n id\n }\n }\n }\n }\n"], ["\n query UserIssuedPlans {\n userIssuedPlans {\n edges {\n node {\n id\n }\n }\n }\n }\n"])));
4383
- var UserIssuedPlanQuery = gql(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\nquery UserIssuedPlan(\n $id: LrRelayIdInput!\n $token: String\n) {\n userIssuedPlan(\n id: $id\n token: $token\n ) {\n id\n plan {\n ", "\n }\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n}\n"], ["\nquery UserIssuedPlan(\n $id: LrRelayIdInput!\n $token: String\n) {\n userIssuedPlan(\n id: $id\n token: $token\n ) {\n id\n plan {\n ", "\n }\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n}\n"])), planFields);
4384
- var AssociateUserIssuedPlanMutation = gql(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\nmutation AssociateUserIssuedPlan($input: AssociateUserIssuedPlanInput!){\n associateUserIssuedPlan(input: $input) {\n userPlan {\n id\n plan {\n ", "\n }\n periodEnd\n }\n }\n}"], ["\nmutation AssociateUserIssuedPlan($input: AssociateUserIssuedPlanInput!){\n associateUserIssuedPlan(input: $input) {\n userPlan {\n id\n plan {\n ", "\n }\n periodEnd\n }\n }\n}"])), planFields);
4385
- var UserPlansQuery = gql(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\nquery UserPlans {\n userPlans {\n id\n periodEnd\n plan {\n ", "\n }\n }\n}\n"], ["\nquery UserPlans {\n userPlans {\n id\n periodEnd\n plan {\n ", "\n }\n }\n}\n"])), planFields);
4386
- var StripeQuery = gql(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n query Stripe {\n stripe {\n id\n customer\n }\n }\n"], ["\n query Stripe {\n stripe {\n id\n customer\n }\n }\n"])));
4398
+ var UserIssuedPlansQuery = gql__default['default'](templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n query UserIssuedPlans {\n userIssuedPlans {\n edges {\n node {\n id\n }\n }\n }\n }\n"], ["\n query UserIssuedPlans {\n userIssuedPlans {\n edges {\n node {\n id\n }\n }\n }\n }\n"])));
4399
+ var UserIssuedPlanQuery = gql__default['default'](templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\nquery UserIssuedPlan(\n $id: LrRelayIdInput!\n $token: String\n) {\n userIssuedPlan(\n id: $id\n token: $token\n ) {\n id\n plan {\n ", "\n }\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n}\n"], ["\nquery UserIssuedPlan(\n $id: LrRelayIdInput!\n $token: String\n) {\n userIssuedPlan(\n id: $id\n token: $token\n ) {\n id\n plan {\n ", "\n }\n planPeriodEnd\n planPeriodEndAfterSeconds\n }\n}\n"])), planFields);
4400
+ var AssociateUserIssuedPlanMutation = gql__default['default'](templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\nmutation AssociateUserIssuedPlan($input: AssociateUserIssuedPlanInput!){\n associateUserIssuedPlan(input: $input) {\n userPlan {\n id\n plan {\n ", "\n }\n periodEnd\n }\n }\n}"], ["\nmutation AssociateUserIssuedPlan($input: AssociateUserIssuedPlanInput!){\n associateUserIssuedPlan(input: $input) {\n userPlan {\n id\n plan {\n ", "\n }\n periodEnd\n }\n }\n}"])), planFields);
4401
+ var UserPlansQuery = gql__default['default'](templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\nquery UserPlans {\n userPlans {\n id\n periodEnd\n plan {\n ", "\n }\n }\n}\n"], ["\nquery UserPlans {\n userPlans {\n id\n periodEnd\n plan {\n ", "\n }\n }\n}\n"])), planFields);
4402
+ var StripeQuery = gql__default['default'](templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n query Stripe {\n stripe {\n id\n customer\n }\n }\n"], ["\n query Stripe {\n stripe {\n id\n customer\n }\n }\n"])));
4387
4403
  var templateObject_1$6, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$3, templateObject_6$3, templateObject_7$2, templateObject_8$2, templateObject_9$1, templateObject_10$1;
4388
4404
 
4389
4405
  function mapUserPlans(userPlans) {
@@ -4607,9 +4623,9 @@
4607
4623
  { type: LrApolloService }
4608
4624
  ]; };
4609
4625
 
4610
- var CurrentUserQuery = gql(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n query {\n currentUser {\n id\n username\n currentUserKey {\n passKey {\n id\n passKeyParams\n passIdpParams\n wrappedPassIdpVerifierPrk\n created\n }\n masterKey {\n id\n }\n rootKey {\n id\n }\n pxk {\n id\n }\n sigPxk {\n id\n }\n }\n userDelete {\n id\n created\n state\n }\n features {\n myVault\n tpVault\n shareVault\n }\n sessionEncryptionKey\n }\n userPlans {\n id\n stripe {\n subscriptionId\n }\n plan {\n name\n data\n state\n }\n periodEnd\n }\n contactCards(orderBy: \"created\") {\n edges {\n node {\n id\n key {\n id\n }\n cipherData\n plainData\n }\n }\n }\n keyGraph {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query {\n currentUser {\n id\n username\n currentUserKey {\n passKey {\n id\n passKeyParams\n passIdpParams\n wrappedPassIdpVerifierPrk\n created\n }\n masterKey {\n id\n }\n rootKey {\n id\n }\n pxk {\n id\n }\n sigPxk {\n id\n }\n }\n userDelete {\n id\n created\n state\n }\n features {\n myVault\n tpVault\n shareVault\n }\n sessionEncryptionKey\n }\n userPlans {\n id\n stripe {\n subscriptionId\n }\n plan {\n name\n data\n state\n }\n periodEnd\n }\n contactCards(orderBy: \"created\") {\n edges {\n node {\n id\n key {\n id\n }\n cipherData\n plainData\n }\n }\n }\n keyGraph {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
4611
- var CreateContactCardMutation$1 = gql(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n mutation CreateContactCardMutation($input: CreateContactCardInput!) {\n createContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"], ["\n mutation CreateContactCardMutation($input: CreateContactCardInput!) {\n createContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"])));
4612
- var UpdateContactCardMutation$1 = gql(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n mutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"], ["\n mutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"])));
4626
+ var CurrentUserQuery = gql__default['default'](templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n query {\n currentUser {\n id\n username\n currentUserKey {\n passKey {\n id\n passKeyParams\n passIdpParams\n wrappedPassIdpVerifierPrk\n created\n }\n masterKey {\n id\n }\n rootKey {\n id\n }\n pxk {\n id\n }\n sigPxk {\n id\n }\n }\n userDelete {\n id\n created\n state\n }\n features {\n myVault\n tpVault\n shareVault\n }\n sessionEncryptionKey\n }\n userPlans {\n id\n stripe {\n subscriptionId\n }\n plan {\n name\n data\n state\n }\n periodEnd\n }\n contactCards(orderBy: \"created\") {\n edges {\n node {\n id\n key {\n id\n }\n cipherData\n plainData\n }\n }\n }\n keyGraph {\n ...KeyGraphFragment\n }\n }\n ", "\n"], ["\n query {\n currentUser {\n id\n username\n currentUserKey {\n passKey {\n id\n passKeyParams\n passIdpParams\n wrappedPassIdpVerifierPrk\n created\n }\n masterKey {\n id\n }\n rootKey {\n id\n }\n pxk {\n id\n }\n sigPxk {\n id\n }\n }\n userDelete {\n id\n created\n state\n }\n features {\n myVault\n tpVault\n shareVault\n }\n sessionEncryptionKey\n }\n userPlans {\n id\n stripe {\n subscriptionId\n }\n plan {\n name\n data\n state\n }\n periodEnd\n }\n contactCards(orderBy: \"created\") {\n edges {\n node {\n id\n key {\n id\n }\n cipherData\n plainData\n }\n }\n }\n keyGraph {\n ...KeyGraphFragment\n }\n }\n ", "\n"])), KeyGraphFragment);
4627
+ var CreateContactCardMutation$1 = gql__default['default'](templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n mutation CreateContactCardMutation($input: CreateContactCardInput!) {\n createContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"], ["\n mutation CreateContactCardMutation($input: CreateContactCardInput!) {\n createContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"])));
4628
+ var UpdateContactCardMutation$1 = gql__default['default'](templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n mutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"], ["\n mutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n key {\n id\n }\n cipherData\n }\n }\n }\n"])));
4613
4629
  var templateObject_1$7, templateObject_2$5, templateObject_3$4;
4614
4630
 
4615
4631
  var CurrentUserKey = /** @class */ (function () {
@@ -4924,13 +4940,13 @@
4924
4940
  { type: EncryptionService }
4925
4941
  ]; };
4926
4942
 
4927
- var PasswordChangeRequestMutation = gql(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n mutation {\n passwordChangeRequest(input: {}) {\n challenge\n }\n }\n"], ["\n mutation {\n passwordChangeRequest(input: {}) {\n challenge\n }\n }\n"])));
4928
- var PasswordChangeMutation = gql(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n mutation PasswordChange($input: PasswordChangeInput!) {\n passwordChange(input: $input) {\n token\n newPassKey {\n id\n }\n }\n }\n"], ["\n mutation PasswordChange($input: PasswordChangeInput!) {\n passwordChange(input: $input) {\n token\n newPassKey {\n id\n }\n }\n }\n"])));
4929
- var PasswordChangeConfigQuery = gql(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"])));
4943
+ var PasswordChangeRequestMutation = gql__default['default'](templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n mutation {\n passwordChangeRequest(input: {}) {\n challenge\n }\n }\n"], ["\n mutation {\n passwordChangeRequest(input: {}) {\n challenge\n }\n }\n"])));
4944
+ var PasswordChangeMutation = gql__default['default'](templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n mutation PasswordChange($input: PasswordChangeInput!) {\n passwordChange(input: $input) {\n token\n newPassKey {\n id\n }\n }\n }\n"], ["\n mutation PasswordChange($input: PasswordChangeInput!) {\n passwordChange(input: $input) {\n token\n newPassKey {\n id\n }\n }\n }\n"])));
4945
+ 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"])));
4930
4946
  var templateObject_1$8, templateObject_2$6, templateObject_3$5;
4931
4947
 
4932
4948
  // "why?" you ask: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
4933
- var moment$1 = moment_;
4949
+ var moment$1 = moment___namespace;
4934
4950
  var PasswordCheck = /** @class */ (function () {
4935
4951
  function PasswordCheck() {
4936
4952
  }
@@ -5086,30 +5102,30 @@
5086
5102
  };
5087
5103
  PasswordService.prototype.changePassword = function (password, newPassword) {
5088
5104
  return __awaiter(this, void 0, void 0, function () {
5089
- var cognitoUser, currentUser, _a, passIdp, signedChallenge, newPassKey, masterKey, newWrappedMasterKey, _b, token, newPassKeyId;
5090
- return __generator(this, function (_c) {
5091
- switch (_c.label) {
5105
+ var cognitoUser, currentUser, _a, passIdp, signedChallenge, newPassKey, masterKey, newWrappedMasterKey, token;
5106
+ return __generator(this, function (_b) {
5107
+ switch (_b.label) {
5092
5108
  case 0: return [4 /*yield*/, this.auth.currentAuthenticatedUser()];
5093
5109
  case 1:
5094
- cognitoUser = _c.sent();
5110
+ cognitoUser = _b.sent();
5095
5111
  return [4 /*yield*/, this.profileService.getCurrentUser()];
5096
5112
  case 2:
5097
- currentUser = (_c.sent()).currentUser;
5113
+ currentUser = (_b.sent()).currentUser;
5098
5114
  return [4 /*yield*/, this.verifyPassword(password, currentUser)];
5099
5115
  case 3:
5100
- _a = _c.sent(), passIdp = _a.passIdp, signedChallenge = _a.signedChallenge;
5116
+ _a = _b.sent(), passIdp = _a.passIdp, signedChallenge = _a.signedChallenge;
5101
5117
  return [4 /*yield*/, this.createPassKeyBundle(newPassword)];
5102
5118
  case 4:
5103
- newPassKey = _c.sent();
5119
+ newPassKey = _b.sent();
5104
5120
  return [4 /*yield*/, this.keyGraph.getKey(currentUser.currentUserKey.masterKey.id)];
5105
5121
  case 5:
5106
- masterKey = _c.sent();
5122
+ masterKey = _b.sent();
5107
5123
  return [4 /*yield*/, this.encryptionService.encrypt(newPassKey.passKey, masterKey.jwk.toJSON(true))];
5108
5124
  case 6:
5109
- newWrappedMasterKey = _c.sent();
5125
+ newWrappedMasterKey = _b.sent();
5110
5126
  return [4 /*yield*/, this.changePasswordMutation(signedChallenge, currentUser.currentUserKey.masterKey.id, newWrappedMasterKey, newPassKey)];
5111
5127
  case 7:
5112
- _b = _c.sent(), token = _b.token, newPassKeyId = _b.newPassKeyId;
5128
+ token = (_b.sent()).token;
5113
5129
  // --Potential Failure Point 2--
5114
5130
  // changePasswordMutation() uploads new keys and obtains a semaphore lock to prevent any other
5115
5131
  // clients from performing IdP password change.
@@ -5122,7 +5138,7 @@
5122
5138
  // clients from performing IdP password change.
5123
5139
  // Now we can do the IdP password change.
5124
5140
  // todo: Add this back in
5125
- _c.sent();
5141
+ _b.sent();
5126
5142
  // --Potential Failure Point 3--
5127
5143
  // IdP password change
5128
5144
  // Note that changePassword() could throw an exception for a number of reason. It could throw
@@ -5137,7 +5153,7 @@
5137
5153
  // a network timeout for example. But we don't know if it's the response that timed out and
5138
5154
  // the idp password change was actually carried out. So we have to be extra conservative and
5139
5155
  // only act on a clear success. Otherwise we go into recover mode.
5140
- _c.sent();
5156
+ _b.sent();
5141
5157
  return [2 /*return*/];
5142
5158
  }
5143
5159
  });
@@ -5346,7 +5362,7 @@
5346
5362
  this.clearShares();
5347
5363
  }
5348
5364
  SubAssembly.prototype.clearShares = function () {
5349
- this.shares = Array();
5365
+ this.shares = [];
5350
5366
  };
5351
5367
  SubAssembly.prototype.addShare = function (share) {
5352
5368
  this.shares.push(share);
@@ -5363,7 +5379,7 @@
5363
5379
  return this.subAssemblies.length;
5364
5380
  };
5365
5381
  Assembly.prototype.clearSubAssemblies = function () {
5366
- this.subAssemblies = new Array();
5382
+ this.subAssemblies = [];
5367
5383
  };
5368
5384
  Assembly.prototype.addSubAssembly = function (subAssembly) {
5369
5385
  this.subAssemblies.push(subAssembly);
@@ -5376,7 +5392,7 @@
5376
5392
  this.clearShares();
5377
5393
  }
5378
5394
  SubQuorum.prototype.clearShares = function () {
5379
- this.shares = new Array();
5395
+ this.shares = [];
5380
5396
  };
5381
5397
  SubQuorum.prototype.addShare = function (share) {
5382
5398
  this.shares.push(share);
@@ -5388,7 +5404,7 @@
5388
5404
  this.clearSubQuora();
5389
5405
  }
5390
5406
  Quorum.prototype.clearSubQuora = function () {
5391
- this.subQuora = new Array();
5407
+ this.subQuora = [];
5392
5408
  };
5393
5409
  Quorum.prototype.addSubQuorum = function (subQuorum) {
5394
5410
  this.subQuora.push(subQuorum);
@@ -5547,7 +5563,6 @@
5547
5563
  providedIn: 'root',
5548
5564
  },] }
5549
5565
  ];
5550
- Slip39Service.ctorParameters = function () { return []; };
5551
5566
 
5552
5567
  var TP_PASSWORD_RESET_CLIENT_NONCE_LENGTH = 32;
5553
5568
  var TP_PASSWORD_RESET_SLIP39_PASSPHRASE = 'lifeready';
@@ -6127,6 +6142,7 @@
6127
6142
  this.encryptionService = encryptionService;
6128
6143
  this.slip39Service = slip39Service;
6129
6144
  this.assemblyController = assemblyController;
6145
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6130
6146
  this.hubSubject = new rxjs.ReplaySubject(1);
6131
6147
  }
6132
6148
  LifeReadyAuthService.prototype.initialise = function () {
@@ -6276,7 +6292,7 @@
6276
6292
  });
6277
6293
  };
6278
6294
  LifeReadyAuthService.prototype.login = function (emailOrPhone, password, _b) {
6279
- var _c = (_b === void 0 ? {} : _b).tpPasswordResetAutoComplete, tpPasswordResetAutoComplete = _c === void 0 ? true : _c;
6295
+ var _c = _b === void 0 ? {} : _b, _d = _c.tpPasswordResetAutoComplete, tpPasswordResetAutoComplete = _d === void 0 ? true : _d;
6280
6296
  var _a;
6281
6297
  return __awaiter(this, void 0, void 0, function () {
6282
6298
  var loginResult;
@@ -6353,7 +6369,9 @@
6353
6369
  user = _b.sent();
6354
6370
  if (rememberMe) {
6355
6371
  cognitoUser.setDeviceStatusRemembered({
6356
- onSuccess: function () { },
6372
+ onSuccess: function () {
6373
+ return;
6374
+ },
6357
6375
  onFailure: function (e) { return console.error(e); },
6358
6376
  });
6359
6377
  }
@@ -6796,15 +6814,15 @@
6796
6814
  });
6797
6815
  var GetRecordQuery = function (depth) {
6798
6816
  if (depth === void 0) { depth = DEFAULT_BREADCRUMB_DEPTH; }
6799
- return gql(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\nquery Record(\n $id: LrRelayIdInput!,\n $cachedKeyIds: [LrRelayIdInput!],\n $categoryFilter: LrJSONFilter,\n $contentFilter: LrJSONFilter,\n $attachmentsFilter: LrJSONFilter,\n) {\n record: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n attachments: childFileLinks(plainMeta: $attachmentsFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery Record(\n $id: LrRelayIdInput!,\n $cachedKeyIds: [LrRelayIdInput!],\n $categoryFilter: LrJSONFilter,\n $contentFilter: LrJSONFilter,\n $attachmentsFilter: LrJSONFilter,\n) {\n record: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n attachments: childFileLinks(plainMeta: $attachmentsFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), AccessFields, parentCategoriesField(depth), KeyGraphFragment);
6817
+ return gql__default['default'](templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\nquery Record(\n $id: LrRelayIdInput!,\n $cachedKeyIds: [LrRelayIdInput!],\n $categoryFilter: LrJSONFilter,\n $contentFilter: LrJSONFilter,\n $attachmentsFilter: LrJSONFilter,\n) {\n record: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n attachments: childFileLinks(plainMeta: $attachmentsFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery Record(\n $id: LrRelayIdInput!,\n $cachedKeyIds: [LrRelayIdInput!],\n $categoryFilter: LrJSONFilter,\n $contentFilter: LrJSONFilter,\n $attachmentsFilter: LrJSONFilter,\n) {\n record: directory(id: $id) {\n id\n keyId\n archived\n plainMeta\n cipherMeta\n created\n modified\n ", "\n ", "\n content: childFileLinks(plainMeta: $contentFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n created\n modified\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n attachments: childFileLinks(plainMeta: $attachmentsFilter) {\n edges {\n node {\n childFile {\n id\n keyId\n archived\n currentVersion {\n state {\n id\n keyId\n plainMeta\n cipherMeta\n contentResource\n }\n }\n versions {\n edges {\n node {\n operation\n }\n }\n }\n }\n }\n }\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", "\n"])), AccessFields, parentCategoriesField(depth), KeyGraphFragment);
6800
6818
  };
6801
- var CreateRecordContainerMutation = gql(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n mutation CreateRecordContainer(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"], ["\n mutation CreateRecordContainer(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"])));
6802
- var CreateRecordMutation = gql(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
6803
- var UpdateRecordContainerMutation = gql(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n mutation UpdateRecord($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation UpdateRecord($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
6804
- var UpdateRecordMutation = gql(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
6805
- var DeleteRecordMutation = gql(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n mutation DeleteRecord($recordId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $recordId }) {\n id\n }\n }\n"], ["\n mutation DeleteRecord($recordId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $recordId }) {\n id\n }\n }\n"])));
6806
- var CreateFileMutation = gql(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
6807
- var DeleteFileMutation = gql(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n mutation DeleteFile($fileId: LrRelayIdInput!) {\n deleteFile(input: { fileId: $fileId }) {\n id\n }\n }\n"], ["\n mutation DeleteFile($fileId: LrRelayIdInput!) {\n deleteFile(input: { fileId: $fileId }) {\n id\n }\n }\n"])));
6819
+ var CreateRecordContainerMutation = gql__default['default'](templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n mutation CreateRecordContainer(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"], ["\n mutation CreateRecordContainer(\n $plainMeta: LrJSONString\n $cipherMeta: String\n $parentDirectories: [ParentDirectoryInput!]\n $parentRootDirectory: ParentRootDirectoryInput\n ) {\n new: createDirectory(\n input: {\n plainMeta: $plainMeta\n cipherMeta: $cipherMeta\n parentDirectories: $parentDirectories\n parentRootDirectory: $parentRootDirectory\n }\n ) {\n category: directory {\n id\n keyId\n }\n }\n }\n"])));
6820
+ var CreateRecordMutation = gql__default['default'](templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
6821
+ var UpdateRecordContainerMutation = gql__default['default'](templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n mutation UpdateRecord($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"], ["\n mutation UpdateRecord($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n }\n }\n }\n"])));
6822
+ var UpdateRecordMutation = gql__default['default'](templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation UpdateFile($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
6823
+ var DeleteRecordMutation = gql__default['default'](templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n mutation DeleteRecord($recordId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $recordId }) {\n id\n }\n }\n"], ["\n mutation DeleteRecord($recordId: LrRelayIdInput!) {\n deleteDirectory(input: { directoryId: $recordId }) {\n id\n }\n }\n"])));
6824
+ var CreateFileMutation = gql__default['default'](templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"], ["\n mutation CreateFile($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n }\n }\n }\n"])));
6825
+ var DeleteFileMutation = gql__default['default'](templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n mutation DeleteFile($fileId: LrRelayIdInput!) {\n deleteFile(input: { fileId: $fileId }) {\n id\n }\n }\n"], ["\n mutation DeleteFile($fileId: LrRelayIdInput!) {\n deleteFile(input: { fileId: $fileId }) {\n id\n }\n }\n"])));
6808
6826
  var templateObject_1$d, templateObject_2$a, templateObject_3$8, templateObject_4$6, templateObject_5$6, templateObject_6$5, templateObject_7$4, templateObject_8$4;
6809
6827
 
6810
6828
  (function (AccessLevel) {
@@ -7740,7 +7758,8 @@
7740
7758
  switch (_g.label) {
7741
7759
  case 0:
7742
7760
  url = this.config.apiUrl + "files/download/?file_state_node_id=" + fileStateNodeId;
7743
- _b = (_a = this.http).get;
7761
+ _b = (_a = this.http)
7762
+ .get;
7744
7763
  _c = [url];
7745
7764
  _d = {
7746
7765
  responseType: 'text'
@@ -7762,7 +7781,7 @@
7762
7781
  FileUploadService.prototype.loadFile = function (file) {
7763
7782
  return __awaiter(this, void 0, void 0, function () {
7764
7783
  return __generator(this, function (_a) {
7765
- return [2 /*return*/, new Promise(function (resolve, reject) {
7784
+ return [2 /*return*/, new Promise(function (resolve) {
7766
7785
  var reader = new FileReader();
7767
7786
  reader.onload = function () {
7768
7787
  // OK to type cast here since we are using readAsArrayBuffer.
@@ -7782,7 +7801,8 @@
7782
7801
  encryptedContent = options.encryptedContent, fileName = options.fileName;
7783
7802
  formData = new FormData();
7784
7803
  formData.append('content', new Blob([encryptedContent]), fileName);
7785
- _b = (_a = this.http).post;
7804
+ _b = (_a = this.http)
7805
+ .post;
7786
7806
  _c = [this.config.apiUrl + "files/upload/", formData];
7787
7807
  _d = {};
7788
7808
  _e = {};
@@ -8239,7 +8259,7 @@
8239
8259
  Item2Service.prototype.ensureTempDirectory = function () {
8240
8260
  var _a;
8241
8261
  return __awaiter(this, void 0, void 0, function () {
8242
- var existing, createDirectory, updateLock, _c, createDirectoryResult, _, _d, id, keyId, _e, id, keyId;
8262
+ var existing, createDirectory, updateLock, _c, createDirectoryResult, _d, id, keyId, _e, id, keyId;
8243
8263
  return __generator(this, function (_f) {
8244
8264
  switch (_f.label) {
8245
8265
  case 0: return [4 /*yield*/, this.query({
@@ -8263,9 +8283,12 @@
8263
8283
  updateLock = this.lockService.updateLockMutation({
8264
8284
  version: (_a = existing.lock) === null || _a === void 0 ? void 0 : _a.version,
8265
8285
  });
8266
- return [4 /*yield*/, this.lrGraphQL.lrMutate(LrMergedMutation.create([createDirectory, updateLock]))];
8286
+ return [4 /*yield*/, this.lrGraphQL.lrMutate([
8287
+ createDirectory,
8288
+ updateLock,
8289
+ ])];
8267
8290
  case 3:
8268
- _c = __read.apply(void 0, [_f.sent(), 2]), createDirectoryResult = _c[0], _ = _c[1];
8291
+ _c = __read.apply(void 0, [_f.sent(), 1]), createDirectoryResult = _c[0];
8269
8292
  _d = createDirectoryResult.createDirectory.directory, id = _d.id, keyId = _d.keyId;
8270
8293
  return [2 /*return*/, {
8271
8294
  id: id,
@@ -8634,21 +8657,21 @@
8634
8657
 
8635
8658
  var KeyExchangeFields = "\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}";
8636
8659
  var UserSharedKeyFields = "\n userSigPrk {\n id\n }\n otherSigPbk {\n id\n }\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n pbk\n }\n mkReshareRequestCipher\n mkReshareResponseCipher\n mkReshareRequestSent\n mkReshareResponseSent\n";
8637
- var CurrentUserSharedKeyQuery = gql(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\nquery CurrentUserSharedKeyQuery(\n $username: String\n $userId: LrRelayIdInput\n $cachedKeyIds: [LrRelayIdInput!]\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ", "\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", ""], ["\nquery CurrentUserSharedKeyQuery(\n $username: String\n $userId: LrRelayIdInput\n $cachedKeyIds: [LrRelayIdInput!]\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ", "\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", ""])), UserSharedKeyFields, KeyGraphFragment);
8638
- var KeyExchangesQuery = gql(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\nquery KeyExchangeQuery(\n$orderBy: String\n$isExpired: Boolean\n$initiatorActionRequired: Boolean\n$responderActionRequired: Boolean\n$initiator: ID\n$responder: ID\n$state: String\n) {\nkeyExchanges(\n orderBy: $orderBy\n isExpired: $isExpired\n initiatorActionRequired: $initiatorActionRequired\n responderActionRequired: $responderActionRequired\n initiator: $initiator\n responder: $responder\n state: $state\n) {\n edges {\n node {\n ", "\n }\n }\n}\nkeyGraph {\n ...KeyGraphFragment\n}\n}\n", "\n"], ["\nquery KeyExchangeQuery(\n$orderBy: String\n$isExpired: Boolean\n$initiatorActionRequired: Boolean\n$responderActionRequired: Boolean\n$initiator: ID\n$responder: ID\n$state: String\n) {\nkeyExchanges(\n orderBy: $orderBy\n isExpired: $isExpired\n initiatorActionRequired: $initiatorActionRequired\n responderActionRequired: $responderActionRequired\n initiator: $initiator\n responder: $responder\n state: $state\n) {\n edges {\n node {\n ", "\n }\n }\n}\nkeyGraph {\n ...KeyGraphFragment\n}\n}\n", "\n"])), KeyExchangeFields, KeyGraphFragment);
8639
- var KeyExchangeQuery = gql(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n) {\n keyExchange(\n id: $id\n ) {\n ", "\n }\n keyGraph {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n) {\n keyExchange(\n id: $id\n ) {\n ", "\n }\n keyGraph {\n ...KeyGraphFragment\n }\n}\n", "\n"])), KeyExchangeFields, KeyGraphFragment);
8660
+ var CurrentUserSharedKeyQuery = gql__default['default'](templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\nquery CurrentUserSharedKeyQuery(\n $username: String\n $userId: LrRelayIdInput\n $cachedKeyIds: [LrRelayIdInput!]\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ", "\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", ""], ["\nquery CurrentUserSharedKeyQuery(\n $username: String\n $userId: LrRelayIdInput\n $cachedKeyIds: [LrRelayIdInput!]\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ", "\n }\n }\n keyGraph(cachedKeyIds: $cachedKeyIds) {\n ...KeyGraphFragment\n }\n}\n", ""])), UserSharedKeyFields, KeyGraphFragment);
8661
+ var KeyExchangesQuery = gql__default['default'](templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\nquery KeyExchangeQuery(\n$orderBy: String\n$isExpired: Boolean\n$initiatorActionRequired: Boolean\n$responderActionRequired: Boolean\n$initiator: ID\n$responder: ID\n$state: String\n) {\nkeyExchanges(\n orderBy: $orderBy\n isExpired: $isExpired\n initiatorActionRequired: $initiatorActionRequired\n responderActionRequired: $responderActionRequired\n initiator: $initiator\n responder: $responder\n state: $state\n) {\n edges {\n node {\n ", "\n }\n }\n}\nkeyGraph {\n ...KeyGraphFragment\n}\n}\n", "\n"], ["\nquery KeyExchangeQuery(\n$orderBy: String\n$isExpired: Boolean\n$initiatorActionRequired: Boolean\n$responderActionRequired: Boolean\n$initiator: ID\n$responder: ID\n$state: String\n) {\nkeyExchanges(\n orderBy: $orderBy\n isExpired: $isExpired\n initiatorActionRequired: $initiatorActionRequired\n responderActionRequired: $responderActionRequired\n initiator: $initiator\n responder: $responder\n state: $state\n) {\n edges {\n node {\n ", "\n }\n }\n}\nkeyGraph {\n ...KeyGraphFragment\n}\n}\n", "\n"])), KeyExchangeFields, KeyGraphFragment);
8662
+ var KeyExchangeQuery = gql__default['default'](templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n) {\n keyExchange(\n id: $id\n ) {\n ", "\n }\n keyGraph {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n) {\n keyExchange(\n id: $id\n ) {\n ", "\n }\n keyGraph {\n ...KeyGraphFragment\n }\n}\n", "\n"])), KeyExchangeFields, KeyGraphFragment);
8640
8663
  // Key graph is only available for authenticated users. This query
8641
8664
  // is for unauthenticated users.
8642
- var KeyExchangeTokenQuery = gql(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n $token: String\n) {\n keyExchange(\n id: $id\n token: $token\n ) {\n ", "\n }\n}"], ["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n $token: String\n) {\n keyExchange(\n id: $id\n token: $token\n ) {\n ", "\n }\n}"])), KeyExchangeFields);
8643
- var InitiateOtkMutation = gql(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\nmutation InitiateKeyExchangeOtk(\n$input: InitiateKeyExchangeOtkInput!\n) {\ninitiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n}\n", "\n}"], ["\nmutation InitiateKeyExchangeOtk(\n$input: InitiateKeyExchangeOtkInput!\n) {\ninitiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n}\n", "\n}"])), KeyExchangeFields, FetchKeyGraphField);
8644
- var RespondOtkMutation = gql(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\nmutation RespondKeyExchangeOtk(\n $input: RespondKeyExchangeOtkInput!\n) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"], ["\nmutation RespondKeyExchangeOtk(\n $input: RespondKeyExchangeOtkInput!\n) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"])), KeyExchangeFields, UserSharedKeyFields);
8645
- var CompleteOtkMutation = gql(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\nmutation CompleteKeyExchangeOtk(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"], ["\nmutation CompleteKeyExchangeOtk(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"])), KeyExchangeFields, UserSharedKeyFields);
8665
+ var KeyExchangeTokenQuery = gql__default['default'](templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n $token: String\n) {\n keyExchange(\n id: $id\n token: $token\n ) {\n ", "\n }\n}"], ["\nquery KeyExchangeQuery(\n $id: LrRelayIdInput!\n $token: String\n) {\n keyExchange(\n id: $id\n token: $token\n ) {\n ", "\n }\n}"])), KeyExchangeFields);
8666
+ var InitiateOtkMutation = gql__default['default'](templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\nmutation InitiateKeyExchangeOtk(\n$input: InitiateKeyExchangeOtkInput!\n) {\ninitiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n}\n", "\n}"], ["\nmutation InitiateKeyExchangeOtk(\n$input: InitiateKeyExchangeOtkInput!\n) {\ninitiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n}\n", "\n}"])), KeyExchangeFields, FetchKeyGraphField);
8667
+ var RespondOtkMutation = gql__default['default'](templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\nmutation RespondKeyExchangeOtk(\n $input: RespondKeyExchangeOtkInput!\n) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"], ["\nmutation RespondKeyExchangeOtk(\n $input: RespondKeyExchangeOtkInput!\n) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"])), KeyExchangeFields, UserSharedKeyFields);
8668
+ var CompleteOtkMutation = gql__default['default'](templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\nmutation CompleteKeyExchangeOtk(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"], ["\nmutation CompleteKeyExchangeOtk(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n }\n }\n}"])), KeyExchangeFields, UserSharedKeyFields);
8646
8669
  var templateObject_1$i, templateObject_2$f, templateObject_3$d, templateObject_4$9, templateObject_5$8, templateObject_6$7, templateObject_7$6;
8647
8670
 
8648
- var UserQuery = gql(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n query UserQuery($email: LrEmail, $username: String) {\n user(email: $email, username: $username) {\n id\n username\n haveTp\n isCurrentUser\n contactCards {\n edges {\n node {\n publicData\n publicSearchable\n }\n }\n }\n currentUserKey {\n sigPxk {\n id\n pbk\n }\n pxk {\n id\n pbk\n }\n }\n }\n }\n"], ["\n query UserQuery($email: LrEmail, $username: String) {\n user(email: $email, username: $username) {\n id\n username\n haveTp\n isCurrentUser\n contactCards {\n edges {\n node {\n publicData\n publicSearchable\n }\n }\n }\n currentUserKey {\n sigPxk {\n id\n pbk\n }\n pxk {\n id\n pbk\n }\n }\n }\n }\n"])));
8649
- var RequestUserDeleteMutation = gql(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n mutation RequestUserDelete($input: RequestUserDeleteInput!) {\n requestUserDelete(input: $input) {\n userDelete {\n state\n created\n }\n }\n }\n"], ["\n mutation RequestUserDelete($input: RequestUserDeleteInput!) {\n requestUserDelete(input: $input) {\n userDelete {\n state\n created\n }\n }\n }\n"])));
8650
- var CancelUserDeleteMutation = gql(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n mutation CancelUserDelete($input: CancelUserDeleteInput!) {\n cancelUserDelete(input: $input) {\n id\n }\n }\n"], ["\n mutation CancelUserDelete($input: CancelUserDeleteInput!) {\n cancelUserDelete(input: $input) {\n id\n }\n }\n"])));
8651
- var LoginHistoryQuery = gql(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n query LoginHistory($first: Int, $after: String) {\n loginHistory(first: $first, after: $after) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n events\n }\n }\n"], ["\n query LoginHistory($first: Int, $after: String) {\n loginHistory(first: $first, after: $after) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n events\n }\n }\n"])));
8671
+ var UserQuery = gql__default['default'](templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n query UserQuery($email: LrEmail, $username: String) {\n user(email: $email, username: $username) {\n id\n username\n haveTp\n isCurrentUser\n contactCards {\n edges {\n node {\n publicData\n publicSearchable\n }\n }\n }\n currentUserKey {\n sigPxk {\n id\n pbk\n }\n pxk {\n id\n pbk\n }\n }\n }\n }\n"], ["\n query UserQuery($email: LrEmail, $username: String) {\n user(email: $email, username: $username) {\n id\n username\n haveTp\n isCurrentUser\n contactCards {\n edges {\n node {\n publicData\n publicSearchable\n }\n }\n }\n currentUserKey {\n sigPxk {\n id\n pbk\n }\n pxk {\n id\n pbk\n }\n }\n }\n }\n"])));
8672
+ var RequestUserDeleteMutation = gql__default['default'](templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n mutation RequestUserDelete($input: RequestUserDeleteInput!) {\n requestUserDelete(input: $input) {\n userDelete {\n state\n created\n }\n }\n }\n"], ["\n mutation RequestUserDelete($input: RequestUserDeleteInput!) {\n requestUserDelete(input: $input) {\n userDelete {\n state\n created\n }\n }\n }\n"])));
8673
+ var CancelUserDeleteMutation = gql__default['default'](templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n mutation CancelUserDelete($input: CancelUserDeleteInput!) {\n cancelUserDelete(input: $input) {\n id\n }\n }\n"], ["\n mutation CancelUserDelete($input: CancelUserDeleteInput!) {\n cancelUserDelete(input: $input) {\n id\n }\n }\n"])));
8674
+ var LoginHistoryQuery = gql__default['default'](templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n query LoginHistory($first: Int, $after: String) {\n loginHistory(first: $first, after: $after) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n events\n }\n }\n"], ["\n query LoginHistory($first: Int, $after: String) {\n loginHistory(first: $first, after: $after) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n events\n }\n }\n"])));
8652
8675
  var templateObject_1$j, templateObject_2$g, templateObject_3$e, templateObject_4$a;
8653
8676
 
8654
8677
  var UserService = /** @class */ (function () {
@@ -8764,7 +8787,6 @@
8764
8787
  OtkState["OTK_COMPLETED"] = "OTK_COMPLETED";
8765
8788
  })(exports.OtkState || (exports.OtkState = {}));
8766
8789
 
8767
- var moment$2 = moment_;
8768
8790
  var KeyExchangeService = /** @class */ (function () {
8769
8791
  function KeyExchangeService(keyFactory, keyService, lrApollo, encryptionService, authService, userService) {
8770
8792
  this.keyFactory = keyFactory;
@@ -9580,7 +9602,7 @@
9580
9602
  });
9581
9603
  };
9582
9604
  KeyExchange2Service.prototype.getKeyExchanges = function (_a) {
9583
- var state = (_a === void 0 ? {} : _a).state;
9605
+ var _b = _a === void 0 ? {} : _a, state = _b.state;
9584
9606
  return __awaiter(this, void 0, void 0, function () {
9585
9607
  var keyExchanges;
9586
9608
  var _this = this;
@@ -10150,11 +10172,11 @@
10150
10172
  })
10151
10173
  ], exports.KeyExchange2Service);
10152
10174
 
10153
- var CreateLbopQuery = gql(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n mutation CreateLbop($input: CreateLbopInput!) {\n createLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"], ["\n mutation CreateLbop($input: CreateLbopInput!) {\n createLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"])));
10154
- var DeleteLbopQuery = gql(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n mutation DeleteLbop($input: DeleteLbopInput!) {\n deleteLbop(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteLbop($input: DeleteLbopInput!) {\n deleteLbop(input: $input) {\n id\n }\n }\n"])));
10155
- var UpdateLbopQuery = gql(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n mutation UpdateLbop($input: UpdateLbopInput!) {\n updateLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"], ["\n mutation UpdateLbop($input: UpdateLbopInput!) {\n updateLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"])));
10156
- var LbopQuery = gql(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n query Lbop($id: LrRelayIdInput!) {\n lbop(id: $id) {\n id\n cipherMeta\n }\n }\n"], ["\n query Lbop($id: LrRelayIdInput!) {\n lbop(id: $id) {\n id\n cipherMeta\n }\n }\n"])));
10157
- var LbopsQuery = gql(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n query Lbops {\n lbops {\n edges {\n node {\n id\n cipherMeta\n }\n }\n }\n }\n"], ["\n query Lbops {\n lbops {\n edges {\n node {\n id\n cipherMeta\n }\n }\n }\n }\n"])));
10175
+ var CreateLbopQuery = gql__default['default'](templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n mutation CreateLbop($input: CreateLbopInput!) {\n createLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"], ["\n mutation CreateLbop($input: CreateLbopInput!) {\n createLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"])));
10176
+ var DeleteLbopQuery = gql__default['default'](templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n mutation DeleteLbop($input: DeleteLbopInput!) {\n deleteLbop(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteLbop($input: DeleteLbopInput!) {\n deleteLbop(input: $input) {\n id\n }\n }\n"])));
10177
+ var UpdateLbopQuery = gql__default['default'](templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n mutation UpdateLbop($input: UpdateLbopInput!) {\n updateLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"], ["\n mutation UpdateLbop($input: UpdateLbopInput!) {\n updateLbop(input: $input) {\n lbop {\n id\n }\n }\n }\n"])));
10178
+ var LbopQuery = gql__default['default'](templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n query Lbop($id: LrRelayIdInput!) {\n lbop(id: $id) {\n id\n cipherMeta\n }\n }\n"], ["\n query Lbop($id: LrRelayIdInput!) {\n lbop(id: $id) {\n id\n cipherMeta\n }\n }\n"])));
10179
+ var LbopsQuery = gql__default['default'](templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n query Lbops {\n lbops {\n edges {\n node {\n id\n cipherMeta\n }\n }\n }\n }\n"], ["\n query Lbops {\n lbops {\n edges {\n node {\n id\n cipherMeta\n }\n }\n }\n }\n"])));
10158
10180
  var LbopService = /** @class */ (function () {
10159
10181
  function LbopService(config, http, lrApollo, auth, authService, keyFactory, keyService, encryptionService, keyGraph, passwordService) {
10160
10182
  this.config = config;
@@ -10302,6 +10324,7 @@
10302
10324
  }
10303
10325
  };
10304
10326
  this_1 = this;
10327
+ // eslint-disable-next-line no-constant-condition
10305
10328
  while (true) {
10306
10329
  state_1 = _loop_1();
10307
10330
  if (state_1 === "break")
@@ -10592,7 +10615,7 @@
10592
10615
  },
10593
10616
  {
10594
10617
  provide: i4.AuthClass,
10595
- useValue: Auth__default,
10618
+ useValue: Auth__default['default'],
10596
10619
  },
10597
10620
  {
10598
10621
  provide: i0.APP_INITIALIZER,
@@ -10651,44 +10674,45 @@
10651
10674
  MessageService.prototype.sendMessageMutation = function (_a) {
10652
10675
  var username = _a.username, userId = _a.userId, plainMessageJson = _a.plainMessageJson, plainCipherMessageJson = _a.plainCipherMessageJson;
10653
10676
  return __awaiter(this, void 0, void 0, function () {
10654
- var userSharedKey, input, sharedKey, cipherMessage, senderSigPrk, signedCipherMessage;
10655
- return __generator(this, function (_a) {
10656
- switch (_a.label) {
10677
+ var userSharedKey, signedCipherMessage, sharedKey, cipherMessage, senderSigPrk, _a, _b, plainMessage;
10678
+ return __generator(this, function (_c) {
10679
+ switch (_c.label) {
10657
10680
  case 0: return [4 /*yield*/, this.keyExchangeService.currentUserSharedKey({
10658
10681
  username: username,
10659
10682
  userId: userId,
10660
10683
  })];
10661
10684
  case 1:
10662
- userSharedKey = _a.sent();
10663
- input = {
10664
- receiverUsername: username,
10665
- receiverId: userId,
10666
- sharedKeyId: userSharedKey.sharedKey.id,
10667
- senderSigPbkId: userSharedKey.userSigPrk.id,
10668
- };
10685
+ userSharedKey = _c.sent();
10669
10686
  if (!plainCipherMessageJson) return [3 /*break*/, 6];
10670
10687
  return [4 /*yield*/, this.keyGraph.getJwkKey(userSharedKey.sharedKey.id)];
10671
10688
  case 2:
10672
- sharedKey = _a.sent();
10689
+ sharedKey = _c.sent();
10673
10690
  return [4 /*yield*/, this.encrypt(sharedKey, plainCipherMessageJson)];
10674
10691
  case 3:
10675
- cipherMessage = _a.sent();
10692
+ cipherMessage = _c.sent();
10676
10693
  return [4 /*yield*/, this.keyGraph.getJwkKey(userSharedKey.userSigPrk.id)];
10677
10694
  case 4:
10678
- senderSigPrk = _a.sent();
10695
+ senderSigPrk = _c.sent();
10696
+ _b = (_a = JSON).stringify;
10679
10697
  return [4 /*yield*/, this.sign(senderSigPrk, cipherMessage)];
10680
10698
  case 5:
10681
- signedCipherMessage = _a.sent();
10682
- input.signedCipherMessage = JSON.stringify(signedCipherMessage);
10683
- _a.label = 6;
10699
+ signedCipherMessage = _b.apply(_a, [_c.sent()]);
10700
+ _c.label = 6;
10684
10701
  case 6:
10685
10702
  if (plainMessageJson) {
10686
- input.plainMessage = JSON.stringify(plainMessageJson);
10703
+ plainMessage = JSON.stringify(plainMessageJson);
10687
10704
  }
10688
10705
  return [2 /*return*/, new LrMutation({
10689
10706
  mutation: SendMessageMutation,
10690
10707
  variables: {
10691
- input: input,
10708
+ input: {
10709
+ receiverUsername: username,
10710
+ receiverId: userId,
10711
+ sharedKeyId: userSharedKey.sharedKey.id,
10712
+ senderSigPbkId: userSharedKey.userSigPrk.id,
10713
+ signedCipherMessage: signedCipherMessage,
10714
+ plainMessage: plainMessage,
10715
+ },
10692
10716
  },
10693
10717
  })];
10694
10718
  }
@@ -10943,7 +10967,7 @@
10943
10967
  }());
10944
10968
 
10945
10969
  var SharedContactCardFields = "\n id\n owner {\n id\n username\n }\n ownerKey {\n id\n }\n ownerCipherData\n receiver {\n id\n username\n }\n receiverKey {\n id\n }\n receiverCipherData\n sharedKey {\n id\n }\n sharedCipherData\n sharedCipherDataSig\n sharedCipherDataSigPxk {\n id\n }\n";
10946
- var UpdateOwnedContactCard = gql(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\nmutation UpdateOwnedContactCard(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(\n input: $input\n ) {\n ownedContactCard {\n ", "\n }\n }\n}"], ["\nmutation UpdateOwnedContactCard(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(\n input: $input\n ) {\n ownedContactCard {\n ", "\n }\n }\n}"])), SharedContactCardFields);
10970
+ var UpdateOwnedContactCard = gql__default['default'](templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\nmutation UpdateOwnedContactCard(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(\n input: $input\n ) {\n ownedContactCard {\n ", "\n }\n }\n}"], ["\nmutation UpdateOwnedContactCard(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(\n input: $input\n ) {\n ownedContactCard {\n ", "\n }\n }\n}"])), SharedContactCardFields);
10947
10971
  var SharedContactCardService = /** @class */ (function () {
10948
10972
  function SharedContactCardService(keyService, lrApollo, keyGraph, encryptionService) {
10949
10973
  this.keyService = keyService;
@@ -11053,14 +11077,14 @@
11053
11077
  var templateObject_1$o;
11054
11078
 
11055
11079
  var TrustedPartyProperties = "\n id\n user {\n id\n username\n }\n other{\n id\n username,\n features {\n shareVault\n }\n }\n sharedContactCard {\n " + SharedContactCardFields + "\n }\n myContactCard {\n " + SharedContactCardFields + "\n }\n sharedScenarios {\n edges {\n node {\n id\n }\n }\n }\n sharedItems {\n directories {\n edges {\n node {\n id\n }\n }\n }\n }\n currentUserSharedKey {\n userSharedKey {\n keyExchange {\n " + KeyExchangeFields + "\n }\n " + UserSharedKeyFields + "\n }\n }";
11056
- var GetTrustedPartiesQuery = gql(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\nquery GetTrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery GetTrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), TrustedPartyProperties, KeyGraphField);
11057
- var GetAllTrustedPartiesQuery = gql(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\nquery GetAllTrustedPartiesQuery($userId: ID, $isExpired: Boolean, $inviteState: String, $sentInviteState: String) {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n invites: keyExchanges(\n responder: $userId\n isExpired: $isExpired\n state: $inviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n sentInvites: keyExchanges(\n initiator: $userId\n isExpired: $isExpired\n state: $sentInviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery GetAllTrustedPartiesQuery($userId: ID, $isExpired: Boolean, $inviteState: String, $sentInviteState: String) {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n invites: keyExchanges(\n responder: $userId\n isExpired: $isExpired\n state: $inviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n sentInvites: keyExchanges(\n initiator: $userId\n isExpired: $isExpired\n state: $sentInviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), TrustedPartyProperties, KeyExchangeFields, KeyExchangeFields, KeyGraphField);
11058
- var GetTrustedPartyQuery = gql(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\nquery GetTrustedPartyQuery($partyId: LrRelayIdInput!) {\n tp(id: $partyId) {\n ", "\n }\n ", "\n}"], ["\nquery GetTrustedPartyQuery($partyId: LrRelayIdInput!) {\n tp(id: $partyId) {\n ", "\n }\n ", "\n}"])), TrustedPartyProperties, KeyGraphField);
11059
- var DeclineTrustedPartyInvitationMutation = gql(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n mutation DeclineKeyExchange($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"], ["\n mutation DeclineKeyExchange($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"])));
11060
- var CancelTrustedPartyInvitationMutation = gql(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n mutation CancelKeyExchange($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"], ["\n mutation CancelKeyExchange($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"])));
11061
- var DeleteTrustedPartyMutation = gql(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n mutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n }\n"])));
11062
- var ShareCategoryMutation = gql(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n mutation ShareDirectory($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"], ["\n mutation ShareDirectory($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"])));
11063
- var UnshareCategoryMutation = gql(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n mutation UnshareDirectory($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"], ["\n mutation UnshareDirectory($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"])));
11080
+ var GetTrustedPartiesQuery = gql__default['default'](templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\nquery GetTrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery GetTrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), TrustedPartyProperties, KeyGraphField);
11081
+ var GetAllTrustedPartiesQuery = gql__default['default'](templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\nquery GetAllTrustedPartiesQuery($userId: ID, $isExpired: Boolean, $inviteState: String, $sentInviteState: String) {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n invites: keyExchanges(\n responder: $userId\n isExpired: $isExpired\n state: $inviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n sentInvites: keyExchanges(\n initiator: $userId\n isExpired: $isExpired\n state: $sentInviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery GetAllTrustedPartiesQuery($userId: ID, $isExpired: Boolean, $inviteState: String, $sentInviteState: String) {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n invites: keyExchanges(\n responder: $userId\n isExpired: $isExpired\n state: $inviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n sentInvites: keyExchanges(\n initiator: $userId\n isExpired: $isExpired\n state: $sentInviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), TrustedPartyProperties, KeyExchangeFields, KeyExchangeFields, KeyGraphField);
11082
+ var GetTrustedPartyQuery = gql__default['default'](templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\nquery GetTrustedPartyQuery($partyId: LrRelayIdInput!) {\n tp(id: $partyId) {\n ", "\n }\n ", "\n}"], ["\nquery GetTrustedPartyQuery($partyId: LrRelayIdInput!) {\n tp(id: $partyId) {\n ", "\n }\n ", "\n}"])), TrustedPartyProperties, KeyGraphField);
11083
+ var DeclineTrustedPartyInvitationMutation = gql__default['default'](templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n mutation DeclineKeyExchange($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"], ["\n mutation DeclineKeyExchange($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"])));
11084
+ var CancelTrustedPartyInvitationMutation = gql__default['default'](templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n mutation CancelKeyExchange($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"], ["\n mutation CancelKeyExchange($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"])));
11085
+ var DeleteTrustedPartyMutation = gql__default['default'](templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n mutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n }\n"])));
11086
+ var ShareCategoryMutation = gql__default['default'](templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n mutation ShareDirectory($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"], ["\n mutation ShareDirectory($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"])));
11087
+ var UnshareCategoryMutation = gql__default['default'](templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n mutation UnshareDirectory($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"], ["\n mutation UnshareDirectory($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"])));
11064
11088
  var templateObject_1$p, templateObject_2$l, templateObject_3$i, templateObject_4$e, templateObject_5$c, templateObject_6$9, templateObject_7$8, templateObject_8$7;
11065
11089
 
11066
11090
  var TrustedPartyRole = /** @class */ (function () {
@@ -11712,7 +11736,7 @@
11712
11736
  oldValue: oldValue.value,
11713
11737
  });
11714
11738
  }
11715
- else if (!___default.isEqual(newValue.value, oldValue.value)) {
11739
+ else if (!___default['default'].isEqual(newValue.value, oldValue.value)) {
11716
11740
  changes.push({
11717
11741
  field: field,
11718
11742
  id: oldValue.id,
@@ -11779,7 +11803,7 @@
11779
11803
  break;
11780
11804
  default: {
11781
11805
  var value = details[change.field];
11782
- if (___default.isEqual(value, change.oldValue)) {
11806
+ if (___default['default'].isEqual(value, change.oldValue)) {
11783
11807
  hasChanged = true;
11784
11808
  details[change.field] = change.newValue;
11785
11809
  }
@@ -11913,7 +11937,7 @@
11913
11937
  property = property || { value: field, hasMultiple: false };
11914
11938
  property.values = property.values || [];
11915
11939
  if (property.values.length === 0 ||
11916
- property.values.every(function (x) { return !___default.isEqual(field, x.value); })) {
11940
+ property.values.every(function (x) { return !___default['default'].isEqual(field, x.value); })) {
11917
11941
  property.values.push({
11918
11942
  id: label + "-" + new Date().getTime(),
11919
11943
  label: label,
@@ -12614,6 +12638,7 @@
12614
12638
  case 9:
12615
12639
  wrappedSigPrk = _a.sent();
12616
12640
  return [4 /*yield*/, this.http
12641
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12617
12642
  .post(this.config.authUrl + "users/", {
12618
12643
  claims: [
12619
12644
  {
@@ -13112,81 +13137,95 @@
13112
13137
  };
13113
13138
  ScenarioService.prototype.prepareUpdateScenario = function (options, scenario) {
13114
13139
  return __awaiter(this, void 0, void 0, function () {
13115
- var assemblyKey, updateAssembly, result, createReceiversOptions, createClaimantsOptions, creatParticipantsOptions, tps, createReceivers, _a, existingReceivers, updateReceivers, _b, existing, _c, _d, createClaimants, _e, existingClaimants, updateClaimants, _f;
13140
+ var assemblyKey, updateAssembly, _a, createReceiversOptions, createClaimantsOptions, creatParticipantsOptions, tps, createReceivers, _b, existingReceivers, updateReceivers, _c, existing, _d, _e, createClaimants, _f, existingClaimants, updateClaimants, _g;
13116
13141
  var _this = this;
13117
- return __generator(this, function (_g) {
13118
- switch (_g.label) {
13142
+ return __generator(this, function (_h) {
13143
+ switch (_h.label) {
13119
13144
  case 0: return [4 /*yield*/, this.keyGraph.getJwkKey(scenario.assembly.assemblyKey.id)];
13120
13145
  case 1:
13121
- assemblyKey = _g.sent();
13146
+ assemblyKey = _h.sent();
13122
13147
  if (!options.updateAssembly) return [3 /*break*/, 3];
13123
- return [4 /*yield*/, this.assemblyController.prepareUpdate(options.updateAssembly, scenario.assembly)];
13148
+ return [4 /*yield*/, (function () { return __awaiter(_this, void 0, void 0, function () {
13149
+ var result;
13150
+ return __generator(this, function (_a) {
13151
+ switch (_a.label) {
13152
+ case 0: return [4 /*yield*/, this.assemblyController.prepareUpdate(options.updateAssembly, scenario.assembly)];
13153
+ case 1:
13154
+ result = _a.sent();
13155
+ // Use new assembly key.
13156
+ assemblyKey = result.assemblyKey;
13157
+ return [2 /*return*/, result.mutationInput];
13158
+ }
13159
+ });
13160
+ }); })()];
13124
13161
  case 2:
13125
- result = _g.sent();
13126
- updateAssembly = result.mutationInput;
13127
- assemblyKey = result.assemblyKey;
13128
- _g.label = 3;
13162
+ _a = _h.sent();
13163
+ return [3 /*break*/, 4];
13129
13164
  case 3:
13165
+ _a = undefined;
13166
+ _h.label = 4;
13167
+ case 4:
13168
+ updateAssembly = _a;
13130
13169
  createReceiversOptions = options.createReceivers || [];
13131
13170
  createClaimantsOptions = options.createClaimants || [];
13132
13171
  creatParticipantsOptions = createReceiversOptions.concat(createClaimantsOptions);
13133
13172
  return [4 /*yield*/, this.getParticipantTpsKeys(creatParticipantsOptions)];
13134
- case 4:
13135
- tps = _g.sent();
13173
+ case 5:
13174
+ tps = _h.sent();
13136
13175
  this.fillTpSharedKeyId(creatParticipantsOptions, tps);
13137
- _a = options.createReceivers;
13138
- if (!_a) return [3 /*break*/, 6];
13176
+ _b = options.createReceivers;
13177
+ if (!_b) return [3 /*break*/, 7];
13139
13178
  return [4 /*yield*/, Promise.all(options.createReceivers.map(function (x) { return _this.prepareCreateReceiver(x, assemblyKey); }))];
13140
- case 5:
13141
- _a = (_g.sent());
13142
- _g.label = 6;
13143
13179
  case 6:
13144
- createReceivers = _a;
13180
+ _b = (_h.sent());
13181
+ _h.label = 7;
13182
+ case 7:
13183
+ createReceivers = _b;
13145
13184
  existingReceivers = mapEdges(scenario.receivers);
13146
- if (!options.updateReceivers) return [3 /*break*/, 8];
13185
+ if (!options.updateReceivers) return [3 /*break*/, 9];
13147
13186
  return [4 /*yield*/, Promise.all(options.updateReceivers.map(function (updateReceiver) {
13148
13187
  // Find the receiver we are updating
13149
13188
  var existingReceiver = existingReceivers.find(function (x) { return x.tp.id === updateReceiver.tpId; });
13150
13189
  return _this.prepareUpdateReceiver(updateReceiver, assemblyKey, existingReceiver);
13151
13190
  }))];
13152
- case 7:
13153
- _b = _g.sent();
13154
- return [3 /*break*/, 9];
13155
13191
  case 8:
13156
- _b = [];
13157
- _g.label = 9;
13192
+ _c = _h.sent();
13193
+ return [3 /*break*/, 10];
13158
13194
  case 9:
13159
- updateReceivers = _b;
13160
- if (!options.updateAssembly) return [3 /*break*/, 11];
13195
+ _c = [];
13196
+ _h.label = 10;
13197
+ case 10:
13198
+ updateReceivers = _c;
13199
+ if (!options.updateAssembly) return [3 /*break*/, 12];
13161
13200
  existing = existingReceivers.filter(function (existingReceiver) { return !(options.deleteReceivers || []).includes(existingReceiver.tp.id) &&
13162
13201
  !updateReceivers.some(function (updateReceiver) { return updateReceiver.tpId === existingReceiver.tp.id; }); });
13163
- _d = (_c = updateReceivers).concat;
13202
+ _e = (_d = updateReceivers).concat;
13164
13203
  return [4 /*yield*/, this.prepareExistingReceivers(existing, assemblyKey)];
13165
- case 10:
13166
- updateReceivers = _d.apply(_c, [_g.sent()]);
13167
- _g.label = 11;
13168
13204
  case 11:
13169
- _e = options.createClaimants;
13170
- if (!_e) return [3 /*break*/, 13];
13171
- return [4 /*yield*/, Promise.all(options.createClaimants.map(function (x) { return _this.prepareCreateClaimant(x); }))];
13205
+ updateReceivers = _e.apply(_d, [_h.sent()]);
13206
+ _h.label = 12;
13172
13207
  case 12:
13173
- _e = (_g.sent());
13174
- _g.label = 13;
13208
+ _f = options.createClaimants;
13209
+ if (!_f) return [3 /*break*/, 14];
13210
+ return [4 /*yield*/, Promise.all(options.createClaimants.map(function (x) { return _this.prepareCreateClaimant(x); }))];
13175
13211
  case 13:
13176
- createClaimants = _e;
13212
+ _f = (_h.sent());
13213
+ _h.label = 14;
13214
+ case 14:
13215
+ createClaimants = _f;
13177
13216
  existingClaimants = mapEdges(scenario.claimants);
13178
- _f = options.updateClaimants;
13179
- if (!_f) return [3 /*break*/, 15];
13217
+ _g = options.updateClaimants;
13218
+ if (!_g) return [3 /*break*/, 16];
13180
13219
  return [4 /*yield*/, Promise.all(options.updateClaimants.map(function (x) {
13181
13220
  // Find the claimant we are updating
13182
13221
  var claimant = existingClaimants.find(function (existingClaimant) { return existingClaimant.tp.id === x.tpId; });
13183
13222
  return _this.prepareUpdateClaimant(x, claimant.sharedKey.id);
13184
13223
  }))];
13185
- case 14:
13186
- _f = (_g.sent());
13187
- _g.label = 15;
13188
13224
  case 15:
13189
- updateClaimants = _f;
13225
+ _g = (_h.sent());
13226
+ _h.label = 16;
13227
+ case 16:
13228
+ updateClaimants = _g;
13190
13229
  return [2 /*return*/, {
13191
13230
  scenarioId: options.scenarioId,
13192
13231
  enabled: options.enabled,
@@ -13856,7 +13895,7 @@
13856
13895
  });
13857
13896
  });
13858
13897
  };
13859
- TpPasswordResetRequestService.prototype.approveRequestMutation = function (sharedResetId, pbkFingerPrint) {
13898
+ TpPasswordResetRequestService.prototype.approveRequestMutation = function (sharedResetId, _pbkFingerPrint) {
13860
13899
  return __awaiter(this, void 0, void 0, function () {
13861
13900
  var sharedReset, pbk, claimApprovers, _a, _b;
13862
13901
  var _this = this;
@@ -13960,9 +13999,10 @@
13960
13999
  params = {
13961
14000
  email: email,
13962
14001
  };
13963
- return [2 /*return*/, this.http
14002
+ return [2 /*return*/, (this.http
14003
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13964
14004
  .post(this.config.authUrl + "tp/password-reset/verify-contact/", params)
13965
- .toPromise()];
14005
+ .toPromise())];
13966
14006
  });
13967
14007
  });
13968
14008
  };