@sunbird-cb/consumption 0.0.1
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/README.md +24 -0
- package/bundles/sunbird-cb-consumption.umd.js +8116 -0
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -0
- package/bundles/sunbird-cb-consumption.umd.min.js +17 -0
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -0
- package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +209 -0
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +173 -0
- package/esm2015/lib/_common/cards/card-resource/card-resource.component.js +34 -0
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +141 -0
- package/esm2015/lib/_common/cards/cards.component.js +107 -0
- package/esm2015/lib/_common/cards/cards.module.js +47 -0
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +324 -0
- package/esm2015/lib/_common/competency-passbook/competency-passbook.module.js +27 -0
- package/esm2015/lib/_common/competency-passbook/competency-passbook.service.js +52 -0
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1594 -0
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +212 -0
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +69 -0
- package/esm2015/lib/_common/data-points/data-points.component.js +53 -0
- package/esm2015/lib/_common/data-points/data-points.module.js +19 -0
- package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.component.js +56 -0
- package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.module.js +18 -0
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +268 -0
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -0
- package/esm2015/lib/_common/pills/pills.component.js +49 -0
- package/esm2015/lib/_common/pills/pills.module.js +24 -0
- package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +40 -0
- package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +28 -0
- package/esm2015/lib/_common/sliders/sliders.component.js +184 -0
- package/esm2015/lib/_common/sliders/sliders.model.js +61 -0
- package/esm2015/lib/_common/sliders/sliders.module.js +50 -0
- package/esm2015/lib/_constants/misc.constants.js +5 -0
- package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.directive.js +52 -0
- package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.module.js +19 -0
- package/esm2015/lib/_directives/image-responsive/image-responsive.directive.js +127 -0
- package/esm2015/lib/_directives/image-responsive/image-responsive.module.js +19 -0
- package/esm2015/lib/_directives/navigation/navigation.directive.js +54 -0
- package/esm2015/lib/_directives/navigation/navigation.module.js +19 -0
- package/esm2015/lib/_models/card-content-v2.model.js +78 -0
- package/esm2015/lib/_models/card-content.model.js +69 -0
- package/esm2015/lib/_models/card-users.model.js +101 -0
- package/esm2015/lib/_models/content-strip-multiple.model.js +195 -0
- package/esm2015/lib/_models/event.js +45 -0
- package/esm2015/lib/_models/profile-v3.models.js +196 -0
- package/esm2015/lib/_models/widget-content.model.js +876 -0
- package/esm2015/lib/_models/widget-search.model.js +472 -0
- package/esm2015/lib/_models/widget-user.model.js +17 -0
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +19 -0
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +120 -0
- package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +19 -0
- package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +38 -0
- package/esm2015/lib/_services/common-methods.service.js +60 -0
- package/esm2015/lib/_services/configurations.service.js +243 -0
- package/esm2015/lib/_services/multilingual-translations.service.js +228 -0
- package/esm2015/lib/_services/viewer-route-util.js +125 -0
- package/esm2015/lib/_services/widget-content.service.js +818 -0
- package/esm2015/lib/_services/widget-user.service.js +439 -0
- package/esm2015/lib/consumption.component.js +26 -0
- package/esm2015/lib/consumption.config.js +12 -0
- package/esm2015/lib/consumption.module.js +26 -0
- package/esm2015/lib/consumption.service.js +18 -0
- package/esm2015/lib/registration-lib.config.js +21 -0
- package/esm2015/public-api.js +19 -0
- package/esm2015/sunbird-cb-consumption.js +41 -0
- package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +222 -0
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +182 -0
- package/esm5/lib/_common/cards/card-resource/card-resource.component.js +41 -0
- package/esm5/lib/_common/cards/card-user/card-user.component.js +147 -0
- package/esm5/lib/_common/cards/cards.component.js +127 -0
- package/esm5/lib/_common/cards/cards.module.js +51 -0
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +391 -0
- package/esm5/lib/_common/competency-passbook/competency-passbook.module.js +31 -0
- package/esm5/lib/_common/competency-passbook/competency-passbook.service.js +59 -0
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1861 -0
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +212 -0
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +73 -0
- package/esm5/lib/_common/data-points/data-points.component.js +62 -0
- package/esm5/lib/_common/data-points/data-points.module.js +23 -0
- package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.component.js +63 -0
- package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.module.js +22 -0
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +300 -0
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +27 -0
- package/esm5/lib/_common/pills/pills.component.js +58 -0
- package/esm5/lib/_common/pills/pills.module.js +28 -0
- package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +45 -0
- package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +32 -0
- package/esm5/lib/_common/sliders/sliders.component.js +211 -0
- package/esm5/lib/_common/sliders/sliders.model.js +61 -0
- package/esm5/lib/_common/sliders/sliders.module.js +67 -0
- package/esm5/lib/_constants/misc.constants.js +5 -0
- package/esm5/lib/_directives/default-thumbnail/default-thumbnail.directive.js +60 -0
- package/esm5/lib/_directives/default-thumbnail/default-thumbnail.module.js +23 -0
- package/esm5/lib/_directives/image-responsive/image-responsive.directive.js +137 -0
- package/esm5/lib/_directives/image-responsive/image-responsive.module.js +23 -0
- package/esm5/lib/_directives/navigation/navigation.directive.js +63 -0
- package/esm5/lib/_directives/navigation/navigation.module.js +23 -0
- package/esm5/lib/_models/card-content-v2.model.js +78 -0
- package/esm5/lib/_models/card-content.model.js +69 -0
- package/esm5/lib/_models/card-users.model.js +101 -0
- package/esm5/lib/_models/content-strip-multiple.model.js +195 -0
- package/esm5/lib/_models/event.js +45 -0
- package/esm5/lib/_models/profile-v3.models.js +196 -0
- package/esm5/lib/_models/widget-content.model.js +876 -0
- package/esm5/lib/_models/widget-search.model.js +472 -0
- package/esm5/lib/_models/widget-user.model.js +17 -0
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +23 -0
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +143 -0
- package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +23 -0
- package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +41 -0
- package/esm5/lib/_services/common-methods.service.js +73 -0
- package/esm5/lib/_services/configurations.service.js +257 -0
- package/esm5/lib/_services/multilingual-translations.service.js +256 -0
- package/esm5/lib/_services/viewer-route-util.js +127 -0
- package/esm5/lib/_services/widget-content.service.js +1062 -0
- package/esm5/lib/_services/widget-user.service.js +501 -0
- package/esm5/lib/consumption.component.js +28 -0
- package/esm5/lib/consumption.config.js +12 -0
- package/esm5/lib/consumption.module.js +30 -0
- package/esm5/lib/consumption.service.js +21 -0
- package/esm5/lib/registration-lib.config.js +21 -0
- package/esm5/public-api.js +19 -0
- package/esm5/sunbird-cb-consumption.js +41 -0
- package/fesm2015/sunbird-cb-consumption.js +6940 -0
- package/fesm2015/sunbird-cb-consumption.js.map +1 -0
- package/fesm5/sunbird-cb-consumption.js +7871 -0
- package/fesm5/sunbird-cb-consumption.js.map +1 -0
- package/lib/_common/cards/card-landscape/card-landscape.component.d.ts +35 -0
- package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +31 -0
- package/lib/_common/cards/card-resource/card-resource.component.d.ts +8 -0
- package/lib/_common/cards/card-user/card-user.component.d.ts +24 -0
- package/lib/_common/cards/cards.component.d.ts +20 -0
- package/lib/_common/cards/cards.module.d.ts +2 -0
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +36 -0
- package/lib/_common/competency-passbook/competency-passbook.module.d.ts +2 -0
- package/lib/_common/competency-passbook/competency-passbook.service.d.ts +8 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +174 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +131 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.d.ts +5 -0
- package/lib/_common/data-points/data-points.component.d.ts +9 -0
- package/lib/_common/data-points/data-points.module.d.ts +2 -0
- package/lib/_common/display-content-type-lib/display-content-type-lib.component.d.ts +11 -0
- package/lib/_common/display-content-type-lib/display-content-type-lib.module.d.ts +2 -0
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +31 -0
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -0
- package/lib/_common/pills/pills.component.d.ts +10 -0
- package/lib/_common/pills/pills.module.d.ts +2 -0
- package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.d.ts +8 -0
- package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.d.ts +2 -0
- package/lib/_common/sliders/sliders.component.d.ts +26 -0
- package/lib/_common/sliders/sliders.model.d.ts +34 -0
- package/lib/_common/sliders/sliders.module.d.ts +6 -0
- package/lib/_constants/misc.constants.d.ts +2 -0
- package/lib/_directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -0
- package/lib/_directives/default-thumbnail/default-thumbnail.module.d.ts +2 -0
- package/lib/_directives/image-responsive/image-responsive.directive.d.ts +17 -0
- package/lib/_directives/image-responsive/image-responsive.module.d.ts +2 -0
- package/lib/_directives/navigation/navigation.directive.d.ts +9 -0
- package/lib/_directives/navigation/navigation.module.d.ts +2 -0
- package/lib/_models/card-content-v2.model.d.ts +44 -0
- package/lib/_models/card-content.model.d.ts +41 -0
- package/lib/_models/card-users.model.d.ts +49 -0
- package/lib/_models/content-strip-multiple.model.d.ts +128 -0
- package/lib/_models/event.d.ts +18 -0
- package/lib/_models/profile-v3.models.d.ts +91 -0
- package/lib/_models/widget-content.model.d.ts +497 -0
- package/lib/_models/widget-search.model.d.ts +252 -0
- package/lib/_models/widget-user.model.d.ts +5 -0
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -0
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -0
- package/lib/_pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -0
- package/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -0
- package/lib/_services/common-methods.service.d.ts +37 -0
- package/lib/_services/configurations.service.d.ts +71 -0
- package/lib/_services/multilingual-translations.service.d.ts +20 -0
- package/lib/_services/viewer-route-util.d.ts +8 -0
- package/lib/_services/widget-content.service.d.ts +82 -0
- package/lib/_services/widget-user.service.d.ts +31 -0
- package/lib/consumption.component.d.ts +5 -0
- package/lib/consumption.config.d.ts +6 -0
- package/lib/consumption.module.d.ts +2 -0
- package/lib/consumption.service.d.ts +3 -0
- package/lib/registration-lib.config.d.ts +4 -0
- package/package.json +23 -0
- package/public-api.d.ts +11 -0
- package/sunbird-cb-consumption.d.ts +36 -0
- package/sunbird-cb-consumption.metadata.json +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
export declare class DefaultThumbnailDirective implements OnChanges {
|
|
3
|
+
wsUtilsDefaultThumbnail: string;
|
|
4
|
+
src: string;
|
|
5
|
+
isSrcUpdateAttemptedForDefault: boolean;
|
|
6
|
+
srcUrl: string;
|
|
7
|
+
updateSrc(): void;
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { OnChanges, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
export interface IImageResponsiveUnit {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ImageResponsiveDirective implements OnChanges, OnDestroy {
|
|
8
|
+
private breakpointObserver;
|
|
9
|
+
src: IImageResponsiveUnit | null;
|
|
10
|
+
srcBindUrl: string;
|
|
11
|
+
currentSize: string;
|
|
12
|
+
breakpointSubscription: Subscription | null;
|
|
13
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
private setSrc;
|
|
17
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { NsContent } from './widget-content.model';
|
|
2
|
+
export declare namespace NsCardContent {
|
|
3
|
+
interface ICard {
|
|
4
|
+
content: NsContent.IContent;
|
|
5
|
+
cardSubType: TCardSubType;
|
|
6
|
+
context: {
|
|
7
|
+
pageSection: string;
|
|
8
|
+
position?: number;
|
|
9
|
+
};
|
|
10
|
+
intranetMode?: 'greyOut' | 'hide';
|
|
11
|
+
deletedMode?: 'greyOut' | 'hide';
|
|
12
|
+
likes?: number;
|
|
13
|
+
contentTags?: IContentTags;
|
|
14
|
+
stateData: any;
|
|
15
|
+
}
|
|
16
|
+
interface IContentTags {
|
|
17
|
+
daysSpan?: number;
|
|
18
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
19
|
+
excludeMimeType?: string[];
|
|
20
|
+
tag: string;
|
|
21
|
+
criteriaField?: string;
|
|
22
|
+
}
|
|
23
|
+
interface ICompetency extends ICard {
|
|
24
|
+
competencyArea: '';
|
|
25
|
+
competencyObject: {};
|
|
26
|
+
}
|
|
27
|
+
type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'card-user-details' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card';
|
|
28
|
+
enum EContentStatus {
|
|
29
|
+
LIVE = "Live",
|
|
30
|
+
EXPIRED = "Expired",
|
|
31
|
+
DELETED = "Deleted",
|
|
32
|
+
MARK_FOR_DELETION = "MarkedForDeletion"
|
|
33
|
+
}
|
|
34
|
+
enum ACBPConst {
|
|
35
|
+
UPCOMING = "upcoming",
|
|
36
|
+
ALL = "All",
|
|
37
|
+
OVERDUE = "overdue",
|
|
38
|
+
SUCCESS = "success"
|
|
39
|
+
}
|
|
40
|
+
enum IGOTConst {
|
|
41
|
+
COMPETENCIES = "competencies_v5",
|
|
42
|
+
RETIRED = "Retired"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { NsContent } from './widget-content.model';
|
|
2
|
+
export declare namespace NsCardContent {
|
|
3
|
+
interface ICard {
|
|
4
|
+
content: NsContent.IContent;
|
|
5
|
+
cardSubType: TCardSubType;
|
|
6
|
+
context: {
|
|
7
|
+
pageSection: string;
|
|
8
|
+
position?: number;
|
|
9
|
+
};
|
|
10
|
+
intranetMode?: 'greyOut' | 'hide';
|
|
11
|
+
deletedMode?: 'greyOut' | 'hide';
|
|
12
|
+
likes?: number;
|
|
13
|
+
contentTags?: IContentTags;
|
|
14
|
+
stateData: any;
|
|
15
|
+
cardCustomeClass?: any;
|
|
16
|
+
}
|
|
17
|
+
interface IContentTags {
|
|
18
|
+
daysSpan?: number;
|
|
19
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
20
|
+
excludeMimeType?: string[];
|
|
21
|
+
tag: string;
|
|
22
|
+
criteriaField?: string;
|
|
23
|
+
}
|
|
24
|
+
type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'card-user-details' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card' | 'user-card';
|
|
25
|
+
enum EContentStatus {
|
|
26
|
+
LIVE = "Live",
|
|
27
|
+
EXPIRED = "Expired",
|
|
28
|
+
DELETED = "Deleted",
|
|
29
|
+
MARK_FOR_DELETION = "MarkedForDeletion"
|
|
30
|
+
}
|
|
31
|
+
enum ACBPConst {
|
|
32
|
+
UPCOMING = "upcoming",
|
|
33
|
+
ALL = "All",
|
|
34
|
+
OVERDUE = "overdue",
|
|
35
|
+
SUCCESS = "success"
|
|
36
|
+
}
|
|
37
|
+
enum IGOTConst {
|
|
38
|
+
COMPETENCIES = "competencies_v5",
|
|
39
|
+
RETIRED = "Retired"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { NsCardContent } from './card-content.model';
|
|
2
|
+
export declare namespace NsCardUser {
|
|
3
|
+
interface ICard {
|
|
4
|
+
user: user | IUserProfile;
|
|
5
|
+
cardSubType: NsCardContent.TCardSubType;
|
|
6
|
+
context: {
|
|
7
|
+
pageSection: string;
|
|
8
|
+
position?: number;
|
|
9
|
+
};
|
|
10
|
+
likes?: number;
|
|
11
|
+
stateData: any;
|
|
12
|
+
}
|
|
13
|
+
interface IUserProfile {
|
|
14
|
+
userId: string;
|
|
15
|
+
email?: string;
|
|
16
|
+
departmentName?: string;
|
|
17
|
+
userName?: string;
|
|
18
|
+
firstName?: string;
|
|
19
|
+
surName?: string;
|
|
20
|
+
middleName?: string;
|
|
21
|
+
lastName?: string;
|
|
22
|
+
rootOrgId?: string;
|
|
23
|
+
rootOrgName?: string;
|
|
24
|
+
profileImage?: string;
|
|
25
|
+
givenName?: string;
|
|
26
|
+
country?: null | string;
|
|
27
|
+
unit?: string | null;
|
|
28
|
+
source_profile_picture?: null | string;
|
|
29
|
+
dealerCode?: null | string;
|
|
30
|
+
isManager?: boolean;
|
|
31
|
+
competencies?: any;
|
|
32
|
+
systemTopics?: any;
|
|
33
|
+
desiredTopics?: any;
|
|
34
|
+
desiredCompetencies?: any;
|
|
35
|
+
userRoles?: any;
|
|
36
|
+
profileUpdateCompletion?: number;
|
|
37
|
+
profileImageUrl?: string;
|
|
38
|
+
professionalDetails?: any;
|
|
39
|
+
webPortalLang?: any;
|
|
40
|
+
description?: string;
|
|
41
|
+
}
|
|
42
|
+
interface user {
|
|
43
|
+
userId: string;
|
|
44
|
+
firstName?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
profileImage?: string;
|
|
47
|
+
}
|
|
48
|
+
type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card' | 'user-card';
|
|
49
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { NsWidgetResolver } from '@sunbird-cb/resolver';
|
|
2
|
+
import { NSSearch } from '../_models/widget-search.model';
|
|
3
|
+
import { NsContent } from '../_models/widget-content.model';
|
|
4
|
+
import { NsCardContent } from '../_models/card-content.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
|
+
customeClass?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
mode?: 'accordion';
|
|
19
|
+
info?: IStripInfo;
|
|
20
|
+
viewMoreUrl?: {
|
|
21
|
+
queryParams?: any;
|
|
22
|
+
path?: string;
|
|
23
|
+
viewMoreText?: string;
|
|
24
|
+
};
|
|
25
|
+
preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
26
|
+
postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
27
|
+
stripConfig?: IStripConfig;
|
|
28
|
+
canHideStrip?: boolean;
|
|
29
|
+
filters?: any[];
|
|
30
|
+
selectAll?: boolean | null;
|
|
31
|
+
request?: {
|
|
32
|
+
search?: NSSearch.ISearchRequest;
|
|
33
|
+
searchV6?: NSSearch.ISearchV6Request;
|
|
34
|
+
searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
|
|
35
|
+
api?: IStripRequestApi;
|
|
36
|
+
ids?: string[];
|
|
37
|
+
enrollmentList?: any;
|
|
38
|
+
comprelatedCbp?: any;
|
|
39
|
+
recommendedCourses?: any;
|
|
40
|
+
masterCompetency?: any;
|
|
41
|
+
mandatoryCourses?: any;
|
|
42
|
+
basedOnInterest?: any;
|
|
43
|
+
microsoftCourses?: any;
|
|
44
|
+
DAKSHTACourses?: any;
|
|
45
|
+
prarambhCourse?: any;
|
|
46
|
+
curatedCollections?: any;
|
|
47
|
+
moderatedCourses?: any;
|
|
48
|
+
};
|
|
49
|
+
searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
|
|
50
|
+
stripBackground?: string;
|
|
51
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
52
|
+
loader?: boolean;
|
|
53
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
54
|
+
refreshEvent?: Record<'eventType' | 'from', string>;
|
|
55
|
+
fetchLikes?: boolean;
|
|
56
|
+
}
|
|
57
|
+
interface IContentStripUnitV2 {
|
|
58
|
+
key: string;
|
|
59
|
+
title: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
mode?: 'accordion';
|
|
62
|
+
info?: IStripInfo;
|
|
63
|
+
viewMoreUrl?: {
|
|
64
|
+
queryParams?: any;
|
|
65
|
+
path?: string;
|
|
66
|
+
};
|
|
67
|
+
preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
68
|
+
postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
|
|
69
|
+
stripConfig?: IStripConfig;
|
|
70
|
+
canHideStrip?: boolean;
|
|
71
|
+
filters?: any[];
|
|
72
|
+
selectAll?: boolean | null;
|
|
73
|
+
request?: {
|
|
74
|
+
search?: NSSearch.ISearchRequest;
|
|
75
|
+
searchV6?: NSSearch.ISearchV6RequestV2;
|
|
76
|
+
searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
|
|
77
|
+
api?: IStripRequestApi;
|
|
78
|
+
ids?: string[];
|
|
79
|
+
enrollmentList?: any;
|
|
80
|
+
};
|
|
81
|
+
searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
|
|
82
|
+
stripBackground?: string;
|
|
83
|
+
noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
84
|
+
loader?: boolean;
|
|
85
|
+
errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
86
|
+
refreshEvent?: Record<'eventType' | 'from', string>;
|
|
87
|
+
fetchLikes?: boolean;
|
|
88
|
+
}
|
|
89
|
+
interface IStripRequestApi {
|
|
90
|
+
path: string;
|
|
91
|
+
queryParams?: {
|
|
92
|
+
pageNo?: number;
|
|
93
|
+
pageSize?: number;
|
|
94
|
+
pageState?: string;
|
|
95
|
+
sourceFields?: string;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
interface IStripInfo {
|
|
99
|
+
mode: 'below' | 'popup' | 'modal';
|
|
100
|
+
visibilityMode?: 'hidden' | 'visible';
|
|
101
|
+
icon: {
|
|
102
|
+
icon: string;
|
|
103
|
+
scale: number;
|
|
104
|
+
style?: any;
|
|
105
|
+
};
|
|
106
|
+
widget: NsWidgetResolver.IRenderConfigWithAnyData;
|
|
107
|
+
}
|
|
108
|
+
interface IStripConfig {
|
|
109
|
+
cardSubType: NsCardContent.TCardSubType;
|
|
110
|
+
postCardForSearch?: boolean;
|
|
111
|
+
intranetMode?: 'greyOut' | 'hide';
|
|
112
|
+
deletedMode?: 'greyOut' | 'hide';
|
|
113
|
+
contentTags?: IContentTags;
|
|
114
|
+
}
|
|
115
|
+
interface IContentTags {
|
|
116
|
+
daysSpan?: number;
|
|
117
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
118
|
+
excludeMimeType?: string[];
|
|
119
|
+
tag: string;
|
|
120
|
+
criteriaField: string;
|
|
121
|
+
}
|
|
122
|
+
interface IContentStripResponseApi {
|
|
123
|
+
contents: NsContent.IContent[];
|
|
124
|
+
hasMore?: boolean;
|
|
125
|
+
pageState?: string;
|
|
126
|
+
totalHits?: number;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ITodayEvents {
|
|
2
|
+
eventName: string;
|
|
3
|
+
eventStartTime?: string;
|
|
4
|
+
eventEndTime?: string;
|
|
5
|
+
eventStartDate?: string;
|
|
6
|
+
eventCreatedOn?: string;
|
|
7
|
+
eventDuration?: string;
|
|
8
|
+
eventjoined?: string;
|
|
9
|
+
eventThumbnail?: string;
|
|
10
|
+
pastevent?: boolean;
|
|
11
|
+
event?: IEventsDetails;
|
|
12
|
+
}
|
|
13
|
+
export interface IEventsDetails {
|
|
14
|
+
contentType?: string;
|
|
15
|
+
identifier?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
resourceType?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare namespace NSProfileDataV3 {
|
|
2
|
+
interface IProfileJsonData {
|
|
3
|
+
tabs: IProfileTab[];
|
|
4
|
+
}
|
|
5
|
+
interface IProfileTab {
|
|
6
|
+
name: string;
|
|
7
|
+
key: string;
|
|
8
|
+
badges: {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
uri?: string;
|
|
11
|
+
};
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
check: boolean;
|
|
14
|
+
routerLink: string;
|
|
15
|
+
step: number;
|
|
16
|
+
description: string;
|
|
17
|
+
largeDesc?: any;
|
|
18
|
+
allowSkip?: any;
|
|
19
|
+
}
|
|
20
|
+
interface ICompetencie {
|
|
21
|
+
type: string;
|
|
22
|
+
status: string;
|
|
23
|
+
source: string;
|
|
24
|
+
competencySelfAttestedLevel?: string;
|
|
25
|
+
competencySelfAttestedLevelValue?: string;
|
|
26
|
+
competencySelfAttestedLevelName?: string;
|
|
27
|
+
osid?: string;
|
|
28
|
+
competencyType?: string;
|
|
29
|
+
description: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
competencyLevel?: ICompetencyLevel[];
|
|
33
|
+
children?: any[];
|
|
34
|
+
competencyCBPCompletionLevel?: string;
|
|
35
|
+
competencyCBPCompletionLevelName?: string;
|
|
36
|
+
competencyCBPCompletionLevelValue?: string;
|
|
37
|
+
}
|
|
38
|
+
interface ICompetencyLevel {
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
interface ITopic {
|
|
42
|
+
children: any[];
|
|
43
|
+
code: string;
|
|
44
|
+
description: string;
|
|
45
|
+
identifier: string;
|
|
46
|
+
index: number;
|
|
47
|
+
name: string;
|
|
48
|
+
noOfHoursConsumed: number;
|
|
49
|
+
status: string;
|
|
50
|
+
}
|
|
51
|
+
interface ISearch {
|
|
52
|
+
type: string;
|
|
53
|
+
field: string;
|
|
54
|
+
keyword: string;
|
|
55
|
+
}
|
|
56
|
+
interface IDesiredTopic {
|
|
57
|
+
request: {
|
|
58
|
+
userId: string;
|
|
59
|
+
profileDetails: {
|
|
60
|
+
desiredTopics: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
interface ISystemTopic {
|
|
65
|
+
request: {
|
|
66
|
+
userId: string;
|
|
67
|
+
profileDetails: {
|
|
68
|
+
systemTopics: ISystemTopicChield[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
interface ISystemTopicChield {
|
|
73
|
+
identifier: string;
|
|
74
|
+
name: string;
|
|
75
|
+
children: [];
|
|
76
|
+
}
|
|
77
|
+
interface IRolesAndActivities {
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
activities: IRolesActivity[];
|
|
82
|
+
}
|
|
83
|
+
interface IRolesActivity {
|
|
84
|
+
description: string;
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}
|
|
88
|
+
interface IChipItems {
|
|
89
|
+
name: string;
|
|
90
|
+
}
|
|
91
|
+
}
|