commonMain.cccev.s2.requirement.client.RequirementClient.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-client Show documentation
Show all versions of cccev-requirement-f2-client Show documentation
Kotlin implementation of Core Criterion and Core Evidence Vocabulary
package cccev.s2.requirement.client
import cccev.f2.requirement.domain.RequirementApi
import cccev.f2.requirement.domain.command.ConstraintCreateFunction
import cccev.f2.requirement.domain.command.CriterionCreateFunction
import cccev.f2.requirement.domain.command.InformationRequirementCreateFunction
import cccev.f2.requirement.domain.command.RequirementAddRequirementsFunction
import cccev.f2.requirement.domain.command.RequirementCreateFunction
import cccev.f2.requirement.domain.command.RequirementUpdateFunction
import cccev.f2.requirement.domain.query.RequirementGetByIdentifierFunction
import cccev.f2.requirement.domain.query.RequirementGetFunction
import cccev.f2.requirement.domain.query.RequirementListChildrenByTypeFunction
import cccev.f2.requirement.domain.query.RequirementListQueryFunction
import f2.client.F2Client
import f2.client.function
import f2.dsl.fnc.F2SupplierSingle
import kotlin.js.JsExport
import kotlin.js.JsName
expect fun F2Client.requirementClient(): F2SupplierSingle
expect fun requirementClient(urlBase: String): F2SupplierSingle
@JsExport
@JsName("RequirementClient")
open class RequirementClient constructor(private val client: F2Client) : RequirementApi {
override fun requirementGet(): RequirementGetFunction = client.function(this::requirementGet.name)
override fun requirementGetByIdentifier(): RequirementGetByIdentifierFunction
= client.function(this::requirementGetByIdentifier.name)
override fun requirementsList(): RequirementListQueryFunction = client.function(this::requirementsList.name)
override fun requirementListChildrenByType(): RequirementListChildrenByTypeFunction
= client.function(this::requirementListChildrenByType.name)
override fun constraintCreate(): ConstraintCreateFunction = client.function(this::constraintCreate.name)
override fun criterionCreate(): CriterionCreateFunction = client.function(this::criterionCreate.name)
override fun informationRequirementCreate(): InformationRequirementCreateFunction
= client.function(this::informationRequirementCreate.name)
override fun requirementCreate(): RequirementCreateFunction = client.function(this::requirementCreate.name)
override fun requirementUpdate(): RequirementUpdateFunction = client.function(this::requirementUpdate.name)
override fun requirementAddRequirements(): RequirementAddRequirementsFunction
= client.function(this::requirementAddRequirements.name)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy