@lifeready/core 7.2.3 → 8.0.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.
- package/bundles/lifeready-core.umd.js +239 -186
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/_common/queries.gql.js +2 -149
- package/esm2015/lib/api/lr-graphql/lr-mutation.js +5 -3
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +2 -2
- package/esm2015/lib/api/types/lr-graphql.types.js +11 -16
- package/esm2015/lib/auth/auth.gql.private.js +1 -1
- package/esm2015/lib/auth/auth.service.js +5 -3
- package/esm2015/lib/auth/auth.types.js +1 -3
- package/esm2015/lib/item/item.gql.private.js +7 -7
- package/esm2015/lib/item/item.service.js +10 -10
- package/esm2015/lib/key/key-graph.service.js +14 -1
- package/esm2015/lib/key/key.types.js +1 -1
- package/esm2015/lib/plan/plan.types.js +1 -1
- package/esm2015/lib/scenario/scenario.gql.js +1 -1
- package/esm2015/lib/scenario/scenario.private.gql.js +36 -31
- package/esm2015/lib/scenario/scenario.service.js +32 -10
- package/esm2015/lib/trusted-party/trusted-party.gql.js +35 -35
- package/esm2015/lib/trusted-party/trusted-party.service.js +32 -32
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +178 -288
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/queries.gql.d.ts +0 -6
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +2 -2
- package/lib/api/types/lr-graphql.types.d.ts +26 -29
- package/lib/auth/auth.gql.private.d.ts +3 -3
- package/lib/auth/auth.types.d.ts +3 -2
- package/lib/item/item.gql.private.d.ts +6 -6
- package/lib/item/item.service.d.ts +2 -2
- package/lib/key/key.types.d.ts +1 -0
- package/lib/plan/plan.types.d.ts +0 -1
- package/lib/scenario/scenario.gql.d.ts +1 -1
- package/lib/scenario/scenario.service.d.ts +11 -6
- package/lib/trusted-party/trusted-party.gql.d.ts +34 -34
- package/lib/trusted-party/trusted-party.service.d.ts +16 -16
- package/lib/trusted-party/trusted-party.types.d.ts +2 -2
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2086,25 +2086,59 @@
|
|
|
2086
2086
|
};
|
|
2087
2087
|
KeyGraphService.prototype._unwrapLink = function (wrappingKey, link, dstKey) {
|
|
2088
2088
|
return __awaiter(this, void 0, void 0, function () {
|
|
2089
|
-
var wrappedKey, nextRawKey, _a;
|
|
2090
|
-
|
|
2091
|
-
|
|
2089
|
+
var wrappedKey, nextRawKey, data, _a, _b, nestedWrappingKeyId, key, e_4_1, _c;
|
|
2090
|
+
var e_4, _d;
|
|
2091
|
+
return __generator(this, function (_e) {
|
|
2092
|
+
switch (_e.label) {
|
|
2092
2093
|
case 0:
|
|
2093
2094
|
wrappedKey = JSON.parse(link.data.wrappedKey);
|
|
2094
2095
|
if (!wrappedKey.signatures) return [3 /*break*/, 2];
|
|
2095
2096
|
return [4 /*yield*/, this.encryptionService.verify(wrappingKey, wrappedKey)];
|
|
2096
2097
|
case 1:
|
|
2097
|
-
nextRawKey =
|
|
2098
|
+
nextRawKey = _e.sent();
|
|
2098
2099
|
return [3 /*break*/, 4];
|
|
2099
2100
|
case 2: return [4 /*yield*/, this.encryptionService.decrypt(wrappingKey, wrappedKey)];
|
|
2100
2101
|
case 3:
|
|
2101
|
-
nextRawKey =
|
|
2102
|
-
|
|
2102
|
+
nextRawKey = _e.sent();
|
|
2103
|
+
_e.label = 4;
|
|
2103
2104
|
case 4:
|
|
2104
|
-
|
|
2105
|
-
|
|
2105
|
+
if (!(link.type == KeyGraphEdgeType.KeyLink)) return [3 /*break*/, 13];
|
|
2106
|
+
data = link.data;
|
|
2107
|
+
if (!data.nestedWrappingKeyIds) return [3 /*break*/, 13];
|
|
2108
|
+
_e.label = 5;
|
|
2106
2109
|
case 5:
|
|
2107
|
-
|
|
2110
|
+
_e.trys.push([5, 11, 12, 13]);
|
|
2111
|
+
_a = __values(data.nestedWrappingKeyIds), _b = _a.next();
|
|
2112
|
+
_e.label = 6;
|
|
2113
|
+
case 6:
|
|
2114
|
+
if (!!_b.done) return [3 /*break*/, 10];
|
|
2115
|
+
nestedWrappingKeyId = _b.value;
|
|
2116
|
+
return [4 /*yield*/, this.getKey(nestedWrappingKeyId)];
|
|
2117
|
+
case 7:
|
|
2118
|
+
key = _e.sent();
|
|
2119
|
+
return [4 /*yield*/, this.encryptionService.decrypt(key.jwk, nextRawKey)];
|
|
2120
|
+
case 8:
|
|
2121
|
+
nextRawKey = _e.sent();
|
|
2122
|
+
_e.label = 9;
|
|
2123
|
+
case 9:
|
|
2124
|
+
_b = _a.next();
|
|
2125
|
+
return [3 /*break*/, 6];
|
|
2126
|
+
case 10: return [3 /*break*/, 13];
|
|
2127
|
+
case 11:
|
|
2128
|
+
e_4_1 = _e.sent();
|
|
2129
|
+
e_4 = { error: e_4_1 };
|
|
2130
|
+
return [3 /*break*/, 13];
|
|
2131
|
+
case 12:
|
|
2132
|
+
try {
|
|
2133
|
+
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
2134
|
+
}
|
|
2135
|
+
finally { if (e_4) throw e_4.error; }
|
|
2136
|
+
return [7 /*endfinally*/];
|
|
2137
|
+
case 13:
|
|
2138
|
+
_c = dstKey;
|
|
2139
|
+
return [4 /*yield*/, KeyFactoryService.asKey(nextRawKey)];
|
|
2140
|
+
case 14:
|
|
2141
|
+
_c.jwk = _e.sent();
|
|
2108
2142
|
dstKey.task = null;
|
|
2109
2143
|
return [2 /*return*/];
|
|
2110
2144
|
}
|
|
@@ -2113,8 +2147,8 @@
|
|
|
2113
2147
|
};
|
|
2114
2148
|
KeyGraphService.prototype._unwrap = function (key, path) {
|
|
2115
2149
|
return __awaiter(this, void 0, void 0, function () {
|
|
2116
|
-
var path_1, path_1_1, link, dstKey,
|
|
2117
|
-
var
|
|
2150
|
+
var path_1, path_1_1, link, dstKey, e_5_1;
|
|
2151
|
+
var e_5, _a;
|
|
2118
2152
|
return __generator(this, function (_b) {
|
|
2119
2153
|
switch (_b.label) {
|
|
2120
2154
|
case 0:
|
|
@@ -2142,14 +2176,14 @@
|
|
|
2142
2176
|
return [3 /*break*/, 1];
|
|
2143
2177
|
case 4: return [3 /*break*/, 7];
|
|
2144
2178
|
case 5:
|
|
2145
|
-
|
|
2146
|
-
|
|
2179
|
+
e_5_1 = _b.sent();
|
|
2180
|
+
e_5 = { error: e_5_1 };
|
|
2147
2181
|
return [3 /*break*/, 7];
|
|
2148
2182
|
case 6:
|
|
2149
2183
|
try {
|
|
2150
2184
|
if (path_1_1 && !path_1_1.done && (_a = path_1.return)) _a.call(path_1);
|
|
2151
2185
|
}
|
|
2152
|
-
finally { if (
|
|
2186
|
+
finally { if (e_5) throw e_5.error; }
|
|
2153
2187
|
return [7 /*endfinally*/];
|
|
2154
2188
|
case 7: return [2 /*return*/, key];
|
|
2155
2189
|
}
|
|
@@ -2405,18 +2439,12 @@
|
|
|
2405
2439
|
return gql__default['default'].apply(void 0, __spread([literals], placeholders));
|
|
2406
2440
|
}
|
|
2407
2441
|
|
|
2408
|
-
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";
|
|
2442
|
+
var KeyGraphFragmentBase = "\n{\n keys {\n id\n }\n keyLinks {\n keyId\n wrappingKeyId\n nestedWrappingKeyIds\n wrappedKey\n }\n passKeys {\n id\n }\n passKeyLinks {\n keyId\n passKeyId\n wrappedKey\n }\n __typename\n}\n";
|
|
2409
2443
|
var KeyGraphFragment = gql__default['default'](templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\nfragment KeyGraphFragment on KeyGraphType ", "\n"], ["\nfragment KeyGraphFragment on KeyGraphType ", "\n"])), KeyGraphFragmentBase);
|
|
2410
2444
|
var KeyGraphField = "keyGraph " + KeyGraphFragmentBase;
|
|
2411
2445
|
var FetchKeyGraphField = "keyGraph: fetchKeyGraph " + KeyGraphFragmentBase;
|
|
2412
|
-
var
|
|
2413
|
-
var
|
|
2414
|
-
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"])));
|
|
2415
|
-
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"])));
|
|
2416
|
-
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"])));
|
|
2417
|
-
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"])));
|
|
2418
|
-
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"])));
|
|
2419
|
-
var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
2446
|
+
var DirectoryQuery = gql__default['default'](templateObject_2 || (templateObject_2 = __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);
|
|
2447
|
+
var templateObject_1$1, templateObject_2;
|
|
2420
2448
|
|
|
2421
2449
|
/**
|
|
2422
2450
|
* If you wish to change the behaviour of those, you'll need to create a derived
|
|
@@ -2670,7 +2698,7 @@
|
|
|
2670
2698
|
this.ngZone = ngZone;
|
|
2671
2699
|
this.keyGraph = keyGraph;
|
|
2672
2700
|
}
|
|
2673
|
-
TpPasswordResetProcessorService.prototype.
|
|
2701
|
+
TpPasswordResetProcessorService.prototype.processTpPasswordResetUser = function (node) {
|
|
2674
2702
|
var _a;
|
|
2675
2703
|
return __awaiter(this, void 0, void 0, function () {
|
|
2676
2704
|
var pxk, _b, ret, _c;
|
|
@@ -3287,7 +3315,9 @@
|
|
|
3287
3315
|
var mutationNode = getMutation(mutationDoc);
|
|
3288
3316
|
var fragmentMap = {};
|
|
3289
3317
|
getFragments(fragments).forEach(function (fragment) {
|
|
3290
|
-
|
|
3318
|
+
// Using '_' as the delimiter for the dummy suffix which only serves to make fragment names
|
|
3319
|
+
// unique since apollo client demands unique fragment names.
|
|
3320
|
+
fragmentMap[fragment.name.value.split('_')[0]] = fragment;
|
|
3291
3321
|
});
|
|
3292
3322
|
var replaceFieldSelection = function (selection) {
|
|
3293
3323
|
var field = selection;
|
|
@@ -3300,7 +3330,7 @@
|
|
|
3300
3330
|
// a fragment using the same name as the mutation field.
|
|
3301
3331
|
// We will also rename the fragment to the same name.
|
|
3302
3332
|
field.selectionSet.selections = [
|
|
3303
|
-
Object.assign(Object.assign({}, fragmentSpreadAstSelection), { name: name(
|
|
3333
|
+
Object.assign(Object.assign({}, fragmentSpreadAstSelection), { name: name(fragment.name.value) }),
|
|
3304
3334
|
];
|
|
3305
3335
|
};
|
|
3306
3336
|
mutationNode.selectionSet.selections.forEach(function (selection) {
|
|
@@ -3741,14 +3771,14 @@
|
|
|
3741
3771
|
PlanState["ENABLED"] = "ENABLED";
|
|
3742
3772
|
PlanState["DISABLED"] = "DISABLED";
|
|
3743
3773
|
})(exports.PlanState || (exports.PlanState = {}));
|
|
3744
|
-
(function (
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
})(exports.
|
|
3748
|
-
(function (
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
})(exports.
|
|
3774
|
+
(function (ShareTypeChoice) {
|
|
3775
|
+
ShareTypeChoice["TP"] = "TP";
|
|
3776
|
+
ShareTypeChoice["DETACHED"] = "DETACHED";
|
|
3777
|
+
})(exports.ShareTypeChoice || (exports.ShareTypeChoice = {}));
|
|
3778
|
+
(function (DetachedShareStateChoice) {
|
|
3779
|
+
DetachedShareStateChoice["IN_PROGRESS"] = "IN_PROGRESS";
|
|
3780
|
+
DetachedShareStateChoice["COMPLETED"] = "COMPLETED";
|
|
3781
|
+
})(exports.DetachedShareStateChoice || (exports.DetachedShareStateChoice = {}));
|
|
3752
3782
|
(function (AccessRoleChoice) {
|
|
3753
3783
|
AccessRoleChoice["READER"] = "READER";
|
|
3754
3784
|
AccessRoleChoice["WRITER"] = "WRITER";
|
|
@@ -3861,10 +3891,6 @@
|
|
|
3861
3891
|
LinkTypeField["HARD"] = "HARD";
|
|
3862
3892
|
LinkTypeField["SOFT"] = "SOFT";
|
|
3863
3893
|
})(exports.LinkTypeField || (exports.LinkTypeField = {}));
|
|
3864
|
-
(function (BillingPeriodField) {
|
|
3865
|
-
BillingPeriodField["MONTHLY"] = "MONTHLY";
|
|
3866
|
-
BillingPeriodField["ANNUAL"] = "ANNUAL";
|
|
3867
|
-
})(exports.BillingPeriodField || (exports.BillingPeriodField = {}));
|
|
3868
3894
|
(function (PlanStateField) {
|
|
3869
3895
|
PlanStateField["TRIALLING"] = "TRIALLING";
|
|
3870
3896
|
PlanStateField["ACTIVE"] = "ACTIVE";
|
|
@@ -4141,11 +4167,11 @@
|
|
|
4141
4167
|
var ContactCardFields = "\nid\npublicData\npublicSearchable\ncipherData\nkey {\n id\n}\n";
|
|
4142
4168
|
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);
|
|
4143
4169
|
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);
|
|
4144
|
-
var ContactCardListQuery = gql__default['default'](templateObject_3
|
|
4145
|
-
var CreateContactCardMutation = gql__default['default'](templateObject_4
|
|
4146
|
-
var UpdateContactCardMutation = gql__default['default'](templateObject_5
|
|
4147
|
-
var DeleteContactCardMutation = gql__default['default'](templateObject_6
|
|
4148
|
-
var templateObject_1$4, templateObject_2$2, templateObject_3
|
|
4170
|
+
var ContactCardListQuery = gql__default['default'](templateObject_3 || (templateObject_3 = __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);
|
|
4171
|
+
var CreateContactCardMutation = gql__default['default'](templateObject_4 || (templateObject_4 = __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);
|
|
4172
|
+
var UpdateContactCardMutation = gql__default['default'](templateObject_5 || (templateObject_5 = __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);
|
|
4173
|
+
var DeleteContactCardMutation = gql__default['default'](templateObject_6 || (templateObject_6 = __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"])));
|
|
4174
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
4149
4175
|
|
|
4150
4176
|
var DirectoryKeyQuery = gqlTyped(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"], ["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"])));
|
|
4151
4177
|
var WrappedContent = /** @class */ (function () {
|
|
@@ -4397,14 +4423,14 @@
|
|
|
4397
4423
|
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";
|
|
4398
4424
|
var KeyExchangesQuery2 = gqlTyped(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\nquery KeyExchangesQuery2($state: String) {\n keyExchanges(state: $state) {\n edges {\n node {\n ", "\n }\n }\n }\n}\n"], ["\nquery KeyExchangesQuery2($state: String) {\n keyExchanges(state: $state) {\n edges {\n node {\n ", "\n }\n }\n }\n}\n"])), KeyExchangeFields);
|
|
4399
4425
|
var KeyExchangeQuery2 = gqlTyped(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery KeyExchangeQuery2($id: LrRelayIdInput!) {\n keyExchange(id: $id) {\n ", "\n }\n}\n"], ["\nquery KeyExchangeQuery2($id: LrRelayIdInput!) {\n keyExchange(id: $id) {\n ", "\n }\n}\n"])), KeyExchangeFields);
|
|
4400
|
-
var KeyExchangeTokenQuery2 = gqlTyped(templateObject_3$
|
|
4401
|
-
var CancelKeyExchangeMutation = gqlTyped(templateObject_4$
|
|
4402
|
-
var DeclineKeyExchangeMutation = gqlTyped(templateObject_5$
|
|
4403
|
-
var InitiateKeyExchangeOtkMutation = gqlTyped(templateObject_6$
|
|
4404
|
-
var RespondKeyExchangeOtkMutation = gqlTyped(templateObject_7
|
|
4405
|
-
var CompleteKeyExchangeOtkMutation = gqlTyped(templateObject_8
|
|
4426
|
+
var KeyExchangeTokenQuery2 = gqlTyped(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\nquery KeyExchangeTokenQuery2($id: LrRelayIdInput!, $token: String) {\n keyExchange(id: $id, token: $token) {\n ", "\n }\n}\n"], ["\nquery KeyExchangeTokenQuery2($id: LrRelayIdInput!, $token: String) {\n keyExchange(id: $id, token: $token) {\n ", "\n }\n}\n"])), KeyExchangeFields);
|
|
4427
|
+
var CancelKeyExchangeMutation = gqlTyped(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\nmutation CancelKeyExchangeMutation($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n}\n"], ["\nmutation CancelKeyExchangeMutation($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n}\n"])));
|
|
4428
|
+
var DeclineKeyExchangeMutation = gqlTyped(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\nmutation DeclineKeyExchangeMutation($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n}\n"], ["\nmutation DeclineKeyExchangeMutation($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n}\n"])));
|
|
4429
|
+
var InitiateKeyExchangeOtkMutation = gqlTyped(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\nmutation InitiateKeyExchangeOtkMutation(\n $input: InitiateKeyExchangeOtkInput!\n) {\n initiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n }\n}\n"], ["\nmutation InitiateKeyExchangeOtkMutation(\n $input: InitiateKeyExchangeOtkInput!\n) {\n initiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n }\n}\n"])), KeyExchangeFields);
|
|
4430
|
+
var RespondKeyExchangeOtkMutation = gqlTyped(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\nmutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n user {\n config\n }\n }\n }\n}\n"], ["\nmutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n user {\n config\n }\n }\n }\n}\n"])), KeyExchangeFields, UserSharedKeyFields);
|
|
4431
|
+
var CompleteKeyExchangeOtkMutation = gqlTyped(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\nmutation CompleteKeyExchangeOtkMutation(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n user {\n config\n }\n }\n }\n}\n"], ["\nmutation CompleteKeyExchangeOtkMutation(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ", "\n }\n userSharedKey {\n ", "\n }\n tp {\n id\n user {\n config\n }\n }\n }\n}\n"])), KeyExchangeFields, UserSharedKeyFields);
|
|
4406
4432
|
var CurrentUserSharedKeyQuery2 = gqlTyped(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\nquery CurrentUserSharedKeyQuery2(\n $username: String\n $userId: LrRelayIdInput\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ", "\n }\n }\n}\n"], ["\nquery CurrentUserSharedKeyQuery2(\n $username: String\n $userId: LrRelayIdInput\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ", "\n }\n }\n}\n"])), UserSharedKeyFields);
|
|
4407
|
-
var templateObject_1$6, templateObject_2$3, templateObject_3$
|
|
4433
|
+
var templateObject_1$6, templateObject_2$3, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9;
|
|
4408
4434
|
|
|
4409
4435
|
(function (FeatureAction) {
|
|
4410
4436
|
// Just the one for now
|
|
@@ -4602,10 +4628,10 @@
|
|
|
4602
4628
|
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 theirItems {\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 }";
|
|
4603
4629
|
var CurrentUserQuery = gql__default['default'](templateObject_1$8 || (templateObject_1$8 = __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 dateJoined\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 dateJoined\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);
|
|
4604
4630
|
var CreateContactCardMutation$1 = gql__default['default'](templateObject_2$4 || (templateObject_2$4 = __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"])));
|
|
4605
|
-
var UpdateContactCardMutation$1 = gql__default['default'](templateObject_3$
|
|
4606
|
-
var TrustedPartiesQuery = gqlTyped(templateObject_4$
|
|
4607
|
-
var ContactCardsQuery = gqlTyped(templateObject_5$
|
|
4608
|
-
var templateObject_1$8, templateObject_2$4, templateObject_3$
|
|
4631
|
+
var UpdateContactCardMutation$1 = gql__default['default'](templateObject_3$2 || (templateObject_3$2 = __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"])));
|
|
4632
|
+
var TrustedPartiesQuery = gqlTyped(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\nquery TrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n}"], ["\nquery TrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n}"])), TrustedPartyProperties);
|
|
4633
|
+
var ContactCardsQuery = gqlTyped(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\nquery ContactCardsQuery {\n contactCards(orderBy: \"created\") {\n edges {\n node {\n id\n cipherData\n key {\n id\n }\n }\n }\n }\n}\n"], ["\nquery ContactCardsQuery {\n contactCards(orderBy: \"created\") {\n edges {\n node {\n id\n cipherData\n key {\n id\n }\n }\n }\n }\n}\n"])));
|
|
4634
|
+
var templateObject_1$8, templateObject_2$4, templateObject_3$2, templateObject_4$2, templateObject_5$2;
|
|
4609
4635
|
|
|
4610
4636
|
var ProfileService = /** @class */ (function () {
|
|
4611
4637
|
function ProfileService(config, http, lrApollo, keyService, keyMetaService, keyGraph, encryptionService) {
|
|
@@ -4846,8 +4872,8 @@
|
|
|
4846
4872
|
|
|
4847
4873
|
var PasswordChangeRequestMutation = gql__default['default'](templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n mutation {\n passwordChangeRequest(input: {}) {\n challenge\n }\n }\n"], ["\n mutation {\n passwordChangeRequest(input: {}) {\n challenge\n }\n }\n"])));
|
|
4848
4874
|
var PasswordChangeMutation = gql__default['default'](templateObject_2$5 || (templateObject_2$5 = __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"])));
|
|
4849
|
-
var PasswordChangeConfigQuery = gql__default['default'](templateObject_3$
|
|
4850
|
-
var templateObject_1$9, templateObject_2$5, templateObject_3$
|
|
4875
|
+
var PasswordChangeConfigQuery = gql__default['default'](templateObject_3$3 || (templateObject_3$3 = __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"])));
|
|
4876
|
+
var templateObject_1$9, templateObject_2$5, templateObject_3$3;
|
|
4851
4877
|
|
|
4852
4878
|
// Ref: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
|
|
4853
4879
|
var moment$1 = moment___namespace;
|
|
@@ -6003,14 +6029,14 @@
|
|
|
6003
6029
|
|
|
6004
6030
|
var CancelTpPasswordResetRequestMutation = gqlTyped(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\nmutation CancelTpPasswordResetRequestMutation {\n cancelTpPasswordResetRequest(input: {}) {\n id\n }\n}"], ["\nmutation CancelTpPasswordResetRequestMutation {\n cancelTpPasswordResetRequest(input: {}) {\n id\n }\n}"])));
|
|
6005
6031
|
var CreateTpAssemblyKeyChallengeMutation = gqlTyped(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\nmutation CreateTpAssemblyKeyChallengeMutation(\n $input: CreateTpAssemblyKeyChallengeInput!\n) {\n createTpAssemblyKeyChallenge(input: $input) {\n challenge\n }\n}"], ["\nmutation CreateTpAssemblyKeyChallengeMutation(\n $input: CreateTpAssemblyKeyChallengeInput!\n) {\n createTpAssemblyKeyChallenge(input: $input) {\n challenge\n }\n}"])));
|
|
6006
|
-
var PreCompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_3$
|
|
6007
|
-
var CompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_4$
|
|
6008
|
-
var ApproveTpPasswordResetRequestMutation = gqlTyped(templateObject_5$
|
|
6009
|
-
var RejectTpPasswordResetRequestMutation = gqlTyped(templateObject_6$
|
|
6010
|
-
var CreateTpPasswordResetMutation = gqlTyped(templateObject_7$
|
|
6011
|
-
var DeleteTpPasswordResetMutation = gqlTyped(templateObject_8$
|
|
6032
|
+
var PreCompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\nmutation PreCompleteTpPasswordResetRequestMutation(\n $input: PreCompleteTpPasswordResetRequestInput!\n) {\n preCompleteTpPasswordResetRequest(input: $input) {\n idpPassword\n }\n}"], ["\nmutation PreCompleteTpPasswordResetRequestMutation(\n $input: PreCompleteTpPasswordResetRequestInput!\n) {\n preCompleteTpPasswordResetRequest(input: $input) {\n idpPassword\n }\n}"])));
|
|
6033
|
+
var CompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\nmutation CompleteTpPasswordResetRequestMutation(\n $input: CompleteTpPasswordResetRequestInput!\n) {\n completeTpPasswordResetRequest(input: $input) {\n id\n }\n}"], ["\nmutation CompleteTpPasswordResetRequestMutation(\n $input: CompleteTpPasswordResetRequestInput!\n) {\n completeTpPasswordResetRequest(input: $input) {\n id\n }\n}"])));
|
|
6034
|
+
var ApproveTpPasswordResetRequestMutation = gqlTyped(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\nmutation ApproveTpPasswordResetRequestMutation(\n $input: ApproveTpPasswordResetRequestInput!\n) {\n approveTpPasswordResetRequest(input: $input) {\n claimApprover {\n id\n }\n }\n}"], ["\nmutation ApproveTpPasswordResetRequestMutation(\n $input: ApproveTpPasswordResetRequestInput!\n) {\n approveTpPasswordResetRequest(input: $input) {\n claimApprover {\n id\n }\n }\n}"])));
|
|
6035
|
+
var RejectTpPasswordResetRequestMutation = gqlTyped(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\nmutation RejectTpPasswordResetRequestMutation(\n $input: RejectTpPasswordResetRequestInput!\n) {\n rejectTpPasswordResetRequest(input: $input) {\n claimApprover {\n id\n }\n }\n}"], ["\nmutation RejectTpPasswordResetRequestMutation(\n $input: RejectTpPasswordResetRequestInput!\n) {\n rejectTpPasswordResetRequest(input: $input) {\n claimApprover {\n id\n }\n }\n}"])));
|
|
6036
|
+
var CreateTpPasswordResetMutation = gqlTyped(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\nmutation CreateTpPasswordResetMutation($input: CreateTpPasswordResetInput!) {\n createTpPasswordReset(input: $input) {\n tpPasswordReset {\n id\n }\n }\n}"], ["\nmutation CreateTpPasswordResetMutation($input: CreateTpPasswordResetInput!) {\n createTpPasswordReset(input: $input) {\n tpPasswordReset {\n id\n }\n }\n}"])));
|
|
6037
|
+
var DeleteTpPasswordResetMutation = gqlTyped(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\nmutation DeleteTpPasswordResetMutation {\n deleteTpPasswordReset(input: {}) {\n id\n }\n}"], ["\nmutation DeleteTpPasswordResetMutation {\n deleteTpPasswordReset(input: {}) {\n id\n }\n}"])));
|
|
6012
6038
|
var UpdateTpPasswordResetMutation = gqlTyped(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\nmutation UpdateTpPasswordResetMutation($input: UpdateTpPasswordResetInput!) {\n updateTpPasswordReset(input: $input) {\n tpPasswordReset {\n id\n }\n }\n}"], ["\nmutation UpdateTpPasswordResetMutation($input: UpdateTpPasswordResetInput!) {\n updateTpPasswordReset(input: $input) {\n tpPasswordReset {\n id\n }\n }\n}"])));
|
|
6013
|
-
var templateObject_1$b, templateObject_2$6, templateObject_3$
|
|
6039
|
+
var templateObject_1$b, templateObject_2$6, templateObject_3$4, templateObject_4$3, templateObject_5$3, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9$1;
|
|
6014
6040
|
|
|
6015
6041
|
var KeyContainer = /** @class */ (function () {
|
|
6016
6042
|
function KeyContainer(_key, timeout) {
|
|
@@ -6048,8 +6074,8 @@
|
|
|
6048
6074
|
|
|
6049
6075
|
var CurrentUserQuery$1 = gqlTyped(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\nquery {\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 sessionEncryptionKey\n }\n keyGraph {\n ...KeyGraphFragment\n }\n}\n", "\n"], ["\nquery {\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 sessionEncryptionKey\n }\n keyGraph {\n ...KeyGraphFragment\n }\n}\n", "\n"])), KeyGraphFragment);
|
|
6050
6076
|
var ResetUserQuery = gqlTyped(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\nquery ResetUserQuery {\n tpPasswordResetUser {\n username\n sessionEncryptionKey\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n }\n}"], ["\nquery ResetUserQuery {\n tpPasswordResetUser {\n username\n sessionEncryptionKey\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n }\n}"])));
|
|
6051
|
-
var SetSessionEncryptionKeyMutation = gqlTyped(templateObject_3$
|
|
6052
|
-
var templateObject_1$c, templateObject_2$7, templateObject_3$
|
|
6077
|
+
var SetSessionEncryptionKeyMutation = gqlTyped(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\nmutation SetSessionEncryptionKeyMutation($input: SetSessionEncryptionKeyInput!) {\n setSessionEncryptionKey(input: $input) {\n sessionEncryptionKey\n }\n}\n"], ["\nmutation SetSessionEncryptionKeyMutation($input: SetSessionEncryptionKeyInput!) {\n setSessionEncryptionKey(input: $input) {\n sessionEncryptionKey\n }\n}\n"])));
|
|
6078
|
+
var templateObject_1$c, templateObject_2$7, templateObject_3$5;
|
|
6053
6079
|
|
|
6054
6080
|
(function (RecoveryStatus) {
|
|
6055
6081
|
RecoveryStatus["NONE"] = "NONE";
|
|
@@ -6569,7 +6595,7 @@
|
|
|
6569
6595
|
};
|
|
6570
6596
|
AuthService.prototype.loadRegularUser = function (cognitoUser, password) {
|
|
6571
6597
|
return __awaiter(this, void 0, void 0, function () {
|
|
6572
|
-
var currentUser, username, userAttributes;
|
|
6598
|
+
var currentUser, id, username, userAttributes;
|
|
6573
6599
|
return __generator(this, function (_b) {
|
|
6574
6600
|
switch (_b.label) {
|
|
6575
6601
|
case 0: return [4 /*yield*/, this.fetchCurrentUser()];
|
|
@@ -6587,11 +6613,12 @@
|
|
|
6587
6613
|
case 3:
|
|
6588
6614
|
// Regular user populates all keys
|
|
6589
6615
|
_b.sent();
|
|
6590
|
-
username = currentUser.username;
|
|
6616
|
+
id = currentUser.id, username = currentUser.username;
|
|
6591
6617
|
return [4 /*yield*/, this.cognito.userAttributes(cognitoUser)];
|
|
6592
6618
|
case 4:
|
|
6593
6619
|
userAttributes = _b.sent();
|
|
6594
6620
|
return [2 /*return*/, {
|
|
6621
|
+
id: id,
|
|
6595
6622
|
username: username,
|
|
6596
6623
|
sub: this.getCognitoUserAttribute('sub', userAttributes),
|
|
6597
6624
|
loginEmail: this.getCognitoUserAttribute('email', userAttributes),
|
|
@@ -6789,13 +6816,13 @@
|
|
|
6789
6816
|
};
|
|
6790
6817
|
AuthService.prototype.debugLoadUser = function (password) {
|
|
6791
6818
|
return __awaiter(this, void 0, void 0, function () {
|
|
6792
|
-
var currentUser, username, currentUserKey, passKey, masterKey;
|
|
6819
|
+
var currentUser, id, username, currentUserKey, passKey, masterKey;
|
|
6793
6820
|
return __generator(this, function (_b) {
|
|
6794
6821
|
switch (_b.label) {
|
|
6795
6822
|
case 0: return [4 /*yield*/, this.fetchCurrentUser()];
|
|
6796
6823
|
case 1:
|
|
6797
6824
|
currentUser = _b.sent();
|
|
6798
|
-
username = currentUser.username, currentUserKey = currentUser.currentUserKey;
|
|
6825
|
+
id = currentUser.id, username = currentUser.username, currentUserKey = currentUser.currentUserKey;
|
|
6799
6826
|
return [4 /*yield*/, this.keyFactoryService.derivePassKey(Object.assign({ password: password }, currentUserKey.passKey.passKeyParams))];
|
|
6800
6827
|
case 2:
|
|
6801
6828
|
passKey = (_b.sent()).jwk;
|
|
@@ -6809,6 +6836,7 @@
|
|
|
6809
6836
|
case 5:
|
|
6810
6837
|
_b.sent();
|
|
6811
6838
|
this.user = {
|
|
6839
|
+
id: id,
|
|
6812
6840
|
username: username,
|
|
6813
6841
|
resetUser: null,
|
|
6814
6842
|
sub: 'DEBUG_MODE',
|
|
@@ -6874,8 +6902,8 @@
|
|
|
6874
6902
|
|
|
6875
6903
|
var CreateContactCardMutation$2 = gqlTyped(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"], ["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"])));
|
|
6876
6904
|
var UpdateContactCardMutation$2 = gqlTyped(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\nmutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"], ["\nmutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"])));
|
|
6877
|
-
var DeleteContactCardMutation$1 = gqlTyped(templateObject_3$
|
|
6878
|
-
var templateObject_1$d, templateObject_2$8, templateObject_3$
|
|
6905
|
+
var DeleteContactCardMutation$1 = gqlTyped(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\nmutation DeleteContactCardMutation($input: DeleteContactCardInput!) {\n deleteContactCard(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteContactCardMutation($input: DeleteContactCardInput!) {\n deleteContactCard(input: $input) {\n id\n }\n}\n"])));
|
|
6906
|
+
var templateObject_1$d, templateObject_2$8, templateObject_3$6;
|
|
6879
6907
|
|
|
6880
6908
|
var OwnerPlainDataJson = /** @class */ (function () {
|
|
6881
6909
|
function OwnerPlainDataJson() {
|
|
@@ -7103,12 +7131,12 @@
|
|
|
7103
7131
|
|
|
7104
7132
|
var CreateDirectoryMutation = gqlTyped(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"])));
|
|
7105
7133
|
var UpdateDirectoryMutation = gqlTyped(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"], ["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"])));
|
|
7106
|
-
var DeleteDirectoryMutation = gqlTyped(templateObject_3$
|
|
7107
|
-
var CreateFileMutation = gqlTyped(templateObject_4$
|
|
7108
|
-
var UpdateFileMutation = gqlTyped(templateObject_5$
|
|
7109
|
-
var RevertFileMutation = gqlTyped(templateObject_6$
|
|
7110
|
-
var DeleteFileMutation = gqlTyped(templateObject_7$
|
|
7111
|
-
var ArchiveDirectoryMutation = gqlTyped(templateObject_8$
|
|
7134
|
+
var DeleteDirectoryMutation = gqlTyped(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"])));
|
|
7135
|
+
var CreateFileMutation = gqlTyped(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"])));
|
|
7136
|
+
var UpdateFileMutation = gqlTyped(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
7137
|
+
var RevertFileMutation = gqlTyped(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
7138
|
+
var DeleteFileMutation = gqlTyped(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"])));
|
|
7139
|
+
var ArchiveDirectoryMutation = gqlTyped(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\nmutation ArchiveDirectoryMutation($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ArchiveDirectoryMutation($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
|
|
7112
7140
|
var ArchiveFileMutation = gqlTyped(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\nmutation ArchiveFileMutation($input: ArchiveFileInput!) {\n archiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ArchiveFileMutation($input: ArchiveFileInput!) {\n archiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
7113
7141
|
var UnarchiveDirectoryMutation = gqlTyped(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
|
|
7114
7142
|
var UnarchiveFileMutation = gqlTyped(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\nmutation UnarchiveFileMutation($input: UnarchiveFileInput!) {\n unarchiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveFileMutation($input: UnarchiveFileInput!) {\n unarchiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
@@ -7118,13 +7146,13 @@
|
|
|
7118
7146
|
var TempDirectoryQuery = gqlTyped(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\nquery TempDirectoryQuery($plainMeta: LrJSONFilter!) {\n rootDirectories(plainMeta: $plainMeta, first: 2, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n }\n }\n }\n lock {\n version\n }\n}\n"], ["\nquery TempDirectoryQuery($plainMeta: LrJSONFilter!) {\n rootDirectories(plainMeta: $plainMeta, first: 2, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n }\n }\n }\n lock {\n version\n }\n}\n"])));
|
|
7119
7147
|
var SetFileConfidentialMutation = gqlTyped(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\nmutation SetFileConfidentialMutation($input: SetFileConfidentialInput!) {\n setFileConfidential(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation SetFileConfidentialMutation($input: SetFileConfidentialInput!) {\n setFileConfidential(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
7120
7148
|
var SetDirectoryConfidentialMutation = gqlTyped(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\nmutation SetDirectoryConfidentialMutation($input: SetDirectoryConfidentialInput!) {\n setDirectoryConfidential(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation SetDirectoryConfidentialMutation($input: SetDirectoryConfidentialInput!) {\n setDirectoryConfidential(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
|
|
7121
|
-
var templateObject_1$e, templateObject_2$9, templateObject_3$
|
|
7149
|
+
var templateObject_1$e, templateObject_2$9, templateObject_3$7, templateObject_4$4, templateObject_5$4, templateObject_6$3, templateObject_7$2, templateObject_8$2, templateObject_9$2, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
7122
7150
|
|
|
7123
7151
|
var LockFragment = gqlTyped(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"], ["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"])));
|
|
7124
7152
|
var UpdateLockMutation = gqlTyped(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
|
|
7125
|
-
var AcquireLockMutation = gqlTyped(templateObject_3$
|
|
7126
|
-
var ReleaseLockMutation = gqlTyped(templateObject_4$
|
|
7127
|
-
var templateObject_1$f, templateObject_2$a, templateObject_3$
|
|
7153
|
+
var AcquireLockMutation = gqlTyped(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
|
|
7154
|
+
var ReleaseLockMutation = gqlTyped(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
|
|
7155
|
+
var templateObject_1$f, templateObject_2$a, templateObject_3$8, templateObject_4$5;
|
|
7128
7156
|
|
|
7129
7157
|
exports.LockService = /** @class */ (function (_super) {
|
|
7130
7158
|
__extends(LockService, _super);
|
|
@@ -7188,10 +7216,10 @@
|
|
|
7188
7216
|
|
|
7189
7217
|
var DirectoryKeyQuery$1 = gqlTyped(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"], ["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"])));
|
|
7190
7218
|
var FileKeyQuery = gqlTyped(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\nquery FileKeyQuery($id: LrRelayIdInput!) {\n file(id: $id) {\n keyId\n }\n}\n"], ["\nquery FileKeyQuery($id: LrRelayIdInput!) {\n file(id: $id) {\n keyId\n }\n}\n"])));
|
|
7191
|
-
var
|
|
7192
|
-
var
|
|
7193
|
-
var FileStateKeyQuery = gqlTyped(templateObject_5$
|
|
7194
|
-
var templateObject_1$g, templateObject_2$b, templateObject_3$
|
|
7219
|
+
var DirectoryKeyFromDirectoryShareQuery = gqlTyped(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\nquery DirectoryKeyFromDirectoryShareQuery($id: LrRelayIdInput!) {\n directoryShare(id: $id) {\n item {\n keyId\n }\n }\n}\n"], ["\nquery DirectoryKeyFromDirectoryShareQuery($id: LrRelayIdInput!) {\n directoryShare(id: $id) {\n item {\n keyId\n }\n }\n}\n"])));
|
|
7220
|
+
var FileKeyFromFileShareQuery = gqlTyped(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\nquery FileKeyFromFileShareQuery($id: LrRelayIdInput!) {\n fileShare(id: $id) {\n item {\n keyId\n }\n }\n}\n"], ["\nquery FileKeyFromFileShareQuery($id: LrRelayIdInput!) {\n fileShare(id: $id) {\n item {\n keyId\n }\n }\n}\n"])));
|
|
7221
|
+
var FileStateKeyQuery = gqlTyped(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\nquery FileStateKeyQuery($id: LrRelayIdInput!) {\n fileState(id: $id) {\n keyId\n }\n}\n"], ["\nquery FileStateKeyQuery($id: LrRelayIdInput!) {\n fileState(id: $id) {\n keyId\n }\n}\n"])));
|
|
7222
|
+
var templateObject_1$g, templateObject_2$b, templateObject_3$9, templateObject_4$6, templateObject_5$5;
|
|
7195
7223
|
|
|
7196
7224
|
var ItemService_1;
|
|
7197
7225
|
exports.ItemService = ItemService_1 = /** @class */ (function (_super) {
|
|
@@ -7260,32 +7288,32 @@
|
|
|
7260
7288
|
});
|
|
7261
7289
|
});
|
|
7262
7290
|
};
|
|
7263
|
-
ItemService.prototype.
|
|
7291
|
+
ItemService.prototype.getDirectoryKeyIdFromDirectoryShare = function (directoryShareId) {
|
|
7264
7292
|
return __awaiter(this, void 0, void 0, function () {
|
|
7265
7293
|
return __generator(this, function (_d) {
|
|
7266
7294
|
switch (_d.label) {
|
|
7267
7295
|
case 0: return [4 /*yield*/, this.query({
|
|
7268
|
-
query:
|
|
7296
|
+
query: DirectoryKeyFromDirectoryShareQuery,
|
|
7269
7297
|
variables: {
|
|
7270
|
-
id:
|
|
7298
|
+
id: directoryShareId,
|
|
7271
7299
|
},
|
|
7272
7300
|
})];
|
|
7273
|
-
case 1: return [2 /*return*/, (_d.sent()).
|
|
7301
|
+
case 1: return [2 /*return*/, (_d.sent()).directoryShare.item.keyId];
|
|
7274
7302
|
}
|
|
7275
7303
|
});
|
|
7276
7304
|
});
|
|
7277
7305
|
};
|
|
7278
|
-
ItemService.prototype.
|
|
7306
|
+
ItemService.prototype.getFileKeyIdFromFileShare = function (fileShareId) {
|
|
7279
7307
|
return __awaiter(this, void 0, void 0, function () {
|
|
7280
7308
|
return __generator(this, function (_d) {
|
|
7281
7309
|
switch (_d.label) {
|
|
7282
7310
|
case 0: return [4 /*yield*/, this.query({
|
|
7283
|
-
query:
|
|
7311
|
+
query: FileKeyFromFileShareQuery,
|
|
7284
7312
|
variables: {
|
|
7285
|
-
id:
|
|
7313
|
+
id: fileShareId,
|
|
7286
7314
|
},
|
|
7287
7315
|
})];
|
|
7288
|
-
case 1: return [2 /*return*/, (_d.sent()).
|
|
7316
|
+
case 1: return [2 /*return*/, (_d.sent()).fileShare.item.keyId];
|
|
7289
7317
|
}
|
|
7290
7318
|
});
|
|
7291
7319
|
});
|
|
@@ -8725,9 +8753,9 @@
|
|
|
8725
8753
|
})(exports.KcLbopErrorCode || (exports.KcLbopErrorCode = {}));
|
|
8726
8754
|
var CreateLbopQuery = gql__default['default'](templateObject_1$h || (templateObject_1$h = __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"])));
|
|
8727
8755
|
var DeleteLbopQuery = gql__default['default'](templateObject_2$c || (templateObject_2$c = __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"])));
|
|
8728
|
-
var UpdateLbopQuery = gql__default['default'](templateObject_3$
|
|
8729
|
-
var LbopQuery = gql__default['default'](templateObject_4$
|
|
8730
|
-
var LbopsQuery = gql__default['default'](templateObject_5$
|
|
8756
|
+
var UpdateLbopQuery = gql__default['default'](templateObject_3$a || (templateObject_3$a = __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"])));
|
|
8757
|
+
var LbopQuery = gql__default['default'](templateObject_4$7 || (templateObject_4$7 = __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"])));
|
|
8758
|
+
var LbopsQuery = gql__default['default'](templateObject_5$6 || (templateObject_5$6 = __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"])));
|
|
8731
8759
|
var LbopService = /** @class */ (function () {
|
|
8732
8760
|
function LbopService(config, http, lrApollo, auth, keyFactory, keyService, encryptionService, passwordService) {
|
|
8733
8761
|
this.config = config;
|
|
@@ -9144,7 +9172,7 @@
|
|
|
9144
9172
|
{ type: EncryptionService },
|
|
9145
9173
|
{ type: PasswordService }
|
|
9146
9174
|
]; };
|
|
9147
|
-
var templateObject_1$h, templateObject_2$c, templateObject_3$
|
|
9175
|
+
var templateObject_1$h, templateObject_2$c, templateObject_3$a, templateObject_4$7, templateObject_5$6;
|
|
9148
9176
|
|
|
9149
9177
|
var LifeReadyModule = /** @class */ (function () {
|
|
9150
9178
|
function LifeReadyModule() {
|
|
@@ -9185,10 +9213,10 @@
|
|
|
9185
9213
|
|
|
9186
9214
|
var UpdateNotificationMutation = gqlTyped(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\nmutation UpdateNotificationMutation($input: UpdateNotificationInput!) {\n updateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"], ["\nmutation UpdateNotificationMutation($input: UpdateNotificationInput!) {\n updateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"])));
|
|
9187
9215
|
var UpdateAllNotificationsReadStateMutation = gqlTyped(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\nmutation UpdateAllNotificationsReadStateMutation($input: UpdateAllNotificationsReadStateInput!) {\n updateAllNotificationsReadState(input: $input) {\n count\n }\n}\n"], ["\nmutation UpdateAllNotificationsReadStateMutation($input: UpdateAllNotificationsReadStateInput!) {\n updateAllNotificationsReadState(input: $input) {\n count\n }\n}\n"])));
|
|
9188
|
-
var DebugCreateNotificationMutation = gqlTyped(templateObject_3$
|
|
9189
|
-
var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_4$
|
|
9190
|
-
var UpdateNotificationFeatureStateMutation = gqlTyped(templateObject_5$
|
|
9191
|
-
var templateObject_1$i, templateObject_2$d, templateObject_3$
|
|
9216
|
+
var DebugCreateNotificationMutation = gqlTyped(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\nmutation DebugCreateNotificationMutation($input: DebugCreateNotificationInput!) {\n debugCreateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"], ["\nmutation DebugCreateNotificationMutation($input: DebugCreateNotificationInput!) {\n debugCreateNotification(input: $input) {\n notification {\n id\n }\n }\n}\n"])));
|
|
9217
|
+
var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\nmutation DebugDeleteAllNotificationsMutation($input: DebugDeleteAllNotificationsInput!) {\n debugDeleteAllNotifications(input: $input) {\n count\n }\n}\n"], ["\nmutation DebugDeleteAllNotificationsMutation($input: DebugDeleteAllNotificationsInput!) {\n debugDeleteAllNotifications(input: $input) {\n count\n }\n}\n"])));
|
|
9218
|
+
var UpdateNotificationFeatureStateMutation = gqlTyped(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\nmutation UpdateNotificationFeatureStateMutation($input: UpdateNotificationFeatureStateInput!) {\n updateNotificationFeatureState(input: $input) {\n featureState {\n notificationsLastViewed\n\t\t}\n }\n}\n"], ["\nmutation UpdateNotificationFeatureStateMutation($input: UpdateNotificationFeatureStateInput!) {\n updateNotificationFeatureState(input: $input) {\n featureState {\n notificationsLastViewed\n\t\t}\n }\n}\n"])));
|
|
9219
|
+
var templateObject_1$i, templateObject_2$d, templateObject_3$b, templateObject_4$8, templateObject_5$7;
|
|
9192
9220
|
|
|
9193
9221
|
exports.NotificationService = /** @class */ (function (_super) {
|
|
9194
9222
|
__extends(NotificationService, _super);
|
|
@@ -9326,14 +9354,14 @@
|
|
|
9326
9354
|
|
|
9327
9355
|
var InitiateStripePaymentMethodCaptureMutation = gqlTyped(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\nmutation InitiateStripePaymentMethodCaptureMutation {\n initiateStripePaymentMethodCapture(input: {}) {\n paymentCapture {\n stripeIntentId\n stripeClientSecret\n }\n }\n}\n"], ["\nmutation InitiateStripePaymentMethodCaptureMutation {\n initiateStripePaymentMethodCapture(input: {}) {\n paymentCapture {\n stripeIntentId\n stripeClientSecret\n }\n }\n}\n"])));
|
|
9328
9356
|
var CompleteStripePaymentMethodCaptureMutation = gqlTyped(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\nmutation CompleteStripePaymentMethodCaptureMutation($input: CompleteStripePaymentMethodCaptureInput!) {\n completeStripePaymentMethodCapture(input: $input) {\n paymentMethod {\n id\n created\n modified\n card {\n brand\n lastFourDigits\n expiryYear\n expiryMonth\n }\n isDefault \n }\n }\n}\n"], ["\nmutation CompleteStripePaymentMethodCaptureMutation($input: CompleteStripePaymentMethodCaptureInput!) {\n completeStripePaymentMethodCapture(input: $input) {\n paymentMethod {\n id\n created\n modified\n card {\n brand\n lastFourDigits\n expiryYear\n expiryMonth\n }\n isDefault \n }\n }\n}\n"])));
|
|
9329
|
-
var RemovePaymentMethodMutation = gqlTyped(templateObject_3$
|
|
9330
|
-
var SetDefaultPaymentMethodMutation = gqlTyped(templateObject_4$
|
|
9331
|
-
var RemoveDefaultPaymentMethodMutation = gqlTyped(templateObject_5$
|
|
9332
|
-
var IssuePlanMutation = gqlTyped(templateObject_6$
|
|
9333
|
-
var CancelPlanMutation = gqlTyped(templateObject_7$
|
|
9334
|
-
var ChangePriceOptionMutation = gqlTyped(templateObject_8$
|
|
9357
|
+
var RemovePaymentMethodMutation = gqlTyped(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\nmutation RemovePaymentMethodMutation($input: RemovePaymentMethodInput!) {\n removePaymentMethod(input: $input) {\n id\n }\n}\n"], ["\nmutation RemovePaymentMethodMutation($input: RemovePaymentMethodInput!) {\n removePaymentMethod(input: $input) {\n id\n }\n}\n"])));
|
|
9358
|
+
var SetDefaultPaymentMethodMutation = gqlTyped(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\nmutation SetDefaultPaymentMethodMutation($input: SetDefaultPaymentMethodInput!) {\n setDefaultPaymentMethod(input: $input) {\n paymentMethod {\n id\n } \n }\n}\n"], ["\nmutation SetDefaultPaymentMethodMutation($input: SetDefaultPaymentMethodInput!) {\n setDefaultPaymentMethod(input: $input) {\n paymentMethod {\n id\n } \n }\n}\n"])));
|
|
9359
|
+
var RemoveDefaultPaymentMethodMutation = gqlTyped(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\nmutation RemoveDefaultPaymentMethodMutation {\n removeDefaultPaymentMethod(input: {}) {\n paymentMethod {\n id\n } \n }\n}\n"], ["\nmutation RemoveDefaultPaymentMethodMutation {\n removeDefaultPaymentMethod(input: {}) {\n paymentMethod {\n id\n } \n }\n}\n"])));
|
|
9360
|
+
var IssuePlanMutation = gqlTyped(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\nmutation IssuePlanMutation($input: IssuePlanInput!) {\n issuePlan(input: $input) {\n plan {\n id\n }\n }\n}\n"], ["\nmutation IssuePlanMutation($input: IssuePlanInput!) {\n issuePlan(input: $input) {\n plan {\n id\n }\n }\n}\n"])));
|
|
9361
|
+
var CancelPlanMutation = gqlTyped(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\nmutation CancelPlanMutation($input: CancelPlanInput!) {\n cancelPlan(input: $input) {\n plan {\n id\n } \n }\n}\n"], ["\nmutation CancelPlanMutation($input: CancelPlanInput!) {\n cancelPlan(input: $input) {\n plan {\n id\n } \n }\n}\n"])));
|
|
9362
|
+
var ChangePriceOptionMutation = gqlTyped(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\nmutation ChangePriceOptionMutation($input: ChangePriceOptionInput!) {\n changePriceOption(input: $input) {\n plan {\n id\n }\n }\n}\n"], ["\nmutation ChangePriceOptionMutation($input: ChangePriceOptionInput!) {\n changePriceOption(input: $input) {\n plan {\n id\n }\n }\n}\n"])));
|
|
9335
9363
|
var ReactivatePlanMutation = gqlTyped(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\nmutation ReactivatePlanMutation($input: ReactivatePlanInput!) {\n reactivatePlan(input: $input) {\n plan {\n id\n }\n }\n}\n"], ["\nmutation ReactivatePlanMutation($input: ReactivatePlanInput!) {\n reactivatePlan(input: $input) {\n plan {\n id\n }\n }\n}\n"])));
|
|
9336
|
-
var templateObject_1$j, templateObject_2$e, templateObject_3$
|
|
9364
|
+
var templateObject_1$j, templateObject_2$e, templateObject_3$c, templateObject_4$9, templateObject_5$8, templateObject_6$4, templateObject_7$3, templateObject_8$3, templateObject_9$3;
|
|
9337
9365
|
|
|
9338
9366
|
exports.PlanService = /** @class */ (function (_super) {
|
|
9339
9367
|
__extends(PlanService, _super);
|
|
@@ -10136,8 +10164,8 @@
|
|
|
10136
10164
|
|
|
10137
10165
|
var CreateReminderMutation = gqlTyped(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\nmutation CreateReminderMutation($input: CreateReminderInput!) {\n createReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"], ["\nmutation CreateReminderMutation($input: CreateReminderInput!) {\n createReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"])));
|
|
10138
10166
|
var UpdateReminderMutation = gqlTyped(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\nmutation UpdateReminderMutation($input: UpdateReminderInput!) {\n updateReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"], ["\nmutation UpdateReminderMutation($input: UpdateReminderInput!) {\n updateReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"])));
|
|
10139
|
-
var DeleteReminderMutation = gqlTyped(templateObject_3$
|
|
10140
|
-
var templateObject_1$k, templateObject_2$f, templateObject_3$
|
|
10167
|
+
var DeleteReminderMutation = gqlTyped(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\nmutation DeleteReminderMutation($input: DeleteReminderInput!) {\n deleteReminder(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteReminderMutation($input: DeleteReminderInput!) {\n deleteReminder(input: $input) {\n id\n }\n}\n"])));
|
|
10168
|
+
var templateObject_1$k, templateObject_2$f, templateObject_3$d;
|
|
10141
10169
|
|
|
10142
10170
|
exports.ReminderService = /** @class */ (function (_super) {
|
|
10143
10171
|
__extends(ReminderService, _super);
|
|
@@ -10228,15 +10256,15 @@
|
|
|
10228
10256
|
|
|
10229
10257
|
var CreateScenarioMutation = gqlTyped(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\nmutation CreateScenarioMutation($input: CreateScenarioInput!) {\n createScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"], ["\nmutation CreateScenarioMutation($input: CreateScenarioInput!) {\n createScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"])));
|
|
10230
10258
|
var UpdateScenarioMutation = gqlTyped(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\nmutation UpdateScenarioMutation($input: UpdateScenarioInput!) {\n updateScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"], ["\nmutation UpdateScenarioMutation($input: UpdateScenarioInput!) {\n updateScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"])));
|
|
10231
|
-
var DeleteScenarioMutation = gqlTyped(templateObject_3$
|
|
10232
|
-
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$
|
|
10233
|
-
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$
|
|
10234
|
-
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$
|
|
10235
|
-
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$
|
|
10236
|
-
var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$
|
|
10259
|
+
var DeleteScenarioMutation = gqlTyped(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\nmutation DeleteScenarioMutation($input: DeleteScenarioInput!) {\n deleteScenario(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteScenarioMutation($input: DeleteScenarioInput!) {\n deleteScenario(input: $input) {\n id\n }\n}\n"])));
|
|
10260
|
+
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\nmutation CreateScenarioClaimMutation($input: CreateScenarioClaimInput!) {\n createScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation CreateScenarioClaimMutation($input: CreateScenarioClaimInput!) {\n createScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
|
|
10261
|
+
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\nmutation CancelScenarioClaimMutation($input: CancelScenarioClaimInput!) {\n cancelScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation CancelScenarioClaimMutation($input: CancelScenarioClaimInput!) {\n cancelScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
|
|
10262
|
+
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\nmutation RejectScenarioClaimMutation($input: RejectScenarioClaimInput!) {\n rejectScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"], ["\nmutation RejectScenarioClaimMutation($input: RejectScenarioClaimInput!) {\n rejectScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"])));
|
|
10263
|
+
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\nmutation ApproveScenarioClaimMutation($input: ApproveScenarioClaimInput!) {\n approveScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"], ["\nmutation ApproveScenarioClaimMutation($input: ApproveScenarioClaimInput!) {\n approveScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"])));
|
|
10264
|
+
var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\nmutation ReceiveScenarioClaimMutation($input: ReceiveScenarioClaimInput!) {\n receiveScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation ReceiveScenarioClaimMutation($input: ReceiveScenarioClaimInput!) {\n receiveScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
|
|
10237
10265
|
var DebugExpireScenarioClaimMutation = gqlTyped(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\nmutation DebugExpireScenarioClaimMutation($input: DebugExpireScenarioClaimInput!) {\n debugExpireScenarioClaim(input: $input) {\n scenarioClaim {\n id\n }\n }\n}\n"], ["\nmutation DebugExpireScenarioClaimMutation($input: DebugExpireScenarioClaimInput!) {\n debugExpireScenarioClaim(input: $input) {\n scenarioClaim {\n id\n }\n }\n}\n"])));
|
|
10238
10266
|
var DebugExpireTpPasswordResetRequestMutation = gqlTyped(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\nmutation DebugExpireTpPasswordResetRequestMutation($input: DebugExpireTpPasswordResetRequestInput!) {\n debugExpireTpPasswordResetRequest(input: $input) {\n passwordResetRequest {\n id\n }\n }\n}\n"], ["\nmutation DebugExpireTpPasswordResetRequestMutation($input: DebugExpireTpPasswordResetRequestInput!) {\n debugExpireTpPasswordResetRequest(input: $input) {\n passwordResetRequest {\n id\n }\n }\n}\n"])));
|
|
10239
|
-
var templateObject_1$l, templateObject_2$g, templateObject_3$
|
|
10267
|
+
var templateObject_1$l, templateObject_2$g, templateObject_3$e, templateObject_4$a, templateObject_5$9, templateObject_6$5, templateObject_7$4, templateObject_8$4, templateObject_9$4, templateObject_10$1;
|
|
10240
10268
|
|
|
10241
10269
|
var SCENARIO_SLIP39_PASSPHRASE = 'lifeready';
|
|
10242
10270
|
|
|
@@ -10270,8 +10298,8 @@
|
|
|
10270
10298
|
})
|
|
10271
10299
|
], exports.ɵm);
|
|
10272
10300
|
|
|
10273
|
-
var ScenarioQuery = gqlTyped(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\nquery ScenarioQuery(\n $scenarioId: LrRelayIdInput!\n) {\n scenario(id: $scenarioId) {\n id\n state\n assembly {\n quorum\n singleReject\n assemblyKey {\n id\n }\n subjectKey {\n id\n }\n subjectCipherData\n subAssemblies {\n edges {\n node {\n id\n subjectKey {\n id\n }\n subjectCipherData\n quorum\n singleReject\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n claimants {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n receivers {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n receiverDirectories {\n
|
|
10274
|
-
var SharedScenarioQuery = gqlTyped(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\nquery SharedScenarioQuery($scenarioId: LrRelayIdInput!) {\n sharedScenario(id: $scenarioId) {\n id\n state\n tp {\n id\n }\n asClaimant {\n sharedKey {\n id\n }\n sharedCipherData\n }\n asReceiver {\n sharedKey {\n id\n }\n sharedCipherData\n pbk {\n id\n }\n receiverDirectories {\n
|
|
10301
|
+
var ScenarioQuery = gqlTyped(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\nquery ScenarioQuery(\n $scenarioId: LrRelayIdInput!\n) {\n scenario(id: $scenarioId) {\n id\n state\n assembly {\n quorum\n singleReject\n assemblyKey {\n id\n }\n subjectKey {\n id\n }\n subjectCipherData\n subAssemblies {\n edges {\n node {\n id\n subjectKey {\n id\n }\n subjectCipherData\n quorum\n singleReject\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n claimants {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n receivers {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n receiverItems {\n receiverDirectories {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n directory {\n id\n keyId\n }\n }\n }\n }\n receiverFiles {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}"], ["\nquery ScenarioQuery(\n $scenarioId: LrRelayIdInput!\n) {\n scenario(id: $scenarioId) {\n id\n state\n assembly {\n quorum\n singleReject\n assemblyKey {\n id\n }\n subjectKey {\n id\n }\n subjectCipherData\n subAssemblies {\n edges {\n node {\n id\n subjectKey {\n id\n }\n subjectCipherData\n quorum\n singleReject\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n claimants {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n receivers {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n receiverItems {\n receiverDirectories {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n directory {\n id\n keyId\n }\n }\n }\n }\n receiverFiles {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}"])));
|
|
10302
|
+
var SharedScenarioQuery = gqlTyped(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\nquery SharedScenarioQuery($scenarioId: LrRelayIdInput!) {\n sharedScenario(id: $scenarioId) {\n id\n state\n tp {\n id\n }\n asClaimant {\n sharedKey {\n id\n }\n sharedCipherData\n }\n asReceiver {\n sharedKey {\n id\n }\n sharedCipherData\n pbk {\n id\n }\n receiverItems {\n receiverDirectories {\n edges {\n node {\n id\n wrappedItemKey\n }\n }\n }\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedClaim {\n\t \t\tid\n isClaimant\n claim {\n state\n asClaimApprovers {\n edges {\n node {\n id\n state\n sharedKey {\n id\n }\n sharedCipherApprovalData\n sharedCipherPartialAssemblyKey\n receiverApprovals {\n edges {\n node {\n id\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n asClaimReceiver {\n received\n assemblyKeyId\n approvals {\n edges {\n node {\n receiverCipher\n receiverCipherPartialAssemblyKey\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n}\n"], ["\nquery SharedScenarioQuery($scenarioId: LrRelayIdInput!) {\n sharedScenario(id: $scenarioId) {\n id\n state\n tp {\n id\n }\n asClaimant {\n sharedKey {\n id\n }\n sharedCipherData\n }\n asReceiver {\n sharedKey {\n id\n }\n sharedCipherData\n pbk {\n id\n }\n receiverItems {\n receiverDirectories {\n edges {\n node {\n id\n wrappedItemKey\n }\n }\n }\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedClaim {\n\t \t\tid\n isClaimant\n claim {\n state\n asClaimApprovers {\n edges {\n node {\n id\n state\n sharedKey {\n id\n }\n sharedCipherApprovalData\n sharedCipherPartialAssemblyKey\n receiverApprovals {\n edges {\n node {\n id\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n asClaimReceiver {\n received\n assemblyKeyId\n approvals {\n edges {\n node {\n receiverCipher\n receiverCipherPartialAssemblyKey\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n}\n"])));
|
|
10275
10303
|
var templateObject_1$m, templateObject_2$h;
|
|
10276
10304
|
|
|
10277
10305
|
function throwClaimIdMismatch() {
|
|
@@ -10496,11 +10524,11 @@
|
|
|
10496
10524
|
ScenarioService.prototype.receiveClaim = function (scenarioId, sharedClaimId) {
|
|
10497
10525
|
return __awaiter(this, void 0, void 0, function () {
|
|
10498
10526
|
return __generator(this, function (_a) {
|
|
10499
|
-
return [2 /*return*/, this.mutate(this.
|
|
10527
|
+
return [2 /*return*/, this.mutate(this.receiveClaim2Mutation(scenarioId, sharedClaimId))];
|
|
10500
10528
|
});
|
|
10501
10529
|
});
|
|
10502
10530
|
};
|
|
10503
|
-
ScenarioService.prototype.
|
|
10531
|
+
ScenarioService.prototype.receiveClaim2Mutation = function (scenarioId, sharedClaimId) {
|
|
10504
10532
|
return __awaiter(this, void 0, void 0, function () {
|
|
10505
10533
|
var _a, _b, _c;
|
|
10506
10534
|
return __generator(this, function (_d) {
|
|
@@ -10511,7 +10539,7 @@
|
|
|
10511
10539
|
mutation: ReceiveScenarioClaimMutation
|
|
10512
10540
|
};
|
|
10513
10541
|
_c = {};
|
|
10514
|
-
return [4 /*yield*/, this.
|
|
10542
|
+
return [4 /*yield*/, this.prepareReceiveClaim2(scenarioId, sharedClaimId)];
|
|
10515
10543
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = (_c.input = _d.sent(),
|
|
10516
10544
|
_c),
|
|
10517
10545
|
_b)]))()];
|
|
@@ -10758,8 +10786,6 @@
|
|
|
10758
10786
|
wrappedItemKey = _a.sent();
|
|
10759
10787
|
return [4 /*yield*/, this.keyGraph.encryptToString(assemblyKey, wrappedItemKey)];
|
|
10760
10788
|
case 4:
|
|
10761
|
-
// TODO fetch assemblyKeyId. We are changing it such that there is always an assembly
|
|
10762
|
-
// before receivers can be added.
|
|
10763
10789
|
wrappedItemKey = _a.sent();
|
|
10764
10790
|
return [2 /*return*/, {
|
|
10765
10791
|
directoryId: options.directoryId,
|
|
@@ -10804,7 +10830,7 @@
|
|
|
10804
10830
|
deleteDirectoriesOptions = options.deleteDirectories || [];
|
|
10805
10831
|
updateDirectoriesOptions = options.updateDirectories || [];
|
|
10806
10832
|
// Fill in any missing update directories
|
|
10807
|
-
mapEdges(existingReceiver.receiverDirectories).forEach(function (existingDirectory) {
|
|
10833
|
+
mapEdges(existingReceiver.receiverItems.receiverDirectories).forEach(function (existingDirectory) {
|
|
10808
10834
|
if (deleteDirectoriesOptions.includes(existingDirectory.directory.id)) {
|
|
10809
10835
|
return;
|
|
10810
10836
|
}
|
|
@@ -10841,7 +10867,7 @@
|
|
|
10841
10867
|
return __awaiter(this, void 0, void 0, function () {
|
|
10842
10868
|
var updateDirectories;
|
|
10843
10869
|
return __generator(this, function (_a) {
|
|
10844
|
-
updateDirectories = mapEdges(existingReceiver.receiverDirectories).map(function (receiverDirectory) { return ({
|
|
10870
|
+
updateDirectories = mapEdges(existingReceiver.receiverItems.receiverDirectories).map(function (receiverDirectory) { return ({
|
|
10845
10871
|
directoryId: receiverDirectory.directory.id,
|
|
10846
10872
|
directoryKeyId: receiverDirectory.directory.keyId,
|
|
10847
10873
|
accessRole: receiverDirectory.accessRole,
|
|
@@ -10934,7 +10960,38 @@
|
|
|
10934
10960
|
});
|
|
10935
10961
|
});
|
|
10936
10962
|
};
|
|
10937
|
-
ScenarioService.prototype.
|
|
10963
|
+
ScenarioService.prototype.prepareReceiveClaim2 = function (scenarioId, sharedClaimId) {
|
|
10964
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10965
|
+
var sharedScenario, approvals, assemblyKey, sharedKey, sharedKeyWrappedAssemblyKey;
|
|
10966
|
+
return __generator(this, function (_a) {
|
|
10967
|
+
switch (_a.label) {
|
|
10968
|
+
case 0: return [4 /*yield*/, this.getSharedScenario(scenarioId, sharedClaimId)];
|
|
10969
|
+
case 1:
|
|
10970
|
+
sharedScenario = (_a.sent()).sharedScenario;
|
|
10971
|
+
if (sharedScenario.state !== exports.ScenarioState.APPROVED) {
|
|
10972
|
+
throwClaimNotApproved();
|
|
10973
|
+
}
|
|
10974
|
+
approvals = mapEdges(sharedScenario.sharedClaim.asClaimReceiver.approvals);
|
|
10975
|
+
return [4 /*yield*/, this.recoverAssemblyKey(approvals)];
|
|
10976
|
+
case 2:
|
|
10977
|
+
assemblyKey = _a.sent();
|
|
10978
|
+
return [4 /*yield*/, this.keyGraph.getKey(sharedScenario.asReceiver.sharedKey.id)];
|
|
10979
|
+
case 3:
|
|
10980
|
+
sharedKey = _a.sent();
|
|
10981
|
+
return [4 /*yield*/, this.keyGraph.encryptToString(sharedKey, assemblyKey.toJSON(true))];
|
|
10982
|
+
case 4:
|
|
10983
|
+
sharedKeyWrappedAssemblyKey = _a.sent();
|
|
10984
|
+
return [2 /*return*/, {
|
|
10985
|
+
scenarioClaimId: sharedClaimId,
|
|
10986
|
+
sharedKeyWrappedAssemblyKey: sharedKeyWrappedAssemblyKey,
|
|
10987
|
+
sharedKeyId: sharedKey.id,
|
|
10988
|
+
assemblyKeyId: sharedScenario.sharedClaim.asClaimReceiver.assemblyKeyId,
|
|
10989
|
+
}];
|
|
10990
|
+
}
|
|
10991
|
+
});
|
|
10992
|
+
});
|
|
10993
|
+
};
|
|
10994
|
+
ScenarioService.prototype.prepareReceiveClaim = function (scenarioId, sharedClaimId) {
|
|
10938
10995
|
return __awaiter(this, void 0, void 0, function () {
|
|
10939
10996
|
var sharedScenario, approvals, assemblyKey, receiverDirectories;
|
|
10940
10997
|
var _this = this;
|
|
@@ -10950,7 +11007,7 @@
|
|
|
10950
11007
|
return [4 /*yield*/, this.recoverAssemblyKey(approvals)];
|
|
10951
11008
|
case 2:
|
|
10952
11009
|
assemblyKey = _a.sent();
|
|
10953
|
-
return [4 /*yield*/, Promise.all(sharedScenario.asReceiver.receiverDirectories.edges
|
|
11010
|
+
return [4 /*yield*/, Promise.all(sharedScenario.asReceiver.receiverItems.receiverDirectories.edges
|
|
10954
11011
|
.map(function (edge) { return edge.node; })
|
|
10955
11012
|
.map(function (receiverDirectory) { return __awaiter(_this, void 0, void 0, function () {
|
|
10956
11013
|
var wrappedItemKey;
|
|
@@ -10961,6 +11018,8 @@
|
|
|
10961
11018
|
wrappedItemKey = _a.sent();
|
|
10962
11019
|
return [2 /*return*/, {
|
|
10963
11020
|
receiverDirectoryId: receiverDirectory.id,
|
|
11021
|
+
// Looks like receiverDirectory.wrappedItemKey has no other content in side it except a wrapped key.
|
|
11022
|
+
// So we can turn this in to a doubly wrapped key and just release the assembly key.
|
|
10964
11023
|
receiverSharedKeyWrappedItemKey: wrappedItemKey,
|
|
10965
11024
|
}];
|
|
10966
11025
|
}
|
|
@@ -11169,9 +11228,9 @@
|
|
|
11169
11228
|
|
|
11170
11229
|
var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\nmutation UpdateOwnedContactCardMutation(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(input: $input) {\n ownedContactCard {\n id\n }\n }\n}"], ["\nmutation UpdateOwnedContactCardMutation(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(input: $input) {\n ownedContactCard {\n id\n }\n }\n}"])));
|
|
11171
11230
|
var UpdateReceivedContactCardMutation = gqlTyped(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\nmutation UpdateReceivedContactCardMutation(\n $input: UpdateReceivedContactCardInput!\n) {\n updateReceivedContactCard(input: $input) {\n receivedContactCard {\n id\n }\n }\n}"], ["\nmutation UpdateReceivedContactCardMutation(\n $input: UpdateReceivedContactCardInput!\n) {\n updateReceivedContactCard(input: $input) {\n receivedContactCard {\n id\n }\n }\n}"])));
|
|
11172
|
-
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$
|
|
11173
|
-
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$
|
|
11174
|
-
var templateObject_1$o, templateObject_2$i, templateObject_3$
|
|
11231
|
+
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\nquery GetOwnedContactCardKeyIdsQuery($id: LrRelayIdInput!) {\n ownedContactCard(id: $id) {\n sharedKey {\n id\n }\n ownerKey {\n id\n }\n }\n}"], ["\nquery GetOwnedContactCardKeyIdsQuery($id: LrRelayIdInput!) {\n ownedContactCard(id: $id) {\n sharedKey {\n id\n }\n ownerKey {\n id\n }\n }\n}"])));
|
|
11232
|
+
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\nquery GetReceivedContactCardKeyIdQuery($id: LrRelayIdInput!) {\n receivedContactCard(id: $id) {\n receiverKey {\n id\n }\n }\n}"], ["\nquery GetReceivedContactCardKeyIdQuery($id: LrRelayIdInput!) {\n receivedContactCard(id: $id) {\n receiverKey {\n id\n }\n }\n}"])));
|
|
11233
|
+
var templateObject_1$o, templateObject_2$i, templateObject_3$f, templateObject_4$b;
|
|
11175
11234
|
|
|
11176
11235
|
exports.SharedContactCard2Service = /** @class */ (function () {
|
|
11177
11236
|
function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
|
|
@@ -11329,10 +11388,10 @@
|
|
|
11329
11388
|
|
|
11330
11389
|
var SharedTpPasswordResetFragment = gqlTyped(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\nfragment SharedTpPasswordResetFragment on SharedTpPasswordResetNode {\n id\n tp {\n id\n other {\n username\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedRequest {\n id\n pxk {\n id\n pbk\n }\n claim {\n id\n state\n asClaimApprovers {\n edges {\n node {\n id\n state\n sharedKey {\n id\n }\n sharedCipherApprovalData\n sharedCipherPartialAssemblyKey\n receiverApprovals {\n edges {\n node {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n}"], ["\nfragment SharedTpPasswordResetFragment on SharedTpPasswordResetNode {\n id\n tp {\n id\n other {\n username\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedRequest {\n id\n pxk {\n id\n pbk\n }\n claim {\n id\n state\n asClaimApprovers {\n edges {\n node {\n id\n state\n sharedKey {\n id\n }\n sharedCipherApprovalData\n sharedCipherPartialAssemblyKey\n receiverApprovals {\n edges {\n node {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n}"])));
|
|
11331
11390
|
var SharedTpPasswordResetsQuery = gqlTyped(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\nquery SharedTpPasswordResetsQuery {\n sharedTpPasswordResets {\n edges {\n node {\n ...SharedTpPasswordResetFragment\n }\n }\n }\n}\n", "\n"], ["\nquery SharedTpPasswordResetsQuery {\n sharedTpPasswordResets {\n edges {\n node {\n ...SharedTpPasswordResetFragment\n }\n }\n }\n}\n", "\n"])), SharedTpPasswordResetFragment);
|
|
11332
|
-
var SharedTpPasswordResetQuery = gqlTyped(templateObject_3$
|
|
11333
|
-
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$
|
|
11334
|
-
var TpPasswordResetQuery = gqlTyped(templateObject_5$
|
|
11335
|
-
var templateObject_1$p, templateObject_2$j, templateObject_3$
|
|
11391
|
+
var SharedTpPasswordResetQuery = gqlTyped(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\nquery SharedTpPasswordResetQuery($id: LrRelayIdInput!) {\n sharedTpPasswordReset(id: $id) {\n ...SharedTpPasswordResetFragment\n }\n}\n", "\n"], ["\nquery SharedTpPasswordResetQuery($id: LrRelayIdInput!) {\n sharedTpPasswordReset(id: $id) {\n ...SharedTpPasswordResetFragment\n }\n}\n", "\n"])), SharedTpPasswordResetFragment);
|
|
11392
|
+
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\nquery TpPasswordResetUserQuery {\n tpPasswordResetUser {\n username\n resetUsername\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n sessionEncryptionKey\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n requestAgainAfter\n }\n}"], ["\nquery TpPasswordResetUserQuery {\n tpPasswordResetUser {\n username\n resetUsername\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n sessionEncryptionKey\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n requestAgainAfter\n }\n}"])));
|
|
11393
|
+
var TpPasswordResetQuery = gqlTyped(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\nquery TpPasswordResetQuery {\n tpPasswordReset {\n id\n applied\n assembly {\n singleReject\n quorum\n canMeetQuorum\n subjectCipherData\n subjectKey {\n id\n }\n assemblyKey {\n id\n }\n assemblyCipherData\n subAssemblies {\n edges {\n node {\n id\n singleReject\n quorum\n subjectCipherData\n subjectKey {\n id\n }\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n }\n }\n }\n }\n}"], ["\nquery TpPasswordResetQuery {\n tpPasswordReset {\n id\n applied\n assembly {\n singleReject\n quorum\n canMeetQuorum\n subjectCipherData\n subjectKey {\n id\n }\n assemblyKey {\n id\n }\n assemblyCipherData\n subAssemblies {\n edges {\n node {\n id\n singleReject\n quorum\n subjectCipherData\n subjectKey {\n id\n }\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n }\n }\n }\n }\n}"])));
|
|
11394
|
+
var templateObject_1$p, templateObject_2$j, templateObject_3$g, templateObject_4$c, templateObject_5$a;
|
|
11336
11395
|
|
|
11337
11396
|
exports.ɵn = /** @class */ (function (_super) {
|
|
11338
11397
|
__extends(TpPasswordResetPrivateService, _super);
|
|
@@ -11808,22 +11867,22 @@
|
|
|
11808
11867
|
], exports.TpPasswordResetService);
|
|
11809
11868
|
|
|
11810
11869
|
var DeleteTpMutation = gqlTyped(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\nmutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n}\n"])));
|
|
11811
|
-
var ShareDirectoryMutation = gqlTyped(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n
|
|
11812
|
-
var UnshareDirectoryMutation = gqlTyped(templateObject_3$
|
|
11813
|
-
var ShareFileMutation = gqlTyped(templateObject_4$
|
|
11814
|
-
var UnshareFileMutation = gqlTyped(templateObject_5$
|
|
11815
|
-
var
|
|
11816
|
-
var
|
|
11817
|
-
var
|
|
11818
|
-
var
|
|
11819
|
-
var
|
|
11820
|
-
var
|
|
11821
|
-
var
|
|
11822
|
-
var
|
|
11870
|
+
var ShareDirectoryMutation = gqlTyped(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n directoryShare {\n id\n }\n }\n }\n"], ["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n directoryShare {\n id\n }\n }\n }\n"])));
|
|
11871
|
+
var UnshareDirectoryMutation = gqlTyped(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n directoryShare {\n id\n }\n }\n }\n"], ["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n directoryShare {\n id\n }\n }\n }\n"])));
|
|
11872
|
+
var ShareFileMutation = gqlTyped(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n fileShare {\n id\n }\n }\n }\n"], ["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n fileShare {\n id\n }\n }\n }\n"])));
|
|
11873
|
+
var UnshareFileMutation = gqlTyped(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n mutation UnshareFileMutation($input: UnshareFileInput!) {\n unshareFile(input: $input) {\n fileShare {\n id\n }\n }\n }\n"], ["\n mutation UnshareFileMutation($input: UnshareFileInput!) {\n unshareFile(input: $input) {\n fileShare {\n id\n }\n }\n }\n"])));
|
|
11874
|
+
var CreateDirectoryShareMutation = gqlTyped(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\nmutation CreateDirectoryShareMutation($input: CreateDirectoryShareInput!) {\n createDirectoryShare(input: $input) {\n directoryShare {\n id\n }\n }\n}\n"], ["\nmutation CreateDirectoryShareMutation($input: CreateDirectoryShareInput!) {\n createDirectoryShare(input: $input) {\n directoryShare {\n id\n }\n }\n}\n"])));
|
|
11875
|
+
var CreateFileShareMutation = gqlTyped(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\nmutation CreateFileShareMutation($input: CreateFileShareInput!) {\n createFileShare(input: $input) {\n fileShare {\n id\n }\n }\n}\n"], ["\nmutation CreateFileShareMutation($input: CreateFileShareInput!) {\n createFileShare(input: $input) {\n fileShare {\n id\n }\n }\n}\n"])));
|
|
11876
|
+
var UpdateDirectoryShareMutation = gqlTyped(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\nmutation UpdateDirectoryShareMutation($input: UpdateDirectoryShareInput!) {\n updateDirectoryShare(input: $input) {\n directoryShare {\n id\n }\n }\n}\n"], ["\nmutation UpdateDirectoryShareMutation($input: UpdateDirectoryShareInput!) {\n updateDirectoryShare(input: $input) {\n directoryShare {\n id\n }\n }\n}\n"])));
|
|
11877
|
+
var UpdateFileShareMutation = gqlTyped(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\nmutation UpdateFileShareMutation($input: UpdateFileShareInput!) {\n updateFileShare(input: $input) {\n fileShare {\n id\n }\n }\n}\n"], ["\nmutation UpdateFileShareMutation($input: UpdateFileShareInput!) {\n updateFileShare(input: $input) {\n fileShare {\n id\n }\n }\n}\n"])));
|
|
11878
|
+
var DeleteDirectoryShareMutation = gqlTyped(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\nmutation DeleteDirectoryShareMutation($input: DeleteDirectoryShareInput!) {\n deleteDirectoryShare(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteDirectoryShareMutation($input: DeleteDirectoryShareInput!) {\n deleteDirectoryShare(input: $input) {\n id\n }\n}\n"])));
|
|
11879
|
+
var DeleteFileShareMutation = gqlTyped(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\nmutation DeleteFileShareMutation($input: DeleteFileShareInput!) {\n deleteFileShare(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteFileShareMutation($input: DeleteFileShareInput!) {\n deleteFileShare(input: $input) {\n id\n }\n}\n"])));
|
|
11880
|
+
var CompleteDetachedDirectoryShareMutation = gqlTyped(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\nmutation CompleteDetachedDirectoryShareMutation($input: CompleteDetachedDirectoryShareInput!) {\n completeDetachedDirectoryShare(input: $input) {\n directoryShare {\n id\n }\n }\n}\n"], ["\nmutation CompleteDetachedDirectoryShareMutation($input: CompleteDetachedDirectoryShareInput!) {\n completeDetachedDirectoryShare(input: $input) {\n directoryShare {\n id\n }\n }\n}\n"])));
|
|
11881
|
+
var CompleteDetachedFileShareMutation = gqlTyped(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\nmutation CompleteDetachedFileShareMutation($input: CompleteDetachedFileShareInput!) {\n completeDetachedFileShare(input: $input) {\n fileShare {\n id\n }\n }\n}\n"], ["\nmutation CompleteDetachedFileShareMutation($input: CompleteDetachedFileShareInput!) {\n completeDetachedFileShare(input: $input) {\n fileShare {\n id\n }\n }\n}\n"])));
|
|
11823
11882
|
var RequestTpMkReshareMutation = gqlTyped(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\nmutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {\n requestTpMkReshare(input: $input) {\n id\n }\n}"], ["\nmutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {\n requestTpMkReshare(input: $input) {\n id\n }\n}"])));
|
|
11824
11883
|
var RespondTpMkReshareMutation = gqlTyped(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n mutation RespondTpMkReshareMutation($input: RespondTpMkReshareInput!) {\n respondTpMkReshare(input: $input) {\n id\n }\n }\n"], ["\n mutation RespondTpMkReshareMutation($input: RespondTpMkReshareInput!) {\n respondTpMkReshare(input: $input) {\n id\n }\n }\n"])));
|
|
11825
11884
|
var CompleteTpMkReshareMutation = gqlTyped(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\nmutation CompleteTpMkReshareMutation($input: CompleteTpMkReshareInput!) {\n completeTpMkReshare(input: $input) {\n id\n }\n}"], ["\nmutation CompleteTpMkReshareMutation($input: CompleteTpMkReshareInput!) {\n completeTpMkReshare(input: $input) {\n id\n }\n}"])));
|
|
11826
|
-
var templateObject_1$q, templateObject_2$k, templateObject_3$
|
|
11885
|
+
var templateObject_1$q, templateObject_2$k, templateObject_3$h, templateObject_4$d, templateObject_5$b, templateObject_6$6, templateObject_7$5, templateObject_8$5, templateObject_9$5, templateObject_10$2, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1;
|
|
11827
11886
|
|
|
11828
11887
|
var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\nquery TpCurrentUserSharedKeyQuery($id: LrRelayIdInput!) {\n tp(id: $id){\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n }\n mkReshareRequestCipher\n mkReshareRequestSent\n mkReshareResponseCipher\n mkReshareResponseSent\n }\n }\n }\n}\n"], ["\nquery TpCurrentUserSharedKeyQuery($id: LrRelayIdInput!) {\n tp(id: $id){\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n }\n mkReshareRequestCipher\n mkReshareRequestSent\n mkReshareResponseCipher\n mkReshareResponseSent\n }\n }\n }\n}\n"])));
|
|
11829
11888
|
var templateObject_1$r;
|
|
@@ -11979,14 +12038,14 @@
|
|
|
11979
12038
|
});
|
|
11980
12039
|
});
|
|
11981
12040
|
};
|
|
11982
|
-
TrustedPartyService.prototype.
|
|
12041
|
+
TrustedPartyService.prototype.createDirectoryShare = function (options) {
|
|
11983
12042
|
return __awaiter(this, void 0, void 0, function () {
|
|
11984
12043
|
return __generator(this, function (_a) {
|
|
11985
|
-
return [2 /*return*/, this.mutate(this.
|
|
12044
|
+
return [2 /*return*/, this.mutate(this.createDirectoryShareMutation(options))];
|
|
11986
12045
|
});
|
|
11987
12046
|
});
|
|
11988
12047
|
};
|
|
11989
|
-
TrustedPartyService.prototype.
|
|
12048
|
+
TrustedPartyService.prototype.createDirectoryShareMutation = function (options) {
|
|
11990
12049
|
return __awaiter(this, void 0, void 0, function () {
|
|
11991
12050
|
var _a, _b;
|
|
11992
12051
|
return __generator(this, function (_c) {
|
|
@@ -11994,7 +12053,7 @@
|
|
|
11994
12053
|
case 0:
|
|
11995
12054
|
_a = LrMutation.bind;
|
|
11996
12055
|
_b = {
|
|
11997
|
-
mutation:
|
|
12056
|
+
mutation: CreateDirectoryShareMutation
|
|
11998
12057
|
};
|
|
11999
12058
|
return [4 /*yield*/, this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
12000
12059
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12003,14 +12062,14 @@
|
|
|
12003
12062
|
});
|
|
12004
12063
|
});
|
|
12005
12064
|
};
|
|
12006
|
-
TrustedPartyService.prototype.
|
|
12065
|
+
TrustedPartyService.prototype.createFileShare = function (options) {
|
|
12007
12066
|
return __awaiter(this, void 0, void 0, function () {
|
|
12008
12067
|
return __generator(this, function (_a) {
|
|
12009
|
-
return [2 /*return*/, this.mutate(this.
|
|
12068
|
+
return [2 /*return*/, this.mutate(this.createFileShareMutation(options))];
|
|
12010
12069
|
});
|
|
12011
12070
|
});
|
|
12012
12071
|
};
|
|
12013
|
-
TrustedPartyService.prototype.
|
|
12072
|
+
TrustedPartyService.prototype.createFileShareMutation = function (options) {
|
|
12014
12073
|
return __awaiter(this, void 0, void 0, function () {
|
|
12015
12074
|
var _a, _b;
|
|
12016
12075
|
return __generator(this, function (_c) {
|
|
@@ -12018,7 +12077,7 @@
|
|
|
12018
12077
|
case 0:
|
|
12019
12078
|
_a = LrMutation.bind;
|
|
12020
12079
|
_b = {
|
|
12021
|
-
mutation:
|
|
12080
|
+
mutation: CreateFileShareMutation
|
|
12022
12081
|
};
|
|
12023
12082
|
return [4 /*yield*/, this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12024
12083
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12063,35 +12122,35 @@
|
|
|
12063
12122
|
});
|
|
12064
12123
|
});
|
|
12065
12124
|
};
|
|
12066
|
-
TrustedPartyService.prototype.
|
|
12125
|
+
TrustedPartyService.prototype.updateDirectoryShare = function (options) {
|
|
12067
12126
|
return __awaiter(this, void 0, void 0, function () {
|
|
12068
12127
|
return __generator(this, function (_a) {
|
|
12069
|
-
return [2 /*return*/, this.mutate(this.
|
|
12128
|
+
return [2 /*return*/, this.mutate(this.updateDirectoryShareMutation(options))];
|
|
12070
12129
|
});
|
|
12071
12130
|
});
|
|
12072
12131
|
};
|
|
12073
|
-
TrustedPartyService.prototype.
|
|
12132
|
+
TrustedPartyService.prototype.updateDirectoryShareMutation = function (options) {
|
|
12074
12133
|
return __awaiter(this, void 0, void 0, function () {
|
|
12075
12134
|
return __generator(this, function (_a) {
|
|
12076
12135
|
return [2 /*return*/, new LrMutation({
|
|
12077
|
-
mutation:
|
|
12136
|
+
mutation: UpdateDirectoryShareMutation,
|
|
12078
12137
|
variables: this.prepareUpdateSharedItemMutation(options),
|
|
12079
12138
|
})];
|
|
12080
12139
|
});
|
|
12081
12140
|
});
|
|
12082
12141
|
};
|
|
12083
|
-
TrustedPartyService.prototype.
|
|
12142
|
+
TrustedPartyService.prototype.updateFileShare = function (options) {
|
|
12084
12143
|
return __awaiter(this, void 0, void 0, function () {
|
|
12085
12144
|
return __generator(this, function (_a) {
|
|
12086
|
-
return [2 /*return*/, this.mutate(this.
|
|
12145
|
+
return [2 /*return*/, this.mutate(this.updateFileShareMutation(options))];
|
|
12087
12146
|
});
|
|
12088
12147
|
});
|
|
12089
12148
|
};
|
|
12090
|
-
TrustedPartyService.prototype.
|
|
12149
|
+
TrustedPartyService.prototype.updateFileShareMutation = function (options) {
|
|
12091
12150
|
return __awaiter(this, void 0, void 0, function () {
|
|
12092
12151
|
return __generator(this, function (_a) {
|
|
12093
12152
|
return [2 /*return*/, new LrMutation({
|
|
12094
|
-
mutation:
|
|
12153
|
+
mutation: UpdateFileShareMutation,
|
|
12095
12154
|
variables: this.prepareUpdateSharedItemMutation(options),
|
|
12096
12155
|
})];
|
|
12097
12156
|
});
|
|
@@ -12106,18 +12165,18 @@
|
|
|
12106
12165
|
},
|
|
12107
12166
|
};
|
|
12108
12167
|
};
|
|
12109
|
-
TrustedPartyService.prototype.
|
|
12168
|
+
TrustedPartyService.prototype.deleteDirectoryShare = function (id) {
|
|
12110
12169
|
return __awaiter(this, void 0, void 0, function () {
|
|
12111
12170
|
return __generator(this, function (_a) {
|
|
12112
|
-
return [2 /*return*/, this.mutate(this.
|
|
12171
|
+
return [2 /*return*/, this.mutate(this.deleteDirectoryShareMutation(id))];
|
|
12113
12172
|
});
|
|
12114
12173
|
});
|
|
12115
12174
|
};
|
|
12116
|
-
TrustedPartyService.prototype.
|
|
12175
|
+
TrustedPartyService.prototype.deleteDirectoryShareMutation = function (id) {
|
|
12117
12176
|
return __awaiter(this, void 0, void 0, function () {
|
|
12118
12177
|
return __generator(this, function (_a) {
|
|
12119
12178
|
return [2 /*return*/, new LrMutation({
|
|
12120
|
-
mutation:
|
|
12179
|
+
mutation: DeleteDirectoryShareMutation,
|
|
12121
12180
|
variables: {
|
|
12122
12181
|
input: {
|
|
12123
12182
|
id: id,
|
|
@@ -12127,14 +12186,14 @@
|
|
|
12127
12186
|
});
|
|
12128
12187
|
});
|
|
12129
12188
|
};
|
|
12130
|
-
TrustedPartyService.prototype.
|
|
12189
|
+
TrustedPartyService.prototype.completeDetachedDirectoryShare = function (options) {
|
|
12131
12190
|
return __awaiter(this, void 0, void 0, function () {
|
|
12132
12191
|
return __generator(this, function (_a) {
|
|
12133
|
-
return [2 /*return*/, this.mutate(this.
|
|
12192
|
+
return [2 /*return*/, this.mutate(this.completeDetachedDirectoryShareMutation(options))];
|
|
12134
12193
|
});
|
|
12135
12194
|
});
|
|
12136
12195
|
};
|
|
12137
|
-
TrustedPartyService.prototype.
|
|
12196
|
+
TrustedPartyService.prototype.completeDetachedDirectoryShareMutation = function (options) {
|
|
12138
12197
|
return __awaiter(this, void 0, void 0, function () {
|
|
12139
12198
|
var _a, _b;
|
|
12140
12199
|
return __generator(this, function (_c) {
|
|
@@ -12142,7 +12201,7 @@
|
|
|
12142
12201
|
case 0:
|
|
12143
12202
|
_a = LrMutation.bind;
|
|
12144
12203
|
_b = {
|
|
12145
|
-
mutation:
|
|
12204
|
+
mutation: CompleteDetachedDirectoryShareMutation
|
|
12146
12205
|
};
|
|
12147
12206
|
return [4 /*yield*/, this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
12148
12207
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12151,14 +12210,14 @@
|
|
|
12151
12210
|
});
|
|
12152
12211
|
});
|
|
12153
12212
|
};
|
|
12154
|
-
TrustedPartyService.prototype.
|
|
12213
|
+
TrustedPartyService.prototype.completeDetachedFileShare = function (options) {
|
|
12155
12214
|
return __awaiter(this, void 0, void 0, function () {
|
|
12156
12215
|
return __generator(this, function (_a) {
|
|
12157
|
-
return [2 /*return*/, this.mutate(this.
|
|
12216
|
+
return [2 /*return*/, this.mutate(this.completeDetachedFileShareMutation(options))];
|
|
12158
12217
|
});
|
|
12159
12218
|
});
|
|
12160
12219
|
};
|
|
12161
|
-
TrustedPartyService.prototype.
|
|
12220
|
+
TrustedPartyService.prototype.completeDetachedFileShareMutation = function (options) {
|
|
12162
12221
|
return __awaiter(this, void 0, void 0, function () {
|
|
12163
12222
|
var _a, _b;
|
|
12164
12223
|
return __generator(this, function (_c) {
|
|
@@ -12166,7 +12225,7 @@
|
|
|
12166
12225
|
case 0:
|
|
12167
12226
|
_a = LrMutation.bind;
|
|
12168
12227
|
_b = {
|
|
12169
|
-
mutation:
|
|
12228
|
+
mutation: CompleteDetachedFileShareMutation
|
|
12170
12229
|
};
|
|
12171
12230
|
return [4 /*yield*/, this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12172
12231
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12184,8 +12243,8 @@
|
|
|
12184
12243
|
case 0:
|
|
12185
12244
|
sharedItemId = options.sharedItemId, itemKeyId = options.itemKeyId, isDirectory = options.isDirectory;
|
|
12186
12245
|
return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
12187
|
-
? _this.itemService.
|
|
12188
|
-
: _this.itemService.
|
|
12246
|
+
? _this.itemService.getDirectoryKeyIdFromDirectoryShare(sharedItemId)
|
|
12247
|
+
: _this.itemService.getFileKeyIdFromFileShare(sharedItemId); })];
|
|
12189
12248
|
case 1:
|
|
12190
12249
|
itemKey = _a.sent();
|
|
12191
12250
|
rootKey = this.keyService.currentRootKey;
|
|
@@ -12518,8 +12577,8 @@
|
|
|
12518
12577
|
|
|
12519
12578
|
var RequestUserDeleteMutation = gql__default['default'](templateObject_1$s || (templateObject_1$s = __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"])));
|
|
12520
12579
|
var CancelUserDeleteMutation = gql__default['default'](templateObject_2$l || (templateObject_2$l = __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"])));
|
|
12521
|
-
var LoginHistoryQuery = gql__default['default'](templateObject_3$
|
|
12522
|
-
var templateObject_1$s, templateObject_2$l, templateObject_3$
|
|
12580
|
+
var LoginHistoryQuery = gql__default['default'](templateObject_3$i || (templateObject_3$i = __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"])));
|
|
12581
|
+
var templateObject_1$s, templateObject_2$l, templateObject_3$i;
|
|
12523
12582
|
|
|
12524
12583
|
var UserService = /** @class */ (function () {
|
|
12525
12584
|
function UserService(lrApollo) {
|
|
@@ -12623,7 +12682,6 @@
|
|
|
12623
12682
|
exports.CreateContactCardMutation = CreateContactCardMutation$1;
|
|
12624
12683
|
exports.CreateDirectoryMutation = CreateDirectoryMutation;
|
|
12625
12684
|
exports.CreateFileMutation = CreateFileMutation;
|
|
12626
|
-
exports.CreateFileQuery = CreateFileQuery;
|
|
12627
12685
|
exports.CreateLbopQuery = CreateLbopQuery;
|
|
12628
12686
|
exports.CreateScenarioClaimMutation = CreateScenarioClaimMutation;
|
|
12629
12687
|
exports.CreateScenarioMutation = CreateScenarioMutation;
|
|
@@ -12645,7 +12703,6 @@
|
|
|
12645
12703
|
exports.ERROR_SOURCE = ERROR_SOURCE;
|
|
12646
12704
|
exports.Features = Features;
|
|
12647
12705
|
exports.FetchKeyGraphField = FetchKeyGraphField;
|
|
12648
|
-
exports.FileQuery = FileQuery;
|
|
12649
12706
|
exports.FileUploadService = FileUploadService;
|
|
12650
12707
|
exports.GetOwnedContactCardKeyIdsQuery = GetOwnedContactCardKeyIdsQuery;
|
|
12651
12708
|
exports.GetReceivedContactCardKeyIdQuery = GetReceivedContactCardKeyIdQuery;
|
|
@@ -12689,8 +12746,6 @@
|
|
|
12689
12746
|
exports.MainContactCardFields = MainContactCardFields;
|
|
12690
12747
|
exports.MainContactCardPlainFields = MainContactCardPlainFields;
|
|
12691
12748
|
exports.MainContactCardProperty = MainContactCardProperty;
|
|
12692
|
-
exports.MoveDirectoryQuery = MoveDirectoryQuery;
|
|
12693
|
-
exports.MoveFileQuery = MoveFileQuery;
|
|
12694
12749
|
exports.OwnerPlainDataJson = OwnerPlainDataJson;
|
|
12695
12750
|
exports.PasswordCheck = PasswordCheck;
|
|
12696
12751
|
exports.PasswordService = PasswordService;
|
|
@@ -12706,7 +12761,6 @@
|
|
|
12706
12761
|
exports.RequestUserDeleteMutation = RequestUserDeleteMutation;
|
|
12707
12762
|
exports.RespondKeyExchangeOtkMutation = RespondKeyExchangeOtkMutation;
|
|
12708
12763
|
exports.RevertFileMutation = RevertFileMutation;
|
|
12709
|
-
exports.RevertFileQuery = RevertFileQuery;
|
|
12710
12764
|
exports.ServerTimeQuery = ServerTimeQuery;
|
|
12711
12765
|
exports.SetDirectoryConfidentialMutation = SetDirectoryConfidentialMutation;
|
|
12712
12766
|
exports.SetFileConfidentialMutation = SetFileConfidentialMutation;
|
|
@@ -12725,7 +12779,6 @@
|
|
|
12725
12779
|
exports.UpdateContactCardMutation = UpdateContactCardMutation$1;
|
|
12726
12780
|
exports.UpdateDirectoryMutation = UpdateDirectoryMutation;
|
|
12727
12781
|
exports.UpdateFileMutation = UpdateFileMutation;
|
|
12728
|
-
exports.UpdateFileQuery = UpdateFileQuery;
|
|
12729
12782
|
exports.UpdateLbopQuery = UpdateLbopQuery;
|
|
12730
12783
|
exports.UpdateOwnedContactCardMutation = UpdateOwnedContactCardMutation;
|
|
12731
12784
|
exports.UpdateReceivedContactCardMutation = UpdateReceivedContactCardMutation;
|