@osovitny/anatoly 3.19.44 → 3.19.46
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/fesm2022/osovitny-anatoly.mjs +8 -18
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/billing/services/billing.service.d.ts +0 -1
- package/lib/core/enums/billing.d.ts +3 -2
- package/lib/iam/iam-pages.routes.d.ts +1 -1
- package/lib/iam/services/auth.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1466,8 +1466,9 @@ var PaymentStage;
|
|
|
1466
1466
|
})(PaymentStage || (PaymentStage = {}));
|
|
1467
1467
|
var SubscriptionProvider;
|
|
1468
1468
|
(function (SubscriptionProvider) {
|
|
1469
|
-
SubscriptionProvider[SubscriptionProvider["
|
|
1470
|
-
SubscriptionProvider[SubscriptionProvider["
|
|
1469
|
+
SubscriptionProvider[SubscriptionProvider["Product"] = 1] = "Product";
|
|
1470
|
+
SubscriptionProvider[SubscriptionProvider["PayPal"] = 2] = "PayPal";
|
|
1471
|
+
SubscriptionProvider[SubscriptionProvider["Stripe"] = 3] = "Stripe";
|
|
1471
1472
|
})(SubscriptionProvider || (SubscriptionProvider = {}));
|
|
1472
1473
|
|
|
1473
1474
|
/*
|
|
@@ -1837,7 +1838,6 @@ class AuthService extends ApiServiceBase {
|
|
|
1837
1838
|
this.msalService = msalService;
|
|
1838
1839
|
this.msalBroadcastService = msalBroadcastService;
|
|
1839
1840
|
this.msalDestroying$ = new Subject();
|
|
1840
|
-
this.init();
|
|
1841
1841
|
}
|
|
1842
1842
|
ngOnDestroy() {
|
|
1843
1843
|
this.msalDestroying$.next(undefined);
|
|
@@ -1845,10 +1845,6 @@ class AuthService extends ApiServiceBase {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
setDefaults() {
|
|
1847
1847
|
}
|
|
1848
|
-
init() {
|
|
1849
|
-
this.setDefaults();
|
|
1850
|
-
this.initMSAL();
|
|
1851
|
-
}
|
|
1852
1848
|
/*
|
|
1853
1849
|
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/msal-angular-v3-samples/angular-b2c-sample-app/src/app/app.component.ts
|
|
1854
1850
|
|
|
@@ -2030,7 +2026,11 @@ class AuthService extends ApiServiceBase {
|
|
|
2030
2026
|
}));
|
|
2031
2027
|
}
|
|
2032
2028
|
}
|
|
2033
|
-
//
|
|
2029
|
+
//Public funcs
|
|
2030
|
+
init() {
|
|
2031
|
+
this.setDefaults();
|
|
2032
|
+
this.initMSAL();
|
|
2033
|
+
}
|
|
2034
2034
|
getActiveAccount() {
|
|
2035
2035
|
this.checkAndSetActiveAccount();
|
|
2036
2036
|
return this.msalService.instance.getActiveAccount();
|
|
@@ -5277,16 +5277,6 @@ class BillingService {
|
|
|
5277
5277
|
});
|
|
5278
5278
|
});
|
|
5279
5279
|
}
|
|
5280
|
-
addFreeSubscription(planId, addons, subtotal, promoCode, total, currency) {
|
|
5281
|
-
this.zone.run(() => {
|
|
5282
|
-
this.apiSubscriptions.addFreeSubscription(planId, addons, subtotal, promoCode, total, currency, () => {
|
|
5283
|
-
this.fireSubscriptionAdded(false, false);
|
|
5284
|
-
this.appContext.updateCurrent();
|
|
5285
|
-
}, () => {
|
|
5286
|
-
this.fireSubscriptionAdded(false, true);
|
|
5287
|
-
});
|
|
5288
|
-
});
|
|
5289
|
-
}
|
|
5290
5280
|
static { this.ɵfac = function BillingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BillingService)(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(AppContextService), i0.ɵɵinject(PaymentsApiService), i0.ɵɵinject(SubscriptionsApiService), i0.ɵɵinject(NotificationService)); }; }
|
|
5291
5281
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BillingService, factory: BillingService.ɵfac }); }
|
|
5292
5282
|
}
|