@sunbird-cb/utils 1.0.16 → 1.0.18-ang-9-12
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 +2196 -2928
- package/bundles/sunbird-cb-utils.umd.js.map +1 -1
- package/esm2015/lib/components/image-crop/image-crop.component.js +38 -67
- package/esm2015/lib/components/image-crop/image-crop.module.js +52 -21
- package/esm2015/lib/constants/features.enum.js +555 -555
- package/esm2015/lib/constants/instances.enum.js +5 -5
- package/esm2015/lib/constants/misc.constants.js +2 -1
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +34 -34
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +17 -10
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +20 -18
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +17 -10
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +18 -24
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +17 -10
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +17 -23
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +17 -10
- package/esm2015/lib/directives/navigation/navigation.directive.js +22 -18
- package/esm2015/lib/directives/navigation/navigation.module.js +17 -10
- package/esm2015/lib/directives/permission/permission.directive.js +10 -7
- package/esm2015/lib/directives/permission/permission.module.js +17 -10
- package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +4 -4
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +33 -32
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +29 -14
- package/esm2015/lib/helpers/logout/logout.component.js +18 -27
- package/esm2015/lib/helpers/logout/logout.module.js +25 -13
- package/esm2015/lib/models/contentRating.model.js +2 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +13 -8
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +10 -12
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +17 -10
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +10 -17
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +17 -10
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +12 -8
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +17 -10
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +14 -10
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +17 -10
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +17 -10
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +17 -10
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +13 -9
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +10 -12
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +17 -10
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +10 -9
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +17 -10
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +17 -10
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +17 -10
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +11 -13
- package/esm2015/lib/resolvers/explore-detail.resolver.js +19 -32
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +14 -19
- package/esm2015/lib/resolvers/page.constant.js +1 -1
- package/esm2015/lib/resolvers/page.model.js +2 -47
- package/esm2015/lib/resolvers/page.resolver.js +22 -30
- package/esm2015/lib/resolvers/resolver.model.js +2 -6
- package/esm2015/lib/services/auth-keycloak.service.js +44 -63
- package/esm2015/lib/services/auth-microsoft.service.js +16 -28
- package/esm2015/lib/services/card-content.model.js +1 -22
- package/esm2015/lib/services/configurations.model.js +2 -498
- package/esm2015/lib/services/configurations.service.js +14 -52
- package/esm2015/lib/services/content-strip-multiple.model.js +2 -75
- package/esm2015/lib/services/event.model.js +1 -109
- package/esm2015/lib/services/event.service.js +14 -27
- package/esm2015/lib/services/logger.service.js +12 -22
- package/esm2015/lib/services/ms-office.model.js +2 -8
- package/esm2015/lib/services/subapplication-respond.service.js +15 -41
- package/esm2015/lib/services/telemetry.service.js +58 -73
- package/esm2015/lib/services/user-preference.model.js +2 -38
- package/esm2015/lib/services/user-preference.service.js +18 -26
- package/esm2015/lib/services/utility.service.js +17 -40
- package/esm2015/lib/services/value.service.js +12 -18
- package/esm2015/lib/services/widget-content.model.js +1 -236
- package/esm2015/lib/services/widget-content.service.js +22 -32
- package/esm2015/lib/services/widget-resolver.model.js +2 -57
- package/esm2015/lib/services/widget-search.model.js +2 -126
- package/esm2015/public-api.js +74 -68
- package/esm2015/sunbird-cb-utils.js +2 -8
- package/fesm2015/sunbird-cb-utils.js +1548 -2543
- package/fesm2015/sunbird-cb-utils.js.map +1 -1
- package/lib/components/image-crop/image-crop.component.d.ts +3 -0
- package/lib/components/image-crop/image-crop.module.d.ts +14 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +6 -3
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +6 -0
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +3 -0
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +6 -0
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +3 -0
- package/lib/directives/image-responsive/image-responsive.module.d.ts +6 -0
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +3 -0
- package/lib/directives/in-view-port/in-view-port.module.d.ts +6 -0
- package/lib/directives/navigation/navigation.directive.d.ts +3 -0
- package/lib/directives/navigation/navigation.module.d.ts +6 -0
- package/lib/directives/permission/permission.directive.d.ts +3 -0
- package/lib/directives/permission/permission.module.d.ts +6 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +3 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +9 -0
- package/lib/helpers/logout/logout.component.d.ts +5 -2
- package/lib/helpers/logout/logout.module.d.ts +8 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +6 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +3 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +6 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +3 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +6 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +3 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +6 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +3 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +6 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +3 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +6 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +3 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +6 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +3 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +6 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +7 -4
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +6 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +3 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +6 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +3 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +6 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +3 -0
- package/lib/resolvers/explore-detail.resolver.d.ts +3 -0
- package/lib/resolvers/marketing-offering.resolve.d.ts +3 -0
- package/lib/resolvers/page.model.d.ts +1 -1
- package/lib/resolvers/page.resolver.d.ts +3 -0
- package/lib/services/auth-keycloak.service.d.ts +13 -12
- package/lib/services/auth-microsoft.service.d.ts +5 -2
- package/lib/services/configurations.model.d.ts +25 -23
- package/lib/services/configurations.service.d.ts +7 -0
- package/lib/services/content-strip-multiple.model.d.ts +7 -6
- package/lib/services/event.model.d.ts +1 -1
- package/lib/services/event.service.d.ts +3 -0
- package/lib/services/logger.service.d.ts +7 -4
- package/lib/services/subapplication-respond.service.d.ts +3 -0
- package/lib/services/telemetry.service.d.ts +5 -2
- package/lib/services/user-preference.service.d.ts +3 -0
- package/lib/services/utility.service.d.ts +10 -7
- package/lib/services/value.service.d.ts +3 -0
- package/lib/services/widget-content.model.d.ts +20 -19
- package/lib/services/widget-content.service.d.ts +3 -0
- package/package.json +14 -18
- package/public-api.d.ts +6 -0
- package/sunbird-cb-utils.d.ts +1 -6
- package/bundles/sunbird-cb-utils.umd.min.js +0 -16
- package/bundles/sunbird-cb-utils.umd.min.js.map +0 -1
- package/esm5/lib/components/image-crop/image-crop.component.js +0 -200
- package/esm5/lib/components/image-crop/image-crop.module.js +0 -31
- package/esm5/lib/constants/features.enum.js +0 -555
- package/esm5/lib/constants/instances.enum.js +0 -5
- package/esm5/lib/constants/misc.constants.js +0 -1
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +0 -105
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +0 -19
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +0 -40
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +0 -19
- package/esm5/lib/directives/image-responsive/image-responsive.directive.js +0 -95
- package/esm5/lib/directives/image-responsive/image-responsive.module.js +0 -19
- package/esm5/lib/directives/in-view-port/in-view-port.directive.js +0 -73
- package/esm5/lib/directives/in-view-port/in-view-port.module.js +0 -19
- package/esm5/lib/directives/navigation/navigation.directive.js +0 -41
- package/esm5/lib/directives/navigation/navigation.module.js +0 -19
- package/esm5/lib/directives/permission/permission.directive.js +0 -14
- package/esm5/lib/directives/permission/permission.module.js +0 -19
- package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +0 -9
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +0 -103
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +0 -23
- package/esm5/lib/helpers/logout/logout.component.js +0 -63
- package/esm5/lib/helpers/logout/logout.module.js +0 -22
- package/esm5/lib/models/contentRating.model.js +0 -12
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +0 -17
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +0 -63
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +0 -19
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +0 -37
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +0 -19
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +0 -45
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +0 -19
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +0 -64
- package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +0 -19
- package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +0 -20
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +0 -19
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +0 -38
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +0 -19
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +0 -16
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +0 -19
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +0 -30
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +0 -19
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +0 -21
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +0 -19
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +0 -35
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +0 -19
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +0 -18
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +0 -19
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +0 -34
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +0 -19
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +0 -21
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +0 -19
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +0 -38
- package/esm5/lib/resolvers/explore-detail.resolver.js +0 -93
- package/esm5/lib/resolvers/marketing-offering.resolve.js +0 -43
- package/esm5/lib/resolvers/page.constant.js +0 -4
- package/esm5/lib/resolvers/page.model.js +0 -47
- package/esm5/lib/resolvers/page.resolver.js +0 -98
- package/esm5/lib/resolvers/resolver.model.js +0 -6
- package/esm5/lib/services/auth-keycloak.service.js +0 -322
- package/esm5/lib/services/auth-microsoft.service.js +0 -251
- package/esm5/lib/services/card-content.model.js +0 -32
- package/esm5/lib/services/configurations.model.js +0 -498
- package/esm5/lib/services/configurations.service.js +0 -105
- package/esm5/lib/services/content-strip-multiple.model.js +0 -75
- package/esm5/lib/services/event.model.js +0 -229
- package/esm5/lib/services/event.service.js +0 -216
- package/esm5/lib/services/logger.service.js +0 -73
- package/esm5/lib/services/ms-office.model.js +0 -8
- package/esm5/lib/services/subapplication-respond.service.js +0 -230
- package/esm5/lib/services/telemetry.service.js +0 -484
- package/esm5/lib/services/user-preference.model.js +0 -38
- package/esm5/lib/services/user-preference.service.js +0 -109
- package/esm5/lib/services/utility.service.js +0 -178
- package/esm5/lib/services/value.service.js +0 -33
- package/esm5/lib/services/widget-content.model.js +0 -342
- package/esm5/lib/services/widget-content.service.js +0 -214
- package/esm5/lib/services/widget-resolver.model.js +0 -57
- package/esm5/lib/services/widget-search.model.js +0 -126
- package/esm5/public-api.js +0 -68
- package/esm5/sunbird-cb-utils.js +0 -8
- package/fesm5/sunbird-cb-utils.js +0 -5590
- package/fesm5/sunbird-cb-utils.js.map +0 -1
- package/sunbird-cb-utils.metadata.json +0 -1
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { KeycloakService } from 'keycloak-angular';
|
|
3
2
|
import { AuthMicrosoftService } from './auth-microsoft.service';
|
|
4
3
|
import { ConfigurationsService } from './configurations.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AuthKeycloakService {
|
|
6
|
-
private http;
|
|
7
6
|
private configSvc;
|
|
8
7
|
private keycloakSvc;
|
|
9
8
|
private msAuthSvc;
|
|
10
9
|
private loginChangeSubject;
|
|
11
|
-
constructor(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
constructor(configSvc: ConfigurationsService, keycloakSvc: KeycloakService, msAuthSvc: AuthMicrosoftService);
|
|
11
|
+
get isLoggedIn$(): import("rxjs").Observable<boolean>;
|
|
12
|
+
get isLoggedIn(): Promise<boolean>;
|
|
13
|
+
get isAuthenticated(): boolean | undefined;
|
|
14
|
+
get token(): string | undefined;
|
|
15
|
+
get sessionId(): string | undefined;
|
|
16
|
+
get userId(): string | undefined;
|
|
17
|
+
get userEmail(): string | undefined;
|
|
18
|
+
get userName(): string | undefined;
|
|
20
19
|
initAuth(): Promise<boolean>;
|
|
21
20
|
login(idpHint?: 'E' | 'N' | 'S', redirectUrl?: string): Promise<void>;
|
|
22
21
|
register(redirectUrl?: string): Promise<void>;
|
|
@@ -26,5 +25,7 @@ export declare class AuthKeycloakService {
|
|
|
26
25
|
private setupGlobalAuthResponder;
|
|
27
26
|
private saveKeycloakConfig;
|
|
28
27
|
private getSavedKcConfig;
|
|
29
|
-
private
|
|
28
|
+
private get defaultRedirectUrl();
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthKeycloakService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthKeycloakService>;
|
|
30
31
|
}
|
|
@@ -2,6 +2,7 @@ import { LoggerService } from './logger.service';
|
|
|
2
2
|
import { NsInstanceConfig } from './configurations.model';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import { IWsMsTokenModelResponse } from './ms-office.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AuthMicrosoftService {
|
|
6
7
|
private loggerSvc;
|
|
7
8
|
private http;
|
|
@@ -10,8 +11,8 @@ export declare class AuthMicrosoftService {
|
|
|
10
11
|
private code;
|
|
11
12
|
private msToken;
|
|
12
13
|
constructor(loggerSvc: LoggerService, http: HttpClient);
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
get isLogoutRequired(): boolean;
|
|
15
|
+
get loginUrl(): string | null;
|
|
15
16
|
logoutUrl(redirectUrl: string): string;
|
|
16
17
|
init(config: Pick<NsInstanceConfig.IConfig, 'microsoft'>): Promise<void>;
|
|
17
18
|
login(email: string): Promise<void>;
|
|
@@ -27,4 +28,6 @@ export declare class AuthMicrosoftService {
|
|
|
27
28
|
resource: string | undefined;
|
|
28
29
|
tokenType: string | undefined;
|
|
29
30
|
};
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthMicrosoftService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthMicrosoftService>;
|
|
30
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NsPage } from '../resolvers/page.model';
|
|
2
2
|
import { NsWidgetResolver } from './widget-resolver.model';
|
|
3
3
|
export declare namespace NsInstanceConfig {
|
|
4
|
-
interface IConfig {
|
|
4
|
+
export interface IConfig {
|
|
5
5
|
authoring: {
|
|
6
6
|
doUniqueCheck: boolean;
|
|
7
7
|
isMultiStepFlow: boolean;
|
|
@@ -62,39 +62,39 @@ export declare namespace NsInstanceConfig {
|
|
|
62
62
|
hubs: IHubs[];
|
|
63
63
|
courseContentPath?: string;
|
|
64
64
|
}
|
|
65
|
-
interface IForgotPassword {
|
|
65
|
+
export interface IForgotPassword {
|
|
66
66
|
local?: string;
|
|
67
67
|
enterprise?: string;
|
|
68
68
|
social?: string;
|
|
69
69
|
}
|
|
70
|
-
interface ISourceLogo {
|
|
70
|
+
export interface ISourceLogo {
|
|
71
71
|
sourceName?: string;
|
|
72
72
|
sourceId?: string;
|
|
73
73
|
logo?: string;
|
|
74
74
|
}
|
|
75
|
-
interface IPath {
|
|
75
|
+
export interface IPath {
|
|
76
76
|
[key: string]: string;
|
|
77
77
|
}
|
|
78
|
-
interface IHubs {
|
|
78
|
+
export interface IHubs {
|
|
79
79
|
active: boolean;
|
|
80
80
|
desc: string;
|
|
81
81
|
hubname: string;
|
|
82
82
|
icon: string;
|
|
83
83
|
path: string;
|
|
84
84
|
}
|
|
85
|
-
interface IIndexHtmlMeta {
|
|
85
|
+
export interface IIndexHtmlMeta {
|
|
86
86
|
description?: string;
|
|
87
87
|
openSearchUrl?: string;
|
|
88
88
|
webmanifest: string;
|
|
89
89
|
xIcon?: string;
|
|
90
90
|
pngIcon?: string;
|
|
91
91
|
}
|
|
92
|
-
interface IFontSize {
|
|
92
|
+
export interface IFontSize {
|
|
93
93
|
baseFontSize: string;
|
|
94
94
|
fontClass: string;
|
|
95
95
|
scale: number;
|
|
96
96
|
}
|
|
97
|
-
interface IKeycloak {
|
|
97
|
+
export interface IKeycloak {
|
|
98
98
|
defaultidpHint: 'E' | 'N' | 'S';
|
|
99
99
|
isLoginHidden: boolean;
|
|
100
100
|
bearerExcludedUrls: string[];
|
|
@@ -105,32 +105,32 @@ export declare namespace NsInstanceConfig {
|
|
|
105
105
|
changePasswordUrl?: string;
|
|
106
106
|
onLoad?: 'check-sso' | 'login-required';
|
|
107
107
|
}
|
|
108
|
-
interface ILocalsConfig {
|
|
108
|
+
export interface ILocalsConfig {
|
|
109
109
|
isAvailable: boolean;
|
|
110
110
|
isEnabled: boolean;
|
|
111
111
|
locals: string[];
|
|
112
112
|
path: string;
|
|
113
113
|
isRTL: boolean;
|
|
114
114
|
}
|
|
115
|
-
interface IMicrosoft {
|
|
115
|
+
export interface IMicrosoft {
|
|
116
116
|
clientId: string;
|
|
117
117
|
defaultEmailId: string;
|
|
118
118
|
tenant: string;
|
|
119
119
|
validEmailExtensions: string[];
|
|
120
120
|
isConfigured: boolean;
|
|
121
121
|
}
|
|
122
|
-
interface ITheme {
|
|
122
|
+
export interface ITheme {
|
|
123
123
|
color: IThemeColor;
|
|
124
124
|
themeFile: string;
|
|
125
125
|
themeClass: string;
|
|
126
126
|
themeName: string;
|
|
127
127
|
}
|
|
128
|
-
interface IThemeColor {
|
|
128
|
+
export interface IThemeColor {
|
|
129
129
|
accent: string;
|
|
130
130
|
primary: string;
|
|
131
131
|
warn: string;
|
|
132
132
|
}
|
|
133
|
-
interface ILogos {
|
|
133
|
+
export interface ILogos {
|
|
134
134
|
app: string;
|
|
135
135
|
appTransparent: string;
|
|
136
136
|
aboutFooter: string;
|
|
@@ -146,15 +146,15 @@ export declare namespace NsInstanceConfig {
|
|
|
146
146
|
playListLogo?: string;
|
|
147
147
|
thumpsUp?: string;
|
|
148
148
|
}
|
|
149
|
-
interface IMailIds {
|
|
149
|
+
export interface IMailIds {
|
|
150
150
|
contactUs: string;
|
|
151
151
|
default: string;
|
|
152
152
|
support: string;
|
|
153
153
|
}
|
|
154
|
-
interface IDetails {
|
|
154
|
+
export interface IDetails {
|
|
155
155
|
appName: string;
|
|
156
156
|
}
|
|
157
|
-
interface IPrimaryNavbarConfig {
|
|
157
|
+
export interface IPrimaryNavbarConfig {
|
|
158
158
|
mediumScreen: IPrimaryNavBarScreen;
|
|
159
159
|
smallScreen: IPrimaryNavBarScreen;
|
|
160
160
|
}
|
|
@@ -166,7 +166,7 @@ export declare namespace NsInstanceConfig {
|
|
|
166
166
|
type: 'widgetButton' | 'featureButton';
|
|
167
167
|
config: NsWidgetResolver.IRenderConfigWithAnyData | NsPage.INavLink;
|
|
168
168
|
}
|
|
169
|
-
interface ITelemetryConfig {
|
|
169
|
+
export interface ITelemetryConfig {
|
|
170
170
|
pdata: {
|
|
171
171
|
id: string;
|
|
172
172
|
ver: string;
|
|
@@ -186,6 +186,7 @@ export declare namespace NsInstanceConfig {
|
|
|
186
186
|
apislug: string;
|
|
187
187
|
sid: string;
|
|
188
188
|
}
|
|
189
|
+
export {};
|
|
189
190
|
}
|
|
190
191
|
export declare namespace NsAppsConfig {
|
|
191
192
|
type TIconType = 'mat-icon' | 'url';
|
|
@@ -231,7 +232,7 @@ export declare namespace NsAppsConfig {
|
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
export declare namespace NsUser {
|
|
234
|
-
interface IUserProfile {
|
|
235
|
+
export interface IUserProfile {
|
|
235
236
|
userId: string;
|
|
236
237
|
email?: string;
|
|
237
238
|
mobile?: string;
|
|
@@ -251,21 +252,21 @@ export declare namespace NsUser {
|
|
|
251
252
|
dealerCode?: null | string;
|
|
252
253
|
isManager?: boolean;
|
|
253
254
|
}
|
|
254
|
-
interface INodebbUserProfile {
|
|
255
|
+
export interface INodebbUserProfile {
|
|
255
256
|
username: string;
|
|
256
257
|
email: string;
|
|
257
258
|
}
|
|
258
|
-
interface IUserPidProfile {
|
|
259
|
+
export interface IUserPidProfile {
|
|
259
260
|
kid_updated: boolean;
|
|
260
261
|
user: IUser;
|
|
261
262
|
}
|
|
262
|
-
interface IUserPidProfileV2 {
|
|
263
|
+
export interface IUserPidProfileV2 {
|
|
263
264
|
kid_updated: boolean;
|
|
264
265
|
result: {
|
|
265
266
|
response: IUserV2;
|
|
266
267
|
};
|
|
267
268
|
}
|
|
268
|
-
interface IUserPidProfileVer2 {
|
|
269
|
+
export interface IUserPidProfileVer2 {
|
|
269
270
|
result: {
|
|
270
271
|
UserProfile: IUserVer2;
|
|
271
272
|
};
|
|
@@ -473,7 +474,8 @@ export declare namespace NsUser {
|
|
|
473
474
|
'residenceAddress': string;
|
|
474
475
|
'result': any;
|
|
475
476
|
}
|
|
476
|
-
interface ILanguages {
|
|
477
|
+
export interface ILanguages {
|
|
477
478
|
name: string;
|
|
478
479
|
}
|
|
480
|
+
export {};
|
|
479
481
|
}
|
|
@@ -2,6 +2,7 @@ import { BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
|
2
2
|
import { NsPage } from '../resolvers/page.model';
|
|
3
3
|
import { NsAppsConfig, NsInstanceConfig, NsUser } from './configurations.model';
|
|
4
4
|
import { IUserPreference } from './user-preference.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ConfigurationsService {
|
|
6
7
|
constructor();
|
|
7
8
|
appSetup: boolean;
|
|
@@ -26,6 +27,7 @@ export declare class ConfigurationsService {
|
|
|
26
27
|
userProfile: NsUser.IUserProfile | null;
|
|
27
28
|
userProfileV2: NsUser.IUserProfile | null;
|
|
28
29
|
unMappedUser: any;
|
|
30
|
+
orgReadData: any;
|
|
29
31
|
isAuthenticated: boolean;
|
|
30
32
|
isNewUser: boolean;
|
|
31
33
|
isActive: boolean;
|
|
@@ -46,4 +48,9 @@ export declare class ConfigurationsService {
|
|
|
46
48
|
primaryNavBar: Partial<NsPage.INavBackground>;
|
|
47
49
|
pageNavBar: Partial<NsPage.INavBackground>;
|
|
48
50
|
primaryNavBarConfig: NsInstanceConfig.IPrimaryNavbarConfig | null;
|
|
51
|
+
private updateOrgReadData;
|
|
52
|
+
updateOrgReadDataObservable: import("rxjs").Observable<string>;
|
|
53
|
+
updateOrgData(id: string): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationsService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationsService>;
|
|
49
56
|
}
|
|
@@ -3,14 +3,14 @@ import { NsContent } from './widget-content.model';
|
|
|
3
3
|
import { NsCardContent } from './card-content.model';
|
|
4
4
|
import { NsWidgetResolver } from './widget-resolver.model';
|
|
5
5
|
export declare namespace NsContentStripMultiple {
|
|
6
|
-
interface IContentStripMultiple {
|
|
6
|
+
export interface IContentStripMultiple {
|
|
7
7
|
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
8
8
|
loader?: boolean;
|
|
9
9
|
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
10
10
|
strips: IContentStripUnit[];
|
|
11
11
|
isChannelStrip?: boolean;
|
|
12
12
|
}
|
|
13
|
-
interface IContentStripUnit {
|
|
13
|
+
export interface IContentStripUnit {
|
|
14
14
|
key: string;
|
|
15
15
|
title: string;
|
|
16
16
|
name?: string;
|
|
@@ -37,7 +37,7 @@ export declare namespace NsContentStripMultiple {
|
|
|
37
37
|
refreshEvent?: Record<'eventType' | 'from', string>;
|
|
38
38
|
fetchLikes?: boolean;
|
|
39
39
|
}
|
|
40
|
-
interface IStripRequestApi {
|
|
40
|
+
export interface IStripRequestApi {
|
|
41
41
|
path: string;
|
|
42
42
|
queryParams?: {
|
|
43
43
|
pageNo?: number;
|
|
@@ -46,7 +46,7 @@ export declare namespace NsContentStripMultiple {
|
|
|
46
46
|
sourceFields?: string;
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
interface IStripInfo {
|
|
49
|
+
export interface IStripInfo {
|
|
50
50
|
mode: 'below' | 'popup' | 'modal';
|
|
51
51
|
visibilityMode?: 'hidden' | 'visible';
|
|
52
52
|
icon: {
|
|
@@ -63,17 +63,18 @@ export declare namespace NsContentStripMultiple {
|
|
|
63
63
|
deletedMode?: 'greyOut' | 'hide';
|
|
64
64
|
contentTags?: IContentTags;
|
|
65
65
|
}
|
|
66
|
-
interface IContentTags {
|
|
66
|
+
export interface IContentTags {
|
|
67
67
|
daysSpan?: number;
|
|
68
68
|
excludeContentType?: NsContent.EContentTypes[];
|
|
69
69
|
excludeMimeType?: string[];
|
|
70
70
|
tag: string;
|
|
71
71
|
criteriaField: string;
|
|
72
72
|
}
|
|
73
|
-
interface IContentStripResponseApi {
|
|
73
|
+
export interface IContentStripResponseApi {
|
|
74
74
|
contents: NsContent.IContent[];
|
|
75
75
|
hasMore?: boolean;
|
|
76
76
|
pageState?: string;
|
|
77
77
|
totalHits?: number;
|
|
78
78
|
}
|
|
79
|
+
export {};
|
|
79
80
|
}
|
|
@@ -92,7 +92,7 @@ export declare namespace WsEvents {
|
|
|
92
92
|
currentPage: number;
|
|
93
93
|
totalPage: number;
|
|
94
94
|
activityStartedAt: Date | null;
|
|
95
|
-
object
|
|
95
|
+
object?: any;
|
|
96
96
|
}
|
|
97
97
|
type WsEventTelemetryPDF = IWsEvents<IWsEventTelemetryPdfData>;
|
|
98
98
|
interface IWsEventTelemetryInteract extends IWsEventTelemetry {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WsEvents } from './event.model';
|
|
2
2
|
import { UtilityService } from './utility.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class EventService {
|
|
4
5
|
private utilitySvc;
|
|
5
6
|
todaysEvents: any;
|
|
@@ -27,4 +28,6 @@ export declare class EventService {
|
|
|
27
28
|
compareDate(startDate: any): boolean;
|
|
28
29
|
customDateFormat(date: any, time: any): string;
|
|
29
30
|
setEventListData(eventObj: any): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
30
33
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConfigurationsService } from './configurations.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class LoggerService {
|
|
3
4
|
private configSvc;
|
|
4
5
|
constructor(configSvc: ConfigurationsService);
|
|
@@ -7,9 +8,11 @@ export declare class LoggerService {
|
|
|
7
8
|
private consoleLog;
|
|
8
9
|
private consoleWarn;
|
|
9
10
|
private noConsole;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
get error(): (...data: any[]) => void;
|
|
12
|
+
get info(): (...data: any[]) => void;
|
|
13
|
+
get log(): (...data: any[]) => void;
|
|
14
|
+
get warn(): (...data: any[]) => void;
|
|
14
15
|
removeConsoleAccess(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
15
18
|
}
|
|
@@ -4,6 +4,7 @@ import { AuthKeycloakService } from './auth-keycloak.service';
|
|
|
4
4
|
import { ConfigurationsService } from './configurations.service';
|
|
5
5
|
import { EventService } from './event.service';
|
|
6
6
|
import { TelemetryService } from './telemetry.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class SubapplicationRespondService {
|
|
8
9
|
private configSvc;
|
|
9
10
|
private contentSvc;
|
|
@@ -22,4 +23,6 @@ export declare class SubapplicationRespondService {
|
|
|
22
23
|
telemetryEvents(tData: any): void;
|
|
23
24
|
unsubscribeResponse(): void;
|
|
24
25
|
changeContextrespond(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubapplicationRespondService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SubapplicationRespondService>;
|
|
25
28
|
}
|
|
@@ -3,6 +3,7 @@ import { ConfigurationsService } from './configurations.service';
|
|
|
3
3
|
import { WsEvents } from './event.model';
|
|
4
4
|
import { EventService } from './event.service';
|
|
5
5
|
import { LoggerService } from './logger.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class TelemetryService {
|
|
7
8
|
private configSvc;
|
|
8
9
|
private eventsSvc;
|
|
@@ -14,8 +15,8 @@ export declare class TelemetryService {
|
|
|
14
15
|
environment: any;
|
|
15
16
|
externalApps: any;
|
|
16
17
|
constructor(environment: any, configSvc: ConfigurationsService, eventsSvc: EventService, logger: LoggerService);
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
get getTelemetrySessionId(): string;
|
|
19
|
+
get rootOrgId(): string;
|
|
19
20
|
start(edata: any, data: any, pageContext?: WsEvents.ITelemetryPageContext): void;
|
|
20
21
|
end(edata: any, data: any, pageContext?: WsEvents.ITelemetryPageContext): void;
|
|
21
22
|
audit(type: string, props: string, data: any): void;
|
|
@@ -39,4 +40,6 @@ export declare class TelemetryService {
|
|
|
39
40
|
module: string;
|
|
40
41
|
};
|
|
41
42
|
extractContentIdFromUrlParts(urlParts: string[]): string | null;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TelemetryService, never>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TelemetryService>;
|
|
42
45
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { IUserPreference } from './user-preference.model';
|
|
3
3
|
import { ConfigurationsService } from './configurations.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UserPreferenceService {
|
|
5
6
|
private http;
|
|
6
7
|
private configurationSvc;
|
|
@@ -8,4 +9,6 @@ export declare class UserPreferenceService {
|
|
|
8
9
|
initialize(): void;
|
|
9
10
|
fetchUserPreference(): Promise<IUserPreference>;
|
|
10
11
|
saveUserPreference(changedUserPref?: Partial<IUserPreference>): Promise<boolean>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserPreferenceService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserPreferenceService>;
|
|
11
14
|
}
|
|
@@ -3,6 +3,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { WsEvents } from './event.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
interface IRecursiveData {
|
|
7
8
|
identifier: string;
|
|
8
9
|
children: null | IRecursiveData[];
|
|
@@ -15,17 +16,19 @@ export declare class UtilityService {
|
|
|
15
16
|
currentRouteData: any[];
|
|
16
17
|
constructor(http: HttpClient, platform: Platform, router: Router, route: ActivatedRoute);
|
|
17
18
|
private getChildRouteData;
|
|
18
|
-
|
|
19
|
+
get randomId(): number;
|
|
19
20
|
getJson<T>(url: string): Observable<T>;
|
|
20
21
|
getLeafNodes<T extends IRecursiveData>(node: T, nodes: T[]): T[];
|
|
21
22
|
getPath<T extends IRecursiveData>(node: T, id: string): T[];
|
|
22
23
|
private hasPath;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
get isMobile(): boolean;
|
|
25
|
+
get isIos(): boolean;
|
|
26
|
+
get isAndroid(): boolean;
|
|
27
|
+
get isAndroidApp(): boolean;
|
|
28
|
+
get iOsAppRef(): any;
|
|
28
29
|
setRouteData(data: any): void;
|
|
29
|
-
|
|
30
|
+
get routeData(): WsEvents.ITelemetryPageContext;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityService>;
|
|
30
33
|
}
|
|
31
34
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ValueService {
|
|
4
5
|
private breakpointObserver;
|
|
5
6
|
constructor(breakpointObserver: BreakpointObserver);
|
|
6
7
|
isXSmall$: Observable<boolean>;
|
|
7
8
|
isLtMedium$: Observable<boolean>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ValueService>;
|
|
8
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare namespace NsContent {
|
|
2
|
-
interface IContinueLearningData extends IContent {
|
|
2
|
+
export interface IContinueLearningData extends IContent {
|
|
3
3
|
continueData: any;
|
|
4
4
|
}
|
|
5
|
-
interface IContent {
|
|
5
|
+
export interface IContent {
|
|
6
6
|
platform?: any;
|
|
7
7
|
addedOn: string;
|
|
8
8
|
appIcon: string;
|
|
@@ -125,7 +125,7 @@ export declare namespace NsContent {
|
|
|
125
125
|
resumePage?: number;
|
|
126
126
|
[key: string]: any;
|
|
127
127
|
}
|
|
128
|
-
interface IContentMinimal {
|
|
128
|
+
export interface IContentMinimal {
|
|
129
129
|
appIcon: string;
|
|
130
130
|
artifactUrl: string;
|
|
131
131
|
complexityLevel: string;
|
|
@@ -145,17 +145,17 @@ export declare namespace NsContent {
|
|
|
145
145
|
resourceType?: string;
|
|
146
146
|
totalRating?: number;
|
|
147
147
|
}
|
|
148
|
-
interface ICollectionHierarchyResponse {
|
|
148
|
+
export interface ICollectionHierarchyResponse {
|
|
149
149
|
data: IContent;
|
|
150
150
|
hasMore: boolean;
|
|
151
151
|
totalContents: number;
|
|
152
152
|
}
|
|
153
|
-
interface IRelatedContentMeta {
|
|
153
|
+
export interface IRelatedContentMeta {
|
|
154
154
|
identifier: string;
|
|
155
155
|
name: string;
|
|
156
156
|
}
|
|
157
157
|
type TCertificationStatus = 'ongoing' | 'passed' | 'canAttempt' | 'cannotAttempt';
|
|
158
|
-
type TLearningMode = 'Self-Paced' | 'Instructor-Led' | 'Open' | 'Closed';
|
|
158
|
+
export type TLearningMode = 'Self-Paced' | 'Instructor-Led' | 'Open' | 'Closed';
|
|
159
159
|
interface IMarkAsCompleteProgress {
|
|
160
160
|
progressStatus: 'open' | 'started' | 'completed';
|
|
161
161
|
showMarkAsComplete: boolean;
|
|
@@ -208,28 +208,28 @@ export declare namespace NsContent {
|
|
|
208
208
|
skill: string;
|
|
209
209
|
name: string;
|
|
210
210
|
}
|
|
211
|
-
interface ICreator {
|
|
211
|
+
export interface ICreator {
|
|
212
212
|
id: string;
|
|
213
213
|
name: string;
|
|
214
214
|
email: string;
|
|
215
215
|
}
|
|
216
|
-
interface IContentTopic {
|
|
216
|
+
export interface IContentTopic {
|
|
217
217
|
identifier: string;
|
|
218
218
|
name: string;
|
|
219
219
|
}
|
|
220
|
-
interface IContact {
|
|
220
|
+
export interface IContact {
|
|
221
221
|
id: string;
|
|
222
222
|
name: string;
|
|
223
223
|
email: string;
|
|
224
224
|
}
|
|
225
|
-
interface IViewerContinueLearningRequest {
|
|
225
|
+
export interface IViewerContinueLearningRequest {
|
|
226
226
|
resourceId: string;
|
|
227
227
|
contextPathId: string;
|
|
228
228
|
data: string;
|
|
229
229
|
dateAccessed: number;
|
|
230
230
|
contextType?: string;
|
|
231
231
|
}
|
|
232
|
-
enum EContentTypes {
|
|
232
|
+
export enum EContentTypes {
|
|
233
233
|
PROGRAM = "Learning Path",
|
|
234
234
|
CHANNEL = "Channel",
|
|
235
235
|
COURSE = "Course",
|
|
@@ -239,13 +239,13 @@ export declare namespace NsContent {
|
|
|
239
239
|
MODULE = "Collection",
|
|
240
240
|
RESOURCE = "Resource"
|
|
241
241
|
}
|
|
242
|
-
enum EMiscPlayerSupportedCollectionTypes {
|
|
242
|
+
export enum EMiscPlayerSupportedCollectionTypes {
|
|
243
243
|
PLAYLIST = "Playlist"
|
|
244
244
|
}
|
|
245
|
-
const PLAYER_SUPPORTED_COLLECTION_TYPES: string[];
|
|
246
|
-
const KB_SUPPORTED_CONTENT_TYPES: EContentTypes[];
|
|
247
|
-
const PLAYLIST_SUPPORTED_CONTENT_TYPES: EContentTypes[];
|
|
248
|
-
enum EMimeTypes {
|
|
245
|
+
export const PLAYER_SUPPORTED_COLLECTION_TYPES: string[];
|
|
246
|
+
export const KB_SUPPORTED_CONTENT_TYPES: EContentTypes[];
|
|
247
|
+
export const PLAYLIST_SUPPORTED_CONTENT_TYPES: EContentTypes[];
|
|
248
|
+
export enum EMimeTypes {
|
|
249
249
|
COLLECTION = "application/vnd.ekstep.content-collection",
|
|
250
250
|
HTML = "application/html",
|
|
251
251
|
ILP_FP = "application/ilpfp",
|
|
@@ -271,7 +271,7 @@ export declare namespace NsContent {
|
|
|
271
271
|
PLAYLIST = "application/playlist",
|
|
272
272
|
UNKNOWN = "application/unknown"
|
|
273
273
|
}
|
|
274
|
-
enum EDisplayContentTypes {
|
|
274
|
+
export enum EDisplayContentTypes {
|
|
275
275
|
ASSESSMENT = "ASSESSMENT",
|
|
276
276
|
AUDIO = "AUDIO",
|
|
277
277
|
CERTIFICATION = "CERTIFICATION",
|
|
@@ -302,13 +302,14 @@ export declare namespace NsContent {
|
|
|
302
302
|
KNOWLEDGE_BOARD = "Knowledge Board",
|
|
303
303
|
LEARNING_JOURNEY = "Learning Journeys"
|
|
304
304
|
}
|
|
305
|
-
enum EFilterCategory {
|
|
305
|
+
export enum EFilterCategory {
|
|
306
306
|
ALL = "ALL",
|
|
307
307
|
LEARN = "LEARN",
|
|
308
308
|
PRACTICE = "PRACTICE",
|
|
309
309
|
ASSESS = "ASSESS"
|
|
310
310
|
}
|
|
311
|
-
enum ETagType {
|
|
311
|
+
export enum ETagType {
|
|
312
312
|
NEWLY_ADDED = "NEWLY ADDED"
|
|
313
313
|
}
|
|
314
|
+
export {};
|
|
314
315
|
}
|
|
@@ -5,6 +5,7 @@ import { ConfigurationsService } from './configurations.service';
|
|
|
5
5
|
import { NsContentStripMultiple } from './content-strip-multiple.model';
|
|
6
6
|
import { NsContent } from './widget-content.model';
|
|
7
7
|
import { NSSearch } from './widget-search.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class WidgetContentService {
|
|
9
10
|
private http;
|
|
10
11
|
private configSvc;
|
|
@@ -46,4 +47,6 @@ export declare class WidgetContentService {
|
|
|
46
47
|
registrationUrl?: string;
|
|
47
48
|
}>;
|
|
48
49
|
fetchConfig(url: string): Observable<any>;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetContentService, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WidgetContentService>;
|
|
49
52
|
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunbird-cb/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18-ang-9-12",
|
|
4
4
|
"main": "bundles/sunbird-cb-utils.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"tslib": "^
|
|
6
|
+
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/animations": "~
|
|
10
|
-
"@angular/cdk": "~
|
|
11
|
-
"@angular/common": "~
|
|
12
|
-
"@angular/compiler": "~
|
|
13
|
-
"@angular/core": "~
|
|
14
|
-
"@angular/forms": "~
|
|
15
|
-
"@angular/material": "^
|
|
16
|
-
"@angular/platform-browser": "~
|
|
17
|
-
"@angular/platform-browser-dynamic": "~
|
|
18
|
-
"@angular/router": "~
|
|
9
|
+
"@angular/animations": "~12.2.17",
|
|
10
|
+
"@angular/cdk": "~12.2.13",
|
|
11
|
+
"@angular/common": "~12.2.17",
|
|
12
|
+
"@angular/compiler": "~12.2.17",
|
|
13
|
+
"@angular/core": "~12.2.17",
|
|
14
|
+
"@angular/forms": "~12.2.17",
|
|
15
|
+
"@angular/material": "^12.2.13",
|
|
16
|
+
"@angular/platform-browser": "~12.2.17",
|
|
17
|
+
"@angular/platform-browser-dynamic": "~12.2.17",
|
|
18
|
+
"@angular/router": "~12.2.17",
|
|
19
19
|
"ngx-image-cropper": "^3.3.4",
|
|
20
20
|
"keycloak-angular": "^6.1.0",
|
|
21
21
|
"@types/lodash": "^4.14.168",
|
|
22
22
|
"moment": "^2.29.1",
|
|
23
23
|
"rxjs": "~6.5.2"
|
|
24
24
|
},
|
|
25
|
-
"
|
|
26
|
-
"module": "fesm5/sunbird-cb-utils.js",
|
|
25
|
+
"module": "fesm2015/sunbird-cb-utils.js",
|
|
27
26
|
"es2015": "fesm2015/sunbird-cb-utils.js",
|
|
28
|
-
"esm5": "esm5/sunbird-cb-utils.js",
|
|
29
27
|
"esm2015": "esm2015/sunbird-cb-utils.js",
|
|
30
|
-
"fesm5": "fesm5/sunbird-cb-utils.js",
|
|
31
28
|
"fesm2015": "fesm2015/sunbird-cb-utils.js",
|
|
32
29
|
"typings": "sunbird-cb-utils.d.ts",
|
|
33
|
-
"metadata": "sunbird-cb-utils.metadata.json",
|
|
34
30
|
"sideEffects": false
|
|
35
|
-
}
|
|
31
|
+
}
|