Class: SEN

Help4.widget.help.project.SEN()

this backend connector is able to handle SEN project content for a RO model configuration - in case of SEN config: will download published and head data - in case of EXT config: will only download published data

Constructor

new SEN()

Source:

Methods

(protected, static) _assembleHead(head, tagInfo, config) → {Help4.widget.companionCore.SEN.PubProjectResponse|null}

Parameters:
Name Type Description
head Help4.widget.companionCore.SEN.ProjectResponseHead
Properties
Name Type Description
entityXml Document
projectDpr Document
project Help4.widget.help.project.SEN.Project
tagInfo Help4.widget.help.project.SEN.TagInfoList
config Help4.typedef.SystemConfiguration
Source:
Returns:
Type
Help4.widget.companionCore.SEN.PubProjectResponse | null

(protected, static) _assemblePub(pub, tagInfo, config) → {Help4.widget.companionCore.SEN.PubProjectResponse|null}

Parameters:
Name Type Description
pub Help4.widget.companionCore.SEN.ProjectResponsePub
Properties
Name Type Description
context Help4.widget.companionCore.SEN.PubProjectResponse
project Help4.widget.help.project.SEN.Project
tagInfo Help4.widget.help.project.SEN.TagInfoList
config Help4.typedef.SystemConfiguration
Source:
Returns:
Type
Help4.widget.companionCore.SEN.PubProjectResponse | null

(protected, static) _getUrls(projectId, config, serviceUrl) → {Help4.widget.help.project.SEN.ProjectUrlConfig}

Parameters:
Name Type Description
projectId string the project id
config Help4.typedef.SystemConfiguration the system configuration
serviceUrl string the server base URL
Source:
Returns:
Type
Help4.widget.help.project.SEN.ProjectUrlConfig

(protected, static) _parse(data, config, catalogueTypeopt, isExtensionopt) → {Help4.widget.help.Project}

Parameters:
Name Type Attributes Default Description
data Help4.widget.companionCore.SEN.PubProjectResponse
Properties
Name Type Description
contextType Help4.widget.help.ContextTypes
entityTxt Help4.widget.help.project.SEN.EntityTxt
lessonJs Help4.widget.help.project.SEN.LessonJs
config Help4.typedef.SystemConfiguration
catalogueType Help4.widget.help.CatalogueTypes <optional>
'SEN'
isExtension boolean <optional>
false
Source:
Returns:
Type
Help4.widget.help.Project

(async, static) load(projectId, config, data) → {Promise.<(Help4.widget.help.Projects|null)>}

Parameters:
Name Type Description
projectId string project ID
config Help4.typedef.SystemConfiguration the system configuration
data Help4.widget.help.Data
Source:
Returns:
Type
Promise.<(Help4.widget.help.Projects|null)>

Type Definitions

EntityTxt

Type:
  • Object
Properties:
Name Type Attributes Description
assets *
caption string
conditions string
context_id string
created_by string
creation_time string
creator string
cwa_recommended_sync_mode string
description string
h4_loio string
h4_product string
h4_product_version string
h4_system string
hidden boolean <optional>
language string
macroset string
mastery_score_percent string
max_score_percent string
modification_time string
modified_by string
sub_type string
tclass string
uid string
info Object <optional>
Properties
Name Type Description
published Help4.widget.help.PUBLISHED_STATUS
playbackTag Help4.widget.help.PUBLISHED_STATUS
Source:

LessonJs

Type:
  • Object
Properties:
Name Type Description
global_params Object
tourstops Array.<Help4.widget.help.project.SEN.LessonJsTourstop>
user_header Object
Properties
Name Type Description
audio_ext string
author string
comment string
language string
mastery_score_percent string
max_score_percent string
shelftype string
title string
version string
Source:

LessonJsMacro

Type:
Source:

LessonJsMacroArray

Type:
Source:

LessonJsMacroDefineTarget

Type:
  • Object
Properties:
Name Type Description
duration number
key string screen ID
macro_template 'define_target'
time number
uid string
Source:

LessonJsMacroGuideClick

Type:
  • Object
Properties:
Name Type Description
bubble_centered boolean
bubble_orientation string
bubble_size string
bubble_text string
bubble_type string
caption string
conditions string
duration number
hotspot string
hotspot_element_type string
manual_manual_offset Object
Properties
Name Type Description
top number
left number
hotspot_offset boolean
hotspot_rect_delta Object
Properties
Name Type Description
width number
height number
hotspot_spotlight boolean
hotspot_style string
macro_template 'guide_click'
show_arrow boolean
show_title_bar boolean
time number
tourstep_auto_progress string
tourstep_auto_skip boolean
uid string
Source:

LessonJsMacroHelpTile

Type:
  • Object
Source:

LessonJsMacroLinkTile

Type:
  • Object
Source:

LessonJsMacroStartUnit

Type:
  • Object
Properties:
Name Type Description
duration number
macro_template 'start_unit'
time number
uid string
Source:

LessonJsTourstop

Type:
  • Object
Properties:
Name Type Description
audio string
audio_duration number
callable boolean
duration number
index index
jumpable boolean
macros Help4.widget.help.project.SEN.LessonJsMacroArray
title string
uid string
visible boolean
Source:

Project

Type:
  • Object
Properties:
Name Type Description
Meta Help4.widget.help.project.SEN.ProjectMeta
Tags Help4.widget.help.project.SEN.ProjectTags
Versions Help4.widget.help.project.SEN.ProjectVersions
active boolean
assets Array.<*>
assignee string
caption string
conditions string
context_id string
created_by string
creation_time string
creator string
cwa_recommended_sync_mode string
description string
entity_published_path *
fallback_has_entity boolean
h4_loio string
h4_product string
h4_product_version string
h4_system string
hidden number
language string
macroset string
mastery_score_percent string
max_score_percent string
maxversion string
modification_time string
modified_by string
ref_status string
status string
sub_type string
uid string
workflow_uid string
Source:

ProjectMeta

Type:
  • Object
Properties:
Name Type Description
Commits Array.<Object>
Streams Array.<Object>
wt number write token status
Source:

ProjectTag

Type:
  • Object
Properties:
Name Type Description
tag string
version string
Source:

ProjectTags

Type:
Source:

ProjectUrlConfig

Type:
  • Object
Properties:
Name Type Attributes Default Description
serverBaseUrl string base URL of the content server
pubUrl string URL extension to public end-user content
headUrl string <optional>
null URL extension to non-public author only content
Source:

ProjectVersion

Type:
  • Object
Properties:
Name Type Description
version string
user string
date string
Source:

ProjectVersions

Type:
Source:

TagInfo

Type:
  • Object
Properties:
Name Type Description
id string tag ID
display_name string
description string
Source:

TagInfoList

Type:
Source: