feat(assessment): add the review band of attempt signals and the disclosed collector
This commit is contained in:
1 parent
68286af8b7
commit
b3c6dc870b
124 files changed
+13522
-633
No files matched your search
@@ -191,6 +191,22 @@ func (s *AccountScenario) UnmarshalText(data []byte) error {
|
||||
}
|
||||
}
|
||||
|
||||
type AcknowledgeMyAssessmentSignalNoticeBadRequest Problem
|
||||
|
||||
func (*AcknowledgeMyAssessmentSignalNoticeBadRequest) acknowledgeMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
type AcknowledgeMyAssessmentSignalNoticeConflict Problem
|
||||
|
||||
func (*AcknowledgeMyAssessmentSignalNoticeConflict) acknowledgeMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
type AcknowledgeMyAssessmentSignalNoticeForbidden Problem
|
||||
|
||||
func (*AcknowledgeMyAssessmentSignalNoticeForbidden) acknowledgeMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
type AcknowledgeMyAssessmentSignalNoticeUnauthorized Problem
|
||||
|
||||
func (*AcknowledgeMyAssessmentSignalNoticeUnauthorized) acknowledgeMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
// The anonymous candidate card as an organization reads it. Only explicitly published values reach it;
|
||||
// unconfirmed stack suggestions and unknown values never do. Stack output uses a closed taxonomy. It
|
||||
// carries no name, contact, resume text, employer, salary figure, account or profile identifier, and
|
||||
@@ -1021,12 +1037,213 @@ func (s *AssessmentAvailabilityHeaders) SetResponse(val AssessmentAvailability)
|
||||
|
||||
func (*AssessmentAvailabilityHeaders) getMyAssessmentAvailabilityRes() {}
|
||||
|
||||
// Category decision captured when this result was stored. It is absent from legacy v1 results because
|
||||
// their current grade cannot be inferred later. It never exposes review identifiers, private answers,
|
||||
// or the candidate's current category after this decision.
|
||||
// Ref: #/components/schemas/AssessmentCategoryDecisionView
|
||||
type AssessmentCategoryDecisionView struct {
|
||||
Status AssessmentCategoryDecisionViewStatus `json:"status"`
|
||||
PreviousConfirmedGrade NilGradeCode `json:"previous_confirmed_grade"`
|
||||
CurrentConfirmedGrade NilGradeCode `json:"current_confirmed_grade"`
|
||||
Method NilAssessmentCategoryDecisionViewMethod `json:"method"`
|
||||
Source NilAssessmentCategoryDecisionViewSource `json:"source"`
|
||||
CalibrationStatus NilCalibrationStatus `json:"calibration_status"`
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *AssessmentCategoryDecisionView) GetStatus() AssessmentCategoryDecisionViewStatus {
|
||||
return s.Status
|
||||
}
|
||||
|
||||
// GetPreviousConfirmedGrade returns the value of PreviousConfirmedGrade.
|
||||
func (s *AssessmentCategoryDecisionView) GetPreviousConfirmedGrade() NilGradeCode {
|
||||
return s.PreviousConfirmedGrade
|
||||
}
|
||||
|
||||
// GetCurrentConfirmedGrade returns the value of CurrentConfirmedGrade.
|
||||
func (s *AssessmentCategoryDecisionView) GetCurrentConfirmedGrade() NilGradeCode {
|
||||
return s.CurrentConfirmedGrade
|
||||
}
|
||||
|
||||
// GetMethod returns the value of Method.
|
||||
func (s *AssessmentCategoryDecisionView) GetMethod() NilAssessmentCategoryDecisionViewMethod {
|
||||
return s.Method
|
||||
}
|
||||
|
||||
// GetSource returns the value of Source.
|
||||
func (s *AssessmentCategoryDecisionView) GetSource() NilAssessmentCategoryDecisionViewSource {
|
||||
return s.Source
|
||||
}
|
||||
|
||||
// GetCalibrationStatus returns the value of CalibrationStatus.
|
||||
func (s *AssessmentCategoryDecisionView) GetCalibrationStatus() NilCalibrationStatus {
|
||||
return s.CalibrationStatus
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *AssessmentCategoryDecisionView) SetStatus(val AssessmentCategoryDecisionViewStatus) {
|
||||
s.Status = val
|
||||
}
|
||||
|
||||
// SetPreviousConfirmedGrade sets the value of PreviousConfirmedGrade.
|
||||
func (s *AssessmentCategoryDecisionView) SetPreviousConfirmedGrade(val NilGradeCode) {
|
||||
s.PreviousConfirmedGrade = val
|
||||
}
|
||||
|
||||
// SetCurrentConfirmedGrade sets the value of CurrentConfirmedGrade.
|
||||
func (s *AssessmentCategoryDecisionView) SetCurrentConfirmedGrade(val NilGradeCode) {
|
||||
s.CurrentConfirmedGrade = val
|
||||
}
|
||||
|
||||
// SetMethod sets the value of Method.
|
||||
func (s *AssessmentCategoryDecisionView) SetMethod(val NilAssessmentCategoryDecisionViewMethod) {
|
||||
s.Method = val
|
||||
}
|
||||
|
||||
// SetSource sets the value of Source.
|
||||
func (s *AssessmentCategoryDecisionView) SetSource(val NilAssessmentCategoryDecisionViewSource) {
|
||||
s.Source = val
|
||||
}
|
||||
|
||||
// SetCalibrationStatus sets the value of CalibrationStatus.
|
||||
func (s *AssessmentCategoryDecisionView) SetCalibrationStatus(val NilCalibrationStatus) {
|
||||
s.CalibrationStatus = val
|
||||
}
|
||||
|
||||
type AssessmentCategoryDecisionViewMethod string
|
||||
|
||||
const (
|
||||
AssessmentCategoryDecisionViewMethodDemoBasicPassMark AssessmentCategoryDecisionViewMethod = "demo_basic_pass_mark"
|
||||
)
|
||||
|
||||
// AllValues returns all AssessmentCategoryDecisionViewMethod values.
|
||||
func (AssessmentCategoryDecisionViewMethod) AllValues() []AssessmentCategoryDecisionViewMethod {
|
||||
return []AssessmentCategoryDecisionViewMethod{
|
||||
AssessmentCategoryDecisionViewMethodDemoBasicPassMark,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s AssessmentCategoryDecisionViewMethod) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case AssessmentCategoryDecisionViewMethodDemoBasicPassMark:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *AssessmentCategoryDecisionViewMethod) UnmarshalText(data []byte) error {
|
||||
switch AssessmentCategoryDecisionViewMethod(data) {
|
||||
case AssessmentCategoryDecisionViewMethodDemoBasicPassMark:
|
||||
*s = AssessmentCategoryDecisionViewMethodDemoBasicPassMark
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
type AssessmentCategoryDecisionViewSource string
|
||||
|
||||
const (
|
||||
AssessmentCategoryDecisionViewSourceSyntheticDemo AssessmentCategoryDecisionViewSource = "synthetic_demo"
|
||||
)
|
||||
|
||||
// AllValues returns all AssessmentCategoryDecisionViewSource values.
|
||||
func (AssessmentCategoryDecisionViewSource) AllValues() []AssessmentCategoryDecisionViewSource {
|
||||
return []AssessmentCategoryDecisionViewSource{
|
||||
AssessmentCategoryDecisionViewSourceSyntheticDemo,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s AssessmentCategoryDecisionViewSource) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case AssessmentCategoryDecisionViewSourceSyntheticDemo:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *AssessmentCategoryDecisionViewSource) UnmarshalText(data []byte) error {
|
||||
switch AssessmentCategoryDecisionViewSource(data) {
|
||||
case AssessmentCategoryDecisionViewSourceSyntheticDemo:
|
||||
*s = AssessmentCategoryDecisionViewSourceSyntheticDemo
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
type AssessmentCategoryDecisionViewStatus string
|
||||
|
||||
const (
|
||||
AssessmentCategoryDecisionViewStatusNotEligible AssessmentCategoryDecisionViewStatus = "not_eligible"
|
||||
AssessmentCategoryDecisionViewStatusNotConfirmed AssessmentCategoryDecisionViewStatus = "not_confirmed"
|
||||
AssessmentCategoryDecisionViewStatusAssigned AssessmentCategoryDecisionViewStatus = "assigned"
|
||||
AssessmentCategoryDecisionViewStatusUnchanged AssessmentCategoryDecisionViewStatus = "unchanged"
|
||||
)
|
||||
|
||||
// AllValues returns all AssessmentCategoryDecisionViewStatus values.
|
||||
func (AssessmentCategoryDecisionViewStatus) AllValues() []AssessmentCategoryDecisionViewStatus {
|
||||
return []AssessmentCategoryDecisionViewStatus{
|
||||
AssessmentCategoryDecisionViewStatusNotEligible,
|
||||
AssessmentCategoryDecisionViewStatusNotConfirmed,
|
||||
AssessmentCategoryDecisionViewStatusAssigned,
|
||||
AssessmentCategoryDecisionViewStatusUnchanged,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s AssessmentCategoryDecisionViewStatus) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case AssessmentCategoryDecisionViewStatusNotEligible:
|
||||
return []byte(s), nil
|
||||
case AssessmentCategoryDecisionViewStatusNotConfirmed:
|
||||
return []byte(s), nil
|
||||
case AssessmentCategoryDecisionViewStatusAssigned:
|
||||
return []byte(s), nil
|
||||
case AssessmentCategoryDecisionViewStatusUnchanged:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *AssessmentCategoryDecisionViewStatus) UnmarshalText(data []byte) error {
|
||||
switch AssessmentCategoryDecisionViewStatus(data) {
|
||||
case AssessmentCategoryDecisionViewStatusNotEligible:
|
||||
*s = AssessmentCategoryDecisionViewStatusNotEligible
|
||||
return nil
|
||||
case AssessmentCategoryDecisionViewStatusNotConfirmed:
|
||||
*s = AssessmentCategoryDecisionViewStatusNotConfirmed
|
||||
return nil
|
||||
case AssessmentCategoryDecisionViewStatusAssigned:
|
||||
*s = AssessmentCategoryDecisionViewStatusAssigned
|
||||
return nil
|
||||
case AssessmentCategoryDecisionViewStatusUnchanged:
|
||||
*s = AssessmentCategoryDecisionViewStatusUnchanged
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// Ref: #/components/schemas/AssessmentClipboardSignal
|
||||
type AssessmentClipboardSignal struct {
|
||||
Kind AssessmentClipboardSignalKind `json:"kind"`
|
||||
ItemInstanceID AssessmentItemId `json:"item_instance_id"`
|
||||
OccurredAt Timestamp `json:"occurred_at"`
|
||||
// Byte count only. Clipboard or selection contents are not transmitted or retained.
|
||||
// Size only; clipboard and selection contents are never transmitted or retained. For `paste` it is the
|
||||
// UTF-8 byte count of the pasted plain text plus the byte size of pasted files, counted on the device
|
||||
// from the paste event. For `copy` and `cut` it is the selection length in UTF-16 code units taken
|
||||
// from the selection offsets of a form field, or zero when the field offsets are unavailable; it is an
|
||||
// approximate size and the selected text is not read. The server applies no conversion and treats the
|
||||
// value as an order-of-magnitude indicator.
|
||||
SizeBytes int32 `json:"size_bytes"`
|
||||
}
|
||||
|
||||
@@ -1538,7 +1755,8 @@ type AssessmentCorrectiveResult struct {
|
||||
ConfirmedGrade NilGradeCode `json:"confirmed_grade"`
|
||||
// Confirmed grade of the specialization before this attempt, or null. When the attempt confirmed
|
||||
// nothing, this grade stays in force.
|
||||
PreviousConfirmedGrade NilGradeCode `json:"previous_confirmed_grade"`
|
||||
PreviousConfirmedGrade NilGradeCode `json:"previous_confirmed_grade"`
|
||||
CategoryDecision OptAssessmentCategoryDecisionView `json:"category_decision"`
|
||||
// Strength of an adaptive confirmation, otherwise null.
|
||||
Strength NilAssessmentStrength `json:"strength"`
|
||||
CalibrationStatus CalibrationStatus `json:"calibration_status"`
|
||||
@@ -1622,6 +1840,11 @@ func (s *AssessmentCorrectiveResult) GetPreviousConfirmedGrade() NilGradeCode {
|
||||
return s.PreviousConfirmedGrade
|
||||
}
|
||||
|
||||
// GetCategoryDecision returns the value of CategoryDecision.
|
||||
func (s *AssessmentCorrectiveResult) GetCategoryDecision() OptAssessmentCategoryDecisionView {
|
||||
return s.CategoryDecision
|
||||
}
|
||||
|
||||
// GetStrength returns the value of Strength.
|
||||
func (s *AssessmentCorrectiveResult) GetStrength() NilAssessmentStrength {
|
||||
return s.Strength
|
||||
@@ -1737,6 +1960,11 @@ func (s *AssessmentCorrectiveResult) SetPreviousConfirmedGrade(val NilGradeCode)
|
||||
s.PreviousConfirmedGrade = val
|
||||
}
|
||||
|
||||
// SetCategoryDecision sets the value of CategoryDecision.
|
||||
func (s *AssessmentCorrectiveResult) SetCategoryDecision(val OptAssessmentCategoryDecisionView) {
|
||||
s.CategoryDecision = val
|
||||
}
|
||||
|
||||
// SetStrength sets the value of Strength.
|
||||
func (s *AssessmentCorrectiveResult) SetStrength(val NilAssessmentStrength) {
|
||||
s.Strength = val
|
||||
@@ -4131,7 +4359,8 @@ type AssessmentQualifiedResult struct {
|
||||
ConfirmedGrade NilGradeCode `json:"confirmed_grade"`
|
||||
// Confirmed grade of the specialization before this attempt, or null. When the attempt confirmed
|
||||
// nothing, this grade stays in force.
|
||||
PreviousConfirmedGrade NilGradeCode `json:"previous_confirmed_grade"`
|
||||
PreviousConfirmedGrade NilGradeCode `json:"previous_confirmed_grade"`
|
||||
CategoryDecision OptAssessmentCategoryDecisionView `json:"category_decision"`
|
||||
// Strength of an adaptive confirmation, otherwise null.
|
||||
Strength NilAssessmentStrength `json:"strength"`
|
||||
CalibrationStatus CalibrationStatus `json:"calibration_status"`
|
||||
@@ -4215,6 +4444,11 @@ func (s *AssessmentQualifiedResult) GetPreviousConfirmedGrade() NilGradeCode {
|
||||
return s.PreviousConfirmedGrade
|
||||
}
|
||||
|
||||
// GetCategoryDecision returns the value of CategoryDecision.
|
||||
func (s *AssessmentQualifiedResult) GetCategoryDecision() OptAssessmentCategoryDecisionView {
|
||||
return s.CategoryDecision
|
||||
}
|
||||
|
||||
// GetStrength returns the value of Strength.
|
||||
func (s *AssessmentQualifiedResult) GetStrength() NilAssessmentStrength {
|
||||
return s.Strength
|
||||
@@ -4330,6 +4564,11 @@ func (s *AssessmentQualifiedResult) SetPreviousConfirmedGrade(val NilGradeCode)
|
||||
s.PreviousConfirmedGrade = val
|
||||
}
|
||||
|
||||
// SetCategoryDecision sets the value of CategoryDecision.
|
||||
func (s *AssessmentQualifiedResult) SetCategoryDecision(val OptAssessmentCategoryDecisionView) {
|
||||
s.CategoryDecision = val
|
||||
}
|
||||
|
||||
// SetStrength sets the value of Strength.
|
||||
func (s *AssessmentQualifiedResult) SetStrength(val NilAssessmentStrength) {
|
||||
s.Strength = val
|
||||
@@ -4499,6 +4738,78 @@ func (s *AssessmentRealMode) UnmarshalText(data []byte) error {
|
||||
}
|
||||
}
|
||||
|
||||
// A completed root or corrective result. Training-only demo_express results are excluded from
|
||||
// qualification history.
|
||||
// Ref: #/components/schemas/AssessmentRealResult
|
||||
// AssessmentRealResult represents sum type.
|
||||
type AssessmentRealResult struct {
|
||||
// Type selects the active sum variant, switch on this field.
|
||||
Type AssessmentRealResultType
|
||||
AssessmentQualifiedResult AssessmentQualifiedResult
|
||||
AssessmentCorrectiveResult AssessmentCorrectiveResult
|
||||
}
|
||||
|
||||
// AssessmentRealResultType is oneOf type of AssessmentRealResult.
|
||||
type AssessmentRealResultType string
|
||||
|
||||
// Possible values for AssessmentRealResultType.
|
||||
const (
|
||||
AssessmentQualifiedResultAssessmentRealResult AssessmentRealResultType = "root"
|
||||
AssessmentCorrectiveResultAssessmentRealResult AssessmentRealResultType = "corrective"
|
||||
)
|
||||
|
||||
// IsAssessmentQualifiedResult reports whether AssessmentRealResult is AssessmentQualifiedResult.
|
||||
func (s AssessmentRealResult) IsAssessmentQualifiedResult() bool {
|
||||
return s.Type == AssessmentQualifiedResultAssessmentRealResult
|
||||
}
|
||||
|
||||
// IsAssessmentCorrectiveResult reports whether AssessmentRealResult is AssessmentCorrectiveResult.
|
||||
func (s AssessmentRealResult) IsAssessmentCorrectiveResult() bool {
|
||||
return s.Type == AssessmentCorrectiveResultAssessmentRealResult
|
||||
}
|
||||
|
||||
// SetAssessmentQualifiedResult sets AssessmentRealResult to AssessmentQualifiedResult.
|
||||
func (s *AssessmentRealResult) SetAssessmentQualifiedResult(v AssessmentQualifiedResult) {
|
||||
s.Type = AssessmentQualifiedResultAssessmentRealResult
|
||||
s.AssessmentQualifiedResult = v
|
||||
}
|
||||
|
||||
// GetAssessmentQualifiedResult returns AssessmentQualifiedResult and true boolean if AssessmentRealResult is AssessmentQualifiedResult.
|
||||
func (s AssessmentRealResult) GetAssessmentQualifiedResult() (v AssessmentQualifiedResult, ok bool) {
|
||||
if !s.IsAssessmentQualifiedResult() {
|
||||
return v, false
|
||||
}
|
||||
return s.AssessmentQualifiedResult, true
|
||||
}
|
||||
|
||||
// NewAssessmentQualifiedResultAssessmentRealResult returns new AssessmentRealResult from AssessmentQualifiedResult.
|
||||
func NewAssessmentQualifiedResultAssessmentRealResult(v AssessmentQualifiedResult) AssessmentRealResult {
|
||||
var s AssessmentRealResult
|
||||
s.SetAssessmentQualifiedResult(v)
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAssessmentCorrectiveResult sets AssessmentRealResult to AssessmentCorrectiveResult.
|
||||
func (s *AssessmentRealResult) SetAssessmentCorrectiveResult(v AssessmentCorrectiveResult) {
|
||||
s.Type = AssessmentCorrectiveResultAssessmentRealResult
|
||||
s.AssessmentCorrectiveResult = v
|
||||
}
|
||||
|
||||
// GetAssessmentCorrectiveResult returns AssessmentCorrectiveResult and true boolean if AssessmentRealResult is AssessmentCorrectiveResult.
|
||||
func (s AssessmentRealResult) GetAssessmentCorrectiveResult() (v AssessmentCorrectiveResult, ok bool) {
|
||||
if !s.IsAssessmentCorrectiveResult() {
|
||||
return v, false
|
||||
}
|
||||
return s.AssessmentCorrectiveResult, true
|
||||
}
|
||||
|
||||
// NewAssessmentCorrectiveResultAssessmentRealResult returns new AssessmentRealResult from AssessmentCorrectiveResult.
|
||||
func NewAssessmentCorrectiveResultAssessmentRealResult(v AssessmentCorrectiveResult) AssessmentRealResult {
|
||||
var s AssessmentRealResult
|
||||
s.SetAssessmentCorrectiveResult(v)
|
||||
return s
|
||||
}
|
||||
|
||||
// Immutable result of a terminal assessment attempt. The result shape distinguishes real grade
|
||||
// decisions from demo_express training output.
|
||||
// Ref: #/components/schemas/AssessmentResult
|
||||
@@ -4627,6 +4938,62 @@ func (s *AssessmentResultHeaders) SetResponse(val AssessmentResult) {
|
||||
|
||||
func (*AssessmentResultHeaders) getMyAssessmentResultRes() {}
|
||||
|
||||
// Owner-only immutable root and corrective results ordered by decided_at and attempt_id descending.
|
||||
// Legacy v1 results omit category_decision.
|
||||
// Ref: #/components/schemas/AssessmentResultHistoryPage
|
||||
type AssessmentResultHistoryPage struct {
|
||||
Items []AssessmentRealResult `json:"items"`
|
||||
Page PageInfo `json:"page"`
|
||||
}
|
||||
|
||||
// GetItems returns the value of Items.
|
||||
func (s *AssessmentResultHistoryPage) GetItems() []AssessmentRealResult {
|
||||
return s.Items
|
||||
}
|
||||
|
||||
// GetPage returns the value of Page.
|
||||
func (s *AssessmentResultHistoryPage) GetPage() PageInfo {
|
||||
return s.Page
|
||||
}
|
||||
|
||||
// SetItems sets the value of Items.
|
||||
func (s *AssessmentResultHistoryPage) SetItems(val []AssessmentRealResult) {
|
||||
s.Items = val
|
||||
}
|
||||
|
||||
// SetPage sets the value of Page.
|
||||
func (s *AssessmentResultHistoryPage) SetPage(val PageInfo) {
|
||||
s.Page = val
|
||||
}
|
||||
|
||||
// AssessmentResultHistoryPageHeaders wraps AssessmentResultHistoryPage with response headers.
|
||||
type AssessmentResultHistoryPageHeaders struct {
|
||||
CacheControl CacheControlNoStore
|
||||
Response AssessmentResultHistoryPage
|
||||
}
|
||||
|
||||
// GetCacheControl returns the value of CacheControl.
|
||||
func (s *AssessmentResultHistoryPageHeaders) GetCacheControl() CacheControlNoStore {
|
||||
return s.CacheControl
|
||||
}
|
||||
|
||||
// GetResponse returns the value of Response.
|
||||
func (s *AssessmentResultHistoryPageHeaders) GetResponse() AssessmentResultHistoryPage {
|
||||
return s.Response
|
||||
}
|
||||
|
||||
// SetCacheControl sets the value of CacheControl.
|
||||
func (s *AssessmentResultHistoryPageHeaders) SetCacheControl(val CacheControlNoStore) {
|
||||
s.CacheControl = val
|
||||
}
|
||||
|
||||
// SetResponse sets the value of Response.
|
||||
func (s *AssessmentResultHistoryPageHeaders) SetResponse(val AssessmentResultHistoryPage) {
|
||||
s.Response = val
|
||||
}
|
||||
|
||||
func (*AssessmentResultHistoryPageHeaders) listMyAssessmentResultsRes() {}
|
||||
|
||||
// Work sessions of the attempt, as the policy version limits them, for example two sessions within the
|
||||
// time limit.
|
||||
//
|
||||
@@ -4817,6 +5184,97 @@ func NewAssessmentFullscreenExitSignalAssessmentSignalEvent(v AssessmentFullscre
|
||||
return s
|
||||
}
|
||||
|
||||
// State of the notice about the signals that are collected during a real assessment attempt. The
|
||||
// acknowledgement is a record that the candidate was informed. It is not a consent, grants no purpose,
|
||||
// and neither enables nor blocks signal storage; C3 remains the only consent that the signal operation
|
||||
// checks.
|
||||
// Ref: #/components/schemas/AssessmentSignalNotice
|
||||
type AssessmentSignalNotice struct {
|
||||
// The version the server currently requires the candidate to acknowledge.
|
||||
NoticeVersion AssessmentSignalNoticeVersion `json:"notice_version"`
|
||||
// True when the candidate acknowledged `notice_version`.
|
||||
Acknowledged bool `json:"acknowledged"`
|
||||
// Server time of the first acknowledgement of this version, or null.
|
||||
AcknowledgedAt NilTimestamp `json:"acknowledged_at"`
|
||||
}
|
||||
|
||||
// GetNoticeVersion returns the value of NoticeVersion.
|
||||
func (s *AssessmentSignalNotice) GetNoticeVersion() AssessmentSignalNoticeVersion {
|
||||
return s.NoticeVersion
|
||||
}
|
||||
|
||||
// GetAcknowledged returns the value of Acknowledged.
|
||||
func (s *AssessmentSignalNotice) GetAcknowledged() bool {
|
||||
return s.Acknowledged
|
||||
}
|
||||
|
||||
// GetAcknowledgedAt returns the value of AcknowledgedAt.
|
||||
func (s *AssessmentSignalNotice) GetAcknowledgedAt() NilTimestamp {
|
||||
return s.AcknowledgedAt
|
||||
}
|
||||
|
||||
// SetNoticeVersion sets the value of NoticeVersion.
|
||||
func (s *AssessmentSignalNotice) SetNoticeVersion(val AssessmentSignalNoticeVersion) {
|
||||
s.NoticeVersion = val
|
||||
}
|
||||
|
||||
// SetAcknowledged sets the value of Acknowledged.
|
||||
func (s *AssessmentSignalNotice) SetAcknowledged(val bool) {
|
||||
s.Acknowledged = val
|
||||
}
|
||||
|
||||
// SetAcknowledgedAt sets the value of AcknowledgedAt.
|
||||
func (s *AssessmentSignalNotice) SetAcknowledgedAt(val NilTimestamp) {
|
||||
s.AcknowledgedAt = val
|
||||
}
|
||||
|
||||
// The notice version the candidate was shown and acknowledged.
|
||||
// Ref: #/components/schemas/AssessmentSignalNoticeAcknowledgement
|
||||
type AssessmentSignalNoticeAcknowledgement struct {
|
||||
NoticeVersion AssessmentSignalNoticeVersion `json:"notice_version"`
|
||||
}
|
||||
|
||||
// GetNoticeVersion returns the value of NoticeVersion.
|
||||
func (s *AssessmentSignalNoticeAcknowledgement) GetNoticeVersion() AssessmentSignalNoticeVersion {
|
||||
return s.NoticeVersion
|
||||
}
|
||||
|
||||
// SetNoticeVersion sets the value of NoticeVersion.
|
||||
func (s *AssessmentSignalNoticeAcknowledgement) SetNoticeVersion(val AssessmentSignalNoticeVersion) {
|
||||
s.NoticeVersion = val
|
||||
}
|
||||
|
||||
// AssessmentSignalNoticeHeaders wraps AssessmentSignalNotice with response headers.
|
||||
type AssessmentSignalNoticeHeaders struct {
|
||||
CacheControl CacheControlNoStore
|
||||
Response AssessmentSignalNotice
|
||||
}
|
||||
|
||||
// GetCacheControl returns the value of CacheControl.
|
||||
func (s *AssessmentSignalNoticeHeaders) GetCacheControl() CacheControlNoStore {
|
||||
return s.CacheControl
|
||||
}
|
||||
|
||||
// GetResponse returns the value of Response.
|
||||
func (s *AssessmentSignalNoticeHeaders) GetResponse() AssessmentSignalNotice {
|
||||
return s.Response
|
||||
}
|
||||
|
||||
// SetCacheControl sets the value of CacheControl.
|
||||
func (s *AssessmentSignalNoticeHeaders) SetCacheControl(val CacheControlNoStore) {
|
||||
s.CacheControl = val
|
||||
}
|
||||
|
||||
// SetResponse sets the value of Response.
|
||||
func (s *AssessmentSignalNoticeHeaders) SetResponse(val AssessmentSignalNotice) {
|
||||
s.Response = val
|
||||
}
|
||||
|
||||
func (*AssessmentSignalNoticeHeaders) acknowledgeMyAssessmentSignalNoticeRes() {}
|
||||
func (*AssessmentSignalNoticeHeaders) getMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
type AssessmentSignalNoticeVersion int32
|
||||
|
||||
// Receipt for the submitted batch. It contains no signal details, score, review decision, threshold,
|
||||
// or result band.
|
||||
// Ref: #/components/schemas/AssessmentSignalReceipt
|
||||
@@ -9452,6 +9910,14 @@ type GetMyAssessmentResultUnauthorized Problem
|
||||
|
||||
func (*GetMyAssessmentResultUnauthorized) getMyAssessmentResultRes() {}
|
||||
|
||||
type GetMyAssessmentSignalNoticeForbidden Problem
|
||||
|
||||
func (*GetMyAssessmentSignalNoticeForbidden) getMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
type GetMyAssessmentSignalNoticeUnauthorized Problem
|
||||
|
||||
func (*GetMyAssessmentSignalNoticeUnauthorized) getMyAssessmentSignalNoticeRes() {}
|
||||
|
||||
type GetMyCardPreviewForbidden Problem
|
||||
|
||||
func (*GetMyCardPreviewForbidden) getMyCardPreviewRes() {}
|
||||
@@ -11413,6 +11879,18 @@ func NewPracticeItemContentItemContent(v PracticeItemContent) ItemContent {
|
||||
return s
|
||||
}
|
||||
|
||||
type ListMyAssessmentResultsBadRequest Problem
|
||||
|
||||
func (*ListMyAssessmentResultsBadRequest) listMyAssessmentResultsRes() {}
|
||||
|
||||
type ListMyAssessmentResultsForbidden Problem
|
||||
|
||||
func (*ListMyAssessmentResultsForbidden) listMyAssessmentResultsRes() {}
|
||||
|
||||
type ListMyAssessmentResultsUnauthorized Problem
|
||||
|
||||
func (*ListMyAssessmentResultsUnauthorized) listMyAssessmentResultsRes() {}
|
||||
|
||||
type ListMyCardAccessHistoryBadRequest Problem
|
||||
|
||||
func (*ListMyCardAccessHistoryBadRequest) listMyCardAccessHistoryRes() {}
|
||||
@@ -15727,6 +16205,96 @@ func (o NilAnonymousCardContent) Or(d AnonymousCardContent) AnonymousCardContent
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilAssessmentCategoryDecisionViewMethod returns new NilAssessmentCategoryDecisionViewMethod with value set to v.
|
||||
func NewNilAssessmentCategoryDecisionViewMethod(v AssessmentCategoryDecisionViewMethod) NilAssessmentCategoryDecisionViewMethod {
|
||||
return NilAssessmentCategoryDecisionViewMethod{
|
||||
Value: v,
|
||||
}
|
||||
}
|
||||
|
||||
// NilAssessmentCategoryDecisionViewMethod is nullable AssessmentCategoryDecisionViewMethod.
|
||||
type NilAssessmentCategoryDecisionViewMethod struct {
|
||||
Value AssessmentCategoryDecisionViewMethod
|
||||
Null bool
|
||||
}
|
||||
|
||||
// SetTo sets value to v.
|
||||
func (o *NilAssessmentCategoryDecisionViewMethod) SetTo(v AssessmentCategoryDecisionViewMethod) {
|
||||
o.Null = false
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// IsNull returns true if value is Null.
|
||||
func (o NilAssessmentCategoryDecisionViewMethod) IsNull() bool { return o.Null }
|
||||
|
||||
// SetToNull sets value to null.
|
||||
func (o *NilAssessmentCategoryDecisionViewMethod) SetToNull() {
|
||||
o.Null = true
|
||||
var v AssessmentCategoryDecisionViewMethod
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// Get returns value and boolean that denotes whether value was set.
|
||||
func (o NilAssessmentCategoryDecisionViewMethod) Get() (v AssessmentCategoryDecisionViewMethod, ok bool) {
|
||||
if o.Null {
|
||||
return v, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// Or returns value if set, or given parameter if does not.
|
||||
func (o NilAssessmentCategoryDecisionViewMethod) Or(d AssessmentCategoryDecisionViewMethod) AssessmentCategoryDecisionViewMethod {
|
||||
if v, ok := o.Get(); ok {
|
||||
return v
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilAssessmentCategoryDecisionViewSource returns new NilAssessmentCategoryDecisionViewSource with value set to v.
|
||||
func NewNilAssessmentCategoryDecisionViewSource(v AssessmentCategoryDecisionViewSource) NilAssessmentCategoryDecisionViewSource {
|
||||
return NilAssessmentCategoryDecisionViewSource{
|
||||
Value: v,
|
||||
}
|
||||
}
|
||||
|
||||
// NilAssessmentCategoryDecisionViewSource is nullable AssessmentCategoryDecisionViewSource.
|
||||
type NilAssessmentCategoryDecisionViewSource struct {
|
||||
Value AssessmentCategoryDecisionViewSource
|
||||
Null bool
|
||||
}
|
||||
|
||||
// SetTo sets value to v.
|
||||
func (o *NilAssessmentCategoryDecisionViewSource) SetTo(v AssessmentCategoryDecisionViewSource) {
|
||||
o.Null = false
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// IsNull returns true if value is Null.
|
||||
func (o NilAssessmentCategoryDecisionViewSource) IsNull() bool { return o.Null }
|
||||
|
||||
// SetToNull sets value to null.
|
||||
func (o *NilAssessmentCategoryDecisionViewSource) SetToNull() {
|
||||
o.Null = true
|
||||
var v AssessmentCategoryDecisionViewSource
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// Get returns value and boolean that denotes whether value was set.
|
||||
func (o NilAssessmentCategoryDecisionViewSource) Get() (v AssessmentCategoryDecisionViewSource, ok bool) {
|
||||
if o.Null {
|
||||
return v, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// Or returns value if set, or given parameter if does not.
|
||||
func (o NilAssessmentCategoryDecisionViewSource) Or(d AssessmentCategoryDecisionViewSource) AssessmentCategoryDecisionViewSource {
|
||||
if v, ok := o.Get(); ok {
|
||||
return v
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilAssessmentItem returns new NilAssessmentItem with value set to v.
|
||||
func NewNilAssessmentItem(v AssessmentItem) NilAssessmentItem {
|
||||
return NilAssessmentItem{
|
||||
@@ -16087,6 +16655,51 @@ func (o NilBool) Or(d bool) bool {
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilCalibrationStatus returns new NilCalibrationStatus with value set to v.
|
||||
func NewNilCalibrationStatus(v CalibrationStatus) NilCalibrationStatus {
|
||||
return NilCalibrationStatus{
|
||||
Value: v,
|
||||
}
|
||||
}
|
||||
|
||||
// NilCalibrationStatus is nullable CalibrationStatus.
|
||||
type NilCalibrationStatus struct {
|
||||
Value CalibrationStatus
|
||||
Null bool
|
||||
}
|
||||
|
||||
// SetTo sets value to v.
|
||||
func (o *NilCalibrationStatus) SetTo(v CalibrationStatus) {
|
||||
o.Null = false
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// IsNull returns true if value is Null.
|
||||
func (o NilCalibrationStatus) IsNull() bool { return o.Null }
|
||||
|
||||
// SetToNull sets value to null.
|
||||
func (o *NilCalibrationStatus) SetToNull() {
|
||||
o.Null = true
|
||||
var v CalibrationStatus
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// Get returns value and boolean that denotes whether value was set.
|
||||
func (o NilCalibrationStatus) Get() (v CalibrationStatus, ok bool) {
|
||||
if o.Null {
|
||||
return v, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// Or returns value if set, or given parameter if does not.
|
||||
func (o NilCalibrationStatus) Or(d CalibrationStatus) CalibrationStatus {
|
||||
if v, ok := o.Get(); ok {
|
||||
return v
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilCandidateExperience returns new NilCandidateExperience with value set to v.
|
||||
func NewNilCandidateExperience(v CandidateExperience) NilCandidateExperience {
|
||||
return NilCandidateExperience{
|
||||
@@ -19356,6 +19969,52 @@ func (s *OnboardingStep) UnmarshalText(data []byte) error {
|
||||
}
|
||||
}
|
||||
|
||||
// NewOptAssessmentCategoryDecisionView returns new OptAssessmentCategoryDecisionView with value set to v.
|
||||
func NewOptAssessmentCategoryDecisionView(v AssessmentCategoryDecisionView) OptAssessmentCategoryDecisionView {
|
||||
return OptAssessmentCategoryDecisionView{
|
||||
Value: v,
|
||||
Set: true,
|
||||
}
|
||||
}
|
||||
|
||||
// OptAssessmentCategoryDecisionView is optional AssessmentCategoryDecisionView.
|
||||
type OptAssessmentCategoryDecisionView struct {
|
||||
Value AssessmentCategoryDecisionView
|
||||
Set bool
|
||||
}
|
||||
|
||||
// IsSet returns true if OptAssessmentCategoryDecisionView was set.
|
||||
func (o OptAssessmentCategoryDecisionView) IsSet() bool { return o.Set }
|
||||
|
||||
// Reset unsets value.
|
||||
func (o *OptAssessmentCategoryDecisionView) Reset() {
|
||||
var v AssessmentCategoryDecisionView
|
||||
o.Value = v
|
||||
o.Set = false
|
||||
}
|
||||
|
||||
// SetTo sets value to v.
|
||||
func (o *OptAssessmentCategoryDecisionView) SetTo(v AssessmentCategoryDecisionView) {
|
||||
o.Set = true
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// Get returns value and boolean that denotes whether value was set.
|
||||
func (o OptAssessmentCategoryDecisionView) Get() (v AssessmentCategoryDecisionView, ok bool) {
|
||||
if !o.Set {
|
||||
return v, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// Or returns value if set, or given parameter if does not.
|
||||
func (o OptAssessmentCategoryDecisionView) Or(d AssessmentCategoryDecisionView) AssessmentCategoryDecisionView {
|
||||
if v, ok := o.Get(); ok {
|
||||
return v
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// NewOptCandidateSalaryCompatibility returns new OptCandidateSalaryCompatibility with value set to v.
|
||||
func NewOptCandidateSalaryCompatibility(v CandidateSalaryCompatibility) OptCandidateSalaryCompatibility {
|
||||
return OptCandidateSalaryCompatibility{
|
||||
|
||||
Reference in new issue
Block a user