@lifeready/core 6.1.2 → 6.1.4
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 +359 -344
- 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/auth/auth.config.js +57 -0
- package/esm2015/lib/auth/auth.gql.private.js +85 -0
- package/esm2015/lib/auth/auth.service.js +602 -0
- package/esm2015/lib/auth/auth.types.js +21 -0
- package/esm2015/lib/item/item.gql.js +164 -0
- package/esm2015/lib/item/item.gql.private.js +23 -0
- package/esm2015/lib/item/item.service.js +592 -0
- package/esm2015/lib/item/item.types.js +2 -0
- package/esm2015/lib/key-exchange/key-exchange.gql.js +174 -0
- package/esm2015/lib/key-exchange/key-exchange.service.js +480 -0
- package/esm2015/lib/lbop/lbop.service.js +7 -15
- package/esm2015/lib/life-ready.module.js +2 -2
- package/esm2015/lib/password/password.service.js +1 -1
- package/esm2015/lib/plan/plan.gql.js +91 -0
- package/esm2015/lib/plan/plan.service.js +191 -0
- package/esm2015/lib/plan/plan.types.js +2 -0
- package/esm2015/lib/profile/profile.gql.js +2 -64
- package/esm2015/lib/profile/profile.service.js +1 -8
- package/esm2015/lib/profile/profile.types.js +1 -8
- package/esm2015/lib/scenario/scenario.service.js +8 -8
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party.gql.js +64 -0
- package/esm2015/lib/trusted-party/trusted-party.gql.private.js +25 -0
- package/esm2015/lib/trusted-party/trusted-party.service.js +240 -0
- package/esm2015/lib/trusted-party/trusted-party.types.js +2 -0
- package/esm2015/public-api.js +17 -11
- package/fesm2015/lifeready-core.js +373 -456
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/{auth2/auth2.service.d.ts → auth/auth.service.d.ts} +2 -2
- package/lib/{item2/item2.service.d.ts → item/item.service.d.ts} +39 -39
- package/lib/key-exchange/{key-exchange2.gql.d.ts → key-exchange.gql.d.ts} +27 -13
- package/lib/key-exchange/{key-exchange2.service.d.ts → key-exchange.service.d.ts} +5 -5
- package/lib/lbop/lbop.service.d.ts +1 -5
- package/lib/password/password.service.d.ts +1 -1
- package/lib/{plan2/plan2.service.d.ts → plan/plan.service.d.ts} +20 -20
- package/lib/profile/profile.gql.d.ts +0 -2
- package/lib/profile/profile.service.d.ts +1 -2
- package/lib/profile/profile.types.d.ts +2 -15
- package/lib/scenario/scenario.service.d.ts +3 -3
- package/lib/shared-contact-card/shared-contact-card2.service.d.ts +1 -1
- package/lib/trusted-party/{trusted-party2.service.d.ts → trusted-party.service.d.ts} +6 -6
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +16 -10
- package/esm2015/lib/auth2/auth.config.js +0 -57
- package/esm2015/lib/auth2/auth2.gql.private.js +0 -85
- package/esm2015/lib/auth2/auth2.service.js +0 -602
- package/esm2015/lib/auth2/auth2.types.js +0 -21
- package/esm2015/lib/item2/item2.gql.js +0 -164
- package/esm2015/lib/item2/item2.gql.private.js +0 -23
- package/esm2015/lib/item2/item2.service.js +0 -592
- package/esm2015/lib/item2/item2.types.js +0 -2
- package/esm2015/lib/key-exchange/key-exchange2.gql.js +0 -172
- package/esm2015/lib/key-exchange/key-exchange2.service.js +0 -480
- package/esm2015/lib/plan2/plan2.gql.js +0 -91
- package/esm2015/lib/plan2/plan2.service.js +0 -191
- package/esm2015/lib/plan2/plan2.types.js +0 -2
- package/esm2015/lib/trusted-party/trusted-party2.gql.js +0 -64
- package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +0 -25
- package/esm2015/lib/trusted-party/trusted-party2.service.js +0 -240
- package/esm2015/lib/trusted-party/trusted-party2.types.js +0 -2
- /package/lib/{auth2 → auth}/auth.config.d.ts +0 -0
- /package/lib/{auth2/auth2.gql.private.d.ts → auth/auth.gql.private.d.ts} +0 -0
- /package/lib/{auth2/auth2.types.d.ts → auth/auth.types.d.ts} +0 -0
- /package/lib/{item2/item2.gql.d.ts → item/item.gql.d.ts} +0 -0
- /package/lib/{item2/item2.gql.private.d.ts → item/item.gql.private.d.ts} +0 -0
- /package/lib/{item2/item2.types.d.ts → item/item.types.d.ts} +0 -0
- /package/lib/{plan2/plan2.gql.d.ts → plan/plan.gql.d.ts} +0 -0
- /package/lib/{plan2/plan2.types.d.ts → plan/plan.types.d.ts} +0 -0
- /package/lib/trusted-party/{trusted-party2.gql.d.ts → trusted-party.gql.d.ts} +0 -0
- /package/lib/trusted-party/{trusted-party2.gql.private.d.ts → trusted-party.gql.private.d.ts} +0 -0
- /package/lib/trusted-party/{trusted-party2.types.d.ts → trusted-party.types.d.ts} +0 -0
|
@@ -4365,6 +4365,19 @@
|
|
|
4365
4365
|
]; };
|
|
4366
4366
|
var templateObject_1$5;
|
|
4367
4367
|
|
|
4368
|
+
var KeyExchangeFields = "\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n config\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n";
|
|
4369
|
+
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";
|
|
4370
|
+
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);
|
|
4371
|
+
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);
|
|
4372
|
+
var KeyExchangeTokenQuery2 = gqlTyped(templateObject_3$2 || (templateObject_3$2 = __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);
|
|
4373
|
+
var CancelKeyExchangeMutation = gqlTyped(templateObject_4$2 || (templateObject_4$2 = __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"])));
|
|
4374
|
+
var DeclineKeyExchangeMutation = gqlTyped(templateObject_5$2 || (templateObject_5$2 = __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"])));
|
|
4375
|
+
var InitiateKeyExchangeOtkMutation = gqlTyped(templateObject_6$2 || (templateObject_6$2 = __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);
|
|
4376
|
+
var RespondKeyExchangeOtkMutation = gqlTyped(templateObject_7$1 || (templateObject_7$1 = __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);
|
|
4377
|
+
var CompleteKeyExchangeOtkMutation = gqlTyped(templateObject_8$1 || (templateObject_8$1 = __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);
|
|
4378
|
+
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);
|
|
4379
|
+
var templateObject_1$6, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
|
|
4380
|
+
|
|
4368
4381
|
(function (FeatureAction) {
|
|
4369
4382
|
// Just the one for now
|
|
4370
4383
|
FeatureAction["ACCESS"] = "access";
|
|
@@ -4418,15 +4431,6 @@
|
|
|
4418
4431
|
}
|
|
4419
4432
|
return MainContactCardPlainFields;
|
|
4420
4433
|
}());
|
|
4421
|
-
(function (PasswordChangeStatus) {
|
|
4422
|
-
PasswordChangeStatus["InProgress"] = "IN_PROGRESS";
|
|
4423
|
-
PasswordChangeStatus["Recovery"] = "RECOVERY";
|
|
4424
|
-
})(exports.PasswordChangeStatus || (exports.PasswordChangeStatus = {}));
|
|
4425
|
-
var PassIdpApiResult = /** @class */ (function () {
|
|
4426
|
-
function PassIdpApiResult() {
|
|
4427
|
-
}
|
|
4428
|
-
return PassIdpApiResult;
|
|
4429
|
-
}());
|
|
4430
4434
|
var TrustedPartyDetails = /** @class */ (function () {
|
|
4431
4435
|
function TrustedPartyDetails() {
|
|
4432
4436
|
}
|
|
@@ -4460,7 +4464,7 @@
|
|
|
4460
4464
|
}());
|
|
4461
4465
|
|
|
4462
4466
|
var SharedContactCardFields = "\n id\n owner {\n id\n username\n }\n ownerKey {\n id\n }\n ownerCipherData\n receiver {\n id\n username\n }\n receiverKey {\n id\n }\n receiverCipherData\n sharedKey {\n id\n }\n sharedCipherData\n sharedCipherDataSig\n sharedCipherDataSigPxk {\n id\n }\n";
|
|
4463
|
-
var UpdateOwnedContactCard = gql__default['default'](templateObject_1$
|
|
4467
|
+
var UpdateOwnedContactCard = gql__default['default'](templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\nmutation UpdateOwnedContactCard(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(\n input: $input\n ) {\n ownedContactCard {\n ", "\n }\n }\n}"], ["\nmutation UpdateOwnedContactCard(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(\n input: $input\n ) {\n ownedContactCard {\n ", "\n }\n }\n}"])), SharedContactCardFields);
|
|
4464
4468
|
var SharedContactCardService = /** @class */ (function () {
|
|
4465
4469
|
function SharedContactCardService(keyService, lrApollo, keyGraph, encryptionService) {
|
|
4466
4470
|
this.keyService = keyService;
|
|
@@ -4565,17 +4569,15 @@
|
|
|
4565
4569
|
{ type: KeyGraphService },
|
|
4566
4570
|
{ type: EncryptionService }
|
|
4567
4571
|
]; };
|
|
4568
|
-
var templateObject_1$
|
|
4572
|
+
var templateObject_1$7;
|
|
4569
4573
|
|
|
4570
|
-
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";
|
|
4571
|
-
var KeyExchangeFields = "\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n}";
|
|
4572
4574
|
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 }";
|
|
4573
|
-
var CurrentUserQuery = gql__default['default'](templateObject_1$
|
|
4574
|
-
var CreateContactCardMutation$1 = gql__default['default'](templateObject_2$
|
|
4575
|
-
var UpdateContactCardMutation$1 = gql__default['default'](templateObject_3$
|
|
4576
|
-
var TrustedPartiesQuery = gqlTyped(templateObject_4$
|
|
4577
|
-
var ContactCardsQuery = gqlTyped(templateObject_5$
|
|
4578
|
-
var templateObject_1$
|
|
4575
|
+
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);
|
|
4576
|
+
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"])));
|
|
4577
|
+
var UpdateContactCardMutation$1 = gql__default['default'](templateObject_3$3 || (templateObject_3$3 = __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"])));
|
|
4578
|
+
var TrustedPartiesQuery = gqlTyped(templateObject_4$3 || (templateObject_4$3 = __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);
|
|
4579
|
+
var ContactCardsQuery = gqlTyped(templateObject_5$3 || (templateObject_5$3 = __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"])));
|
|
4580
|
+
var templateObject_1$8, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$3;
|
|
4579
4581
|
|
|
4580
4582
|
var ProfileService = /** @class */ (function () {
|
|
4581
4583
|
function ProfileService(config, http, lrApollo, keyService, keyMetaService, keyGraph, encryptionService) {
|
|
@@ -4587,18 +4589,6 @@
|
|
|
4587
4589
|
this.keyGraph = keyGraph;
|
|
4588
4590
|
this.encryptionService = encryptionService;
|
|
4589
4591
|
}
|
|
4590
|
-
ProfileService.prototype.getPassIdpParams = function (emailOrPhone) {
|
|
4591
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4592
|
-
return __generator(this, function (_a) {
|
|
4593
|
-
switch (_a.label) {
|
|
4594
|
-
case 0: return [4 /*yield*/, this.http
|
|
4595
|
-
.get(this.config.authUrl + "users/pass-idp-params/?login_name=" + encodeURIComponent(emailOrPhone))
|
|
4596
|
-
.toPromise()];
|
|
4597
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
4598
|
-
}
|
|
4599
|
-
});
|
|
4600
|
-
});
|
|
4601
|
-
};
|
|
4602
4592
|
ProfileService.prototype.getCurrentUser = function () {
|
|
4603
4593
|
return __awaiter(this, void 0, void 0, function () {
|
|
4604
4594
|
var _a, currentUser, contactCards, contactCard;
|
|
@@ -4826,10 +4816,10 @@
|
|
|
4826
4816
|
{ type: EncryptionService }
|
|
4827
4817
|
]; };
|
|
4828
4818
|
|
|
4829
|
-
var PasswordChangeRequestMutation = gql__default['default'](templateObject_1$
|
|
4830
|
-
var PasswordChangeMutation = gql__default['default'](templateObject_2$
|
|
4831
|
-
var PasswordChangeConfigQuery = gql__default['default'](templateObject_3$
|
|
4832
|
-
var templateObject_1$
|
|
4819
|
+
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"])));
|
|
4820
|
+
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"])));
|
|
4821
|
+
var PasswordChangeConfigQuery = gql__default['default'](templateObject_3$4 || (templateObject_3$4 = __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"])));
|
|
4822
|
+
var templateObject_1$9, templateObject_2$5, templateObject_3$4;
|
|
4833
4823
|
|
|
4834
4824
|
// Ref: https://stackoverflow.com/questions/59735280/angular-8-moment-error-cannot-call-a-namespace-moment
|
|
4835
4825
|
var moment$1 = moment___namespace;
|
|
@@ -5455,8 +5445,8 @@
|
|
|
5455
5445
|
},] }
|
|
5456
5446
|
];
|
|
5457
5447
|
|
|
5458
|
-
var TpsKeysQuery = gqlTyped(templateObject_1$
|
|
5459
|
-
var templateObject_1$
|
|
5448
|
+
var TpsKeysQuery = gqlTyped(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\nquery TpsKeysQuery($ids: [ID]) {\n tps(id_In: $ids) {\n edges {\n node {\n id\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n }\n }\n }\n }\n }\n}"], ["\nquery TpsKeysQuery($ids: [ID]) {\n tps(id_In: $ids) {\n edges {\n node {\n id\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n }\n }\n }\n }\n }\n}"])));
|
|
5449
|
+
var templateObject_1$a;
|
|
5460
5450
|
|
|
5461
5451
|
var TpAssemblyController = /** @class */ (function () {
|
|
5462
5452
|
function TpAssemblyController(injector) {
|
|
@@ -5983,16 +5973,16 @@
|
|
|
5983
5973
|
})
|
|
5984
5974
|
], exports.ɵi);
|
|
5985
5975
|
|
|
5986
|
-
var CancelTpPasswordResetRequestMutation = gqlTyped(templateObject_1$
|
|
5987
|
-
var CreateTpAssemblyKeyChallengeMutation = gqlTyped(templateObject_2$
|
|
5988
|
-
var PreCompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_3$
|
|
5989
|
-
var CompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_4$
|
|
5990
|
-
var ApproveTpPasswordResetRequestMutation = gqlTyped(templateObject_5$
|
|
5991
|
-
var RejectTpPasswordResetRequestMutation = gqlTyped(templateObject_6$
|
|
5992
|
-
var CreateTpPasswordResetMutation = gqlTyped(templateObject_7$
|
|
5993
|
-
var DeleteTpPasswordResetMutation = gqlTyped(templateObject_8$
|
|
5994
|
-
var UpdateTpPasswordResetMutation = gqlTyped(templateObject_9 || (templateObject_9 = __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}"])));
|
|
5995
|
-
var templateObject_1$
|
|
5976
|
+
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}"])));
|
|
5977
|
+
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}"])));
|
|
5978
|
+
var PreCompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_3$5 || (templateObject_3$5 = __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}"])));
|
|
5979
|
+
var CompleteTpPasswordResetRequestMutation = gqlTyped(templateObject_4$4 || (templateObject_4$4 = __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}"])));
|
|
5980
|
+
var ApproveTpPasswordResetRequestMutation = gqlTyped(templateObject_5$4 || (templateObject_5$4 = __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}"])));
|
|
5981
|
+
var RejectTpPasswordResetRequestMutation = gqlTyped(templateObject_6$3 || (templateObject_6$3 = __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}"])));
|
|
5982
|
+
var CreateTpPasswordResetMutation = gqlTyped(templateObject_7$2 || (templateObject_7$2 = __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}"])));
|
|
5983
|
+
var DeleteTpPasswordResetMutation = gqlTyped(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\nmutation DeleteTpPasswordResetMutation {\n deleteTpPasswordReset(input: {}) {\n id\n }\n}"], ["\nmutation DeleteTpPasswordResetMutation {\n deleteTpPasswordReset(input: {}) {\n id\n }\n}"])));
|
|
5984
|
+
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}"])));
|
|
5985
|
+
var templateObject_1$b, templateObject_2$6, templateObject_3$5, templateObject_4$4, templateObject_5$4, templateObject_6$3, templateObject_7$2, templateObject_8$2, templateObject_9$1;
|
|
5996
5986
|
|
|
5997
5987
|
var KeyContainer = /** @class */ (function () {
|
|
5998
5988
|
function KeyContainer(_key, timeout) {
|
|
@@ -6028,43 +6018,31 @@
|
|
|
6028
6018
|
return KeyContainer;
|
|
6029
6019
|
}());
|
|
6030
6020
|
|
|
6031
|
-
var CurrentUserQuery$1 = gqlTyped(templateObject_1$
|
|
6032
|
-
var ResetUserQuery = gqlTyped(templateObject_2$
|
|
6033
|
-
var SetSessionEncryptionKeyMutation = gqlTyped(templateObject_3$
|
|
6034
|
-
var templateObject_1$
|
|
6021
|
+
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);
|
|
6022
|
+
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}"])));
|
|
6023
|
+
var SetSessionEncryptionKeyMutation = gqlTyped(templateObject_3$6 || (templateObject_3$6 = __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"])));
|
|
6024
|
+
var templateObject_1$c, templateObject_2$7, templateObject_3$6;
|
|
6035
6025
|
|
|
6036
|
-
var RecoveryStatus;
|
|
6037
6026
|
(function (RecoveryStatus) {
|
|
6038
6027
|
RecoveryStatus["NONE"] = "NONE";
|
|
6039
6028
|
RecoveryStatus["NEW_PASSWORD"] = "NEW_PASSWORD";
|
|
6040
6029
|
RecoveryStatus["OLD_PASSWORD"] = "OLD_PASSWORD";
|
|
6041
|
-
})(RecoveryStatus || (RecoveryStatus = {}));
|
|
6042
|
-
// TODO restrict this type
|
|
6043
|
-
// export type AuthResetUser = TpPasswordResetUserNode;
|
|
6044
|
-
var PasswordChangeStatus;
|
|
6030
|
+
})(exports.RecoveryStatus || (exports.RecoveryStatus = {}));
|
|
6045
6031
|
(function (PasswordChangeStatus) {
|
|
6046
6032
|
PasswordChangeStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
6047
6033
|
PasswordChangeStatus["RECOVERY"] = "RECOVERY";
|
|
6048
|
-
})(PasswordChangeStatus || (PasswordChangeStatus = {}));
|
|
6049
|
-
var CognitoChallengeName;
|
|
6034
|
+
})(exports.PasswordChangeStatus || (exports.PasswordChangeStatus = {}));
|
|
6050
6035
|
(function (CognitoChallengeName) {
|
|
6051
6036
|
CognitoChallengeName["NEW_PASSWORD_REQUIRED"] = "NEW_PASSWORD_REQUIRED";
|
|
6052
6037
|
CognitoChallengeName["SMS_MFA"] = "SMS_MFA";
|
|
6053
6038
|
CognitoChallengeName["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
|
|
6054
6039
|
CognitoChallengeName["MFA_SETUP"] = "MFA_SETUP";
|
|
6055
|
-
})(CognitoChallengeName || (CognitoChallengeName = {}));
|
|
6040
|
+
})(exports.CognitoChallengeName || (exports.CognitoChallengeName = {}));
|
|
6056
6041
|
|
|
6057
|
-
var
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
get CognitoChallengeName () { return CognitoChallengeName; }
|
|
6062
|
-
});
|
|
6063
|
-
|
|
6064
|
-
var Auth2Service_1;
|
|
6065
|
-
exports.Auth2Service = Auth2Service_1 = /** @class */ (function (_super) {
|
|
6066
|
-
__extends(Auth2Service, _super);
|
|
6067
|
-
function Auth2Service(ngZone, injector, http, cognito, api, keyService, keyGraphService, keyFactoryService, passwordService, idleService, persistService, encryptionService, assemblyController, kcConfig) {
|
|
6042
|
+
var AuthService_1;
|
|
6043
|
+
exports.AuthService = AuthService_1 = /** @class */ (function (_super) {
|
|
6044
|
+
__extends(AuthService, _super);
|
|
6045
|
+
function AuthService(ngZone, injector, http, cognito, api, keyService, keyGraphService, keyFactoryService, passwordService, idleService, persistService, encryptionService, assemblyController, kcConfig) {
|
|
6068
6046
|
var _this = _super.call(this, injector) || this;
|
|
6069
6047
|
_this.ngZone = ngZone;
|
|
6070
6048
|
_this.injector = injector;
|
|
@@ -6092,10 +6070,10 @@
|
|
|
6092
6070
|
}
|
|
6093
6071
|
return _this;
|
|
6094
6072
|
}
|
|
6095
|
-
|
|
6073
|
+
AuthService.prototype.importPassword = function (plainPassword) {
|
|
6096
6074
|
return this.keyFactoryService.importPassword(plainPassword);
|
|
6097
6075
|
};
|
|
6098
|
-
|
|
6076
|
+
AuthService.prototype.logout = function () {
|
|
6099
6077
|
var _a;
|
|
6100
6078
|
return __awaiter(this, void 0, void 0, function () {
|
|
6101
6079
|
return __generator(this, function (_b) {
|
|
@@ -6122,13 +6100,13 @@
|
|
|
6122
6100
|
});
|
|
6123
6101
|
});
|
|
6124
6102
|
};
|
|
6125
|
-
|
|
6103
|
+
AuthService.prototype.addLogoutListener = function (callback) {
|
|
6126
6104
|
this.logoutListeners.add(callback);
|
|
6127
6105
|
};
|
|
6128
|
-
|
|
6106
|
+
AuthService.prototype.removeLogoutListener = function (callback) {
|
|
6129
6107
|
this.logoutListeners.delete(callback);
|
|
6130
6108
|
};
|
|
6131
|
-
|
|
6109
|
+
AuthService.prototype.login = function (emailOrPhone, password, _b) {
|
|
6132
6110
|
var _c = _b === void 0 ? {} : _b, _d = _c.tpPasswordResetAutoComplete, tpPasswordResetAutoComplete = _d === void 0 ? true : _d;
|
|
6133
6111
|
var _a;
|
|
6134
6112
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -6140,7 +6118,7 @@
|
|
|
6140
6118
|
loginResult = _b.sent();
|
|
6141
6119
|
// Save the password for use after meeting challenge.
|
|
6142
6120
|
if (loginResult.challenge) {
|
|
6143
|
-
this.password = new KeyContainer(password,
|
|
6121
|
+
this.password = new KeyContainer(password, AuthService_1.CHALLENGE_TIMEOUT);
|
|
6144
6122
|
return [2 /*return*/, loginResult];
|
|
6145
6123
|
}
|
|
6146
6124
|
if (!(tpPasswordResetAutoComplete &&
|
|
@@ -6157,7 +6135,7 @@
|
|
|
6157
6135
|
});
|
|
6158
6136
|
});
|
|
6159
6137
|
};
|
|
6160
|
-
|
|
6138
|
+
AuthService.prototype.verifyLogin = function (options) {
|
|
6161
6139
|
return __awaiter(this, void 0, void 0, function () {
|
|
6162
6140
|
var challenge, code, rememberMe, VALID_CHALLENGE_NAMES, cognitoUser, user;
|
|
6163
6141
|
return __generator(this, function (_b) {
|
|
@@ -6165,8 +6143,8 @@
|
|
|
6165
6143
|
case 0:
|
|
6166
6144
|
challenge = options.challenge, code = options.code, rememberMe = options.rememberMe;
|
|
6167
6145
|
VALID_CHALLENGE_NAMES = [
|
|
6168
|
-
CognitoChallengeName.SMS_MFA,
|
|
6169
|
-
CognitoChallengeName.SOFTWARE_TOKEN_MFA,
|
|
6146
|
+
exports.CognitoChallengeName.SMS_MFA,
|
|
6147
|
+
exports.CognitoChallengeName.SOFTWARE_TOKEN_MFA,
|
|
6170
6148
|
];
|
|
6171
6149
|
if (!VALID_CHALLENGE_NAMES.includes(challenge.cognitoUser.challengeName)) {
|
|
6172
6150
|
throw new KcBadRequestException("challengeName must be one of " + VALID_CHALLENGE_NAMES);
|
|
@@ -6198,7 +6176,7 @@
|
|
|
6198
6176
|
});
|
|
6199
6177
|
});
|
|
6200
6178
|
};
|
|
6201
|
-
|
|
6179
|
+
AuthService.prototype.getUser = function () {
|
|
6202
6180
|
return __awaiter(this, void 0, void 0, function () {
|
|
6203
6181
|
var cognitoUser;
|
|
6204
6182
|
return __generator(this, function (_b) {
|
|
@@ -6215,7 +6193,7 @@
|
|
|
6215
6193
|
});
|
|
6216
6194
|
});
|
|
6217
6195
|
};
|
|
6218
|
-
|
|
6196
|
+
AuthService.prototype.refreshAccessToken = function () {
|
|
6219
6197
|
return __awaiter(this, void 0, void 0, function () {
|
|
6220
6198
|
var cognitoUser, refreshToken;
|
|
6221
6199
|
return __generator(this, function (_b) {
|
|
@@ -6244,7 +6222,7 @@
|
|
|
6244
6222
|
// ----------------------------------------------------------------------------------------------------
|
|
6245
6223
|
// Helpers
|
|
6246
6224
|
// ----------------------------------------------------------------------------------------------------
|
|
6247
|
-
|
|
6225
|
+
AuthService.prototype.fetchCurrentUser = function () {
|
|
6248
6226
|
return __awaiter(this, void 0, void 0, function () {
|
|
6249
6227
|
return __generator(this, function (_b) {
|
|
6250
6228
|
switch (_b.label) {
|
|
@@ -6259,7 +6237,7 @@
|
|
|
6259
6237
|
});
|
|
6260
6238
|
});
|
|
6261
6239
|
};
|
|
6262
|
-
|
|
6240
|
+
AuthService.prototype.fetchResetUser = function () {
|
|
6263
6241
|
return __awaiter(this, void 0, void 0, function () {
|
|
6264
6242
|
return __generator(this, function (_b) {
|
|
6265
6243
|
switch (_b.label) {
|
|
@@ -6274,7 +6252,7 @@
|
|
|
6274
6252
|
});
|
|
6275
6253
|
});
|
|
6276
6254
|
};
|
|
6277
|
-
|
|
6255
|
+
AuthService.prototype.kcLogout = function () {
|
|
6278
6256
|
return __awaiter(this, void 0, void 0, function () {
|
|
6279
6257
|
return __generator(this, function (_b) {
|
|
6280
6258
|
switch (_b.label) {
|
|
@@ -6291,7 +6269,7 @@
|
|
|
6291
6269
|
});
|
|
6292
6270
|
});
|
|
6293
6271
|
};
|
|
6294
|
-
|
|
6272
|
+
AuthService.prototype.fetchPassIdpParams = function (emailOrPhone) {
|
|
6295
6273
|
return __awaiter(this, void 0, void 0, function () {
|
|
6296
6274
|
return __generator(this, function (_b) {
|
|
6297
6275
|
switch (_b.label) {
|
|
@@ -6303,7 +6281,7 @@
|
|
|
6303
6281
|
});
|
|
6304
6282
|
});
|
|
6305
6283
|
};
|
|
6306
|
-
|
|
6284
|
+
AuthService.prototype.loginImpl = function (emailOrPhone, password) {
|
|
6307
6285
|
return __awaiter(this, void 0, void 0, function () {
|
|
6308
6286
|
var loginIdpResult, user;
|
|
6309
6287
|
return __generator(this, function (_b) {
|
|
@@ -6316,8 +6294,8 @@
|
|
|
6316
6294
|
loginIdpResult = _b.sent();
|
|
6317
6295
|
// Can't get the user yet because we still ned to meet MFA challenges
|
|
6318
6296
|
if ([
|
|
6319
|
-
CognitoChallengeName.SMS_MFA,
|
|
6320
|
-
CognitoChallengeName.SOFTWARE_TOKEN_MFA,
|
|
6297
|
+
exports.CognitoChallengeName.SMS_MFA,
|
|
6298
|
+
exports.CognitoChallengeName.SOFTWARE_TOKEN_MFA,
|
|
6321
6299
|
].includes(loginIdpResult.cognitoUser.challengeName)) {
|
|
6322
6300
|
return [2 /*return*/, {
|
|
6323
6301
|
challenge: {
|
|
@@ -6339,7 +6317,7 @@
|
|
|
6339
6317
|
});
|
|
6340
6318
|
});
|
|
6341
6319
|
};
|
|
6342
|
-
|
|
6320
|
+
AuthService.prototype.loginIdp = function (emailOrPhone, password) {
|
|
6343
6321
|
return __awaiter(this, void 0, void 0, function () {
|
|
6344
6322
|
var passIdpApiResult, user_1, _b, error_1, user_2, _c, error_2, reset, user_3, _d, err_1, user, _e;
|
|
6345
6323
|
return __generator(this, function (_f) {
|
|
@@ -6347,10 +6325,10 @@
|
|
|
6347
6325
|
case 0: return [4 /*yield*/, this.fetchPassIdpParams(emailOrPhone)];
|
|
6348
6326
|
case 1:
|
|
6349
6327
|
passIdpApiResult = _f.sent();
|
|
6350
|
-
if (passIdpApiResult.passwordChangeStatus === PasswordChangeStatus.IN_PROGRESS) {
|
|
6328
|
+
if (passIdpApiResult.passwordChangeStatus === exports.PasswordChangeStatus.IN_PROGRESS) {
|
|
6351
6329
|
throw new KcConcurrentAccessException('A password change is in progress');
|
|
6352
6330
|
}
|
|
6353
|
-
if (!(passIdpApiResult.passwordChangeStatus === PasswordChangeStatus.RECOVERY)) return [3 /*break*/, 8];
|
|
6331
|
+
if (!(passIdpApiResult.passwordChangeStatus === exports.PasswordChangeStatus.RECOVERY)) return [3 /*break*/, 8];
|
|
6354
6332
|
console.log('In recovery mode.');
|
|
6355
6333
|
_f.label = 2;
|
|
6356
6334
|
case 2:
|
|
@@ -6359,7 +6337,7 @@
|
|
|
6359
6337
|
return [4 /*yield*/, this.loginIdpImpl(emailOrPhone, password, passIdpApiResult.newPassIdpParams)];
|
|
6360
6338
|
case 3:
|
|
6361
6339
|
user_1 = (_b.cognitoUser = _f.sent(),
|
|
6362
|
-
_b.recoveryStatus = RecoveryStatus.NEW_PASSWORD,
|
|
6340
|
+
_b.recoveryStatus = exports.RecoveryStatus.NEW_PASSWORD,
|
|
6363
6341
|
_b);
|
|
6364
6342
|
// New password worked. Let's set to the current password
|
|
6365
6343
|
// --Potential Failure Point 1--
|
|
@@ -6379,7 +6357,7 @@
|
|
|
6379
6357
|
return [4 /*yield*/, this.loginIdpImpl(emailOrPhone, password, passIdpApiResult.currentPassIdpParams)];
|
|
6380
6358
|
case 6:
|
|
6381
6359
|
user_2 = (_c.cognitoUser = _f.sent(),
|
|
6382
|
-
_c.recoveryStatus = RecoveryStatus.OLD_PASSWORD,
|
|
6360
|
+
_c.recoveryStatus = exports.RecoveryStatus.OLD_PASSWORD,
|
|
6383
6361
|
_c);
|
|
6384
6362
|
// Old password worked.
|
|
6385
6363
|
console.log('Old password works!');
|
|
@@ -6400,7 +6378,7 @@
|
|
|
6400
6378
|
return [4 /*yield*/, this.loginIdpImpl(reset.resetUsername, password, reset.passIdpParams)];
|
|
6401
6379
|
case 10:
|
|
6402
6380
|
user_3 = (_d.cognitoUser = _f.sent(),
|
|
6403
|
-
_d.recoveryStatus = RecoveryStatus.NONE,
|
|
6381
|
+
_d.recoveryStatus = exports.RecoveryStatus.NONE,
|
|
6404
6382
|
_d);
|
|
6405
6383
|
return [2 /*return*/, user_3];
|
|
6406
6384
|
case 11:
|
|
@@ -6411,14 +6389,14 @@
|
|
|
6411
6389
|
return [4 /*yield*/, this.loginIdpImpl(emailOrPhone, password, passIdpApiResult.currentPassIdpParams)];
|
|
6412
6390
|
case 13:
|
|
6413
6391
|
user = (_e.cognitoUser = _f.sent(),
|
|
6414
|
-
_e.recoveryStatus = RecoveryStatus.NONE,
|
|
6392
|
+
_e.recoveryStatus = exports.RecoveryStatus.NONE,
|
|
6415
6393
|
_e);
|
|
6416
6394
|
return [2 /*return*/, user];
|
|
6417
6395
|
}
|
|
6418
6396
|
});
|
|
6419
6397
|
});
|
|
6420
6398
|
};
|
|
6421
|
-
|
|
6399
|
+
AuthService.prototype.loginIdpImpl = function (emailOrPhone, password, passIdpParams) {
|
|
6422
6400
|
return __awaiter(this, void 0, void 0, function () {
|
|
6423
6401
|
var passIdpResult;
|
|
6424
6402
|
return __generator(this, function (_b) {
|
|
@@ -6432,7 +6410,7 @@
|
|
|
6432
6410
|
});
|
|
6433
6411
|
});
|
|
6434
6412
|
};
|
|
6435
|
-
|
|
6413
|
+
AuthService.prototype.handlePostAuth = function (recoveryStatus) {
|
|
6436
6414
|
return __awaiter(this, void 0, void 0, function () {
|
|
6437
6415
|
return __generator(this, function (_b) {
|
|
6438
6416
|
switch (_b.label) {
|
|
@@ -6447,14 +6425,14 @@
|
|
|
6447
6425
|
});
|
|
6448
6426
|
});
|
|
6449
6427
|
};
|
|
6450
|
-
|
|
6428
|
+
AuthService.prototype.handlePasswordRecovery = function (recoveryStatus) {
|
|
6451
6429
|
return __awaiter(this, void 0, void 0, function () {
|
|
6452
6430
|
return __generator(this, function (_b) {
|
|
6453
6431
|
switch (_b.label) {
|
|
6454
6432
|
case 0:
|
|
6455
|
-
if (!(recoveryStatus !== RecoveryStatus.NONE)) return [3 /*break*/, 2];
|
|
6433
|
+
if (!(recoveryStatus !== exports.RecoveryStatus.NONE)) return [3 /*break*/, 2];
|
|
6456
6434
|
return [4 /*yield*/, this.passwordService.changePasswordComplete({
|
|
6457
|
-
useNewPassword: recoveryStatus === RecoveryStatus.NEW_PASSWORD,
|
|
6435
|
+
useNewPassword: recoveryStatus === exports.RecoveryStatus.NEW_PASSWORD,
|
|
6458
6436
|
})];
|
|
6459
6437
|
case 1:
|
|
6460
6438
|
_b.sent();
|
|
@@ -6464,7 +6442,7 @@
|
|
|
6464
6442
|
});
|
|
6465
6443
|
});
|
|
6466
6444
|
};
|
|
6467
|
-
|
|
6445
|
+
AuthService.prototype.handleSessionEncryptionKey = function () {
|
|
6468
6446
|
return __awaiter(this, void 0, void 0, function () {
|
|
6469
6447
|
var msg, sessionEncryptionKey;
|
|
6470
6448
|
return __generator(this, function (_b) {
|
|
@@ -6502,11 +6480,11 @@
|
|
|
6502
6480
|
});
|
|
6503
6481
|
});
|
|
6504
6482
|
};
|
|
6505
|
-
|
|
6483
|
+
AuthService.prototype.getCognitoUserAttribute = function (attributeName, userAttributes) {
|
|
6506
6484
|
var userAttribute = userAttributes.find(function (x) { return x.getName() === attributeName; });
|
|
6507
6485
|
return userAttribute ? userAttribute.getValue() : null;
|
|
6508
6486
|
};
|
|
6509
|
-
|
|
6487
|
+
AuthService.prototype.loadUserKeys = function (options) {
|
|
6510
6488
|
return __awaiter(this, void 0, void 0, function () {
|
|
6511
6489
|
var userKeys, password, sessionEncryptionKey, _b, _c, passKey, _d, _e;
|
|
6512
6490
|
return __generator(this, function (_f) {
|
|
@@ -6535,7 +6513,7 @@
|
|
|
6535
6513
|
});
|
|
6536
6514
|
});
|
|
6537
6515
|
};
|
|
6538
|
-
|
|
6516
|
+
AuthService.prototype.loadUser = function (cognitoUser, password) {
|
|
6539
6517
|
return __awaiter(this, void 0, void 0, function () {
|
|
6540
6518
|
var _b, _c;
|
|
6541
6519
|
return __generator(this, function (_d) {
|
|
@@ -6561,7 +6539,7 @@
|
|
|
6561
6539
|
});
|
|
6562
6540
|
});
|
|
6563
6541
|
};
|
|
6564
|
-
|
|
6542
|
+
AuthService.prototype.loadRegularUser = function (cognitoUser, password) {
|
|
6565
6543
|
return __awaiter(this, void 0, void 0, function () {
|
|
6566
6544
|
var currentUser, username, userAttributes;
|
|
6567
6545
|
return __generator(this, function (_b) {
|
|
@@ -6595,7 +6573,7 @@
|
|
|
6595
6573
|
});
|
|
6596
6574
|
});
|
|
6597
6575
|
};
|
|
6598
|
-
|
|
6576
|
+
AuthService.prototype.loadResetUser = function (cognitoUser, password) {
|
|
6599
6577
|
return __awaiter(this, void 0, void 0, function () {
|
|
6600
6578
|
var resetUser, userKeys, username, userAttributes;
|
|
6601
6579
|
return __generator(this, function (_b) {
|
|
@@ -6640,7 +6618,7 @@
|
|
|
6640
6618
|
});
|
|
6641
6619
|
});
|
|
6642
6620
|
};
|
|
6643
|
-
|
|
6621
|
+
AuthService.prototype.recoverAssemblyKey = function (resetUser) {
|
|
6644
6622
|
return __awaiter(this, void 0, void 0, function () {
|
|
6645
6623
|
var prk, partials;
|
|
6646
6624
|
var _this = this;
|
|
@@ -6659,7 +6637,7 @@
|
|
|
6659
6637
|
});
|
|
6660
6638
|
});
|
|
6661
6639
|
};
|
|
6662
|
-
|
|
6640
|
+
AuthService.prototype.completeResetRequest = function (newPassword) {
|
|
6663
6641
|
return __awaiter(this, void 0, void 0, function () {
|
|
6664
6642
|
var resetUser, assemblyKey, rootKey, rootKeyJwk, masterKey, masterKeyWrappedRootKey, newPassIdpResult, newIdpPassword, challenge, assemblyKeyVerifierPrk, signedChallenge, tempIdpPassword, retPromise, user;
|
|
6665
6643
|
var _this = this;
|
|
@@ -6775,13 +6753,13 @@
|
|
|
6775
6753
|
// ------------------------------------------------------
|
|
6776
6754
|
// Debug utilities
|
|
6777
6755
|
// ------------------------------------------------------
|
|
6778
|
-
|
|
6756
|
+
AuthService.prototype.debugLogin = function (username, password) {
|
|
6779
6757
|
// This will fail if debug is null. But when debug is null, this function
|
|
6780
6758
|
// should not be called.
|
|
6781
6759
|
this.kcConfig.debug.username = username;
|
|
6782
6760
|
return this.debugLoadUser(password);
|
|
6783
6761
|
};
|
|
6784
|
-
|
|
6762
|
+
AuthService.prototype.debugLoadUser = function (password) {
|
|
6785
6763
|
return __awaiter(this, void 0, void 0, function () {
|
|
6786
6764
|
var currentUser, username, currentUserKey, passKey, masterKey;
|
|
6787
6765
|
return __generator(this, function (_b) {
|
|
@@ -6816,10 +6794,10 @@
|
|
|
6816
6794
|
/**
|
|
6817
6795
|
* Clears the caches user. So we can simulate a page refresh and test getUser().
|
|
6818
6796
|
*/
|
|
6819
|
-
|
|
6797
|
+
AuthService.prototype.debugClearUser = function () {
|
|
6820
6798
|
this.user = null;
|
|
6821
6799
|
};
|
|
6822
|
-
|
|
6800
|
+
AuthService.prototype.getCurrentUserAttributes = function () {
|
|
6823
6801
|
return __awaiter(this, void 0, void 0, function () {
|
|
6824
6802
|
var cognitoUser, userAttributes;
|
|
6825
6803
|
return __generator(this, function (_b) {
|
|
@@ -6835,16 +6813,16 @@
|
|
|
6835
6813
|
});
|
|
6836
6814
|
});
|
|
6837
6815
|
};
|
|
6838
|
-
return
|
|
6816
|
+
return AuthService;
|
|
6839
6817
|
}(LrService));
|
|
6840
|
-
exports.
|
|
6841
|
-
exports.
|
|
6842
|
-
exports.
|
|
6818
|
+
exports.AuthService.CHALLENGE_TIMEOUT = 1000 * 60 * 5;
|
|
6819
|
+
exports.AuthService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthService_Factory() { return new exports.AuthService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(exports.ɵg), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(PasswordService), i0.ɵɵinject(IdleService), i0.ɵɵinject(PersistService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(exports.ɵi), i0.ɵɵinject(KC_CONFIG)); }, token: exports.AuthService, providedIn: "root" });
|
|
6820
|
+
exports.AuthService.decorators = [
|
|
6843
6821
|
{ type: i0.Injectable, args: [{
|
|
6844
6822
|
providedIn: 'root',
|
|
6845
6823
|
},] }
|
|
6846
6824
|
];
|
|
6847
|
-
exports.
|
|
6825
|
+
exports.AuthService.ctorParameters = function () { return [
|
|
6848
6826
|
{ type: i0.NgZone },
|
|
6849
6827
|
{ type: i0.Injector },
|
|
6850
6828
|
{ type: i2$1.HttpClient },
|
|
@@ -6860,16 +6838,16 @@
|
|
|
6860
6838
|
{ type: exports.ɵi },
|
|
6861
6839
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [KC_CONFIG,] }] }
|
|
6862
6840
|
]; };
|
|
6863
|
-
exports.
|
|
6841
|
+
exports.AuthService = AuthService_1 = __decorate([
|
|
6864
6842
|
RunOutsideAngular({
|
|
6865
6843
|
ngZoneName: 'ngZone',
|
|
6866
6844
|
})
|
|
6867
|
-
], exports.
|
|
6845
|
+
], exports.AuthService);
|
|
6868
6846
|
|
|
6869
|
-
var CreateContactCardMutation$2 = gqlTyped(templateObject_1$
|
|
6870
|
-
var UpdateContactCardMutation$2 = gqlTyped(templateObject_2$
|
|
6871
|
-
var DeleteContactCardMutation$1 = gqlTyped(templateObject_3$
|
|
6872
|
-
var templateObject_1$
|
|
6847
|
+
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"])));
|
|
6848
|
+
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"])));
|
|
6849
|
+
var DeleteContactCardMutation$1 = gqlTyped(templateObject_3$7 || (templateObject_3$7 = __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"])));
|
|
6850
|
+
var templateObject_1$d, templateObject_2$8, templateObject_3$7;
|
|
6873
6851
|
|
|
6874
6852
|
var OwnerPlainDataJson = /** @class */ (function () {
|
|
6875
6853
|
function OwnerPlainDataJson() {
|
|
@@ -7095,11 +7073,30 @@
|
|
|
7095
7073
|
{ type: i4.AuthClass }
|
|
7096
7074
|
]; };
|
|
7097
7075
|
|
|
7098
|
-
var
|
|
7099
|
-
var
|
|
7100
|
-
var
|
|
7101
|
-
var
|
|
7102
|
-
var
|
|
7076
|
+
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"])));
|
|
7077
|
+
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"])));
|
|
7078
|
+
var DeleteDirectoryMutation = gqlTyped(templateObject_3$8 || (templateObject_3$8 = __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"])));
|
|
7079
|
+
var CreateFileMutation = gqlTyped(templateObject_4$5 || (templateObject_4$5 = __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"])));
|
|
7080
|
+
var UpdateFileMutation = gqlTyped(templateObject_5$5 || (templateObject_5$5 = __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"])));
|
|
7081
|
+
var RevertFileMutation = gqlTyped(templateObject_6$4 || (templateObject_6$4 = __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"])));
|
|
7082
|
+
var DeleteFileMutation = gqlTyped(templateObject_7$3 || (templateObject_7$3 = __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"])));
|
|
7083
|
+
var ArchiveDirectoryMutation = gqlTyped(templateObject_8$3 || (templateObject_8$3 = __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"])));
|
|
7084
|
+
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"])));
|
|
7085
|
+
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"])));
|
|
7086
|
+
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"])));
|
|
7087
|
+
var ChangeDirectoryParentsMutation = gqlTyped(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
|
|
7088
|
+
var ChangeFileParentsMutation = gqlTyped(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
7089
|
+
var BeginDeleteChildItemLinksWindowMutation = gqlTyped(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"], ["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"])));
|
|
7090
|
+
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"])));
|
|
7091
|
+
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"])));
|
|
7092
|
+
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"])));
|
|
7093
|
+
var templateObject_1$e, templateObject_2$9, templateObject_3$8, templateObject_4$5, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8$3, templateObject_9$2, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
7094
|
+
|
|
7095
|
+
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}"])));
|
|
7096
|
+
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);
|
|
7097
|
+
var AcquireLockMutation = gqlTyped(templateObject_3$9 || (templateObject_3$9 = __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);
|
|
7098
|
+
var ReleaseLockMutation = gqlTyped(templateObject_4$6 || (templateObject_4$6 = __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);
|
|
7099
|
+
var templateObject_1$f, templateObject_2$a, templateObject_3$9, templateObject_4$6;
|
|
7103
7100
|
|
|
7104
7101
|
exports.LockService = /** @class */ (function (_super) {
|
|
7105
7102
|
__extends(LockService, _super);
|
|
@@ -7161,34 +7158,15 @@
|
|
|
7161
7158
|
})
|
|
7162
7159
|
], exports.LockService);
|
|
7163
7160
|
|
|
7164
|
-
var
|
|
7165
|
-
var
|
|
7166
|
-
var
|
|
7167
|
-
var
|
|
7168
|
-
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"])));
|
|
7169
|
-
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"])));
|
|
7170
|
-
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"])));
|
|
7171
|
-
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"])));
|
|
7172
|
-
var ArchiveFileMutation = gqlTyped(templateObject_9$1 || (templateObject_9$1 = __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"])));
|
|
7173
|
-
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"])));
|
|
7174
|
-
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"])));
|
|
7175
|
-
var ChangeDirectoryParentsMutation = gqlTyped(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
|
|
7176
|
-
var ChangeFileParentsMutation = gqlTyped(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"])));
|
|
7177
|
-
var BeginDeleteChildItemLinksWindowMutation = gqlTyped(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"], ["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"])));
|
|
7178
|
-
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"])));
|
|
7179
|
-
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"])));
|
|
7180
|
-
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"])));
|
|
7181
|
-
var templateObject_1$e, templateObject_2$9, templateObject_3$8, templateObject_4$5, templateObject_5$4, templateObject_6$3, templateObject_7$2, templateObject_8$2, templateObject_9$1, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
7182
|
-
|
|
7183
|
-
var DirectoryKeyQuery$1 = gqlTyped(templateObject_1$f || (templateObject_1$f = __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"])));
|
|
7184
|
-
var FileKeyQuery = gqlTyped(templateObject_2$a || (templateObject_2$a = __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"])));
|
|
7185
|
-
var FileStateKeyQuery = gqlTyped(templateObject_3$9 || (templateObject_3$9 = __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"])));
|
|
7186
|
-
var templateObject_1$f, templateObject_2$a, templateObject_3$9;
|
|
7161
|
+
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
|
+
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 FileStateKeyQuery = gqlTyped(templateObject_3$a || (templateObject_3$a = __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"])));
|
|
7164
|
+
var templateObject_1$g, templateObject_2$b, templateObject_3$a;
|
|
7187
7165
|
|
|
7188
|
-
var
|
|
7189
|
-
exports.
|
|
7190
|
-
__extends(
|
|
7191
|
-
function
|
|
7166
|
+
var ItemService_1;
|
|
7167
|
+
exports.ItemService = ItemService_1 = /** @class */ (function (_super) {
|
|
7168
|
+
__extends(ItemService, _super);
|
|
7169
|
+
function ItemService(ngZone, injector, fileUploadService, keyService, keyFactory, keyGraph, lockService, authService) {
|
|
7192
7170
|
var _this = _super.call(this, injector) || this;
|
|
7193
7171
|
_this.ngZone = ngZone;
|
|
7194
7172
|
_this.injector = injector;
|
|
@@ -7197,13 +7175,13 @@
|
|
|
7197
7175
|
_this.keyFactory = keyFactory;
|
|
7198
7176
|
_this.keyGraph = keyGraph;
|
|
7199
7177
|
_this.lockService = lockService;
|
|
7200
|
-
_this.
|
|
7178
|
+
_this.authService = authService;
|
|
7201
7179
|
// Caching the temp directory.
|
|
7202
7180
|
_this.tempDirectory = null;
|
|
7203
|
-
_this.
|
|
7181
|
+
_this.authService.addLogoutListener(function () { return _this.onLogout(); });
|
|
7204
7182
|
return _this;
|
|
7205
7183
|
}
|
|
7206
|
-
|
|
7184
|
+
ItemService.prototype.downloadFileContent = function (options) {
|
|
7207
7185
|
return __awaiter(this, void 0, void 0, function () {
|
|
7208
7186
|
var fileContent, fileStateKey;
|
|
7209
7187
|
var _this = this;
|
|
@@ -7222,7 +7200,7 @@
|
|
|
7222
7200
|
});
|
|
7223
7201
|
});
|
|
7224
7202
|
};
|
|
7225
|
-
|
|
7203
|
+
ItemService.prototype.getDirectoryKeyId = function (directoryId) {
|
|
7226
7204
|
return __awaiter(this, void 0, void 0, function () {
|
|
7227
7205
|
return __generator(this, function (_d) {
|
|
7228
7206
|
switch (_d.label) {
|
|
@@ -7237,7 +7215,7 @@
|
|
|
7237
7215
|
});
|
|
7238
7216
|
});
|
|
7239
7217
|
};
|
|
7240
|
-
|
|
7218
|
+
ItemService.prototype.getFileKeyId = function (fileId) {
|
|
7241
7219
|
return __awaiter(this, void 0, void 0, function () {
|
|
7242
7220
|
return __generator(this, function (_d) {
|
|
7243
7221
|
switch (_d.label) {
|
|
@@ -7252,7 +7230,7 @@
|
|
|
7252
7230
|
});
|
|
7253
7231
|
});
|
|
7254
7232
|
};
|
|
7255
|
-
|
|
7233
|
+
ItemService.prototype.getDirectoryKey = function (directoryId, directoryKeyId) {
|
|
7256
7234
|
return __awaiter(this, void 0, void 0, function () {
|
|
7257
7235
|
var _this = this;
|
|
7258
7236
|
return __generator(this, function (_d) {
|
|
@@ -7260,7 +7238,7 @@
|
|
|
7260
7238
|
});
|
|
7261
7239
|
});
|
|
7262
7240
|
};
|
|
7263
|
-
|
|
7241
|
+
ItemService.prototype.getFileKey = function (fileId, fileKeyId) {
|
|
7264
7242
|
return __awaiter(this, void 0, void 0, function () {
|
|
7265
7243
|
var _this = this;
|
|
7266
7244
|
return __generator(this, function (_d) {
|
|
@@ -7268,10 +7246,10 @@
|
|
|
7268
7246
|
});
|
|
7269
7247
|
});
|
|
7270
7248
|
};
|
|
7271
|
-
|
|
7249
|
+
ItemService.prototype.createDirectory = function (options) {
|
|
7272
7250
|
return this.mutate(this.createDirectoryMutation(options));
|
|
7273
7251
|
};
|
|
7274
|
-
|
|
7252
|
+
ItemService.prototype.createDirectoryMutation = function (options) {
|
|
7275
7253
|
return __awaiter(this, void 0, void 0, function () {
|
|
7276
7254
|
var _d, _e, _f;
|
|
7277
7255
|
return __generator(this, function (_g) {
|
|
@@ -7290,10 +7268,10 @@
|
|
|
7290
7268
|
});
|
|
7291
7269
|
});
|
|
7292
7270
|
};
|
|
7293
|
-
|
|
7271
|
+
ItemService.prototype.updateDirectory = function (options) {
|
|
7294
7272
|
return this.mutate(this.updateDirectoryMutation(options));
|
|
7295
7273
|
};
|
|
7296
|
-
|
|
7274
|
+
ItemService.prototype.updateDirectoryMutation = function (options) {
|
|
7297
7275
|
return __awaiter(this, void 0, void 0, function () {
|
|
7298
7276
|
var _d, _e, _f;
|
|
7299
7277
|
return __generator(this, function (_g) {
|
|
@@ -7312,10 +7290,10 @@
|
|
|
7312
7290
|
});
|
|
7313
7291
|
});
|
|
7314
7292
|
};
|
|
7315
|
-
|
|
7293
|
+
ItemService.prototype.deleteDirectory = function (id) {
|
|
7316
7294
|
return this.mutate(this.deleteDirectoryMutation(id));
|
|
7317
7295
|
};
|
|
7318
|
-
|
|
7296
|
+
ItemService.prototype.deleteDirectoryMutation = function (id) {
|
|
7319
7297
|
return new LrMutation({
|
|
7320
7298
|
mutation: DeleteDirectoryMutation,
|
|
7321
7299
|
variables: {
|
|
@@ -7325,10 +7303,10 @@
|
|
|
7325
7303
|
},
|
|
7326
7304
|
});
|
|
7327
7305
|
};
|
|
7328
|
-
|
|
7306
|
+
ItemService.prototype.createFile = function (options) {
|
|
7329
7307
|
return this.mutate(this.createFileMutation(options));
|
|
7330
7308
|
};
|
|
7331
|
-
|
|
7309
|
+
ItemService.prototype.createFileMutation = function (options) {
|
|
7332
7310
|
return __awaiter(this, void 0, void 0, function () {
|
|
7333
7311
|
var _d, _e, _f;
|
|
7334
7312
|
return __generator(this, function (_g) {
|
|
@@ -7347,10 +7325,10 @@
|
|
|
7347
7325
|
});
|
|
7348
7326
|
});
|
|
7349
7327
|
};
|
|
7350
|
-
|
|
7328
|
+
ItemService.prototype.updateFile = function (options) {
|
|
7351
7329
|
return this.mutate(this.updateFileMutation(options));
|
|
7352
7330
|
};
|
|
7353
|
-
|
|
7331
|
+
ItemService.prototype.updateFileMutation = function (options) {
|
|
7354
7332
|
return __awaiter(this, void 0, void 0, function () {
|
|
7355
7333
|
var _d, _e, _f;
|
|
7356
7334
|
return __generator(this, function (_g) {
|
|
@@ -7369,10 +7347,10 @@
|
|
|
7369
7347
|
});
|
|
7370
7348
|
});
|
|
7371
7349
|
};
|
|
7372
|
-
|
|
7350
|
+
ItemService.prototype.revertFile = function (options) {
|
|
7373
7351
|
return this.mutate(this.revertFileMutation(options));
|
|
7374
7352
|
};
|
|
7375
|
-
|
|
7353
|
+
ItemService.prototype.revertFileMutation = function (options) {
|
|
7376
7354
|
return __awaiter(this, void 0, void 0, function () {
|
|
7377
7355
|
return __generator(this, function (_d) {
|
|
7378
7356
|
return [2 /*return*/, new LrMutation({
|
|
@@ -7384,10 +7362,10 @@
|
|
|
7384
7362
|
});
|
|
7385
7363
|
});
|
|
7386
7364
|
};
|
|
7387
|
-
|
|
7365
|
+
ItemService.prototype.deleteFile = function (id) {
|
|
7388
7366
|
return this.mutate(this.deleteFileMutation(id));
|
|
7389
7367
|
};
|
|
7390
|
-
|
|
7368
|
+
ItemService.prototype.deleteFileMutation = function (id) {
|
|
7391
7369
|
return new LrMutation({
|
|
7392
7370
|
mutation: DeleteFileMutation,
|
|
7393
7371
|
variables: {
|
|
@@ -7397,10 +7375,10 @@
|
|
|
7397
7375
|
},
|
|
7398
7376
|
});
|
|
7399
7377
|
};
|
|
7400
|
-
|
|
7378
|
+
ItemService.prototype.archiveDirectory = function (directoryId, options) {
|
|
7401
7379
|
return this.mutate(this.archiveDirectoryMutation(directoryId, options));
|
|
7402
7380
|
};
|
|
7403
|
-
|
|
7381
|
+
ItemService.prototype.archiveDirectoryMutation = function (directoryId, options) {
|
|
7404
7382
|
return new LrMutation({
|
|
7405
7383
|
mutation: ArchiveDirectoryMutation,
|
|
7406
7384
|
variables: {
|
|
@@ -7411,10 +7389,10 @@
|
|
|
7411
7389
|
},
|
|
7412
7390
|
});
|
|
7413
7391
|
};
|
|
7414
|
-
|
|
7392
|
+
ItemService.prototype.archiveFile = function (fileId) {
|
|
7415
7393
|
return this.mutate(this.archiveFileMutation(fileId));
|
|
7416
7394
|
};
|
|
7417
|
-
|
|
7395
|
+
ItemService.prototype.archiveFileMutation = function (fileId) {
|
|
7418
7396
|
return new LrMutation({
|
|
7419
7397
|
mutation: ArchiveFileMutation,
|
|
7420
7398
|
variables: {
|
|
@@ -7424,10 +7402,10 @@
|
|
|
7424
7402
|
},
|
|
7425
7403
|
});
|
|
7426
7404
|
};
|
|
7427
|
-
|
|
7405
|
+
ItemService.prototype.unarchiveDirectory = function (directoryId, options) {
|
|
7428
7406
|
return this.mutate(this.unarchiveDirectoryMutation(directoryId, options));
|
|
7429
7407
|
};
|
|
7430
|
-
|
|
7408
|
+
ItemService.prototype.unarchiveDirectoryMutation = function (directoryId, options) {
|
|
7431
7409
|
return new LrMutation({
|
|
7432
7410
|
mutation: UnarchiveDirectoryMutation,
|
|
7433
7411
|
variables: {
|
|
@@ -7438,10 +7416,10 @@
|
|
|
7438
7416
|
},
|
|
7439
7417
|
});
|
|
7440
7418
|
};
|
|
7441
|
-
|
|
7419
|
+
ItemService.prototype.unarchiveFile = function (fileId) {
|
|
7442
7420
|
return this.mutate(this.unarchiveFileMutation(fileId));
|
|
7443
7421
|
};
|
|
7444
|
-
|
|
7422
|
+
ItemService.prototype.unarchiveFileMutation = function (fileId) {
|
|
7445
7423
|
return new LrMutation({
|
|
7446
7424
|
mutation: UnarchiveFileMutation,
|
|
7447
7425
|
variables: {
|
|
@@ -7451,10 +7429,10 @@
|
|
|
7451
7429
|
},
|
|
7452
7430
|
});
|
|
7453
7431
|
};
|
|
7454
|
-
|
|
7432
|
+
ItemService.prototype.changeDirectoryParents = function (options) {
|
|
7455
7433
|
return this.mutate(this.changeDirectoryParentsMutation(options));
|
|
7456
7434
|
};
|
|
7457
|
-
|
|
7435
|
+
ItemService.prototype.changeDirectoryParentsMutation = function (options) {
|
|
7458
7436
|
return __awaiter(this, void 0, void 0, function () {
|
|
7459
7437
|
var _d, _e, _f;
|
|
7460
7438
|
return __generator(this, function (_g) {
|
|
@@ -7473,14 +7451,14 @@
|
|
|
7473
7451
|
});
|
|
7474
7452
|
});
|
|
7475
7453
|
};
|
|
7476
|
-
|
|
7454
|
+
ItemService.prototype.changeFileParents = function (options) {
|
|
7477
7455
|
return __awaiter(this, void 0, void 0, function () {
|
|
7478
7456
|
return __generator(this, function (_d) {
|
|
7479
7457
|
return [2 /*return*/, this.mutate(this.changeFileParentsMutation(options))];
|
|
7480
7458
|
});
|
|
7481
7459
|
});
|
|
7482
7460
|
};
|
|
7483
|
-
|
|
7461
|
+
ItemService.prototype.changeFileParentsMutation = function (options) {
|
|
7484
7462
|
return __awaiter(this, void 0, void 0, function () {
|
|
7485
7463
|
var _d, _e, _f;
|
|
7486
7464
|
return __generator(this, function (_g) {
|
|
@@ -7499,7 +7477,7 @@
|
|
|
7499
7477
|
});
|
|
7500
7478
|
});
|
|
7501
7479
|
};
|
|
7502
|
-
|
|
7480
|
+
ItemService.prototype.beginDeleteChildItemLinksWindow = function (options) {
|
|
7503
7481
|
return this.mutate(this.beginDeleteChildItemLinksWindowMutation(options));
|
|
7504
7482
|
};
|
|
7505
7483
|
/**
|
|
@@ -7512,7 +7490,7 @@
|
|
|
7512
7490
|
* The server has a setting that allows for a maximum value on requestWindowMs. If the requested value
|
|
7513
7491
|
* is larger than this maximum, the call will fail.
|
|
7514
7492
|
*/
|
|
7515
|
-
|
|
7493
|
+
ItemService.prototype.beginDeleteChildItemLinksWindowMutation = function (options) {
|
|
7516
7494
|
return __awaiter(this, void 0, void 0, function () {
|
|
7517
7495
|
return __generator(this, function (_d) {
|
|
7518
7496
|
return [2 /*return*/, new LrMutation({
|
|
@@ -7535,7 +7513,7 @@
|
|
|
7535
7513
|
* @returns The ID of the temp directory
|
|
7536
7514
|
*
|
|
7537
7515
|
*/
|
|
7538
|
-
|
|
7516
|
+
ItemService.prototype.ensureTempDirectory = function () {
|
|
7539
7517
|
var _a;
|
|
7540
7518
|
return __awaiter(this, void 0, void 0, function () {
|
|
7541
7519
|
var existing, createDirectory, updateLock, _d, createDirectoryResult, _e, id, keyId, _f, id, keyId;
|
|
@@ -7548,18 +7526,18 @@
|
|
|
7548
7526
|
return [4 /*yield*/, this.query({
|
|
7549
7527
|
query: TempDirectoryQuery,
|
|
7550
7528
|
variables: {
|
|
7551
|
-
plainMeta:
|
|
7529
|
+
plainMeta: ItemService_1.TEMP_DIRECTORY_PLAIN_META_FILTER,
|
|
7552
7530
|
},
|
|
7553
7531
|
})];
|
|
7554
7532
|
case 1:
|
|
7555
7533
|
existing = _g.sent();
|
|
7556
7534
|
if (existing.rootDirectories.edges.length > 1) {
|
|
7557
|
-
console.error("There is more than 1 temp directory (plainMeta filter: " +
|
|
7535
|
+
console.error("There is more than 1 temp directory (plainMeta filter: " + ItemService_1.TEMP_DIRECTORY_PLAIN_META_FILTER + ")");
|
|
7558
7536
|
}
|
|
7559
7537
|
if (!(existing.rootDirectories.edges.length === 0)) return [3 /*break*/, 4];
|
|
7560
7538
|
return [4 /*yield*/, this.createDirectoryMutation({
|
|
7561
7539
|
asRootDirectory: true,
|
|
7562
|
-
plainMetaJson:
|
|
7540
|
+
plainMetaJson: ItemService_1.TEMP_DIRECTORY_PLAIN_META,
|
|
7563
7541
|
})];
|
|
7564
7542
|
case 2:
|
|
7565
7543
|
createDirectory = _g.sent();
|
|
@@ -7590,7 +7568,7 @@
|
|
|
7590
7568
|
});
|
|
7591
7569
|
});
|
|
7592
7570
|
};
|
|
7593
|
-
|
|
7571
|
+
ItemService.prototype.createDirectoryTree = function (options) {
|
|
7594
7572
|
return __awaiter(this, void 0, void 0, function () {
|
|
7595
7573
|
return __generator(this, function (_d) {
|
|
7596
7574
|
return [2 /*return*/, this.mutate(this.createDirectoryTreeMutation(options))];
|
|
@@ -7602,7 +7580,7 @@
|
|
|
7602
7580
|
* server, otherwise the temp directory will get cleaned up.
|
|
7603
7581
|
*
|
|
7604
7582
|
*/
|
|
7605
|
-
|
|
7583
|
+
ItemService.prototype.createDirectoryTreeMutation = function (options) {
|
|
7606
7584
|
return __awaiter(this, void 0, void 0, function () {
|
|
7607
7585
|
var tempDir, directory;
|
|
7608
7586
|
return __generator(this, function (_d) {
|
|
@@ -7659,14 +7637,14 @@
|
|
|
7659
7637
|
});
|
|
7660
7638
|
});
|
|
7661
7639
|
};
|
|
7662
|
-
|
|
7640
|
+
ItemService.prototype.setFileConfidential = function (options) {
|
|
7663
7641
|
return __awaiter(this, void 0, void 0, function () {
|
|
7664
7642
|
return __generator(this, function (_d) {
|
|
7665
7643
|
return [2 /*return*/, this.mutate(this.setFileConfidentialMutation(options))];
|
|
7666
7644
|
});
|
|
7667
7645
|
});
|
|
7668
7646
|
};
|
|
7669
|
-
|
|
7647
|
+
ItemService.prototype.setFileConfidentialMutation = function (options) {
|
|
7670
7648
|
return __awaiter(this, void 0, void 0, function () {
|
|
7671
7649
|
return __generator(this, function (_d) {
|
|
7672
7650
|
return [2 /*return*/, new LrMutation({
|
|
@@ -7681,14 +7659,14 @@
|
|
|
7681
7659
|
});
|
|
7682
7660
|
});
|
|
7683
7661
|
};
|
|
7684
|
-
|
|
7662
|
+
ItemService.prototype.setDirectoryConfidential = function (options) {
|
|
7685
7663
|
return __awaiter(this, void 0, void 0, function () {
|
|
7686
7664
|
return __generator(this, function (_d) {
|
|
7687
7665
|
return [2 /*return*/, this.mutate(this.setDirectoryConfidentialMutation(options))];
|
|
7688
7666
|
});
|
|
7689
7667
|
});
|
|
7690
7668
|
};
|
|
7691
|
-
|
|
7669
|
+
ItemService.prototype.setDirectoryConfidentialMutation = function (options) {
|
|
7692
7670
|
return __awaiter(this, void 0, void 0, function () {
|
|
7693
7671
|
return __generator(this, function (_d) {
|
|
7694
7672
|
return [2 /*return*/, new LrMutation({
|
|
@@ -7708,7 +7686,7 @@
|
|
|
7708
7686
|
// Helpers
|
|
7709
7687
|
// ------------------------------------------------------------------------------
|
|
7710
7688
|
// ------------------------------------------------------------------------------
|
|
7711
|
-
|
|
7689
|
+
ItemService.prototype.prepareParentDirectory = function (options, newKey) {
|
|
7712
7690
|
return __awaiter(this, void 0, void 0, function () {
|
|
7713
7691
|
var wrappingKey, _d;
|
|
7714
7692
|
return __generator(this, function (_e) {
|
|
@@ -7728,7 +7706,7 @@
|
|
|
7728
7706
|
});
|
|
7729
7707
|
});
|
|
7730
7708
|
};
|
|
7731
|
-
|
|
7709
|
+
ItemService.prototype.getFileStateKeyId = function (fileStateNodeId) {
|
|
7732
7710
|
return __awaiter(this, void 0, void 0, function () {
|
|
7733
7711
|
return __generator(this, function (_d) {
|
|
7734
7712
|
switch (_d.label) {
|
|
@@ -7743,7 +7721,7 @@
|
|
|
7743
7721
|
});
|
|
7744
7722
|
});
|
|
7745
7723
|
};
|
|
7746
|
-
|
|
7724
|
+
ItemService.prototype.prepareCreateFileState = function (fileKey, options) {
|
|
7747
7725
|
return __awaiter(this, void 0, void 0, function () {
|
|
7748
7726
|
var fileStateKey, fileContent, _d, contentResource, cipherFileContent, _e, _f, _g, _h, _j, _k, _l;
|
|
7749
7727
|
return __generator(this, function (_m) {
|
|
@@ -7788,7 +7766,7 @@
|
|
|
7788
7766
|
});
|
|
7789
7767
|
});
|
|
7790
7768
|
};
|
|
7791
|
-
|
|
7769
|
+
ItemService.prototype.prepareChangeItemParents = function (options, itemKey) {
|
|
7792
7770
|
return __awaiter(this, void 0, void 0, function () {
|
|
7793
7771
|
var parentsToAdd, _d;
|
|
7794
7772
|
var _this = this;
|
|
@@ -7813,7 +7791,7 @@
|
|
|
7813
7791
|
});
|
|
7814
7792
|
});
|
|
7815
7793
|
};
|
|
7816
|
-
|
|
7794
|
+
ItemService.prototype.prepareItem = function (key, options) {
|
|
7817
7795
|
return __awaiter(this, void 0, void 0, function () {
|
|
7818
7796
|
var plainMetaJson, cipherMetaClearJson, _d, _e;
|
|
7819
7797
|
return __generator(this, function (_f) {
|
|
@@ -7835,7 +7813,7 @@
|
|
|
7835
7813
|
});
|
|
7836
7814
|
});
|
|
7837
7815
|
};
|
|
7838
|
-
|
|
7816
|
+
ItemService.prototype.prepareCreateDirectory = function (options) {
|
|
7839
7817
|
var _a, _b, _c;
|
|
7840
7818
|
return __awaiter(this, void 0, void 0, function () {
|
|
7841
7819
|
var directoryKey, parentDirectories, parentRootDirectory, rootKey, _d, itemInput;
|
|
@@ -7874,7 +7852,7 @@
|
|
|
7874
7852
|
});
|
|
7875
7853
|
});
|
|
7876
7854
|
};
|
|
7877
|
-
|
|
7855
|
+
ItemService.prototype.prepareUpdateDirectory = function (options) {
|
|
7878
7856
|
return __awaiter(this, void 0, void 0, function () {
|
|
7879
7857
|
var directoryKey, itemInput;
|
|
7880
7858
|
return __generator(this, function (_d) {
|
|
@@ -7890,7 +7868,7 @@
|
|
|
7890
7868
|
});
|
|
7891
7869
|
});
|
|
7892
7870
|
};
|
|
7893
|
-
|
|
7871
|
+
ItemService.prototype.prepareCreateFile = function (options) {
|
|
7894
7872
|
return __awaiter(this, void 0, void 0, function () {
|
|
7895
7873
|
var fileKey, parentDirectories, input;
|
|
7896
7874
|
var _this = this;
|
|
@@ -7926,7 +7904,7 @@
|
|
|
7926
7904
|
});
|
|
7927
7905
|
});
|
|
7928
7906
|
};
|
|
7929
|
-
|
|
7907
|
+
ItemService.prototype.prepareUpdateFile = function (options) {
|
|
7930
7908
|
return __awaiter(this, void 0, void 0, function () {
|
|
7931
7909
|
var fileKey, input;
|
|
7932
7910
|
return __generator(this, function (_d) {
|
|
@@ -7942,7 +7920,7 @@
|
|
|
7942
7920
|
});
|
|
7943
7921
|
});
|
|
7944
7922
|
};
|
|
7945
|
-
|
|
7923
|
+
ItemService.prototype.prepareChangeDirectoryParents = function (options) {
|
|
7946
7924
|
return __awaiter(this, void 0, void 0, function () {
|
|
7947
7925
|
var directoryKey, input;
|
|
7948
7926
|
return __generator(this, function (_d) {
|
|
@@ -7958,7 +7936,7 @@
|
|
|
7958
7936
|
});
|
|
7959
7937
|
});
|
|
7960
7938
|
};
|
|
7961
|
-
|
|
7939
|
+
ItemService.prototype.prepareChangeFileParents = function (options) {
|
|
7962
7940
|
return __awaiter(this, void 0, void 0, function () {
|
|
7963
7941
|
var fileKey, input;
|
|
7964
7942
|
return __generator(this, function (_d) {
|
|
@@ -7974,27 +7952,27 @@
|
|
|
7974
7952
|
});
|
|
7975
7953
|
});
|
|
7976
7954
|
};
|
|
7977
|
-
|
|
7955
|
+
ItemService.prototype.onLogout = function () {
|
|
7978
7956
|
// Clear all cached data.
|
|
7979
7957
|
this.tempDirectory = null;
|
|
7980
7958
|
};
|
|
7981
|
-
return
|
|
7959
|
+
return ItemService;
|
|
7982
7960
|
}(LrService));
|
|
7983
|
-
exports.
|
|
7984
|
-
exports.
|
|
7961
|
+
exports.ItemService.TEMP_DIRECTORY_PLAIN_META = { kcType: 'temp' };
|
|
7962
|
+
exports.ItemService.TEMP_DIRECTORY_PLAIN_META_FILTER = JSON.stringify({
|
|
7985
7963
|
filter: [
|
|
7986
7964
|
{
|
|
7987
|
-
contains:
|
|
7965
|
+
contains: ItemService_1.TEMP_DIRECTORY_PLAIN_META,
|
|
7988
7966
|
},
|
|
7989
7967
|
],
|
|
7990
7968
|
});
|
|
7991
|
-
exports.
|
|
7992
|
-
exports.
|
|
7969
|
+
exports.ItemService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ItemService_Factory() { return new exports.ItemService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(FileUploadService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.LockService), i0.ɵɵinject(exports.AuthService)); }, token: exports.ItemService, providedIn: "root" });
|
|
7970
|
+
exports.ItemService.decorators = [
|
|
7993
7971
|
{ type: i0.Injectable, args: [{
|
|
7994
7972
|
providedIn: 'root',
|
|
7995
7973
|
},] }
|
|
7996
7974
|
];
|
|
7997
|
-
exports.
|
|
7975
|
+
exports.ItemService.ctorParameters = function () { return [
|
|
7998
7976
|
{ type: i0.NgZone },
|
|
7999
7977
|
{ type: i0.Injector },
|
|
8000
7978
|
{ type: FileUploadService },
|
|
@@ -8002,30 +7980,17 @@
|
|
|
8002
7980
|
{ type: KeyFactoryService },
|
|
8003
7981
|
{ type: KeyGraphService },
|
|
8004
7982
|
{ type: exports.LockService },
|
|
8005
|
-
{ type: exports.
|
|
7983
|
+
{ type: exports.AuthService }
|
|
8006
7984
|
]; };
|
|
8007
|
-
exports.
|
|
7985
|
+
exports.ItemService = ItemService_1 = __decorate([
|
|
8008
7986
|
RunOutsideAngular({
|
|
8009
7987
|
ngZoneName: 'ngZone',
|
|
8010
7988
|
})
|
|
8011
|
-
], exports.
|
|
8012
|
-
|
|
8013
|
-
var KeyExchangeFragment = gqlTyped(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\nfragment KeyExchangeFragment on KeyExchangeNode {\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n config\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n}\n"], ["\nfragment KeyExchangeFragment on KeyExchangeNode {\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n config\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n}\n"])));
|
|
8014
|
-
var UserSharedKeyFragment = gqlTyped(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\nfragment UserSharedKeyFragment on UserSharedKeyNode {\n userSigPrk {\n id\n }\n otherSigPbk {\n id\n }\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n}"], ["\nfragment UserSharedKeyFragment on UserSharedKeyNode {\n userSigPrk {\n id\n }\n otherSigPbk {\n id\n }\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n}"])));
|
|
8015
|
-
var KeyExchangesQuery2 = gqlTyped(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\nquery KeyExchangesQuery2($state: String) {\n keyExchanges(state: $state) {\n edges {\n node {\n ...KeyExchangeFragment\n }\n }\n }\n}\n", "\n"], ["\nquery KeyExchangesQuery2($state: String) {\n keyExchanges(state: $state) {\n edges {\n node {\n ...KeyExchangeFragment\n }\n }\n }\n}\n", "\n"])), KeyExchangeFragment);
|
|
8016
|
-
var KeyExchangeQuery2 = gqlTyped(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\nquery KeyExchangeQuery2($id: LrRelayIdInput!) {\n keyExchange(id: $id) {\n ...KeyExchangeFragment\n }\n}\n", "\n"], ["\nquery KeyExchangeQuery2($id: LrRelayIdInput!) {\n keyExchange(id: $id) {\n ...KeyExchangeFragment\n }\n}\n", "\n"])), KeyExchangeFragment);
|
|
8017
|
-
var KeyExchangeTokenQuery2 = gqlTyped(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\nquery KeyExchangeTokenQuery2($id: LrRelayIdInput!, $token: String) {\n keyExchange(id: $id, token: $token) {\n ...KeyExchangeFragment\n }\n}\n", "\n"], ["\nquery KeyExchangeTokenQuery2($id: LrRelayIdInput!, $token: String) {\n keyExchange(id: $id, token: $token) {\n ...KeyExchangeFragment\n }\n}\n", "\n"])), KeyExchangeFragment);
|
|
8018
|
-
var CancelKeyExchangeMutation = gqlTyped(templateObject_6$4 || (templateObject_6$4 = __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"])));
|
|
8019
|
-
var DeclineKeyExchangeMutation = gqlTyped(templateObject_7$3 || (templateObject_7$3 = __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"])));
|
|
8020
|
-
var InitiateKeyExchangeOtkMutation = gqlTyped(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\nmutation InitiateKeyExchangeOtkMutation(\n $input: InitiateKeyExchangeOtkInput!\n) {\n initiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n }\n}\n", "\n"], ["\nmutation InitiateKeyExchangeOtkMutation(\n $input: InitiateKeyExchangeOtkInput!\n) {\n initiateKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n }\n}\n", "\n"])), KeyExchangeFragment);
|
|
8021
|
-
var RespondKeyExchangeOtkMutation = gqlTyped(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\nmutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"], ["\nmutation RespondKeyExchangeOtkMutation($input: RespondKeyExchangeOtkInput!) {\n respondKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"])), KeyExchangeFragment, UserSharedKeyFragment);
|
|
8022
|
-
var CompleteKeyExchangeOtkMutation = gqlTyped(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\nmutation CompleteKeyExchangeOtkMutation(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"], ["\nmutation CompleteKeyExchangeOtkMutation(\n $input: CompleteKeyExchangeOtkInput!\n) {\n completeKeyExchangeOtk(input: $input) {\n keyExchange {\n ...KeyExchangeFragment\n }\n userSharedKey {\n ...UserSharedKeyFragment\n }\n tp {\n id\n }\n }\n}\n", "\n", "\n"])), KeyExchangeFragment, UserSharedKeyFragment);
|
|
8023
|
-
var CurrentUserSharedKeyQuery2 = gqlTyped(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\nquery CurrentUserSharedKeyQuery2(\n $username: String\n $userId: LrRelayIdInput\n) {\n currentUserSharedKey(\n username: $username\n userId: $userId\n ) {\n userSharedKey {\n ...UserSharedKeyFragment\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 ...UserSharedKeyFragment\n }\n }\n}\n", "\n"])), UserSharedKeyFragment);
|
|
8024
|
-
var templateObject_1$g, templateObject_2$b, templateObject_3$a, templateObject_4$6, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8$3, templateObject_9$2, templateObject_10$1, templateObject_11$1;
|
|
7989
|
+
], exports.ItemService);
|
|
8025
7990
|
|
|
8026
|
-
exports.
|
|
8027
|
-
__extends(
|
|
8028
|
-
function
|
|
7991
|
+
exports.KeyExchangeService = /** @class */ (function (_super) {
|
|
7992
|
+
__extends(KeyExchangeService, _super);
|
|
7993
|
+
function KeyExchangeService(ngZone, injector, keyFactory, keyService, encryptionService, keyGraph) {
|
|
8029
7994
|
var _this = _super.call(this, injector) || this;
|
|
8030
7995
|
_this.ngZone = ngZone;
|
|
8031
7996
|
_this.injector = injector;
|
|
@@ -8036,7 +8001,7 @@
|
|
|
8036
8001
|
_this.CLIENT_NONCE_LENGTH = 32;
|
|
8037
8002
|
return _this;
|
|
8038
8003
|
}
|
|
8039
|
-
|
|
8004
|
+
KeyExchangeService.prototype.getOtKey = function (keyExchange, otKeyK) {
|
|
8040
8005
|
return __awaiter(this, void 0, void 0, function () {
|
|
8041
8006
|
var prk, decryptedCipher;
|
|
8042
8007
|
return __generator(this, function (_a) {
|
|
@@ -8063,7 +8028,7 @@
|
|
|
8063
8028
|
});
|
|
8064
8029
|
});
|
|
8065
8030
|
};
|
|
8066
|
-
|
|
8031
|
+
KeyExchangeService.prototype.decryptOtk = function (keyExchange, otKeyK) {
|
|
8067
8032
|
return __awaiter(this, void 0, void 0, function () {
|
|
8068
8033
|
var otKey, otk, _a, _b, _c, _d;
|
|
8069
8034
|
return __generator(this, function (_e) {
|
|
@@ -8085,7 +8050,7 @@
|
|
|
8085
8050
|
});
|
|
8086
8051
|
});
|
|
8087
8052
|
};
|
|
8088
|
-
|
|
8053
|
+
KeyExchangeService.prototype.decryptResponseCipher = function (otKey, otPrk, content) {
|
|
8089
8054
|
return __awaiter(this, void 0, void 0, function () {
|
|
8090
8055
|
var error_1;
|
|
8091
8056
|
return __generator(this, function (_a) {
|
|
@@ -8110,7 +8075,7 @@
|
|
|
8110
8075
|
});
|
|
8111
8076
|
});
|
|
8112
8077
|
};
|
|
8113
|
-
|
|
8078
|
+
KeyExchangeService.prototype.decryptKeyExchangeAsInitiator = function (keyExchange) {
|
|
8114
8079
|
return __awaiter(this, void 0, void 0, function () {
|
|
8115
8080
|
var rootKey, initiatorRootKeyCipherClearJson, otKey, otk, _a, _b, _c, _d, _e, _f, _g;
|
|
8116
8081
|
return __generator(this, function (_h) {
|
|
@@ -8148,14 +8113,14 @@
|
|
|
8148
8113
|
});
|
|
8149
8114
|
});
|
|
8150
8115
|
};
|
|
8151
|
-
|
|
8116
|
+
KeyExchangeService.prototype.decryptKeyExchangeAsResponder = function (keyExchange, otKeyK) {
|
|
8152
8117
|
return __awaiter(this, void 0, void 0, function () {
|
|
8153
8118
|
return __generator(this, function (_a) {
|
|
8154
8119
|
return [2 /*return*/, this.decryptOtk(keyExchange, otKeyK)];
|
|
8155
8120
|
});
|
|
8156
8121
|
});
|
|
8157
8122
|
};
|
|
8158
|
-
|
|
8123
|
+
KeyExchangeService.prototype.decryptKeyExchange = function (keyExchange, otKeyK) {
|
|
8159
8124
|
return __awaiter(this, void 0, void 0, function () {
|
|
8160
8125
|
return __generator(this, function (_a) {
|
|
8161
8126
|
if (keyExchange.isInitiator) {
|
|
@@ -8168,7 +8133,7 @@
|
|
|
8168
8133
|
});
|
|
8169
8134
|
});
|
|
8170
8135
|
};
|
|
8171
|
-
|
|
8136
|
+
KeyExchangeService.prototype.getKeyExchanges = function (_a) {
|
|
8172
8137
|
var _b = _a === void 0 ? {} : _a, state = _b.state;
|
|
8173
8138
|
return __awaiter(this, void 0, void 0, function () {
|
|
8174
8139
|
var keyExchanges;
|
|
@@ -8194,7 +8159,7 @@
|
|
|
8194
8159
|
* @param otKeyK Is the raw one-time key (string). If the responder is explicitly specified at time of initiation, then
|
|
8195
8160
|
* it's possible to have the otKey wrapped by the public key of the responder. In which case, the otKeyK is not needed.
|
|
8196
8161
|
*/
|
|
8197
|
-
|
|
8162
|
+
KeyExchangeService.prototype.getKeyExchange = function (id, _a) {
|
|
8198
8163
|
var _b = _a === void 0 ? {} : _a, otKeyK = _b.otKeyK, token = _b.token;
|
|
8199
8164
|
return __awaiter(this, void 0, void 0, function () {
|
|
8200
8165
|
var res;
|
|
@@ -8215,7 +8180,7 @@
|
|
|
8215
8180
|
});
|
|
8216
8181
|
});
|
|
8217
8182
|
};
|
|
8218
|
-
|
|
8183
|
+
KeyExchangeService.prototype.getCurrentUserSharedKey = function (input) {
|
|
8219
8184
|
return __awaiter(this, void 0, void 0, function () {
|
|
8220
8185
|
return __generator(this, function (_a) {
|
|
8221
8186
|
return [2 /*return*/, this.query({
|
|
@@ -8228,10 +8193,10 @@
|
|
|
8228
8193
|
});
|
|
8229
8194
|
});
|
|
8230
8195
|
};
|
|
8231
|
-
|
|
8196
|
+
KeyExchangeService.prototype.cancelKeyExchange = function (id) {
|
|
8232
8197
|
return this.mutate(this.cancelKeyExchangeMutation(id));
|
|
8233
8198
|
};
|
|
8234
|
-
|
|
8199
|
+
KeyExchangeService.prototype.cancelKeyExchangeMutation = function (id) {
|
|
8235
8200
|
return new LrMutation({
|
|
8236
8201
|
mutation: CancelKeyExchangeMutation,
|
|
8237
8202
|
variables: {
|
|
@@ -8241,10 +8206,10 @@
|
|
|
8241
8206
|
},
|
|
8242
8207
|
});
|
|
8243
8208
|
};
|
|
8244
|
-
|
|
8209
|
+
KeyExchangeService.prototype.declineKeyExchange = function (id, token) {
|
|
8245
8210
|
return this.mutate(this.declineKeyExchangeMutation(id, token));
|
|
8246
8211
|
};
|
|
8247
|
-
|
|
8212
|
+
KeyExchangeService.prototype.declineKeyExchangeMutation = function (id, token) {
|
|
8248
8213
|
return new LrMutation({
|
|
8249
8214
|
mutation: DeclineKeyExchangeMutation,
|
|
8250
8215
|
variables: {
|
|
@@ -8255,7 +8220,7 @@
|
|
|
8255
8220
|
},
|
|
8256
8221
|
});
|
|
8257
8222
|
};
|
|
8258
|
-
|
|
8223
|
+
KeyExchangeService.prototype.initiateOtk = function (input) {
|
|
8259
8224
|
if (input === void 0) { input = {}; }
|
|
8260
8225
|
return __awaiter(this, void 0, void 0, function () {
|
|
8261
8226
|
var _a;
|
|
@@ -8269,7 +8234,7 @@
|
|
|
8269
8234
|
});
|
|
8270
8235
|
});
|
|
8271
8236
|
};
|
|
8272
|
-
|
|
8237
|
+
KeyExchangeService.prototype.initiateOtkMutation = function (_a) {
|
|
8273
8238
|
var _b = _a === void 0 ? {} : _a, message = _b.message, email = _b.email, contactCard = _b.contactCard, upgrade = _b.upgrade;
|
|
8274
8239
|
return __awaiter(this, void 0, void 0, function () {
|
|
8275
8240
|
var otKey, nonce, initiatorOneTimePrk, initiatorPrk, initiatorSigPrk, initiatorPlainDataSig, initiator, plainOtKeyCipher, otKeyCipher, initiatorRootKeyCipherClearJson, rootKey, initiatorRootKeyCipher, otKeyK, lrMutation;
|
|
@@ -8354,10 +8319,10 @@
|
|
|
8354
8319
|
});
|
|
8355
8320
|
});
|
|
8356
8321
|
};
|
|
8357
|
-
|
|
8322
|
+
KeyExchangeService.prototype.respondOtk = function (input) {
|
|
8358
8323
|
return this.mutate(this.respondOtkMutation(input));
|
|
8359
8324
|
};
|
|
8360
|
-
|
|
8325
|
+
KeyExchangeService.prototype.respondOtkMutation = function (_a) {
|
|
8361
8326
|
var keyExchangeId = _a.keyExchangeId, token = _a.token, decryptedOtk = _a.decryptedOtk, message = _a.message, initiatorContactCard = _a.initiatorContactCard, responderContactCard = _a.responderContactCard;
|
|
8362
8327
|
return __awaiter(this, void 0, void 0, function () {
|
|
8363
8328
|
var rootKey, masterKey, sharedKey, mkSharedKey, rkWrappedSharedKey, mkWrappedMkSharedKey, initiatorOneTimePbk, initiatorPbk, initiatorSigPbk, responderPrk, responderSigPrk, signedInitiatorPbk, signedInitiatorSigPbk, initiatorOneTimePbkCipherClearJson, receivedCardInput, sharedCipherDataClearJson, receiverKey, ccSharedKey, sigPxk, _a, _b, _c, _d, _e, _f, _g, _h, sharedCipherData, _j, _k, _l, responderCardInput, ownerKey, ccSharedKey, sigPxk, _m, _o, _p, _q, _r, _s, _t, _u, sharedCipherData, _v, _w, _x, _y, _z, _0, initiatorOneTimePbkCipher;
|
|
@@ -8535,10 +8500,10 @@
|
|
|
8535
8500
|
});
|
|
8536
8501
|
});
|
|
8537
8502
|
};
|
|
8538
|
-
|
|
8503
|
+
KeyExchangeService.prototype.completeOtk = function (input) {
|
|
8539
8504
|
return this.mutate(this.completeOtkMutation(input));
|
|
8540
8505
|
};
|
|
8541
|
-
|
|
8506
|
+
KeyExchangeService.prototype.completeOtkMutation = function (_a) {
|
|
8542
8507
|
var keyExchangeId = _a.keyExchangeId, initiatorRootKeyCipher = _a.initiatorRootKeyCipher, initiatorOneTimePbkCipher = _a.initiatorOneTimePbkCipher, responderContactCard = _a.responderContactCard, initiatorContactCard = _a.initiatorContactCard;
|
|
8543
8508
|
return __awaiter(this, void 0, void 0, function () {
|
|
8544
8509
|
var rootKey, masterKey, initiatorRootKeyCipherClearJson, plainInitiatorOneTimePbkCipher, _a, _b, initiatorSigPrk, responderSigPbk, responderPbk, signedResponderPbk, signedResponderSigPbk, sharedKey, rkWrappedSharedKey, mkSharedKey, mkWrappedMkSharedKey, responderContactCardCipherInput, receiverKey, _c, _d, _e, _f, _g, initiatorContactCardCipherInput, initiatorContactCardSharedCipherInput, initiatorContactCardFromInit, ownerKey, sharedCipherKey, ownerWrappedKey, _h, _j, ownerCipherDataClearJson, ownerCipherData, _k, sharedCipherData, _l, _m, _o;
|
|
@@ -8672,15 +8637,15 @@
|
|
|
8672
8637
|
});
|
|
8673
8638
|
});
|
|
8674
8639
|
};
|
|
8675
|
-
return
|
|
8640
|
+
return KeyExchangeService;
|
|
8676
8641
|
}(LrService));
|
|
8677
|
-
exports.
|
|
8678
|
-
exports.
|
|
8642
|
+
exports.KeyExchangeService.ɵprov = i0.ɵɵdefineInjectable({ factory: function KeyExchangeService_Factory() { return new exports.KeyExchangeService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(KeyGraphService)); }, token: exports.KeyExchangeService, providedIn: "root" });
|
|
8643
|
+
exports.KeyExchangeService.decorators = [
|
|
8679
8644
|
{ type: i0.Injectable, args: [{
|
|
8680
8645
|
providedIn: 'root',
|
|
8681
8646
|
},] }
|
|
8682
8647
|
];
|
|
8683
|
-
exports.
|
|
8648
|
+
exports.KeyExchangeService.ctorParameters = function () { return [
|
|
8684
8649
|
{ type: i0.NgZone },
|
|
8685
8650
|
{ type: i0.Injector },
|
|
8686
8651
|
{ type: KeyFactoryService },
|
|
@@ -8688,11 +8653,11 @@
|
|
|
8688
8653
|
{ type: EncryptionService },
|
|
8689
8654
|
{ type: KeyGraphService }
|
|
8690
8655
|
]; };
|
|
8691
|
-
exports.
|
|
8656
|
+
exports.KeyExchangeService = __decorate([
|
|
8692
8657
|
RunOutsideAngular({
|
|
8693
8658
|
ngZoneName: 'ngZone',
|
|
8694
8659
|
})
|
|
8695
|
-
], exports.
|
|
8660
|
+
], exports.KeyExchangeService);
|
|
8696
8661
|
|
|
8697
8662
|
var ERROR_SOURCE = 'LBOP';
|
|
8698
8663
|
(function (KcLbopErrorCode) {
|
|
@@ -8704,16 +8669,14 @@
|
|
|
8704
8669
|
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"])));
|
|
8705
8670
|
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"])));
|
|
8706
8671
|
var LbopService = /** @class */ (function () {
|
|
8707
|
-
function LbopService(config, http, lrApollo, auth,
|
|
8672
|
+
function LbopService(config, http, lrApollo, auth, keyFactory, keyService, encryptionService, passwordService) {
|
|
8708
8673
|
this.config = config;
|
|
8709
8674
|
this.http = http;
|
|
8710
8675
|
this.lrApollo = lrApollo;
|
|
8711
8676
|
this.auth = auth;
|
|
8712
|
-
this.auth2Service = auth2Service;
|
|
8713
8677
|
this.keyFactory = keyFactory;
|
|
8714
8678
|
this.keyService = keyService;
|
|
8715
8679
|
this.encryptionService = encryptionService;
|
|
8716
|
-
this.keyGraph = keyGraph;
|
|
8717
8680
|
this.passwordService = passwordService;
|
|
8718
8681
|
this.CLIENT_NONCE_LENGTH = 32;
|
|
8719
8682
|
// There are 1024 words (10 bits), so 25 words should give ~256 bits of entropy.
|
|
@@ -9105,7 +9068,7 @@
|
|
|
9105
9068
|
};
|
|
9106
9069
|
return LbopService;
|
|
9107
9070
|
}());
|
|
9108
|
-
LbopService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LbopService_Factory() { return new LbopService(i0.ɵɵinject(KC_CONFIG), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(LrApolloService), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(
|
|
9071
|
+
LbopService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LbopService_Factory() { return new LbopService(i0.ɵɵinject(KC_CONFIG), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(LrApolloService), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(PasswordService)); }, token: LbopService, providedIn: "root" });
|
|
9109
9072
|
LbopService.decorators = [
|
|
9110
9073
|
{ type: i0.Injectable, args: [{
|
|
9111
9074
|
providedIn: 'root',
|
|
@@ -9116,11 +9079,9 @@
|
|
|
9116
9079
|
{ type: i2$1.HttpClient },
|
|
9117
9080
|
{ type: LrApolloService },
|
|
9118
9081
|
{ type: i4.AuthClass },
|
|
9119
|
-
{ type: exports.Auth2Service },
|
|
9120
9082
|
{ type: KeyFactoryService },
|
|
9121
9083
|
{ type: KeyService },
|
|
9122
9084
|
{ type: EncryptionService },
|
|
9123
|
-
{ type: KeyGraphService },
|
|
9124
9085
|
{ type: PasswordService }
|
|
9125
9086
|
]; };
|
|
9126
9087
|
var templateObject_1$h, templateObject_2$c, templateObject_3$b, templateObject_4$7, templateObject_5$6;
|
|
@@ -9314,22 +9275,22 @@
|
|
|
9314
9275
|
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"])));
|
|
9315
9276
|
var templateObject_1$j, templateObject_2$e, templateObject_3$d, templateObject_4$9, templateObject_5$8, templateObject_6$5, templateObject_7$4, templateObject_8$4, templateObject_9$3;
|
|
9316
9277
|
|
|
9317
|
-
exports.
|
|
9318
|
-
__extends(
|
|
9319
|
-
function
|
|
9278
|
+
exports.PlanService = /** @class */ (function (_super) {
|
|
9279
|
+
__extends(PlanService, _super);
|
|
9280
|
+
function PlanService(ngZone, injector) {
|
|
9320
9281
|
var _this = _super.call(this, injector) || this;
|
|
9321
9282
|
_this.ngZone = ngZone;
|
|
9322
9283
|
_this.injector = injector;
|
|
9323
9284
|
return _this;
|
|
9324
9285
|
}
|
|
9325
|
-
|
|
9286
|
+
PlanService.prototype.initiateStripePaymentMethodCapture = function () {
|
|
9326
9287
|
return this.mutate(this.initiateStripePaymentMethodCaptureMutation());
|
|
9327
9288
|
};
|
|
9328
9289
|
/**
|
|
9329
9290
|
* Starts a stripe payment capture intent. On intent can only add one card.
|
|
9330
9291
|
* @returns Promise that resolves to a mutation
|
|
9331
9292
|
*/
|
|
9332
|
-
|
|
9293
|
+
PlanService.prototype.initiateStripePaymentMethodCaptureMutation = function () {
|
|
9333
9294
|
return new LrMutation({
|
|
9334
9295
|
mutation: InitiateStripePaymentMethodCaptureMutation,
|
|
9335
9296
|
variables: {
|
|
@@ -9337,7 +9298,7 @@
|
|
|
9337
9298
|
},
|
|
9338
9299
|
});
|
|
9339
9300
|
};
|
|
9340
|
-
|
|
9301
|
+
PlanService.prototype.completeStripePaymentMethodCapture = function (stripeIntentId) {
|
|
9341
9302
|
return this.mutate(this.completeStripePaymentMethodCaptureMutation(stripeIntentId));
|
|
9342
9303
|
};
|
|
9343
9304
|
/**
|
|
@@ -9348,7 +9309,7 @@
|
|
|
9348
9309
|
*
|
|
9349
9310
|
* @returns Promise that resolves to a mutation with the just created PaymentMethodNode
|
|
9350
9311
|
*/
|
|
9351
|
-
|
|
9312
|
+
PlanService.prototype.completeStripePaymentMethodCaptureMutation = function (stripeIntentId) {
|
|
9352
9313
|
return new LrMutation({
|
|
9353
9314
|
mutation: CompleteStripePaymentMethodCaptureMutation,
|
|
9354
9315
|
variables: {
|
|
@@ -9356,7 +9317,7 @@
|
|
|
9356
9317
|
},
|
|
9357
9318
|
});
|
|
9358
9319
|
};
|
|
9359
|
-
|
|
9320
|
+
PlanService.prototype.setDefaultPaymentMethod = function (paymentMethodId) {
|
|
9360
9321
|
return this.mutate(this.setDefaultPaymentMethodMutation(paymentMethodId));
|
|
9361
9322
|
};
|
|
9362
9323
|
/**
|
|
@@ -9365,7 +9326,7 @@
|
|
|
9365
9326
|
* @param paymentMethodId The id from PaymentMethodNode
|
|
9366
9327
|
* @returns Promise that resolves to a mutation
|
|
9367
9328
|
*/
|
|
9368
|
-
|
|
9329
|
+
PlanService.prototype.setDefaultPaymentMethodMutation = function (paymentMethodId) {
|
|
9369
9330
|
return new LrMutation({
|
|
9370
9331
|
mutation: SetDefaultPaymentMethodMutation,
|
|
9371
9332
|
variables: {
|
|
@@ -9375,7 +9336,7 @@
|
|
|
9375
9336
|
},
|
|
9376
9337
|
});
|
|
9377
9338
|
};
|
|
9378
|
-
|
|
9339
|
+
PlanService.prototype.removeDefaultPaymentMethod = function () {
|
|
9379
9340
|
return this.mutate(this.removeDefaultPaymentMethodMutation());
|
|
9380
9341
|
};
|
|
9381
9342
|
/**
|
|
@@ -9383,7 +9344,7 @@
|
|
|
9383
9344
|
*
|
|
9384
9345
|
* @returns Promise that resolves to a mutation
|
|
9385
9346
|
*/
|
|
9386
|
-
|
|
9347
|
+
PlanService.prototype.removeDefaultPaymentMethodMutation = function () {
|
|
9387
9348
|
return new LrMutation({
|
|
9388
9349
|
mutation: RemoveDefaultPaymentMethodMutation,
|
|
9389
9350
|
variables: {
|
|
@@ -9391,7 +9352,7 @@
|
|
|
9391
9352
|
},
|
|
9392
9353
|
});
|
|
9393
9354
|
};
|
|
9394
|
-
|
|
9355
|
+
PlanService.prototype.issuePlan = function (options) {
|
|
9395
9356
|
return this.mutate(this.issuePlanMutation(options));
|
|
9396
9357
|
};
|
|
9397
9358
|
/**
|
|
@@ -9403,7 +9364,7 @@
|
|
|
9403
9364
|
* @param options.promotionalCode promotion code where applicable
|
|
9404
9365
|
* @returns Promise that resolves to a mutation
|
|
9405
9366
|
*/
|
|
9406
|
-
|
|
9367
|
+
PlanService.prototype.issuePlanMutation = function (options) {
|
|
9407
9368
|
return new LrMutation({
|
|
9408
9369
|
mutation: IssuePlanMutation,
|
|
9409
9370
|
variables: {
|
|
@@ -9411,7 +9372,7 @@
|
|
|
9411
9372
|
},
|
|
9412
9373
|
});
|
|
9413
9374
|
};
|
|
9414
|
-
|
|
9375
|
+
PlanService.prototype.removePaymentMethod = function (paymentMethodId) {
|
|
9415
9376
|
return this.mutate(this.removePaymentMethodMutation(paymentMethodId));
|
|
9416
9377
|
};
|
|
9417
9378
|
/**
|
|
@@ -9420,7 +9381,7 @@
|
|
|
9420
9381
|
* @param paymentMethodId The id from PaymentMethodNode
|
|
9421
9382
|
* @returns Promise that resolves to a mutation
|
|
9422
9383
|
*/
|
|
9423
|
-
|
|
9384
|
+
PlanService.prototype.removePaymentMethodMutation = function (paymentMethodId) {
|
|
9424
9385
|
return new LrMutation({
|
|
9425
9386
|
mutation: RemovePaymentMethodMutation,
|
|
9426
9387
|
variables: {
|
|
@@ -9430,7 +9391,7 @@
|
|
|
9430
9391
|
},
|
|
9431
9392
|
});
|
|
9432
9393
|
};
|
|
9433
|
-
|
|
9394
|
+
PlanService.prototype.cancelPlan = function (options) {
|
|
9434
9395
|
return this.mutate(this.cancelPlanMutation(options));
|
|
9435
9396
|
};
|
|
9436
9397
|
/**
|
|
@@ -9440,7 +9401,7 @@
|
|
|
9440
9401
|
* @param options.immediate If true, cancel plan effective immediately. Default false.
|
|
9441
9402
|
* @returns Promise that resolves to a mutation
|
|
9442
9403
|
*/
|
|
9443
|
-
|
|
9404
|
+
PlanService.prototype.cancelPlanMutation = function (options) {
|
|
9444
9405
|
return new LrMutation({
|
|
9445
9406
|
mutation: CancelPlanMutation,
|
|
9446
9407
|
variables: {
|
|
@@ -9448,7 +9409,7 @@
|
|
|
9448
9409
|
},
|
|
9449
9410
|
});
|
|
9450
9411
|
};
|
|
9451
|
-
|
|
9412
|
+
PlanService.prototype.changePriceOption = function (options) {
|
|
9452
9413
|
return this.mutate(this.changePriceOptionMutation(options));
|
|
9453
9414
|
};
|
|
9454
9415
|
/**
|
|
@@ -9458,7 +9419,7 @@
|
|
|
9458
9419
|
* @param options.priceId The priceId from PriceOptionField (eg. inside AvailablePlanField)
|
|
9459
9420
|
* @returns Promise that resolves to a mutation
|
|
9460
9421
|
*/
|
|
9461
|
-
|
|
9422
|
+
PlanService.prototype.changePriceOptionMutation = function (options) {
|
|
9462
9423
|
return new LrMutation({
|
|
9463
9424
|
mutation: ChangePriceOptionMutation,
|
|
9464
9425
|
variables: {
|
|
@@ -9466,7 +9427,7 @@
|
|
|
9466
9427
|
},
|
|
9467
9428
|
});
|
|
9468
9429
|
};
|
|
9469
|
-
|
|
9430
|
+
PlanService.prototype.reactivatePlan = function (planId) {
|
|
9470
9431
|
return this.mutate(this.reactivatePlanMutation(planId));
|
|
9471
9432
|
};
|
|
9472
9433
|
/**
|
|
@@ -9475,7 +9436,7 @@
|
|
|
9475
9436
|
* @param options.planId The id from IssuedPlanNode
|
|
9476
9437
|
* @returns Promise that resolves to a mutation
|
|
9477
9438
|
*/
|
|
9478
|
-
|
|
9439
|
+
PlanService.prototype.reactivatePlanMutation = function (planId) {
|
|
9479
9440
|
return new LrMutation({
|
|
9480
9441
|
mutation: ReactivatePlanMutation,
|
|
9481
9442
|
variables: {
|
|
@@ -9483,23 +9444,23 @@
|
|
|
9483
9444
|
},
|
|
9484
9445
|
});
|
|
9485
9446
|
};
|
|
9486
|
-
return
|
|
9447
|
+
return PlanService;
|
|
9487
9448
|
}(LrService));
|
|
9488
|
-
exports.
|
|
9489
|
-
exports.
|
|
9449
|
+
exports.PlanService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlanService_Factory() { return new exports.PlanService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR)); }, token: exports.PlanService, providedIn: "root" });
|
|
9450
|
+
exports.PlanService.decorators = [
|
|
9490
9451
|
{ type: i0.Injectable, args: [{
|
|
9491
9452
|
providedIn: 'root',
|
|
9492
9453
|
},] }
|
|
9493
9454
|
];
|
|
9494
|
-
exports.
|
|
9455
|
+
exports.PlanService.ctorParameters = function () { return [
|
|
9495
9456
|
{ type: i0.NgZone },
|
|
9496
9457
|
{ type: i0.Injector }
|
|
9497
9458
|
]; };
|
|
9498
|
-
exports.
|
|
9459
|
+
exports.PlanService = __decorate([
|
|
9499
9460
|
RunOutsideAngular({
|
|
9500
9461
|
ngZoneName: 'ngZone',
|
|
9501
9462
|
})
|
|
9502
|
-
], exports.
|
|
9463
|
+
], exports.PlanService);
|
|
9503
9464
|
|
|
9504
9465
|
var ContactFields;
|
|
9505
9466
|
(function (ContactFields) {
|
|
@@ -10107,6 +10068,12 @@
|
|
|
10107
10068
|
{ type: PasswordService }
|
|
10108
10069
|
]; };
|
|
10109
10070
|
|
|
10071
|
+
var RegisterResult = /** @class */ (function () {
|
|
10072
|
+
function RegisterResult() {
|
|
10073
|
+
}
|
|
10074
|
+
return RegisterResult;
|
|
10075
|
+
}());
|
|
10076
|
+
|
|
10110
10077
|
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"])));
|
|
10111
10078
|
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"])));
|
|
10112
10079
|
var DeleteReminderMutation = gqlTyped(templateObject_3$e || (templateObject_3$e = __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"])));
|
|
@@ -10199,6 +10166,18 @@
|
|
|
10199
10166
|
})
|
|
10200
10167
|
], exports.ReminderService);
|
|
10201
10168
|
|
|
10169
|
+
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
|
+
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
|
+
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$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"])));
|
|
10173
|
+
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"])));
|
|
10174
|
+
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
|
+
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
|
+
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
|
+
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
|
+
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$a, templateObject_5$9, templateObject_6$6, templateObject_7$5, templateObject_8$5, templateObject_9$4, templateObject_10$1;
|
|
10180
|
+
|
|
10202
10181
|
var SCENARIO_SLIP39_PASSPHRASE = 'lifeready';
|
|
10203
10182
|
|
|
10204
10183
|
exports.ɵm = /** @class */ (function (_super) {
|
|
@@ -10231,18 +10210,6 @@
|
|
|
10231
10210
|
})
|
|
10232
10211
|
], exports.ɵm);
|
|
10233
10212
|
|
|
10234
|
-
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"])));
|
|
10235
|
-
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"])));
|
|
10236
|
-
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"])));
|
|
10237
|
-
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"])));
|
|
10238
|
-
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"])));
|
|
10239
|
-
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"])));
|
|
10240
|
-
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"])));
|
|
10241
|
-
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"])));
|
|
10242
|
-
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"])));
|
|
10243
|
-
var DebugExpireTpPasswordResetRequestMutation = gqlTyped(templateObject_10$2 || (templateObject_10$2 = __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"])));
|
|
10244
|
-
var templateObject_1$l, templateObject_2$g, templateObject_3$f, templateObject_4$a, templateObject_5$9, templateObject_6$6, templateObject_7$5, templateObject_8$5, templateObject_9$4, templateObject_10$2;
|
|
10245
|
-
|
|
10246
10213
|
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 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}"], ["\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 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}"])));
|
|
10247
10214
|
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 edges {\n node {\n id\n wrappedItemKey\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 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 receiverDirectories {\n edges {\n node {\n id\n wrappedItemKey\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 approvals {\n edges {\n node {\n receiverCipher\n receiverCipherPartialAssemblyKey\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n}\n"])));
|
|
10248
10215
|
var templateObject_1$m, templateObject_2$h;
|
|
@@ -10255,12 +10222,12 @@
|
|
|
10255
10222
|
}
|
|
10256
10223
|
exports.ScenarioService = /** @class */ (function (_super) {
|
|
10257
10224
|
__extends(ScenarioService, _super);
|
|
10258
|
-
function ScenarioService(ngZone, injector, keyGraph,
|
|
10225
|
+
function ScenarioService(ngZone, injector, keyGraph, itemService, assemblyController, encryptionService) {
|
|
10259
10226
|
var _this = _super.call(this, injector) || this;
|
|
10260
10227
|
_this.ngZone = ngZone;
|
|
10261
10228
|
_this.injector = injector;
|
|
10262
10229
|
_this.keyGraph = keyGraph;
|
|
10263
|
-
_this.
|
|
10230
|
+
_this.itemService = itemService;
|
|
10264
10231
|
_this.assemblyController = assemblyController;
|
|
10265
10232
|
_this.encryptionService = encryptionService;
|
|
10266
10233
|
_this.prepareAddReceiverDirectory = _this.prepareReceiverDirectory;
|
|
@@ -10720,7 +10687,7 @@
|
|
|
10720
10687
|
var directoryKey, sharedCipherData, wrappedItemKey;
|
|
10721
10688
|
return __generator(this, function (_a) {
|
|
10722
10689
|
switch (_a.label) {
|
|
10723
|
-
case 0: return [4 /*yield*/, this.
|
|
10690
|
+
case 0: return [4 /*yield*/, this.itemService.getDirectoryKey(options.directoryId, options.directoryKeyId)];
|
|
10724
10691
|
case 1:
|
|
10725
10692
|
directoryKey = _a.sent();
|
|
10726
10693
|
return [4 /*yield*/, this.keyGraph.encryptToString(receiverSharedKey, options.sharedCipherDataClearJson || '')];
|
|
@@ -11071,7 +11038,7 @@
|
|
|
11071
11038
|
return ScenarioService;
|
|
11072
11039
|
}(LrService));
|
|
11073
11040
|
exports.ScenarioService.SLIP39_PASSPHRASE = 'lifeready';
|
|
11074
|
-
exports.ScenarioService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ScenarioService_Factory() { return new exports.ScenarioService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.
|
|
11041
|
+
exports.ScenarioService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ScenarioService_Factory() { return new exports.ScenarioService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.ItemService), i0.ɵɵinject(exports.ɵm), i0.ɵɵinject(EncryptionService)); }, token: exports.ScenarioService, providedIn: "root" });
|
|
11075
11042
|
exports.ScenarioService.decorators = [
|
|
11076
11043
|
{ type: i0.Injectable, args: [{
|
|
11077
11044
|
providedIn: 'root',
|
|
@@ -11081,7 +11048,7 @@
|
|
|
11081
11048
|
{ type: i0.NgZone },
|
|
11082
11049
|
{ type: i0.Injector },
|
|
11083
11050
|
{ type: KeyGraphService },
|
|
11084
|
-
{ type: exports.
|
|
11051
|
+
{ type: exports.ItemService },
|
|
11085
11052
|
{ type: exports.ɵm },
|
|
11086
11053
|
{ type: EncryptionService }
|
|
11087
11054
|
]; };
|
|
@@ -11793,23 +11760,23 @@
|
|
|
11793
11760
|
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"])));
|
|
11794
11761
|
var templateObject_1$r;
|
|
11795
11762
|
|
|
11796
|
-
exports.
|
|
11797
|
-
__extends(
|
|
11798
|
-
function
|
|
11763
|
+
exports.TrustedPartyService = /** @class */ (function (_super) {
|
|
11764
|
+
__extends(TrustedPartyService, _super);
|
|
11765
|
+
function TrustedPartyService(ngZone, injector, keyGraph, itemService, keyService, keyFactory, encryptionService) {
|
|
11799
11766
|
var _this = _super.call(this, injector) || this;
|
|
11800
11767
|
_this.ngZone = ngZone;
|
|
11801
11768
|
_this.injector = injector;
|
|
11802
11769
|
_this.keyGraph = keyGraph;
|
|
11803
|
-
_this.
|
|
11770
|
+
_this.itemService = itemService;
|
|
11804
11771
|
_this.keyService = keyService;
|
|
11805
11772
|
_this.keyFactory = keyFactory;
|
|
11806
11773
|
_this.encryptionService = encryptionService;
|
|
11807
11774
|
return _this;
|
|
11808
11775
|
}
|
|
11809
|
-
|
|
11776
|
+
TrustedPartyService.prototype.deleteTp = function (tpId) {
|
|
11810
11777
|
return this.mutate(this.deleteTpMutation(tpId));
|
|
11811
11778
|
};
|
|
11812
|
-
|
|
11779
|
+
TrustedPartyService.prototype.deleteTpMutation = function (tpId) {
|
|
11813
11780
|
return new LrMutation({
|
|
11814
11781
|
mutation: DeleteTpMutation,
|
|
11815
11782
|
variables: {
|
|
@@ -11819,35 +11786,35 @@
|
|
|
11819
11786
|
},
|
|
11820
11787
|
});
|
|
11821
11788
|
};
|
|
11822
|
-
|
|
11789
|
+
TrustedPartyService.prototype.shareDirectory = function (options) {
|
|
11823
11790
|
return __awaiter(this, void 0, void 0, function () {
|
|
11824
11791
|
return __generator(this, function (_a) {
|
|
11825
11792
|
return [2 /*return*/, this.mutate(this.shareDirectoryMutation(options))];
|
|
11826
11793
|
});
|
|
11827
11794
|
});
|
|
11828
11795
|
};
|
|
11829
|
-
|
|
11796
|
+
TrustedPartyService.prototype.shareDirectoryMutation = function (options) {
|
|
11830
11797
|
return __awaiter(this, void 0, void 0, function () {
|
|
11831
11798
|
return __generator(this, function (_a) {
|
|
11832
11799
|
return [2 /*return*/, this.shareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
11833
11800
|
});
|
|
11834
11801
|
});
|
|
11835
11802
|
};
|
|
11836
|
-
|
|
11803
|
+
TrustedPartyService.prototype.shareFile = function (options) {
|
|
11837
11804
|
return __awaiter(this, void 0, void 0, function () {
|
|
11838
11805
|
return __generator(this, function (_a) {
|
|
11839
11806
|
return [2 /*return*/, this.mutate(this.shareFileMutation(options))];
|
|
11840
11807
|
});
|
|
11841
11808
|
});
|
|
11842
11809
|
};
|
|
11843
|
-
|
|
11810
|
+
TrustedPartyService.prototype.shareFileMutation = function (options) {
|
|
11844
11811
|
return __awaiter(this, void 0, void 0, function () {
|
|
11845
11812
|
return __generator(this, function (_a) {
|
|
11846
11813
|
return [2 /*return*/, this.shareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
11847
11814
|
});
|
|
11848
11815
|
});
|
|
11849
11816
|
};
|
|
11850
|
-
|
|
11817
|
+
TrustedPartyService.prototype.shareItemMutation = function (_a) {
|
|
11851
11818
|
var itemId = _a.itemId, itemKeyId = _a.itemKeyId, tpId = _a.tpId, tpSharedKeyId = _a.tpSharedKeyId, accessRole = _a.accessRole, isDirectory = _a.isDirectory;
|
|
11852
11819
|
return __awaiter(this, void 0, void 0, function () {
|
|
11853
11820
|
var itemKey, wrappingKey, wrappedKey;
|
|
@@ -11855,8 +11822,8 @@
|
|
|
11855
11822
|
return __generator(this, function (_a) {
|
|
11856
11823
|
switch (_a.label) {
|
|
11857
11824
|
case 0: return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
|
|
11858
|
-
? _this.
|
|
11859
|
-
: _this.
|
|
11825
|
+
? _this.itemService.getDirectoryKeyId(itemId)
|
|
11826
|
+
: _this.itemService.getFileKeyId(itemId); })];
|
|
11860
11827
|
case 1:
|
|
11861
11828
|
itemKey = _a.sent();
|
|
11862
11829
|
return [4 /*yield*/, this.keyGraph.getKey(tpSharedKeyId, function () { return _this.getTpCurrentUserSharedKey(tpId).then(function (res) { return res.sharedKey.id; }); })];
|
|
@@ -11882,35 +11849,35 @@
|
|
|
11882
11849
|
});
|
|
11883
11850
|
});
|
|
11884
11851
|
};
|
|
11885
|
-
|
|
11852
|
+
TrustedPartyService.prototype.unshareDirectory = function (options) {
|
|
11886
11853
|
return __awaiter(this, void 0, void 0, function () {
|
|
11887
11854
|
return __generator(this, function (_a) {
|
|
11888
11855
|
return [2 /*return*/, this.mutate(this.unshareDirectoryMutation(options))];
|
|
11889
11856
|
});
|
|
11890
11857
|
});
|
|
11891
11858
|
};
|
|
11892
|
-
|
|
11859
|
+
TrustedPartyService.prototype.unshareDirectoryMutation = function (options) {
|
|
11893
11860
|
return __awaiter(this, void 0, void 0, function () {
|
|
11894
11861
|
return __generator(this, function (_a) {
|
|
11895
11862
|
return [2 /*return*/, this.unshareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
|
|
11896
11863
|
});
|
|
11897
11864
|
});
|
|
11898
11865
|
};
|
|
11899
|
-
|
|
11866
|
+
TrustedPartyService.prototype.unshareFile = function (options) {
|
|
11900
11867
|
return __awaiter(this, void 0, void 0, function () {
|
|
11901
11868
|
return __generator(this, function (_a) {
|
|
11902
11869
|
return [2 /*return*/, this.mutate(this.unshareFileMutation(options))];
|
|
11903
11870
|
});
|
|
11904
11871
|
});
|
|
11905
11872
|
};
|
|
11906
|
-
|
|
11873
|
+
TrustedPartyService.prototype.unshareFileMutation = function (options) {
|
|
11907
11874
|
return __awaiter(this, void 0, void 0, function () {
|
|
11908
11875
|
return __generator(this, function (_a) {
|
|
11909
11876
|
return [2 /*return*/, this.unshareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
|
|
11910
11877
|
});
|
|
11911
11878
|
});
|
|
11912
11879
|
};
|
|
11913
|
-
|
|
11880
|
+
TrustedPartyService.prototype.unshareItemMutation = function (_a) {
|
|
11914
11881
|
var itemId = _a.itemId, tpId = _a.tpId, isDirectory = _a.isDirectory;
|
|
11915
11882
|
return __awaiter(this, void 0, void 0, function () {
|
|
11916
11883
|
return __generator(this, function (_a) {
|
|
@@ -11926,7 +11893,7 @@
|
|
|
11926
11893
|
});
|
|
11927
11894
|
});
|
|
11928
11895
|
};
|
|
11929
|
-
|
|
11896
|
+
TrustedPartyService.prototype.requestMkReshareMutation = function (tpId) {
|
|
11930
11897
|
return __awaiter(this, void 0, void 0, function () {
|
|
11931
11898
|
var userSharedKey, masterKey, prk, mkWrappedMkPrk, sharedKey, mkReshareRequestCipher;
|
|
11932
11899
|
return __generator(this, function (_a) {
|
|
@@ -11970,7 +11937,7 @@
|
|
|
11970
11937
|
});
|
|
11971
11938
|
});
|
|
11972
11939
|
};
|
|
11973
|
-
|
|
11940
|
+
TrustedPartyService.prototype.respondMkReshare = function (tpId) {
|
|
11974
11941
|
return __awaiter(this, void 0, void 0, function () {
|
|
11975
11942
|
var userSharedKey, sharedKey, plainMkReshareRequestCipher, pbk, mkSharedKey, plainMkReshareResponseCipher, mkReshareResponseCipher, _a, _b, _c;
|
|
11976
11943
|
return __generator(this, function (_d) {
|
|
@@ -12019,7 +11986,7 @@
|
|
|
12019
11986
|
});
|
|
12020
11987
|
});
|
|
12021
11988
|
};
|
|
12022
|
-
|
|
11989
|
+
TrustedPartyService.prototype.completeMkReshare = function (tpId) {
|
|
12023
11990
|
return __awaiter(this, void 0, void 0, function () {
|
|
12024
11991
|
var userSharedKey, sharedKey, prk, plainMkReshareResponseCipher, _a, _b, _c, mkSharedKey, _d, masterKey, mkWrappedMkSharedKey;
|
|
12025
11992
|
return __generator(this, function (_e) {
|
|
@@ -12070,7 +12037,7 @@
|
|
|
12070
12037
|
// Helpers
|
|
12071
12038
|
// ------------------------------------------------------------------------------------
|
|
12072
12039
|
// ------------------------------------------------------------------------------------
|
|
12073
|
-
|
|
12040
|
+
TrustedPartyService.prototype.getTpCurrentUserSharedKey = function (tpId) {
|
|
12074
12041
|
return __awaiter(this, void 0, void 0, function () {
|
|
12075
12042
|
return __generator(this, function (_a) {
|
|
12076
12043
|
switch (_a.label) {
|
|
@@ -12085,28 +12052,28 @@
|
|
|
12085
12052
|
});
|
|
12086
12053
|
});
|
|
12087
12054
|
};
|
|
12088
|
-
return
|
|
12055
|
+
return TrustedPartyService;
|
|
12089
12056
|
}(LrService));
|
|
12090
|
-
exports.
|
|
12091
|
-
exports.
|
|
12057
|
+
exports.TrustedPartyService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TrustedPartyService_Factory() { return new exports.TrustedPartyService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.ItemService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(EncryptionService)); }, token: exports.TrustedPartyService, providedIn: "root" });
|
|
12058
|
+
exports.TrustedPartyService.decorators = [
|
|
12092
12059
|
{ type: i0.Injectable, args: [{
|
|
12093
12060
|
providedIn: 'root',
|
|
12094
12061
|
},] }
|
|
12095
12062
|
];
|
|
12096
|
-
exports.
|
|
12063
|
+
exports.TrustedPartyService.ctorParameters = function () { return [
|
|
12097
12064
|
{ type: i0.NgZone },
|
|
12098
12065
|
{ type: i0.Injector },
|
|
12099
12066
|
{ type: KeyGraphService },
|
|
12100
|
-
{ type: exports.
|
|
12067
|
+
{ type: exports.ItemService },
|
|
12101
12068
|
{ type: KeyService },
|
|
12102
12069
|
{ type: KeyFactoryService },
|
|
12103
12070
|
{ type: EncryptionService }
|
|
12104
12071
|
]; };
|
|
12105
|
-
exports.
|
|
12072
|
+
exports.TrustedPartyService = __decorate([
|
|
12106
12073
|
RunOutsideAngular({
|
|
12107
12074
|
ngZoneName: 'ngZone',
|
|
12108
12075
|
})
|
|
12109
|
-
], exports.
|
|
12076
|
+
], exports.TrustedPartyService);
|
|
12110
12077
|
|
|
12111
12078
|
var TwoFactorService = /** @class */ (function () {
|
|
12112
12079
|
function TwoFactorService(auth) {
|
|
@@ -12326,25 +12293,53 @@
|
|
|
12326
12293
|
|
|
12327
12294
|
exports.ApiContactCard = ApiContactCard;
|
|
12328
12295
|
exports.ApiCurrentUser = ApiCurrentUser;
|
|
12329
|
-
exports.
|
|
12296
|
+
exports.ApproveScenarioClaimMutation = ApproveScenarioClaimMutation;
|
|
12297
|
+
exports.ApproveTpPasswordResetRequestMutation = ApproveTpPasswordResetRequestMutation;
|
|
12298
|
+
exports.ArchiveDirectoryMutation = ArchiveDirectoryMutation;
|
|
12299
|
+
exports.ArchiveFileMutation = ArchiveFileMutation;
|
|
12300
|
+
exports.BeginDeleteChildItemLinksWindowMutation = BeginDeleteChildItemLinksWindowMutation;
|
|
12301
|
+
exports.CancelKeyExchangeMutation = CancelKeyExchangeMutation;
|
|
12302
|
+
exports.CancelScenarioClaimMutation = CancelScenarioClaimMutation;
|
|
12303
|
+
exports.CancelTpPasswordResetRequestMutation = CancelTpPasswordResetRequestMutation;
|
|
12330
12304
|
exports.CancelUserDeleteMutation = CancelUserDeleteMutation;
|
|
12305
|
+
exports.ChangeDirectoryParentsMutation = ChangeDirectoryParentsMutation;
|
|
12306
|
+
exports.ChangeFileParentsMutation = ChangeFileParentsMutation;
|
|
12307
|
+
exports.CompleteKeyExchangeOtkMutation = CompleteKeyExchangeOtkMutation;
|
|
12308
|
+
exports.CompleteTpPasswordResetRequestMutation = CompleteTpPasswordResetRequestMutation;
|
|
12331
12309
|
exports.ContactCardAddress = ContactCardAddress;
|
|
12332
12310
|
exports.ContactCardName = ContactCardName;
|
|
12333
12311
|
exports.ContactCardsQuery = ContactCardsQuery;
|
|
12334
12312
|
exports.CreateContactCardMutation = CreateContactCardMutation$1;
|
|
12313
|
+
exports.CreateDirectoryMutation = CreateDirectoryMutation;
|
|
12314
|
+
exports.CreateFileMutation = CreateFileMutation;
|
|
12335
12315
|
exports.CreateFileQuery = CreateFileQuery;
|
|
12336
12316
|
exports.CreateLbopQuery = CreateLbopQuery;
|
|
12317
|
+
exports.CreateScenarioClaimMutation = CreateScenarioClaimMutation;
|
|
12318
|
+
exports.CreateScenarioMutation = CreateScenarioMutation;
|
|
12319
|
+
exports.CreateTpAssemblyKeyChallengeMutation = CreateTpAssemblyKeyChallengeMutation;
|
|
12320
|
+
exports.CreateTpPasswordResetMutation = CreateTpPasswordResetMutation;
|
|
12337
12321
|
exports.CurrentUserKey = CurrentUserKey;
|
|
12338
12322
|
exports.CurrentUserQuery = CurrentUserQuery;
|
|
12323
|
+
exports.CurrentUserSharedKeyQuery2 = CurrentUserSharedKeyQuery2;
|
|
12324
|
+
exports.DebugExpireScenarioClaimMutation = DebugExpireScenarioClaimMutation;
|
|
12325
|
+
exports.DebugExpireTpPasswordResetRequestMutation = DebugExpireTpPasswordResetRequestMutation;
|
|
12326
|
+
exports.DeclineKeyExchangeMutation = DeclineKeyExchangeMutation;
|
|
12339
12327
|
exports.DefaultProcessorOptions = DefaultProcessorOptions;
|
|
12328
|
+
exports.DeleteDirectoryMutation = DeleteDirectoryMutation;
|
|
12329
|
+
exports.DeleteFileMutation = DeleteFileMutation;
|
|
12340
12330
|
exports.DeleteLbopQuery = DeleteLbopQuery;
|
|
12331
|
+
exports.DeleteScenarioMutation = DeleteScenarioMutation;
|
|
12332
|
+
exports.DeleteTpPasswordResetMutation = DeleteTpPasswordResetMutation;
|
|
12341
12333
|
exports.DirectoryQuery = DirectoryQuery;
|
|
12342
12334
|
exports.ERROR_SOURCE = ERROR_SOURCE;
|
|
12343
12335
|
exports.Features = Features;
|
|
12344
12336
|
exports.FetchKeyGraphField = FetchKeyGraphField;
|
|
12345
12337
|
exports.FileQuery = FileQuery;
|
|
12346
12338
|
exports.FileUploadService = FileUploadService;
|
|
12339
|
+
exports.GetOwnedContactCardKeyIdsQuery = GetOwnedContactCardKeyIdsQuery;
|
|
12340
|
+
exports.GetReceivedContactCardKeyIdQuery = GetReceivedContactCardKeyIdQuery;
|
|
12347
12341
|
exports.IdleService = IdleService;
|
|
12342
|
+
exports.InitiateKeyExchangeOtkMutation = InitiateKeyExchangeOtkMutation;
|
|
12348
12343
|
exports.KC_CONFIG = KC_CONFIG;
|
|
12349
12344
|
exports.KcAuthException = KcAuthException;
|
|
12350
12345
|
exports.KcBadArgumentException = KcBadArgumentException;
|
|
@@ -12364,6 +12359,9 @@
|
|
|
12364
12359
|
exports.KcSuspiciousOperationException = KcSuspiciousOperationException;
|
|
12365
12360
|
exports.KcUnsupportedException = KcUnsupportedException;
|
|
12366
12361
|
exports.KeyExchangeFields = KeyExchangeFields;
|
|
12362
|
+
exports.KeyExchangeQuery2 = KeyExchangeQuery2;
|
|
12363
|
+
exports.KeyExchangeTokenQuery2 = KeyExchangeTokenQuery2;
|
|
12364
|
+
exports.KeyExchangesQuery2 = KeyExchangesQuery2;
|
|
12367
12365
|
exports.KeyGraphField = KeyGraphField;
|
|
12368
12366
|
exports.KeyGraphFragment = KeyGraphFragment;
|
|
12369
12367
|
exports.LbopQuery = LbopQuery;
|
|
@@ -12383,28 +12381,45 @@
|
|
|
12383
12381
|
exports.MoveDirectoryQuery = MoveDirectoryQuery;
|
|
12384
12382
|
exports.MoveFileQuery = MoveFileQuery;
|
|
12385
12383
|
exports.OwnerPlainDataJson = OwnerPlainDataJson;
|
|
12386
|
-
exports.PassIdpApiResult = PassIdpApiResult;
|
|
12387
12384
|
exports.PasswordCheck = PasswordCheck;
|
|
12388
12385
|
exports.PasswordService = PasswordService;
|
|
12389
12386
|
exports.PersistService = PersistService;
|
|
12387
|
+
exports.PreCompleteTpPasswordResetRequestMutation = PreCompleteTpPasswordResetRequestMutation;
|
|
12390
12388
|
exports.ProfileDetailsService = ProfileDetailsService;
|
|
12391
12389
|
exports.ProfileService = ProfileService;
|
|
12390
|
+
exports.ReceiveScenarioClaimMutation = ReceiveScenarioClaimMutation;
|
|
12391
|
+
exports.RegisterResult = RegisterResult;
|
|
12392
12392
|
exports.RegisterService = RegisterService;
|
|
12393
|
+
exports.RejectScenarioClaimMutation = RejectScenarioClaimMutation;
|
|
12394
|
+
exports.RejectTpPasswordResetRequestMutation = RejectTpPasswordResetRequestMutation;
|
|
12393
12395
|
exports.RequestUserDeleteMutation = RequestUserDeleteMutation;
|
|
12396
|
+
exports.RespondKeyExchangeOtkMutation = RespondKeyExchangeOtkMutation;
|
|
12397
|
+
exports.RevertFileMutation = RevertFileMutation;
|
|
12394
12398
|
exports.RevertFileQuery = RevertFileQuery;
|
|
12395
12399
|
exports.ServerTimeQuery = ServerTimeQuery;
|
|
12400
|
+
exports.SetDirectoryConfidentialMutation = SetDirectoryConfidentialMutation;
|
|
12401
|
+
exports.SetFileConfidentialMutation = SetFileConfidentialMutation;
|
|
12396
12402
|
exports.SharedTrustedPartyDetails = SharedTrustedPartyDetails;
|
|
12397
12403
|
exports.SharedVaultFeature = SharedVaultFeature;
|
|
12398
12404
|
exports.TPFeatures = TPFeatures;
|
|
12405
|
+
exports.TempDirectoryQuery = TempDirectoryQuery;
|
|
12399
12406
|
exports.TimeService = TimeService;
|
|
12400
12407
|
exports.TrustedPartiesQuery = TrustedPartiesQuery;
|
|
12401
12408
|
exports.TrustedParty = TrustedParty;
|
|
12402
12409
|
exports.TrustedPartyDetails = TrustedPartyDetails;
|
|
12403
12410
|
exports.TrustedPartyProperties = TrustedPartyProperties;
|
|
12404
12411
|
exports.TwoFactorService = TwoFactorService;
|
|
12412
|
+
exports.UnarchiveDirectoryMutation = UnarchiveDirectoryMutation;
|
|
12413
|
+
exports.UnarchiveFileMutation = UnarchiveFileMutation;
|
|
12405
12414
|
exports.UpdateContactCardMutation = UpdateContactCardMutation$1;
|
|
12415
|
+
exports.UpdateDirectoryMutation = UpdateDirectoryMutation;
|
|
12416
|
+
exports.UpdateFileMutation = UpdateFileMutation;
|
|
12406
12417
|
exports.UpdateFileQuery = UpdateFileQuery;
|
|
12407
12418
|
exports.UpdateLbopQuery = UpdateLbopQuery;
|
|
12419
|
+
exports.UpdateOwnedContactCardMutation = UpdateOwnedContactCardMutation;
|
|
12420
|
+
exports.UpdateReceivedContactCardMutation = UpdateReceivedContactCardMutation;
|
|
12421
|
+
exports.UpdateScenarioMutation = UpdateScenarioMutation;
|
|
12422
|
+
exports.UpdateTpPasswordResetMutation = UpdateTpPasswordResetMutation;
|
|
12408
12423
|
exports.UserService = UserService;
|
|
12409
12424
|
exports.UserSharedKeyFields = UserSharedKeyFields;
|
|
12410
12425
|
exports.WebCryptoService = WebCryptoService;
|