@sunbird-cb/utils 1.0.8 → 1.0.9
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/sunbird-cb-utils.umd.js +5320 -5304
- package/bundles/sunbird-cb-utils.umd.js.map +1 -1
- package/bundles/sunbird-cb-utils.umd.min.js +2 -2
- package/bundles/sunbird-cb-utils.umd.min.js.map +1 -1
- package/esm2015/lib/components/image-crop/image-crop.component.js +194 -194
- package/esm2015/lib/components/image-crop/image-crop.module.js +26 -26
- package/esm2015/lib/constants/features.enum.js +554 -554
- package/esm2015/lib/constants/instances.enum.js +4 -4
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +86 -86
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +14 -14
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +37 -37
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +14 -14
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +91 -91
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +14 -14
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +67 -67
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +14 -14
- package/esm2015/lib/directives/navigation/navigation.directive.js +38 -38
- package/esm2015/lib/directives/navigation/navigation.module.js +14 -14
- package/esm2015/lib/directives/permission/permission.directive.js +10 -10
- package/esm2015/lib/directives/permission/permission.module.js +14 -14
- package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +8 -8
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +98 -98
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +18 -18
- package/esm2015/lib/helpers/logout/logout.component.js +57 -56
- package/esm2015/lib/helpers/logout/logout.module.js +17 -17
- package/esm2015/lib/models/contentRating.model.js +12 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +12 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +58 -58
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +14 -14
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +32 -32
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +14 -14
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +42 -42
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +14 -14
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +59 -59
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +14 -14
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +15 -15
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +14 -14
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +29 -29
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +14 -14
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +11 -11
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +14 -14
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +24 -24
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +14 -14
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +16 -16
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +14 -14
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +30 -30
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +14 -14
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +15 -15
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +14 -14
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +17 -17
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +14 -14
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +15 -15
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +14 -14
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +34 -34
- package/esm2015/lib/resolvers/explore-detail.resolver.js +88 -88
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +39 -39
- package/esm2015/lib/resolvers/page.constant.js +3 -3
- package/esm2015/lib/resolvers/page.model.js +46 -46
- package/esm2015/lib/resolvers/page.resolver.js +89 -89
- package/esm2015/lib/resolvers/resolver.model.js +5 -5
- package/esm2015/lib/services/auth-keycloak.service.js +235 -225
- package/esm2015/lib/services/auth-microsoft.service.js +195 -195
- package/esm2015/lib/services/card-content.model.js +30 -30
- package/esm2015/lib/services/configurations.model.js +508 -508
- package/esm2015/lib/services/configurations.service.js +103 -103
- package/esm2015/lib/services/content-strip-multiple.model.js +74 -74
- package/esm2015/lib/services/event.model.js +227 -227
- package/esm2015/lib/services/event.service.js +107 -107
- package/esm2015/lib/services/logger.service.js +54 -54
- package/esm2015/lib/services/ms-office.model.js +7 -7
- package/esm2015/lib/services/subapplication-respond.service.js +224 -224
- package/esm2015/lib/services/telemetry.service.js +449 -449
- package/esm2015/lib/services/user-preference.model.js +28 -28
- package/esm2015/lib/services/user-preference.service.js +89 -89
- package/esm2015/lib/services/utility.service.js +144 -144
- package/esm2015/lib/services/value.service.js +30 -30
- package/esm2015/lib/services/widget-content.model.js +341 -341
- package/esm2015/lib/services/widget-content.service.js +191 -191
- package/esm2015/lib/services/widget-resolver.model.js +56 -56
- package/esm2015/lib/services/widget-search.model.js +125 -125
- package/esm2015/public-api.js +66 -66
- package/esm2015/sunbird-cb-utils.js +8 -8
- package/esm5/lib/components/image-crop/image-crop.component.js +199 -199
- package/esm5/lib/components/image-crop/image-crop.module.js +30 -30
- package/esm5/lib/constants/features.enum.js +554 -554
- package/esm5/lib/constants/instances.enum.js +4 -4
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +104 -104
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +18 -18
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +39 -39
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +18 -18
- package/esm5/lib/directives/image-responsive/image-responsive.directive.js +94 -94
- package/esm5/lib/directives/image-responsive/image-responsive.module.js +18 -18
- package/esm5/lib/directives/in-view-port/in-view-port.directive.js +72 -72
- package/esm5/lib/directives/in-view-port/in-view-port.module.js +18 -18
- package/esm5/lib/directives/navigation/navigation.directive.js +40 -40
- package/esm5/lib/directives/navigation/navigation.module.js +18 -18
- package/esm5/lib/directives/permission/permission.directive.js +13 -13
- package/esm5/lib/directives/permission/permission.module.js +18 -18
- package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +8 -8
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +102 -102
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +22 -22
- package/esm5/lib/helpers/logout/logout.component.js +63 -62
- package/esm5/lib/helpers/logout/logout.module.js +21 -21
- package/esm5/lib/models/contentRating.model.js +12 -12
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +16 -16
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +62 -62
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +18 -18
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +36 -36
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +18 -18
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +44 -44
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +18 -18
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +63 -63
- package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +18 -18
- package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +19 -19
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +18 -18
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +37 -37
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +18 -18
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +15 -15
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +18 -18
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +29 -29
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +18 -18
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +20 -20
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +18 -18
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +34 -34
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +18 -18
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +17 -17
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +18 -18
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +33 -33
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +18 -18
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +19 -19
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +18 -18
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +37 -37
- package/esm5/lib/resolvers/explore-detail.resolver.js +92 -92
- package/esm5/lib/resolvers/marketing-offering.resolve.js +42 -42
- package/esm5/lib/resolvers/page.constant.js +3 -3
- package/esm5/lib/resolvers/page.model.js +46 -46
- package/esm5/lib/resolvers/page.resolver.js +97 -97
- package/esm5/lib/resolvers/resolver.model.js +5 -5
- package/esm5/lib/services/auth-keycloak.service.js +310 -293
- package/esm5/lib/services/auth-microsoft.service.js +250 -250
- package/esm5/lib/services/card-content.model.js +30 -30
- package/esm5/lib/services/configurations.model.js +508 -508
- package/esm5/lib/services/configurations.service.js +105 -105
- package/esm5/lib/services/content-strip-multiple.model.js +74 -74
- package/esm5/lib/services/event.model.js +227 -227
- package/esm5/lib/services/event.service.js +110 -110
- package/esm5/lib/services/logger.service.js +72 -72
- package/esm5/lib/services/ms-office.model.js +7 -7
- package/esm5/lib/services/subapplication-respond.service.js +229 -229
- package/esm5/lib/services/telemetry.service.js +484 -484
- package/esm5/lib/services/user-preference.model.js +28 -28
- package/esm5/lib/services/user-preference.service.js +108 -108
- package/esm5/lib/services/utility.service.js +177 -177
- package/esm5/lib/services/value.service.js +32 -32
- package/esm5/lib/services/widget-content.model.js +341 -341
- package/esm5/lib/services/widget-content.service.js +213 -213
- package/esm5/lib/services/widget-resolver.model.js +56 -56
- package/esm5/lib/services/widget-search.model.js +125 -125
- package/esm5/public-api.js +66 -66
- package/esm5/sunbird-cb-utils.js +8 -8
- package/fesm2015/sunbird-cb-utils.js +4892 -4883
- package/fesm2015/sunbird-cb-utils.js.map +1 -1
- package/fesm5/sunbird-cb-utils.js +5319 -5303
- package/fesm5/sunbird-cb-utils.js.map +1 -1
- package/lib/components/image-crop/image-crop.component.d.ts +56 -56
- package/lib/components/image-crop/image-crop.module.d.ts +2 -2
- package/lib/constants/features.enum.d.ts +553 -553
- package/lib/constants/instances.enum.d.ts +3 -3
- package/lib/constants/misc.constants.d.ts +2 -2
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +18 -18
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +2 -2
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -9
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +2 -2
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +17 -17
- package/lib/directives/image-responsive/image-responsive.module.d.ts +2 -2
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +11 -11
- package/lib/directives/in-view-port/in-view-port.module.d.ts +2 -2
- package/lib/directives/navigation/navigation.directive.d.ts +9 -9
- package/lib/directives/navigation/navigation.module.d.ts +2 -2
- package/lib/directives/permission/permission.directive.d.ts +3 -3
- package/lib/directives/permission/permission.module.d.ts +2 -2
- package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -3
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +18 -18
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +2 -2
- package/lib/helpers/logout/logout.component.d.ts +18 -18
- package/lib/helpers/logout/logout.module.d.ts +2 -2
- package/lib/models/contentRating.model.d.ts +9 -9
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +2 -2
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +10 -10
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +2 -2
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +4 -4
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +2 -2
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +13 -13
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -2
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +5 -5
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +2 -2
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +4 -4
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +2 -2
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +4 -4
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +2 -2
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +4 -4
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +2 -2
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +4 -4
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +2 -2
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +4 -4
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +2 -2
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +10 -10
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +2 -2
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +9 -9
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +2 -2
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +4 -4
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +2 -2
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +4 -4
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +2 -2
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +7 -7
- package/lib/resolvers/explore-detail.resolver.d.ts +16 -16
- package/lib/resolvers/marketing-offering.resolve.d.ts +10 -10
- package/lib/resolvers/page.constant.d.ts +1 -1
- package/lib/resolvers/page.model.d.ts +40 -40
- package/lib/resolvers/page.resolver.d.ts +17 -17
- package/lib/resolvers/resolver.model.d.ts +4 -4
- package/lib/services/auth-keycloak.service.d.ts +30 -27
- package/lib/services/auth-microsoft.service.d.ts +30 -30
- package/lib/services/card-content.model.d.ts +29 -29
- package/lib/services/configurations.model.d.ts +487 -487
- package/lib/services/configurations.service.d.ts +49 -49
- package/lib/services/content-strip-multiple.model.d.ts +79 -79
- package/lib/services/event.model.d.ts +192 -192
- package/lib/services/event.service.d.ts +14 -14
- package/lib/services/logger.service.d.ts +15 -15
- package/lib/services/ms-office.model.d.ts +6 -6
- package/lib/services/subapplication-respond.service.d.ts +25 -25
- package/lib/services/telemetry.service.d.ts +42 -42
- package/lib/services/user-preference.model.d.ts +26 -26
- package/lib/services/user-preference.service.d.ts +11 -11
- package/lib/services/utility.service.d.ts +31 -31
- package/lib/services/value.service.d.ts +8 -8
- package/lib/services/widget-content.model.d.ts +314 -314
- package/lib/services/widget-content.service.d.ts +49 -49
- package/lib/services/widget-resolver.model.d.ts +48 -48
- package/lib/services/widget-search.model.d.ts +114 -114
- package/package.json +1 -1
- package/public-api.d.ts +66 -66
- package/sunbird-cb-utils.d.ts +8 -8
- package/sunbird-cb-utils.metadata.json +1 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
2
|
-
import { NsPage } from '../resolvers/page.model';
|
|
3
|
-
import { NsAppsConfig, NsInstanceConfig, NsUser } from './configurations.model';
|
|
4
|
-
import { IUserPreference } from './user-preference.model';
|
|
5
|
-
export declare class ConfigurationsService {
|
|
6
|
-
constructor();
|
|
7
|
-
appSetup: boolean;
|
|
8
|
-
userUrl: string;
|
|
9
|
-
baseUrl: string;
|
|
10
|
-
sitePath: string;
|
|
11
|
-
hostPath: string;
|
|
12
|
-
userRoles: Set<string> | null;
|
|
13
|
-
userGroups: Set<string> | null;
|
|
14
|
-
restrictedFeatures: Set<string> | null;
|
|
15
|
-
restrictedWidgets: Set<string> | null;
|
|
16
|
-
instanceConfig: NsInstanceConfig.IConfig | null;
|
|
17
|
-
appsConfig: NsAppsConfig.IAppsConfig | null;
|
|
18
|
-
rootOrg: string | null;
|
|
19
|
-
courseContentPath?: string;
|
|
20
|
-
org: string[] | null;
|
|
21
|
-
activeOrg: string | null;
|
|
22
|
-
isProduction: boolean;
|
|
23
|
-
hasAcceptedTnc: boolean;
|
|
24
|
-
profileDetailsStatus: boolean;
|
|
25
|
-
userPreference: IUserPreference | null;
|
|
26
|
-
userProfile: NsUser.IUserProfile | null;
|
|
27
|
-
userProfileV2: NsUser.IUserProfile | null;
|
|
28
|
-
unMappedUser: any;
|
|
29
|
-
isAuthenticated: boolean;
|
|
30
|
-
isNewUser: boolean;
|
|
31
|
-
isActive: boolean;
|
|
32
|
-
pinnedApps: BehaviorSubject<Set<string>>;
|
|
33
|
-
prefChangeNotifier: ReplaySubject<Partial<IUserPreference>>;
|
|
34
|
-
tourGuideNotifier: ReplaySubject<boolean>;
|
|
35
|
-
authChangeNotifier: ReplaySubject<boolean>;
|
|
36
|
-
activeThemeObject: NsInstanceConfig.ITheme | null;
|
|
37
|
-
activeFontObject: NsInstanceConfig.IFontSize | null;
|
|
38
|
-
isDarkMode: boolean;
|
|
39
|
-
isIntranetAllowed: boolean;
|
|
40
|
-
isRTL: boolean;
|
|
41
|
-
activeLocale: NsInstanceConfig.ILocalsConfig | null;
|
|
42
|
-
activeLocaleGroup: string;
|
|
43
|
-
completedActivity: string[] | null;
|
|
44
|
-
completedTour: boolean;
|
|
45
|
-
profileSettings: string[];
|
|
46
|
-
primaryNavBar: Partial<NsPage.INavBackground>;
|
|
47
|
-
pageNavBar: Partial<NsPage.INavBackground>;
|
|
48
|
-
primaryNavBarConfig: NsInstanceConfig.IPrimaryNavbarConfig | null;
|
|
49
|
-
}
|
|
1
|
+
import { BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
2
|
+
import { NsPage } from '../resolvers/page.model';
|
|
3
|
+
import { NsAppsConfig, NsInstanceConfig, NsUser } from './configurations.model';
|
|
4
|
+
import { IUserPreference } from './user-preference.model';
|
|
5
|
+
export declare class ConfigurationsService {
|
|
6
|
+
constructor();
|
|
7
|
+
appSetup: boolean;
|
|
8
|
+
userUrl: string;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
sitePath: string;
|
|
11
|
+
hostPath: string;
|
|
12
|
+
userRoles: Set<string> | null;
|
|
13
|
+
userGroups: Set<string> | null;
|
|
14
|
+
restrictedFeatures: Set<string> | null;
|
|
15
|
+
restrictedWidgets: Set<string> | null;
|
|
16
|
+
instanceConfig: NsInstanceConfig.IConfig | null;
|
|
17
|
+
appsConfig: NsAppsConfig.IAppsConfig | null;
|
|
18
|
+
rootOrg: string | null;
|
|
19
|
+
courseContentPath?: string;
|
|
20
|
+
org: string[] | null;
|
|
21
|
+
activeOrg: string | null;
|
|
22
|
+
isProduction: boolean;
|
|
23
|
+
hasAcceptedTnc: boolean;
|
|
24
|
+
profileDetailsStatus: boolean;
|
|
25
|
+
userPreference: IUserPreference | null;
|
|
26
|
+
userProfile: NsUser.IUserProfile | null;
|
|
27
|
+
userProfileV2: NsUser.IUserProfile | null;
|
|
28
|
+
unMappedUser: any;
|
|
29
|
+
isAuthenticated: boolean;
|
|
30
|
+
isNewUser: boolean;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
pinnedApps: BehaviorSubject<Set<string>>;
|
|
33
|
+
prefChangeNotifier: ReplaySubject<Partial<IUserPreference>>;
|
|
34
|
+
tourGuideNotifier: ReplaySubject<boolean>;
|
|
35
|
+
authChangeNotifier: ReplaySubject<boolean>;
|
|
36
|
+
activeThemeObject: NsInstanceConfig.ITheme | null;
|
|
37
|
+
activeFontObject: NsInstanceConfig.IFontSize | null;
|
|
38
|
+
isDarkMode: boolean;
|
|
39
|
+
isIntranetAllowed: boolean;
|
|
40
|
+
isRTL: boolean;
|
|
41
|
+
activeLocale: NsInstanceConfig.ILocalsConfig | null;
|
|
42
|
+
activeLocaleGroup: string;
|
|
43
|
+
completedActivity: string[] | null;
|
|
44
|
+
completedTour: boolean;
|
|
45
|
+
profileSettings: string[];
|
|
46
|
+
primaryNavBar: Partial<NsPage.INavBackground>;
|
|
47
|
+
pageNavBar: Partial<NsPage.INavBackground>;
|
|
48
|
+
primaryNavBarConfig: NsInstanceConfig.IPrimaryNavbarConfig | null;
|
|
49
|
+
}
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { NSSearch } from './widget-search.model';
|
|
2
|
-
import { NsContent } from './widget-content.model';
|
|
3
|
-
import { NsCardContent } from './card-content.model';
|
|
4
|
-
import { NsWidgetResolver } from './widget-resolver.model';
|
|
5
|
-
export declare namespace NsContentStripMultiple {
|
|
6
|
-
interface IContentStripMultiple {
|
|
7
|
-
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
8
|
-
loader?: boolean;
|
|
9
|
-
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
10
|
-
strips: IContentStripUnit[];
|
|
11
|
-
isChannelStrip?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface IContentStripUnit {
|
|
14
|
-
key: string;
|
|
15
|
-
title: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
mode?: 'accordion';
|
|
18
|
-
info?: IStripInfo;
|
|
19
|
-
preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
20
|
-
postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
21
|
-
stripConfig?: IStripConfig;
|
|
22
|
-
canHideStrip?: boolean;
|
|
23
|
-
filters?: any[];
|
|
24
|
-
selectAll?: boolean | null;
|
|
25
|
-
request?: {
|
|
26
|
-
search?: NSSearch.ISearchRequest;
|
|
27
|
-
searchV6?: NSSearch.ISearchV6Request;
|
|
28
|
-
searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
|
|
29
|
-
api?: IStripRequestApi;
|
|
30
|
-
ids?: string[];
|
|
31
|
-
};
|
|
32
|
-
searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
|
|
33
|
-
stripBackground?: string;
|
|
34
|
-
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
35
|
-
loader?: boolean;
|
|
36
|
-
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
37
|
-
refreshEvent?: Record<'eventType' | 'from', string>;
|
|
38
|
-
fetchLikes?: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface IStripRequestApi {
|
|
41
|
-
path: string;
|
|
42
|
-
queryParams?: {
|
|
43
|
-
pageNo?: number;
|
|
44
|
-
pageSize?: number;
|
|
45
|
-
pageState?: string;
|
|
46
|
-
sourceFields?: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
interface IStripInfo {
|
|
50
|
-
mode: 'below' | 'popup' | 'modal';
|
|
51
|
-
visibilityMode?: 'hidden' | 'visible';
|
|
52
|
-
icon: {
|
|
53
|
-
icon: string;
|
|
54
|
-
scale: number;
|
|
55
|
-
style?: any;
|
|
56
|
-
};
|
|
57
|
-
widget: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
58
|
-
}
|
|
59
|
-
interface IStripConfig {
|
|
60
|
-
cardSubType: NsCardContent.TCardSubType;
|
|
61
|
-
postCardForSearch?: boolean;
|
|
62
|
-
intranetMode?: 'greyOut' | 'hide';
|
|
63
|
-
deletedMode?: 'greyOut' | 'hide';
|
|
64
|
-
contentTags?: IContentTags;
|
|
65
|
-
}
|
|
66
|
-
interface IContentTags {
|
|
67
|
-
daysSpan?: number;
|
|
68
|
-
excludeContentType?: NsContent.EContentTypes[];
|
|
69
|
-
excludeMimeType?: string[];
|
|
70
|
-
tag: string;
|
|
71
|
-
criteriaField: string;
|
|
72
|
-
}
|
|
73
|
-
interface IContentStripResponseApi {
|
|
74
|
-
contents: NsContent.IContent[];
|
|
75
|
-
hasMore?: boolean;
|
|
76
|
-
pageState?: string;
|
|
77
|
-
totalHits?: number;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
import { NSSearch } from './widget-search.model';
|
|
2
|
+
import { NsContent } from './widget-content.model';
|
|
3
|
+
import { NsCardContent } from './card-content.model';
|
|
4
|
+
import { NsWidgetResolver } from './widget-resolver.model';
|
|
5
|
+
export declare namespace NsContentStripMultiple {
|
|
6
|
+
interface IContentStripMultiple {
|
|
7
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
8
|
+
loader?: boolean;
|
|
9
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
10
|
+
strips: IContentStripUnit[];
|
|
11
|
+
isChannelStrip?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface IContentStripUnit {
|
|
14
|
+
key: string;
|
|
15
|
+
title: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
mode?: 'accordion';
|
|
18
|
+
info?: IStripInfo;
|
|
19
|
+
preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
20
|
+
postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
21
|
+
stripConfig?: IStripConfig;
|
|
22
|
+
canHideStrip?: boolean;
|
|
23
|
+
filters?: any[];
|
|
24
|
+
selectAll?: boolean | null;
|
|
25
|
+
request?: {
|
|
26
|
+
search?: NSSearch.ISearchRequest;
|
|
27
|
+
searchV6?: NSSearch.ISearchV6Request;
|
|
28
|
+
searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
|
|
29
|
+
api?: IStripRequestApi;
|
|
30
|
+
ids?: string[];
|
|
31
|
+
};
|
|
32
|
+
searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
|
|
33
|
+
stripBackground?: string;
|
|
34
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
35
|
+
loader?: boolean;
|
|
36
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
37
|
+
refreshEvent?: Record<'eventType' | 'from', string>;
|
|
38
|
+
fetchLikes?: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface IStripRequestApi {
|
|
41
|
+
path: string;
|
|
42
|
+
queryParams?: {
|
|
43
|
+
pageNo?: number;
|
|
44
|
+
pageSize?: number;
|
|
45
|
+
pageState?: string;
|
|
46
|
+
sourceFields?: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
interface IStripInfo {
|
|
50
|
+
mode: 'below' | 'popup' | 'modal';
|
|
51
|
+
visibilityMode?: 'hidden' | 'visible';
|
|
52
|
+
icon: {
|
|
53
|
+
icon: string;
|
|
54
|
+
scale: number;
|
|
55
|
+
style?: any;
|
|
56
|
+
};
|
|
57
|
+
widget: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
58
|
+
}
|
|
59
|
+
interface IStripConfig {
|
|
60
|
+
cardSubType: NsCardContent.TCardSubType;
|
|
61
|
+
postCardForSearch?: boolean;
|
|
62
|
+
intranetMode?: 'greyOut' | 'hide';
|
|
63
|
+
deletedMode?: 'greyOut' | 'hide';
|
|
64
|
+
contentTags?: IContentTags;
|
|
65
|
+
}
|
|
66
|
+
interface IContentTags {
|
|
67
|
+
daysSpan?: number;
|
|
68
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
69
|
+
excludeMimeType?: string[];
|
|
70
|
+
tag: string;
|
|
71
|
+
criteriaField: string;
|
|
72
|
+
}
|
|
73
|
+
interface IContentStripResponseApi {
|
|
74
|
+
contents: NsContent.IContent[];
|
|
75
|
+
hasMore?: boolean;
|
|
76
|
+
pageState?: string;
|
|
77
|
+
totalHits?: number;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,192 +1,192 @@
|
|
|
1
|
-
export declare namespace WsEvents {
|
|
2
|
-
interface IWsEventsFromWidget {
|
|
3
|
-
type: 'widget';
|
|
4
|
-
widgetType: string;
|
|
5
|
-
widgetSubType: string;
|
|
6
|
-
}
|
|
7
|
-
interface IWsEventsFromPage {
|
|
8
|
-
type: 'page';
|
|
9
|
-
pageUrl: string;
|
|
10
|
-
pageType: string;
|
|
11
|
-
}
|
|
12
|
-
enum WsEventType {
|
|
13
|
-
Action = "Action",
|
|
14
|
-
Telemetry = "Telemetry",
|
|
15
|
-
PageNavigation = "PageNavigation",
|
|
16
|
-
AccessRestrictedContentAccessed = "AccessRestrictedContentAccessed",
|
|
17
|
-
PageSlow = "PageSlow",
|
|
18
|
-
ErrorOccurred = "ErrorOccurred",
|
|
19
|
-
WidgetResolveError = "WidgetResolveError"
|
|
20
|
-
}
|
|
21
|
-
enum WsEventLogLevel {
|
|
22
|
-
Warn = "Warn",
|
|
23
|
-
Error = "Error",
|
|
24
|
-
Info = "Info",
|
|
25
|
-
Log = "Log",
|
|
26
|
-
Trace = "Trace"
|
|
27
|
-
}
|
|
28
|
-
enum WsAuditTypes {
|
|
29
|
-
Created = "Created",
|
|
30
|
-
Updated = "Updated",
|
|
31
|
-
Deleted = "Deleted"
|
|
32
|
-
}
|
|
33
|
-
enum WsTimeSpentType {
|
|
34
|
-
Page = "Page",
|
|
35
|
-
Player = "Player"
|
|
36
|
-
}
|
|
37
|
-
enum WsTimeSpentMode {
|
|
38
|
-
Play = "Play",
|
|
39
|
-
View = "View"
|
|
40
|
-
}
|
|
41
|
-
enum externalTelemetrypdata {
|
|
42
|
-
RBCP = "rbcp-web-ui"
|
|
43
|
-
}
|
|
44
|
-
interface IWsEvents<T> {
|
|
45
|
-
eventType: WsEventType;
|
|
46
|
-
eventLogLevel: WsEventLogLevel;
|
|
47
|
-
from: IWsEventsFromWidget | IWsEventsFromPage | string;
|
|
48
|
-
to: string;
|
|
49
|
-
data: T;
|
|
50
|
-
passThroughData?: any;
|
|
51
|
-
pageContext?: any;
|
|
52
|
-
}
|
|
53
|
-
enum EnumTelemetrySubType {
|
|
54
|
-
Init = "Init",
|
|
55
|
-
Interact = "Interact",
|
|
56
|
-
Loaded = "Loaded",
|
|
57
|
-
Unloaded = "Unloaded",
|
|
58
|
-
StateChange = "StateChange",
|
|
59
|
-
HeartBeat = "HeartBeat",
|
|
60
|
-
Search = "Search",
|
|
61
|
-
Feedback = "Feedback",
|
|
62
|
-
Impression = "Impression"
|
|
63
|
-
}
|
|
64
|
-
interface ITelemetryPageContext {
|
|
65
|
-
pageId?: string;
|
|
66
|
-
module?: string;
|
|
67
|
-
pageIdExt?: string;
|
|
68
|
-
}
|
|
69
|
-
interface ITelemetryEdata {
|
|
70
|
-
type: string;
|
|
71
|
-
subType?: string;
|
|
72
|
-
id?: string;
|
|
73
|
-
pageid?: string;
|
|
74
|
-
}
|
|
75
|
-
interface ITelemetryTabData {
|
|
76
|
-
label: string;
|
|
77
|
-
index: number;
|
|
78
|
-
}
|
|
79
|
-
interface IWsEventTelemetry {
|
|
80
|
-
eventSubType: EnumTelemetrySubType;
|
|
81
|
-
pageContext?: ITelemetryPageContext;
|
|
82
|
-
}
|
|
83
|
-
enum EnumTelemetryPdfActivity {
|
|
84
|
-
PAGE_CHANGED = "PAGE_CHANGED",
|
|
85
|
-
FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
|
|
86
|
-
FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
|
|
87
|
-
ZOOM_CHANGE = "ZOOM_CHANGE",
|
|
88
|
-
NONE = "NONE"
|
|
89
|
-
}
|
|
90
|
-
interface IWsEventTelemetryPdfData extends IWsEventTelemetry {
|
|
91
|
-
activityType: EnumTelemetryPdfActivity;
|
|
92
|
-
currentPage: number;
|
|
93
|
-
totalPage: number;
|
|
94
|
-
activityStartedAt: Date | null;
|
|
95
|
-
object: any;
|
|
96
|
-
}
|
|
97
|
-
type WsEventTelemetryPDF = IWsEvents<IWsEventTelemetryPdfData>;
|
|
98
|
-
interface IWsEventTelemetryInteract extends IWsEventTelemetry {
|
|
99
|
-
edata: ITelemetryEdata;
|
|
100
|
-
object: any;
|
|
101
|
-
pageContext?: ITelemetryPageContext;
|
|
102
|
-
}
|
|
103
|
-
interface IWsEventTelemetryFeedback extends IWsEventTelemetry {
|
|
104
|
-
edata: ITelemetryEdata;
|
|
105
|
-
object: any;
|
|
106
|
-
pageContext?: ITelemetryPageContext;
|
|
107
|
-
}
|
|
108
|
-
interface IWsEventTelemetryImpression extends IWsEventTelemetry {
|
|
109
|
-
edata?: ITelemetryEdata;
|
|
110
|
-
object?: any;
|
|
111
|
-
pageContext?: ITelemetryPageContext;
|
|
112
|
-
}
|
|
113
|
-
interface IWsEventTelemetrySearch extends IWsEventTelemetry {
|
|
114
|
-
type: string;
|
|
115
|
-
subType?: string;
|
|
116
|
-
query?: string;
|
|
117
|
-
filters?: string;
|
|
118
|
-
size?: number;
|
|
119
|
-
locale?: any;
|
|
120
|
-
}
|
|
121
|
-
interface IWsEventTelemetryHeartBeat extends IWsEventTelemetry {
|
|
122
|
-
type: string;
|
|
123
|
-
id: string;
|
|
124
|
-
}
|
|
125
|
-
type WsEventTelemetryInteract = IWsEvents<IWsEventTelemetryInteract>;
|
|
126
|
-
type WsEventTelemetryFeedback = IWsEvents<IWsEventTelemetryFeedback>;
|
|
127
|
-
type WsEventTelemetryImpression = IWsEvents<IWsEventTelemetryImpression>;
|
|
128
|
-
type WsEventTelemetrySearch = IWsEvents<IWsEventTelemetrySearch>;
|
|
129
|
-
type WsEventTelemetryHeartBeat = IWsEvents<IWsEventTelemetryHeartBeat>;
|
|
130
|
-
enum EnumTelemetryMediaActivity {
|
|
131
|
-
PLAYED = "PLAYED",
|
|
132
|
-
PAUSED = "PAUSED",
|
|
133
|
-
SEEKED = "SEEKED",
|
|
134
|
-
ENDED = "ENDED",
|
|
135
|
-
VOLUME_CHANGE = "VOLUME_CHANGE",
|
|
136
|
-
MUTE = "MUTE",
|
|
137
|
-
UNMUTE = "UNMUTE",
|
|
138
|
-
PLAYBACK_SPEED_CHANGE = "PLAYBACK_SPEED_CHANGE",
|
|
139
|
-
FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
|
|
140
|
-
FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
|
|
141
|
-
PICTURE_IN_PICTURE_ACTIVATED = "PICTURE_IN_PICTURE_ACTIVATED",
|
|
142
|
-
PICTURE_IN_PICTURE_DEACTIVATED = "PICTURE_IN_PICTURE_DEACTIVATED",
|
|
143
|
-
NONE = "NONE"
|
|
144
|
-
}
|
|
145
|
-
enum EnumTelemetryMediaState {
|
|
146
|
-
PLAYING = "PLAYING",
|
|
147
|
-
PAUSED = "PAUSED",
|
|
148
|
-
ENDED = "ENDED",
|
|
149
|
-
BUFFERING = "BUFFERING",
|
|
150
|
-
NOT_STARTED = "NOT_STARTED"
|
|
151
|
-
}
|
|
152
|
-
interface IWsEventTelemetryMediaData extends IWsEventTelemetry {
|
|
153
|
-
currentState: EnumTelemetryMediaState;
|
|
154
|
-
activityType: EnumTelemetryMediaActivity;
|
|
155
|
-
currentTime: number | null;
|
|
156
|
-
totalTime: number | null;
|
|
157
|
-
maxedSeekedTime: number;
|
|
158
|
-
activityStartedAt?: Date | null;
|
|
159
|
-
}
|
|
160
|
-
type WsEventTelemetryMedia = IWsEvents<IWsEventTelemetryMediaData>;
|
|
161
|
-
enum EnumTelemetrymodules {
|
|
162
|
-
CONTENT = "content",
|
|
163
|
-
FEEDBACK = "feedback",
|
|
164
|
-
COURSE = "course",
|
|
165
|
-
PROGRAM = "program",
|
|
166
|
-
EXPLORE = "explore",
|
|
167
|
-
LEARN = "learn",
|
|
168
|
-
HOME = "home",
|
|
169
|
-
DASHBOARD = "dashboard",
|
|
170
|
-
SEARCH = "search",
|
|
171
|
-
DISCUSS = "discuss",
|
|
172
|
-
COMPETENCY = "competency",
|
|
173
|
-
EVENTS = "events",
|
|
174
|
-
CAREER = "career",
|
|
175
|
-
PROFILE = "profile",
|
|
176
|
-
NETWORK = "network",
|
|
177
|
-
SUPPORT = "support"
|
|
178
|
-
}
|
|
179
|
-
enum EnumInteractTypes {
|
|
180
|
-
CLICK = "click"
|
|
181
|
-
}
|
|
182
|
-
enum EnumInteractSubTypes {
|
|
183
|
-
COURSE_TAB = "course-tab",
|
|
184
|
-
CAREER_TAB = "career-tab",
|
|
185
|
-
NETWORK_TAB = "network-tab",
|
|
186
|
-
COMPETENCY_TAB = "competency-tab",
|
|
187
|
-
PROFILE_EDIT_TAB = "profile-edit-tab",
|
|
188
|
-
DISCUSS_TAB = "discuss-tab",
|
|
189
|
-
EVENTS_TAB = "events-tab",
|
|
190
|
-
SIDE_MENU = "side-menu"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
1
|
+
export declare namespace WsEvents {
|
|
2
|
+
interface IWsEventsFromWidget {
|
|
3
|
+
type: 'widget';
|
|
4
|
+
widgetType: string;
|
|
5
|
+
widgetSubType: string;
|
|
6
|
+
}
|
|
7
|
+
interface IWsEventsFromPage {
|
|
8
|
+
type: 'page';
|
|
9
|
+
pageUrl: string;
|
|
10
|
+
pageType: string;
|
|
11
|
+
}
|
|
12
|
+
enum WsEventType {
|
|
13
|
+
Action = "Action",
|
|
14
|
+
Telemetry = "Telemetry",
|
|
15
|
+
PageNavigation = "PageNavigation",
|
|
16
|
+
AccessRestrictedContentAccessed = "AccessRestrictedContentAccessed",
|
|
17
|
+
PageSlow = "PageSlow",
|
|
18
|
+
ErrorOccurred = "ErrorOccurred",
|
|
19
|
+
WidgetResolveError = "WidgetResolveError"
|
|
20
|
+
}
|
|
21
|
+
enum WsEventLogLevel {
|
|
22
|
+
Warn = "Warn",
|
|
23
|
+
Error = "Error",
|
|
24
|
+
Info = "Info",
|
|
25
|
+
Log = "Log",
|
|
26
|
+
Trace = "Trace"
|
|
27
|
+
}
|
|
28
|
+
enum WsAuditTypes {
|
|
29
|
+
Created = "Created",
|
|
30
|
+
Updated = "Updated",
|
|
31
|
+
Deleted = "Deleted"
|
|
32
|
+
}
|
|
33
|
+
enum WsTimeSpentType {
|
|
34
|
+
Page = "Page",
|
|
35
|
+
Player = "Player"
|
|
36
|
+
}
|
|
37
|
+
enum WsTimeSpentMode {
|
|
38
|
+
Play = "Play",
|
|
39
|
+
View = "View"
|
|
40
|
+
}
|
|
41
|
+
enum externalTelemetrypdata {
|
|
42
|
+
RBCP = "rbcp-web-ui"
|
|
43
|
+
}
|
|
44
|
+
interface IWsEvents<T> {
|
|
45
|
+
eventType: WsEventType;
|
|
46
|
+
eventLogLevel: WsEventLogLevel;
|
|
47
|
+
from: IWsEventsFromWidget | IWsEventsFromPage | string;
|
|
48
|
+
to: string;
|
|
49
|
+
data: T;
|
|
50
|
+
passThroughData?: any;
|
|
51
|
+
pageContext?: any;
|
|
52
|
+
}
|
|
53
|
+
enum EnumTelemetrySubType {
|
|
54
|
+
Init = "Init",
|
|
55
|
+
Interact = "Interact",
|
|
56
|
+
Loaded = "Loaded",
|
|
57
|
+
Unloaded = "Unloaded",
|
|
58
|
+
StateChange = "StateChange",
|
|
59
|
+
HeartBeat = "HeartBeat",
|
|
60
|
+
Search = "Search",
|
|
61
|
+
Feedback = "Feedback",
|
|
62
|
+
Impression = "Impression"
|
|
63
|
+
}
|
|
64
|
+
interface ITelemetryPageContext {
|
|
65
|
+
pageId?: string;
|
|
66
|
+
module?: string;
|
|
67
|
+
pageIdExt?: string;
|
|
68
|
+
}
|
|
69
|
+
interface ITelemetryEdata {
|
|
70
|
+
type: string;
|
|
71
|
+
subType?: string;
|
|
72
|
+
id?: string;
|
|
73
|
+
pageid?: string;
|
|
74
|
+
}
|
|
75
|
+
interface ITelemetryTabData {
|
|
76
|
+
label: string;
|
|
77
|
+
index: number;
|
|
78
|
+
}
|
|
79
|
+
interface IWsEventTelemetry {
|
|
80
|
+
eventSubType: EnumTelemetrySubType;
|
|
81
|
+
pageContext?: ITelemetryPageContext;
|
|
82
|
+
}
|
|
83
|
+
enum EnumTelemetryPdfActivity {
|
|
84
|
+
PAGE_CHANGED = "PAGE_CHANGED",
|
|
85
|
+
FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
|
|
86
|
+
FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
|
|
87
|
+
ZOOM_CHANGE = "ZOOM_CHANGE",
|
|
88
|
+
NONE = "NONE"
|
|
89
|
+
}
|
|
90
|
+
interface IWsEventTelemetryPdfData extends IWsEventTelemetry {
|
|
91
|
+
activityType: EnumTelemetryPdfActivity;
|
|
92
|
+
currentPage: number;
|
|
93
|
+
totalPage: number;
|
|
94
|
+
activityStartedAt: Date | null;
|
|
95
|
+
object: any;
|
|
96
|
+
}
|
|
97
|
+
type WsEventTelemetryPDF = IWsEvents<IWsEventTelemetryPdfData>;
|
|
98
|
+
interface IWsEventTelemetryInteract extends IWsEventTelemetry {
|
|
99
|
+
edata: ITelemetryEdata;
|
|
100
|
+
object: any;
|
|
101
|
+
pageContext?: ITelemetryPageContext;
|
|
102
|
+
}
|
|
103
|
+
interface IWsEventTelemetryFeedback extends IWsEventTelemetry {
|
|
104
|
+
edata: ITelemetryEdata;
|
|
105
|
+
object: any;
|
|
106
|
+
pageContext?: ITelemetryPageContext;
|
|
107
|
+
}
|
|
108
|
+
interface IWsEventTelemetryImpression extends IWsEventTelemetry {
|
|
109
|
+
edata?: ITelemetryEdata;
|
|
110
|
+
object?: any;
|
|
111
|
+
pageContext?: ITelemetryPageContext;
|
|
112
|
+
}
|
|
113
|
+
interface IWsEventTelemetrySearch extends IWsEventTelemetry {
|
|
114
|
+
type: string;
|
|
115
|
+
subType?: string;
|
|
116
|
+
query?: string;
|
|
117
|
+
filters?: string;
|
|
118
|
+
size?: number;
|
|
119
|
+
locale?: any;
|
|
120
|
+
}
|
|
121
|
+
interface IWsEventTelemetryHeartBeat extends IWsEventTelemetry {
|
|
122
|
+
type: string;
|
|
123
|
+
id: string;
|
|
124
|
+
}
|
|
125
|
+
type WsEventTelemetryInteract = IWsEvents<IWsEventTelemetryInteract>;
|
|
126
|
+
type WsEventTelemetryFeedback = IWsEvents<IWsEventTelemetryFeedback>;
|
|
127
|
+
type WsEventTelemetryImpression = IWsEvents<IWsEventTelemetryImpression>;
|
|
128
|
+
type WsEventTelemetrySearch = IWsEvents<IWsEventTelemetrySearch>;
|
|
129
|
+
type WsEventTelemetryHeartBeat = IWsEvents<IWsEventTelemetryHeartBeat>;
|
|
130
|
+
enum EnumTelemetryMediaActivity {
|
|
131
|
+
PLAYED = "PLAYED",
|
|
132
|
+
PAUSED = "PAUSED",
|
|
133
|
+
SEEKED = "SEEKED",
|
|
134
|
+
ENDED = "ENDED",
|
|
135
|
+
VOLUME_CHANGE = "VOLUME_CHANGE",
|
|
136
|
+
MUTE = "MUTE",
|
|
137
|
+
UNMUTE = "UNMUTE",
|
|
138
|
+
PLAYBACK_SPEED_CHANGE = "PLAYBACK_SPEED_CHANGE",
|
|
139
|
+
FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
|
|
140
|
+
FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
|
|
141
|
+
PICTURE_IN_PICTURE_ACTIVATED = "PICTURE_IN_PICTURE_ACTIVATED",
|
|
142
|
+
PICTURE_IN_PICTURE_DEACTIVATED = "PICTURE_IN_PICTURE_DEACTIVATED",
|
|
143
|
+
NONE = "NONE"
|
|
144
|
+
}
|
|
145
|
+
enum EnumTelemetryMediaState {
|
|
146
|
+
PLAYING = "PLAYING",
|
|
147
|
+
PAUSED = "PAUSED",
|
|
148
|
+
ENDED = "ENDED",
|
|
149
|
+
BUFFERING = "BUFFERING",
|
|
150
|
+
NOT_STARTED = "NOT_STARTED"
|
|
151
|
+
}
|
|
152
|
+
interface IWsEventTelemetryMediaData extends IWsEventTelemetry {
|
|
153
|
+
currentState: EnumTelemetryMediaState;
|
|
154
|
+
activityType: EnumTelemetryMediaActivity;
|
|
155
|
+
currentTime: number | null;
|
|
156
|
+
totalTime: number | null;
|
|
157
|
+
maxedSeekedTime: number;
|
|
158
|
+
activityStartedAt?: Date | null;
|
|
159
|
+
}
|
|
160
|
+
type WsEventTelemetryMedia = IWsEvents<IWsEventTelemetryMediaData>;
|
|
161
|
+
enum EnumTelemetrymodules {
|
|
162
|
+
CONTENT = "content",
|
|
163
|
+
FEEDBACK = "feedback",
|
|
164
|
+
COURSE = "course",
|
|
165
|
+
PROGRAM = "program",
|
|
166
|
+
EXPLORE = "explore",
|
|
167
|
+
LEARN = "learn",
|
|
168
|
+
HOME = "home",
|
|
169
|
+
DASHBOARD = "dashboard",
|
|
170
|
+
SEARCH = "search",
|
|
171
|
+
DISCUSS = "discuss",
|
|
172
|
+
COMPETENCY = "competency",
|
|
173
|
+
EVENTS = "events",
|
|
174
|
+
CAREER = "career",
|
|
175
|
+
PROFILE = "profile",
|
|
176
|
+
NETWORK = "network",
|
|
177
|
+
SUPPORT = "support"
|
|
178
|
+
}
|
|
179
|
+
enum EnumInteractTypes {
|
|
180
|
+
CLICK = "click"
|
|
181
|
+
}
|
|
182
|
+
enum EnumInteractSubTypes {
|
|
183
|
+
COURSE_TAB = "course-tab",
|
|
184
|
+
CAREER_TAB = "career-tab",
|
|
185
|
+
NETWORK_TAB = "network-tab",
|
|
186
|
+
COMPETENCY_TAB = "competency-tab",
|
|
187
|
+
PROFILE_EDIT_TAB = "profile-edit-tab",
|
|
188
|
+
DISCUSS_TAB = "discuss-tab",
|
|
189
|
+
EVENTS_TAB = "events-tab",
|
|
190
|
+
SIDE_MENU = "side-menu"
|
|
191
|
+
}
|
|
192
|
+
}
|