@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 2.24.2 to 2.25.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "2.24.2", | ||
"version": "2.25.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -257,7 +257,7 @@ import { Actions, Classes, Rels } from '../hypermedia-constants.js'; | ||
const action = dateEntity.getActionByName(Actions.activities.availabilityDates.create); | ||
if (!action || !action.getFieldByName('availabilityStartType')) { | ||
if (!action || !action.getFieldByName('startDateAvailabilityType')) { | ||
return; | ||
} | ||
return action.getFieldByName('availabilityStartType').value; | ||
return action.getFieldByName('startDateAvailabilityType').value; | ||
} | ||
@@ -347,2 +347,3 @@ | ||
defaultEndDateType() { | ||
const dateEntity = this._getSubEntityByClass(Classes.availabilityDates.availabilityDates); | ||
@@ -354,7 +355,7 @@ if (!dateEntity) { | ||
const action = dateEntity.getActionByName(Actions.activities.availabilityDates.create); | ||
if (!action || !action.getFieldByName('availabilityEndType')) { | ||
if (!action || !action.getFieldByName('endDateAvailabilityType')) { | ||
return; | ||
} | ||
return action.getFieldByName('availabilityEndType').value; | ||
return action.getFieldByName('endDateAvailabilityType').value; | ||
} | ||
@@ -434,2 +435,3 @@ | ||
_generateDatesAction(startDate, dueDate, endDate, validateOnly, startDateType, endDateType, displayInCalendar) { | ||
let action; | ||
@@ -455,4 +457,4 @@ const datesEntity = this._getSubEntityByClass('dates'); | ||
{ name: 'endDate', value: endDateValue }, | ||
{ name: 'availabilityStartType', value: startDateTypeValue }, | ||
{ name: 'availabilityEndType', value: endDateTypeValue }, | ||
{ name: 'startDateAvailabilityType', value: startDateTypeValue }, | ||
{ name: 'endDateAvailabilityType', value: endDateTypeValue }, | ||
{ name: 'displayInCalendar', value: displayInCalendar } | ||
@@ -459,0 +461,0 @@ ]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
337637