@sunbird-cb/utils-v2 0.0.0-watch

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 (210) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/components/image-crop/image-crop.component.mjs +172 -0
  3. package/esm2022/lib/components/image-crop/image-crop.module.mjs +55 -0
  4. package/esm2022/lib/constants/features.enum.mjs +555 -0
  5. package/esm2022/lib/constants/instances.enum.mjs +5 -0
  6. package/esm2022/lib/constants/misc.constants.mjs +2 -0
  7. package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.mjs +87 -0
  8. package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.module.mjs +20 -0
  9. package/esm2022/lib/directives/default-thumbnail/default-thumbnail.directive.mjs +40 -0
  10. package/esm2022/lib/directives/default-thumbnail/default-thumbnail.module.mjs +20 -0
  11. package/esm2022/lib/directives/image-responsive/image-responsive.directive.mjs +86 -0
  12. package/esm2022/lib/directives/image-responsive/image-responsive.module.mjs +20 -0
  13. package/esm2022/lib/directives/in-view-port/in-view-port.directive.mjs +62 -0
  14. package/esm2022/lib/directives/in-view-port/in-view-port.module.mjs +20 -0
  15. package/esm2022/lib/directives/navigation/navigation.directive.mjs +43 -0
  16. package/esm2022/lib/directives/navigation/navigation.module.mjs +20 -0
  17. package/esm2022/lib/directives/permission/permission.directive.mjs +14 -0
  18. package/esm2022/lib/directives/permission/permission.module.mjs +20 -0
  19. package/esm2022/lib/helpers/functions/getStringifiedQueryParams.mjs +9 -0
  20. package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.component.mjs +96 -0
  21. package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.module.mjs +32 -0
  22. package/esm2022/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.mjs +186 -0
  23. package/esm2022/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.mjs +32 -0
  24. package/esm2022/lib/helpers/logout/logout.component.mjs +78 -0
  25. package/esm2022/lib/helpers/logout/logout.module.mjs +31 -0
  26. package/esm2022/lib/models/profile-v3.models.mjs +2 -0
  27. package/esm2022/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.mjs +20 -0
  28. package/esm2022/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.mjs +117 -0
  29. package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.mjs +18 -0
  30. package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.mjs +57 -0
  31. package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.module.mjs +20 -0
  32. package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.mjs +37 -0
  33. package/esm2022/lib/pipes/pipe-coursename/PipeCourseNameModule.mjs +20 -0
  34. package/esm2022/lib/pipes/pipe-coursename/pipe-coursename.pipe.mjs +17 -0
  35. package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.module.mjs +20 -0
  36. package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.mjs +36 -0
  37. package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.mjs +20 -0
  38. package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.mjs +86 -0
  39. package/esm2022/lib/pipes/pipe-email/pipe-email.module.mjs +20 -0
  40. package/esm2022/lib/pipes/pipe-email/pipe-email.pipe.mjs +16 -0
  41. package/esm2022/lib/pipes/pipe-filter/pipe-filter.module.mjs +20 -0
  42. package/esm2022/lib/pipes/pipe-filter/pipe-filter.pipe.mjs +20 -0
  43. package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.module.mjs +20 -0
  44. package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.mjs +42 -0
  45. package/esm2022/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.mjs +20 -0
  46. package/esm2022/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.mjs +25 -0
  47. package/esm2022/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.mjs +20 -0
  48. package/esm2022/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.mjs +27 -0
  49. package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.mjs +20 -0
  50. package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.mjs +16 -0
  51. package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.module.mjs +20 -0
  52. package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.mjs +29 -0
  53. package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.module.mjs +20 -0
  54. package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.mjs +21 -0
  55. package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.module.mjs +20 -0
  56. package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.mjs +26 -0
  57. package/esm2022/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.mjs +20 -0
  58. package/esm2022/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.mjs +40 -0
  59. package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.module.mjs +20 -0
  60. package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.pipe.mjs +17 -0
  61. package/esm2022/lib/pipes/pipe-ordinal/pipe-ordinal.module.mjs +20 -0
  62. package/esm2022/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.mjs +21 -0
  63. package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.module.mjs +20 -0
  64. package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.mjs +22 -0
  65. package/esm2022/lib/pipes/pipe-public-URL/pipe-public-URL.module.mjs +20 -0
  66. package/esm2022/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.mjs +27 -0
  67. package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.module.mjs +20 -0
  68. package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.mjs +20 -0
  69. package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.mjs +20 -0
  70. package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.mjs +33 -0
  71. package/esm2022/lib/resolvers/explore-detail.resolver.mjs +76 -0
  72. package/esm2022/lib/resolvers/marketing-offering.resolve.mjs +35 -0
  73. package/esm2022/lib/resolvers/module-name.resolver.mjs +36 -0
  74. package/esm2022/lib/resolvers/page-name.resolver.mjs +33 -0
  75. package/esm2022/lib/resolvers/page.constant.mjs +4 -0
  76. package/esm2022/lib/resolvers/page.model.mjs +2 -0
  77. package/esm2022/lib/resolvers/page.resolver.mjs +82 -0
  78. package/esm2022/lib/resolvers/resolver.model.mjs +2 -0
  79. package/esm2022/lib/services/auth-keycloak.service.mjs +124 -0
  80. package/esm2022/lib/services/auth-microsoft.service.mjs +173 -0
  81. package/esm2022/lib/services/card-content.model.mjs +11 -0
  82. package/esm2022/lib/services/configurations.model.mjs +2 -0
  83. package/esm2022/lib/services/configurations.service.mjs +83 -0
  84. package/esm2022/lib/services/content-strip-multiple.model.mjs +2 -0
  85. package/esm2022/lib/services/event.model.mjs +145 -0
  86. package/esm2022/lib/services/event.service.mjs +294 -0
  87. package/esm2022/lib/services/logger.service.mjs +45 -0
  88. package/esm2022/lib/services/ms-office.model.mjs +2 -0
  89. package/esm2022/lib/services/multilingual-translations.service.mjs +121 -0
  90. package/esm2022/lib/services/nps-grid.service.mjs +38 -0
  91. package/esm2022/lib/services/subapplication-respond.service.mjs +206 -0
  92. package/esm2022/lib/services/telemetry.service.mjs +695 -0
  93. package/esm2022/lib/services/user-preference.model.mjs +2 -0
  94. package/esm2022/lib/services/user-preference.service.mjs +92 -0
  95. package/esm2022/lib/services/utility.service.mjs +122 -0
  96. package/esm2022/lib/services/value.service.mjs +25 -0
  97. package/esm2022/lib/services/widget-content.model.mjs +144 -0
  98. package/esm2022/lib/services/widget-content.service.mjs +198 -0
  99. package/esm2022/lib/services/widget-resolver.model.mjs +2 -0
  100. package/esm2022/lib/services/widget-search.model.mjs +2 -0
  101. package/esm2022/lib/services-new/data-transfer.service.mjs +23 -0
  102. package/esm2022/lib/services-new/widget-enroll.service.mjs +55 -0
  103. package/esm2022/public-api.mjs +98 -0
  104. package/esm2022/sunbird-cb-utils-v2.mjs +2 -0
  105. package/fesm2022/sunbird-cb-utils-v2.mjs +5424 -0
  106. package/fesm2022/sunbird-cb-utils-v2.mjs.map +1 -0
  107. package/index.d.ts +2 -0
  108. package/lib/components/image-crop/image-crop.component.d.ts +59 -0
  109. package/lib/components/image-crop/image-crop.module.d.ts +16 -0
  110. package/lib/constants/features.enum.d.ts +553 -0
  111. package/lib/constants/instances.enum.d.ts +3 -0
  112. package/lib/constants/misc.constants.d.ts +2 -0
  113. package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +21 -0
  114. package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +8 -0
  115. package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +12 -0
  116. package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +8 -0
  117. package/lib/directives/image-responsive/image-responsive.directive.d.ts +20 -0
  118. package/lib/directives/image-responsive/image-responsive.module.d.ts +8 -0
  119. package/lib/directives/in-view-port/in-view-port.directive.d.ts +14 -0
  120. package/lib/directives/in-view-port/in-view-port.module.d.ts +8 -0
  121. package/lib/directives/navigation/navigation.directive.d.ts +12 -0
  122. package/lib/directives/navigation/navigation.module.d.ts +8 -0
  123. package/lib/directives/permission/permission.directive.d.ts +6 -0
  124. package/lib/directives/permission/permission.module.d.ts +8 -0
  125. package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -0
  126. package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +21 -0
  127. package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +11 -0
  128. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +39 -0
  129. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +11 -0
  130. package/lib/helpers/logout/logout.component.d.ts +23 -0
  131. package/lib/helpers/logout/logout.module.d.ts +11 -0
  132. package/lib/models/profile-v3.models.d.ts +91 -0
  133. package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.d.ts +8 -0
  134. package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.d.ts +9 -0
  135. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +8 -0
  136. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +13 -0
  137. package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +8 -0
  138. package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +7 -0
  139. package/lib/pipes/pipe-coursename/PipeCourseNameModule.d.ts +8 -0
  140. package/lib/pipes/pipe-coursename/pipe-coursename.pipe.d.ts +7 -0
  141. package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +8 -0
  142. package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +16 -0
  143. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +8 -0
  144. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +9 -0
  145. package/lib/pipes/pipe-email/pipe-email.module.d.ts +8 -0
  146. package/lib/pipes/pipe-email/pipe-email.pipe.d.ts +7 -0
  147. package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +8 -0
  148. package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +7 -0
  149. package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +8 -0
  150. package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +7 -0
  151. package/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.d.ts +8 -0
  152. package/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.d.ts +7 -0
  153. package/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.d.ts +8 -0
  154. package/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.d.ts +7 -0
  155. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +8 -0
  156. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +7 -0
  157. package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +8 -0
  158. package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +7 -0
  159. package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +8 -0
  160. package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +7 -0
  161. package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +8 -0
  162. package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +12 -0
  163. package/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.d.ts +8 -0
  164. package/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.d.ts +10 -0
  165. package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +8 -0
  166. package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +12 -0
  167. package/lib/pipes/pipe-ordinal/pipe-ordinal.module.d.ts +8 -0
  168. package/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.d.ts +7 -0
  169. package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +8 -0
  170. package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +7 -0
  171. package/lib/pipes/pipe-public-URL/pipe-public-URL.module.d.ts +8 -0
  172. package/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +9 -0
  173. package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +8 -0
  174. package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +7 -0
  175. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +8 -0
  176. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +10 -0
  177. package/lib/resolvers/explore-detail.resolver.d.ts +19 -0
  178. package/lib/resolvers/marketing-offering.resolve.d.ts +13 -0
  179. package/lib/resolvers/module-name.resolver.d.ts +9 -0
  180. package/lib/resolvers/page-name.resolver.d.ts +8 -0
  181. package/lib/resolvers/page.constant.d.ts +1 -0
  182. package/lib/resolvers/page.model.d.ts +41 -0
  183. package/lib/resolvers/page.resolver.d.ts +20 -0
  184. package/lib/resolvers/resolver.model.d.ts +4 -0
  185. package/lib/services/auth-keycloak.service.d.ts +23 -0
  186. package/lib/services/auth-microsoft.service.d.ts +33 -0
  187. package/lib/services/card-content.model.d.ts +29 -0
  188. package/lib/services/configurations.model.d.ts +526 -0
  189. package/lib/services/configurations.service.d.ts +79 -0
  190. package/lib/services/content-strip-multiple.model.d.ts +80 -0
  191. package/lib/services/event.model.d.ts +222 -0
  192. package/lib/services/event.service.d.ts +39 -0
  193. package/lib/services/logger.service.d.ts +18 -0
  194. package/lib/services/ms-office.model.d.ts +6 -0
  195. package/lib/services/multilingual-translations.service.d.ts +23 -0
  196. package/lib/services/nps-grid.service.d.ts +15 -0
  197. package/lib/services/subapplication-respond.service.d.ts +26 -0
  198. package/lib/services/telemetry.service.d.ts +59 -0
  199. package/lib/services/user-preference.model.d.ts +34 -0
  200. package/lib/services/user-preference.service.d.ts +14 -0
  201. package/lib/services/utility.service.d.ts +34 -0
  202. package/lib/services/value.service.d.ts +11 -0
  203. package/lib/services/widget-content.model.d.ts +356 -0
  204. package/lib/services/widget-content.service.d.ts +54 -0
  205. package/lib/services/widget-resolver.model.d.ts +48 -0
  206. package/lib/services/widget-search.model.d.ts +114 -0
  207. package/lib/services-new/data-transfer.service.d.ts +10 -0
  208. package/lib/services-new/widget-enroll.service.d.ts +17 -0
  209. package/package.json +38 -0
  210. package/public-api.d.ts +97 -0
