@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.
Files changed (185) hide show
  1. package/README.md +24 -0
  2. package/bundles/sunbird-cb-consumption.umd.js +8116 -0
  3. package/bundles/sunbird-cb-consumption.umd.js.map +1 -0
  4. package/bundles/sunbird-cb-consumption.umd.min.js +17 -0
  5. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -0
  6. package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +209 -0
  7. package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +173 -0
  8. package/esm2015/lib/_common/cards/card-resource/card-resource.component.js +34 -0
  9. package/esm2015/lib/_common/cards/card-user/card-user.component.js +141 -0
  10. package/esm2015/lib/_common/cards/cards.component.js +107 -0
  11. package/esm2015/lib/_common/cards/cards.module.js +47 -0
  12. package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +324 -0
  13. package/esm2015/lib/_common/competency-passbook/competency-passbook.module.js +27 -0
  14. package/esm2015/lib/_common/competency-passbook/competency-passbook.service.js +52 -0
  15. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1594 -0
  16. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +212 -0
  17. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +69 -0
  18. package/esm2015/lib/_common/data-points/data-points.component.js +53 -0
  19. package/esm2015/lib/_common/data-points/data-points.module.js +19 -0
  20. package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.component.js +56 -0
  21. package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.module.js +18 -0
  22. package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +268 -0
  23. package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -0
  24. package/esm2015/lib/_common/pills/pills.component.js +49 -0
  25. package/esm2015/lib/_common/pills/pills.module.js +24 -0
  26. package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +40 -0
  27. package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +28 -0
  28. package/esm2015/lib/_common/sliders/sliders.component.js +184 -0
  29. package/esm2015/lib/_common/sliders/sliders.model.js +61 -0
  30. package/esm2015/lib/_common/sliders/sliders.module.js +50 -0
  31. package/esm2015/lib/_constants/misc.constants.js +5 -0
  32. package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.directive.js +52 -0
  33. package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.module.js +19 -0
  34. package/esm2015/lib/_directives/image-responsive/image-responsive.directive.js +127 -0
  35. package/esm2015/lib/_directives/image-responsive/image-responsive.module.js +19 -0
  36. package/esm2015/lib/_directives/navigation/navigation.directive.js +54 -0
  37. package/esm2015/lib/_directives/navigation/navigation.module.js +19 -0
  38. package/esm2015/lib/_models/card-content-v2.model.js +78 -0
  39. package/esm2015/lib/_models/card-content.model.js +69 -0
  40. package/esm2015/lib/_models/card-users.model.js +101 -0
  41. package/esm2015/lib/_models/content-strip-multiple.model.js +195 -0
  42. package/esm2015/lib/_models/event.js +45 -0
  43. package/esm2015/lib/_models/profile-v3.models.js +196 -0
  44. package/esm2015/lib/_models/widget-content.model.js +876 -0
  45. package/esm2015/lib/_models/widget-search.model.js +472 -0
  46. package/esm2015/lib/_models/widget-user.model.js +17 -0
  47. package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +19 -0
  48. package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +120 -0
  49. package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +19 -0
  50. package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +38 -0
  51. package/esm2015/lib/_services/common-methods.service.js +60 -0
  52. package/esm2015/lib/_services/configurations.service.js +243 -0
  53. package/esm2015/lib/_services/multilingual-translations.service.js +228 -0
  54. package/esm2015/lib/_services/viewer-route-util.js +125 -0
  55. package/esm2015/lib/_services/widget-content.service.js +818 -0
  56. package/esm2015/lib/_services/widget-user.service.js +439 -0
  57. package/esm2015/lib/consumption.component.js +26 -0
  58. package/esm2015/lib/consumption.config.js +12 -0
  59. package/esm2015/lib/consumption.module.js +26 -0
  60. package/esm2015/lib/consumption.service.js +18 -0
  61. package/esm2015/lib/registration-lib.config.js +21 -0
  62. package/esm2015/public-api.js +19 -0
  63. package/esm2015/sunbird-cb-consumption.js +41 -0
  64. package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +222 -0
  65. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +182 -0
  66. package/esm5/lib/_common/cards/card-resource/card-resource.component.js +41 -0
  67. package/esm5/lib/_common/cards/card-user/card-user.component.js +147 -0
  68. package/esm5/lib/_common/cards/cards.component.js +127 -0
  69. package/esm5/lib/_common/cards/cards.module.js +51 -0
  70. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +391 -0
  71. package/esm5/lib/_common/competency-passbook/competency-passbook.module.js +31 -0
  72. package/esm5/lib/_common/competency-passbook/competency-passbook.service.js +59 -0
  73. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1861 -0
  74. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +212 -0
  75. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +73 -0
  76. package/esm5/lib/_common/data-points/data-points.component.js +62 -0
  77. package/esm5/lib/_common/data-points/data-points.module.js +23 -0
  78. package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.component.js +63 -0
  79. package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.module.js +22 -0
  80. package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +300 -0
  81. package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +27 -0
  82. package/esm5/lib/_common/pills/pills.component.js +58 -0
  83. package/esm5/lib/_common/pills/pills.module.js +28 -0
  84. package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +45 -0
  85. package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +32 -0
  86. package/esm5/lib/_common/sliders/sliders.component.js +211 -0
  87. package/esm5/lib/_common/sliders/sliders.model.js +61 -0
  88. package/esm5/lib/_common/sliders/sliders.module.js +67 -0
  89. package/esm5/lib/_constants/misc.constants.js +5 -0
  90. package/esm5/lib/_directives/default-thumbnail/default-thumbnail.directive.js +60 -0
  91. package/esm5/lib/_directives/default-thumbnail/default-thumbnail.module.js +23 -0
  92. package/esm5/lib/_directives/image-responsive/image-responsive.directive.js +137 -0
  93. package/esm5/lib/_directives/image-responsive/image-responsive.module.js +23 -0
  94. package/esm5/lib/_directives/navigation/navigation.directive.js +63 -0
  95. package/esm5/lib/_directives/navigation/navigation.module.js +23 -0
  96. package/esm5/lib/_models/card-content-v2.model.js +78 -0
  97. package/esm5/lib/_models/card-content.model.js +69 -0
  98. package/esm5/lib/_models/card-users.model.js +101 -0
  99. package/esm5/lib/_models/content-strip-multiple.model.js +195 -0
  100. package/esm5/lib/_models/event.js +45 -0
  101. package/esm5/lib/_models/profile-v3.models.js +196 -0
  102. package/esm5/lib/_models/widget-content.model.js +876 -0
  103. package/esm5/lib/_models/widget-search.model.js +472 -0
  104. package/esm5/lib/_models/widget-user.model.js +17 -0
  105. package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +23 -0
  106. package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +143 -0
  107. package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +23 -0
  108. package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +41 -0
  109. package/esm5/lib/_services/common-methods.service.js +73 -0
  110. package/esm5/lib/_services/configurations.service.js +257 -0
  111. package/esm5/lib/_services/multilingual-translations.service.js +256 -0
  112. package/esm5/lib/_services/viewer-route-util.js +127 -0
  113. package/esm5/lib/_services/widget-content.service.js +1062 -0
  114. package/esm5/lib/_services/widget-user.service.js +501 -0
  115. package/esm5/lib/consumption.component.js +28 -0
  116. package/esm5/lib/consumption.config.js +12 -0
  117. package/esm5/lib/consumption.module.js +30 -0
  118. package/esm5/lib/consumption.service.js +21 -0
  119. package/esm5/lib/registration-lib.config.js +21 -0
  120. package/esm5/public-api.js +19 -0
  121. package/esm5/sunbird-cb-consumption.js +41 -0
  122. package/fesm2015/sunbird-cb-consumption.js +6940 -0
  123. package/fesm2015/sunbird-cb-consumption.js.map +1 -0
  124. package/fesm5/sunbird-cb-consumption.js +7871 -0
  125. package/fesm5/sunbird-cb-consumption.js.map +1 -0
  126. package/lib/_common/cards/card-landscape/card-landscape.component.d.ts +35 -0
  127. package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +31 -0
  128. package/lib/_common/cards/card-resource/card-resource.component.d.ts +8 -0
  129. package/lib/_common/cards/card-user/card-user.component.d.ts +24 -0
  130. package/lib/_common/cards/cards.component.d.ts +20 -0
  131. package/lib/_common/cards/cards.module.d.ts +2 -0
  132. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +36 -0
  133. package/lib/_common/competency-passbook/competency-passbook.module.d.ts +2 -0
  134. package/lib/_common/competency-passbook/competency-passbook.service.d.ts +8 -0
  135. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +174 -0
  136. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +131 -0
  137. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.d.ts +5 -0
  138. package/lib/_common/data-points/data-points.component.d.ts +9 -0
  139. package/lib/_common/data-points/data-points.module.d.ts +2 -0
  140. package/lib/_common/display-content-type-lib/display-content-type-lib.component.d.ts +11 -0
  141. package/lib/_common/display-content-type-lib/display-content-type-lib.module.d.ts +2 -0
  142. package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +31 -0
  143. package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -0
  144. package/lib/_common/pills/pills.component.d.ts +10 -0
  145. package/lib/_common/pills/pills.module.d.ts +2 -0
  146. package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.d.ts +8 -0
  147. package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.d.ts +2 -0
  148. package/lib/_common/sliders/sliders.component.d.ts +26 -0
  149. package/lib/_common/sliders/sliders.model.d.ts +34 -0
  150. package/lib/_common/sliders/sliders.module.d.ts +6 -0
  151. package/lib/_constants/misc.constants.d.ts +2 -0
  152. package/lib/_directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -0
  153. package/lib/_directives/default-thumbnail/default-thumbnail.module.d.ts +2 -0
  154. package/lib/_directives/image-responsive/image-responsive.directive.d.ts +17 -0
  155. package/lib/_directives/image-responsive/image-responsive.module.d.ts +2 -0
  156. package/lib/_directives/navigation/navigation.directive.d.ts +9 -0
  157. package/lib/_directives/navigation/navigation.module.d.ts +2 -0
  158. package/lib/_models/card-content-v2.model.d.ts +44 -0
  159. package/lib/_models/card-content.model.d.ts +41 -0
  160. package/lib/_models/card-users.model.d.ts +49 -0
  161. package/lib/_models/content-strip-multiple.model.d.ts +128 -0
  162. package/lib/_models/event.d.ts +18 -0
  163. package/lib/_models/profile-v3.models.d.ts +91 -0
  164. package/lib/_models/widget-content.model.d.ts +497 -0
  165. package/lib/_models/widget-search.model.d.ts +252 -0
  166. package/lib/_models/widget-user.model.d.ts +5 -0
  167. package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -0
  168. package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -0
  169. package/lib/_pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -0
  170. package/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -0
  171. package/lib/_services/common-methods.service.d.ts +37 -0
  172. package/lib/_services/configurations.service.d.ts +71 -0
  173. package/lib/_services/multilingual-translations.service.d.ts +20 -0
  174. package/lib/_services/viewer-route-util.d.ts +8 -0
  175. package/lib/_services/widget-content.service.d.ts +82 -0
  176. package/lib/_services/widget-user.service.d.ts +31 -0
  177. package/lib/consumption.component.d.ts +5 -0
  178. package/lib/consumption.config.d.ts +6 -0
  179. package/lib/consumption.module.d.ts +2 -0
  180. package/lib/consumption.service.d.ts +3 -0
  181. package/lib/registration-lib.config.d.ts +4 -0
  182. package/package.json +23 -0
  183. package/public-api.d.ts +11 -0
  184. package/sunbird-cb-consumption.d.ts +36 -0
  185. 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,2 @@
1
+ export declare class DefaultThumbnailModule {
2
+ }
@@ -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,2 @@
1
+ export declare class ImageResponsiveModule {
2
+ }
@@ -0,0 +1,9 @@
1
+ import { OnChanges } from '@angular/core';
2
+ export declare class NavigationDirective implements OnChanges {
3
+ wsUtilsNavigation: string;
4
+ openInNewTab: boolean;
5
+ routeUrl: string;
6
+ onMouseEnter($event: Event): void;
7
+ constructor();
8
+ ngOnChanges(): void;
9
+ }
@@ -0,0 +1,2 @@
1
+ export declare class NavigationModule {
2
+ }
@@ -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
+ }