@sunbird-cb/utils-v2 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/bundles/sunbird-cb-utils-v2.umd.js +6940 -0
- package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -0
- package/bundles/sunbird-cb-utils-v2.umd.min.js +16 -0
- package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -0
- package/esm2015/lib/components/image-crop/image-crop.component.js +195 -0
- package/esm2015/lib/components/image-crop/image-crop.module.js +27 -0
- package/esm2015/lib/constants/features.enum.js +555 -0
- package/esm2015/lib/constants/instances.enum.js +5 -0
- package/esm2015/lib/constants/misc.constants.js +1 -0
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +87 -0
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +15 -0
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +38 -0
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +15 -0
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +92 -0
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +15 -0
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +68 -0
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +15 -0
- package/esm2015/lib/directives/navigation/navigation.directive.js +39 -0
- package/esm2015/lib/directives/navigation/navigation.module.js +15 -0
- package/esm2015/lib/directives/permission/permission.directive.js +11 -0
- package/esm2015/lib/directives/permission/permission.module.js +15 -0
- package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +9 -0
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +99 -0
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +19 -0
- package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +172 -0
- package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.js +19 -0
- package/esm2015/lib/helpers/logout/logout.component.js +90 -0
- package/esm2015/lib/helpers/logout/logout.module.js +20 -0
- package/esm2015/lib/models/profile-v3.models.js +104 -0
- package/esm2015/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.js +15 -0
- package/esm2015/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.js +94 -0
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +13 -0
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +59 -0
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +15 -0
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +33 -0
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +15 -0
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +43 -0
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +15 -0
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +79 -0
- package/esm2015/lib/pipes/pipe-email/pipe-email.module.js +15 -0
- package/esm2015/lib/pipes/pipe-email/pipe-email.pipe.js +12 -0
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +16 -0
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +38 -0
- package/esm2015/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.js +21 -0
- package/esm2015/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.js +15 -0
- package/esm2015/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.js +23 -0
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +15 -0
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +12 -0
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +15 -0
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +25 -0
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +15 -0
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +17 -0
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +15 -0
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +27 -0
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +15 -0
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +16 -0
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +15 -0
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +18 -0
- package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.module.js +15 -0
- package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +23 -0
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +15 -0
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +16 -0
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +15 -0
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +35 -0
- package/esm2015/lib/resolvers/explore-detail.resolver.js +89 -0
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +40 -0
- package/esm2015/lib/resolvers/module-name.resolver.js +38 -0
- package/esm2015/lib/resolvers/page-name.resolver.js +32 -0
- package/esm2015/lib/resolvers/page.constant.js +4 -0
- package/esm2015/lib/resolvers/page.model.js +48 -0
- package/esm2015/lib/resolvers/page.resolver.js +90 -0
- package/esm2015/lib/resolvers/resolver.model.js +6 -0
- package/esm2015/lib/services/auth-keycloak.service.js +266 -0
- package/esm2015/lib/services/auth-microsoft.service.js +196 -0
- package/esm2015/lib/services/card-content.model.js +31 -0
- package/esm2015/lib/services/configurations.model.js +548 -0
- package/esm2015/lib/services/configurations.service.js +140 -0
- package/esm2015/lib/services/content-strip-multiple.model.js +75 -0
- package/esm2015/lib/services/event.model.js +242 -0
- package/esm2015/lib/services/event.service.js +211 -0
- package/esm2015/lib/services/logger.service.js +55 -0
- package/esm2015/lib/services/ms-office.model.js +8 -0
- package/esm2015/lib/services/multilingual-translations.service.js +136 -0
- package/esm2015/lib/services/nps-grid.service.js +45 -0
- package/esm2015/lib/services/subapplication-respond.service.js +214 -0
- package/esm2015/lib/services/telemetry.service.js +621 -0
- package/esm2015/lib/services/user-preference.model.js +38 -0
- package/esm2015/lib/services/user-preference.service.js +90 -0
- package/esm2015/lib/services/utility.service.js +145 -0
- package/esm2015/lib/services/value.service.js +31 -0
- package/esm2015/lib/services/widget-content.model.js +373 -0
- package/esm2015/lib/services/widget-content.service.js +192 -0
- package/esm2015/lib/services/widget-resolver.model.js +57 -0
- package/esm2015/lib/services/widget-search.model.js +126 -0
- package/esm2015/public-api.js +80 -0
- package/esm2015/sunbird-cb-utils-v2.js +11 -0
- package/esm5/lib/components/image-crop/image-crop.component.js +200 -0
- package/esm5/lib/components/image-crop/image-crop.module.js +31 -0
- package/esm5/lib/constants/features.enum.js +555 -0
- package/esm5/lib/constants/instances.enum.js +5 -0
- package/esm5/lib/constants/misc.constants.js +1 -0
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +105 -0
- package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +19 -0
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +40 -0
- package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +19 -0
- package/esm5/lib/directives/image-responsive/image-responsive.directive.js +95 -0
- package/esm5/lib/directives/image-responsive/image-responsive.module.js +19 -0
- package/esm5/lib/directives/in-view-port/in-view-port.directive.js +73 -0
- package/esm5/lib/directives/in-view-port/in-view-port.module.js +19 -0
- package/esm5/lib/directives/navigation/navigation.directive.js +41 -0
- package/esm5/lib/directives/navigation/navigation.module.js +19 -0
- package/esm5/lib/directives/permission/permission.directive.js +14 -0
- package/esm5/lib/directives/permission/permission.module.js +19 -0
- package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +9 -0
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +103 -0
- package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +23 -0
- package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +177 -0
- package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -0
- package/esm5/lib/helpers/logout/logout.component.js +96 -0
- package/esm5/lib/helpers/logout/logout.module.js +24 -0
- package/esm5/lib/models/profile-v3.models.js +104 -0
- package/esm5/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.js +19 -0
- package/esm5/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.js +96 -0
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +17 -0
- package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +63 -0
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +19 -0
- package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +37 -0
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +19 -0
- package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +45 -0
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +19 -0
- package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +83 -0
- package/esm5/lib/pipes/pipe-email/pipe-email.module.js +19 -0
- package/esm5/lib/pipes/pipe-email/pipe-email.pipe.js +16 -0
- package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +20 -0
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +46 -0
- package/esm5/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.js +25 -0
- package/esm5/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.js +19 -0
- package/esm5/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.js +31 -0
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +19 -0
- package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +16 -0
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +19 -0
- package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +30 -0
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +19 -0
- package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +21 -0
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +19 -0
- package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +31 -0
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +19 -0
- package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +18 -0
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +19 -0
- package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +34 -0
- package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.module.js +19 -0
- package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +25 -0
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +19 -0
- package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +20 -0
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +19 -0
- package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +38 -0
- package/esm5/lib/resolvers/explore-detail.resolver.js +93 -0
- package/esm5/lib/resolvers/marketing-offering.resolve.js +43 -0
- package/esm5/lib/resolvers/module-name.resolver.js +40 -0
- package/esm5/lib/resolvers/page-name.resolver.js +35 -0
- package/esm5/lib/resolvers/page.constant.js +4 -0
- package/esm5/lib/resolvers/page.model.js +48 -0
- package/esm5/lib/resolvers/page.resolver.js +98 -0
- package/esm5/lib/resolvers/resolver.model.js +6 -0
- package/esm5/lib/services/auth-keycloak.service.js +347 -0
- package/esm5/lib/services/auth-microsoft.service.js +251 -0
- package/esm5/lib/services/card-content.model.js +31 -0
- package/esm5/lib/services/configurations.model.js +548 -0
- package/esm5/lib/services/configurations.service.js +142 -0
- package/esm5/lib/services/content-strip-multiple.model.js +75 -0
- package/esm5/lib/services/event.model.js +242 -0
- package/esm5/lib/services/event.service.js +215 -0
- package/esm5/lib/services/logger.service.js +73 -0
- package/esm5/lib/services/ms-office.model.js +8 -0
- package/esm5/lib/services/multilingual-translations.service.js +138 -0
- package/esm5/lib/services/nps-grid.service.js +47 -0
- package/esm5/lib/services/subapplication-respond.service.js +219 -0
- package/esm5/lib/services/telemetry.service.js +670 -0
- package/esm5/lib/services/user-preference.model.js +38 -0
- package/esm5/lib/services/user-preference.service.js +109 -0
- package/esm5/lib/services/utility.service.js +178 -0
- package/esm5/lib/services/value.service.js +33 -0
- package/esm5/lib/services/widget-content.model.js +373 -0
- package/esm5/lib/services/widget-content.service.js +214 -0
- package/esm5/lib/services/widget-resolver.model.js +57 -0
- package/esm5/lib/services/widget-search.model.js +126 -0
- package/esm5/public-api.js +80 -0
- package/esm5/sunbird-cb-utils-v2.js +11 -0
- package/fesm2015/sunbird-cb-utils-v2.js +6160 -0
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -0
- package/fesm5/sunbird-cb-utils-v2.js +6649 -0
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -0
- package/lib/components/image-crop/image-crop.component.d.ts +56 -0
- package/lib/components/image-crop/image-crop.module.d.ts +2 -0
- package/lib/constants/features.enum.d.ts +553 -0
- package/lib/constants/instances.enum.d.ts +3 -0
- package/lib/constants/misc.constants.d.ts +2 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +18 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +2 -0
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -0
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +2 -0
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +17 -0
- package/lib/directives/image-responsive/image-responsive.module.d.ts +2 -0
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +11 -0
- package/lib/directives/in-view-port/in-view-port.module.d.ts +2 -0
- package/lib/directives/navigation/navigation.directive.d.ts +9 -0
- package/lib/directives/navigation/navigation.module.d.ts +2 -0
- package/lib/directives/permission/permission.directive.d.ts +3 -0
- package/lib/directives/permission/permission.module.d.ts +2 -0
- package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +18 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +2 -0
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +31 -0
- package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -0
- package/lib/helpers/logout/logout.component.d.ts +20 -0
- package/lib/helpers/logout/logout.module.d.ts +2 -0
- package/lib/models/profile-v3.models.d.ts +91 -0
- package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.d.ts +2 -0
- package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.d.ts +6 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +2 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +10 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +2 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +4 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +2 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +13 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -0
- package/lib/pipes/pipe-email/pipe-email.module.d.ts +2 -0
- package/lib/pipes/pipe-email/pipe-email.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +2 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +2 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.d.ts +2 -0
- package/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.d.ts +4 -0
- package/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.d.ts +2 -0
- package/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.d.ts +4 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +2 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +4 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +2 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +4 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +2 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +4 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +2 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +9 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +2 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +9 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +2 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +4 -0
- package/lib/pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -0
- package/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +2 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +4 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +2 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +7 -0
- package/lib/resolvers/explore-detail.resolver.d.ts +16 -0
- package/lib/resolvers/marketing-offering.resolve.d.ts +10 -0
- package/lib/resolvers/module-name.resolver.d.ts +6 -0
- package/lib/resolvers/page-name.resolver.d.ts +5 -0
- package/lib/resolvers/page.constant.d.ts +1 -0
- package/lib/resolvers/page.model.d.ts +41 -0
- package/lib/resolvers/page.resolver.d.ts +17 -0
- package/lib/resolvers/resolver.model.d.ts +4 -0
- package/lib/services/auth-keycloak.service.d.ts +31 -0
- package/lib/services/auth-microsoft.service.d.ts +30 -0
- package/lib/services/card-content.model.d.ts +29 -0
- package/lib/services/configurations.model.d.ts +521 -0
- package/lib/services/configurations.service.d.ts +73 -0
- package/lib/services/content-strip-multiple.model.d.ts +79 -0
- package/lib/services/event.model.d.ts +205 -0
- package/lib/services/event.service.d.ts +30 -0
- package/lib/services/logger.service.d.ts +15 -0
- package/lib/services/ms-office.model.d.ts +6 -0
- package/lib/services/multilingual-translations.service.d.ts +20 -0
- package/lib/services/nps-grid.service.d.ts +12 -0
- package/lib/services/subapplication-respond.service.d.ts +23 -0
- package/lib/services/telemetry.service.d.ts +56 -0
- package/lib/services/user-preference.model.d.ts +34 -0
- package/lib/services/user-preference.service.d.ts +11 -0
- package/lib/services/utility.service.d.ts +31 -0
- package/lib/services/value.service.d.ts +8 -0
- package/lib/services/widget-content.model.d.ts +344 -0
- package/lib/services/widget-content.service.d.ts +47 -0
- package/lib/services/widget-resolver.model.d.ts +48 -0
- package/lib/services/widget-search.model.d.ts +114 -0
- package/package.json +35 -0
- package/public-api.d.ts +79 -0
- package/sunbird-cb-utils-v2.d.ts +10 -0
- package/sunbird-cb-utils-v2.metadata.json +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { KeycloakService } from 'keycloak-angular';
|
|
3
|
+
import { AuthMicrosoftService } from './auth-microsoft.service';
|
|
4
|
+
import { ConfigurationsService } from './configurations.service';
|
|
5
|
+
export declare class AuthKeycloakService {
|
|
6
|
+
private http;
|
|
7
|
+
private configSvc;
|
|
8
|
+
private keycloakSvc;
|
|
9
|
+
private msAuthSvc;
|
|
10
|
+
private loginChangeSubject;
|
|
11
|
+
constructor(http: HttpClient, configSvc: ConfigurationsService, keycloakSvc: KeycloakService, msAuthSvc: AuthMicrosoftService);
|
|
12
|
+
readonly isLoggedIn$: import("rxjs").Observable<boolean>;
|
|
13
|
+
readonly isLoggedIn: Promise<boolean>;
|
|
14
|
+
readonly isAuthenticated: boolean | undefined;
|
|
15
|
+
readonly token: string | undefined;
|
|
16
|
+
readonly sessionId: string | undefined;
|
|
17
|
+
readonly userId: string | undefined;
|
|
18
|
+
readonly userEmail: string | undefined;
|
|
19
|
+
readonly userName: string | undefined;
|
|
20
|
+
initAuth(): Promise<boolean>;
|
|
21
|
+
login(idpHint?: 'E' | 'N' | 'S', redirectUrl?: string): Promise<void>;
|
|
22
|
+
loginV2(_idpHint?: 'E' | 'N' | 'S', redirectUrl?: string): Promise<void>;
|
|
23
|
+
register(redirectUrl?: string): Promise<void>;
|
|
24
|
+
logout(redirectUrl?: string): Promise<void>;
|
|
25
|
+
force_logout(): Promise<void>;
|
|
26
|
+
private addKeycloakEventListener;
|
|
27
|
+
private setupGlobalAuthResponder;
|
|
28
|
+
private saveKeycloakConfig;
|
|
29
|
+
private getSavedKcConfig;
|
|
30
|
+
private readonly defaultRedirectUrl;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LoggerService } from './logger.service';
|
|
2
|
+
import { NsInstanceConfig } from './configurations.model';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { IWsMsTokenModelResponse } from './ms-office.model';
|
|
5
|
+
export declare class AuthMicrosoftService {
|
|
6
|
+
private loggerSvc;
|
|
7
|
+
private http;
|
|
8
|
+
private msConfig;
|
|
9
|
+
private emailUsed;
|
|
10
|
+
private code;
|
|
11
|
+
private msToken;
|
|
12
|
+
constructor(loggerSvc: LoggerService, http: HttpClient);
|
|
13
|
+
readonly isLogoutRequired: boolean;
|
|
14
|
+
readonly loginUrl: string | null;
|
|
15
|
+
logoutUrl(redirectUrl: string): string;
|
|
16
|
+
init(config: Pick<NsInstanceConfig.IConfig, 'microsoft'>): Promise<void>;
|
|
17
|
+
login(email: string): Promise<void>;
|
|
18
|
+
getToken(email: string): Promise<string>;
|
|
19
|
+
loginForSSOEnabledEmbed(email: string): void;
|
|
20
|
+
isValidEmail(email: string): boolean;
|
|
21
|
+
isValid(accessToken: string | undefined, expiresOn: string | undefined): boolean;
|
|
22
|
+
exchangeTokenForCode(code: string, redirectUrl: string): Promise<any>;
|
|
23
|
+
getTokenForEmail(email: string): Promise<any>;
|
|
24
|
+
getInstanceFromResponse(token: IWsMsTokenModelResponse): {
|
|
25
|
+
accessToken: string | undefined;
|
|
26
|
+
expiresOn: string | undefined;
|
|
27
|
+
resource: string | undefined;
|
|
28
|
+
tokenType: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NsContent } from '../services/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
|
+
}
|
|
15
|
+
interface IContentTags {
|
|
16
|
+
daysSpan?: number;
|
|
17
|
+
excludeContentType?: NsContent.EContentTypes[];
|
|
18
|
+
excludeMimeType?: string[];
|
|
19
|
+
tag: string;
|
|
20
|
+
criteriaField?: string;
|
|
21
|
+
}
|
|
22
|
+
type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'card-user-details' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card';
|
|
23
|
+
enum EContentStatus {
|
|
24
|
+
LIVE = "Live",
|
|
25
|
+
EXPIRED = "Expired",
|
|
26
|
+
DELETED = "Deleted",
|
|
27
|
+
MARK_FOR_DELETION = "MarkedForDeletion"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
import { NsPage } from '../resolvers/page.model';
|
|
2
|
+
import { NsWidgetResolver } from './widget-resolver.model';
|
|
3
|
+
export declare namespace NsInstanceConfig {
|
|
4
|
+
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
|
+
}
|
|
71
|
+
interface IPortalUrls {
|
|
72
|
+
igot: string;
|
|
73
|
+
spv: string;
|
|
74
|
+
mdo: string;
|
|
75
|
+
cbc: string;
|
|
76
|
+
cbp: string;
|
|
77
|
+
frac: string;
|
|
78
|
+
}
|
|
79
|
+
interface IForgotPassword {
|
|
80
|
+
local?: string;
|
|
81
|
+
enterprise?: string;
|
|
82
|
+
social?: string;
|
|
83
|
+
}
|
|
84
|
+
interface ISourceLogo {
|
|
85
|
+
sourceName?: string;
|
|
86
|
+
sourceId?: string;
|
|
87
|
+
logo?: string;
|
|
88
|
+
}
|
|
89
|
+
interface IPath {
|
|
90
|
+
[key: string]: string;
|
|
91
|
+
}
|
|
92
|
+
interface IHubs {
|
|
93
|
+
active: boolean;
|
|
94
|
+
desc: string;
|
|
95
|
+
hubname: string;
|
|
96
|
+
icon: string;
|
|
97
|
+
path: string;
|
|
98
|
+
order: number;
|
|
99
|
+
}
|
|
100
|
+
interface IIndexHtmlMeta {
|
|
101
|
+
description?: string;
|
|
102
|
+
openSearchUrl?: string;
|
|
103
|
+
webmanifest: string;
|
|
104
|
+
xIcon?: string;
|
|
105
|
+
pngIcon?: string;
|
|
106
|
+
}
|
|
107
|
+
interface IFontSize {
|
|
108
|
+
baseFontSize: string;
|
|
109
|
+
fontClass: string;
|
|
110
|
+
scale: number;
|
|
111
|
+
}
|
|
112
|
+
interface IKeycloak {
|
|
113
|
+
defaultidpHint: 'E' | 'N' | 'S';
|
|
114
|
+
isLoginHidden: boolean;
|
|
115
|
+
bearerExcludedUrls: string[];
|
|
116
|
+
clientId: string;
|
|
117
|
+
key: string;
|
|
118
|
+
realm: string;
|
|
119
|
+
url: string;
|
|
120
|
+
changePasswordUrl?: string;
|
|
121
|
+
onLoad?: 'check-sso' | 'login-required';
|
|
122
|
+
}
|
|
123
|
+
interface ILocalsConfig {
|
|
124
|
+
isAvailable: boolean;
|
|
125
|
+
isEnabled: boolean;
|
|
126
|
+
locals: string[];
|
|
127
|
+
path: string;
|
|
128
|
+
isRTL: boolean;
|
|
129
|
+
}
|
|
130
|
+
interface IMicrosoft {
|
|
131
|
+
clientId: string;
|
|
132
|
+
defaultEmailId: string;
|
|
133
|
+
tenant: string;
|
|
134
|
+
validEmailExtensions: string[];
|
|
135
|
+
isConfigured: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface ITheme {
|
|
138
|
+
color: IThemeColor;
|
|
139
|
+
themeFile: string;
|
|
140
|
+
themeClass: string;
|
|
141
|
+
themeName: string;
|
|
142
|
+
}
|
|
143
|
+
interface IThemeColor {
|
|
144
|
+
accent: string;
|
|
145
|
+
primary: string;
|
|
146
|
+
warn: string;
|
|
147
|
+
}
|
|
148
|
+
interface IOverrideThemeChanges {
|
|
149
|
+
isEnabled: boolean;
|
|
150
|
+
desktop: IDesktop;
|
|
151
|
+
mWeb: IMWeb;
|
|
152
|
+
}
|
|
153
|
+
interface IDesktop {
|
|
154
|
+
animationDuration: number;
|
|
155
|
+
logoUrl: string;
|
|
156
|
+
logoText: string;
|
|
157
|
+
logoDisplayTime: number;
|
|
158
|
+
backgroundTheme: string;
|
|
159
|
+
}
|
|
160
|
+
interface IMWeb {
|
|
161
|
+
logoUrl: string;
|
|
162
|
+
logoText: string;
|
|
163
|
+
}
|
|
164
|
+
interface ILogos {
|
|
165
|
+
app: string;
|
|
166
|
+
appTransparent: string;
|
|
167
|
+
appSecondary: string;
|
|
168
|
+
aboutFooter: string;
|
|
169
|
+
aboutHeader: string;
|
|
170
|
+
appBottomNav?: string;
|
|
171
|
+
company: string;
|
|
172
|
+
developedBy: string;
|
|
173
|
+
poweredBy: string;
|
|
174
|
+
defaultContent?: string;
|
|
175
|
+
defaultSourceLogo?: string;
|
|
176
|
+
landingLogo: string;
|
|
177
|
+
navbarLogo?: string;
|
|
178
|
+
playListLogo?: string;
|
|
179
|
+
thumpsUp?: string;
|
|
180
|
+
}
|
|
181
|
+
interface IMailIds {
|
|
182
|
+
contactUs: string;
|
|
183
|
+
default: string;
|
|
184
|
+
support: string;
|
|
185
|
+
}
|
|
186
|
+
interface IDetails {
|
|
187
|
+
appName: string;
|
|
188
|
+
}
|
|
189
|
+
interface IPrimaryNavbarConfig {
|
|
190
|
+
mediumScreen: IPrimaryNavBarScreen;
|
|
191
|
+
smallScreen: IPrimaryNavBarScreen;
|
|
192
|
+
}
|
|
193
|
+
interface IPrimaryNavBarScreen {
|
|
194
|
+
left: IPrimaryNavBarSide[];
|
|
195
|
+
right: IPrimaryNavBarSide[];
|
|
196
|
+
}
|
|
197
|
+
interface IPrimaryNavBarSide {
|
|
198
|
+
type: 'widgetButton' | 'featureButton';
|
|
199
|
+
config: NsWidgetResolver.IRenderConfigWithAnyData | NsPage.INavLink;
|
|
200
|
+
}
|
|
201
|
+
interface ITelemetryConfig {
|
|
202
|
+
pdata: {
|
|
203
|
+
id: string;
|
|
204
|
+
ver: string;
|
|
205
|
+
pid: string;
|
|
206
|
+
};
|
|
207
|
+
object: {
|
|
208
|
+
ver: string;
|
|
209
|
+
id: string | undefined;
|
|
210
|
+
};
|
|
211
|
+
uid: string | null;
|
|
212
|
+
authtoken?: string;
|
|
213
|
+
env: string;
|
|
214
|
+
channel: string;
|
|
215
|
+
batchsize: number;
|
|
216
|
+
host: string;
|
|
217
|
+
endpoint: string;
|
|
218
|
+
apislug: string;
|
|
219
|
+
sid: string;
|
|
220
|
+
publicEndpoint: string;
|
|
221
|
+
protectedEndpoint: string;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export declare namespace NsAppsConfig {
|
|
225
|
+
type TIconType = 'mat-icon' | 'url';
|
|
226
|
+
interface IAppsConfig {
|
|
227
|
+
groups: IGroup[];
|
|
228
|
+
features: {
|
|
229
|
+
[id: string]: IFeature;
|
|
230
|
+
};
|
|
231
|
+
tourGuide?: string[][];
|
|
232
|
+
}
|
|
233
|
+
interface IGroup {
|
|
234
|
+
id: string;
|
|
235
|
+
iconType: string;
|
|
236
|
+
icon: string;
|
|
237
|
+
keywords: string[];
|
|
238
|
+
name: string;
|
|
239
|
+
toolTip: string;
|
|
240
|
+
featureIds: string[];
|
|
241
|
+
stripBackground?: string;
|
|
242
|
+
hasRole: string[];
|
|
243
|
+
}
|
|
244
|
+
interface IFeature {
|
|
245
|
+
name: string;
|
|
246
|
+
id: string;
|
|
247
|
+
url: string;
|
|
248
|
+
permission: string | string[] | {
|
|
249
|
+
all: string[];
|
|
250
|
+
some: string[];
|
|
251
|
+
none: string[];
|
|
252
|
+
};
|
|
253
|
+
iconType: TIconType;
|
|
254
|
+
icon: string;
|
|
255
|
+
keywords: string[];
|
|
256
|
+
toolTip: string;
|
|
257
|
+
accessKey: string;
|
|
258
|
+
status?: 'earlyAccess' | 'live' | 'alpha' | 'beta';
|
|
259
|
+
shortName: string;
|
|
260
|
+
description?: string;
|
|
261
|
+
badgeEndpoint?: string;
|
|
262
|
+
mobileAppFunction?: string;
|
|
263
|
+
color?: string;
|
|
264
|
+
target?: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
export declare namespace NsUser {
|
|
268
|
+
interface IUserProfile {
|
|
269
|
+
userId: string;
|
|
270
|
+
email?: string;
|
|
271
|
+
departmentName?: string;
|
|
272
|
+
userName?: string;
|
|
273
|
+
firstName?: string;
|
|
274
|
+
surName?: string;
|
|
275
|
+
middleName?: string;
|
|
276
|
+
lastName?: string;
|
|
277
|
+
rootOrgId?: string;
|
|
278
|
+
rootOrgName?: string;
|
|
279
|
+
profileImage?: string;
|
|
280
|
+
givenName?: string;
|
|
281
|
+
country?: null | string;
|
|
282
|
+
unit?: string | null;
|
|
283
|
+
source_profile_picture?: null | string;
|
|
284
|
+
dealerCode?: null | string;
|
|
285
|
+
isManager?: boolean;
|
|
286
|
+
competencies?: any;
|
|
287
|
+
systemTopics?: any;
|
|
288
|
+
desiredTopics?: any;
|
|
289
|
+
desiredCompetencies?: any;
|
|
290
|
+
userRoles?: any;
|
|
291
|
+
profileUpdateCompletion?: number;
|
|
292
|
+
profileImageUrl?: string;
|
|
293
|
+
professionalDetails?: any;
|
|
294
|
+
webPortalLang?: any;
|
|
295
|
+
}
|
|
296
|
+
interface INodebbUserProfile {
|
|
297
|
+
username: string;
|
|
298
|
+
email: string;
|
|
299
|
+
}
|
|
300
|
+
interface IUserPidProfile {
|
|
301
|
+
kid_updated: boolean;
|
|
302
|
+
user: IUser;
|
|
303
|
+
}
|
|
304
|
+
interface IUserPidProfileV2 {
|
|
305
|
+
kid_updated: boolean;
|
|
306
|
+
result: {
|
|
307
|
+
response: IUserV2;
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
interface IUserPidProfileVer2 {
|
|
311
|
+
result: {
|
|
312
|
+
UserProfile: IUserVer2;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
interface ISourceData {
|
|
316
|
+
GID: string;
|
|
317
|
+
SNAMPRE: string;
|
|
318
|
+
SNAMADD: string;
|
|
319
|
+
LASTNAME: string;
|
|
320
|
+
SN: string;
|
|
321
|
+
GIVENNAME: string;
|
|
322
|
+
NICKNAME: string;
|
|
323
|
+
PREFERREDSN: string;
|
|
324
|
+
PERSONALTITLE: string;
|
|
325
|
+
MOBILE: string;
|
|
326
|
+
MAIL: string;
|
|
327
|
+
DEPARTMENTTEXT: string;
|
|
328
|
+
COSTLOCATIONUNIT: string;
|
|
329
|
+
COSTLOCATION: string;
|
|
330
|
+
ORGID: string;
|
|
331
|
+
MGMTRESP: string;
|
|
332
|
+
UTC: string;
|
|
333
|
+
CNAMEENG: string;
|
|
334
|
+
LNAMEINT: string;
|
|
335
|
+
USERTYPE: string;
|
|
336
|
+
STATUS: string;
|
|
337
|
+
CONTRACTSTATUS: string;
|
|
338
|
+
}
|
|
339
|
+
interface IUser {
|
|
340
|
+
wid: string;
|
|
341
|
+
root_org: string;
|
|
342
|
+
org: string;
|
|
343
|
+
is_active?: any;
|
|
344
|
+
account_expiry_date?: any;
|
|
345
|
+
kid: string;
|
|
346
|
+
imported_source_name: string;
|
|
347
|
+
source_id: string;
|
|
348
|
+
username?: any;
|
|
349
|
+
first_name: string;
|
|
350
|
+
last_name: string;
|
|
351
|
+
middle_name?: any;
|
|
352
|
+
known_as: string;
|
|
353
|
+
salutation?: any;
|
|
354
|
+
email: string;
|
|
355
|
+
gender?: any;
|
|
356
|
+
dob?: any;
|
|
357
|
+
languages_known?: any;
|
|
358
|
+
preferred_language?: any;
|
|
359
|
+
source_profile_picture?: any;
|
|
360
|
+
residence_country: string;
|
|
361
|
+
residence_state?: any;
|
|
362
|
+
residence_city: string;
|
|
363
|
+
contact_phone_number_office?: any;
|
|
364
|
+
contact_phone_number_home?: any;
|
|
365
|
+
contact_phone_number_personal: string;
|
|
366
|
+
employement_status?: any;
|
|
367
|
+
contract_type?: any;
|
|
368
|
+
job_title?: any;
|
|
369
|
+
job_role?: any;
|
|
370
|
+
department_name: string;
|
|
371
|
+
unit_name?: any;
|
|
372
|
+
organization_location_country?: any;
|
|
373
|
+
organization_location_state?: any;
|
|
374
|
+
organization_location_city?: any;
|
|
375
|
+
time_inserted: Date;
|
|
376
|
+
time_updated: Date;
|
|
377
|
+
json_unmapped_fields?: any;
|
|
378
|
+
source_data: ISourceData;
|
|
379
|
+
}
|
|
380
|
+
interface IRootOrg {
|
|
381
|
+
dateTime: string;
|
|
382
|
+
preferredLanguage: string;
|
|
383
|
+
keys: {};
|
|
384
|
+
channel: string;
|
|
385
|
+
approvedBy: string;
|
|
386
|
+
description: string;
|
|
387
|
+
updatedDate: string;
|
|
388
|
+
addressId: string;
|
|
389
|
+
orgType: string;
|
|
390
|
+
provider: string;
|
|
391
|
+
orgCode: string;
|
|
392
|
+
locationId: string;
|
|
393
|
+
theme: string;
|
|
394
|
+
id: string;
|
|
395
|
+
isApproved: boolean;
|
|
396
|
+
communityId: string;
|
|
397
|
+
slug: string;
|
|
398
|
+
email: string;
|
|
399
|
+
isSSOEnabled: boolean;
|
|
400
|
+
thumbnail: string;
|
|
401
|
+
updatedBy: string;
|
|
402
|
+
orgName: string;
|
|
403
|
+
locationIds: [];
|
|
404
|
+
externalId: string;
|
|
405
|
+
isRootOrg: boolean;
|
|
406
|
+
rootOrgId: string;
|
|
407
|
+
imgUrl: string;
|
|
408
|
+
approvedDate: string;
|
|
409
|
+
orgTypeId: string;
|
|
410
|
+
homeUrl: string;
|
|
411
|
+
isDefault: boolean;
|
|
412
|
+
createdDate: string;
|
|
413
|
+
contactDetail: string;
|
|
414
|
+
parentOrgId: string;
|
|
415
|
+
createdBy: string;
|
|
416
|
+
hashTagId: string;
|
|
417
|
+
noOfMembers: string;
|
|
418
|
+
status: number;
|
|
419
|
+
}
|
|
420
|
+
interface IOrg {
|
|
421
|
+
updatedBy: string;
|
|
422
|
+
organisationId: string;
|
|
423
|
+
orgName: string;
|
|
424
|
+
addedByName: string;
|
|
425
|
+
addedBy: string;
|
|
426
|
+
roles: string[];
|
|
427
|
+
approvedBy: string;
|
|
428
|
+
updatedDate: string;
|
|
429
|
+
userId: string;
|
|
430
|
+
approvaldate: string;
|
|
431
|
+
isDeleted: boolean;
|
|
432
|
+
parentOrgId: string;
|
|
433
|
+
hashTagId: string;
|
|
434
|
+
isRejected: boolean;
|
|
435
|
+
position: string;
|
|
436
|
+
id: string;
|
|
437
|
+
orgjoindate: string;
|
|
438
|
+
isApproved: boolean;
|
|
439
|
+
orgLeftDate: string;
|
|
440
|
+
}
|
|
441
|
+
interface IUserV2 {
|
|
442
|
+
surName: any;
|
|
443
|
+
maskedPhone: string;
|
|
444
|
+
rootOrgName: string;
|
|
445
|
+
subject: [];
|
|
446
|
+
channel: string;
|
|
447
|
+
language: [];
|
|
448
|
+
updatedDate: string;
|
|
449
|
+
managedBy: string;
|
|
450
|
+
flagsValue: number;
|
|
451
|
+
id: string;
|
|
452
|
+
recoveryEmail: string;
|
|
453
|
+
identifier: string;
|
|
454
|
+
thumbnail: string;
|
|
455
|
+
profileVisibility: [];
|
|
456
|
+
updatedBy: string;
|
|
457
|
+
accesscode: string;
|
|
458
|
+
locationIds: [];
|
|
459
|
+
externalIds: [];
|
|
460
|
+
registryId: string;
|
|
461
|
+
rootOrgId: string;
|
|
462
|
+
prevUsedEmail: string;
|
|
463
|
+
firstName: string;
|
|
464
|
+
tncAcceptedOn: string;
|
|
465
|
+
phone: string;
|
|
466
|
+
dob: string;
|
|
467
|
+
grade: [];
|
|
468
|
+
currentLoginTime: string;
|
|
469
|
+
userType: string;
|
|
470
|
+
status: number;
|
|
471
|
+
lastName: string;
|
|
472
|
+
gender: string;
|
|
473
|
+
roles: string[];
|
|
474
|
+
prevUsedPhone: string;
|
|
475
|
+
stateValidated: boolean;
|
|
476
|
+
isDeleted: boolean;
|
|
477
|
+
organisations: IOrg[];
|
|
478
|
+
countryCode: string;
|
|
479
|
+
maskedEmail: string;
|
|
480
|
+
tempPassword: string;
|
|
481
|
+
email: string;
|
|
482
|
+
rootOrg: IRootOrg;
|
|
483
|
+
profileSummary: string;
|
|
484
|
+
phoneVerified: boolean;
|
|
485
|
+
recoveryPhone: string;
|
|
486
|
+
userName: string;
|
|
487
|
+
userId: string;
|
|
488
|
+
lastLoginTime: string;
|
|
489
|
+
emailVerified: true;
|
|
490
|
+
framework: {};
|
|
491
|
+
createdDate: string;
|
|
492
|
+
createdBy: string;
|
|
493
|
+
location: string;
|
|
494
|
+
tncAcceptedVersion: string;
|
|
495
|
+
}
|
|
496
|
+
interface IUserVer2 {
|
|
497
|
+
'firstname': string;
|
|
498
|
+
'motherTongue': string;
|
|
499
|
+
'secondaryEmail': string;
|
|
500
|
+
'gender': string;
|
|
501
|
+
'@type': string;
|
|
502
|
+
'mobile': number;
|
|
503
|
+
'middlename': string;
|
|
504
|
+
'telephone': number;
|
|
505
|
+
'osid': string;
|
|
506
|
+
'primaryEmailType': string;
|
|
507
|
+
'knownLanguages': ILanguages[];
|
|
508
|
+
'wid': string;
|
|
509
|
+
'nationality': string;
|
|
510
|
+
'surname': string;
|
|
511
|
+
'dob': string;
|
|
512
|
+
'category': string;
|
|
513
|
+
'primaryEmail': string;
|
|
514
|
+
'maritalStatus': string;
|
|
515
|
+
'residenceAddress': string;
|
|
516
|
+
'result': any;
|
|
517
|
+
}
|
|
518
|
+
interface ILanguages {
|
|
519
|
+
name: string;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
export declare class ConfigurationsService {
|
|
7
|
+
constructor();
|
|
8
|
+
appSetup: boolean;
|
|
9
|
+
userUrl: string;
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
sitePath: string;
|
|
12
|
+
hostPath: string;
|
|
13
|
+
userRoles: Set<string> | null;
|
|
14
|
+
userGroups: Set<string> | null;
|
|
15
|
+
restrictedFeatures: Set<string> | null;
|
|
16
|
+
restrictedWidgets: Set<string> | null;
|
|
17
|
+
instanceConfig: NsInstanceConfig.IConfig | null;
|
|
18
|
+
appsConfig: NsAppsConfig.IAppsConfig | null;
|
|
19
|
+
rootOrg: string | null;
|
|
20
|
+
courseContentPath?: string;
|
|
21
|
+
org: string[] | null;
|
|
22
|
+
activeOrg: string | null;
|
|
23
|
+
isProduction: boolean;
|
|
24
|
+
hasAcceptedTnc: boolean;
|
|
25
|
+
profileDetailsStatus: boolean;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
userPreference: IUserPreference | null;
|
|
28
|
+
userProfile: NsUser.IUserProfile | null;
|
|
29
|
+
userProfileV2: NsUser.IUserProfile | null;
|
|
30
|
+
nodebbUserProfile: NsUser.INodebbUserProfile | null;
|
|
31
|
+
unMappedUser: any;
|
|
32
|
+
isAuthenticated: boolean;
|
|
33
|
+
isNewUser: boolean;
|
|
34
|
+
portalUrls: IPortalUrls | undefined;
|
|
35
|
+
positions: any;
|
|
36
|
+
overrideThemeChanges: any;
|
|
37
|
+
profileTimelyNudges: any;
|
|
38
|
+
pinnedApps: BehaviorSubject<Set<string>>;
|
|
39
|
+
prefChangeNotifier: ReplaySubject<Partial<IUserPreference>>;
|
|
40
|
+
tourGuideNotifier: ReplaySubject<boolean>;
|
|
41
|
+
authChangeNotifier: ReplaySubject<boolean>;
|
|
42
|
+
private updateProfile;
|
|
43
|
+
updateProfileObservable: import("rxjs").Observable<boolean>;
|
|
44
|
+
updateTourGuide: BehaviorSubject<boolean>;
|
|
45
|
+
updateTourGuideObservable: import("rxjs").Observable<boolean>;
|
|
46
|
+
updatePlatformRating: BehaviorSubject<{
|
|
47
|
+
bottom: string;
|
|
48
|
+
}>;
|
|
49
|
+
updatePlatformRatingObservable$: import("rxjs").Observable<{
|
|
50
|
+
bottom: string;
|
|
51
|
+
}>;
|
|
52
|
+
languageTranslationFlag: Subject<unknown>;
|
|
53
|
+
activeThemeObject: NsInstanceConfig.ITheme | null;
|
|
54
|
+
activeFontObject: NsInstanceConfig.IFontSize | null;
|
|
55
|
+
isDarkMode: boolean;
|
|
56
|
+
isIntranetAllowed: boolean;
|
|
57
|
+
isRTL: boolean;
|
|
58
|
+
activeLocale: NsInstanceConfig.ILocalsConfig | null;
|
|
59
|
+
activeLocaleGroup: string;
|
|
60
|
+
completedActivity: string[] | null;
|
|
61
|
+
completedTour: boolean;
|
|
62
|
+
profileSettings: string[];
|
|
63
|
+
primaryNavBar: Partial<NsPage.INavBackground>;
|
|
64
|
+
pageNavBar: Partial<NsPage.INavBackground>;
|
|
65
|
+
primaryNavBarConfig: NsInstanceConfig.IPrimaryNavbarConfig | null;
|
|
66
|
+
welcomeTabs: NSProfileDataV3.IProfileTab | null;
|
|
67
|
+
cstoken: string;
|
|
68
|
+
changeNavBarFullView: Subject<unknown>;
|
|
69
|
+
openExploreMenuForMWeb: Subject<unknown>;
|
|
70
|
+
updateGlobalProfile(state: boolean): void;
|
|
71
|
+
updateTourGuideMethod(state: boolean): void;
|
|
72
|
+
updatePlatformRatingMethod(state: any): void;
|
|
73
|
+
}
|