feat: persist candidate questionnaires and enforce company quotas
This commit is contained in:
1 parent
73c7caa225
commit
3a61a8e8bb
51 files changed
+6280
-38
No files matched your search
@@ -47,6 +47,10 @@ var (
|
||||
|
||||
// ErrAssessmentCategoryNotOpen reports that the category has no opening.
|
||||
ErrAssessmentCategoryNotOpen = errors.New("assessment category is not open")
|
||||
|
||||
// ErrAssessmentCatalogBindingImmutable reports an attempt to edit or remove
|
||||
// an immutable reviewed catalog binding.
|
||||
ErrAssessmentCatalogBindingImmutable = errors.New("assessment catalog binding is immutable")
|
||||
)
|
||||
|
||||
// MaxAssessmentFamilyPageSize is the largest page that ListFamilies returns.
|
||||
@@ -126,6 +130,15 @@ type AssessmentBankRepository interface {
|
||||
// the draft's own numbers are not stored.
|
||||
CreateCategoryOpening(ctx context.Context, draft domain.AssessmentCategoryOpeningDraft) (domain.AssessmentCategoryOpening, error)
|
||||
|
||||
// BindCategoryCatalog attaches reviewed public metadata to an opening. The
|
||||
// adapter pins it to the exact currently published family manifest.
|
||||
BindCategoryCatalog(ctx context.Context, opening domain.AssessmentCategoryOpening, metadata domain.AssessmentCategoryCatalogMetadata) error
|
||||
|
||||
// ListCurrentSpecializationAvailability returns ready public specializations
|
||||
// from one database snapshot. Legacy openings or bindings whose policy,
|
||||
// coverage, or published-family manifest changed are omitted.
|
||||
ListCurrentSpecializationAvailability(ctx context.Context) ([]domain.SpecializationAvailability, error)
|
||||
|
||||
// DatabaseTime returns the database clock. It stamps the effective time
|
||||
// of a policy version, so the version in force now is judged against it
|
||||
// and not against the application clock.
|
||||
|
||||
Reference in new issue
Block a user