@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 2.118.0 to 2.119.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "2.118.0", | ||
"version": "2.119.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -846,3 +846,4 @@ export const Rels = { | ||
searchCourseMergeLogs: 'search-course-merge-logs', | ||
courseMergeLogDetail: 'course-merge-log-detail' | ||
courseMergeLogDetail: 'course-merge-log-detail', | ||
timeFilter: 'time-filter' | ||
} | ||
@@ -849,0 +850,0 @@ }, |
@@ -7,2 +7,3 @@ /** | ||
import { BaseCollectionEntity } from './BaseCollectionEntity.js'; | ||
import { performSirenAction } from '../../es6/SirenAction.js'; | ||
@@ -57,2 +58,27 @@ export class CourseMergeLogDetailCollectionEntity extends BaseCollectionEntity { | ||
} | ||
hasTimeFilterAction() { | ||
return this._entity?.hasActionByName(Actions.ipsis.sisCourseMerge.timeFilter); | ||
} | ||
getTimeFilterAction() { | ||
if (!this.hasTimeFilterAction()) { | ||
return; | ||
} | ||
return this._entity.getActionByName(Actions.ipsis.sisCourseMerge.timeFilter); | ||
} | ||
async timeFilter(startTime, endTime) { | ||
const action = this.getTimeFilterAction(); | ||
if (!action) { | ||
return; | ||
} | ||
const fields = [ | ||
{ name: 'startTime', value: startTime }, | ||
{ name: 'endTime', value: endTime } | ||
]; | ||
return await performSirenAction(this._token, action, fields, true); | ||
} | ||
} |
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
402588
11159