commonMain.cccev.f2.requirement.domain.query.RequirementListQueryFunction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cccev-requirement-f2-domain Show documentation
Show all versions of cccev-requirement-f2-domain Show documentation
Kotlin implementation of Core Criterion and Core Evidence Vocabulary
package cccev.f2.requirement.domain.query
import cccev.dsl.model.EvidenceTypeId
import cccev.dsl.model.InformationConceptId
import cccev.dsl.model.RequirementId
import cccev.f2.requirement.domain.model.RequirementDTO
import f2.dsl.fnc.F2Function
import kotlin.js.JsExport
import kotlin.js.JsName
import kotlinx.serialization.Serializable
/**
* Get a list of requirements.
* @parent [cccev.f2.requirement.domain.D2RequirementApiPage]
* @child [RequirementListQueryDTO]
* @child [RequirementListResultDTO]
* @d2 function
*/
typealias RequirementListQueryFunction = F2Function
/**
* Requirement List Query
* @d2 query
*/
@JsExport
@JsName("RequirementListQueryDTO")
interface RequirementListQueryDTO {
val parentId: RequirementId?
val conceptId: InformationConceptId?
val evidenceTypeId: EvidenceTypeId?
}
/**
* Requirement List Result
* @d2 result
*/
@JsExport
@JsName("RequirementListResultDTO")
interface RequirementListResultDTO {
val requirements: List
}
/**
* @d2 inherit
*/
@Serializable
class RequirementListQuery(
override val parentId: RequirementId? = null,
override val conceptId: InformationConceptId? = null,
override val evidenceTypeId: EvidenceTypeId? = null
): RequirementListQueryDTO
/**
* @d2 inherit
*/
class RequirementListResult(
override val requirements: List
): RequirementListResultDTO
© 2015 - 2024 Weber Informatics LLC | Privacy Policy