@posiwise/common-services 0.2.14 → 0.2.16
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/posiwise-common-services.mjs +271 -135
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/package.json +8 -8
- package/types/posiwise-common-services.d.ts +1187 -0
- package/index.d.ts +0 -43
- package/lib/ab-test.service.d.ts +0 -27
- package/lib/ahoy.service.d.ts +0 -21
- package/lib/auth.service.d.ts +0 -83
- package/lib/base-http.service.d.ts +0 -23
- package/lib/brain-api-http.service.d.ts +0 -10
- package/lib/brain.service.d.ts +0 -15
- package/lib/common-services.interface.d.ts +0 -161
- package/lib/common-services.module.d.ts +0 -9
- package/lib/common.service.d.ts +0 -39
- package/lib/custom-preloading.service.d.ts +0 -13
- package/lib/dashboard.service.d.ts +0 -9
- package/lib/data.service.d.ts +0 -8
- package/lib/date-formatter.service.d.ts +0 -10
- package/lib/effects/user.effects.d.ts +0 -12
- package/lib/form-helper.service.d.ts +0 -6
- package/lib/geo.service.d.ts +0 -14
- package/lib/google-analytics.service.d.ts +0 -40
- package/lib/group.service.d.ts +0 -37
- package/lib/hopscotch.service.d.ts +0 -25
- package/lib/integrations-api-http.service.d.ts +0 -10
- package/lib/link-loader.service.d.ts +0 -28
- package/lib/local-storage.service.d.ts +0 -11
- package/lib/logo-caching.service.d.ts +0 -11
- package/lib/mailbox.service.d.ts +0 -19
- package/lib/main-api-http.service.d.ts +0 -10
- package/lib/notification.service.d.ts +0 -23
- package/lib/number-picker.service.d.ts +0 -33
- package/lib/permission.service.d.ts +0 -52
- package/lib/primeNgHelper.d.ts +0 -4
- package/lib/product.service.d.ts +0 -24
- package/lib/profile.service.d.ts +0 -28
- package/lib/qualification.service.d.ts +0 -12
- package/lib/script-loader.service.d.ts +0 -13
- package/lib/secure-token-storage.service.d.ts +0 -94
- package/lib/sentry.service.d.ts +0 -61
- package/lib/seo.service.d.ts +0 -16
- package/lib/socket.service.d.ts +0 -13
- package/lib/subscription.service.d.ts +0 -40
- package/lib/tag.service.d.ts +0 -25
- package/lib/tips.service.d.ts +0 -15
- package/lib/toast.service.d.ts +0 -15
- package/lib/user.service.d.ts +0 -64
- package/lib/validation.service.d.ts +0 -15
- package/lib/window.service.d.ts +0 -10
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Inject, Injectable, isDevMode, inject, NgModule, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { DOCUMENT, Inject, Injectable, isDevMode, inject, NgModule, ViewEncapsulation } from '@angular/core';
|
|
3
3
|
import * as i3 from '@angular/router';
|
|
4
4
|
import { NavigationEnd } from '@angular/router';
|
|
5
5
|
import * as i1 from '@posiwise/app-config-service';
|
|
6
6
|
import { AppConfigService } from '@posiwise/app-config-service';
|
|
7
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
8
7
|
import * as i1$2 from '@angular/common/http';
|
|
9
8
|
import { HttpErrorResponse, HttpHeaders } from '@angular/common/http';
|
|
10
9
|
import { throwError, of, BehaviorSubject, tap, timer } from 'rxjs';
|
|
11
10
|
import { catchError, take, tap as tap$1, switchMap, map, mergeMap, distinctUntilChanged } from 'rxjs/operators';
|
|
12
11
|
import { HelperService } from '@posiwise/helper-service';
|
|
13
12
|
import * as i1$1 from 'ngx-toastr';
|
|
13
|
+
import { CommonModule } from '@angular/common';
|
|
14
14
|
import { getUser, SetUser, UserActionTypes, appReducers } from '@posiwise/app-store';
|
|
15
15
|
import * as i1$3 from '@ngrx/effects';
|
|
16
16
|
import { Actions, createEffect, ofType, EffectsModule } from '@ngrx/effects';
|
|
@@ -107,10 +107,10 @@ class ScriptLoaderService {
|
|
|
107
107
|
style.href = styleUrl;
|
|
108
108
|
head.appendChild(style);
|
|
109
109
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ScriptLoaderService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
111
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
|
|
112
112
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ScriptLoaderService, decorators: [{
|
|
114
114
|
type: Injectable,
|
|
115
115
|
args: [{
|
|
116
116
|
providedIn: 'root'
|
|
@@ -226,10 +226,10 @@ class GoogleAnalyticsService {
|
|
|
226
226
|
this.subscription.unsubscribe();
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i3.Router }, { token: ScriptLoaderService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
230
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoogleAnalyticsService }); }
|
|
231
231
|
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
|
|
233
233
|
type: Injectable
|
|
234
234
|
}], ctorParameters: () => [{ type: i3.Router }, { type: ScriptLoaderService }, { type: i1.AppConfigService }] });
|
|
235
235
|
|
|
@@ -303,10 +303,10 @@ class CustomToastService {
|
|
|
303
303
|
this.error(message);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
307
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomToastService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
307
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomToastService, providedIn: 'root' }); }
|
|
308
308
|
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomToastService, decorators: [{
|
|
310
310
|
type: Injectable,
|
|
311
311
|
args: [{
|
|
312
312
|
providedIn: 'root'
|
|
@@ -397,10 +397,10 @@ class BaseHttpService {
|
|
|
397
397
|
this.toast.showToast(error);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
401
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
400
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
401
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseHttpService }); }
|
|
402
402
|
}
|
|
403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseHttpService, decorators: [{
|
|
404
404
|
type: Injectable
|
|
405
405
|
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i0.Injector }] });
|
|
406
406
|
|
|
@@ -415,10 +415,10 @@ class IntegrationsApiHttpService extends BaseHttpService {
|
|
|
415
415
|
: config?.['links']?.integrations_api;
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
419
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: IntegrationsApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
419
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: IntegrationsApiHttpService, providedIn: 'root' }); }
|
|
420
420
|
}
|
|
421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: IntegrationsApiHttpService, decorators: [{
|
|
422
422
|
type: Injectable,
|
|
423
423
|
args: [{
|
|
424
424
|
providedIn: 'root'
|
|
@@ -444,10 +444,10 @@ class LocalStorage {
|
|
|
444
444
|
getItem(key) {
|
|
445
445
|
return localStorage.getItem(key);
|
|
446
446
|
}
|
|
447
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
448
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
447
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LocalStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
448
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LocalStorage, providedIn: 'root' }); }
|
|
449
449
|
}
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LocalStorage, decorators: [{
|
|
451
451
|
type: Injectable,
|
|
452
452
|
args: [{
|
|
453
453
|
providedIn: 'root'
|
|
@@ -463,10 +463,10 @@ class MainApiHttpService extends BaseHttpService {
|
|
|
463
463
|
this.baseUrl = isDevMode() ? MAIN_API_PREFIX : config?.['links']?.main_api;
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
467
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
466
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
467
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MainApiHttpService, providedIn: 'root' }); }
|
|
468
468
|
}
|
|
469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MainApiHttpService, decorators: [{
|
|
470
470
|
type: Injectable,
|
|
471
471
|
args: [{
|
|
472
472
|
providedIn: 'root'
|
|
@@ -720,10 +720,10 @@ class SecureTokenStorageService {
|
|
|
720
720
|
this.phonegapTokenSubject.next(phonegapToken);
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
724
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SecureTokenStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
724
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SecureTokenStorageService, providedIn: 'root' }); }
|
|
725
725
|
}
|
|
726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SecureTokenStorageService, decorators: [{
|
|
727
727
|
type: Injectable,
|
|
728
728
|
args: [{
|
|
729
729
|
providedIn: 'root'
|
|
@@ -782,10 +782,10 @@ class ProfileService {
|
|
|
782
782
|
postLinks(data) {
|
|
783
783
|
return this.api.post('/user_links', data);
|
|
784
784
|
}
|
|
785
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
786
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
785
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProfileService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
786
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
|
|
787
787
|
}
|
|
788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProfileService, decorators: [{
|
|
789
789
|
type: Injectable,
|
|
790
790
|
args: [{
|
|
791
791
|
providedIn: 'root'
|
|
@@ -962,10 +962,10 @@ class UserService {
|
|
|
962
962
|
refreshUserApiTokens() {
|
|
963
963
|
return this.api.get(`${this.endpoint}/refresh_user_api_tokens`);
|
|
964
964
|
}
|
|
965
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
966
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
965
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserService, deps: [{ token: MainApiHttpService }, { token: i2.Store }, { token: i3.Router }, { token: i1.AppConfigService }, { token: ProfileService }, { token: CustomToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
966
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
967
967
|
}
|
|
968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserService, decorators: [{
|
|
969
969
|
type: Injectable,
|
|
970
970
|
args: [{
|
|
971
971
|
providedIn: 'root'
|
|
@@ -984,10 +984,12 @@ class AuthService {
|
|
|
984
984
|
this.integrationsApi = integrationsApi;
|
|
985
985
|
this.document = document;
|
|
986
986
|
this.platformSubject = new BehaviorSubject('');
|
|
987
|
+
this.userDataSubject = new BehaviorSubject({});
|
|
987
988
|
this.twitterEndpoint = '/twitter';
|
|
988
989
|
this.header_key = 'browser';
|
|
989
990
|
this.platform = '';
|
|
990
991
|
this.platform$ = this.platformSubject.asObservable();
|
|
992
|
+
this.userData$ = this.userDataSubject.asObservable();
|
|
991
993
|
// Set Header Key
|
|
992
994
|
this.setHeaderKey();
|
|
993
995
|
}
|
|
@@ -1108,11 +1110,16 @@ class AuthService {
|
|
|
1108
1110
|
phonegap: true
|
|
1109
1111
|
};
|
|
1110
1112
|
}
|
|
1111
|
-
// Send DELETE request with token intact, then clear tokens after response
|
|
1112
|
-
// Use tap to clear tokens without changing the response stream
|
|
1113
1113
|
return this.http.delete('session', options).pipe(tap$1(() => {
|
|
1114
|
-
// Clear tokens AFTER logout succeeds
|
|
1115
1114
|
this.secureTokenStorage.clearTokens().subscribe();
|
|
1115
|
+
// Reset Crisp session on logout so next visitor is anonymous again
|
|
1116
|
+
if (typeof window?.$crisp?.push === 'function') {
|
|
1117
|
+
window.$crisp.push(['do', 'session:reset']);
|
|
1118
|
+
}
|
|
1119
|
+
// Clear HubSpot user data so next visit is not identified as previous user
|
|
1120
|
+
if (typeof window !== 'undefined') {
|
|
1121
|
+
window.hubspotUserData = undefined;
|
|
1122
|
+
}
|
|
1116
1123
|
}));
|
|
1117
1124
|
}
|
|
1118
1125
|
/**
|
|
@@ -1130,6 +1137,23 @@ class AuthService {
|
|
|
1130
1137
|
getToken$() {
|
|
1131
1138
|
return this.secureTokenStorage.getToken$();
|
|
1132
1139
|
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Get user data (email, name, userId) after login
|
|
1142
|
+
* Similar to getToken$() but returns user information
|
|
1143
|
+
* @returns Observable with user data: { email?: string; name?: string; userId?: string }
|
|
1144
|
+
*/
|
|
1145
|
+
getUserData$() {
|
|
1146
|
+
console.log(this.userData$);
|
|
1147
|
+
return this.userData$;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Set user data in the BehaviorSubject
|
|
1151
|
+
* Called after user logs in to update user information across the app
|
|
1152
|
+
* @param userData User data object with email, name, and userId
|
|
1153
|
+
*/
|
|
1154
|
+
setUserData(userData) {
|
|
1155
|
+
this.userDataSubject.next(userData);
|
|
1156
|
+
}
|
|
1133
1157
|
getNewsletterSubscription(token) {
|
|
1134
1158
|
return this.http.get(`${NEWSLETTER_CONFIRMATION_PATH}?token=${token}`);
|
|
1135
1159
|
}
|
|
@@ -1195,13 +1219,31 @@ class AuthService {
|
|
|
1195
1219
|
return this.userService.getUserInfo();
|
|
1196
1220
|
}));
|
|
1197
1221
|
sequence$.subscribe(resp => {
|
|
1198
|
-
|
|
1199
|
-
const
|
|
1200
|
-
const
|
|
1201
|
-
const userId = resp.id?.toString() || '';
|
|
1222
|
+
const firstName = resp.first_name ?? '';
|
|
1223
|
+
const email = resp.email ?? '';
|
|
1224
|
+
const userId = resp.id?.toString() ?? '';
|
|
1202
1225
|
localStorage.setItem('name', firstName);
|
|
1203
1226
|
localStorage.setItem('userEmail', email);
|
|
1204
1227
|
localStorage.setItem('userId', userId);
|
|
1228
|
+
this.setUserData({
|
|
1229
|
+
name: firstName,
|
|
1230
|
+
email: email,
|
|
1231
|
+
userId: userId
|
|
1232
|
+
});
|
|
1233
|
+
// Identify logged-in user in Crisp if widget is already loaded
|
|
1234
|
+
if (typeof window?.$crisp?.push === 'function') {
|
|
1235
|
+
if (email) {
|
|
1236
|
+
window.$crisp.push(['set', 'user:email', email]);
|
|
1237
|
+
}
|
|
1238
|
+
if (firstName) {
|
|
1239
|
+
window.$crisp.push(['set', 'user:nickname', firstName]);
|
|
1240
|
+
}
|
|
1241
|
+
if (userId) {
|
|
1242
|
+
window.$crisp.push(['set', 'session:data', [['user_id', [userId]]]]);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
this.notifyHubSpot(email, firstName, userId);
|
|
1246
|
+
// Identify logged-in user in HubSpot if widget is already loaded
|
|
1205
1247
|
this.router.navigate(['home']);
|
|
1206
1248
|
if ($('.cc-dismiss').length > 0) {
|
|
1207
1249
|
$('.cc-dismiss')[0].click();
|
|
@@ -1209,6 +1251,22 @@ class AuthService {
|
|
|
1209
1251
|
return true;
|
|
1210
1252
|
});
|
|
1211
1253
|
}
|
|
1254
|
+
notifyHubSpot(email, firstName, userId) {
|
|
1255
|
+
window.hubspotUserData = { email, name: firstName, userId };
|
|
1256
|
+
if (Array.isArray(window._hsq)) {
|
|
1257
|
+
const traits = {};
|
|
1258
|
+
if (email)
|
|
1259
|
+
traits['email'] = email;
|
|
1260
|
+
if (firstName)
|
|
1261
|
+
traits['firstname'] = firstName;
|
|
1262
|
+
if (userId)
|
|
1263
|
+
traits['user_id'] = userId;
|
|
1264
|
+
if (Object.keys(traits).length > 0) {
|
|
1265
|
+
window._hsq.push(['identify', traits]);
|
|
1266
|
+
window._hsq.push(['trackPageView']);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1212
1270
|
impersonateUser(data) {
|
|
1213
1271
|
if (!data.phonegap) {
|
|
1214
1272
|
delete data.phonegap;
|
|
@@ -1269,10 +1327,10 @@ class AuthService {
|
|
|
1269
1327
|
}
|
|
1270
1328
|
});
|
|
1271
1329
|
}
|
|
1272
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1273
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AuthService, deps: [{ token: LocalStorage }, { token: SecureTokenStorageService }, { token: i3.Router }, { token: MainApiHttpService }, { token: UserService }, { token: CustomToastService }, { token: i1.AppConfigService }, { token: IntegrationsApiHttpService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1331
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AuthService }); }
|
|
1274
1332
|
}
|
|
1275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AuthService, decorators: [{
|
|
1276
1334
|
type: Injectable
|
|
1277
1335
|
}], ctorParameters: () => [{ type: LocalStorage }, { type: SecureTokenStorageService }, { type: i3.Router }, { type: MainApiHttpService }, { type: UserService }, { type: CustomToastService }, { type: i1.AppConfigService }, { type: IntegrationsApiHttpService }, { type: Document, decorators: [{
|
|
1278
1336
|
type: Inject,
|
|
@@ -1292,19 +1350,19 @@ class UserEffects {
|
|
|
1292
1350
|
)));
|
|
1293
1351
|
});
|
|
1294
1352
|
}
|
|
1295
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1296
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1353
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserEffects, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1354
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserEffects }); }
|
|
1297
1355
|
}
|
|
1298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserEffects, decorators: [{
|
|
1299
1357
|
type: Injectable
|
|
1300
1358
|
}], ctorParameters: () => [{ type: UserService }] });
|
|
1301
1359
|
|
|
1302
1360
|
class CommonServicesModule {
|
|
1303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1304
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1305
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1362
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, imports: [CommonModule, i1$3.EffectsRootModule, i2.StoreRootModule] }); }
|
|
1363
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, providers: [AuthService], imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)] }); }
|
|
1306
1364
|
}
|
|
1307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, decorators: [{
|
|
1308
1366
|
type: NgModule,
|
|
1309
1367
|
args: [{
|
|
1310
1368
|
imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)],
|
|
@@ -1341,10 +1399,10 @@ class SeoService {
|
|
|
1341
1399
|
this.meta.updateTag({ name: 'twitter:description', content: description });
|
|
1342
1400
|
this.meta.updateTag({ name: 'twitter:card', content: 'summary' });
|
|
1343
1401
|
}
|
|
1344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1345
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SeoService, deps: [{ token: i1$4.Meta }, { token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1403
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SeoService, providedIn: 'root' }); }
|
|
1346
1404
|
}
|
|
1347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SeoService, decorators: [{
|
|
1348
1406
|
type: Injectable,
|
|
1349
1407
|
args: [{
|
|
1350
1408
|
providedIn: 'root'
|
|
@@ -1655,10 +1713,10 @@ class PermissionService {
|
|
|
1655
1713
|
getCurrentProduct() {
|
|
1656
1714
|
return JSON.parse(localStorage.getItem('product'));
|
|
1657
1715
|
}
|
|
1658
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1659
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PermissionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1717
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
|
|
1660
1718
|
}
|
|
1661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PermissionService, decorators: [{
|
|
1662
1720
|
type: Injectable,
|
|
1663
1721
|
args: [{
|
|
1664
1722
|
providedIn: 'root'
|
|
@@ -1699,10 +1757,10 @@ class LinkService {
|
|
|
1699
1757
|
window.console.error('Error within linkService : ', e);
|
|
1700
1758
|
}
|
|
1701
1759
|
}
|
|
1702
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1703
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1760
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LinkService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1761
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LinkService, providedIn: 'root' }); }
|
|
1704
1762
|
}
|
|
1705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LinkService, decorators: [{
|
|
1706
1764
|
type: Injectable,
|
|
1707
1765
|
args: [{
|
|
1708
1766
|
providedIn: 'root'
|
|
@@ -1731,10 +1789,10 @@ class CustomPreloadingStrategy {
|
|
|
1731
1789
|
const ret = routeData.preload && this.permission.isGranted(routeData.permission);
|
|
1732
1790
|
return ret;
|
|
1733
1791
|
}
|
|
1734
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1735
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomPreloadingStrategy, deps: [{ token: PermissionService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1793
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomPreloadingStrategy, providedIn: 'root' }); }
|
|
1736
1794
|
}
|
|
1737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomPreloadingStrategy, decorators: [{
|
|
1738
1796
|
type: Injectable,
|
|
1739
1797
|
args: [{
|
|
1740
1798
|
providedIn: 'root'
|
|
@@ -1776,12 +1834,14 @@ class AbTestService {
|
|
|
1776
1834
|
* dynamically loads the microservice
|
|
1777
1835
|
*/
|
|
1778
1836
|
getServiceInstance(service) {
|
|
1779
|
-
return service
|
|
1837
|
+
return service
|
|
1838
|
+
? this.injector.get(service)
|
|
1839
|
+
: this.injector.get(MainApiHttpService);
|
|
1780
1840
|
}
|
|
1781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1782
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AbTestService, deps: [{ token: i0.Injector }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1842
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AbTestService, providedIn: 'root' }); }
|
|
1783
1843
|
}
|
|
1784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AbTestService, decorators: [{
|
|
1785
1845
|
type: Injectable,
|
|
1786
1846
|
args: [{
|
|
1787
1847
|
providedIn: 'root'
|
|
@@ -1809,10 +1869,10 @@ class GeoService {
|
|
|
1809
1869
|
return this.cookieService.putObject('location_from_ip', data);
|
|
1810
1870
|
}));
|
|
1811
1871
|
}
|
|
1812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1813
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1872
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GeoService, deps: [{ token: MainApiHttpService }, { token: i2$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1873
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GeoService, providedIn: 'root' }); }
|
|
1814
1874
|
}
|
|
1815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GeoService, decorators: [{
|
|
1816
1876
|
type: Injectable,
|
|
1817
1877
|
args: [{
|
|
1818
1878
|
providedIn: 'root'
|
|
@@ -1936,10 +1996,10 @@ class SubscriptionService {
|
|
|
1936
1996
|
...HelperService.getPagingParams(paging)
|
|
1937
1997
|
});
|
|
1938
1998
|
}
|
|
1939
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1940
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1999
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SubscriptionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2000
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SubscriptionService }); }
|
|
1941
2001
|
}
|
|
1942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
1943
2003
|
type: Injectable
|
|
1944
2004
|
}], ctorParameters: () => [{ type: MainApiHttpService }] });
|
|
1945
2005
|
|
|
@@ -2007,10 +2067,10 @@ class ProductService {
|
|
|
2007
2067
|
const params = subscription_id != null ? { subscription_id } : {};
|
|
2008
2068
|
return this.api.getWithParams(`${this.endpoint}/available_stripe_proration_behaviors`, params);
|
|
2009
2069
|
}
|
|
2010
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2011
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2070
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProductService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2071
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProductService, providedIn: 'root' }); }
|
|
2012
2072
|
}
|
|
2013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProductService, decorators: [{
|
|
2014
2074
|
type: Injectable,
|
|
2015
2075
|
args: [{
|
|
2016
2076
|
providedIn: 'root'
|
|
@@ -2044,10 +2104,10 @@ class ValidationService {
|
|
|
2044
2104
|
return valid ? null : error;
|
|
2045
2105
|
};
|
|
2046
2106
|
}
|
|
2047
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2048
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2108
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ValidationService }); }
|
|
2049
2109
|
}
|
|
2050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ValidationService, decorators: [{
|
|
2051
2111
|
type: Injectable
|
|
2052
2112
|
}] });
|
|
2053
2113
|
|
|
@@ -2152,10 +2212,10 @@ class AhoyService {
|
|
|
2152
2212
|
this.toast.showToast(error);
|
|
2153
2213
|
}
|
|
2154
2214
|
}
|
|
2155
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2156
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AhoyService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2216
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AhoyService, providedIn: 'root' }); }
|
|
2157
2217
|
}
|
|
2158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AhoyService, decorators: [{
|
|
2159
2219
|
type: Injectable,
|
|
2160
2220
|
args: [{
|
|
2161
2221
|
providedIn: 'root'
|
|
@@ -2280,10 +2340,10 @@ class CommonService {
|
|
|
2280
2340
|
}
|
|
2281
2341
|
return this.api.post(`${CUSTOMER_SUPPORT_PATH}`, formData);
|
|
2282
2342
|
}
|
|
2283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2284
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2343
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2344
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonService, providedIn: 'root' }); }
|
|
2285
2345
|
}
|
|
2286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonService, decorators: [{
|
|
2287
2347
|
type: Injectable,
|
|
2288
2348
|
args: [{
|
|
2289
2349
|
providedIn: 'root'
|
|
@@ -2357,10 +2417,10 @@ class NgbDateCustomParserFormatter extends NgbDateParserFormatter {
|
|
|
2357
2417
|
day: Number(date.substring(8, 10))
|
|
2358
2418
|
};
|
|
2359
2419
|
}
|
|
2360
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2361
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgbDateCustomParserFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2421
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgbDateCustomParserFormatter, providedIn: 'root' }); }
|
|
2362
2422
|
}
|
|
2363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgbDateCustomParserFormatter, decorators: [{
|
|
2364
2424
|
type: Injectable,
|
|
2365
2425
|
args: [{
|
|
2366
2426
|
providedIn: 'root'
|
|
@@ -2470,10 +2530,10 @@ class TagService {
|
|
|
2470
2530
|
addTagCategoryById(data, subscription_id) {
|
|
2471
2531
|
return this.api.post(this.ADMIN_TAG_CATEGORIES_PATH, { ...data, subscription_id });
|
|
2472
2532
|
}
|
|
2473
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2474
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2533
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TagService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2534
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TagService, providedIn: 'root' }); }
|
|
2475
2535
|
}
|
|
2476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TagService, decorators: [{
|
|
2477
2537
|
type: Injectable,
|
|
2478
2538
|
args: [{
|
|
2479
2539
|
providedIn: 'root'
|
|
@@ -2503,10 +2563,10 @@ class TipsService {
|
|
|
2503
2563
|
addUserTips(data, subscription_id) {
|
|
2504
2564
|
return this.api.post(`/users/user_tips`, { ...data, subscription_id });
|
|
2505
2565
|
}
|
|
2506
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2507
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2566
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TipsService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2567
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TipsService, providedIn: 'root' }); }
|
|
2508
2568
|
}
|
|
2509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TipsService, decorators: [{
|
|
2510
2570
|
type: Injectable,
|
|
2511
2571
|
args: [{
|
|
2512
2572
|
providedIn: 'root'
|
|
@@ -2521,10 +2581,10 @@ class WindowService {
|
|
|
2521
2581
|
replaceUrl(url) {
|
|
2522
2582
|
window.location.href = url;
|
|
2523
2583
|
}
|
|
2524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2525
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2585
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WindowService, providedIn: 'root' }); }
|
|
2526
2586
|
}
|
|
2527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WindowService, decorators: [{
|
|
2528
2588
|
type: Injectable,
|
|
2529
2589
|
args: [{
|
|
2530
2590
|
providedIn: 'root'
|
|
@@ -2637,10 +2697,10 @@ class GroupService {
|
|
|
2637
2697
|
deleteCommunicationFiles(id) {
|
|
2638
2698
|
return this.api.delete(`/group_communication_files/${id}`);
|
|
2639
2699
|
}
|
|
2640
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2641
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2700
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2701
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupService, providedIn: 'root' }); }
|
|
2642
2702
|
}
|
|
2643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupService, decorators: [{
|
|
2644
2704
|
type: Injectable,
|
|
2645
2705
|
args: [{
|
|
2646
2706
|
providedIn: 'root'
|
|
@@ -2661,10 +2721,10 @@ class QualificationService {
|
|
|
2661
2721
|
deleteQualifications(id) {
|
|
2662
2722
|
return this.api.delete(`${this.endPoint}/${id}`);
|
|
2663
2723
|
}
|
|
2664
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2665
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2724
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: QualificationService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2725
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: QualificationService, providedIn: 'root' }); }
|
|
2666
2726
|
}
|
|
2667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: QualificationService, decorators: [{
|
|
2668
2728
|
type: Injectable,
|
|
2669
2729
|
args: [{
|
|
2670
2730
|
providedIn: 'root'
|
|
@@ -2678,10 +2738,10 @@ class DashboardService {
|
|
|
2678
2738
|
search(keyword, subscriptionId) {
|
|
2679
2739
|
return this.api.get(`/search/global_search?search_term=${keyword}&subscription_id=${subscriptionId}`);
|
|
2680
2740
|
}
|
|
2681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2682
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2741
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DashboardService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2742
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DashboardService, providedIn: 'root' }); }
|
|
2683
2743
|
}
|
|
2684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DashboardService, decorators: [{
|
|
2685
2745
|
type: Injectable,
|
|
2686
2746
|
args: [{
|
|
2687
2747
|
providedIn: 'root'
|
|
@@ -2737,16 +2797,92 @@ class MailBoxService {
|
|
|
2737
2797
|
getRecipient(params = {}) {
|
|
2738
2798
|
return this.http.getWithParams(`${this.endpoint}available_recipients`, params);
|
|
2739
2799
|
}
|
|
2740
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2741
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MailBoxService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2801
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MailBoxService, providedIn: 'root' }); }
|
|
2742
2802
|
}
|
|
2743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MailBoxService, decorators: [{
|
|
2744
2804
|
type: Injectable,
|
|
2745
2805
|
args: [{
|
|
2746
2806
|
providedIn: 'root'
|
|
2747
2807
|
}]
|
|
2748
2808
|
}], ctorParameters: () => [{ type: MainApiHttpService }] });
|
|
2749
2809
|
|
|
2810
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2811
|
+
class McpJsonRpcService {
|
|
2812
|
+
/** Dev MCP host (avoids relying on dev-server proxy for /main-api-mcp). */
|
|
2813
|
+
static { this.MCP_DEV_HTTP_URL = 'https://main-api-mcp.dev.posiwise.com/mcp'; }
|
|
2814
|
+
constructor(http, appConfigService, store) {
|
|
2815
|
+
this.http = http;
|
|
2816
|
+
this.appConfigService = appConfigService;
|
|
2817
|
+
this.store = store;
|
|
2818
|
+
this.nextId = 1;
|
|
2819
|
+
}
|
|
2820
|
+
pickApiCredentials(user) {
|
|
2821
|
+
if (!user) {
|
|
2822
|
+
return null;
|
|
2823
|
+
}
|
|
2824
|
+
const token = user.api_user_token ?? user.api_keys?.api_user_token;
|
|
2825
|
+
const userId = user.api_user_id ?? user.api_keys?.api_user_id;
|
|
2826
|
+
if (!token || !userId) {
|
|
2827
|
+
return null;
|
|
2828
|
+
}
|
|
2829
|
+
return { token, userId };
|
|
2830
|
+
}
|
|
2831
|
+
rpc(method, params) {
|
|
2832
|
+
const id = this.nextId++;
|
|
2833
|
+
const body = {
|
|
2834
|
+
jsonrpc: '2.0',
|
|
2835
|
+
id,
|
|
2836
|
+
method,
|
|
2837
|
+
...(params !== undefined ? { params } : {})
|
|
2838
|
+
};
|
|
2839
|
+
const url$ = isDevMode()
|
|
2840
|
+
? of(McpJsonRpcService.MCP_DEV_HTTP_URL)
|
|
2841
|
+
: this.appConfigService.appConfig$.pipe(take(1), switchMap(c => {
|
|
2842
|
+
const url = c?.links?.['mcp'] ?? c?.links?.['main_api_mcp'];
|
|
2843
|
+
if (typeof url === 'string' && url.trim()) {
|
|
2844
|
+
return of(url.trim());
|
|
2845
|
+
}
|
|
2846
|
+
return throwError(() => new Error('MCP is not configured: set links.mcp or links.main_api_mcp in app configuration.'));
|
|
2847
|
+
}));
|
|
2848
|
+
return url$.pipe(switchMap(url => this.store.pipe(take(1), map((app) => this.pickApiCredentials(app.user?.currentUser ?? null)), switchMap(creds => {
|
|
2849
|
+
if (!creds) {
|
|
2850
|
+
return throwError(() => new Error('MCP needs API credentials. Ensure your account exposes api_user_token and api_user_id (see Account / API keys).'));
|
|
2851
|
+
}
|
|
2852
|
+
const headers = new HttpHeaders({
|
|
2853
|
+
'Content-Type': 'application/json',
|
|
2854
|
+
'X-API-USER-TOKEN': creds.token,
|
|
2855
|
+
'X-API-USER-ID': creds.userId
|
|
2856
|
+
});
|
|
2857
|
+
return this.http.post(url, body, { headers });
|
|
2858
|
+
}))));
|
|
2859
|
+
}
|
|
2860
|
+
listTools() {
|
|
2861
|
+
return this.rpc('tools/list', {}).pipe(map(res => {
|
|
2862
|
+
if (res.error) {
|
|
2863
|
+
throw new Error(res.error.message ?? 'MCP tools/list failed');
|
|
2864
|
+
}
|
|
2865
|
+
return (res.result ?? { tools: [] });
|
|
2866
|
+
}));
|
|
2867
|
+
}
|
|
2868
|
+
callTool(name, args = {}) {
|
|
2869
|
+
return this.rpc('tools/call', { name, arguments: args }).pipe(map(res => {
|
|
2870
|
+
if (res.error) {
|
|
2871
|
+
throw new Error(res.error.message ?? 'MCP tools/call failed');
|
|
2872
|
+
}
|
|
2873
|
+
return res.result;
|
|
2874
|
+
}));
|
|
2875
|
+
}
|
|
2876
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: McpJsonRpcService, deps: [{ token: i1$2.HttpClient }, { token: i1.AppConfigService }, { token: i2.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2877
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: McpJsonRpcService, providedIn: 'root' }); }
|
|
2878
|
+
}
|
|
2879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: McpJsonRpcService, decorators: [{
|
|
2880
|
+
type: Injectable,
|
|
2881
|
+
args: [{
|
|
2882
|
+
providedIn: 'root'
|
|
2883
|
+
}]
|
|
2884
|
+
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i1.AppConfigService }, { type: i2.Store }] });
|
|
2885
|
+
|
|
2750
2886
|
class WebsocketService {
|
|
2751
2887
|
constructor(appConfigService, authService) {
|
|
2752
2888
|
this.appConfigService = appConfigService;
|
|
@@ -2758,10 +2894,10 @@ class WebsocketService {
|
|
|
2758
2894
|
this.webSocket$ = this.webSocketSubject.asObservable().pipe(distinctUntilChanged());
|
|
2759
2895
|
});
|
|
2760
2896
|
}
|
|
2761
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2762
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2897
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WebsocketService, deps: [{ token: i1.AppConfigService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2898
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WebsocketService, providedIn: 'root' }); }
|
|
2763
2899
|
}
|
|
2764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WebsocketService, decorators: [{
|
|
2765
2901
|
type: Injectable,
|
|
2766
2902
|
args: [{
|
|
2767
2903
|
providedIn: 'root'
|
|
@@ -2817,10 +2953,10 @@ class NotificationService {
|
|
|
2817
2953
|
return null;
|
|
2818
2954
|
}));
|
|
2819
2955
|
}
|
|
2820
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2821
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NotificationService, deps: [{ token: MainApiHttpService }, { token: CustomToastService }, { token: WebsocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2957
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
|
|
2822
2958
|
}
|
|
2823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NotificationService, decorators: [{
|
|
2824
2960
|
type: Injectable,
|
|
2825
2961
|
args: [{
|
|
2826
2962
|
providedIn: 'root'
|
|
@@ -2835,10 +2971,10 @@ class DataService {
|
|
|
2835
2971
|
changeMessage(message) {
|
|
2836
2972
|
this.messageSource.next(message);
|
|
2837
2973
|
}
|
|
2838
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2839
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2974
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2975
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DataService, providedIn: 'root' }); }
|
|
2840
2976
|
}
|
|
2841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DataService, decorators: [{
|
|
2842
2978
|
type: Injectable,
|
|
2843
2979
|
args: [{
|
|
2844
2980
|
providedIn: 'root'
|
|
@@ -2876,10 +3012,10 @@ class NumberPickerService {
|
|
|
2876
3012
|
*/
|
|
2877
3013
|
this.value = null;
|
|
2878
3014
|
}
|
|
2879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2880
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3015
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NumberPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3016
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NumberPickerService, providedIn: 'root' }); }
|
|
2881
3017
|
}
|
|
2882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NumberPickerService, decorators: [{
|
|
2883
3019
|
type: Injectable,
|
|
2884
3020
|
args: [{
|
|
2885
3021
|
providedIn: 'root'
|
|
@@ -3314,10 +3450,10 @@ class SentryErrorHandler {
|
|
|
3314
3450
|
console.error(error, e);
|
|
3315
3451
|
}
|
|
3316
3452
|
}
|
|
3317
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3318
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3454
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SentryErrorHandler, providedIn: 'root' }); }
|
|
3319
3455
|
}
|
|
3320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SentryErrorHandler, decorators: [{
|
|
3321
3457
|
type: Injectable,
|
|
3322
3458
|
args: [{
|
|
3323
3459
|
providedIn: 'root'
|
|
@@ -3377,10 +3513,10 @@ class LogoCacheService {
|
|
|
3377
3513
|
this.cache = JSON.parse(cacheData);
|
|
3378
3514
|
}
|
|
3379
3515
|
}
|
|
3380
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3381
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LogoCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3517
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LogoCacheService, providedIn: 'root' }); }
|
|
3382
3518
|
}
|
|
3383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LogoCacheService, decorators: [{
|
|
3384
3520
|
type: Injectable,
|
|
3385
3521
|
args: [{
|
|
3386
3522
|
providedIn: 'root'
|
|
@@ -3419,10 +3555,10 @@ class HopscotchService {
|
|
|
3419
3555
|
window?.hopscotch?.endTour();
|
|
3420
3556
|
}
|
|
3421
3557
|
}
|
|
3422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3423
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3558
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: HopscotchService, deps: [{ token: ScriptLoaderService }, { token: TipsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3559
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: HopscotchService, providedIn: 'root' }); }
|
|
3424
3560
|
}
|
|
3425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: HopscotchService, decorators: [{
|
|
3426
3562
|
type: Injectable,
|
|
3427
3563
|
args: [{
|
|
3428
3564
|
providedIn: 'root'
|
|
@@ -3438,10 +3574,10 @@ class BrainApiHttpService extends BaseHttpService {
|
|
|
3438
3574
|
this.baseUrl = isDevMode() ? BRAIN_API_PREFIX : config?.['links']['brain_api'] ?? '';
|
|
3439
3575
|
});
|
|
3440
3576
|
}
|
|
3441
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3442
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3578
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiHttpService, providedIn: 'root' }); }
|
|
3443
3579
|
}
|
|
3444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiHttpService, decorators: [{
|
|
3445
3581
|
type: Injectable,
|
|
3446
3582
|
args: [{
|
|
3447
3583
|
providedIn: 'root'
|
|
@@ -3455,10 +3591,10 @@ class BrainApiService {
|
|
|
3455
3591
|
invokeModel(payload) {
|
|
3456
3592
|
return this.api.post('/bedrock/invoke', payload);
|
|
3457
3593
|
}
|
|
3458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3459
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiService, deps: [{ token: BrainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3595
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiService, providedIn: 'root' }); }
|
|
3460
3596
|
}
|
|
3461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiService, decorators: [{
|
|
3462
3598
|
type: Injectable,
|
|
3463
3599
|
args: [{
|
|
3464
3600
|
providedIn: 'root'
|
|
@@ -3473,5 +3609,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
3473
3609
|
* Generated bundle index. Do not edit.
|
|
3474
3610
|
*/
|
|
3475
3611
|
|
|
3476
|
-
export { AbTestService, AhoyService, AuthService, BaseHttpService, BrainApiHttpService, BrainApiService, CommonService, CommonServicesModule, CustomPreloadingStrategy, CustomToastService, DashboardService, DataService, FormHelperService, GeoService, GoogleAnalyticsService, GroupService, HopscotchService, IntegrationsApiHttpService, LinkService, LocalStorage, LogoCacheService, MailBoxService, MainApiHttpService, NgbDateCustomParserFormatter, NotificationService, NumberPickerService, PermissionService, PrimeNgHelper, ProductService, ProfileService, QualificationService, ScriptLoaderService, SecureTokenStorageService, SentryErrorHandler, SeoService, SubscriptionService, TagService, TipsService, UserEffects, UserService, ValidationService, WebsocketService, WindowService };
|
|
3612
|
+
export { AbTestService, AhoyService, AuthService, BaseHttpService, BrainApiHttpService, BrainApiService, CommonService, CommonServicesModule, CustomPreloadingStrategy, CustomToastService, DashboardService, DataService, FormHelperService, GeoService, GoogleAnalyticsService, GroupService, HopscotchService, IntegrationsApiHttpService, LinkService, LocalStorage, LogoCacheService, MailBoxService, MainApiHttpService, McpJsonRpcService, NgbDateCustomParserFormatter, NotificationService, NumberPickerService, PermissionService, PrimeNgHelper, ProductService, ProfileService, QualificationService, ScriptLoaderService, SecureTokenStorageService, SentryErrorHandler, SeoService, SubscriptionService, TagService, TipsService, UserEffects, UserService, ValidationService, WebsocketService, WindowService };
|
|
3477
3613
|
//# sourceMappingURL=posiwise-common-services.mjs.map
|