@lifeready/core 8.0.4 → 8.0.6
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 +51 -164
- 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/api/types/lr-graphql.types.js +2 -1
- package/esm2015/lib/item/item.service.js +24 -20
- package/esm2015/lib/item/item.types.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party.gql.js +1 -37
- package/esm2015/lib/trusted-party/trusted-party.service.js +19 -81
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +40 -134
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +11 -18
- package/lib/item/item.service.d.ts +2 -2
- package/lib/item/item.types.d.ts +3 -8
- package/lib/trusted-party/trusted-party.gql.d.ts +0 -32
- package/lib/trusted-party/trusted-party.service.d.ts +8 -40
- package/lib/trusted-party/trusted-party.types.d.ts +0 -11
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3890,6 +3890,7 @@
|
|
|
3890
3890
|
(function (LinkTypeField) {
|
|
3891
3891
|
LinkTypeField["HARD"] = "HARD";
|
|
3892
3892
|
LinkTypeField["SOFT"] = "SOFT";
|
|
3893
|
+
LinkTypeField["REFERENCE"] = "REFERENCE";
|
|
3893
3894
|
})(exports.LinkTypeField || (exports.LinkTypeField = {}));
|
|
3894
3895
|
(function (PlanStateField) {
|
|
3895
3896
|
PlanStateField["TRIALLING"] = "TRIALLING";
|
|
@@ -7776,19 +7777,29 @@
|
|
|
7776
7777
|
// ------------------------------------------------------------------------------
|
|
7777
7778
|
ItemService.prototype.prepareParentDirectory = function (options, newKey) {
|
|
7778
7779
|
return __awaiter(this, void 0, void 0, function () {
|
|
7779
|
-
var wrappingKey, _d;
|
|
7780
|
+
var directoryId, linkType, wrappingKeyId, wrappingKey, _d;
|
|
7780
7781
|
return __generator(this, function (_e) {
|
|
7781
7782
|
switch (_e.label) {
|
|
7782
|
-
case 0:
|
|
7783
|
-
|
|
7783
|
+
case 0:
|
|
7784
|
+
directoryId = options.directoryId, linkType = options.linkType, wrappingKeyId = options.wrappingKeyId;
|
|
7785
|
+
if (!(linkType == exports.LinkTypeField.REFERENCE)) return [3 /*break*/, 1];
|
|
7786
|
+
if (wrappingKeyId) {
|
|
7787
|
+
throw new KcBadArgumentException('Do not specify wrappingKeyId when link type is REFERENCE.');
|
|
7788
|
+
}
|
|
7789
|
+
return [2 /*return*/, {
|
|
7790
|
+
directoryId: directoryId,
|
|
7791
|
+
linkType: linkType,
|
|
7792
|
+
}];
|
|
7793
|
+
case 1: return [4 /*yield*/, this.getDirectoryKey(directoryId, wrappingKeyId)];
|
|
7794
|
+
case 2:
|
|
7784
7795
|
wrappingKey = _e.sent();
|
|
7785
7796
|
_d = {
|
|
7786
|
-
directoryId:
|
|
7797
|
+
directoryId: directoryId,
|
|
7787
7798
|
wrappingKeyId: wrappingKey.id
|
|
7788
7799
|
};
|
|
7789
7800
|
return [4 /*yield*/, this.keyGraph.wrapKey(wrappingKey, newKey)];
|
|
7790
|
-
case
|
|
7791
|
-
_d.linkType =
|
|
7801
|
+
case 3: return [2 /*return*/, (_d.wrappedKey = _e.sent(),
|
|
7802
|
+
_d.linkType = linkType,
|
|
7792
7803
|
_d)];
|
|
7793
7804
|
}
|
|
7794
7805
|
});
|
|
@@ -7965,23 +7976,7 @@
|
|
|
7965
7976
|
case 0: return [4 /*yield*/, this.keyFactory.createKey()];
|
|
7966
7977
|
case 1:
|
|
7967
7978
|
fileKey = _d.sent();
|
|
7968
|
-
return [4 /*yield*/, Promise.all(options.parentDirectories.map(function (t) { return
|
|
7969
|
-
var _d, directoryId, wrappingKeyId, wrappedKey;
|
|
7970
|
-
return __generator(this, function (_e) {
|
|
7971
|
-
switch (_e.label) {
|
|
7972
|
-
case 0: return [4 /*yield*/, this.prepareParentDirectory(t, fileKey)];
|
|
7973
|
-
case 1:
|
|
7974
|
-
_d = _e.sent(), directoryId = _d.directoryId, wrappingKeyId = _d.wrappingKeyId, wrappedKey = _d.wrappedKey;
|
|
7975
|
-
// remap from ParentDirectoryInput to FileParentDirectoryInput
|
|
7976
|
-
// TODO the server should really just use wrappedKey instead of wrappedFileKey
|
|
7977
|
-
return [2 /*return*/, {
|
|
7978
|
-
directoryId: directoryId,
|
|
7979
|
-
wrappingKeyId: wrappingKeyId,
|
|
7980
|
-
wrappedFileKey: wrappedKey,
|
|
7981
|
-
}];
|
|
7982
|
-
}
|
|
7983
|
-
});
|
|
7984
|
-
}); }))];
|
|
7979
|
+
return [4 /*yield*/, Promise.all(options.parentDirectories.map(function (t) { return _this.prepareParentDirectory(t, fileKey); }))];
|
|
7985
7980
|
case 2:
|
|
7986
7981
|
parentDirectories = _d.sent();
|
|
7987
7982
|
return [4 /*yield*/, this.prepareCreateFileState(fileKey, options)];
|
|
@@ -11876,22 +11871,18 @@
|
|
|
11876
11871
|
], exports.TpPasswordResetService);
|
|
11877
11872
|
|
|
11878
11873
|
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"])));
|
|
11879
|
-
var
|
|
11880
|
-
var
|
|
11881
|
-
var
|
|
11882
|
-
var
|
|
11883
|
-
var
|
|
11884
|
-
var
|
|
11885
|
-
var
|
|
11886
|
-
var
|
|
11887
|
-
var
|
|
11888
|
-
var
|
|
11889
|
-
var
|
|
11890
|
-
var
|
|
11891
|
-
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}"])));
|
|
11892
|
-
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"])));
|
|
11893
|
-
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}"])));
|
|
11894
|
-
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;
|
|
11874
|
+
var CreateDirectoryShareMutation = gqlTyped(templateObject_2$k || (templateObject_2$k = __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_3$h || (templateObject_3$h = __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_4$d || (templateObject_4$d = __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_5$b || (templateObject_5$b = __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_6$6 || (templateObject_6$6 = __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_7$5 || (templateObject_7$5 = __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_8$5 || (templateObject_8$5 = __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_9$5 || (templateObject_9$5 = __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"])));
|
|
11882
|
+
var RequestTpMkReshareMutation = gqlTyped(templateObject_10$2 || (templateObject_10$2 = __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}"])));
|
|
11883
|
+
var RespondTpMkReshareMutation = gqlTyped(templateObject_11$1 || (templateObject_11$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"])));
|
|
11884
|
+
var CompleteTpMkReshareMutation = gqlTyped(templateObject_12$1 || (templateObject_12$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}"])));
|
|
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;
|
|
11895
11886
|
|
|
11896
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"])));
|
|
11897
11888
|
var templateObject_1$r;
|
|
@@ -11922,131 +11913,6 @@
|
|
|
11922
11913
|
},
|
|
11923
11914
|
});
|
|
11924
11915
|
};
|
|
11925
|
-
TrustedPartyService.prototype.shareDirectory = function (options) {
|
|
11926
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11927
|
-
return __generator(this, function (_a) {
|
|
11928
|
-
return [2 /*return*/, this.mutate(this.shareDirectoryMutation(options))];
|
|
11929
|
-
});
|
|
11930
|
-
});
|
|
11931
|
-
};
|
|
11932
|
-
TrustedPartyService.prototype.shareDirectoryMutation = function (options) {
|
|
11933
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11934
|
-
var _a, _b;
|
|
11935
|
-
return __generator(this, function (_c) {
|
|
11936
|
-
switch (_c.label) {
|
|
11937
|
-
case 0:
|
|
11938
|
-
_a = LrMutation.bind;
|
|
11939
|
-
_b = {
|
|
11940
|
-
mutation: ShareDirectoryMutation
|
|
11941
|
-
};
|
|
11942
|
-
return [4 /*yield*/, this.prepareShareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
11943
|
-
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
11944
|
-
_b)]))()];
|
|
11945
|
-
}
|
|
11946
|
-
});
|
|
11947
|
-
});
|
|
11948
|
-
};
|
|
11949
|
-
TrustedPartyService.prototype.shareFile = function (options) {
|
|
11950
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11951
|
-
return __generator(this, function (_a) {
|
|
11952
|
-
return [2 /*return*/, this.mutate(this.shareFileMutation(options))];
|
|
11953
|
-
});
|
|
11954
|
-
});
|
|
11955
|
-
};
|
|
11956
|
-
TrustedPartyService.prototype.shareFileMutation = function (options) {
|
|
11957
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11958
|
-
var _a, _b;
|
|
11959
|
-
return __generator(this, function (_c) {
|
|
11960
|
-
switch (_c.label) {
|
|
11961
|
-
case 0:
|
|
11962
|
-
_a = LrMutation.bind;
|
|
11963
|
-
_b = {
|
|
11964
|
-
mutation: ShareFileMutation
|
|
11965
|
-
};
|
|
11966
|
-
return [4 /*yield*/, this.prepareShareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
11967
|
-
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
11968
|
-
_b)]))()];
|
|
11969
|
-
}
|
|
11970
|
-
});
|
|
11971
|
-
});
|
|
11972
|
-
};
|
|
11973
|
-
TrustedPartyService.prototype.prepareShareItemMutation = function (options) {
|
|
11974
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
11975
|
-
var itemId, itemKeyId, tpId, tpSharedKeyId, accessRole, isDirectory, itemKey, wrappingKey, wrappedKey;
|
|
11976
|
-
var _this = this;
|
|
11977
|
-
return __generator(this, function (_a) {
|
|
11978
|
-
switch (_a.label) {
|
|
11979
|
-
case 0:
|
|
11980
|
-
itemId = options.itemId, itemKeyId = options.itemKeyId, tpId = options.tpId, tpSharedKeyId = options.tpSharedKeyId, accessRole = options.accessRole, isDirectory = options.isDirectory;
|
|
11981
|
-
return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
11982
|
-
? _this.itemService.getDirectoryKeyId(itemId)
|
|
11983
|
-
: _this.itemService.getFileKeyId(itemId); })];
|
|
11984
|
-
case 1:
|
|
11985
|
-
itemKey = _a.sent();
|
|
11986
|
-
return [4 /*yield*/, this.keyGraph.getKey(tpSharedKeyId, function () { return _this.getTpCurrentUserSharedKey(tpId).then(function (res) { return res.sharedKey.id; }); })];
|
|
11987
|
-
case 2:
|
|
11988
|
-
wrappingKey = _a.sent();
|
|
11989
|
-
return [4 /*yield*/, this.keyGraph.wrapKey(wrappingKey, itemKey.jwk)];
|
|
11990
|
-
case 3:
|
|
11991
|
-
wrappedKey = _a.sent();
|
|
11992
|
-
return [2 /*return*/, {
|
|
11993
|
-
input: {
|
|
11994
|
-
id: itemId,
|
|
11995
|
-
tpId: tpId,
|
|
11996
|
-
accessRole: accessRole,
|
|
11997
|
-
keyId: itemKey.id,
|
|
11998
|
-
wrappingKeyId: wrappingKey.id,
|
|
11999
|
-
wrappedKey: wrappedKey,
|
|
12000
|
-
},
|
|
12001
|
-
}];
|
|
12002
|
-
}
|
|
12003
|
-
});
|
|
12004
|
-
});
|
|
12005
|
-
};
|
|
12006
|
-
TrustedPartyService.prototype.unshareDirectory = function (options) {
|
|
12007
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12008
|
-
return __generator(this, function (_a) {
|
|
12009
|
-
return [2 /*return*/, this.mutate(this.unshareDirectoryMutation(options))];
|
|
12010
|
-
});
|
|
12011
|
-
});
|
|
12012
|
-
};
|
|
12013
|
-
TrustedPartyService.prototype.unshareDirectoryMutation = function (options) {
|
|
12014
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12015
|
-
return __generator(this, function (_a) {
|
|
12016
|
-
return [2 /*return*/, this.unshareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
12017
|
-
});
|
|
12018
|
-
});
|
|
12019
|
-
};
|
|
12020
|
-
TrustedPartyService.prototype.unshareFile = function (options) {
|
|
12021
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12022
|
-
return __generator(this, function (_a) {
|
|
12023
|
-
return [2 /*return*/, this.mutate(this.unshareFileMutation(options))];
|
|
12024
|
-
});
|
|
12025
|
-
});
|
|
12026
|
-
};
|
|
12027
|
-
TrustedPartyService.prototype.unshareFileMutation = function (options) {
|
|
12028
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12029
|
-
return __generator(this, function (_a) {
|
|
12030
|
-
return [2 /*return*/, this.unshareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12031
|
-
});
|
|
12032
|
-
});
|
|
12033
|
-
};
|
|
12034
|
-
TrustedPartyService.prototype.unshareItemMutation = function (_a) {
|
|
12035
|
-
var itemId = _a.itemId, tpId = _a.tpId, isDirectory = _a.isDirectory;
|
|
12036
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12037
|
-
return __generator(this, function (_a) {
|
|
12038
|
-
return [2 /*return*/, new LrMutation({
|
|
12039
|
-
mutation: isDirectory ? UnshareDirectoryMutation : UnshareFileMutation,
|
|
12040
|
-
variables: {
|
|
12041
|
-
input: {
|
|
12042
|
-
id: itemId,
|
|
12043
|
-
tpId: tpId,
|
|
12044
|
-
},
|
|
12045
|
-
},
|
|
12046
|
-
})];
|
|
12047
|
-
});
|
|
12048
|
-
});
|
|
12049
|
-
};
|
|
12050
11916
|
TrustedPartyService.prototype.createDirectoryShare = function (options) {
|
|
12051
11917
|
return __awaiter(this, void 0, void 0, function () {
|
|
12052
11918
|
return __generator(this, function (_a) {
|
|
@@ -12193,6 +12059,27 @@
|
|
|
12193
12059
|
});
|
|
12194
12060
|
});
|
|
12195
12061
|
};
|
|
12062
|
+
TrustedPartyService.prototype.deleteFileShare = function (id) {
|
|
12063
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12064
|
+
return __generator(this, function (_a) {
|
|
12065
|
+
return [2 /*return*/, this.mutate(this.deleteFileShareMutation(id))];
|
|
12066
|
+
});
|
|
12067
|
+
});
|
|
12068
|
+
};
|
|
12069
|
+
TrustedPartyService.prototype.deleteFileShareMutation = function (id) {
|
|
12070
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12071
|
+
return __generator(this, function (_a) {
|
|
12072
|
+
return [2 /*return*/, new LrMutation({
|
|
12073
|
+
mutation: DeleteFileShareMutation,
|
|
12074
|
+
variables: {
|
|
12075
|
+
input: {
|
|
12076
|
+
id: id,
|
|
12077
|
+
},
|
|
12078
|
+
},
|
|
12079
|
+
})];
|
|
12080
|
+
});
|
|
12081
|
+
});
|
|
12082
|
+
};
|
|
12196
12083
|
TrustedPartyService.prototype.completeDetachedDirectoryShare = function (options) {
|
|
12197
12084
|
return __awaiter(this, void 0, void 0, function () {
|
|
12198
12085
|
return __generator(this, function (_a) {
|