@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 2.132.0 to 2.133.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "2.132.0", | ||
"version": "2.133.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -24,2 +24,16 @@ import { Actions, Classes, Rels } from '../../hypermedia-constants.js'; | ||
recommendAlignmentsEndpoint() { | ||
if (!this._entity || !this._entity.hasLinkByRel(Rels.Assignments.recommendAlignments)) { | ||
return; | ||
} | ||
return this._entity.getLinkByRel(this._entity.getLinkByRel(Rels.Assignments.recommendAlignments)).href; | ||
} | ||
instructionsHref() { | ||
if (!this._entity || !this._entity.hasLinkByRel(Rels.Assignments.instructionsText)) { | ||
return; | ||
} | ||
return this._entity.getLinkByRel(this._entity.getLinkByRel(Rels.Assignments.instructionsText)).href; | ||
} | ||
/** | ||
@@ -26,0 +40,0 @@ * @returns {bool} Whether or not the edit name action is present on the assignment entity |
@@ -117,3 +117,5 @@ export const Rels = { | ||
notificationEmail: 'https://assignments.api.brightspace.com/rels/notification-email', | ||
categories: 'https://assignments.api.brightspace.com/rels/categories' | ||
categories: 'https://assignments.api.brightspace.com/rels/categories', | ||
instructionsText: 'https://assignments.api.brightspace.com/rels/instructions-text', | ||
recommendAlignments: 'https://assignments.api.brightspace.com/rels/recommend-alignments' | ||
}, | ||
@@ -120,0 +122,0 @@ // Awards |
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
407695
11287