@@ -0,0 +1,222 @@
1
+ export declare namespace WsEvents {
2
+ interface IWsEventsFromWidget {
3
+ type: 'widget';
4
+ widgetType: string;
5
+ widgetSubType: string;
6
+ }
7
+ interface IWsEventsFromPage {
8
+ type: 'page';
9
+ pageUrl: string;
10
+ pageType: string;
11
+ }
12
+ enum WsEventType {
13
+ Action = "Action",
14
+ Telemetry = "Telemetry",
15
+ PageNavigation = "PageNavigation",
16
+ AccessRestrictedContentAccessed = "AccessRestrictedContentAccessed",
17
+ PageSlow = "PageSlow",
18
+ ErrorOccurred = "ErrorOccurred",
19
+ WidgetResolveError = "WidgetResolveError"
20
+ }
21
+ enum WsEventLogLevel {
22
+ Warn = "Warn",
23
+ Error = "Error",
24
+ Info = "Info",
25
+ Log = "Log",
26
+ Trace = "Trace"
27
+ }
28
+ enum WsAuditTypes {
29
+ Created = "Created",
30
+ Updated = "Updated",
31
+ Deleted = "Deleted"
32
+ }
33
+ enum WsTimeSpentType {
34
+ Page = "Page",
35
+ Player = "Player"
36
+ }
37
+ enum WsTimeSpentMode {
38
+ Play = "Play",
39
+ View = "View"
40
+ }
41
+ enum externalTelemetrypdata {
42
+ RBCP = "rbcp-web-ui"
43
+ }
44
+ interface IWsEvents<T> {
45
+ eventType: WsEventType;
46
+ eventLogLevel: WsEventLogLevel;
47
+ from: IWsEventsFromWidget | IWsEventsFromPage | string;
48
+ to: string;
49
+ data: T;
50
+ passThroughData?: any;
51
+ pageContext?: any;
52
+ }
53
+ enum EnumTelemetrySubType {
54
+ Init = "Init",
55
+ Interact = "Interact",
56
+ Loaded = "Loaded",
57
+ Unloaded = "Unloaded",
58
+ StateChange = "StateChange",
59
+ HeartBeat = "HeartBeat",
60
+ Search = "Search",
61
+ Feedback = "Feedback",
62
+ Impression = "Impression",
63
+ Chatbot = "Chatbot",
64
+ GetStarted = "Get Started",
65
+ PlatformRating = "PlatformRating"
66
+ }
67
+ interface ITelemetryPageContext {
68
+ pageId?: string;
69
+ module?: string;
70
+ pageIdExt?: string;
71
+ }
72
+ interface ITelemetryEdata {
73
+ type: string;
74
+ subType?: string;
75
+ id?: string;
76
+ pageid?: string;
77
+ target?: string;
78
+ }
79
+ interface ITelemetryTabData {
80
+ label: string;
81
+ index: number;
82
+ }
83
+ interface IWsEventTelemetry {
84
+ eventSubType: EnumTelemetrySubType;
85
+ pageContext?: ITelemetryPageContext;
86
+ }
87
+ enum EnumTelemetryPdfActivity {
88
+ PAGE_CHANGED = "PAGE_CHANGED",
89
+ FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
90
+ FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
91
+ ZOOM_CHANGE = "ZOOM_CHANGE",
92
+ NONE = "NONE"
93
+ }
94
+ interface IWsEventTelemetryPdfData extends IWsEventTelemetry {
95
+ activityType: EnumTelemetryPdfActivity;
96
+ currentPage: number;
97
+ totalPage: number;
98
+ activityStartedAt: Date | null;
99
+ object: any;
100
+ }
101
+ interface IWsEventTelemetrySurveyData extends IWsEventTelemetry {
102
+ object: any;
103
+ }
104
+ type WsEventTelemetryPDF = IWsEvents<IWsEventTelemetryPdfData>;
105
+ type WsEventTelemetrySurvey = IWsEvents<IWsEventTelemetrySurveyData>;
106
+ interface IWsEventTelemetryInteract extends IWsEventTelemetry {
107
+ edata: ITelemetryEdata;
108
+ object: any;
109
+ pageContext?: ITelemetryPageContext;
110
+ }
111
+ interface IWsEventTelemetryFeedback extends IWsEventTelemetry {
112
+ edata: ITelemetryEdata;
113
+ object: any;
114
+ pageContext?: ITelemetryPageContext;
115
+ }
116
+ interface IWsEventTelemetryImpression extends IWsEventTelemetry {
117
+ edata?: ITelemetryEdata;
118
+ object?: any;
119
+ pageContext?: ITelemetryPageContext;
120
+ }
121
+ interface IWsEventTelemetrySearch extends IWsEventTelemetry {
122
+ type: string;
123
+ subType?: string;
124
+ query?: string;
125
+ filters?: string;
126
+ size?: number;
127
+ locale?: any;
128
+ }
129
+ interface IWsEventTelemetryHeartBeat extends IWsEventTelemetry {
130
+ type: string;
131
+ id: string;
132
+ }
133
+ type WsEventTelemetryInteract = IWsEvents<IWsEventTelemetryInteract>;
134
+ type WsEventTelemetryFeedback = IWsEvents<IWsEventTelemetryFeedback>;
135
+ type WsEventTelemetryImpression = IWsEvents<IWsEventTelemetryImpression>;
136
+ type WsEventTelemetrySearch = IWsEvents<IWsEventTelemetrySearch>;
137
+ type WsEventTelemetryHeartBeat = IWsEvents<IWsEventTelemetryHeartBeat>;
138
+ enum EnumTelemetryMediaActivity {
139
+ PLAYED = "PLAYED",
140
+ PAUSED = "PAUSED",
141
+ SEEKED = "SEEKED",
142
+ ENDED = "ENDED",
143
+ VOLUME_CHANGE = "VOLUME_CHANGE",
144
+ MUTE = "MUTE",
145
+ UNMUTE = "UNMUTE",
146
+ PLAYBACK_SPEED_CHANGE = "PLAYBACK_SPEED_CHANGE",
147
+ FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
148
+ FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
149
+ PICTURE_IN_PICTURE_ACTIVATED = "PICTURE_IN_PICTURE_ACTIVATED",
150
+ PICTURE_IN_PICTURE_DEACTIVATED = "PICTURE_IN_PICTURE_DEACTIVATED",
151
+ NONE = "NONE"
152
+ }
153
+ enum EnumTelemetryMediaState {
154
+ PLAYING = "PLAYING",
155
+ PAUSED = "PAUSED",
156
+ ENDED = "ENDED",
157
+ BUFFERING = "BUFFERING",
158
+ NOT_STARTED = "NOT_STARTED"
159
+ }
160
+ interface IWsEventTelemetryMediaData extends IWsEventTelemetry {
161
+ currentState: EnumTelemetryMediaState;
162
+ activityType: EnumTelemetryMediaActivity;
163
+ currentTime: number | null;
164
+ totalTime: number | null;
165
+ maxedSeekedTime: number;
166
+ activityStartedAt?: Date | null;
167
+ }
168
+ type WsEventTelemetryMedia = IWsEvents<IWsEventTelemetryMediaData>;
169
+ enum EnumTelemetrymodules {
170
+ CONTENT = "content",
171
+ FEEDBACK = "feedback",
172
+ COURSE = "course",
173
+ PROGRAM = "program",
174
+ EXPLORE = "explore",
175
+ LEARN = "learn",
176
+ HOME = "home",
177
+ DASHBOARD = "dashboard",
178
+ SEARCH = "search",
179
+ DISCUSS = "Discuss",
180
+ COMPETENCY = "competency",
181
+ EVENTS = "events",
182
+ CAREER = "career",
183
+ PROFILE = "profile",
184
+ NETWORK = "network",
185
+ SUPPORT = "support",
186
+ KARMAPOINTS = "karmapoints",
187
+ PLATFORM_RATING = "platformrating"
188
+ }
189
+ enum EnumInteractTypes {
190
+ CLICK = "click",
191
+ subType = "subType"
192
+ }
193
+ enum EnumInteractSubTypes {
194
+ COURSE_TAB = "course-tab",
195
+ CAREER_TAB = "career-tab",
196
+ NETWORK_TAB = "network-tab",
197
+ COMPETENCY_TAB = "competency-tab",
198
+ PROFILE_EDIT_TAB = "profile-edit-tab",
199
+ DISCUSS_TAB = "discuss-tab",
200
+ EVENTS_TAB = "events-tab",
201
+ SIDE_MENU = "side-menu",
202
+ MY_IGOT = "my-igot",
203
+ MY_LEARNING = "my-learning",
204
+ RECENTLY_ADDED = "recently-added",
205
+ TRENDING_IN_YOUR_DEPARTMENT = "trending-in-your-department",
206
+ TRENDING_ACROSS_YOUR_DEPARTMENTS = "trending-across-your-departments",
207
+ LEARNING_UNDER_30_MINUTES = "learning-under-30-minutes",
208
+ BLENDED_PROGRAM = "blended program",
209
+ RECENT_CONNECTION_REQUEST = "recent-connection-request",
210
+ CERTIFICATIONS_OF_THE_WEEK = "certifications-of-the-week",
211
+ HOME_PAGE_STRIP_TABS = "home-page-strip-tabs",
212
+ HUB_MENU = "hub-menu",
213
+ PORTAL_NUDGE = "portal_nudge",
214
+ CERTIFICATE = "certificate",
215
+ DEFAULT_SUBTYPE = "default-subtype",
216
+ SUGGESTED_CONNECTIONS = "suggested-connections",
217
+ PROFILE = "profile",
218
+ ADD_POST = "add-post",
219
+ TRENDING_DISCUSSIONS = "trending-discussions",
220
+ MY_DISCUSSIONS = "my-discussions"
221
+ }
222
+ }
@@ -0,0 +1,39 @@
1
+ import { WsEvents } from './event.model';
2
+ import { UtilityService } from './utility.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EventService {
5
+ private utilitySvc;
6
+ todaysEvents: any;
7
+ todaysLiveEvents: any;
8
+ keySpeakerEvents: any;
9
+ private eventsSubject;
10
+ events$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
11
+ private eventsChatbotSubject;
12
+ chatbotEvents$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
13
+ private eventsGetStartSubject;
14
+ getStartEvents$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
15
+ private eventsPRSubject;
16
+ getPREvents$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
17
+ environment: any;
18
+ constructor(environment: any, utilitySvc: UtilityService);
19
+ dispatchEvent<T>(event: WsEvents.IWsEvents<T>): void;
20
+ dispatchChatbotEvent<T>(event: WsEvents.IWsEvents<T>): void;
21
+ dispatchGetStartedEvent<T>(event: WsEvents.IWsEvents<T>): void;
22
+ dispatchPlatformRatingEvent<T>(event: WsEvents.IWsEvents<T>): void;
23
+ raiseInteractTelemetry(edata: WsEvents.ITelemetryEdata, object: any, pageContext?: WsEvents.ITelemetryPageContext): void;
24
+ raiseFeedbackTelemetry(edata: WsEvents.ITelemetryEdata, object: any, from?: string): void;
25
+ raiseCustomImpression(object: any, pageContext?: WsEvents.ITelemetryPageContext): void;
26
+ private getContext;
27
+ handleTabTelemetry(subType: string, data: WsEvents.ITelemetryTabData, object?: any): void;
28
+ getPublicUrl(url: string): string;
29
+ allEventDateFormat(datetime: any): string;
30
+ compareDate(startDate: any): boolean;
31
+ customDateFormat(date: any, time: any): string;
32
+ sortItemByTime(eventsdata: any): any;
33
+ sortItemByTimeAsc(eventsdata: any): any;
34
+ setEventListData(eventObj: any): void;
35
+ getTodaysEvents(eventData: any): any;
36
+ getKeySpeakerEvents(eventData: any): any;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
39
+ }
@@ -0,0 +1,18 @@
1
+ import { ConfigurationsService } from './configurations.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoggerService {
4
+ private configSvc;
5
+ constructor(configSvc: ConfigurationsService);
6
+ private consoleError;
7
+ private consoleInfo;
8
+ private consoleLog;
9
+ private consoleWarn;
10
+ private noConsole;
11
+ get error(): (...data: any[]) => void;
12
+ get info(): (...data: any[]) => void;
13
+ get log(): (...data: any[]) => void;
14
+ get warn(): (...data: any[]) => void;
15
+ removeConsoleAccess(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
18
+ }
@@ -0,0 +1,6 @@
1
+ export interface IWsMsTokenModelResponse {
2
+ accessToken?: string;
3
+ expiresOn?: string;
4
+ resource?: string;
5
+ tokenType?: string;
6
+ }
@@ -0,0 +1,23 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { ConfigurationsService } from './configurations.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MultilingualTranslationsService {
7
+ private translate;
8
+ private http;
9
+ private configSvc;
10
+ selectedLang: string;
11
+ languageSelected: BehaviorSubject<boolean>;
12
+ languageSelectedObservable: import("rxjs").Observable<boolean>;
13
+ editProfileDetails: string;
14
+ constructor(translate: TranslateService, http: HttpClient, configSvc: ConfigurationsService);
15
+ getLanguage(): void;
16
+ translateLabelWithoutspace(label: string, type: any, subtype: any): any;
17
+ translateLabel(label: string, type: any, subtype: any): any;
18
+ translateActualLabel(label: string, type: any, subtype: any): any;
19
+ editProfileDetailsAPI(data: any): import("rxjs").Observable<any>;
20
+ updatelanguageSelected(state: any, lang: any, userid: any): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultilingualTranslationsService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<MultilingualTranslationsService>;
23
+ }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NPSGridService {
4
+ private http;
5
+ private telemetryEvents;
6
+ updateTelemetryDataObservable: import("rxjs").Observable<boolean>;
7
+ constructor(http: HttpClient);
8
+ updateTelemetryData(state: boolean): void;
9
+ getFeedStatus(id: any): import("rxjs").Observable<any>;
10
+ getFormData(formid: any): import("rxjs").Observable<any>;
11
+ submitPlatformRating(req: any): import("rxjs").Observable<any>;
12
+ deleteFeed(req: any): import("rxjs").Observable<any>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<NPSGridService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<NPSGridService>;
15
+ }
@@ -0,0 +1,26 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import { WidgetContentService } from './widget-content.service';
3
+ import { ConfigurationsService } from './configurations.service';
4
+ import { EventService } from './event.service';
5
+ import { TelemetryService } from './telemetry.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SubapplicationRespondService {
8
+ private configSvc;
9
+ private contentSvc;
10
+ private activatedRoute;
11
+ private router;
12
+ private eventSvc;
13
+ private teleSvc;
14
+ subAppname: string;
15
+ continueLearningData: any;
16
+ contentWindowinfo: any;
17
+ loaded: boolean;
18
+ constructor(configSvc: ConfigurationsService, contentSvc: WidgetContentService, activatedRoute: ActivatedRoute, router: Router, eventSvc: EventService, teleSvc: TelemetryService);
19
+ loadedRespond(contentWindow: any, applicationName: string, id?: string): void;
20
+ continueLearningRespond(id: string, continueLearning: any): void;
21
+ telemetryEvents(tData: any): void;
22
+ unsubscribeResponse(): void;
23
+ changeContextrespond(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubapplicationRespondService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<SubapplicationRespondService>;
26
+ }
@@ -0,0 +1,59 @@
1
+ import { NsInstanceConfig } from './configurations.model';
2
+ import { ConfigurationsService } from './configurations.service';
3
+ import { WsEvents } from './event.model';
4
+ import { EventService } from './event.service';
5
+ import { LoggerService } from './logger.service';
6
+ import { Router } from '@angular/router';
7
+ import { NPSGridService } from './nps-grid.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class TelemetryService {
10
+ private configSvc;
11
+ private eventsSvc;
12
+ private logger;
13
+ private router;
14
+ private npsSvc;
15
+ previousUrl: string | null;
16
+ telemetryConfig: NsInstanceConfig.ITelemetryConfig | null;
17
+ pData: any;
18
+ contextCdata: never[];
19
+ isAnonymousTelemetry: boolean;
20
+ telArray: any;
21
+ externalApps: any;
22
+ environment: any;
23
+ constructor(configSvc: ConfigurationsService, eventsSvc: EventService, environment: any, logger: LoggerService, router: Router, npsSvc: NPSGridService);
24
+ private navigationStart;
25
+ get isAnonymousTelemetryRequired(): boolean;
26
+ private updateTelemetryConfig;
27
+ private initializeConfig;
28
+ get getTelemetrySessionId(): string;
29
+ get rootOrgId(): string;
30
+ triggerNPSUpdate(data: any): void;
31
+ start(edata: any, data: any, pageContext?: WsEvents.ITelemetryPageContext): void;
32
+ end(edata: any, data: any, pageContext?: WsEvents.ITelemetryPageContext): void;
33
+ audit(type: string, props: string, data: any): void;
34
+ heartbeat(type: string, id: string): void;
35
+ impression(data?: any, objectType?: any): void;
36
+ externalImpression(impressionData: any): void;
37
+ addCustomListenerForPlatformRating(): void;
38
+ addCustomListenerForGetStart(): void;
39
+ addCustomListener(): void;
40
+ addCustomImpressionListener(): void;
41
+ addTimeSpentListener(): void;
42
+ addCustomEventListener(): void;
43
+ addPlayerListener(): void;
44
+ addInteractListener(): void;
45
+ addFeedbackListener(): void;
46
+ addHearbeatListener(): void;
47
+ addSearchListener(): void;
48
+ getPageDetails(): {
49
+ pageid: string;
50
+ pageUrl: string;
51
+ pageUrlParts: string[];
52
+ refferUrl: string | null;
53
+ objectId: string | null;
54
+ module: string;
55
+ };
56
+ extractContentIdFromUrlParts(urlParts: string[]): string | null;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TelemetryService, never>;
58
+ static ɵprov: i0.ɵɵInjectableDeclaration<TelemetryService>;
59
+ }
@@ -0,0 +1,34 @@
1
+ export interface IUserPreference {
2
+ selectedTheme: string;
3
+ selectedFont: string;
4
+ selectedLocale: string;
5
+ isDarkMode: boolean;
6
+ isIntranetAllowed?: boolean;
7
+ isRTL: boolean;
8
+ colorPallet: string[];
9
+ defaultCardType: string;
10
+ pinnedApps: string;
11
+ selectedLangGroup?: string;
12
+ completedActivity: string[];
13
+ completedTour?: boolean;
14
+ profileSettings: string[];
15
+ }
16
+ export interface IPortalUrls {
17
+ igot: string;
18
+ spv: string;
19
+ mdo: string;
20
+ cbc: string;
21
+ cbp: string;
22
+ frac: string;
23
+ }
24
+ export interface IProfile {
25
+ showProfilePicture: boolean;
26
+ showUserInterest: boolean;
27
+ showKbFollowed: boolean;
28
+ showPlaylist: boolean;
29
+ showAuthoredByMe: boolean;
30
+ showReviewedByMe: boolean;
31
+ showBadgeDetails: boolean;
32
+ showBlogs: boolean;
33
+ showQnA: boolean;
34
+ }
@@ -0,0 +1,14 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { IUserPreference } from './user-preference.model';
3
+ import { ConfigurationsService } from './configurations.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class UserPreferenceService {
6
+ private http;
7
+ private configurationSvc;
8
+ constructor(http: HttpClient, configurationSvc: ConfigurationsService);
9
+ initialize(): void;
10
+ fetchUserPreference(): Promise<IUserPreference>;
11
+ saveUserPreference(changedUserPref?: Partial<IUserPreference>): Promise<boolean>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserPreferenceService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserPreferenceService>;
14
+ }
@@ -0,0 +1,34 @@
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { Router, ActivatedRoute } from '@angular/router';
5
+ import { WsEvents } from './event.model';
6
+ import * as i0 from "@angular/core";
7
+ interface IRecursiveData {
8
+ identifier: string;
9
+ children: null | IRecursiveData[];
10
+ }
11
+ export declare class UtilityService {
12
+ private http;
13
+ private platform;
14
+ private router;
15
+ private route;
16
+ currentRouteData: any[];
17
+ constructor(http: HttpClient, platform: Platform, router: Router, route: ActivatedRoute);
18
+ private getChildRouteData;
19
+ get randomId(): number;
20
+ getJson<T>(url: string): Observable<T>;
21
+ getLeafNodes<T extends IRecursiveData>(node: T, nodes: T[]): T[];
22
+ getPath<T extends IRecursiveData>(node: T, id: string): T[];
23
+ private hasPath;
24
+ get isMobile(): boolean;
25
+ get isIos(): boolean;
26
+ get isAndroid(): boolean;
27
+ get isAndroidApp(): boolean;
28
+ get iOsAppRef(): any;
29
+ setRouteData(data: any): void;
30
+ get routeData(): WsEvents.ITelemetryPageContext;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<UtilityService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<UtilityService>;
33
+ }
34
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { BreakpointObserver } from '@angular/cdk/layout';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ValueService {
5
+ private breakpointObserver;
6
+ constructor(breakpointObserver: BreakpointObserver);
7
+ isXSmall$: Observable<boolean>;
8
+ isLtMedium$: Observable<boolean>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValueService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ValueService>;
11
+ }