taxtank-core 0.27.3 → 0.27.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.
@@ -11539,6 +11539,41 @@
11539
11539
  }]
11540
11540
  }] });
11541
11541
 
11542
+ /**
11543
+ * Service to work with Rewardful (affiliate program) API
11544
+ * https://developers.rewardful.com/javascript-api/overview#executing-code-when-rewardful-loads
11545
+ */
11546
+ var RewardfulService = /** @class */ (function () {
11547
+ function RewardfulService(environment) {
11548
+ this.environment = environment;
11549
+ }
11550
+ RewardfulService.prototype.getReferralCode = function () {
11551
+ var _this = this;
11552
+ return new rxjs.Observable(function (observer) {
11553
+ if (!_this.environment.rewardfulId) {
11554
+ return observer.next(null);
11555
+ }
11556
+ window['rewardful']('ready', function () {
11557
+ observer.next(window['Rewardful'].referral);
11558
+ });
11559
+ });
11560
+ };
11561
+ return RewardfulService;
11562
+ }());
11563
+ RewardfulService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, deps: [{ token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
11564
+ RewardfulService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, providedIn: 'root' });
11565
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RewardfulService, decorators: [{
11566
+ type: i0.Injectable,
11567
+ args: [{
11568
+ providedIn: 'root'
11569
+ }]
11570
+ }], ctorParameters: function () {
11571
+ return [{ type: undefined, decorators: [{
11572
+ type: i0.Inject,
11573
+ args: ['environment']
11574
+ }] }];
11575
+ } });
11576
+
11542
11577
  /**
11543
11578
  * Service for logbook best period calculation
11544
11579
  * @TODO Vik: improve structure for such cases (TT-2043)
@@ -17964,6 +17999,7 @@
17964
17999
  exports.ReportItemCollection = ReportItemCollection;
17965
18000
  exports.ReportItemDetails = ReportItemDetails;
17966
18001
  exports.ResetPasswordForm = ResetPasswordForm;
18002
+ exports.RewardfulService = RewardfulService;
17967
18003
  exports.SUBSCRIPTION_DESCRIPTION = SUBSCRIPTION_DESCRIPTION;
17968
18004
  exports.SUBSCRIPTION_TITLE = SUBSCRIPTION_TITLE;
17969
18005
  exports.SalaryForecast = SalaryForecast;