All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ssm.couchdb.dsl.query.CouchdbUserListQuery.kt Maven / Gradle / Ivy

The newest version!
package ssm.couchdb.dsl.query

import f2.dsl.cqrs.Event
import f2.dsl.cqrs.Query
import f2.dsl.fnc.F2Function
import kotlin.js.JsExport
import kotlin.js.JsName
import kotlinx.serialization.Serializable
import ssm.chaincode.dsl.model.Agent
import ssm.chaincode.dsl.model.AgentDTO
import ssm.chaincode.dsl.model.uri.ChaincodeUri
import ssm.chaincode.dsl.model.uri.ChaincodeUriDTO

/**
 * @title Fetch all admins
 * @d2 function
 * @order 20
 * @parent [ssm.couchdb.dsl.CouchdbSsmD2Query]
 */
typealias CouchdbUserListQueryFunction = F2Function

/**
 * @title Get all chaincode: Parameters
 * @d2 model
 * @parent [CouchdbUserListQueryFunction]
 */

@JsExport
@JsName("CouchdbUserListQueryDTO")
interface CouchdbUserListQueryDTO : Query {
	/**
	 * The unique id of a chaincode.
	 */
	val chaincodeUri: ChaincodeUriDTO
}

/**
 * @d2 model
 * @title Get all admins: Result
 * @parent [CouchdbUserListQueryFunction]
 */
@JsExport
@JsName("CouchdbUserListQueryResultDTO")
interface CouchdbUserListQueryResultDTO : Event {
	/**
	 * Names of the admin.
	 */
	val items: List
}

@Serializable
@JsExport
@JsName("CouchdbUserListQuery")
class CouchdbUserListQuery(
	override val chaincodeUri: ChaincodeUri
) : CouchdbUserListQueryDTO

@Serializable
@JsExport
@JsName("CouchdbUserListQueryResult")
class CouchdbUserListQueryResult(
	override val items: List,
) : CouchdbUserListQueryResultDTO




© 2015 - 2024 Weber Informatics LLC | Privacy Policy