@lifeready/core 7.0.3 → 7.1.1
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 +358 -51
- 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 +22 -1
- package/esm2015/lib/idle/idle.service.js +3 -3
- package/esm2015/lib/item/item.gql.private.js +19 -1
- package/esm2015/lib/item/item.service.js +22 -2
- package/esm2015/lib/key/key-graph.service.js +9 -3
- package/esm2015/lib/trusted-party/trusted-party.gql.js +69 -1
- package/esm2015/lib/trusted-party/trusted-party.service.js +166 -17
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +301 -19
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +42 -16
- package/lib/idle/idle.service.d.ts +9 -2
- package/lib/item/item.gql.private.d.ts +16 -0
- package/lib/item/item.service.d.ts +2 -0
- package/lib/trusted-party/trusted-party.gql.d.ts +60 -0
- package/lib/trusted-party/trusted-party.service.d.ts +70 -5
- package/lib/trusted-party/trusted-party.types.d.ts +17 -1
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2055,7 +2055,7 @@
|
|
|
2055
2055
|
// actual key we ensure key-graph is consistent.
|
|
2056
2056
|
KeyGraphService.prototype.getKey = function (keyOrId, getKeyIdCallback) {
|
|
2057
2057
|
return __awaiter(this, void 0, void 0, function () {
|
|
2058
|
-
var keyId, key;
|
|
2058
|
+
var keyId, keyIdFromCallback, key;
|
|
2059
2059
|
return __generator(this, function (_a) {
|
|
2060
2060
|
switch (_a.label) {
|
|
2061
2061
|
case 0:
|
|
@@ -2063,7 +2063,13 @@
|
|
|
2063
2063
|
if (!(!this.hasKey(keyId) && getKeyIdCallback)) return [3 /*break*/, 2];
|
|
2064
2064
|
return [4 /*yield*/, getKeyIdCallback()];
|
|
2065
2065
|
case 1:
|
|
2066
|
-
|
|
2066
|
+
keyIdFromCallback = _a.sent();
|
|
2067
|
+
if (keyId != null && keyId != keyIdFromCallback) {
|
|
2068
|
+
throw new KcBadLogicException('Requested keyId is not in the key cache, so an API request was made to populate the key cache.' +
|
|
2069
|
+
'But the key returned by the API does NOT match the requested keyId.' +
|
|
2070
|
+
'This is a programming logic error.');
|
|
2071
|
+
}
|
|
2072
|
+
keyId = keyIdFromCallback;
|
|
2067
2073
|
_a.label = 2;
|
|
2068
2074
|
case 2:
|
|
2069
2075
|
key = this.key(keyId);
|
|
@@ -3735,13 +3741,31 @@
|
|
|
3735
3741
|
PlanState["ENABLED"] = "ENABLED";
|
|
3736
3742
|
PlanState["DISABLED"] = "DISABLED";
|
|
3737
3743
|
})(exports.PlanState || (exports.PlanState = {}));
|
|
3744
|
+
(function (TpShareTypeChoice) {
|
|
3745
|
+
TpShareTypeChoice["TP"] = "TP";
|
|
3746
|
+
TpShareTypeChoice["DETACHED"] = "DETACHED";
|
|
3747
|
+
})(exports.TpShareTypeChoice || (exports.TpShareTypeChoice = {}));
|
|
3748
|
+
(function (TpDetachedShareStateChoice) {
|
|
3749
|
+
TpDetachedShareStateChoice["IN_PROGRESS"] = "IN_PROGRESS";
|
|
3750
|
+
TpDetachedShareStateChoice["COMPLETED"] = "COMPLETED";
|
|
3751
|
+
})(exports.TpDetachedShareStateChoice || (exports.TpDetachedShareStateChoice = {}));
|
|
3738
3752
|
(function (AccessRoleChoice) {
|
|
3739
3753
|
AccessRoleChoice["READER"] = "READER";
|
|
3740
3754
|
AccessRoleChoice["WRITER"] = "WRITER";
|
|
3741
3755
|
AccessRoleChoice["ADMIN"] = "ADMIN";
|
|
3756
|
+
AccessRoleChoice["CUSTODIAN"] = "CUSTODIAN";
|
|
3742
3757
|
AccessRoleChoice["DENY"] = "DENY";
|
|
3743
3758
|
AccessRoleChoice["OWNER"] = "OWNER";
|
|
3744
3759
|
})(exports.AccessRoleChoice || (exports.AccessRoleChoice = {}));
|
|
3760
|
+
(function (AccessRoleChoiceOrder) {
|
|
3761
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["READER"] = 0] = "READER";
|
|
3762
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["WRITER"] = 1] = "WRITER";
|
|
3763
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["ADMIN"] = 2] = "ADMIN";
|
|
3764
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["CUSTODIAN"] = 3] = "CUSTODIAN";
|
|
3765
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["DENY"] = 4] = "DENY";
|
|
3766
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["CONFIDENTIAL"] = 5] = "CONFIDENTIAL";
|
|
3767
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["OWNER"] = 6] = "OWNER";
|
|
3768
|
+
})(exports.AccessRoleChoiceOrder || (exports.AccessRoleChoiceOrder = {}));
|
|
3745
3769
|
(function (AccessRoleMethodChoice) {
|
|
3746
3770
|
AccessRoleMethodChoice["INHERITED"] = "INHERITED";
|
|
3747
3771
|
AccessRoleMethodChoice["DIRECT"] = "DIRECT";
|
|
@@ -3961,7 +3985,7 @@
|
|
|
3961
3985
|
case 0:
|
|
3962
3986
|
console.log('Idle timed out');
|
|
3963
3987
|
this.reset();
|
|
3964
|
-
return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout())];
|
|
3988
|
+
return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout({ onInit: false }))];
|
|
3965
3989
|
case 1:
|
|
3966
3990
|
_a.sent();
|
|
3967
3991
|
return [2 /*return*/];
|
|
@@ -3983,7 +4007,7 @@
|
|
|
3983
4007
|
if (!(idleExpiry &&
|
|
3984
4008
|
parseInt(idleExpiry, 10) + this.idle.getTimeout() * 1000 < Date.now())) return [3 /*break*/, 2];
|
|
3985
4009
|
this.reset();
|
|
3986
|
-
return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout())];
|
|
4010
|
+
return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout({ onInit: true }))];
|
|
3987
4011
|
case 1:
|
|
3988
4012
|
_a.sent();
|
|
3989
4013
|
_a.label = 2;
|
|
@@ -7160,8 +7184,10 @@
|
|
|
7160
7184
|
|
|
7161
7185
|
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"])));
|
|
7162
7186
|
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"])));
|
|
7163
|
-
var
|
|
7164
|
-
var
|
|
7187
|
+
var DirectoryKeyFromSharedDirectoryQuery = gqlTyped(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\nquery DirectoryKeyFromSharedDirectoryQuery($id: LrRelayIdInput!) {\n tpSharedDirectory(id: $id) {\n item {\n keyId\n }\n }\n}\n"], ["\nquery DirectoryKeyFromSharedDirectoryQuery($id: LrRelayIdInput!) {\n tpSharedDirectory(id: $id) {\n item {\n keyId\n }\n }\n}\n"])));
|
|
7188
|
+
var FileKeyFromSharedFileQuery = gqlTyped(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\nquery FileKeyFromSharedFileQuery($id: LrRelayIdInput!) {\n tpSharedFile(id: $id) {\n item {\n keyId\n }\n }\n}\n"], ["\nquery FileKeyFromSharedFileQuery($id: LrRelayIdInput!) {\n tpSharedFile(id: $id) {\n item {\n keyId\n }\n }\n}\n"])));
|
|
7189
|
+
var FileStateKeyQuery = gqlTyped(templateObject_5$6 || (templateObject_5$6 = __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"])));
|
|
7190
|
+
var templateObject_1$g, templateObject_2$b, templateObject_3$a, templateObject_4$7, templateObject_5$6;
|
|
7165
7191
|
|
|
7166
7192
|
var ItemService_1;
|
|
7167
7193
|
exports.ItemService = ItemService_1 = /** @class */ (function (_super) {
|
|
@@ -7230,6 +7256,36 @@
|
|
|
7230
7256
|
});
|
|
7231
7257
|
});
|
|
7232
7258
|
};
|
|
7259
|
+
ItemService.prototype.getDirectoryKeyIdFromSharedDirectory = function (sharedDirectoryId) {
|
|
7260
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7261
|
+
return __generator(this, function (_d) {
|
|
7262
|
+
switch (_d.label) {
|
|
7263
|
+
case 0: return [4 /*yield*/, this.query({
|
|
7264
|
+
query: DirectoryKeyFromSharedDirectoryQuery,
|
|
7265
|
+
variables: {
|
|
7266
|
+
id: sharedDirectoryId,
|
|
7267
|
+
},
|
|
7268
|
+
})];
|
|
7269
|
+
case 1: return [2 /*return*/, (_d.sent()).tpSharedDirectory.item.keyId];
|
|
7270
|
+
}
|
|
7271
|
+
});
|
|
7272
|
+
});
|
|
7273
|
+
};
|
|
7274
|
+
ItemService.prototype.getFileKeyIdFromSharedFile = function (sharedFileId) {
|
|
7275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7276
|
+
return __generator(this, function (_d) {
|
|
7277
|
+
switch (_d.label) {
|
|
7278
|
+
case 0: return [4 /*yield*/, this.query({
|
|
7279
|
+
query: FileKeyFromSharedFileQuery,
|
|
7280
|
+
variables: {
|
|
7281
|
+
id: sharedFileId,
|
|
7282
|
+
},
|
|
7283
|
+
})];
|
|
7284
|
+
case 1: return [2 /*return*/, (_d.sent()).tpSharedFile.item.keyId];
|
|
7285
|
+
}
|
|
7286
|
+
});
|
|
7287
|
+
});
|
|
7288
|
+
};
|
|
7233
7289
|
ItemService.prototype.getDirectoryKey = function (directoryId, directoryKeyId) {
|
|
7234
7290
|
return __awaiter(this, void 0, void 0, function () {
|
|
7235
7291
|
var _this = this;
|
|
@@ -8666,8 +8722,8 @@
|
|
|
8666
8722
|
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"])));
|
|
8667
8723
|
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"])));
|
|
8668
8724
|
var UpdateLbopQuery = gql__default['default'](templateObject_3$b || (templateObject_3$b = __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"])));
|
|
8669
|
-
var LbopQuery = gql__default['default'](templateObject_4$
|
|
8670
|
-
var LbopsQuery = gql__default['default'](templateObject_5$
|
|
8725
|
+
var LbopQuery = gql__default['default'](templateObject_4$8 || (templateObject_4$8 = __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"])));
|
|
8726
|
+
var LbopsQuery = gql__default['default'](templateObject_5$7 || (templateObject_5$7 = __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"])));
|
|
8671
8727
|
var LbopService = /** @class */ (function () {
|
|
8672
8728
|
function LbopService(config, http, lrApollo, auth, keyFactory, keyService, encryptionService, passwordService) {
|
|
8673
8729
|
this.config = config;
|
|
@@ -9084,7 +9140,7 @@
|
|
|
9084
9140
|
{ type: EncryptionService },
|
|
9085
9141
|
{ type: PasswordService }
|
|
9086
9142
|
]; };
|
|
9087
|
-
var templateObject_1$h, templateObject_2$c, templateObject_3$b, templateObject_4$
|
|
9143
|
+
var templateObject_1$h, templateObject_2$c, templateObject_3$b, templateObject_4$8, templateObject_5$7;
|
|
9088
9144
|
|
|
9089
9145
|
var LifeReadyModule = /** @class */ (function () {
|
|
9090
9146
|
function LifeReadyModule() {
|
|
@@ -9126,9 +9182,9 @@
|
|
|
9126
9182
|
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"])));
|
|
9127
9183
|
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"])));
|
|
9128
9184
|
var DebugCreateNotificationMutation = gqlTyped(templateObject_3$c || (templateObject_3$c = __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"])));
|
|
9129
|
-
var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_4$
|
|
9130
|
-
var UpdateNotificationFeatureStateMutation = gqlTyped(templateObject_5$
|
|
9131
|
-
var templateObject_1$i, templateObject_2$d, templateObject_3$c, templateObject_4$
|
|
9185
|
+
var DebugDeleteAllNotificationsMutation = gqlTyped(templateObject_4$9 || (templateObject_4$9 = __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"])));
|
|
9186
|
+
var UpdateNotificationFeatureStateMutation = gqlTyped(templateObject_5$8 || (templateObject_5$8 = __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"])));
|
|
9187
|
+
var templateObject_1$i, templateObject_2$d, templateObject_3$c, templateObject_4$9, templateObject_5$8;
|
|
9132
9188
|
|
|
9133
9189
|
exports.NotificationService = /** @class */ (function (_super) {
|
|
9134
9190
|
__extends(NotificationService, _super);
|
|
@@ -9267,13 +9323,13 @@
|
|
|
9267
9323
|
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"])));
|
|
9268
9324
|
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"])));
|
|
9269
9325
|
var RemovePaymentMethodMutation = gqlTyped(templateObject_3$d || (templateObject_3$d = __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"])));
|
|
9270
|
-
var SetDefaultPaymentMethodMutation = gqlTyped(templateObject_4$
|
|
9271
|
-
var RemoveDefaultPaymentMethodMutation = gqlTyped(templateObject_5$
|
|
9326
|
+
var SetDefaultPaymentMethodMutation = gqlTyped(templateObject_4$a || (templateObject_4$a = __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"])));
|
|
9327
|
+
var RemoveDefaultPaymentMethodMutation = gqlTyped(templateObject_5$9 || (templateObject_5$9 = __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"])));
|
|
9272
9328
|
var IssuePlanMutation = gqlTyped(templateObject_6$5 || (templateObject_6$5 = __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"])));
|
|
9273
9329
|
var CancelPlanMutation = gqlTyped(templateObject_7$4 || (templateObject_7$4 = __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"])));
|
|
9274
9330
|
var ChangePriceOptionMutation = gqlTyped(templateObject_8$4 || (templateObject_8$4 = __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"])));
|
|
9275
9331
|
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"])));
|
|
9276
|
-
var templateObject_1$j, templateObject_2$e, templateObject_3$d, templateObject_4$
|
|
9332
|
+
var templateObject_1$j, templateObject_2$e, templateObject_3$d, templateObject_4$a, templateObject_5$9, templateObject_6$5, templateObject_7$4, templateObject_8$4, templateObject_9$3;
|
|
9277
9333
|
|
|
9278
9334
|
exports.PlanService = /** @class */ (function (_super) {
|
|
9279
9335
|
__extends(PlanService, _super);
|
|
@@ -10169,14 +10225,14 @@
|
|
|
10169
10225
|
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"])));
|
|
10170
10226
|
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"])));
|
|
10171
10227
|
var DeleteScenarioMutation = gqlTyped(templateObject_3$f || (templateObject_3$f = __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"])));
|
|
10172
|
-
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$
|
|
10173
|
-
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$
|
|
10228
|
+
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$b || (templateObject_4$b = __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"])));
|
|
10229
|
+
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$a || (templateObject_5$a = __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"])));
|
|
10174
10230
|
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$6 || (templateObject_6$6 = __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"])));
|
|
10175
10231
|
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$5 || (templateObject_7$5 = __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"])));
|
|
10176
10232
|
var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$5 || (templateObject_8$5 = __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"])));
|
|
10177
10233
|
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"])));
|
|
10178
10234
|
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"])));
|
|
10179
|
-
var templateObject_1$l, templateObject_2$g, templateObject_3$f, templateObject_4$
|
|
10235
|
+
var templateObject_1$l, templateObject_2$g, templateObject_3$f, templateObject_4$b, templateObject_5$a, templateObject_6$6, templateObject_7$5, templateObject_8$5, templateObject_9$4, templateObject_10$1;
|
|
10180
10236
|
|
|
10181
10237
|
var SCENARIO_SLIP39_PASSPHRASE = 'lifeready';
|
|
10182
10238
|
|
|
@@ -11110,8 +11166,8 @@
|
|
|
11110
11166
|
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}"])));
|
|
11111
11167
|
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}"])));
|
|
11112
11168
|
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$g || (templateObject_3$g = __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}"])));
|
|
11113
|
-
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$
|
|
11114
|
-
var templateObject_1$o, templateObject_2$i, templateObject_3$g, templateObject_4$
|
|
11169
|
+
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$c || (templateObject_4$c = __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}"])));
|
|
11170
|
+
var templateObject_1$o, templateObject_2$i, templateObject_3$g, templateObject_4$c;
|
|
11115
11171
|
|
|
11116
11172
|
exports.SharedContactCard2Service = /** @class */ (function () {
|
|
11117
11173
|
function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
|
|
@@ -11270,9 +11326,9 @@
|
|
|
11270
11326
|
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}"])));
|
|
11271
11327
|
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);
|
|
11272
11328
|
var SharedTpPasswordResetQuery = gqlTyped(templateObject_3$h || (templateObject_3$h = __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);
|
|
11273
|
-
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$
|
|
11274
|
-
var TpPasswordResetQuery = gqlTyped(templateObject_5$
|
|
11275
|
-
var templateObject_1$p, templateObject_2$j, templateObject_3$h, templateObject_4$
|
|
11329
|
+
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$d || (templateObject_4$d = __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}"])));
|
|
11330
|
+
var TpPasswordResetQuery = gqlTyped(templateObject_5$b || (templateObject_5$b = __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}"])));
|
|
11331
|
+
var templateObject_1$p, templateObject_2$j, templateObject_3$h, templateObject_4$d, templateObject_5$b;
|
|
11276
11332
|
|
|
11277
11333
|
exports.ɵn = /** @class */ (function (_super) {
|
|
11278
11334
|
__extends(TpPasswordResetPrivateService, _super);
|
|
@@ -11750,12 +11806,20 @@
|
|
|
11750
11806
|
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"])));
|
|
11751
11807
|
var ShareDirectoryMutation = gqlTyped(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n }\n"], ["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n }\n"])));
|
|
11752
11808
|
var UnshareDirectoryMutation = gqlTyped(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n }\n"], ["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n }\n"])));
|
|
11753
|
-
var ShareFileMutation = gqlTyped(templateObject_4$
|
|
11754
|
-
var UnshareFileMutation = gqlTyped(templateObject_5$
|
|
11755
|
-
var
|
|
11756
|
-
var
|
|
11757
|
-
var
|
|
11758
|
-
var
|
|
11809
|
+
var ShareFileMutation = gqlTyped(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n }\n"], ["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n }\n"])));
|
|
11810
|
+
var UnshareFileMutation = gqlTyped(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n mutation UnshareFileMutation($input: UnshareFileInput!) {\n unshareFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n }\n"], ["\n mutation UnshareFileMutation($input: UnshareFileInput!) {\n unshareFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n }\n"])));
|
|
11811
|
+
var CreateSharedDirectoryMutation = gqlTyped(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\nmutation CreateSharedDirectoryMutation($input: CreateSharedDirectoryInput!) {\n createSharedDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n}\n"], ["\nmutation CreateSharedDirectoryMutation($input: CreateSharedDirectoryInput!) {\n createSharedDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n}\n"])));
|
|
11812
|
+
var CreateSharedFileMutation = gqlTyped(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\nmutation CreateSharedFileMutation($input: CreateSharedFileInput!) {\n createSharedFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n}\n"], ["\nmutation CreateSharedFileMutation($input: CreateSharedFileInput!) {\n createSharedFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n}\n"])));
|
|
11813
|
+
var UpdateSharedDirectoryMutation = gqlTyped(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\nmutation UpdateSharedDirectoryMutation($input: UpdateSharedDirectoryInput!) {\n updateSharedDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n}\n"], ["\nmutation UpdateSharedDirectoryMutation($input: UpdateSharedDirectoryInput!) {\n updateSharedDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n}\n"])));
|
|
11814
|
+
var UpdateSharedFileMutation = gqlTyped(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\nmutation UpdateSharedFileMutation($input: UpdateSharedFileInput!) {\n updateSharedFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n}\n"], ["\nmutation UpdateSharedFileMutation($input: UpdateSharedFileInput!) {\n updateSharedFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n}\n"])));
|
|
11815
|
+
var DeleteSharedDirectoryMutation = gqlTyped(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\nmutation DeleteSharedDirectoryMutation($input: DeleteSharedDirectoryInput!) {\n deleteSharedDirectory(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteSharedDirectoryMutation($input: DeleteSharedDirectoryInput!) {\n deleteSharedDirectory(input: $input) {\n id\n }\n}\n"])));
|
|
11816
|
+
var DeleteSharedFileMutation = gqlTyped(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\nmutation DeleteSharedFileMutation($input: DeleteSharedFileInput!) {\n deleteSharedFile(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteSharedFileMutation($input: DeleteSharedFileInput!) {\n deleteSharedFile(input: $input) {\n id\n }\n}\n"])));
|
|
11817
|
+
var CompleteDetachedSharedDirectoryMutation = gqlTyped(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\nmutation CompleteDetachedSharedDirectoryMutation($input: CompleteDetachedSharedDirectoryInput!) {\n completeDetachedSharedDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n}\n"], ["\nmutation CompleteDetachedSharedDirectoryMutation($input: CompleteDetachedSharedDirectoryInput!) {\n completeDetachedSharedDirectory(input: $input) {\n tpSharedDirectory {\n id\n }\n }\n}\n"])));
|
|
11818
|
+
var CompleteDetachedSharedFileMutation = gqlTyped(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\nmutation CompleteDetachedSharedFileMutation($input: CompleteDetachedSharedFileInput!) {\n completeDetachedSharedFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n}\n"], ["\nmutation CompleteDetachedSharedFileMutation($input: CompleteDetachedSharedFileInput!) {\n completeDetachedSharedFile(input: $input) {\n tpSharedFile {\n id\n }\n }\n}\n"])));
|
|
11819
|
+
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}"])));
|
|
11820
|
+
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"])));
|
|
11821
|
+
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}"])));
|
|
11822
|
+
var templateObject_1$q, templateObject_2$k, templateObject_3$i, templateObject_4$e, templateObject_5$c, templateObject_6$7, templateObject_7$6, templateObject_8$6, templateObject_9$5, templateObject_10$2, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1;
|
|
11759
11823
|
|
|
11760
11824
|
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"])));
|
|
11761
11825
|
var templateObject_1$r;
|
|
@@ -11795,8 +11859,18 @@
|
|
|
11795
11859
|
};
|
|
11796
11860
|
TrustedPartyService.prototype.shareDirectoryMutation = function (options) {
|
|
11797
11861
|
return __awaiter(this, void 0, void 0, function () {
|
|
11798
|
-
|
|
11799
|
-
|
|
11862
|
+
var _a, _b;
|
|
11863
|
+
return __generator(this, function (_c) {
|
|
11864
|
+
switch (_c.label) {
|
|
11865
|
+
case 0:
|
|
11866
|
+
_a = LrMutation.bind;
|
|
11867
|
+
_b = {
|
|
11868
|
+
mutation: ShareDirectoryMutation
|
|
11869
|
+
};
|
|
11870
|
+
return [4 /*yield*/, this.prepareShareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
11871
|
+
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
11872
|
+
_b)]))()];
|
|
11873
|
+
}
|
|
11800
11874
|
});
|
|
11801
11875
|
});
|
|
11802
11876
|
};
|
|
@@ -11809,21 +11883,32 @@
|
|
|
11809
11883
|
};
|
|
11810
11884
|
TrustedPartyService.prototype.shareFileMutation = function (options) {
|
|
11811
11885
|
return __awaiter(this, void 0, void 0, function () {
|
|
11812
|
-
|
|
11813
|
-
|
|
11886
|
+
var _a, _b;
|
|
11887
|
+
return __generator(this, function (_c) {
|
|
11888
|
+
switch (_c.label) {
|
|
11889
|
+
case 0:
|
|
11890
|
+
_a = LrMutation.bind;
|
|
11891
|
+
_b = {
|
|
11892
|
+
mutation: ShareFileMutation
|
|
11893
|
+
};
|
|
11894
|
+
return [4 /*yield*/, this.prepareShareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
11895
|
+
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
11896
|
+
_b)]))()];
|
|
11897
|
+
}
|
|
11814
11898
|
});
|
|
11815
11899
|
});
|
|
11816
11900
|
};
|
|
11817
|
-
TrustedPartyService.prototype.
|
|
11818
|
-
var itemId = _a.itemId, itemKeyId = _a.itemKeyId, tpId = _a.tpId, tpSharedKeyId = _a.tpSharedKeyId, accessRole = _a.accessRole, isDirectory = _a.isDirectory;
|
|
11901
|
+
TrustedPartyService.prototype.prepareShareItemMutation = function (options) {
|
|
11819
11902
|
return __awaiter(this, void 0, void 0, function () {
|
|
11820
|
-
var itemKey, wrappingKey, wrappedKey;
|
|
11903
|
+
var itemId, itemKeyId, tpId, tpSharedKeyId, accessRole, isDirectory, itemKey, wrappingKey, wrappedKey;
|
|
11821
11904
|
var _this = this;
|
|
11822
11905
|
return __generator(this, function (_a) {
|
|
11823
11906
|
switch (_a.label) {
|
|
11824
|
-
case 0:
|
|
11825
|
-
|
|
11826
|
-
|
|
11907
|
+
case 0:
|
|
11908
|
+
itemId = options.itemId, itemKeyId = options.itemKeyId, tpId = options.tpId, tpSharedKeyId = options.tpSharedKeyId, accessRole = options.accessRole, isDirectory = options.isDirectory;
|
|
11909
|
+
return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
11910
|
+
? _this.itemService.getDirectoryKeyId(itemId)
|
|
11911
|
+
: _this.itemService.getFileKeyId(itemId); })];
|
|
11827
11912
|
case 1:
|
|
11828
11913
|
itemKey = _a.sent();
|
|
11829
11914
|
return [4 /*yield*/, this.keyGraph.getKey(tpSharedKeyId, function () { return _this.getTpCurrentUserSharedKey(tpId).then(function (res) { return res.sharedKey.id; }); })];
|
|
@@ -11832,19 +11917,16 @@
|
|
|
11832
11917
|
return [4 /*yield*/, this.keyGraph.wrapKey(wrappingKey, itemKey.jwk)];
|
|
11833
11918
|
case 3:
|
|
11834
11919
|
wrappedKey = _a.sent();
|
|
11835
|
-
return [2 /*return*/,
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
wrappingKeyId: wrappingKey.id,
|
|
11844
|
-
wrappedKey: wrappedKey,
|
|
11845
|
-
},
|
|
11920
|
+
return [2 /*return*/, {
|
|
11921
|
+
input: {
|
|
11922
|
+
id: itemId,
|
|
11923
|
+
tpId: tpId,
|
|
11924
|
+
accessRole: accessRole,
|
|
11925
|
+
keyId: itemKey.id,
|
|
11926
|
+
wrappingKeyId: wrappingKey.id,
|
|
11927
|
+
wrappedKey: wrappedKey,
|
|
11846
11928
|
},
|
|
11847
|
-
}
|
|
11929
|
+
}];
|
|
11848
11930
|
}
|
|
11849
11931
|
});
|
|
11850
11932
|
});
|
|
@@ -11893,6 +11975,231 @@
|
|
|
11893
11975
|
});
|
|
11894
11976
|
});
|
|
11895
11977
|
};
|
|
11978
|
+
TrustedPartyService.prototype.createSharedDirectory = function (options) {
|
|
11979
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11980
|
+
return __generator(this, function (_a) {
|
|
11981
|
+
return [2 /*return*/, this.mutate(this.createSharedDirectoryMutation(options))];
|
|
11982
|
+
});
|
|
11983
|
+
});
|
|
11984
|
+
};
|
|
11985
|
+
TrustedPartyService.prototype.createSharedDirectoryMutation = function (options) {
|
|
11986
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11987
|
+
var _a, _b;
|
|
11988
|
+
return __generator(this, function (_c) {
|
|
11989
|
+
switch (_c.label) {
|
|
11990
|
+
case 0:
|
|
11991
|
+
_a = LrMutation.bind;
|
|
11992
|
+
_b = {
|
|
11993
|
+
mutation: CreateSharedDirectoryMutation
|
|
11994
|
+
};
|
|
11995
|
+
return [4 /*yield*/, this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
11996
|
+
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
11997
|
+
_b)]))()];
|
|
11998
|
+
}
|
|
11999
|
+
});
|
|
12000
|
+
});
|
|
12001
|
+
};
|
|
12002
|
+
TrustedPartyService.prototype.createSharedFile = function (options) {
|
|
12003
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12004
|
+
return __generator(this, function (_a) {
|
|
12005
|
+
return [2 /*return*/, this.mutate(this.createSharedFileMutation(options))];
|
|
12006
|
+
});
|
|
12007
|
+
});
|
|
12008
|
+
};
|
|
12009
|
+
TrustedPartyService.prototype.createSharedFileMutation = function (options) {
|
|
12010
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12011
|
+
var _a, _b;
|
|
12012
|
+
return __generator(this, function (_c) {
|
|
12013
|
+
switch (_c.label) {
|
|
12014
|
+
case 0:
|
|
12015
|
+
_a = LrMutation.bind;
|
|
12016
|
+
_b = {
|
|
12017
|
+
mutation: CreateSharedFileMutation
|
|
12018
|
+
};
|
|
12019
|
+
return [4 /*yield*/, this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12020
|
+
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
12021
|
+
_b)]))()];
|
|
12022
|
+
}
|
|
12023
|
+
});
|
|
12024
|
+
});
|
|
12025
|
+
};
|
|
12026
|
+
TrustedPartyService.prototype.prepareCreateSharedItemMutation = function (options) {
|
|
12027
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12028
|
+
var itemId, itemKeyId, tpId, tpSharedKeyId, accessRole, isDirectory, shareType, itemKey, wrappingKey, wrappedKey;
|
|
12029
|
+
var _this = this;
|
|
12030
|
+
return __generator(this, function (_a) {
|
|
12031
|
+
switch (_a.label) {
|
|
12032
|
+
case 0:
|
|
12033
|
+
itemId = options.itemId, itemKeyId = options.itemKeyId, tpId = options.tpId, tpSharedKeyId = options.tpSharedKeyId, accessRole = options.accessRole, isDirectory = options.isDirectory, shareType = options.shareType;
|
|
12034
|
+
console.log('createSharedItemMutation()', itemKeyId);
|
|
12035
|
+
return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
12036
|
+
? _this.itemService.getDirectoryKeyId(itemId)
|
|
12037
|
+
: _this.itemService.getFileKeyId(itemId); })];
|
|
12038
|
+
case 1:
|
|
12039
|
+
itemKey = _a.sent();
|
|
12040
|
+
console.log('createSharedItemMutation()', itemKey.id);
|
|
12041
|
+
return [4 /*yield*/, this.keyGraph.getKey(tpSharedKeyId, function () { return _this.getTpCurrentUserSharedKey(tpId).then(function (res) { return res.sharedKey.id; }); })];
|
|
12042
|
+
case 2:
|
|
12043
|
+
wrappingKey = _a.sent();
|
|
12044
|
+
return [4 /*yield*/, this.keyGraph.wrapKey(wrappingKey, itemKey.jwk)];
|
|
12045
|
+
case 3:
|
|
12046
|
+
wrappedKey = _a.sent();
|
|
12047
|
+
return [2 /*return*/, {
|
|
12048
|
+
input: {
|
|
12049
|
+
id: itemId,
|
|
12050
|
+
tpId: tpId,
|
|
12051
|
+
accessRole: accessRole,
|
|
12052
|
+
keyId: itemKey.id,
|
|
12053
|
+
wrappingKeyId: wrappingKey.id,
|
|
12054
|
+
wrappedKey: wrappedKey,
|
|
12055
|
+
shareType: shareType,
|
|
12056
|
+
},
|
|
12057
|
+
}];
|
|
12058
|
+
}
|
|
12059
|
+
});
|
|
12060
|
+
});
|
|
12061
|
+
};
|
|
12062
|
+
TrustedPartyService.prototype.updateSharedDirectory = function (options) {
|
|
12063
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12064
|
+
return __generator(this, function (_a) {
|
|
12065
|
+
return [2 /*return*/, this.mutate(this.updateSharedDirectoryMutation(options))];
|
|
12066
|
+
});
|
|
12067
|
+
});
|
|
12068
|
+
};
|
|
12069
|
+
TrustedPartyService.prototype.updateSharedDirectoryMutation = function (options) {
|
|
12070
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12071
|
+
return __generator(this, function (_a) {
|
|
12072
|
+
return [2 /*return*/, new LrMutation({
|
|
12073
|
+
mutation: UpdateSharedDirectoryMutation,
|
|
12074
|
+
variables: this.prepareUpdateSharedItemMutation(options),
|
|
12075
|
+
})];
|
|
12076
|
+
});
|
|
12077
|
+
});
|
|
12078
|
+
};
|
|
12079
|
+
TrustedPartyService.prototype.updateSharedFile = function (options) {
|
|
12080
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12081
|
+
return __generator(this, function (_a) {
|
|
12082
|
+
return [2 /*return*/, this.mutate(this.updateSharedFileMutation(options))];
|
|
12083
|
+
});
|
|
12084
|
+
});
|
|
12085
|
+
};
|
|
12086
|
+
TrustedPartyService.prototype.updateSharedFileMutation = function (options) {
|
|
12087
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12088
|
+
return __generator(this, function (_a) {
|
|
12089
|
+
return [2 /*return*/, new LrMutation({
|
|
12090
|
+
mutation: UpdateSharedFileMutation,
|
|
12091
|
+
variables: this.prepareUpdateSharedItemMutation(options),
|
|
12092
|
+
})];
|
|
12093
|
+
});
|
|
12094
|
+
});
|
|
12095
|
+
};
|
|
12096
|
+
TrustedPartyService.prototype.prepareUpdateSharedItemMutation = function (options) {
|
|
12097
|
+
var sharedItemId = options.sharedItemId, accessRole = options.accessRole;
|
|
12098
|
+
return {
|
|
12099
|
+
input: {
|
|
12100
|
+
id: sharedItemId,
|
|
12101
|
+
accessRole: accessRole,
|
|
12102
|
+
},
|
|
12103
|
+
};
|
|
12104
|
+
};
|
|
12105
|
+
TrustedPartyService.prototype.deleteSharedDirectory = function (id) {
|
|
12106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12107
|
+
return __generator(this, function (_a) {
|
|
12108
|
+
return [2 /*return*/, this.mutate(this.deleteSharedDirectoryMutation(id))];
|
|
12109
|
+
});
|
|
12110
|
+
});
|
|
12111
|
+
};
|
|
12112
|
+
TrustedPartyService.prototype.deleteSharedDirectoryMutation = function (id) {
|
|
12113
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12114
|
+
return __generator(this, function (_a) {
|
|
12115
|
+
return [2 /*return*/, new LrMutation({
|
|
12116
|
+
mutation: DeleteSharedDirectoryMutation,
|
|
12117
|
+
variables: {
|
|
12118
|
+
input: {
|
|
12119
|
+
id: id,
|
|
12120
|
+
},
|
|
12121
|
+
},
|
|
12122
|
+
})];
|
|
12123
|
+
});
|
|
12124
|
+
});
|
|
12125
|
+
};
|
|
12126
|
+
TrustedPartyService.prototype.completeDetachedSharedDirectory = function (options) {
|
|
12127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12128
|
+
return __generator(this, function (_a) {
|
|
12129
|
+
return [2 /*return*/, this.mutate(this.completeDetachedSharedDirectoryMutation(options))];
|
|
12130
|
+
});
|
|
12131
|
+
});
|
|
12132
|
+
};
|
|
12133
|
+
TrustedPartyService.prototype.completeDetachedSharedDirectoryMutation = function (options) {
|
|
12134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12135
|
+
var _a, _b;
|
|
12136
|
+
return __generator(this, function (_c) {
|
|
12137
|
+
switch (_c.label) {
|
|
12138
|
+
case 0:
|
|
12139
|
+
_a = LrMutation.bind;
|
|
12140
|
+
_b = {
|
|
12141
|
+
mutation: CompleteDetachedSharedDirectoryMutation
|
|
12142
|
+
};
|
|
12143
|
+
return [4 /*yield*/, this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
12144
|
+
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
12145
|
+
_b)]))()];
|
|
12146
|
+
}
|
|
12147
|
+
});
|
|
12148
|
+
});
|
|
12149
|
+
};
|
|
12150
|
+
TrustedPartyService.prototype.completeDetachedSharedFile = function (options) {
|
|
12151
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12152
|
+
return __generator(this, function (_a) {
|
|
12153
|
+
return [2 /*return*/, this.mutate(this.completeDetachedSharedFileMutation(options))];
|
|
12154
|
+
});
|
|
12155
|
+
});
|
|
12156
|
+
};
|
|
12157
|
+
TrustedPartyService.prototype.completeDetachedSharedFileMutation = function (options) {
|
|
12158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12159
|
+
var _a, _b;
|
|
12160
|
+
return __generator(this, function (_c) {
|
|
12161
|
+
switch (_c.label) {
|
|
12162
|
+
case 0:
|
|
12163
|
+
_a = LrMutation.bind;
|
|
12164
|
+
_b = {
|
|
12165
|
+
mutation: CompleteDetachedSharedFileMutation
|
|
12166
|
+
};
|
|
12167
|
+
return [4 /*yield*/, this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
12168
|
+
case 1: return [2 /*return*/, new (_a.apply(LrMutation, [void 0, (_b.variables = _c.sent(),
|
|
12169
|
+
_b)]))()];
|
|
12170
|
+
}
|
|
12171
|
+
});
|
|
12172
|
+
});
|
|
12173
|
+
};
|
|
12174
|
+
TrustedPartyService.prototype.prepareCompleteDetachedSharedItemMutation = function (options) {
|
|
12175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12176
|
+
var sharedItemId, itemKeyId, isDirectory, itemKey, rootKey, wrappedKey;
|
|
12177
|
+
var _this = this;
|
|
12178
|
+
return __generator(this, function (_a) {
|
|
12179
|
+
switch (_a.label) {
|
|
12180
|
+
case 0:
|
|
12181
|
+
sharedItemId = options.sharedItemId, itemKeyId = options.itemKeyId, isDirectory = options.isDirectory;
|
|
12182
|
+
return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
12183
|
+
? _this.itemService.getDirectoryKeyIdFromSharedDirectory(sharedItemId)
|
|
12184
|
+
: _this.itemService.getFileKeyIdFromSharedFile(sharedItemId); })];
|
|
12185
|
+
case 1:
|
|
12186
|
+
itemKey = _a.sent();
|
|
12187
|
+
rootKey = this.keyService.currentRootKey;
|
|
12188
|
+
return [4 /*yield*/, this.keyGraph.wrapKey(rootKey, itemKey.jwk)];
|
|
12189
|
+
case 2:
|
|
12190
|
+
wrappedKey = _a.sent();
|
|
12191
|
+
return [2 /*return*/, {
|
|
12192
|
+
input: {
|
|
12193
|
+
id: sharedItemId,
|
|
12194
|
+
keyId: itemKey.id,
|
|
12195
|
+
wrappingKeyId: rootKey.id,
|
|
12196
|
+
wrappedKey: wrappedKey,
|
|
12197
|
+
},
|
|
12198
|
+
}];
|
|
12199
|
+
}
|
|
12200
|
+
});
|
|
12201
|
+
});
|
|
12202
|
+
};
|
|
11896
12203
|
TrustedPartyService.prototype.requestMkReshareMutation = function (tpId) {
|
|
11897
12204
|
return __awaiter(this, void 0, void 0, function () {
|
|
11898
12205
|
var userSharedKey, masterKey, prk, mkWrappedMkPrk, sharedKey, mkReshareRequestCipher;
|