@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,526 @@
1
+ import { NsPage } from '../resolvers/page.model';
2
+ import { NsWidgetResolver } from './widget-resolver.model';
3
+ export declare namespace NsInstanceConfig {
4
+ export interface IConfig {
5
+ authoring: {
6
+ doUniqueCheck: boolean;
7
+ isMultiStepFlow: boolean;
8
+ allowExpiry: boolean;
9
+ allowRestore: boolean;
10
+ allowReview: boolean;
11
+ allowPublish: boolean;
12
+ allowRedo: boolean;
13
+ newDesign: boolean;
14
+ allowedContentType: string[];
15
+ urlPatternMatching: {
16
+ allowReplace: boolean;
17
+ source: string;
18
+ pattern: string;
19
+ allowIframe: boolean;
20
+ }[];
21
+ };
22
+ appSetup: boolean;
23
+ chatBotUrl: string;
24
+ defaultFontsize: string;
25
+ defaultThemeClass: string;
26
+ defaultLocale: string;
27
+ disablePidCheck?: boolean;
28
+ isMultilingualEnabled?: boolean;
29
+ fontSizes: IFontSize[];
30
+ isContentDownloadAvailable: boolean;
31
+ indexHtmlMeta: IIndexHtmlMeta;
32
+ keycloak: IKeycloak;
33
+ locals: ILocalsConfig[];
34
+ microsoft: IMicrosoft;
35
+ telemetryConfig: ITelemetryConfig;
36
+ themes: ITheme[];
37
+ logos: ILogos;
38
+ sources?: ISourceLogo[];
39
+ mailIds: IMailIds;
40
+ details: IDetails;
41
+ validMailIdExtensionsForMailMe: string[];
42
+ overrideThemeChanges: IOverrideThemeChanges;
43
+ defaultFeatureConfigs: {
44
+ error: string;
45
+ };
46
+ backgrounds: {
47
+ primaryNavBar: NsPage.INavBackground;
48
+ pageNavBar: NsPage.INavBackground;
49
+ };
50
+ featuredApps: string[];
51
+ primaryNavBarConfig: IPrimaryNavbarConfig;
52
+ org: string[];
53
+ rootOrg: string;
54
+ intranetIframeUrls?: string[];
55
+ showNavBarInSetup?: boolean;
56
+ intranetUrlToCheck?: string;
57
+ introVideo: IPath;
58
+ tourVideo: IPath;
59
+ isDownloadableSource?: IPath;
60
+ isDownloadableIosResource?: IPath;
61
+ isDownloadableAndroidResource?: IPath;
62
+ sourceFieldsUserAutocomplete?: string[];
63
+ forgotPasswordConfig?: IForgotPassword;
64
+ hubs: IHubs[];
65
+ courseContentPath?: string;
66
+ portalUrls: IPortalUrls | undefined;
67
+ positions: any;
68
+ websitelanguages: any[];
69
+ profileTimelyNudges: any;
70
+ npsCategory?: string;
71
+ compentency?: any;
72
+ }
73
+ export interface IPortalUrls {
74
+ igot: string;
75
+ spv: string;
76
+ mdo: string;
77
+ cbc: string;
78
+ cbp: string;
79
+ frac: string;
80
+ }
81
+ export interface IForgotPassword {
82
+ local?: string;
83
+ enterprise?: string;
84
+ social?: string;
85
+ }
86
+ export interface ISourceLogo {
87
+ sourceName?: string;
88
+ sourceId?: string;
89
+ logo?: string;
90
+ }
91
+ export interface IPath {
92
+ [key: string]: string;
93
+ }
94
+ export interface IHubs {
95
+ active: boolean;
96
+ desc: string;
97
+ hubname: string;
98
+ icon: string;
99
+ path: string;
100
+ order: number;
101
+ }
102
+ export interface IIndexHtmlMeta {
103
+ description?: string;
104
+ openSearchUrl?: string;
105
+ webmanifest: string;
106
+ xIcon?: string;
107
+ pngIcon?: string;
108
+ }
109
+ export interface IFontSize {
110
+ baseFontSize: string;
111
+ fontClass: string;
112
+ scale: number;
113
+ }
114
+ export interface IKeycloak {
115
+ defaultidpHint: 'E' | 'N' | 'S';
116
+ isLoginHidden: boolean;
117
+ bearerExcludedUrls: string[];
118
+ clientId: string;
119
+ key: string;
120
+ realm: string;
121
+ url: string;
122
+ changePasswordUrl?: string;
123
+ onLoad?: 'check-sso' | 'login-required';
124
+ }
125
+ export interface ILocalsConfig {
126
+ isAvailable: boolean;
127
+ isEnabled: boolean;
128
+ locals: string[];
129
+ path: string;
130
+ isRTL: boolean;
131
+ }
132
+ export interface IMicrosoft {
133
+ clientId: string;
134
+ defaultEmailId: string;
135
+ tenant: string;
136
+ validEmailExtensions: string[];
137
+ isConfigured: boolean;
138
+ }
139
+ export interface ITheme {
140
+ color: IThemeColor;
141
+ themeFile: string;
142
+ themeClass: string;
143
+ themeName: string;
144
+ }
145
+ export interface IThemeColor {
146
+ accent: string;
147
+ primary: string;
148
+ warn: string;
149
+ }
150
+ export interface IOverrideThemeChanges {
151
+ isEnabled: boolean;
152
+ desktop: IDesktop;
153
+ mWeb: IMWeb;
154
+ }
155
+ export interface IDesktop {
156
+ animationDuration: number;
157
+ logoUrl: string;
158
+ logoText: string;
159
+ logoDisplayTime: number;
160
+ backgroundTheme: string;
161
+ }
162
+ export interface IMWeb {
163
+ logoUrl: string;
164
+ logoText: string;
165
+ }
166
+ export interface ILogos {
167
+ app: string;
168
+ appTransparent: string;
169
+ appSecondary: string;
170
+ aboutFooter: string;
171
+ aboutHeader: string;
172
+ appBottomNav?: string;
173
+ company: string;
174
+ developedBy: string;
175
+ poweredBy: string;
176
+ defaultContent?: string;
177
+ defaultSourceLogo?: string;
178
+ landingLogo: string;
179
+ navbarLogo?: string;
180
+ playListLogo?: string;
181
+ thumpsUp?: string;
182
+ }
183
+ export interface IMailIds {
184
+ contactUs: string;
185
+ default: string;
186
+ support: string;
187
+ }
188
+ export interface IDetails {
189
+ appName: string;
190
+ }
191
+ export interface IPrimaryNavbarConfig {
192
+ mediumScreen: IPrimaryNavBarScreen;
193
+ smallScreen: IPrimaryNavBarScreen;
194
+ }
195
+ interface IPrimaryNavBarScreen {
196
+ left: IPrimaryNavBarSide[];
197
+ right: IPrimaryNavBarSide[];
198
+ }
199
+ interface IPrimaryNavBarSide {
200
+ type: 'widgetButton' | 'featureButton';
201
+ config: NsWidgetResolver.IRenderConfigWithAnyData | NsPage.INavLink;
202
+ }
203
+ export interface ITelemetryConfig {
204
+ pdata: {
205
+ id: string;
206
+ ver: string;
207
+ pid: string;
208
+ };
209
+ object: {
210
+ ver: string;
211
+ id: string | undefined;
212
+ };
213
+ uid: string | null;
214
+ authtoken?: string;
215
+ env: string;
216
+ channel: string;
217
+ batchsize: number;
218
+ host: string;
219
+ endpoint: string;
220
+ apislug: string;
221
+ sid: string;
222
+ publicEndpoint: string;
223
+ protectedEndpoint: string;
224
+ }
225
+ export {};
226
+ }
227
+ export declare namespace NsAppsConfig {
228
+ type TIconType = 'mat-icon' | 'url';
229
+ interface IAppsConfig {
230
+ groups: IGroup[];
231
+ features: {
232
+ [id: string]: IFeature;
233
+ };
234
+ tourGuide?: string[][];
235
+ }
236
+ interface IGroup {
237
+ id: string;
238
+ iconType: string;
239
+ icon: string;
240
+ keywords: string[];
241
+ name: string;
242
+ toolTip: string;
243
+ featureIds: string[];
244
+ stripBackground?: string;
245
+ hasRole: string[];
246
+ }
247
+ interface IFeature {
248
+ name: string;
249
+ id: string;
250
+ url: string;
251
+ permission: string | string[] | {
252
+ all: string[];
253
+ some: string[];
254
+ none: string[];
255
+ };
256
+ iconType: TIconType;
257
+ icon: string;
258
+ keywords: string[];
259
+ toolTip: string;
260
+ accessKey: string;
261
+ status?: 'earlyAccess' | 'live' | 'alpha' | 'beta';
262
+ shortName: string;
263
+ description?: string;
264
+ badgeEndpoint?: string;
265
+ mobileAppFunction?: string;
266
+ color?: string;
267
+ target?: string;
268
+ }
269
+ }
270
+ export declare namespace NsUser {
271
+ export interface IUserProfile {
272
+ userId: string;
273
+ email?: string;
274
+ departmentName?: string;
275
+ userName?: string;
276
+ firstName?: string;
277
+ surName?: string;
278
+ middleName?: string;
279
+ lastName?: string;
280
+ rootOrgId?: string;
281
+ rootOrgName?: string;
282
+ profileImage?: string;
283
+ givenName?: string;
284
+ country?: null | string;
285
+ unit?: string | null;
286
+ source_profile_picture?: null | string;
287
+ dealerCode?: null | string;
288
+ isManager?: boolean;
289
+ competencies?: any;
290
+ systemTopics?: any;
291
+ desiredTopics?: any;
292
+ desiredCompetencies?: any;
293
+ userRoles?: any;
294
+ profileUpdateCompletion?: number;
295
+ profileImageUrl?: string;
296
+ professionalDetails?: any;
297
+ webPortalLang?: any;
298
+ departmentImg?: any;
299
+ }
300
+ export interface INodebbUserProfile {
301
+ username: string;
302
+ email: string;
303
+ }
304
+ export interface IUserPidProfile {
305
+ kid_updated: boolean;
306
+ user: IUser;
307
+ }
308
+ export interface IUserPidProfileV2 {
309
+ kid_updated: boolean;
310
+ result: {
311
+ response: IUserV2;
312
+ };
313
+ }
314
+ export interface IUserPidProfileVer2 {
315
+ result: {
316
+ UserProfile: IUserVer2;
317
+ };
318
+ }
319
+ interface ISourceData {
320
+ GID: string;
321
+ SNAMPRE: string;
322
+ SNAMADD: string;
323
+ LASTNAME: string;
324
+ SN: string;
325
+ GIVENNAME: string;
326
+ NICKNAME: string;
327
+ PREFERREDSN: string;
328
+ PERSONALTITLE: string;
329
+ MOBILE: string;
330
+ MAIL: string;
331
+ DEPARTMENTTEXT: string;
332
+ COSTLOCATIONUNIT: string;
333
+ COSTLOCATION: string;
334
+ ORGID: string;
335
+ MGMTRESP: string;
336
+ UTC: string;
337
+ CNAMEENG: string;
338
+ LNAMEINT: string;
339
+ USERTYPE: string;
340
+ STATUS: string;
341
+ CONTRACTSTATUS: string;
342
+ }
343
+ interface IUser {
344
+ wid: string;
345
+ root_org: string;
346
+ org: string;
347
+ is_active?: any;
348
+ account_expiry_date?: any;
349
+ kid: string;
350
+ imported_source_name: string;
351
+ source_id: string;
352
+ username?: any;
353
+ first_name: string;
354
+ last_name: string;
355
+ middle_name?: any;
356
+ known_as: string;
357
+ salutation?: any;
358
+ email: string;
359
+ gender?: any;
360
+ dob?: any;
361
+ languages_known?: any;
362
+ preferred_language?: any;
363
+ source_profile_picture?: any;
364
+ residence_country: string;
365
+ residence_state?: any;
366
+ residence_city: string;
367
+ contact_phone_number_office?: any;
368
+ contact_phone_number_home?: any;
369
+ contact_phone_number_personal: string;
370
+ employement_status?: any;
371
+ contract_type?: any;
372
+ job_title?: any;
373
+ job_role?: any;
374
+ department_name: string;
375
+ unit_name?: any;
376
+ organization_location_country?: any;
377
+ organization_location_state?: any;
378
+ organization_location_city?: any;
379
+ time_inserted: Date;
380
+ time_updated: Date;
381
+ json_unmapped_fields?: any;
382
+ source_data: ISourceData;
383
+ }
384
+ interface IRootOrg {
385
+ dateTime: string;
386
+ preferredLanguage: string;
387
+ keys: {};
388
+ channel: string;
389
+ approvedBy: string;
390
+ description: string;
391
+ updatedDate: string;
392
+ addressId: string;
393
+ orgType: string;
394
+ provider: string;
395
+ orgCode: string;
396
+ locationId: string;
397
+ theme: string;
398
+ id: string;
399
+ isApproved: boolean;
400
+ communityId: string;
401
+ slug: string;
402
+ email: string;
403
+ isSSOEnabled: boolean;
404
+ thumbnail: string;
405
+ updatedBy: string;
406
+ orgName: string;
407
+ locationIds: [];
408
+ externalId: string;
409
+ isRootOrg: boolean;
410
+ rootOrgId: string;
411
+ imgUrl: string;
412
+ approvedDate: string;
413
+ orgTypeId: string;
414
+ homeUrl: string;
415
+ isDefault: boolean;
416
+ createdDate: string;
417
+ contactDetail: string;
418
+ parentOrgId: string;
419
+ createdBy: string;
420
+ hashTagId: string;
421
+ noOfMembers: string;
422
+ status: number;
423
+ }
424
+ interface IOrg {
425
+ updatedBy: string;
426
+ organisationId: string;
427
+ orgName: string;
428
+ addedByName: string;
429
+ addedBy: string;
430
+ roles: string[];
431
+ approvedBy: string;
432
+ updatedDate: string;
433
+ userId: string;
434
+ approvaldate: string;
435
+ isDeleted: boolean;
436
+ parentOrgId: string;
437
+ hashTagId: string;
438
+ isRejected: boolean;
439
+ position: string;
440
+ id: string;
441
+ orgjoindate: string;
442
+ isApproved: boolean;
443
+ orgLeftDate: string;
444
+ }
445
+ interface IUserV2 {
446
+ surName: any;
447
+ maskedPhone: string;
448
+ rootOrgName: string;
449
+ subject: [];
450
+ channel: string;
451
+ language: [];
452
+ updatedDate: string;
453
+ managedBy: string;
454
+ flagsValue: number;
455
+ id: string;
456
+ recoveryEmail: string;
457
+ identifier: string;
458
+ thumbnail: string;
459
+ profileVisibility: [];
460
+ updatedBy: string;
461
+ accesscode: string;
462
+ locationIds: [];
463
+ externalIds: [];
464
+ registryId: string;
465
+ rootOrgId: string;
466
+ prevUsedEmail: string;
467
+ firstName: string;
468
+ tncAcceptedOn: string;
469
+ phone: string;
470
+ dob: string;
471
+ grade: [];
472
+ currentLoginTime: string;
473
+ userType: string;
474
+ status: number;
475
+ lastName: string;
476
+ gender: string;
477
+ roles: string[];
478
+ prevUsedPhone: string;
479
+ stateValidated: boolean;
480
+ isDeleted: boolean;
481
+ organisations: IOrg[];
482
+ countryCode: string;
483
+ maskedEmail: string;
484
+ tempPassword: string;
485
+ email: string;
486
+ rootOrg: IRootOrg;
487
+ profileSummary: string;
488
+ phoneVerified: boolean;
489
+ recoveryPhone: string;
490
+ userName: string;
491
+ userId: string;
492
+ lastLoginTime: string;
493
+ emailVerified: true;
494
+ framework: {};
495
+ createdDate: string;
496
+ createdBy: string;
497
+ location: string;
498
+ tncAcceptedVersion: string;
499
+ }
500
+ interface IUserVer2 {
501
+ 'firstname': string;
502
+ 'motherTongue': string;
503
+ 'secondaryEmail': string;
504
+ 'gender': string;
505
+ '@type': string;
506
+ 'mobile': number;
507
+ 'middlename': string;
508
+ 'telephone': number;
509
+ 'osid': string;
510
+ 'primaryEmailType': string;
511
+ 'knownLanguages': ILanguages[];
512
+ 'wid': string;
513
+ 'nationality': string;
514
+ 'surname': string;
515
+ 'dob': string;
516
+ 'category': string;
517
+ 'primaryEmail': string;
518
+ 'maritalStatus': string;
519
+ 'residenceAddress': string;
520
+ 'result': any;
521
+ }
522
+ export interface ILanguages {
523
+ name: string;
524
+ }
525
+ export {};
526
+ }
@@ -0,0 +1,79 @@
1
+ import { NSProfileDataV3 } from '../models/profile-v3.models';
2
+ import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
3
+ import { NsPage } from '../resolvers/page.model';
4
+ import { NsAppsConfig, NsInstanceConfig, NsUser } from './configurations.model';
5
+ import { IPortalUrls, IUserPreference } from './user-preference.model';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ConfigurationsService {
8
+ constructor();
9
+ appSetup: boolean;
10
+ userUrl: string;
11
+ baseUrl: string;
12
+ sitePath: string;
13
+ hostPath: string;
14
+ userRoles: Set<string> | null;
15
+ userGroups: Set<string> | null;
16
+ restrictedFeatures: Set<string> | null;
17
+ restrictedWidgets: Set<string> | null;
18
+ instanceConfig: NsInstanceConfig.IConfig | null;
19
+ appsConfig: NsAppsConfig.IAppsConfig | null;
20
+ rootOrg: string | null;
21
+ courseContentPath?: string;
22
+ org: string[] | null;
23
+ activeOrg: string | null;
24
+ isProduction: boolean;
25
+ hasAcceptedTnc: boolean;
26
+ profileDetailsStatus: boolean;
27
+ isActive: boolean;
28
+ userPreference: IUserPreference | null;
29
+ userProfile: NsUser.IUserProfile | null;
30
+ userProfileV2: NsUser.IUserProfile | null;
31
+ nodebbUserProfile: NsUser.INodebbUserProfile | null;
32
+ unMappedUser: any;
33
+ isAuthenticated: boolean;
34
+ isNewUser: boolean;
35
+ portalUrls: IPortalUrls | undefined;
36
+ positions: any;
37
+ overrideThemeChanges: any;
38
+ profileTimelyNudges: any;
39
+ pinnedApps: BehaviorSubject<Set<string>>;
40
+ prefChangeNotifier: ReplaySubject<Partial<IUserPreference>>;
41
+ tourGuideNotifier: ReplaySubject<boolean>;
42
+ authChangeNotifier: ReplaySubject<boolean>;
43
+ private updateProfile;
44
+ updateProfileObservable: import("rxjs").Observable<boolean>;
45
+ updateTourGuide: BehaviorSubject<boolean>;
46
+ updateTourGuideObservable: import("rxjs").Observable<boolean>;
47
+ updatePlatformRating: BehaviorSubject<{
48
+ bottom: string;
49
+ }>;
50
+ updatePlatformRatingObservable$: import("rxjs").Observable<{
51
+ bottom: string;
52
+ }>;
53
+ languageTranslationFlag: Subject<unknown>;
54
+ activeThemeObject: NsInstanceConfig.ITheme | null;
55
+ activeFontObject: NsInstanceConfig.IFontSize | null;
56
+ isDarkMode: boolean;
57
+ isIntranetAllowed: boolean;
58
+ isRTL: boolean;
59
+ activeLocale: NsInstanceConfig.ILocalsConfig | null;
60
+ activeLocaleGroup: string;
61
+ completedActivity: string[] | null;
62
+ completedTour: boolean;
63
+ profileSettings: string[];
64
+ primaryNavBar: Partial<NsPage.INavBackground>;
65
+ pageNavBar: Partial<NsPage.INavBackground>;
66
+ primaryNavBarConfig: NsInstanceConfig.IPrimaryNavbarConfig | null;
67
+ welcomeTabs: NSProfileDataV3.IProfileTab | null;
68
+ compentency: any;
69
+ iGOTAIConfig: any;
70
+ cstoken: string;
71
+ netcoreConfig: any;
72
+ changeNavBarFullView: Subject<unknown>;
73
+ openExploreMenuForMWeb: Subject<unknown>;
74
+ updateGlobalProfile(state: boolean): void;
75
+ updateTourGuideMethod(state: boolean): void;
76
+ updatePlatformRatingMethod(state: any): void;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationsService, never>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationsService>;
79
+ }
@@ -0,0 +1,80 @@
1
+ import { NSSearch } from './widget-search.model';
2
+ import { NsContent } from './widget-content.model';
3
+ import { NsCardContent } from './card-content.model';
4
+ import { NsWidgetResolver } from './widget-resolver.model';
5
+ export declare namespace NsContentStripMultiple {
6
+ export interface IContentStripMultiple {
7
+ errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
8
+ loader?: boolean;
9
+ noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
10
+ strips: IContentStripUnit[];
11
+ isChannelStrip?: boolean;
12
+ }
13
+ export interface IContentStripUnit {
14
+ key: string;
15
+ title: string;
16
+ name?: string;
17
+ mode?: 'accordion';
18
+ info?: IStripInfo;
19
+ preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
20
+ postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
21
+ stripConfig?: IStripConfig;
22
+ canHideStrip?: boolean;
23
+ filters?: any[];
24
+ selectAll?: boolean | null;
25
+ request?: {
26
+ search?: NSSearch.ISearchRequest;
27
+ searchV6?: NSSearch.ISearchV6Request;
28
+ searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
29
+ api?: IStripRequestApi;
30
+ ids?: string[];
31
+ };
32
+ searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
33
+ stripBackground?: string;
34
+ noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
35
+ loader?: boolean;
36
+ errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
37
+ refreshEvent?: Record<'eventType' | 'from', string>;
38
+ fetchLikes?: boolean;
39
+ }
40
+ export interface IStripRequestApi {
41
+ path: string;
42
+ queryParams?: {
43
+ pageNo?: number;
44
+ pageSize?: number;
45
+ pageState?: string;
46
+ sourceFields?: string;
47
+ };
48
+ }
49
+ export interface IStripInfo {
50
+ mode: 'below' | 'popup' | 'modal';
51
+ visibilityMode?: 'hidden' | 'visible';
52
+ icon: {
53
+ icon: string;
54
+ scale: number;
55
+ style?: any;
56
+ };
57
+ widget: NsWidgetResolver.IRenderConfigWithAnyData;
58
+ }
59
+ interface IStripConfig {
60
+ cardSubType: NsCardContent.TCardSubType;
61
+ postCardForSearch?: boolean;
62
+ intranetMode?: 'greyOut' | 'hide';
63
+ deletedMode?: 'greyOut' | 'hide';
64
+ contentTags?: IContentTags;
65
+ }
66
+ export interface IContentTags {
67
+ daysSpan?: number;
68
+ excludeContentType?: NsContent.EContentTypes[];
69
+ excludeMimeType?: string[];
70
+ tag: string;
71
+ criteriaField: string;
72
+ }
73
+ export interface IContentStripResponseApi {
74
+ contents: NsContent.IContent[];
75
+ hasMore?: boolean;
76
+ pageState?: string;
77
+ totalHits?: number;
78
+ }
79
+ export {};
80
+ }