Module
entities
Module entities
Definitions
ChallengeChallengeAccessChallengeAccessOptionalizedChallengeAccessUpdateChallengeAccessWithRelationsChallengeOptionalizedChallengesOnContestsChallengesOnContestsOptionalizedChallengesOnContestsUpdateChallengesOnContestsWithRelationsChallengeUpdateChallengeWithRelationsContestcontestAccesscontestAccessOptionalizedcontestAccessUpdatecontestAccessWithRelationsContestOptionalizedContestUpdateContestWithRelationsRegistrantsRegistrantsOptionalizedRegistrantsUpdateRegistrantsWithRelationsSubmissionSubmissionOptionalizedSubmissionUpdateSubmissionWithRelationsSubmittedFileSubmittedFileOptionalizedSubmittedFileUpdateSubmittedFileWithRelationsUserUserOptionalizedUserUpdateUserWithRelations
tharinduu/entities
0.3.0
Clients![](/images/permalink.svg)
entities: Client![](/images/permalink.svg)
Isolated
queryNativeSQL![](/images/permalink.svg)
Isolated FunctionRemote Function
function queryNativeSQL(ParameterizedQuery sqlQuery, typedesc<record {}> rowType) returns stream<rowType, Error?>
executeNativeSQL![](/images/permalink.svg)
Isolated FunctionRemote Function
function executeNativeSQL(ParameterizedQuery sqlQuery) returns ExecutionResult|Error
Parameters
- sqlQuery ParameterizedQuery -
get users![](/images/permalink.svg)
Isolated FunctionResource Function
function get users(UserTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType UserTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get users/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get users/[string id](UserTargetType targetType) returns targetType|Error
Parameters
- targetType UserTargetType (default <>) -
post users![](/images/permalink.svg)
Isolated FunctionResource Function
function post users(UserInsert[] data) returns string[]|Error
Parameters
- data UserInsert[] -
put users/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put users/[string id](UserUpdate value) returns User|Error
Parameters
- value UserUpdate -
delete users/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
get contests![](/images/permalink.svg)
Isolated FunctionResource Function
function get contests(ContestTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType ContestTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get contests/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get contests/[string id](ContestTargetType targetType) returns targetType|Error
Parameters
- targetType ContestTargetType (default <>) -
post contests![](/images/permalink.svg)
Isolated FunctionResource Function
function post contests(ContestInsert[] data) returns string[]|Error
Parameters
- data ContestInsert[] -
put contests/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put contests/[string id](ContestUpdate value) returns Contest|Error
Parameters
- value ContestUpdate -
delete contests/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
get challenges![](/images/permalink.svg)
Isolated FunctionResource Function
function get challenges(ChallengeTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType ChallengeTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get challenges/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get challenges/[string id](ChallengeTargetType targetType) returns targetType|Error
Parameters
- targetType ChallengeTargetType (default <>) -
post challenges![](/images/permalink.svg)
Isolated FunctionResource Function
function post challenges(ChallengeInsert[] data) returns string[]|Error
Parameters
- data ChallengeInsert[] -
put challenges/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put challenges/[string id](ChallengeUpdate value) returns Challenge|Error
Parameters
- value ChallengeUpdate -
delete challenges/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
get challengesoncontests![](/images/permalink.svg)
Isolated FunctionResource Function
function get challengesoncontests(ChallengesOnContestsTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType ChallengesOnContestsTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get challengesoncontests/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get challengesoncontests/[string id](ChallengesOnContestsTargetType targetType) returns targetType|Error
Parameters
- targetType ChallengesOnContestsTargetType (default <>) -
post challengesoncontests![](/images/permalink.svg)
Isolated FunctionResource Function
function post challengesoncontests(ChallengesOnContestsInsert[] data) returns string[]|Error
Parameters
- data ChallengesOnContestsInsert[] -
put challengesoncontests/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put challengesoncontests/[string id](ChallengesOnContestsUpdate value) returns ChallengesOnContests|Error
Parameters
- value ChallengesOnContestsUpdate -
delete challengesoncontests/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function delete challengesoncontests/[string id]() returns ChallengesOnContests|Error
get submissions![](/images/permalink.svg)
Isolated FunctionResource Function
function get submissions(SubmissionTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType SubmissionTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get submissions/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get submissions/[string id](SubmissionTargetType targetType) returns targetType|Error
Parameters
- targetType SubmissionTargetType (default <>) -
post submissions![](/images/permalink.svg)
Isolated FunctionResource Function
function post submissions(SubmissionInsert[] data) returns string[]|Error
Parameters
- data SubmissionInsert[] -
put submissions/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put submissions/[string id](SubmissionUpdate value) returns Submission|Error
Parameters
- value SubmissionUpdate -
delete submissions/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function delete submissions/[string id]() returns Submission|Error
get submittedfiles![](/images/permalink.svg)
Isolated FunctionResource Function
function get submittedfiles(SubmittedFileTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType SubmittedFileTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get submittedfiles/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get submittedfiles/[string id](SubmittedFileTargetType targetType) returns targetType|Error
Parameters
- targetType SubmittedFileTargetType (default <>) -
post submittedfiles![](/images/permalink.svg)
Isolated FunctionResource Function
function post submittedfiles(SubmittedFileInsert[] data) returns string[]|Error
Parameters
- data SubmittedFileInsert[] -
put submittedfiles/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put submittedfiles/[string id](SubmittedFileUpdate value) returns SubmittedFile|Error
Parameters
- value SubmittedFileUpdate -
delete submittedfiles/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function delete submittedfiles/[string id]() returns SubmittedFile|Error
get contestaccesses![](/images/permalink.svg)
Isolated FunctionResource Function
function get contestaccesses(contestAccessTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType contestAccessTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get contestaccesses/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get contestaccesses/[string id](contestAccessTargetType targetType) returns targetType|Error
Parameters
- targetType contestAccessTargetType (default <>) -
post contestaccesses![](/images/permalink.svg)
Isolated FunctionResource Function
function post contestaccesses(contestAccessInsert[] data) returns string[]|Error
Parameters
- data contestAccessInsert[] -
put contestaccesses/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put contestaccesses/[string id](contestAccessUpdate value) returns contestAccess|Error
Parameters
- value contestAccessUpdate -
delete contestaccesses/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function delete contestaccesses/[string id]() returns contestAccess|Error
get challengeaccesses![](/images/permalink.svg)
Isolated FunctionResource Function
function get challengeaccesses(ChallengeAccessTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType ChallengeAccessTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get challengeaccesses/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get challengeaccesses/[string id](ChallengeAccessTargetType targetType) returns targetType|Error
Parameters
- targetType ChallengeAccessTargetType (default <>) -
post challengeaccesses![](/images/permalink.svg)
Isolated FunctionResource Function
function post challengeaccesses(ChallengeAccessInsert[] data) returns string[]|Error
Parameters
- data ChallengeAccessInsert[] -
put challengeaccesses/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put challengeaccesses/[string id](ChallengeAccessUpdate value) returns ChallengeAccess|Error
Parameters
- value ChallengeAccessUpdate -
delete challengeaccesses/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function delete challengeaccesses/[string id]() returns ChallengeAccess|Error
get registrants![](/images/permalink.svg)
Isolated FunctionResource Function
function get registrants(RegistrantsTargetType targetType, ParameterizedQuery whereClause, ParameterizedQuery orderByClause, ParameterizedQuery limitClause, ParameterizedQuery groupByClause) returns stream<targetType, Error?>
Parameters
- targetType RegistrantsTargetType (default <>) -
- whereClause ParameterizedQuery (default ``) -
- orderByClause ParameterizedQuery (default ``) -
- limitClause ParameterizedQuery (default ``) -
- groupByClause ParameterizedQuery (default ``) -
get registrants/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function get registrants/[string id](RegistrantsTargetType targetType) returns targetType|Error
Parameters
- targetType RegistrantsTargetType (default <>) -
post registrants![](/images/permalink.svg)
Isolated FunctionResource Function
function post registrants(RegistrantsInsert[] data) returns string[]|Error
Parameters
- data RegistrantsInsert[] -
put registrants/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function put registrants/[string id](RegistrantsUpdate value) returns Registrants|Error
Parameters
- value RegistrantsUpdate -
delete registrants/[string id]![](/images/permalink.svg)
Isolated FunctionResource Function
function delete registrants/[string id]() returns Registrants|Error
close![](/images/permalink.svg)
Isolated Function
function close() returns Error?
Records![](/images/permalink.svg)
entities: Challenge![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- title string -
- createdTime Civil -
- templateFile byte[] -
- readmeFile byte[] -
- difficulty string -
- testCasesFile byte[] -
- authorId string -
entities: ChallengeAccess![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- challengeId string -
- userId string -
entities: ChallengeAccessOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- challengeId string? -
- userId string? -
entities: ChallengeAccessUpdate![](/images/permalink.svg)
Closed record
Fields
- challengeId string? -
- userId string? -
entities: ChallengeAccessWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *ChallengeAccessOptionalized
- challenge ChallengeOptionalized? -
- user UserOptionalized? -
entities: ChallengeOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- title string? -
- createdTime Civil? -
- templateFile byte[]? -
- readmeFile byte[]? -
- difficulty string? -
- testCasesFile byte[]? -
- authorId string? -
entities: ChallengesOnContests![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- challengeId string -
- contestId string -
- assignedTime Civil -
entities: ChallengesOnContestsOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- challengeId string? -
- contestId string? -
- assignedTime Civil? -
entities: ChallengesOnContestsUpdate![](/images/permalink.svg)
Closed record
Fields
- challengeId string? -
- contestId string? -
- assignedTime Civil? -
entities: ChallengesOnContestsWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *ChallengesOnContestsOptionalized
- challenge ChallengeOptionalized? -
- contest ContestOptionalized? -
entities: ChallengeUpdate![](/images/permalink.svg)
Closed record
Fields
- title string? -
- createdTime Civil? -
- templateFile byte[]? -
- readmeFile byte[]? -
- difficulty string? -
- testCasesFile byte[]? -
- authorId string? -
entities: ChallengeWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *ChallengeOptionalized
- contests ChallengesOnContestsOptionalized[]? -
- submissions SubmissionOptionalized[]? -
- challengeaccess ChallengeAccessOptionalized[]? -
- author UserOptionalized? -
entities: Contest![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- title string -
- readmeFile byte[] -
- startTime Civil -
- endTime Civil -
- imageUrl byte[] -
- moderatorId string -
entities: contestAccess![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- contestId string -
- userId string -
- accessType string -
entities: contestAccessOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- contestId string? -
- userId string? -
- accessType string? -
entities: contestAccessUpdate![](/images/permalink.svg)
Closed record
Fields
- contestId string? -
- userId string? -
- accessType string? -
entities: contestAccessWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *contestAccessOptionalized
- contest ContestOptionalized? -
- user UserOptionalized? -
entities: ContestOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- title string? -
- readmeFile byte[]? -
- startTime Civil? -
- endTime Civil? -
- imageUrl byte[]? -
- moderatorId string? -
entities: ContestUpdate![](/images/permalink.svg)
Closed record
Fields
- title string? -
- readmeFile byte[]? -
- startTime Civil? -
- endTime Civil? -
- imageUrl byte[]? -
- moderatorId string? -
entities: ContestWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *ContestOptionalized
- moderator UserOptionalized? -
- challenges ChallengesOnContestsOptionalized[]? -
- submissions SubmissionOptionalized[]? -
- contestaccess contestAccessOptionalized[]? -
- registrants RegistrantsOptionalized[]? -
entities: Registrants![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- registeredTime Civil -
- userId string -
- contestId string -
entities: RegistrantsOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- registeredTime Civil? -
- userId string? -
- contestId string? -
entities: RegistrantsUpdate![](/images/permalink.svg)
Closed record
Fields
- registeredTime Civil? -
- userId string? -
- contestId string? -
entities: RegistrantsWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *RegistrantsOptionalized
- user UserOptionalized? -
- contest ContestOptionalized? -
entities: Submission![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- submittedTime Civil -
- score float -
- userId string -
- challengeId string -
- contestId string -
- submittedfileId string -
entities: SubmissionOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- submittedTime Civil? -
- score float? -
- userId string? -
- challengeId string? -
- contestId string? -
- submittedfileId string? -
entities: SubmissionUpdate![](/images/permalink.svg)
Closed record
Fields
- submittedTime Civil? -
- score float? -
- userId string? -
- challengeId string? -
- contestId string? -
- submittedfileId string? -
entities: SubmissionWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *SubmissionOptionalized
- user UserOptionalized? -
- challenge ChallengeOptionalized? -
- contest ContestOptionalized? -
- submittedfile SubmittedFileOptionalized? -
entities: SubmittedFile![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- fileName string -
- fileExtension string -
- file byte[] -
entities: SubmittedFileOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- fileName string? -
- fileExtension string? -
- file byte[]? -
entities: SubmittedFileUpdate![](/images/permalink.svg)
Closed record
Fields
- fileName string? -
- fileExtension string? -
- file byte[]? -
entities: SubmittedFileWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *SubmittedFileOptionalized
- submission SubmissionOptionalized? -
entities: User![](/images/permalink.svg)
Closed record
Fields
- idreadonly string -
- username string -
- fullname string -
entities: UserOptionalized![](/images/permalink.svg)
Closed record
Fields
- id string? -
- username string? -
- fullname string? -
entities: UserUpdate![](/images/permalink.svg)
Closed record
Fields
- username string? -
- fullname string? -
entities: UserWithRelations![](/images/permalink.svg)
Closed record
Fields
- Fields Included from *UserOptionalized
- moderatedContests ContestOptionalized[]? -
- submissions SubmissionOptionalized[]? -
- contestaccess contestAccessOptionalized[]? -
- challengeaccess ChallengeAccessOptionalized[]? -
- challenge ChallengeOptionalized[]? -
- registrants RegistrantsOptionalized[]? -
Type descriptor types![](/images/permalink.svg)
entities: UserTargetType![](/images/permalink.svg)
UserTargetType
entities: ContestTargetType![](/images/permalink.svg)
ContestTargetType
entities: ChallengeTargetType![](/images/permalink.svg)
ChallengeTargetType
entities: ChallengesOnContestsTargetType![](/images/permalink.svg)
ChallengesOnContestsTargetType
entities: SubmissionTargetType![](/images/permalink.svg)
SubmissionTargetType
entities: SubmittedFileTargetType![](/images/permalink.svg)
SubmittedFileTargetType
entities: contestAccessTargetType![](/images/permalink.svg)
contestAccessTargetType
entities: ChallengeAccessTargetType![](/images/permalink.svg)
ChallengeAccessTargetType
entities: RegistrantsTargetType![](/images/permalink.svg)
RegistrantsTargetType
Simple name reference types![](/images/permalink.svg)
entities: UserInsert![](/images/permalink.svg)
UserInsert
entities: ContestInsert![](/images/permalink.svg)
ContestInsert
entities: ChallengeInsert![](/images/permalink.svg)
ChallengeInsert
entities: ChallengesOnContestsInsert![](/images/permalink.svg)
ChallengesOnContestsInsert
entities: SubmissionInsert![](/images/permalink.svg)
SubmissionInsert
entities: SubmittedFileInsert![](/images/permalink.svg)
SubmittedFileInsert
entities: contestAccessInsert![](/images/permalink.svg)
contestAccessInsert
entities: ChallengeAccessInsert![](/images/permalink.svg)
ChallengeAccessInsert
entities: RegistrantsInsert![](/images/permalink.svg)
RegistrantsInsert
Import
import tharinduu/entities;
Metadata
Released date: 10 months ago
Version: 0.3.0
Compatibility
Platform: java17
Ballerina version: 2201.8.0
Pull count
Total: 221
Current verison: 163
Weekly downloads