commonMain.ssm.couchdb.dsl.query.CouchdbUserListQuery.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssm-couchdb-dsl Show documentation
Show all versions of ssm-couchdb-dsl Show documentation
Aggregate all ssm data source to optimize request
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