@lifeready/core 8.0.1 → 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 +232 -177
- 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/types/lr-graphql.types.js +11 -11
- 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/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 +173 -278
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/queries.gql.d.ts +0 -6
- package/lib/api/types/lr-graphql.types.d.ts +24 -20
- 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/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
|
|
@@ -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";
|
|
@@ -4137,11 +4167,11 @@
|
|
|
4137
4167
|
var ContactCardFields = "\nid\npublicData\npublicSearchable\ncipherData\nkey {\n id\n}\n";
|
|
4138
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);
|
|
4139
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);
|
|
4140
|
-
var ContactCardListQuery = gql__default['default'](templateObject_3
|
|
4141
|
-
var CreateContactCardMutation = gql__default['default'](templateObject_4
|
|
4142
|
-
var UpdateContactCardMutation = gql__default['default'](templateObject_5
|
|
4143
|
-
var DeleteContactCardMutation = gql__default['default'](templateObject_6
|
|
4144
|
-
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;
|
|
4145
4175
|
|
|
4146
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"])));
|
|
4147
4177
|
var WrappedContent = /** @class */ (function () {
|
|
@@ -4393,14 +4423,14 @@
|
|
|
4393
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";
|
|
4394
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);
|
|
4395
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);
|
|
4396
|
-
var KeyExchangeTokenQuery2 = gqlTyped(templateObject_3$
|
|
4397
|
-
var CancelKeyExchangeMutation = gqlTyped(templateObject_4$
|
|
4398
|
-
var DeclineKeyExchangeMutation = gqlTyped(templateObject_5$
|
|
4399
|
-
var InitiateKeyExchangeOtkMutation = gqlTyped(templateObject_6$
|
|
4400
|
-
var RespondKeyExchangeOtkMutation = gqlTyped(templateObject_7
|
|
4401
|
-
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);
|
|
4402
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);
|
|
4403
|
-
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;
|
|
4404
4434
|
|
|
4405
4435
|
(function (FeatureAction) {
|
|
4406
4436
|
// Just the one for now
|
|
@@ -4598,10 +4628,10 @@
|
|
|
4598
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 }";
|
|
4599
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);
|
|
4600
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"])));
|
|
4601
|
-
var UpdateContactCardMutation$1 = gql__default['default'](templateObject_3$
|
|
4602
|
-
var TrustedPartiesQuery = gqlTyped(templateObject_4$
|
|
4603
|
-
var ContactCardsQuery = gqlTyped(templateObject_5$
|
|
4604
|
-
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;
|
|
4605
4635
|
|
|
4606
4636
|
var ProfileService = /** @class */ (function () {
|
|
4607
4637
|
function ProfileService(config, http, lrApollo, keyService, keyMetaService, keyGraph, encryptionService) {
|
|
@@ -4842,8 +4872,8 @@
|
|
|
4842
4872
|
|
|
4843
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"])));
|
|
4844
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"])));
|
|
4845
|
-
var PasswordChangeConfigQuery = gql__default['default'](templateObject_3$
|
|
4846
|
-
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;
|
|
4847
4877
|
|
|
4848
4878
|
// Ref: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
|
|
4849
4879
|
var moment$1 = moment___namespace;
|
|
@@ -5999,14 +6029,14 @@
|
|
|
5999
6029
|
|
|
6000
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}"])));
|
|
6001
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}"])));
|
|
6002
|
-
var PreCompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_3$
|
|
6003
|
-
var CompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_4$
|
|
6004
|
-
var ApproveTpPasswordResetRequestMutation = gqlTyped(templateObject_5$
|
|
6005
|
-
var RejectTpPasswordResetRequestMutation = gqlTyped(templateObject_6$
|
|
6006
|
-
var CreateTpPasswordResetMutation = gqlTyped(templateObject_7$
|
|
6007
|
-
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}"])));
|
|
6008
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}"])));
|
|
6009
|
-
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;
|
|
6010
6040
|
|
|
6011
6041
|
var KeyContainer = /** @class */ (function () {
|
|
6012
6042
|
function KeyContainer(_key, timeout) {
|
|
@@ -6044,8 +6074,8 @@
|
|
|
6044
6074
|
|
|
6045
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);
|
|
6046
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}"])));
|
|
6047
|
-
var SetSessionEncryptionKeyMutation = gqlTyped(templateObject_3$
|
|
6048
|
-
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;
|
|
6049
6079
|
|
|
6050
6080
|
(function (RecoveryStatus) {
|
|
6051
6081
|
RecoveryStatus["NONE"] = "NONE";
|
|
@@ -6872,8 +6902,8 @@
|
|
|
6872
6902
|
|
|
6873
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"])));
|
|
6874
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"])));
|
|
6875
|
-
var DeleteContactCardMutation$1 = gqlTyped(templateObject_3$
|
|
6876
|
-
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;
|
|
6877
6907
|
|
|
6878
6908
|
var OwnerPlainDataJson = /** @class */ (function () {
|
|
6879
6909
|
function OwnerPlainDataJson() {
|
|
@@ -7101,12 +7131,12 @@
|
|
|
7101
7131
|
|
|
7102
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"])));
|
|
7103
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"])));
|
|
7104
|
-
var DeleteDirectoryMutation = gqlTyped(templateObject_3$
|
|
7105
|
-
var CreateFileMutation = gqlTyped(templateObject_4$
|
|
7106
|
-
var UpdateFileMutation = gqlTyped(templateObject_5$
|
|
7107
|
-
var RevertFileMutation = gqlTyped(templateObject_6$
|
|
7108
|
-
var DeleteFileMutation = gqlTyped(templateObject_7$
|
|
7109
|
-
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"])));
|
|
7110
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"])));
|
|
7111
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"])));
|
|
7112
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"])));
|
|
@@ -7116,13 +7146,13 @@
|
|
|
7116
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"])));
|
|
7117
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"])));
|
|
7118
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"])));
|
|
7119
|
-
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;
|
|
7120
7150
|
|
|
7121
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}"])));
|
|
7122
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);
|
|
7123
|
-
var AcquireLockMutation = gqlTyped(templateObject_3$
|
|
7124
|
-
var ReleaseLockMutation = gqlTyped(templateObject_4$
|
|
7125
|
-
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;
|
|
7126
7156
|
|
|
7127
7157
|
exports.LockService = /** @class */ (function (_super) {
|
|
7128
7158
|
__extends(LockService, _super);
|
|
@@ -7186,10 +7216,10 @@
|
|
|
7186
7216
|
|
|
7187
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"])));
|
|
7188
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"])));
|
|
7189
|
-
var
|
|
7190
|
-
var
|
|
7191
|
-
var FileStateKeyQuery = gqlTyped(templateObject_5$
|
|
7192
|
-
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;
|
|
7193
7223
|
|
|
7194
7224
|
var ItemService_1;
|
|
7195
7225
|
exports.ItemService = ItemService_1 = /** @class */ (function (_super) {
|
|
@@ -7258,32 +7288,32 @@
|
|
|
7258
7288
|
});
|
|
7259
7289
|
});
|
|
7260
7290
|
};
|
|
7261
|
-
ItemService.prototype.
|
|
7291
|
+
ItemService.prototype.getDirectoryKeyIdFromDirectoryShare = function (directoryShareId) {
|
|
7262
7292
|
return __awaiter(this, void 0, void 0, function () {
|
|
7263
7293
|
return __generator(this, function (_d) {
|
|
7264
7294
|
switch (_d.label) {
|
|
7265
7295
|
case 0: return [4 /*yield*/, this.query({
|
|
7266
|
-
query:
|
|
7296
|
+
query: DirectoryKeyFromDirectoryShareQuery,
|
|
7267
7297
|
variables: {
|
|
7268
|
-
id:
|
|
7298
|
+
id: directoryShareId,
|
|
7269
7299
|
},
|
|
7270
7300
|
})];
|
|
7271
|
-
case 1: return [2 /*return*/, (_d.sent()).
|
|
7301
|
+
case 1: return [2 /*return*/, (_d.sent()).directoryShare.item.keyId];
|
|
7272
7302
|
}
|
|
7273
7303
|
});
|
|
7274
7304
|
});
|
|
7275
7305
|
};
|
|
7276
|
-
ItemService.prototype.
|
|
7306
|
+
ItemService.prototype.getFileKeyIdFromFileShare = function (fileShareId) {
|
|
7277
7307
|
return __awaiter(this, void 0, void 0, function () {
|
|
7278
7308
|
return __generator(this, function (_d) {
|
|
7279
7309
|
switch (_d.label) {
|
|
7280
7310
|
case 0: return [4 /*yield*/, this.query({
|
|
7281
|
-
query:
|
|
7311
|
+
query: FileKeyFromFileShareQuery,
|
|
7282
7312
|
variables: {
|
|
7283
|
-
id:
|
|
7313
|
+
id: fileShareId,
|
|
7284
7314
|
},
|
|
7285
7315
|
})];
|
|
7286
|
-
case 1: return [2 /*return*/, (_d.sent()).
|
|
7316
|
+
case 1: return [2 /*return*/, (_d.sent()).fileShare.item.keyId];
|
|
7287
7317
|
}
|
|
7288
7318
|
});
|
|
7289
7319
|
});
|
|
@@ -8723,9 +8753,9 @@
|
|
|
8723
8753
|
})(exports.KcLbopErrorCode || (exports.KcLbopErrorCode = {}));
|
|
8724
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"])));
|
|
8725
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"])));
|
|
8726
|
-
var UpdateLbopQuery = gql__default['default'](templateObject_3$
|
|
8727
|
-
var LbopQuery = gql__default['default'](templateObject_4$
|
|
8728
|
-
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"])));
|
|
8729
8759
|
var LbopService = /** @class */ (function () {
|
|
8730
8760
|
function LbopService(config, http, lrApollo, auth, keyFactory, keyService, encryptionService, passwordService) {
|
|
8731
8761
|
this.config = config;
|
|
@@ -9142,7 +9172,7 @@
|
|
|
9142
9172
|
{ type: EncryptionService },
|
|
9143
9173
|
{ type: PasswordService }
|
|
9144
9174
|
]; };
|
|
9145
|
-
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;
|
|
9146
9176
|
|
|
9147
9177
|
var LifeReadyModule = /** @class */ (function () {
|
|
9148
9178
|
function LifeReadyModule() {
|
|
@@ -9183,10 +9213,10 @@
|
|
|
9183
9213
|
|
|
9184
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"])));
|
|
9185
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"])));
|
|
9186
|
-
var DebugCreateNotificationMutation = gqlTyped(templateObject_3$
|
|
9187
|
-
var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_4$
|
|
9188
|
-
var UpdateNotificationFeatureStateMutation = gqlTyped(templateObject_5$
|
|
9189
|
-
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;
|
|
9190
9220
|
|
|
9191
9221
|
exports.NotificationService = /** @class */ (function (_super) {
|
|
9192
9222
|
__extends(NotificationService, _super);
|
|
@@ -9324,14 +9354,14 @@
|
|
|
9324
9354
|
|
|
9325
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"])));
|
|
9326
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"])));
|
|
9327
|
-
var RemovePaymentMethodMutation = gqlTyped(templateObject_3$
|
|
9328
|
-
var SetDefaultPaymentMethodMutation = gqlTyped(templateObject_4$
|
|
9329
|
-
var RemoveDefaultPaymentMethodMutation = gqlTyped(templateObject_5$
|
|
9330
|
-
var IssuePlanMutation = gqlTyped(templateObject_6$
|
|
9331
|
-
var CancelPlanMutation = gqlTyped(templateObject_7$
|
|
9332
|
-
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"])));
|
|
9333
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"])));
|
|
9334
|
-
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;
|
|
9335
9365
|
|
|
9336
9366
|
exports.PlanService = /** @class */ (function (_super) {
|
|
9337
9367
|
__extends(PlanService, _super);
|
|
@@ -10134,8 +10164,8 @@
|
|
|
10134
10164
|
|
|
10135
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"])));
|
|
10136
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"])));
|
|
10137
|
-
var DeleteReminderMutation = gqlTyped(templateObject_3$
|
|
10138
|
-
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;
|
|
10139
10169
|
|
|
10140
10170
|
exports.ReminderService = /** @class */ (function (_super) {
|
|
10141
10171
|
__extends(ReminderService, _super);
|
|
@@ -10226,15 +10256,15 @@
|
|
|
10226
10256
|
|
|
10227
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"])));
|
|
10228
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"])));
|
|
10229
|
-
var DeleteScenarioMutation = gqlTyped(templateObject_3$
|
|
10230
|
-
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$
|
|
10231
|
-
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$
|
|
10232
|
-
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$
|
|
10233
|
-
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$
|
|
10234
|
-
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"])));
|
|
10235
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"])));
|
|
10236
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"])));
|
|
10237
|
-
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;
|
|
10238
10268
|
|
|
10239
10269
|
var SCENARIO_SLIP39_PASSPHRASE = 'lifeready';
|
|
10240
10270
|
|
|
@@ -10268,8 +10298,8 @@
|
|
|
10268
10298
|
})
|
|
10269
10299
|
], exports.ɵm);
|
|
10270
10300
|
|
|
10271
|
-
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
|
|
10272
|
-
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"])));
|
|
10273
10303
|
var templateObject_1$m, templateObject_2$h;
|
|
10274
10304
|
|
|
10275
10305
|
function throwClaimIdMismatch() {
|
|
@@ -10494,11 +10524,11 @@
|
|
|
10494
10524
|
ScenarioService.prototype.receiveClaim = function (scenarioId, sharedClaimId) {
|
|
10495
10525
|
return __awaiter(this, void 0, void 0, function () {
|
|
10496
10526
|
return __generator(this, function (_a) {
|
|
10497
|
-
return [2 /*return*/, this.mutate(this.
|
|
10527
|
+
return [2 /*return*/, this.mutate(this.receiveClaim2Mutation(scenarioId, sharedClaimId))];
|
|
10498
10528
|
});
|
|
10499
10529
|
});
|
|
10500
10530
|
};
|
|
10501
|
-
ScenarioService.prototype.
|
|
10531
|
+
ScenarioService.prototype.receiveClaim2Mutation = function (scenarioId, sharedClaimId) {
|
|
10502
10532
|
return __awaiter(this, void 0, void 0, function () {
|
|
10503
10533
|
var _a, _b, _c;
|
|
10504
10534
|
return __generator(this, function (_d) {
|
|
@@ -10509,7 +10539,7 @@
|
|
|
10509
10539
|
mutation: ReceiveScenarioClaimMutation
|
|
10510
10540
|
};
|
|
10511
10541
|
_c = {};
|
|
10512
|
-
return [4 /*yield*/, this.
|
|
10542
|
+
return [4 /*yield*/, this.prepareReceiveClaim2(scenarioId, sharedClaimId)];
|
|
10513
10543
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = (_c.input = _d.sent(),
|
|
10514
10544
|
_c),
|
|
10515
10545
|
_b)]))()];
|
|
@@ -10756,8 +10786,6 @@
|
|
|
10756
10786
|
wrappedItemKey = _a.sent();
|
|
10757
10787
|
return [4 /*yield*/, this.keyGraph.encryptToString(assemblyKey, wrappedItemKey)];
|
|
10758
10788
|
case 4:
|
|
10759
|
-
// TODO fetch assemblyKeyId. We are changing it such that there is always an assembly
|
|
10760
|
-
// before receivers can be added.
|
|
10761
10789
|
wrappedItemKey = _a.sent();
|
|
10762
10790
|
return [2 /*return*/, {
|
|
10763
10791
|
directoryId: options.directoryId,
|
|
@@ -10802,7 +10830,7 @@
|
|
|
10802
10830
|
deleteDirectoriesOptions = options.deleteDirectories || [];
|
|
10803
10831
|
updateDirectoriesOptions = options.updateDirectories || [];
|
|
10804
10832
|
// Fill in any missing update directories
|
|
10805
|
-
mapEdges(existingReceiver.receiverDirectories).forEach(function (existingDirectory) {
|
|
10833
|
+
mapEdges(existingReceiver.receiverItems.receiverDirectories).forEach(function (existingDirectory) {
|
|
10806
10834
|
if (deleteDirectoriesOptions.includes(existingDirectory.directory.id)) {
|
|
10807
10835
|
return;
|
|
10808
10836
|
}
|
|
@@ -10839,7 +10867,7 @@
|
|
|
10839
10867
|
return __awaiter(this, void 0, void 0, function () {
|
|
10840
10868
|
var updateDirectories;
|
|
10841
10869
|
return __generator(this, function (_a) {
|
|
10842
|
-
updateDirectories = mapEdges(existingReceiver.receiverDirectories).map(function (receiverDirectory) { return ({
|
|
10870
|
+
updateDirectories = mapEdges(existingReceiver.receiverItems.receiverDirectories).map(function (receiverDirectory) { return ({
|
|
10843
10871
|
directoryId: receiverDirectory.directory.id,
|
|
10844
10872
|
directoryKeyId: receiverDirectory.directory.keyId,
|
|
10845
10873
|
accessRole: receiverDirectory.accessRole,
|
|
@@ -10932,7 +10960,38 @@
|
|
|
10932
10960
|
});
|
|
10933
10961
|
});
|
|
10934
10962
|
};
|
|
10935
|
-
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) {
|
|
10936
10995
|
return __awaiter(this, void 0, void 0, function () {
|
|
10937
10996
|
var sharedScenario, approvals, assemblyKey, receiverDirectories;
|
|
10938
10997
|
var _this = this;
|
|
@@ -10948,7 +11007,7 @@
|
|
|
10948
11007
|
return [4 /*yield*/, this.recoverAssemblyKey(approvals)];
|
|
10949
11008
|
case 2:
|
|
10950
11009
|
assemblyKey = _a.sent();
|
|
10951
|
-
return [4 /*yield*/, Promise.all(sharedScenario.asReceiver.receiverDirectories.edges
|
|
11010
|
+
return [4 /*yield*/, Promise.all(sharedScenario.asReceiver.receiverItems.receiverDirectories.edges
|
|
10952
11011
|
.map(function (edge) { return edge.node; })
|
|
10953
11012
|
.map(function (receiverDirectory) { return __awaiter(_this, void 0, void 0, function () {
|
|
10954
11013
|
var wrappedItemKey;
|
|
@@ -10959,6 +11018,8 @@
|
|
|
10959
11018
|
wrappedItemKey = _a.sent();
|
|
10960
11019
|
return [2 /*return*/, {
|
|
10961
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.
|
|
10962
11023
|
receiverSharedKeyWrappedItemKey: wrappedItemKey,
|
|
10963
11024
|
}];
|
|
10964
11025
|
}
|
|
@@ -11167,9 +11228,9 @@
|
|
|
11167
11228
|
|
|
11168
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}"])));
|
|
11169
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}"])));
|
|
11170
|
-
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$
|
|
11171
|
-
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$
|
|
11172
|
-
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;
|
|
11173
11234
|
|
|
11174
11235
|
exports.SharedContactCard2Service = /** @class */ (function () {
|
|
11175
11236
|
function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
|
|
@@ -11327,10 +11388,10 @@
|
|
|
11327
11388
|
|
|
11328
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}"])));
|
|
11329
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);
|
|
11330
|
-
var SharedTpPasswordResetQuery = gqlTyped(templateObject_3$
|
|
11331
|
-
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$
|
|
11332
|
-
var TpPasswordResetQuery = gqlTyped(templateObject_5$
|
|
11333
|
-
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;
|
|
11334
11395
|
|
|
11335
11396
|
exports.ɵn = /** @class */ (function (_super) {
|
|
11336
11397
|
__extends(TpPasswordResetPrivateService, _super);
|
|
@@ -11806,22 +11867,22 @@
|
|
|
11806
11867
|
], exports.TpPasswordResetService);
|
|
11807
11868
|
|
|
11808
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"])));
|
|
11809
|
-
var ShareDirectoryMutation = gqlTyped(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n
|
|
11810
|
-
var UnshareDirectoryMutation = gqlTyped(templateObject_3$
|
|
11811
|
-
var ShareFileMutation = gqlTyped(templateObject_4$
|
|
11812
|
-
var UnshareFileMutation = gqlTyped(templateObject_5$
|
|
11813
|
-
var
|
|
11814
|
-
var
|
|
11815
|
-
var
|
|
11816
|
-
var
|
|
11817
|
-
var
|
|
11818
|
-
var
|
|
11819
|
-
var
|
|
11820
|
-
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"])));
|
|
11821
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}"])));
|
|
11822
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"])));
|
|
11823
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}"])));
|
|
11824
|
-
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;
|
|
11825
11886
|
|
|
11826
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"])));
|
|
11827
11888
|
var templateObject_1$r;
|
|
@@ -11977,14 +12038,14 @@
|
|
|
11977
12038
|
});
|
|
11978
12039
|
});
|
|
11979
12040
|
};
|
|
11980
|
-
TrustedPartyService.prototype.
|
|
12041
|
+
TrustedPartyService.prototype.createDirectoryShare = function (options) {
|
|
11981
12042
|
return __awaiter(this, void 0, void 0, function () {
|
|
11982
12043
|
return __generator(this, function (_a) {
|
|
11983
|
-
return [2 /*return*/, this.mutate(this.
|
|
12044
|
+
return [2 /*return*/, this.mutate(this.createDirectoryShareMutation(options))];
|
|
11984
12045
|
});
|
|
11985
12046
|
});
|
|
11986
12047
|
};
|
|
11987
|
-
TrustedPartyService.prototype.
|
|
12048
|
+
TrustedPartyService.prototype.createDirectoryShareMutation = function (options) {
|
|
11988
12049
|
return __awaiter(this, void 0, void 0, function () {
|
|
11989
12050
|
var _a, _b;
|
|
11990
12051
|
return __generator(this, function (_c) {
|
|
@@ -11992,7 +12053,7 @@
|
|
|
11992
12053
|
case 0:
|
|
11993
12054
|
_a = LrMutation.bind;
|
|
11994
12055
|
_b = {
|
|
11995
|
-
mutation:
|
|
12056
|
+
mutation: CreateDirectoryShareMutation
|
|
11996
12057
|
};
|
|
11997
12058
|
return [4 /*yield*/, this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
11998
12059
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12001,14 +12062,14 @@
|
|
|
12001
12062
|
});
|
|
12002
12063
|
});
|
|
12003
12064
|
};
|
|
12004
|
-
TrustedPartyService.prototype.
|
|
12065
|
+
TrustedPartyService.prototype.createFileShare = function (options) {
|
|
12005
12066
|
return __awaiter(this, void 0, void 0, function () {
|
|
12006
12067
|
return __generator(this, function (_a) {
|
|
12007
|
-
return [2 /*return*/, this.mutate(this.
|
|
12068
|
+
return [2 /*return*/, this.mutate(this.createFileShareMutation(options))];
|
|
12008
12069
|
});
|
|
12009
12070
|
});
|
|
12010
12071
|
};
|
|
12011
|
-
TrustedPartyService.prototype.
|
|
12072
|
+
TrustedPartyService.prototype.createFileShareMutation = function (options) {
|
|
12012
12073
|
return __awaiter(this, void 0, void 0, function () {
|
|
12013
12074
|
var _a, _b;
|
|
12014
12075
|
return __generator(this, function (_c) {
|
|
@@ -12016,7 +12077,7 @@
|
|
|
12016
12077
|
case 0:
|
|
12017
12078
|
_a = LrMutation.bind;
|
|
12018
12079
|
_b = {
|
|
12019
|
-
mutation:
|
|
12080
|
+
mutation: CreateFileShareMutation
|
|
12020
12081
|
};
|
|
12021
12082
|
return [4 /*yield*/, this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12022
12083
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12061,35 +12122,35 @@
|
|
|
12061
12122
|
});
|
|
12062
12123
|
});
|
|
12063
12124
|
};
|
|
12064
|
-
TrustedPartyService.prototype.
|
|
12125
|
+
TrustedPartyService.prototype.updateDirectoryShare = function (options) {
|
|
12065
12126
|
return __awaiter(this, void 0, void 0, function () {
|
|
12066
12127
|
return __generator(this, function (_a) {
|
|
12067
|
-
return [2 /*return*/, this.mutate(this.
|
|
12128
|
+
return [2 /*return*/, this.mutate(this.updateDirectoryShareMutation(options))];
|
|
12068
12129
|
});
|
|
12069
12130
|
});
|
|
12070
12131
|
};
|
|
12071
|
-
TrustedPartyService.prototype.
|
|
12132
|
+
TrustedPartyService.prototype.updateDirectoryShareMutation = function (options) {
|
|
12072
12133
|
return __awaiter(this, void 0, void 0, function () {
|
|
12073
12134
|
return __generator(this, function (_a) {
|
|
12074
12135
|
return [2 /*return*/, new LrMutation({
|
|
12075
|
-
mutation:
|
|
12136
|
+
mutation: UpdateDirectoryShareMutation,
|
|
12076
12137
|
variables: this.prepareUpdateSharedItemMutation(options),
|
|
12077
12138
|
})];
|
|
12078
12139
|
});
|
|
12079
12140
|
});
|
|
12080
12141
|
};
|
|
12081
|
-
TrustedPartyService.prototype.
|
|
12142
|
+
TrustedPartyService.prototype.updateFileShare = function (options) {
|
|
12082
12143
|
return __awaiter(this, void 0, void 0, function () {
|
|
12083
12144
|
return __generator(this, function (_a) {
|
|
12084
|
-
return [2 /*return*/, this.mutate(this.
|
|
12145
|
+
return [2 /*return*/, this.mutate(this.updateFileShareMutation(options))];
|
|
12085
12146
|
});
|
|
12086
12147
|
});
|
|
12087
12148
|
};
|
|
12088
|
-
TrustedPartyService.prototype.
|
|
12149
|
+
TrustedPartyService.prototype.updateFileShareMutation = function (options) {
|
|
12089
12150
|
return __awaiter(this, void 0, void 0, function () {
|
|
12090
12151
|
return __generator(this, function (_a) {
|
|
12091
12152
|
return [2 /*return*/, new LrMutation({
|
|
12092
|
-
mutation:
|
|
12153
|
+
mutation: UpdateFileShareMutation,
|
|
12093
12154
|
variables: this.prepareUpdateSharedItemMutation(options),
|
|
12094
12155
|
})];
|
|
12095
12156
|
});
|
|
@@ -12104,18 +12165,18 @@
|
|
|
12104
12165
|
},
|
|
12105
12166
|
};
|
|
12106
12167
|
};
|
|
12107
|
-
TrustedPartyService.prototype.
|
|
12168
|
+
TrustedPartyService.prototype.deleteDirectoryShare = function (id) {
|
|
12108
12169
|
return __awaiter(this, void 0, void 0, function () {
|
|
12109
12170
|
return __generator(this, function (_a) {
|
|
12110
|
-
return [2 /*return*/, this.mutate(this.
|
|
12171
|
+
return [2 /*return*/, this.mutate(this.deleteDirectoryShareMutation(id))];
|
|
12111
12172
|
});
|
|
12112
12173
|
});
|
|
12113
12174
|
};
|
|
12114
|
-
TrustedPartyService.prototype.
|
|
12175
|
+
TrustedPartyService.prototype.deleteDirectoryShareMutation = function (id) {
|
|
12115
12176
|
return __awaiter(this, void 0, void 0, function () {
|
|
12116
12177
|
return __generator(this, function (_a) {
|
|
12117
12178
|
return [2 /*return*/, new LrMutation({
|
|
12118
|
-
mutation:
|
|
12179
|
+
mutation: DeleteDirectoryShareMutation,
|
|
12119
12180
|
variables: {
|
|
12120
12181
|
input: {
|
|
12121
12182
|
id: id,
|
|
@@ -12125,14 +12186,14 @@
|
|
|
12125
12186
|
});
|
|
12126
12187
|
});
|
|
12127
12188
|
};
|
|
12128
|
-
TrustedPartyService.prototype.
|
|
12189
|
+
TrustedPartyService.prototype.completeDetachedDirectoryShare = function (options) {
|
|
12129
12190
|
return __awaiter(this, void 0, void 0, function () {
|
|
12130
12191
|
return __generator(this, function (_a) {
|
|
12131
|
-
return [2 /*return*/, this.mutate(this.
|
|
12192
|
+
return [2 /*return*/, this.mutate(this.completeDetachedDirectoryShareMutation(options))];
|
|
12132
12193
|
});
|
|
12133
12194
|
});
|
|
12134
12195
|
};
|
|
12135
|
-
TrustedPartyService.prototype.
|
|
12196
|
+
TrustedPartyService.prototype.completeDetachedDirectoryShareMutation = function (options) {
|
|
12136
12197
|
return __awaiter(this, void 0, void 0, function () {
|
|
12137
12198
|
var _a, _b;
|
|
12138
12199
|
return __generator(this, function (_c) {
|
|
@@ -12140,7 +12201,7 @@
|
|
|
12140
12201
|
case 0:
|
|
12141
12202
|
_a = LrMutation.bind;
|
|
12142
12203
|
_b = {
|
|
12143
|
-
mutation:
|
|
12204
|
+
mutation: CompleteDetachedDirectoryShareMutation
|
|
12144
12205
|
};
|
|
12145
12206
|
return [4 /*yield*/, this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
12146
12207
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12149,14 +12210,14 @@
|
|
|
12149
12210
|
});
|
|
12150
12211
|
});
|
|
12151
12212
|
};
|
|
12152
|
-
TrustedPartyService.prototype.
|
|
12213
|
+
TrustedPartyService.prototype.completeDetachedFileShare = function (options) {
|
|
12153
12214
|
return __awaiter(this, void 0, void 0, function () {
|
|
12154
12215
|
return __generator(this, function (_a) {
|
|
12155
|
-
return [2 /*return*/, this.mutate(this.
|
|
12216
|
+
return [2 /*return*/, this.mutate(this.completeDetachedFileShareMutation(options))];
|
|
12156
12217
|
});
|
|
12157
12218
|
});
|
|
12158
12219
|
};
|
|
12159
|
-
TrustedPartyService.prototype.
|
|
12220
|
+
TrustedPartyService.prototype.completeDetachedFileShareMutation = function (options) {
|
|
12160
12221
|
return __awaiter(this, void 0, void 0, function () {
|
|
12161
12222
|
var _a, _b;
|
|
12162
12223
|
return __generator(this, function (_c) {
|
|
@@ -12164,7 +12225,7 @@
|
|
|
12164
12225
|
case 0:
|
|
12165
12226
|
_a = LrMutation.bind;
|
|
12166
12227
|
_b = {
|
|
12167
|
-
mutation:
|
|
12228
|
+
mutation: CompleteDetachedFileShareMutation
|
|
12168
12229
|
};
|
|
12169
12230
|
return [4 /*yield*/, this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12170
12231
|
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
@@ -12182,8 +12243,8 @@
|
|
|
12182
12243
|
case 0:
|
|
12183
12244
|
sharedItemId = options.sharedItemId, itemKeyId = options.itemKeyId, isDirectory = options.isDirectory;
|
|
12184
12245
|
return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
12185
|
-
? _this.itemService.
|
|
12186
|
-
: _this.itemService.
|
|
12246
|
+
? _this.itemService.getDirectoryKeyIdFromDirectoryShare(sharedItemId)
|
|
12247
|
+
: _this.itemService.getFileKeyIdFromFileShare(sharedItemId); })];
|
|
12187
12248
|
case 1:
|
|
12188
12249
|
itemKey = _a.sent();
|
|
12189
12250
|
rootKey = this.keyService.currentRootKey;
|
|
@@ -12516,8 +12577,8 @@
|
|
|
12516
12577
|
|
|
12517
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"])));
|
|
12518
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"])));
|
|
12519
|
-
var LoginHistoryQuery = gql__default['default'](templateObject_3$
|
|
12520
|
-
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;
|
|
12521
12582
|
|
|
12522
12583
|
var UserService = /** @class */ (function () {
|
|
12523
12584
|
function UserService(lrApollo) {
|
|
@@ -12621,7 +12682,6 @@
|
|
|
12621
12682
|
exports.CreateContactCardMutation = CreateContactCardMutation$1;
|
|
12622
12683
|
exports.CreateDirectoryMutation = CreateDirectoryMutation;
|
|
12623
12684
|
exports.CreateFileMutation = CreateFileMutation;
|
|
12624
|
-
exports.CreateFileQuery = CreateFileQuery;
|
|
12625
12685
|
exports.CreateLbopQuery = CreateLbopQuery;
|
|
12626
12686
|
exports.CreateScenarioClaimMutation = CreateScenarioClaimMutation;
|
|
12627
12687
|
exports.CreateScenarioMutation = CreateScenarioMutation;
|
|
@@ -12643,7 +12703,6 @@
|
|
|
12643
12703
|
exports.ERROR_SOURCE = ERROR_SOURCE;
|
|
12644
12704
|
exports.Features = Features;
|
|
12645
12705
|
exports.FetchKeyGraphField = FetchKeyGraphField;
|
|
12646
|
-
exports.FileQuery = FileQuery;
|
|
12647
12706
|
exports.FileUploadService = FileUploadService;
|
|
12648
12707
|
exports.GetOwnedContactCardKeyIdsQuery = GetOwnedContactCardKeyIdsQuery;
|
|
12649
12708
|
exports.GetReceivedContactCardKeyIdQuery = GetReceivedContactCardKeyIdQuery;
|
|
@@ -12687,8 +12746,6 @@
|
|
|
12687
12746
|
exports.MainContactCardFields = MainContactCardFields;
|
|
12688
12747
|
exports.MainContactCardPlainFields = MainContactCardPlainFields;
|
|
12689
12748
|
exports.MainContactCardProperty = MainContactCardProperty;
|
|
12690
|
-
exports.MoveDirectoryQuery = MoveDirectoryQuery;
|
|
12691
|
-
exports.MoveFileQuery = MoveFileQuery;
|
|
12692
12749
|
exports.OwnerPlainDataJson = OwnerPlainDataJson;
|
|
12693
12750
|
exports.PasswordCheck = PasswordCheck;
|
|
12694
12751
|
exports.PasswordService = PasswordService;
|
|
@@ -12704,7 +12761,6 @@
|
|
|
12704
12761
|
exports.RequestUserDeleteMutation = RequestUserDeleteMutation;
|
|
12705
12762
|
exports.RespondKeyExchangeOtkMutation = RespondKeyExchangeOtkMutation;
|
|
12706
12763
|
exports.RevertFileMutation = RevertFileMutation;
|
|
12707
|
-
exports.RevertFileQuery = RevertFileQuery;
|
|
12708
12764
|
exports.ServerTimeQuery = ServerTimeQuery;
|
|
12709
12765
|
exports.SetDirectoryConfidentialMutation = SetDirectoryConfidentialMutation;
|
|
12710
12766
|
exports.SetFileConfidentialMutation = SetFileConfidentialMutation;
|
|
@@ -12723,7 +12779,6 @@
|
|
|
12723
12779
|
exports.UpdateContactCardMutation = UpdateContactCardMutation$1;
|
|
12724
12780
|
exports.UpdateDirectoryMutation = UpdateDirectoryMutation;
|
|
12725
12781
|
exports.UpdateFileMutation = UpdateFileMutation;
|
|
12726
|
-
exports.UpdateFileQuery = UpdateFileQuery;
|
|
12727
12782
|
exports.UpdateLbopQuery = UpdateLbopQuery;
|
|
12728
12783
|
exports.UpdateOwnedContactCardMutation = UpdateOwnedContactCardMutation;
|
|
12729
12784
|
exports.UpdateReceivedContactCardMutation = UpdateReceivedContactCardMutation;
|