@aastrika_npmjs/sunbird-sdk 5.1.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/LICENSE +21 -0
- package/README.md +2 -0
- package/__test__/mocks.d.ts +6 -0
- package/__test__/setup.d.ts +2 -0
- package/api/api-service-impl.d.ts +32 -0
- package/api/config/api-config.d.ts +21 -0
- package/api/config/app-config.d.ts +6 -0
- package/api/def/api-request-handler.d.ts +4 -0
- package/api/def/api-service.d.ts +8 -0
- package/api/handlers/api-token-handler.d.ts +17 -0
- package/api/index.d.ts +7 -0
- package/api/network-queue/db/schema.d.ts +28 -0
- package/api/network-queue/def/network-queue.d.ts +20 -0
- package/api/network-queue/handlers/network-request-handler.d.ts +7 -0
- package/api/network-queue/impl/network-queue-impl.d.ts +16 -0
- package/api/network-queue/index.d.ts +2 -0
- package/api/util/authenticators/bearer-token-refresh-interceptor.d.ts +14 -0
- package/api/util/authenticators/user-token-refresh-interceptor.d.ts +11 -0
- package/api/util/jwt.util.d.ts +7 -0
- package/archive/def/archive-service.d.ts +60 -0
- package/archive/export/def/archive-export-delegate.d.ts +5 -0
- package/archive/export/def/telemetry-archive-package-meta.d.ts +5 -0
- package/archive/export/error/export-assertion-error.d.ts +4 -0
- package/archive/export/error/invalid-request-error.d.ts +4 -0
- package/archive/export/error/object-not-found-error.d.ts +4 -0
- package/archive/export/impl/telemetry-export-delegate.d.ts +18 -0
- package/archive/export/index.d.ts +1 -0
- package/archive/impl/archive-service-impl.d.ts +31 -0
- package/archive/import/def/archive-import-delegate.d.ts +6 -0
- package/archive/import/error/import-assertion-error.d.ts +4 -0
- package/archive/import/error/invalid-archive-error.d.ts +4 -0
- package/archive/import/error/unknown-object-error.d.ts +4 -0
- package/archive/import/impl/telemetry-import-delegate.d.ts +19 -0
- package/archive/import/index.d.ts +1 -0
- package/archive/index.d.ts +4 -0
- package/auth/def/auth-end-points.d.ts +5 -0
- package/auth/def/auth-event.d.ts +8 -0
- package/auth/def/auth-service.d.ts +10 -0
- package/auth/def/o-auth-session.d.ts +7 -0
- package/auth/def/session-provider.d.ts +4 -0
- package/auth/errors/auth-token-refresh-error.d.ts +4 -0
- package/auth/errors/in-app-browser-exit-error.d.ts +4 -0
- package/auth/errors/processing-error.d.ts +4 -0
- package/auth/errors/sign-in-error.d.ts +4 -0
- package/auth/impl/auth-service-impl.d.ts +22 -0
- package/auth/index.d.ts +20 -0
- package/auth/util/auth-util.d.ts +15 -0
- package/auth/util/native-apple-session-provider/impl/native-apple-session-provider.d.ts +27 -0
- package/auth/util/native-custombrowser-session-provider/impl/native-custombrowser-session-provider.d.ts +19 -0
- package/auth/util/native-google-session-provider/impl/native-google-session-provider.d.ts +15 -0
- package/auth/util/native-keycloak-session-provider/impl/native-keycloak-session-provider.d.ts +18 -0
- package/auth/util/webview-session-provider/def/webview-register-session-provider-config.d.ts +22 -0
- package/auth/util/webview-session-provider/def/webview-runner.d.ts +49 -0
- package/auth/util/webview-session-provider/def/webview-session-provider-config.d.ts +22 -0
- package/auth/util/webview-session-provider/def/webview-state-session-provider-config.d.ts +22 -0
- package/auth/util/webview-session-provider/errors/interrupt-error.d.ts +4 -0
- package/auth/util/webview-session-provider/errors/no-inappbrowser-session-assertion-fail-error.d.ts +4 -0
- package/auth/util/webview-session-provider/errors/param-not-captured-error.d.ts +4 -0
- package/auth/util/webview-session-provider/errors/webview-runner-error.d.ts +4 -0
- package/auth/util/webview-session-provider/impl/webview-auto-merge-session-provider.d.ts +15 -0
- package/auth/util/webview-session-provider/impl/webview-base-session-provider.d.ts +23 -0
- package/auth/util/webview-session-provider/impl/webview-login-session-provider.d.ts +14 -0
- package/auth/util/webview-session-provider/impl/webview-manual-merge-session-provider.d.ts +11 -0
- package/auth/util/webview-session-provider/impl/webview-runner-impl.d.ts +56 -0
- package/auth/util/webview-session-provider/impl/webview-state-session-provider.d.ts +14 -0
- package/certificate/config/certificate-service-config.d.ts +5 -0
- package/certificate/db/schema.d.ts +18 -0
- package/certificate/def/certificate-service.d.ts +17 -0
- package/certificate/handlers/get-public-key-handler.d.ts +18 -0
- package/certificate/impl/certificate-service-impl.d.ts +32 -0
- package/certificate/index.d.ts +3 -0
- package/codepush-experiment/def/codepush-experiment-service.d.ts +9 -0
- package/codepush-experiment/handler/codepush-experiment-handler.d.ts +3 -0
- package/codepush-experiment/impl/codepush-experiment-service-impl.d.ts +14 -0
- package/codepush-experiment/index.d.ts +2 -0
- package/content/config/content-config.d.ts +8 -0
- package/content/db/schema.d.ts +124 -0
- package/content/def/content-delete-listener.d.ts +3 -0
- package/content/def/content-event.d.ts +33 -0
- package/content/def/content-feedback-service.d.ts +21 -0
- package/content/def/content-service.d.ts +46 -0
- package/content/def/content.d.ts +43 -0
- package/content/def/requests.d.ts +219 -0
- package/content/def/response.d.ts +93 -0
- package/content/def/search-request.d.ts +37 -0
- package/content/handlers/content-aggregator.d.ts +166 -0
- package/content/handlers/content-feedback-handler.d.ts +5 -0
- package/content/handlers/content-marker-handler.d.ts +10 -0
- package/content/handlers/content-storage-handler.d.ts +9 -0
- package/content/handlers/delete-content-handler.d.ts +18 -0
- package/content/handlers/export/clean-temp-loc.d.ts +8 -0
- package/content/handlers/export/compress-content.d.ts +8 -0
- package/content/handlers/export/copy-asset.d.ts +8 -0
- package/content/handlers/export/copy-to-destination.d.ts +6 -0
- package/content/handlers/export/create-content-export-manifest.d.ts +12 -0
- package/content/handlers/export/create-temp-loc.d.ts +8 -0
- package/content/handlers/export/delete-temp-ecar.d.ts +8 -0
- package/content/handlers/export/deletete-temp-dir.d.ts +6 -0
- package/content/handlers/export/device-memory-check.d.ts +9 -0
- package/content/handlers/export/ecar-bundle.d.ts +11 -0
- package/content/handlers/export/generate-export-share-telemetry.d.ts +8 -0
- package/content/handlers/export/write-manifest.d.ts +10 -0
- package/content/handlers/get-child-contents-handler.d.ts +21 -0
- package/content/handlers/get-child-question-set-handler.d.ts +16 -0
- package/content/handlers/get-content-details-handler.d.ts +30 -0
- package/content/handlers/get-content-heirarchy-handler.d.ts +10 -0
- package/content/handlers/get-contents-handler.d.ts +12 -0
- package/content/handlers/import/content-search-api-handler.d.ts +13 -0
- package/content/handlers/import/create-content-import-manifest.d.ts +15 -0
- package/content/handlers/import/create-hierarchy.d.ts +18 -0
- package/content/handlers/import/device-memory-check.d.ts +10 -0
- package/content/handlers/import/ecar-cleanup.d.ts +8 -0
- package/content/handlers/import/extract-ecar.d.ts +11 -0
- package/content/handlers/import/extract-payloads.d.ts +53 -0
- package/content/handlers/import/generate-import-share-telemetry.d.ts +8 -0
- package/content/handlers/import/generate-interact-telemetry.d.ts +8 -0
- package/content/handlers/import/hierarchy-manifest-conversion.d.ts +11 -0
- package/content/handlers/import/update-size-on-device.d.ts +18 -0
- package/content/handlers/import/validate-ecar.d.ts +18 -0
- package/content/handlers/import-n-export-handler.d.ts +25 -0
- package/content/handlers/question-set-file-read-handler.d.ts +11 -0
- package/content/handlers/search-content-handler.d.ts +33 -0
- package/content/impl/content-feedback-service-impl.d.ts +13 -0
- package/content/impl/content-service-impl.d.ts +100 -0
- package/content/index.d.ts +9 -0
- package/content/util/content-constants.d.ts +93 -0
- package/content/util/content-mapper.d.ts +7 -0
- package/content/util/content-util.d.ts +94 -0
- package/content/util/linked-list.d.ts +16 -0
- package/content/util/stack.d.ts +10 -0
- package/course/config/course-service-config.d.ts +3 -0
- package/course/course-util.d.ts +6 -0
- package/course/def/batch.d.ts +1 -0
- package/course/def/course-batches-response.d.ts +5 -0
- package/course/def/course-certificate-manager.d.ts +9 -0
- package/course/def/course-service.d.ts +51 -0
- package/course/def/course.d.ts +1 -0
- package/course/def/download-certificate-request.d.ts +5 -0
- package/course/def/download-certificate-response.d.ts +3 -0
- package/course/def/get-certificate-request.d.ts +6 -0
- package/course/def/get-enrolled-course-response.d.ts +10 -0
- package/course/def/get-learner-certificate-response.d.ts +22 -0
- package/course/def/request-types.d.ts +83 -0
- package/course/def/unenrollCourseRequest.d.ts +5 -0
- package/course/def/update-content-state-response.d.ts +1 -0
- package/course/def/update-course-content-state-request.d.ts +1 -0
- package/course/errors/certificate-already-downloaded.d.ts +5 -0
- package/course/errors/no-certificate-found.d.ts +4 -0
- package/course/handlers/enroll-course-handler.d.ts +11 -0
- package/course/handlers/get-batch-details-handler.d.ts +10 -0
- package/course/handlers/get-content-state-handler.d.ts +16 -0
- package/course/handlers/get-course-batches-handler.d.ts +10 -0
- package/course/handlers/get-enrolled-course-handler.d.ts +21 -0
- package/course/handlers/get-learner-certificate-handler.d.ts +20 -0
- package/course/handlers/offline-content-state-handler.d.ts +12 -0
- package/course/handlers/offline-course-cache-handler.d.ts +15 -0
- package/course/handlers/sync-assessment-events-handler.d.ts +22 -0
- package/course/handlers/unenroll-course-handler.d.ts +10 -0
- package/course/handlers/update-content-state-api-handler.d.ts +16 -0
- package/course/handlers/update-enrolled-courses-handler.d.ts +11 -0
- package/course/impl/course-certificate-manager-impl.d.ts +21 -0
- package/course/impl/course-service-impl.d.ts +84 -0
- package/course/impl/offline-assessment-score-processor.d.ts +12 -0
- package/course/index.d.ts +11 -0
- package/db/config/db-config.d.ts +3 -0
- package/db/db-constants.d.ts +0 -0
- package/db/def/db-constants.d.ts +14 -0
- package/db/def/db-service.d.ts +14 -0
- package/db/def/migration.d.ts +10 -0
- package/db/def/query.d.ts +26 -0
- package/db/impl/db-cordova-service.d.ts +23 -0
- package/db/impl/db-web-sql-service.d.ts +0 -0
- package/db/index.d.ts +5 -0
- package/db/migrations/certificate-public-key-migration.d.ts +6 -0
- package/db/migrations/content-dialcode-migration.d.ts +9 -0
- package/db/migrations/content-generalization-migration.d.ts +8 -0
- package/db/migrations/content-marker-migration.d.ts +6 -0
- package/db/migrations/course-assessment-migration.d.ts +6 -0
- package/db/migrations/error-stack-migration.d.ts +6 -0
- package/db/migrations/group-profile-migration.d.ts +7 -0
- package/db/migrations/initial-migration.d.ts +6 -0
- package/db/migrations/milliseconds-to-seconds-migration.d.ts +6 -0
- package/db/migrations/network-queue-migration.d.ts +10 -0
- package/db/migrations/offline-search-textbook-migration.d.ts +6 -0
- package/db/migrations/player-config-data-migrations.d.ts +7 -0
- package/db/migrations/profile-syllabus-migration.d.ts +6 -0
- package/db/migrations/recently-viewed-migration.d.ts +6 -0
- package/db/migrations/search-history-migration.d.ts +6 -0
- package/db/util/query-builder.d.ts +7 -0
- package/db/util/unique-id.d.ts +3 -0
- package/debugging/def/debugging-service.d.ts +12 -0
- package/debugging/handler/debugging-duration-handler.d.ts +9 -0
- package/debugging/impl/debuggin-service-impl.d.ts +17 -0
- package/debugging/index.d.ts +3 -0
- package/device-register/config/device-register-config.d.ts +4 -0
- package/device-register/def/device-register-service.d.ts +7 -0
- package/device-register/def/request.d.ts +16 -0
- package/device-register/def/response.d.ts +7 -0
- package/device-register/handler/device-register-handler.d.ts +24 -0
- package/device-register/handler/get-device-profile-handler.d.ts +16 -0
- package/device-register/impl/device-register-service-impl.d.ts +21 -0
- package/device-register/index.d.ts +5 -0
- package/discussion/def/discussion-service.d.ts +10 -0
- package/discussion/impl/discussion-service.impl.d.ts +15 -0
- package/discussion/index.d.ts +1 -0
- package/error/config/error-logger-config.d.ts +3 -0
- package/error/db/schema.d.ts +17 -0
- package/error/def/error-logger-service.d.ts +6 -0
- package/error/def/error-stack.d.ts +6 -0
- package/error/handlers/error-stack-sync-handler.d.ts +19 -0
- package/error/handlers/error-stack-sync-request-decorator.d.ts +23 -0
- package/error/impl/error-logger-service-impl.d.ts +31 -0
- package/error/index.d.ts +1 -0
- package/error/util/error-stack-mapper.d.ts +6 -0
- package/errors/index.d.ts +1 -0
- package/errors/validation-error.d.ts +4 -0
- package/events-bus/config/events-bus-config.d.ts +3 -0
- package/events-bus/def/emit-request.d.ts +4 -0
- package/events-bus/def/error-event.d.ts +24 -0
- package/events-bus/def/event-namespace.d.ts +8 -0
- package/events-bus/def/event-observer.d.ts +5 -0
- package/events-bus/def/events-bus-event.d.ts +4 -0
- package/events-bus/def/events-bus-service.d.ts +11 -0
- package/events-bus/def/register-observer-request.d.ts +6 -0
- package/events-bus/impl/events-bus-service-impl.d.ts +16 -0
- package/events-bus/index.d.ts +4 -0
- package/faq/config/faq-service-config.d.ts +3 -0
- package/faq/def/faq-service.d.ts +6 -0
- package/faq/def/faq.d.ts +1 -0
- package/faq/def/get-faq-request.d.ts +4 -0
- package/faq/handler/get-faq-details-handler.d.ts +18 -0
- package/faq/impl/faq-service-impl.d.ts +15 -0
- package/faq/index.d.ts +5 -0
- package/form/config/form-service-config.d.ts +4 -0
- package/form/def/form-request.d.ts +9 -0
- package/form/def/form-service.d.ts +7 -0
- package/form/def/models.d.ts +1 -0
- package/form/handle/get-form-handler.d.ts +23 -0
- package/form/impl/form-service-impl.d.ts +17 -0
- package/form/index.d.ts +4 -0
- package/framework/config/framework-service-config.d.ts +9 -0
- package/framework/def/channel.d.ts +1 -0
- package/framework/def/framework-category-code.d.ts +12 -0
- package/framework/def/framework-service.d.ts +18 -0
- package/framework/def/framework.d.ts +1 -0
- package/framework/def/organization.d.ts +1 -0
- package/framework/def/requests.d.ts +20 -0
- package/framework/def/responses.d.ts +5 -0
- package/framework/def/suggested-framework.d.ts +6 -0
- package/framework/errors/no-active-channel-found-error.d.ts +4 -0
- package/framework/handler/get-channel-detail-handler.d.ts +18 -0
- package/framework/handler/get-framework-category-terms-handler.d.ts +16 -0
- package/framework/handler/get-framework-detail-handler.d.ts +19 -0
- package/framework/impl/framework-service-impl.d.ts +32 -0
- package/framework/index.d.ts +12 -0
- package/framework/util/framework-mapper.d.ts +7 -0
- package/framework/util/framework-util-service-impl.d.ts +15 -0
- package/framework/util/framework-util-service.d.ts +13 -0
- package/framework/util/requests.d.ts +19 -0
- package/group/def/group-activity-service.d.ts +7 -0
- package/group/def/group-service.d.ts +25 -0
- package/group/def/models.d.ts +1 -0
- package/group/def/requests.d.ts +56 -0
- package/group/def/responses.d.ts +2 -0
- package/group/impl/group-activity-service-impl.d.ts +12 -0
- package/group/impl/group-service-impl.d.ts +34 -0
- package/group/index.d.ts +5 -0
- package/group-deprecated/db/schema.d.ts +35 -0
- package/group-deprecated/def/get-all-group-request-deprecated.d.ts +3 -0
- package/group-deprecated/def/group-service-deprecated.d.ts +16 -0
- package/group-deprecated/def/group-session-deprecated.d.ts +9 -0
- package/group-deprecated/def/groupDeprecated.d.ts +16 -0
- package/group-deprecated/def/profiles-to-group-request-deprecated.d.ts +4 -0
- package/group-deprecated/error/no-active-group-session-error.d.ts +4 -0
- package/group-deprecated/error/no-group-found-error.d.ts +4 -0
- package/group-deprecated/impl/group-service-deprecated-impl.d.ts +24 -0
- package/group-deprecated/index.d.ts +7 -0
- package/group-deprecated/util/group-mapper.d.ts +6 -0
- package/group-deprecated/util/group-profile-mapper.d.ts +6 -0
- package/index.d.ts +38 -0
- package/index.js +14 -0
- package/injection-tokens.d.ts +60 -0
- package/key-value-store/db/schema.d.ts +12 -0
- package/key-value-store/def/cached-item-request.d.ts +7 -0
- package/key-value-store/def/cached-item-store.d.ts +14 -0
- package/key-value-store/def/key-value-store.d.ts +5 -0
- package/key-value-store/impl/cached-item-store-impl.d.ts +19 -0
- package/key-value-store/impl/key-value-store-impl.d.ts +9 -0
- package/key-value-store/index.d.ts +3 -0
- package/notification/db/schema.d.ts +21 -0
- package/notification/def/notification-service.d.ts +11 -0
- package/notification/def/requests.d.ts +32 -0
- package/notification/handler/notification-handler.d.ts +9 -0
- package/notification/impl/notification-service-impl.d.ts +26 -0
- package/notification/index.d.ts +2 -0
- package/notification-v2/def/notification-service-v2.d.ts +8 -0
- package/notification-v2/impl/notification-service-v2-impl.d.ts +14 -0
- package/notification-v2/index.d.ts +1 -0
- package/open-rap-configurable.d.ts +3 -0
- package/package.json +114 -0
- package/page/config/page-service-config.d.ts +4 -0
- package/page/def/page-assemble-service.d.ts +7 -0
- package/page/def/page-assemble.d.ts +5 -0
- package/page/def/requests.d.ts +41 -0
- package/page/handle/delegates/course-request-delegate.d.ts +18 -0
- package/page/handle/delegates/default-request-delegate.d.ts +28 -0
- package/page/handle/delegates/dialcode-request-delegate.d.ts +15 -0
- package/page/handle/page-assembler-factory.d.ts +27 -0
- package/page/impl/page-assemble-service-impl.d.ts +28 -0
- package/page/index.d.ts +4 -0
- package/partner/db/schema.d.ts +9 -0
- package/player/db/schema.d.ts +27 -0
- package/player/def/player-service.d.ts +10 -0
- package/player/def/response.d.ts +42 -0
- package/player/impl/player-service-impl.d.ts +27 -0
- package/player/index.d.ts +2 -0
- package/preference-keys.d.ts +54 -0
- package/profile/config/profile-service-config.d.ts +9 -0
- package/profile/db/schema.d.ts +190 -0
- package/profile/def/accept-terms-condition-request.d.ts +5 -0
- package/profile/def/add-managed-profile-request.d.ts +10 -0
- package/profile/def/check-user-exists-request.d.ts +7 -0
- package/profile/def/check-user-exists-response.d.ts +1 -0
- package/profile/def/content-access-filter-criteria.d.ts +4 -0
- package/profile/def/content-access.d.ts +16 -0
- package/profile/def/delete-user-feed-request.d.ts +5 -0
- package/profile/def/export-profile-context.d.ts +10 -0
- package/profile/def/generate-otp-request.d.ts +6 -0
- package/profile/def/get-all-group-request.d.ts +3 -0
- package/profile/def/get-all-profile-request.d.ts +5 -0
- package/profile/def/get-managed-server-profiles-request.d.ts +4 -0
- package/profile/def/import-profile-context.d.ts +8 -0
- package/profile/def/is-profile-already-in-use-request.d.ts +4 -0
- package/profile/def/location-search-criteria.d.ts +11 -0
- package/profile/def/location-search-result.d.ts +1 -0
- package/profile/def/merge-server-profiles-request.d.ts +10 -0
- package/profile/def/profile-exists-response.d.ts +3 -0
- package/profile/def/profile-export-request.d.ts +12 -0
- package/profile/def/profile-export-response.d.ts +3 -0
- package/profile/def/profile-import-request.d.ts +3 -0
- package/profile/def/profile-import-response.d.ts +4 -0
- package/profile/def/profile-service.d.ts +70 -0
- package/profile/def/profile-session.d.ts +7 -0
- package/profile/def/profile.d.ts +30 -0
- package/profile/def/profiles-to-group-request.d.ts +4 -0
- package/profile/def/server-profile-details-request.d.ts +5 -0
- package/profile/def/server-profile.d.ts +1 -0
- package/profile/def/tenant-info-request.d.ts +3 -0
- package/profile/def/tenant-info.d.ts +7 -0
- package/profile/def/update-server-profile-declarations-request.d.ts +4 -0
- package/profile/def/update-server-profile-declarations-response.d.ts +1 -0
- package/profile/def/update-server-profile-info-request.d.ts +1 -0
- package/profile/def/update-server-profile-response.d.ts +1 -0
- package/profile/def/update-user-feed-request.d.ts +7 -0
- package/profile/def/user-migrate-request.d.ts +7 -0
- package/profile/def/user-migrate-response.d.ts +11 -0
- package/profile/def/verify-otp-request.d.ts +6 -0
- package/profile/errors/invalid-profile-error.d.ts +4 -0
- package/profile/errors/no-active-session-error.d.ts +4 -0
- package/profile/errors/no-profile-found-error.d.ts +4 -0
- package/profile/handler/accept-term-condition-handler.d.ts +10 -0
- package/profile/handler/export/clean-up-exported-file.d.ts +20 -0
- package/profile/handler/export/copy-database.d.ts +8 -0
- package/profile/handler/export/create-metadata.d.ts +14 -0
- package/profile/handler/export/generate-profile-export-telemetry.d.ts +8 -0
- package/profile/handler/export/get-epar-file-path.d.ts +8 -0
- package/profile/handler/generate-otp-handler.d.ts +10 -0
- package/profile/handler/get-server-profile-details-handler.d.ts +20 -0
- package/profile/handler/import/generate-profile-import-telemetry.d.ts +8 -0
- package/profile/handler/import/transport-assesments.d.ts +11 -0
- package/profile/handler/import/transport-framework-n-channel.d.ts +9 -0
- package/profile/handler/import/transport-group-profile.d.ts +9 -0
- package/profile/handler/import/transport-group.d.ts +9 -0
- package/profile/handler/import/transport-profiles.d.ts +9 -0
- package/profile/handler/import/transport-user.d.ts +9 -0
- package/profile/handler/import/update-imported-profile-metadata.d.ts +8 -0
- package/profile/handler/import/validate-profile-metadata.d.ts +9 -0
- package/profile/handler/is-profile-already-in-use-handler.d.ts +11 -0
- package/profile/handler/managed-profile-manager.d.ts +34 -0
- package/profile/handler/profile-handler.d.ts +5 -0
- package/profile/handler/search-location-handler.d.ts +19 -0
- package/profile/handler/tenant-info-handler.d.ts +12 -0
- package/profile/handler/user-migrate-handler.d.ts +15 -0
- package/profile/handler/verify-otp-handler.d.ts +10 -0
- package/profile/impl/profile-service-impl.d.ts +83 -0
- package/profile/index.d.ts +25 -0
- package/profile/util/profile-db-entry-mapper.d.ts +6 -0
- package/sdk-config.d.ts +41 -0
- package/sdk-service-on-init-delegate.d.ts +5 -0
- package/sdk-service-pre-init-delegate.d.ts +5 -0
- package/sdk.d.ts +91 -0
- package/segmentation/def/segmentation-service.d.ts +9 -0
- package/segmentation/handler/fetch-segmentation-command-handler.d.ts +8 -0
- package/segmentation/handler/fetch-segmentation-tags-handler.d.ts +8 -0
- package/segmentation/handler/store-segmentation-command-handler.d.ts +8 -0
- package/segmentation/handler/store-segmentation-tag-handler.d.ts +8 -0
- package/segmentation/impl/segmentaion-service-impl.d.ts +13 -0
- package/segmentation/index.d.ts +6 -0
- package/storage/def/scan-requests.d.ts +5 -0
- package/storage/def/storage-destination.d.ts +4 -0
- package/storage/def/storage-event.d.ts +36 -0
- package/storage/def/storage-requests.d.ts +15 -0
- package/storage/def/storage-service.d.ts +16 -0
- package/storage/errors/cancellation-error.d.ts +4 -0
- package/storage/errors/duplicate-content-error.d.ts +4 -0
- package/storage/errors/low-memory-error.d.ts +4 -0
- package/storage/errors/transfer-failed-duplicate-content-error.d.ts +4 -0
- package/storage/errors/transfer-failed-error.d.ts +5 -0
- package/storage/handler/scan/get-modified-content-handler.d.ts +15 -0
- package/storage/handler/scan/perform-actoin-on-content-handler.d.ts +8 -0
- package/storage/handler/storage-handler.d.ts +14 -0
- package/storage/handler/transfer/copy-content-from-source-to-destination.d.ts +15 -0
- package/storage/handler/transfer/delete-destination-folder.d.ts +6 -0
- package/storage/handler/transfer/delete-source-folder.d.ts +12 -0
- package/storage/handler/transfer/device-memory-check.d.ts +9 -0
- package/storage/handler/transfer/duplicate-content-check.d.ts +13 -0
- package/storage/handler/transfer/store-destination-content-in-db.d.ts +17 -0
- package/storage/handler/transfer/update-source-content-path-in-db.d.ts +8 -0
- package/storage/handler/transfer/validate-destination-content.d.ts +13 -0
- package/storage/handler/transfer/validate-destination-folder.d.ts +11 -0
- package/storage/handler/transfer-content-handler.d.ts +51 -0
- package/storage/impl/storage-service-impl.d.ts +35 -0
- package/storage/index.d.ts +6 -0
- package/summarizer/assesment-analyzer.d.ts +4 -0
- package/summarizer/db/schema.d.ts +21 -0
- package/summarizer/def/request.d.ts +6 -0
- package/summarizer/def/response.d.ts +77 -0
- package/summarizer/def/summarizer-service.d.ts +22 -0
- package/summarizer/handler/summarizer-handler.d.ts +22 -0
- package/summarizer/handler/summarizer-queries.d.ts +12 -0
- package/summarizer/handler/summary-telemetry-event-handler.d.ts +40 -0
- package/summarizer/impl/summarizer-service-impl.d.ts +40 -0
- package/summarizer/index.d.ts +7 -0
- package/sunbird-error.d.ts +5 -0
- package/system-settings/config/system-settings-config.d.ts +4 -0
- package/system-settings/def/request-types.d.ts +3 -0
- package/system-settings/def/system-settings-org-ids.d.ts +5 -0
- package/system-settings/def/system-settings-service.d.ts +5 -0
- package/system-settings/def/system-settings.d.ts +5 -0
- package/system-settings/handlers/get-system-settings-handler.d.ts +18 -0
- package/system-settings/impl/system-settings-service-impl.d.ts +15 -0
- package/system-settings/index.d.ts +5 -0
- package/telemetry/config/telemetry-config.d.ts +7 -0
- package/telemetry/db/schema.d.ts +66 -0
- package/telemetry/def/requests.d.ts +171 -0
- package/telemetry/def/telemetry-constants.d.ts +64 -0
- package/telemetry/def/telemetry-decorator.d.ts +13 -0
- package/telemetry/def/telemetry-event.d.ts +12 -0
- package/telemetry/def/telemetry-model.d.ts +193 -0
- package/telemetry/def/telemetry-service.d.ts +31 -0
- package/telemetry/def/telemetry-stat.d.ts +4 -0
- package/telemetry/def/telemetry-sync-preprocessor.d.ts +3 -0
- package/telemetry/def/telemetry-sync-stat.d.ts +6 -0
- package/telemetry/errors/invalid-input-for-sync-preprocessor-error.d.ts +4 -0
- package/telemetry/handler/import/generate-import-telemetry-share.d.ts +9 -0
- package/telemetry/handler/import/transport-processed-telemetry.d.ts +9 -0
- package/telemetry/handler/import/update-imported-telemetry-metadata.d.ts +8 -0
- package/telemetry/handler/import/validate-telemetry-metadata.d.ts +9 -0
- package/telemetry/handler/telemetry-sync-handler.d.ts +41 -0
- package/telemetry/impl/decorator-impl.d.ts +26 -0
- package/telemetry/impl/process-event.d.ts +5 -0
- package/telemetry/impl/string-to-byte-array-preprocessor.d.ts +4 -0
- package/telemetry/impl/string-to-gzipped-string.d.ts +4 -0
- package/telemetry/impl/telemetry-entries-to-string-preprocessor.d.ts +4 -0
- package/telemetry/impl/telemetry-service-impl.d.ts +74 -0
- package/telemetry/index.d.ts +9 -0
- package/telemetry/util/telemetry-auto-sync-modes.d.ts +5 -0
- package/telemetry/util/telemetry-auto-sync-service-impl.d.ts +17 -0
- package/telemetry/util/telemetry-auto-sync-service.d.ts +9 -0
- package/telemetry/util/telemetry-logger.d.ts +4 -0
- package/util/app/def/app-info.d.ts +7 -0
- package/util/app/impl/app-info-impl.d.ts +19 -0
- package/util/app/index.d.ts +1 -0
- package/util/array-util.d.ts +6 -0
- package/util/device/def/device-info.d.ts +33 -0
- package/util/device/impl/device-info-impl.d.ts +12 -0
- package/util/device/index.d.ts +1 -0
- package/util/download/def/download-complete-delegate.d.ts +5 -0
- package/util/download/def/download-event.d.ts +20 -0
- package/util/download/def/download-service.d.ts +14 -0
- package/util/download/def/download-status.d.ts +7 -0
- package/util/download/def/requests.d.ts +20 -0
- package/util/download/def/response.d.ts +5 -0
- package/util/download/impl/download-service-impl.d.ts +38 -0
- package/util/download/index.d.ts +5 -0
- package/util/encoders/encoder.d.ts +4 -0
- package/util/encoders/utf8-to-b64-encoder.d.ts +5 -0
- package/util/file/config/file-config.d.ts +2 -0
- package/util/file/def/file-service.d.ts +21 -0
- package/util/file/errors/no-file-found.d.ts +4 -0
- package/util/file/impl/file-service-impl.d.ts +98 -0
- package/util/file/index.d.ts +271 -0
- package/util/file/util/file-util.d.ts +9 -0
- package/util/file/util/path.d.ts +6 -0
- package/util/list/comparator.d.ts +3 -0
- package/util/list/linked-list.d.ts +11 -0
- package/util/list/list-node.d.ts +6 -0
- package/util/network/def/network-info-service.d.ts +5 -0
- package/util/network/def/network-status.d.ts +4 -0
- package/util/network/impl/network-info-service-impl.d.ts +7 -0
- package/util/network/index.d.ts +2 -0
- package/util/number-util.d.ts +5 -0
- package/util/object-util.d.ts +7 -0
- package/util/queue/queue.d.ts +8 -0
- package/util/search-history/db/schema.d.ts +17 -0
- package/util/search-history/def/requests.d.ts +9 -0
- package/util/search-history/def/search-entry.d.ts +5 -0
- package/util/search-history/def/search-history-service.d.ts +7 -0
- package/util/search-history/impl/search-history-service-impl.d.ts +13 -0
- package/util/search-history/index.d.ts +2 -0
- package/util/search-history/util/search-history-db-entry-mapper.d.ts +5 -0
- package/util/shared-preferences/config/shared-prefernces-config.d.ts +2 -0
- package/util/shared-preferences/def/shared-preferences-set-collection.d.ts +12 -0
- package/util/shared-preferences/def/shared-preferences.d.ts +9 -0
- package/util/shared-preferences/impl/shared-preferences-android.d.ts +13 -0
- package/util/shared-preferences/impl/shared-preferences-local-storage.d.ts +11 -0
- package/util/shared-preferences/impl/shared-preferences-set-collection-impl.d.ts +19 -0
- package/util/shared-preferences/index.d.ts +2 -0
- package/util/zip/def/zip-service.d.ts +4 -0
- package/util/zip/impl/zip-service-impl.d.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CsProfileUpdateRequest as UpdateServerProfileInfoRequest } from '@project-sunbird/client-services/services/user';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CsProfileUpdateResponse as UpdateServerProfileResponse } from '@project-sunbird/client-services/services/user';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CsUpdateUserFeedRequest } from '@project-sunbird/client-services/services/user';
|
|
2
|
+
import { UserFeedCategory } from './profile';
|
|
3
|
+
export interface UpdateUserFeedRequest {
|
|
4
|
+
feedEntryId: string;
|
|
5
|
+
category: UserFeedCategory;
|
|
6
|
+
request: CsUpdateUserFeedRequest;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { AcceptTermsConditionRequest, ProfileServiceConfig } from '..';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare class AcceptTermConditionHandler implements ApiRequestHandler<AcceptTermsConditionRequest, boolean> {
|
|
5
|
+
private apiService;
|
|
6
|
+
private acceptTermsConditionApiConfig;
|
|
7
|
+
private readonly GET_ACCEPT_TERM_CONDITIONS_ENDPOINT;
|
|
8
|
+
constructor(apiService: ApiService, acceptTermsConditionApiConfig: ProfileServiceConfig);
|
|
9
|
+
handle(request: AcceptTermsConditionRequest): Observable<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { FileService } from '../../../util/file/def/file-service';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
import { ExportProfileContext } from '../../def/export-profile-context';
|
|
5
|
+
export declare class CleanupExportedFile {
|
|
6
|
+
private dbService;
|
|
7
|
+
private fileService;
|
|
8
|
+
constructor(dbService: DbService, fileService: FileService);
|
|
9
|
+
execute(exportContext: ExportProfileContext): Promise<Response>;
|
|
10
|
+
private getAllTables;
|
|
11
|
+
private getAllTablesToExclude;
|
|
12
|
+
private removeTables;
|
|
13
|
+
private populateMetaData;
|
|
14
|
+
private deleteUnwantedProfilesAndUsers;
|
|
15
|
+
private deleteUnwantedProfileSummary;
|
|
16
|
+
private deleteUnwantedGroups;
|
|
17
|
+
private deleteUnwantedGroupProfiles;
|
|
18
|
+
private keepAllFrameworknChannel;
|
|
19
|
+
private cleanTable;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Response } from '../../../api';
|
|
2
|
+
import { DbService } from '../../../db';
|
|
3
|
+
import { ExportProfileContext } from '../../def/export-profile-context';
|
|
4
|
+
export declare class CopyDatabase {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(exportContext: ExportProfileContext): Promise<Response>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { Response } from '../../../api';
|
|
3
|
+
import { DeviceInfo } from '../../../util/device';
|
|
4
|
+
import { FileService } from '../../../util/file/def/file-service';
|
|
5
|
+
import { ExportProfileContext } from '../../def/export-profile-context';
|
|
6
|
+
export declare class CreateMetaData {
|
|
7
|
+
private dbService;
|
|
8
|
+
private fileService;
|
|
9
|
+
private deviceInfo;
|
|
10
|
+
constructor(dbService: DbService, fileService: FileService, deviceInfo: DeviceInfo);
|
|
11
|
+
execute(exportContext: ExportProfileContext): Promise<Response>;
|
|
12
|
+
private generateMetaData;
|
|
13
|
+
private populateMetaData;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Response } from '../../../api';
|
|
2
|
+
import { DbService } from '../../../db';
|
|
3
|
+
import { ImportTelemetryContext } from '../../../telemetry';
|
|
4
|
+
export declare class GenerateProfileExportTelemetry {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportTelemetryContext): Promise<Response>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Response } from '../../../api';
|
|
2
|
+
import { FileService } from '../../../util/file/def/file-service';
|
|
3
|
+
import { ExportProfileContext } from '../../def/export-profile-context';
|
|
4
|
+
export declare class GetEparFilePath {
|
|
5
|
+
private fileService;
|
|
6
|
+
constructor(fileService: FileService);
|
|
7
|
+
execute(exportContext: ExportProfileContext): Promise<Response>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { GenerateOtpRequest, ProfileServiceConfig } from '..';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare class GenerateOtpHandler implements ApiRequestHandler<GenerateOtpRequest, boolean> {
|
|
5
|
+
private apiService;
|
|
6
|
+
private otpServiceConfig;
|
|
7
|
+
private readonly GET_GENERATE_OTP_ENDPOINT;
|
|
8
|
+
constructor(apiService: ApiService, otpServiceConfig: ProfileServiceConfig);
|
|
9
|
+
handle(request: GenerateOtpRequest): Observable<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApiRequestHandler } from '../../api';
|
|
2
|
+
import { ProfileServiceConfig, ServerProfile, ServerProfileDetailsRequest } from '..';
|
|
3
|
+
import { CachedItemRequest, CachedItemStore, KeyValueStore } from '../../key-value-store';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { Container } from 'inversify';
|
|
6
|
+
export declare class GetServerProfileDetailsHandler implements ApiRequestHandler<{
|
|
7
|
+
serverProfileDetailsRequest: ServerProfileDetailsRequest;
|
|
8
|
+
cachedItemRequest: CachedItemRequest;
|
|
9
|
+
}, ServerProfile> {
|
|
10
|
+
private cachedItemStore;
|
|
11
|
+
private keyValueStore;
|
|
12
|
+
private container;
|
|
13
|
+
private profileServiceConfig;
|
|
14
|
+
private readonly USER_PROFILE_DETAILS_KEY_PREFIX;
|
|
15
|
+
constructor(cachedItemStore: CachedItemStore, keyValueStore: KeyValueStore, container: Container, profileServiceConfig: ProfileServiceConfig);
|
|
16
|
+
private readonly csUserService;
|
|
17
|
+
handle(serverProfileDetailsRequest: any): Observable<ServerProfile>;
|
|
18
|
+
private fetchFromServer;
|
|
19
|
+
private fetchFromCache;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Response } from '../../../api';
|
|
2
|
+
import { DbService } from '../../../db';
|
|
3
|
+
import { ImportTelemetryContext } from '../../../telemetry';
|
|
4
|
+
export declare class GenerateProfileImportTelemetry {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportTelemetryContext): Promise<Response>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
export declare class TransportAssesments {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private deleteUnwantedAssesments;
|
|
9
|
+
private saveLearnerAssesmentDetails;
|
|
10
|
+
private saveLearnerSummary;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
export declare class TransportFrameworkNChannel {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private saveNoSqlEntryToDb;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
export declare class TransportGroupProfile {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private saveGroupProfilesToDb;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
export declare class TransportGroup {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private saveGroupsToDb;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
export declare class TransportProfiles {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private saveProfilesToDb;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
3
|
+
import { Response } from '../../../api';
|
|
4
|
+
export declare class TransportUser {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private saveUsersToDb;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { Response } from '../../../api';
|
|
3
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
4
|
+
export declare class UpdateImportedProfileMetadata {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbService } from '../../../db';
|
|
2
|
+
import { Response } from '../../../api';
|
|
3
|
+
import { ImportProfileContext } from '../../def/import-profile-context';
|
|
4
|
+
export declare class ValidateProfileMetadata {
|
|
5
|
+
private dbService;
|
|
6
|
+
constructor(dbService: DbService);
|
|
7
|
+
execute(importContext: ImportProfileContext): Promise<Response>;
|
|
8
|
+
private getImportTypes;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { IsProfileAlreadyInUseRequest, ProfileServiceConfig } from '..';
|
|
3
|
+
import { ProfileExistsResponse } from '../def/profile-exists-response';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export declare class IsProfileAlreadyInUseHandler implements ApiRequestHandler<IsProfileAlreadyInUseRequest, ProfileExistsResponse> {
|
|
6
|
+
private apiService;
|
|
7
|
+
private profileAlreadyInUseConfig;
|
|
8
|
+
private readonly GET_PROFILE_ALREADY_IN_USE_ENDPOINT;
|
|
9
|
+
constructor(apiService: ApiService, profileAlreadyInUseConfig: ProfileServiceConfig);
|
|
10
|
+
handle(request: IsProfileAlreadyInUseRequest): Observable<ProfileExistsResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AddManagedProfileRequest } from '../def/add-managed-profile-request';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ProfileService, ProfileServiceConfig, ServerProfile } from '..';
|
|
4
|
+
import { ApiService } from '../../api';
|
|
5
|
+
import { AuthService } from '../../auth';
|
|
6
|
+
import { CachedItemStore } from '../../key-value-store';
|
|
7
|
+
import { GetManagedServerProfilesRequest } from '../def/get-managed-server-profiles-request';
|
|
8
|
+
import { DbService } from '../../db';
|
|
9
|
+
import { FrameworkService } from '../../framework';
|
|
10
|
+
import { SharedPreferences } from '../../util/shared-preferences';
|
|
11
|
+
export declare class ManagedProfileManager {
|
|
12
|
+
private profileService;
|
|
13
|
+
private authService;
|
|
14
|
+
private profileServiceConfig;
|
|
15
|
+
private apiService;
|
|
16
|
+
private cachedItemStore;
|
|
17
|
+
private dbService;
|
|
18
|
+
private frameworkService;
|
|
19
|
+
private sharedPreferences;
|
|
20
|
+
private static readonly MANGED_SERVER_PROFILES_LOCAL_KEY;
|
|
21
|
+
private static readonly USER_PROFILE_DETAILS_KEY_PREFIX;
|
|
22
|
+
private managedProfileAdded$;
|
|
23
|
+
constructor(profileService: ProfileService, authService: AuthService, profileServiceConfig: ProfileServiceConfig, apiService: ApiService, cachedItemStore: CachedItemStore, dbService: DbService, frameworkService: FrameworkService, sharedPreferences: SharedPreferences);
|
|
24
|
+
addManagedProfile(request: AddManagedProfileRequest): Observable<{
|
|
25
|
+
uid: string;
|
|
26
|
+
}>;
|
|
27
|
+
getManagedServerProfiles(request: GetManagedServerProfilesRequest): Observable<ServerProfile[]>;
|
|
28
|
+
switchSessionToManagedProfile({ uid }: {
|
|
29
|
+
uid: string;
|
|
30
|
+
}): Observable<undefined>;
|
|
31
|
+
private persistManagedProfile;
|
|
32
|
+
private createManagedProfile;
|
|
33
|
+
private isLoggedInUser;
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { LocationSearchCriteria, ProfileServiceConfig } from '..';
|
|
3
|
+
import { LocationSearchResult } from '../def/location-search-result';
|
|
4
|
+
import { CachedItemStore } from '../../key-value-store';
|
|
5
|
+
import { FileService } from '../../util/file/def/file-service';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
export declare class SearchLocationHandler implements ApiRequestHandler<LocationSearchCriteria, LocationSearchResult[]> {
|
|
8
|
+
private apiService;
|
|
9
|
+
private profileServiceConfig;
|
|
10
|
+
private fileService;
|
|
11
|
+
private cachedItemStore;
|
|
12
|
+
private static readonly GET_SEARCH_LOCATION_ENDPOINT;
|
|
13
|
+
private static readonly LOCATION_TTL;
|
|
14
|
+
private readonly LOCATION_LOCAL_KEY;
|
|
15
|
+
constructor(apiService: ApiService, profileServiceConfig: ProfileServiceConfig, fileService: FileService, cachedItemStore: CachedItemStore);
|
|
16
|
+
handle(request: LocationSearchCriteria): Observable<LocationSearchResult[]>;
|
|
17
|
+
private fetchFromServer;
|
|
18
|
+
private fetchFromFile;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { TenantInfo } from '../def/tenant-info';
|
|
3
|
+
import { ProfileServiceConfig } from '..';
|
|
4
|
+
import { TenantInfoRequest } from '..';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
export declare class TenantInfoHandler implements ApiRequestHandler<TenantInfoRequest, TenantInfo> {
|
|
7
|
+
private apiService;
|
|
8
|
+
private tenantServiceConfig;
|
|
9
|
+
private readonly GET_TENANT_INFO_ENDPOINT;
|
|
10
|
+
constructor(apiService: ApiService, tenantServiceConfig: ProfileServiceConfig);
|
|
11
|
+
handle(tenantInfoRequest: TenantInfoRequest): Observable<TenantInfo>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { UserMigrateRequest } from '../def/user-migrate-request';
|
|
3
|
+
import { UserMigrateResponse } from '../def/user-migrate-response';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { SdkConfig } from '../../sdk-config';
|
|
6
|
+
export declare class UserMigrateHandler implements ApiRequestHandler<UserMigrateRequest, UserMigrateResponse> {
|
|
7
|
+
private sdkConfig;
|
|
8
|
+
private apiService;
|
|
9
|
+
private static readonly USER_MIGRATE;
|
|
10
|
+
private readonly apiConfig;
|
|
11
|
+
private readonly profileServiceConfig;
|
|
12
|
+
constructor(sdkConfig: SdkConfig, apiService: ApiService);
|
|
13
|
+
handle(request: UserMigrateRequest): Observable<UserMigrateResponse>;
|
|
14
|
+
fetchFromServer(request: any): Observable<UserMigrateResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiRequestHandler, ApiService } from '../../api';
|
|
2
|
+
import { ProfileServiceConfig, VerifyOtpRequest } from '..';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare class VerifyOtpHandler implements ApiRequestHandler<VerifyOtpRequest, boolean> {
|
|
5
|
+
private apiService;
|
|
6
|
+
private optServiceConfig;
|
|
7
|
+
private readonly GET_VERIFY_OTP_ENDPOINT;
|
|
8
|
+
constructor(apiService: ApiService, optServiceConfig: ProfileServiceConfig);
|
|
9
|
+
handle(request: VerifyOtpRequest): Observable<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AcceptTermsConditionRequest, Consent, ContentAccess, GenerateOtpRequest, GetAllProfileRequest, IsProfileAlreadyInUseRequest, LocationSearchCriteria, MergeServerProfilesRequest, Profile, ProfileExportRequest, ProfileExportResponse, ProfileService, ProfileSession, ProfileSource, ReadConsentResponse, ServerProfile, ServerProfileDetailsRequest, TenantInfoRequest, UpdateConsentResponse, UserFeedEntry, UserMigrateRequest, VerifyOtpRequest } from '..';
|
|
2
|
+
import { DbService } from '../../db';
|
|
3
|
+
import { TenantInfo } from '../def/tenant-info';
|
|
4
|
+
import { ApiService } from '../../api';
|
|
5
|
+
import { CachedItemStore, KeyValueStore } from '../../key-value-store';
|
|
6
|
+
import { ContentAccessFilterCriteria } from '../def/content-access-filter-criteria';
|
|
7
|
+
import { ProfileExistsResponse } from '../def/profile-exists-response';
|
|
8
|
+
import { LocationSearchResult } from '../def/location-search-result';
|
|
9
|
+
import { SharedPreferences } from '../../util/shared-preferences';
|
|
10
|
+
import { FrameworkService } from '../../framework';
|
|
11
|
+
import { ProfileImportRequest } from '../def/profile-import-request';
|
|
12
|
+
import { ProfileImportResponse } from '../def/profile-import-response';
|
|
13
|
+
import { FileService } from '../../util/file/def/file-service';
|
|
14
|
+
import { DeviceInfo } from '../../util/device';
|
|
15
|
+
import { SdkConfig } from '../../sdk-config';
|
|
16
|
+
import { Container } from 'inversify';
|
|
17
|
+
import { AuthService } from '../../auth';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
import { UserMigrateResponse } from '../def/user-migrate-response';
|
|
20
|
+
import { ManagedProfileManager } from '../handler/managed-profile-manager';
|
|
21
|
+
import { CsUserService } from '@project-sunbird/client-services/services/user';
|
|
22
|
+
import { CheckUserExistsRequest } from '../def/check-user-exists-request';
|
|
23
|
+
import { CheckUserExistsResponse } from '../def/check-user-exists-response';
|
|
24
|
+
import { UpdateServerProfileDeclarationsResponse } from '../def/update-server-profile-declarations-response';
|
|
25
|
+
import { UpdateServerProfileDeclarationsRequest } from '../def/update-server-profile-declarations-request';
|
|
26
|
+
import { UpdateUserFeedRequest } from '../def/update-user-feed-request';
|
|
27
|
+
import { DeleteUserFeedRequest } from '../def/delete-user-feed-request';
|
|
28
|
+
import { UpdateServerProfileResponse } from '../def/update-server-profile-response';
|
|
29
|
+
import { UpdateServerProfileInfoRequest } from '../def/update-server-profile-info-request';
|
|
30
|
+
export declare class ProfileServiceImpl implements ProfileService {
|
|
31
|
+
private container;
|
|
32
|
+
private sdkConfig;
|
|
33
|
+
private dbService;
|
|
34
|
+
private apiService;
|
|
35
|
+
private cachedItemStore;
|
|
36
|
+
private keyValueStore;
|
|
37
|
+
private sharedPreferences;
|
|
38
|
+
private frameworkService;
|
|
39
|
+
private fileService;
|
|
40
|
+
private deviceInfo;
|
|
41
|
+
private authService;
|
|
42
|
+
private userService;
|
|
43
|
+
private static readonly KEY_USER_SESSION;
|
|
44
|
+
private static readonly MERGE_SERVER_PROFILES_PATH;
|
|
45
|
+
private readonly apiConfig;
|
|
46
|
+
private readonly profileServiceConfig;
|
|
47
|
+
readonly managedProfileManager: ManagedProfileManager;
|
|
48
|
+
constructor(container: Container, sdkConfig: SdkConfig, dbService: DbService, apiService: ApiService, cachedItemStore: CachedItemStore, keyValueStore: KeyValueStore, sharedPreferences: SharedPreferences, frameworkService: FrameworkService, fileService: FileService, deviceInfo: DeviceInfo, authService: AuthService, userService: CsUserService);
|
|
49
|
+
private readonly telemetryService;
|
|
50
|
+
preInit(): Observable<undefined>;
|
|
51
|
+
checkServerProfileExists(request: CheckUserExistsRequest): Observable<CheckUserExistsResponse>;
|
|
52
|
+
createProfile(profile: Profile, profileSource?: ProfileSource): Observable<Profile>;
|
|
53
|
+
deleteProfile(uid: string): Observable<undefined>;
|
|
54
|
+
updateProfile(profile: Profile): Observable<Profile>;
|
|
55
|
+
updateServerProfile(updateUserInfoRequest: UpdateServerProfileInfoRequest): Observable<UpdateServerProfileResponse>;
|
|
56
|
+
getTenantInfo(tenantInfoRequest: TenantInfoRequest): Observable<TenantInfo>;
|
|
57
|
+
getAllProfiles(profileRequest?: GetAllProfileRequest): Observable<Profile[]>;
|
|
58
|
+
getServerProfilesDetails(serverProfileDetailsRequest: ServerProfileDetailsRequest): Observable<ServerProfile>;
|
|
59
|
+
getActiveSessionProfile({ requiredFields }: Pick<ServerProfileDetailsRequest, 'requiredFields'>): Observable<Profile>;
|
|
60
|
+
setActiveSessionForProfile(profileUid: string): Observable<boolean>;
|
|
61
|
+
getActiveProfileSession(): Observable<ProfileSession>;
|
|
62
|
+
acceptTermsAndConditions(acceptTermsConditions: AcceptTermsConditionRequest): Observable<boolean>;
|
|
63
|
+
isProfileAlreadyInUse(isProfileAlreadyInUseRequest: IsProfileAlreadyInUseRequest): Observable<ProfileExistsResponse>;
|
|
64
|
+
generateOTP(generateOtpRequest: GenerateOtpRequest): Observable<boolean>;
|
|
65
|
+
verifyOTP(verifyOTPRequest: VerifyOtpRequest): Observable<boolean>;
|
|
66
|
+
searchLocation(locationSearchCriteria: LocationSearchCriteria): Observable<LocationSearchResult[]>;
|
|
67
|
+
getAllContentAccess(criteria: ContentAccessFilterCriteria): Observable<ContentAccess[]>;
|
|
68
|
+
addContentAccess(contentAccess: ContentAccess): Observable<boolean>;
|
|
69
|
+
exportProfile(profileExportRequest: ProfileExportRequest): Observable<ProfileExportResponse>;
|
|
70
|
+
importProfile(profileImportRequest: ProfileImportRequest): Observable<ProfileImportResponse>;
|
|
71
|
+
mergeServerProfiles(mergeServerProfilesRequest: MergeServerProfilesRequest): Observable<undefined>;
|
|
72
|
+
isDefaultChannelProfile(): Observable<boolean>;
|
|
73
|
+
getUserFeed(): Observable<UserFeedEntry[]>;
|
|
74
|
+
updateUserFeedEntry(updateUserFeedRequest: UpdateUserFeedRequest): Observable<boolean>;
|
|
75
|
+
deleteUserFeedEntry(deleteUserFeedRequest: DeleteUserFeedRequest): Observable<boolean>;
|
|
76
|
+
userMigrate(userMigrateRequest: UserMigrateRequest): Observable<UserMigrateResponse>;
|
|
77
|
+
updateServerProfileDeclarations(request: UpdateServerProfileDeclarationsRequest): Observable<UpdateServerProfileDeclarationsResponse>;
|
|
78
|
+
getConsent(userConsent: Consent): Observable<ReadConsentResponse>;
|
|
79
|
+
updateConsent(userConsent: Consent): Observable<UpdateConsentResponse>;
|
|
80
|
+
private mapDbProfileEntriesToProfiles;
|
|
81
|
+
private generateSessionStartTelemetry;
|
|
82
|
+
private generateSessionEndTelemetry;
|
|
83
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './def/profile';
|
|
2
|
+
export * from './def/server-profile';
|
|
3
|
+
export * from './def/profile-service';
|
|
4
|
+
export * from './def/profile-session';
|
|
5
|
+
export * from './def/content-access';
|
|
6
|
+
export * from './impl/profile-service-impl';
|
|
7
|
+
export * from './config/profile-service-config';
|
|
8
|
+
export * from './def/get-all-profile-request';
|
|
9
|
+
export * from './def/update-server-profile-info-request';
|
|
10
|
+
export * from './errors/no-active-session-error';
|
|
11
|
+
export * from './errors/no-profile-found-error';
|
|
12
|
+
export * from './def/server-profile-details-request';
|
|
13
|
+
export * from './def/accept-terms-condition-request';
|
|
14
|
+
export * from './def/is-profile-already-in-use-request';
|
|
15
|
+
export * from './def/location-search-criteria';
|
|
16
|
+
export * from './def/generate-otp-request';
|
|
17
|
+
export * from './def/verify-otp-request';
|
|
18
|
+
export * from './def/profile-export-request';
|
|
19
|
+
export * from './def/profile-export-response';
|
|
20
|
+
export * from './def/tenant-info-request';
|
|
21
|
+
export * from './def/merge-server-profiles-request';
|
|
22
|
+
export * from './def/user-migrate-request';
|
|
23
|
+
export * from './def/location-search-result';
|
|
24
|
+
export * from './def/check-user-exists-request';
|
|
25
|
+
export * from './def/check-user-exists-response';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileEntry } from '../db/schema';
|
|
2
|
+
import { Profile } from '..';
|
|
3
|
+
export declare class ProfileDbEntryMapper {
|
|
4
|
+
static mapProfileDBEntryToProfile(profileEntry: ProfileEntry.SchemaMap): Profile;
|
|
5
|
+
static mapProfileToProfileDBEntry(profile: Profile): ProfileEntry.SchemaMap;
|
|
6
|
+
}
|
package/sdk-config.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ApiConfig } from './api';
|
|
2
|
+
import { DbConfig } from './db';
|
|
3
|
+
import { ContentServiceConfig } from './content';
|
|
4
|
+
import { CourseServiceConfig } from './course';
|
|
5
|
+
import { FormServiceConfig } from './form';
|
|
6
|
+
import { FrameworkServiceConfig } from './framework';
|
|
7
|
+
import { ProfileServiceConfig } from './profile';
|
|
8
|
+
import { PageServiceConfig } from './page';
|
|
9
|
+
import { AppConfig } from './api/config/app-config';
|
|
10
|
+
import { FileConfig } from './util/file/config/file-config';
|
|
11
|
+
import { SystemSettingsConfig } from './system-settings';
|
|
12
|
+
import { TelemetryConfig } from './telemetry/config/telemetry-config';
|
|
13
|
+
import { SharedPreferencesConfig } from './util/shared-preferences';
|
|
14
|
+
import { PlayerConfig } from './player/def/response';
|
|
15
|
+
import { EventsBusConfig } from './events-bus/config/events-bus-config';
|
|
16
|
+
import { ErrorLoggerConfig } from './error/config/error-logger-config';
|
|
17
|
+
import { FaqServiceConfig } from './faq';
|
|
18
|
+
import { DeviceRegisterConfig } from './device-register';
|
|
19
|
+
import { CertificateServiceConfig } from './certificate/config/certificate-service-config';
|
|
20
|
+
export interface SdkConfig {
|
|
21
|
+
platform: 'cordova' | 'web';
|
|
22
|
+
apiConfig: ApiConfig;
|
|
23
|
+
dbConfig: DbConfig;
|
|
24
|
+
deviceRegisterConfig: DeviceRegisterConfig;
|
|
25
|
+
fileConfig: FileConfig;
|
|
26
|
+
contentServiceConfig: ContentServiceConfig;
|
|
27
|
+
courseServiceConfig: CourseServiceConfig;
|
|
28
|
+
formServiceConfig: FormServiceConfig;
|
|
29
|
+
frameworkServiceConfig: FrameworkServiceConfig;
|
|
30
|
+
faqServiceConfig: FaqServiceConfig;
|
|
31
|
+
profileServiceConfig: ProfileServiceConfig;
|
|
32
|
+
certificateServiceConfig: CertificateServiceConfig;
|
|
33
|
+
pageServiceConfig: PageServiceConfig;
|
|
34
|
+
appConfig: AppConfig;
|
|
35
|
+
systemSettingsConfig: SystemSettingsConfig;
|
|
36
|
+
telemetryConfig: TelemetryConfig;
|
|
37
|
+
sharedPreferencesConfig: SharedPreferencesConfig;
|
|
38
|
+
playerConfig?: PlayerConfig;
|
|
39
|
+
eventsBusConfig: EventsBusConfig;
|
|
40
|
+
errorLoggerConfig: ErrorLoggerConfig;
|
|
41
|
+
}
|