Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

scormcloud-client

distributhor652MIT0.2.6TypeScript support: included

A Typescript and JS client for interfacing with the ScormCloud API

scorm, scormcloud

readme

Description

A Typescript and Javascript client for interfacing with the official SCORM Cloud API

An technical overview of the API and it's related services can be found at : API Overview

Note: This client is in the early stages of development and not all official endpoints are implemented yet. Currently, the endpoints covered by the "Getting Started" tutorial are available for use, along with some additional ones. The tutorial can therefore be completed with this client in it's current state (as shown by the integration tests).

Current status: Please refer to the reference documentation for this client, which will always reflect the latest development. The coverage section below will be kept up to date, in order to give a bird's eye view of the state of coverage of the endpoints of the official API.


Usage

 import { ScormClient } from 'scorm-client'

 const client = new ScormClient(appId, secretKey, "read")

 // will fetch a course using a token with the default scope, in this case 'read'
 const course: Course = await client.getCourse(courseId)

 // will delete a course using a token with 'write' scope
 const result: SuccessIndicator = await client.deleteCourse(courseId, { scope: 'write' })

For more details, see the reference documentation below


Documentation

The API reference documentation for this client


Coverage

The complete list of endpoint methods exposed by the official API can be found at : API Method Reference

The following list indicates which of these endpoints are currently covered by functionality of this client.


Authentication Service

  • <input checked="" disabled="" type="checkbox"> GetAppToken

Ping Service

  • <input checked="" disabled="" type="checkbox"> PingAppId

Course Service

  • <input checked="" disabled="" type="checkbox"> GetCourses
  • <input checked="" disabled="" type="checkbox"> CreateUploadAndImportCourseJob
  • <input disabled="" type="checkbox"> CreateNoUploadAndImportCourseJob
  • <input disabled="" type="checkbox"> CreateFetchAndImportCourseJob
  • <input checked="" disabled="" type="checkbox"> GetImportJobStatus
  • <input checked="" disabled="" type="checkbox"> GetCourse
  • <input checked="" disabled="" type="checkbox"> DeleteCourse
  • <input checked="" disabled="" type="checkbox"> SetCourseTitle
  • <input disabled="" type="checkbox"> BuildCoursePreviewLaunchLink
  • <input disabled="" type="checkbox"> GetCourseZip
  • <input disabled="" type="checkbox"> UploadCourseAssetFile
  • <input disabled="" type="checkbox"> ImportCourseAssetFile
  • <input disabled="" type="checkbox"> GetCourseAsset
  • <input disabled="" type="checkbox"> DeleteCourseAsset
  • <input disabled="" type="checkbox"> GetCourseFileList
  • <input disabled="" type="checkbox"> GetCourseConfiguration
  • <input disabled="" type="checkbox"> SetCourseConfiguration
  • <input disabled="" type="checkbox"> DeleteCourseConfigurationSetting
  • <input disabled="" type="checkbox"> PutCourseTagsBatch
  • <input disabled="" type="checkbox"> PutCourseTags
  • <input disabled="" type="checkbox"> GetCourseTags
  • <input disabled="" type="checkbox"> DeleteCourseTags
  • <input disabled="" type="checkbox"> GetCourseStatements
  • <input checked="" disabled="" type="checkbox"> GetCourseVersions
  • <input disabled="" type="checkbox"> GetCourseVersionInfo
  • <input checked="" disabled="" type="checkbox"> DeleteCourseVersion
  • <input disabled="" type="checkbox"> BuildCoursePreviewLaunchLinkWithVersion
  • <input disabled="" type="checkbox"> GetVersionedCourseZip
  • <input disabled="" type="checkbox"> GetCourseVersionAsset
  • <input disabled="" type="checkbox"> ImportCourseVersionAssetFile
  • <input disabled="" type="checkbox"> DeleteCourseVersionAsset
  • <input checked="" disabled="" type="checkbox"> UploadCourseVersionAssetFile
  • <input disabled="" type="checkbox"> GetCourseVersionFileList
  • <input disabled="" type="checkbox"> GetCourseVersionConfiguration
  • <input disabled="" type="checkbox"> SetCourseVersionConfiguration
  • <input disabled="" type="checkbox"> DeleteCourseVersionConfigurationSetting
  • <input disabled="" type="checkbox"> GetCourseVersionStatements

Registration Service

  • <input checked="" disabled="" type="checkbox"> GetRegistrations
  • <input checked="" disabled="" type="checkbox"> CreateRegistration
  • <input checked="" disabled="" type="checkbox"> GetRegistration
  • <input checked="" disabled="" type="checkbox"> GetRegistrationProgress
  • <input checked="" disabled="" type="checkbox"> DeleteRegistration
  • <input disabled="" type="checkbox"> GetRegistrationConfiguration
  • <input disabled="" type="checkbox"> SetRegistrationConfiguration
  • <input disabled="" type="checkbox"> DeleteRegistrationConfigurationSetting
  • <input checked="" disabled="" type="checkbox"> BuildRegistrationLaunchLink
  • <input disabled="" type="checkbox"> GetRegistrationLaunchHistory
  • <input disabled="" type="checkbox"> DeleteRegistrationProgress
  • <input disabled="" type="checkbox"> DeleteRegistrationGlobalData
  • <input disabled="" type="checkbox"> PutRegistrationTagsBatch
  • <input disabled="" type="checkbox"> PutRegistrationTags
  • <input disabled="" type="checkbox"> GetRegistrationTags
  • <input disabled="" type="checkbox"> DeleteRegistrationTags
  • <input disabled="" type="checkbox"> GetRegistrationStatements
  • <input disabled="" type="checkbox"> TestRegistrationPostback
  • <input disabled="" type="checkbox"> GetRegistrationInstances
  • <input disabled="" type="checkbox"> CreateNewRegistrationInstance
  • <input disabled="" type="checkbox"> GetRegistrationInstanceProgress
  • <input disabled="" type="checkbox"> DeleteRegistrationInstance
  • <input disabled="" type="checkbox"> GetRegistrationInstanceConfiguration
  • <input disabled="" type="checkbox"> SetRegistrationInstanceConfiguration
  • <input disabled="" type="checkbox"> DeleteRegistrationInstanceConfigurationSetting
  • <input disabled="" type="checkbox"> GetRegistrationInstanceLaunchHistory
  • <input disabled="" type="checkbox"> GetRegistrationInstanceStatements

Learner Service

  • <input disabled="" type="checkbox"> UpdateLearnerInfo
  • <input disabled="" type="checkbox"> DeleteAllLearnerData
  • <input disabled="" type="checkbox"> PutLearnerTagsBatch
  • <input disabled="" type="checkbox"> PutLearnerTags
  • <input disabled="" type="checkbox"> GetLearnerTags
  • <input disabled="" type="checkbox"> DeleteLearnerTags

Not currently in scope

  • Reporting Service
  • Application Management Service
  • Dispatch Service
  • Invitations Service