@lifeready/core 1.1.20 → 1.1.21
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 +205 -38
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +8 -1
- package/esm2015/lib/plan2/plan2.gql.js +73 -0
- package/esm2015/lib/plan2/plan2.service.js +156 -0
- package/esm2015/lib/plan2/plan2.types.js +2 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/lifeready-core.js +229 -1
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +77 -1
- package/lib/plan2/plan2.gql.d.ts +51 -0
- package/lib/plan2/plan2.service.d.ts +88 -0
- package/lib/plan2/plan2.types.d.ts +11 -0
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -3780,6 +3780,12 @@
|
|
|
3780
3780
|
LinkTypeField["HARD"] = "HARD";
|
|
3781
3781
|
LinkTypeField["SOFT"] = "SOFT";
|
|
3782
3782
|
})(exports.LinkTypeField || (exports.LinkTypeField = {}));
|
|
3783
|
+
(function (PlanStateField) {
|
|
3784
|
+
PlanStateField["TRIALLING"] = "TRIALLING";
|
|
3785
|
+
PlanStateField["ACTIVE"] = "ACTIVE";
|
|
3786
|
+
PlanStateField["CANCELLED"] = "CANCELLED";
|
|
3787
|
+
PlanStateField["EXPIRED"] = "EXPIRED";
|
|
3788
|
+
})(exports.PlanStateField || (exports.PlanStateField = {}));
|
|
3783
3789
|
|
|
3784
3790
|
function handleCognitoCallback(method) {
|
|
3785
3791
|
return new Promise(function (resolve, reject) { return method(function (err, result) { return (err ? reject(err) : resolve(result)); }); });
|
|
@@ -11196,8 +11202,169 @@
|
|
|
11196
11202
|
return StripeBillingPortalSession;
|
|
11197
11203
|
}());
|
|
11198
11204
|
|
|
11205
|
+
var InitiateStripePaymentMethodCaptureMutation = gqlTyped(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\nmutation InitiateStripePaymentMethodCaptureMutation {\n initiateStripePaymentMethodCapture(input: {}) {\n paymentCapture {\n stripeIntentId\n stripeClientSecret\n }\n }\n}\n"], ["\nmutation InitiateStripePaymentMethodCaptureMutation {\n initiateStripePaymentMethodCapture(input: {}) {\n paymentCapture {\n stripeIntentId\n stripeClientSecret\n }\n }\n}\n"])));
|
|
11206
|
+
var CompleteStripePaymentMethodCaptureMutation = gqlTyped(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\nmutation CompleteStripePaymentMethodCaptureMutation($input: CompleteStripePaymentMethodCaptureInput!) {\n completeStripePaymentMethodCapture(input: $input) {\n paymentMethod {\n id\n created\n modified\n card {\n brand\n lastFourDigits\n expiryYear\n expiryMonth\n }\n isDefault \n }\n }\n}\n"], ["\nmutation CompleteStripePaymentMethodCaptureMutation($input: CompleteStripePaymentMethodCaptureInput!) {\n completeStripePaymentMethodCapture(input: $input) {\n paymentMethod {\n id\n created\n modified\n card {\n brand\n lastFourDigits\n expiryYear\n expiryMonth\n }\n isDefault \n }\n }\n}\n"])));
|
|
11207
|
+
var RemovePaymentMethodMutation = gqlTyped(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\nmutation RemovePaymentMethodMutation($input: RemovePaymentMethodInput!) {\n removePaymentMethod(input: $input) {\n id\n }\n}\n"], ["\nmutation RemovePaymentMethodMutation($input: RemovePaymentMethodInput!) {\n removePaymentMethod(input: $input) {\n id\n }\n}\n"])));
|
|
11208
|
+
var SetDefaultPaymentMethodMutation = gqlTyped(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\nmutation SetDefaultPaymentMethodMutation($input: SetDefaultPaymentMethodInput!) {\n setDefaultPaymentMethod(input: $input) {\n paymentMethod {\n id\n } \n }\n}\n"], ["\nmutation SetDefaultPaymentMethodMutation($input: SetDefaultPaymentMethodInput!) {\n setDefaultPaymentMethod(input: $input) {\n paymentMethod {\n id\n } \n }\n}\n"])));
|
|
11209
|
+
var RemoveDefaultPaymentMethodMutation = gqlTyped(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\nmutation RemoveDefaultPaymentMethodMutation {\n removeDefaultPaymentMethod(input: {}) {\n paymentMethod {\n id\n } \n }\n}\n"], ["\nmutation RemoveDefaultPaymentMethodMutation {\n removeDefaultPaymentMethod(input: {}) {\n paymentMethod {\n id\n } \n }\n}\n"])));
|
|
11210
|
+
var IssuePlanMutation = gqlTyped(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\nmutation IssuePlanMutation($input: IssuePlanInput!) {\n issuePlan(input: $input) {\n plan {\n id\n } \n }\n}\n"], ["\nmutation IssuePlanMutation($input: IssuePlanInput!) {\n issuePlan(input: $input) {\n plan {\n id\n } \n }\n}\n"])));
|
|
11211
|
+
var CancelPlanMutation = gqlTyped(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\nmutation CancelPlanMutation($input: CancelPlanInput!) {\n cancelPlan(input: $input) {\n plan {\n id\n } \n }\n}\n"], ["\nmutation CancelPlanMutation($input: CancelPlanInput!) {\n cancelPlan(input: $input) {\n plan {\n id\n } \n }\n}\n"])));
|
|
11212
|
+
var templateObject_1$o, templateObject_2$l, templateObject_3$i, templateObject_4$d, templateObject_5$c, templateObject_6$9, templateObject_7$8;
|
|
11213
|
+
|
|
11214
|
+
exports.Plan2Service = /** @class */ (function (_super) {
|
|
11215
|
+
__extends(Plan2Service, _super);
|
|
11216
|
+
function Plan2Service(ngZone, injector) {
|
|
11217
|
+
var _this = _super.call(this, injector) || this;
|
|
11218
|
+
_this.ngZone = ngZone;
|
|
11219
|
+
_this.injector = injector;
|
|
11220
|
+
return _this;
|
|
11221
|
+
}
|
|
11222
|
+
Plan2Service.prototype.initiateStripePaymentMethodCapture = function () {
|
|
11223
|
+
return this.mutate(this.initiateStripePaymentMethodCaptureMutation());
|
|
11224
|
+
};
|
|
11225
|
+
/**
|
|
11226
|
+
* Starts a stripe payment capture intent. On intent can only add one card.
|
|
11227
|
+
* @returns Promise that resolves to a mutation
|
|
11228
|
+
*/
|
|
11229
|
+
Plan2Service.prototype.initiateStripePaymentMethodCaptureMutation = function () {
|
|
11230
|
+
return new LrMutation({
|
|
11231
|
+
mutation: InitiateStripePaymentMethodCaptureMutation,
|
|
11232
|
+
variables: {
|
|
11233
|
+
input: {},
|
|
11234
|
+
},
|
|
11235
|
+
});
|
|
11236
|
+
};
|
|
11237
|
+
Plan2Service.prototype.completeStripePaymentMethodCapture = function (stripeIntentId) {
|
|
11238
|
+
return this.mutate(this.completeStripePaymentMethodCaptureMutation(stripeIntentId));
|
|
11239
|
+
};
|
|
11240
|
+
/**
|
|
11241
|
+
* Completes the payment capture intent. Call this after calling stripe.confirmCardSetup.
|
|
11242
|
+
*
|
|
11243
|
+
* The return result of this mutation can be used to update the UI. Because this is a mutation
|
|
11244
|
+
* we always get the most up to date data from the BD.
|
|
11245
|
+
*
|
|
11246
|
+
* @returns Promise that resolves to a mutation with the just created PaymentMethodNode
|
|
11247
|
+
*/
|
|
11248
|
+
Plan2Service.prototype.completeStripePaymentMethodCaptureMutation = function (stripeIntentId) {
|
|
11249
|
+
return new LrMutation({
|
|
11250
|
+
mutation: CompleteStripePaymentMethodCaptureMutation,
|
|
11251
|
+
variables: {
|
|
11252
|
+
input: { stripeIntentId: stripeIntentId },
|
|
11253
|
+
},
|
|
11254
|
+
});
|
|
11255
|
+
};
|
|
11256
|
+
Plan2Service.prototype.setDefaultPaymentMethod = function (paymentMethodId) {
|
|
11257
|
+
return this.mutate(this.setDefaultPaymentMethodMutation(paymentMethodId));
|
|
11258
|
+
};
|
|
11259
|
+
/**
|
|
11260
|
+
* Mutation that sets the default payment method for the current user.
|
|
11261
|
+
*
|
|
11262
|
+
* @param paymentMethodId The id from PaymentMethodNode
|
|
11263
|
+
* @returns Promise that resolves to a mutation
|
|
11264
|
+
*/
|
|
11265
|
+
Plan2Service.prototype.setDefaultPaymentMethodMutation = function (paymentMethodId) {
|
|
11266
|
+
return new LrMutation({
|
|
11267
|
+
mutation: SetDefaultPaymentMethodMutation,
|
|
11268
|
+
variables: {
|
|
11269
|
+
input: {
|
|
11270
|
+
paymentMethodId: paymentMethodId,
|
|
11271
|
+
},
|
|
11272
|
+
},
|
|
11273
|
+
});
|
|
11274
|
+
};
|
|
11275
|
+
Plan2Service.prototype.removeDefaultPaymentMethod = function () {
|
|
11276
|
+
return this.mutate(this.removeDefaultPaymentMethodMutation());
|
|
11277
|
+
};
|
|
11278
|
+
/**
|
|
11279
|
+
* Mutation that removes a the default payment method
|
|
11280
|
+
*
|
|
11281
|
+
* @returns Promise that resolves to a mutation
|
|
11282
|
+
*/
|
|
11283
|
+
Plan2Service.prototype.removeDefaultPaymentMethodMutation = function () {
|
|
11284
|
+
return new LrMutation({
|
|
11285
|
+
mutation: RemoveDefaultPaymentMethodMutation,
|
|
11286
|
+
variables: {
|
|
11287
|
+
input: {},
|
|
11288
|
+
},
|
|
11289
|
+
});
|
|
11290
|
+
};
|
|
11291
|
+
Plan2Service.prototype.issuePlan = function (options) {
|
|
11292
|
+
return this.mutate(this.issuePlanMutation(options));
|
|
11293
|
+
};
|
|
11294
|
+
/**
|
|
11295
|
+
* Mutation that issues a new plan for the current user.
|
|
11296
|
+
*
|
|
11297
|
+
* @param options.issuerUid The same issuerUid that is in the AvailablePlanField returned by queries such as availablePublicPlans
|
|
11298
|
+
* @param options.planUid The same planUid that is in the AvailablePlanField returned by queries such as availablePublicPlans
|
|
11299
|
+
* @param options.priceId The priceId from PriceOptionField, which is nested in side AvailablePlanField
|
|
11300
|
+
* @param options.promotionalCode promotion code where applicable
|
|
11301
|
+
* @returns Promise that resolves to a mutation
|
|
11302
|
+
*/
|
|
11303
|
+
Plan2Service.prototype.issuePlanMutation = function (options) {
|
|
11304
|
+
return new LrMutation({
|
|
11305
|
+
mutation: IssuePlanMutation,
|
|
11306
|
+
variables: {
|
|
11307
|
+
input: options,
|
|
11308
|
+
},
|
|
11309
|
+
});
|
|
11310
|
+
};
|
|
11311
|
+
Plan2Service.prototype.removePaymentMethod = function (paymentMethodId) {
|
|
11312
|
+
return this.mutate(this.removePaymentMethodMutation(paymentMethodId));
|
|
11313
|
+
};
|
|
11314
|
+
/**
|
|
11315
|
+
* Mutation that removes a payment method for the current user
|
|
11316
|
+
*
|
|
11317
|
+
* @param paymentMethodId The id from PaymentMethodNode
|
|
11318
|
+
* @returns Promise that resolves to a mutation
|
|
11319
|
+
*/
|
|
11320
|
+
Plan2Service.prototype.removePaymentMethodMutation = function (paymentMethodId) {
|
|
11321
|
+
return new LrMutation({
|
|
11322
|
+
mutation: RemovePaymentMethodMutation,
|
|
11323
|
+
variables: {
|
|
11324
|
+
input: {
|
|
11325
|
+
paymentMethodId: paymentMethodId,
|
|
11326
|
+
},
|
|
11327
|
+
},
|
|
11328
|
+
});
|
|
11329
|
+
};
|
|
11330
|
+
Plan2Service.prototype.cancelPlan = function (options) {
|
|
11331
|
+
return this.mutate(this.cancelPlanMutation(options));
|
|
11332
|
+
};
|
|
11333
|
+
/**
|
|
11334
|
+
* Mutation that removes a payment method for the current user
|
|
11335
|
+
*
|
|
11336
|
+
* @param options.planId The id from IssuedPlanNode
|
|
11337
|
+
* @param options.immediate If true, cancel plan effective immediately. Default false.
|
|
11338
|
+
* @returns Promise that resolves to a mutation
|
|
11339
|
+
*/
|
|
11340
|
+
Plan2Service.prototype.cancelPlanMutation = function (options) {
|
|
11341
|
+
return new LrMutation({
|
|
11342
|
+
mutation: CancelPlanMutation,
|
|
11343
|
+
variables: {
|
|
11344
|
+
input: options,
|
|
11345
|
+
},
|
|
11346
|
+
});
|
|
11347
|
+
};
|
|
11348
|
+
return Plan2Service;
|
|
11349
|
+
}(LrService));
|
|
11350
|
+
exports.Plan2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function Plan2Service_Factory() { return new exports.Plan2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR)); }, token: exports.Plan2Service, providedIn: "root" });
|
|
11351
|
+
exports.Plan2Service.decorators = [
|
|
11352
|
+
{ type: i0.Injectable, args: [{
|
|
11353
|
+
providedIn: 'root',
|
|
11354
|
+
},] }
|
|
11355
|
+
];
|
|
11356
|
+
exports.Plan2Service.ctorParameters = function () { return [
|
|
11357
|
+
{ type: i0.NgZone },
|
|
11358
|
+
{ type: i0.Injector }
|
|
11359
|
+
]; };
|
|
11360
|
+
exports.Plan2Service = __decorate([
|
|
11361
|
+
RunOutsideAngular({
|
|
11362
|
+
ngZoneName: 'ngZone',
|
|
11363
|
+
})
|
|
11364
|
+
], exports.Plan2Service);
|
|
11365
|
+
|
|
11199
11366
|
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";
|
|
11200
|
-
var UpdateOwnedContactCard = gql__default['default'](templateObject_1$
|
|
11367
|
+
var UpdateOwnedContactCard = gql__default['default'](templateObject_1$p || (templateObject_1$p = __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);
|
|
11201
11368
|
var SharedContactCardService = /** @class */ (function () {
|
|
11202
11369
|
function SharedContactCardService(keyService, lrApollo, keyGraph, encryptionService) {
|
|
11203
11370
|
this.keyService = keyService;
|
|
@@ -11304,18 +11471,18 @@
|
|
|
11304
11471
|
{ type: KeyGraphService },
|
|
11305
11472
|
{ type: EncryptionService }
|
|
11306
11473
|
]; };
|
|
11307
|
-
var templateObject_1$
|
|
11474
|
+
var templateObject_1$p;
|
|
11308
11475
|
|
|
11309
11476
|
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 sharedItems {\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 }";
|
|
11310
|
-
var GetTrustedPartiesQuery = gql__default['default'](templateObject_1$
|
|
11311
|
-
var GetAllTrustedPartiesQuery = gql__default['default'](templateObject_2$
|
|
11312
|
-
var GetTrustedPartyQuery = gql__default['default'](templateObject_3$
|
|
11313
|
-
var DeclineTrustedPartyInvitationMutation = gql__default['default'](templateObject_4$
|
|
11314
|
-
var CancelTrustedPartyInvitationMutation = gql__default['default'](templateObject_5$
|
|
11315
|
-
var DeleteTrustedPartyMutation = gql__default['default'](templateObject_6$
|
|
11316
|
-
var ShareCategoryMutation = gql__default['default'](templateObject_7$
|
|
11477
|
+
var GetTrustedPartiesQuery = gql__default['default'](templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\nquery GetTrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery GetTrustedPartiesQuery {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), TrustedPartyProperties, KeyGraphField);
|
|
11478
|
+
var GetAllTrustedPartiesQuery = gql__default['default'](templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\nquery GetAllTrustedPartiesQuery($userId: ID, $isExpired: Boolean, $inviteState: String, $sentInviteState: String) {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n invites: keyExchanges(\n responder: $userId\n isExpired: $isExpired\n state: $inviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n sentInvites: keyExchanges(\n initiator: $userId\n isExpired: $isExpired\n state: $sentInviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"], ["\nquery GetAllTrustedPartiesQuery($userId: ID, $isExpired: Boolean, $inviteState: String, $sentInviteState: String) {\n tps {\n edges {\n node {\n ", "\n }\n }\n }\n invites: keyExchanges(\n responder: $userId\n isExpired: $isExpired\n state: $inviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n sentInvites: keyExchanges(\n initiator: $userId\n isExpired: $isExpired\n state: $sentInviteState\n orderBy: \"state,-created\"\n ) {\n edges {\n node {\n ", "\n }\n }\n }\n ", "\n}"])), TrustedPartyProperties, KeyExchangeFields, KeyExchangeFields, KeyGraphField);
|
|
11479
|
+
var GetTrustedPartyQuery = gql__default['default'](templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\nquery GetTrustedPartyQuery($partyId: LrRelayIdInput!) {\n tp(id: $partyId) {\n ", "\n }\n ", "\n}"], ["\nquery GetTrustedPartyQuery($partyId: LrRelayIdInput!) {\n tp(id: $partyId) {\n ", "\n }\n ", "\n}"])), TrustedPartyProperties, KeyGraphField);
|
|
11480
|
+
var DeclineTrustedPartyInvitationMutation = gql__default['default'](templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n mutation DeclineKeyExchange($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"], ["\n mutation DeclineKeyExchange($input: DeclineKeyExchangeInput!) {\n declineKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"])));
|
|
11481
|
+
var CancelTrustedPartyInvitationMutation = gql__default['default'](templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n mutation CancelKeyExchange($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"], ["\n mutation CancelKeyExchange($input: CancelKeyExchangeInput!) {\n cancelKeyExchange(input: $input) {\n keyExchange {\n id\n }\n }\n }\n"])));
|
|
11482
|
+
var DeleteTrustedPartyMutation = gql__default['default'](templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n mutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n }\n"], ["\n mutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n }\n"])));
|
|
11483
|
+
var ShareCategoryMutation = gql__default['default'](templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n mutation ShareDirectory($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"], ["\n mutation ShareDirectory($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"])));
|
|
11317
11484
|
var UnshareCategoryMutation = gql__default['default'](templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n mutation UnshareDirectory($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"], ["\n mutation UnshareDirectory($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n item {\n plainMeta\n }\n }\n }\n }\n"])));
|
|
11318
|
-
var templateObject_1$
|
|
11485
|
+
var templateObject_1$q, templateObject_2$m, templateObject_3$j, templateObject_4$e, templateObject_5$d, templateObject_6$a, templateObject_7$9, templateObject_8$7;
|
|
11319
11486
|
|
|
11320
11487
|
var TrustedPartyRole = /** @class */ (function () {
|
|
11321
11488
|
function TrustedPartyRole() {
|
|
@@ -12970,21 +13137,21 @@
|
|
|
12970
13137
|
})
|
|
12971
13138
|
], exports.ɵn);
|
|
12972
13139
|
|
|
12973
|
-
var CreateScenarioMutation = gqlTyped(templateObject_1$
|
|
12974
|
-
var UpdateScenarioMutation = gqlTyped(templateObject_2$
|
|
12975
|
-
var DeleteScenarioMutation = gqlTyped(templateObject_3$
|
|
12976
|
-
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$
|
|
12977
|
-
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$
|
|
12978
|
-
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$
|
|
12979
|
-
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$
|
|
13140
|
+
var CreateScenarioMutation = gqlTyped(templateObject_1$r || (templateObject_1$r = __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"])));
|
|
13141
|
+
var UpdateScenarioMutation = gqlTyped(templateObject_2$n || (templateObject_2$n = __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"])));
|
|
13142
|
+
var DeleteScenarioMutation = gqlTyped(templateObject_3$k || (templateObject_3$k = __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"])));
|
|
13143
|
+
var CreateScenarioClaimMutation = gqlTyped(templateObject_4$f || (templateObject_4$f = __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"])));
|
|
13144
|
+
var CancelScenarioClaimMutation = gqlTyped(templateObject_5$e || (templateObject_5$e = __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"])));
|
|
13145
|
+
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$b || (templateObject_6$b = __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"])));
|
|
13146
|
+
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$a || (templateObject_7$a = __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"])));
|
|
12980
13147
|
var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$8 || (templateObject_8$8 = __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"])));
|
|
12981
13148
|
var DebugExpireScenarioClaimMutation = gqlTyped(templateObject_9$5 || (templateObject_9$5 = __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"])));
|
|
12982
13149
|
var DebugExpireTpPasswordResetRequestMutation = gqlTyped(templateObject_10$4 || (templateObject_10$4 = __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"])));
|
|
12983
|
-
var templateObject_1$
|
|
13150
|
+
var templateObject_1$r, templateObject_2$n, templateObject_3$k, templateObject_4$f, templateObject_5$e, templateObject_6$b, templateObject_7$a, templateObject_8$8, templateObject_9$5, templateObject_10$4;
|
|
12984
13151
|
|
|
12985
|
-
var ScenarioQuery = gqlTyped(templateObject_1$
|
|
12986
|
-
var SharedScenarioQuery = gqlTyped(templateObject_2$
|
|
12987
|
-
var templateObject_1$
|
|
13152
|
+
var ScenarioQuery = gqlTyped(templateObject_1$s || (templateObject_1$s = __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}"])));
|
|
13153
|
+
var SharedScenarioQuery = gqlTyped(templateObject_2$o || (templateObject_2$o = __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"])));
|
|
13154
|
+
var templateObject_1$s, templateObject_2$o;
|
|
12988
13155
|
|
|
12989
13156
|
function throwClaimIdMismatch() {
|
|
12990
13157
|
throw new LrBadArgumentException('claimId does not match with the current claimId of the scenario');
|
|
@@ -13830,8 +13997,8 @@
|
|
|
13830
13997
|
})
|
|
13831
13998
|
], exports.ScenarioService);
|
|
13832
13999
|
|
|
13833
|
-
var ServerConfigQuery = gqlTyped(templateObject_1$
|
|
13834
|
-
var templateObject_1$
|
|
14000
|
+
var ServerConfigQuery = gqlTyped(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\nquery ServerConfigQuery {\n serverConfig {\n relayConnectionMaxLimit\n }\n}\n"], ["\nquery ServerConfigQuery {\n serverConfig {\n relayConnectionMaxLimit\n }\n}\n"])));
|
|
14001
|
+
var templateObject_1$t;
|
|
13835
14002
|
|
|
13836
14003
|
exports.ServerConfigService = /** @class */ (function (_super) {
|
|
13837
14004
|
__extends(ServerConfigService, _super);
|
|
@@ -13879,11 +14046,11 @@
|
|
|
13879
14046
|
})
|
|
13880
14047
|
], exports.ServerConfigService);
|
|
13881
14048
|
|
|
13882
|
-
var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$
|
|
13883
|
-
var UpdateReceivedContactCardMutation = gqlTyped(templateObject_2$
|
|
13884
|
-
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$
|
|
13885
|
-
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$
|
|
13886
|
-
var templateObject_1$
|
|
14049
|
+
var UpdateOwnedContactCardMutation = gqlTyped(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\nmutation UpdateOwnedContactCardMutation(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(input: $input) {\n ownedContactCard {\n id\n }\n }\n}"], ["\nmutation UpdateOwnedContactCardMutation(\n $input: UpdateOwnedContactCardInput!\n) {\n updateOwnedContactCard(input: $input) {\n ownedContactCard {\n id\n }\n }\n}"])));
|
|
14050
|
+
var UpdateReceivedContactCardMutation = gqlTyped(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\nmutation UpdateReceivedContactCardMutation(\n $input: UpdateReceivedContactCardInput!\n) {\n updateReceivedContactCard(input: $input) {\n receivedContactCard {\n id\n }\n }\n}"], ["\nmutation UpdateReceivedContactCardMutation(\n $input: UpdateReceivedContactCardInput!\n) {\n updateReceivedContactCard(input: $input) {\n receivedContactCard {\n id\n }\n }\n}"])));
|
|
14051
|
+
var GetOwnedContactCardKeyIdsQuery = gqlTyped(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\nquery GetOwnedContactCardKeyIdsQuery($id: LrRelayIdInput!) {\n ownedContactCard(id: $id) {\n sharedKey {\n id\n }\n ownerKey {\n id\n }\n }\n}"], ["\nquery GetOwnedContactCardKeyIdsQuery($id: LrRelayIdInput!) {\n ownedContactCard(id: $id) {\n sharedKey {\n id\n }\n ownerKey {\n id\n }\n }\n}"])));
|
|
14052
|
+
var GetReceivedContactCardKeyIdQuery = gqlTyped(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\nquery GetReceivedContactCardKeyIdQuery($id: LrRelayIdInput!) {\n receivedContactCard(id: $id) {\n receiverKey {\n id\n }\n }\n}"], ["\nquery GetReceivedContactCardKeyIdQuery($id: LrRelayIdInput!) {\n receivedContactCard(id: $id) {\n receiverKey {\n id\n }\n }\n}"])));
|
|
14053
|
+
var templateObject_1$u, templateObject_2$p, templateObject_3$l, templateObject_4$g;
|
|
13887
14054
|
|
|
13888
14055
|
exports.SharedContactCard2Service = /** @class */ (function () {
|
|
13889
14056
|
function SharedContactCard2Service(ngZone, keyService, keyGraph, encryptionService, lrGraphQL) {
|
|
@@ -14513,18 +14680,18 @@
|
|
|
14513
14680
|
})
|
|
14514
14681
|
], exports.TpPasswordResetService);
|
|
14515
14682
|
|
|
14516
|
-
var DeleteTpMutation = gqlTyped(templateObject_1$
|
|
14517
|
-
var ShareDirectoryMutation = gqlTyped(templateObject_2$
|
|
14518
|
-
var UnshareDirectoryMutation = gqlTyped(templateObject_3$
|
|
14519
|
-
var ShareFileMutation = gqlTyped(templateObject_4$
|
|
14520
|
-
var UnshareFileMutation = gqlTyped(templateObject_5$
|
|
14521
|
-
var RequestTpMkReshareMutation = gqlTyped(templateObject_6$
|
|
14522
|
-
var RespondTpMkReshareMutation = gqlTyped(templateObject_7$
|
|
14683
|
+
var DeleteTpMutation = gqlTyped(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\nmutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteTpMutation($input: DeleteTpInput!) {\n deleteTp(input: $input) {\n id\n }\n}\n"])));
|
|
14684
|
+
var ShareDirectoryMutation = gqlTyped(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"], ["\n mutation ShareDirectoryMutation($input: ShareDirectoryInput!) {\n shareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"])));
|
|
14685
|
+
var UnshareDirectoryMutation = gqlTyped(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"], ["\n mutation UnshareDirectoryMutation($input: UnshareDirectoryInput!) {\n unshareDirectory(input: $input) {\n tpDirectory {\n id\n }\n }\n }\n"])));
|
|
14686
|
+
var ShareFileMutation = gqlTyped(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n tpFile {\n id\n }\n }\n }\n"], ["\n mutation ShareFileMutation($input: ShareFileInput!) {\n shareFile(input: $input) {\n tpFile {\n id\n }\n }\n }\n"])));
|
|
14687
|
+
var UnshareFileMutation = gqlTyped(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n mutation UnshareFileMutation($input: UnshareFileInput!) {\n unshareFile(input: $input) {\n tpFile {\n id\n }\n }\n }\n"], ["\n mutation UnshareFileMutation($input: UnshareFileInput!) {\n unshareFile(input: $input) {\n tpFile {\n id\n }\n }\n }\n"])));
|
|
14688
|
+
var RequestTpMkReshareMutation = gqlTyped(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\nmutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {\n requestTpMkReshare(input: $input) {\n id\n }\n}"], ["\nmutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {\n requestTpMkReshare(input: $input) {\n id\n }\n}"])));
|
|
14689
|
+
var RespondTpMkReshareMutation = gqlTyped(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["\n mutation RespondTpMkReshareMutation($input: RespondTpMkReshareInput!) {\n respondTpMkReshare(input: $input) {\n id\n }\n }\n"], ["\n mutation RespondTpMkReshareMutation($input: RespondTpMkReshareInput!) {\n respondTpMkReshare(input: $input) {\n id\n }\n }\n"])));
|
|
14523
14690
|
var CompleteTpMkReshareMutation = gqlTyped(templateObject_8$9 || (templateObject_8$9 = __makeTemplateObject(["\nmutation CompleteTpMkReshareMutation($input: CompleteTpMkReshareInput!) {\n completeTpMkReshare(input: $input) {\n id\n }\n}"], ["\nmutation CompleteTpMkReshareMutation($input: CompleteTpMkReshareInput!) {\n completeTpMkReshare(input: $input) {\n id\n }\n}"])));
|
|
14524
|
-
var templateObject_1$
|
|
14691
|
+
var templateObject_1$v, templateObject_2$q, templateObject_3$m, templateObject_4$h, templateObject_5$f, templateObject_6$c, templateObject_7$b, templateObject_8$9;
|
|
14525
14692
|
|
|
14526
|
-
var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$
|
|
14527
|
-
var templateObject_1$
|
|
14693
|
+
var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$w || (templateObject_1$w = __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"])));
|
|
14694
|
+
var templateObject_1$w;
|
|
14528
14695
|
|
|
14529
14696
|
exports.TrustedParty2Service = /** @class */ (function (_super) {
|
|
14530
14697
|
__extends(TrustedParty2Service, _super);
|