@gitopia/gitopiajs 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/LICENSE +21 -0
- package/dist/amino/amino.d.ts +1 -0
- package/dist/amino/amino.js +2 -0
- package/dist/amino/bundle.d.ts +1 -0
- package/dist/amino/bundle.js +41 -0
- package/dist/binary.d.ts +130 -0
- package/dist/binary.js +371 -0
- package/dist/cosmos/bank/v1beta1/bank.d.ts +407 -0
- package/dist/cosmos/bank/v1beta1/bank.js +664 -0
- package/dist/cosmos/bank/v1beta1/query.d.ts +1062 -0
- package/dist/cosmos/bank/v1beta1/query.js +1759 -0
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +19 -0
- package/dist/cosmos/bank/v1beta1/query.lcd.js +173 -0
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +106 -0
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +123 -0
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +190 -0
- package/dist/cosmos/base/query/v1beta1/pagination.js +204 -0
- package/dist/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/cosmos/base/v1beta1/coin.js +306 -0
- package/dist/cosmos/bundle.d.ts +2311 -0
- package/dist/cosmos/bundle.js +134 -0
- package/dist/cosmos/client.d.ts +84 -0
- package/dist/cosmos/client.js +65 -0
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +245 -0
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +456 -0
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +258 -0
- package/dist/cosmos/feegrant/v1beta1/query.js +487 -0
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +11 -0
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +44 -0
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +28 -0
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +47 -0
- package/dist/cosmos/gov/v1beta1/gov.d.ts +571 -0
- package/dist/cosmos/gov/v1beta1/gov.js +1122 -0
- package/dist/cosmos/gov/v1beta1/query.d.ts +636 -0
- package/dist/cosmos/gov/v1beta1/query.js +1264 -0
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/dist/cosmos/gov/v1beta1/query.lcd.js +87 -0
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +92 -0
- package/dist/cosmos/group/v1/query.d.ts +1097 -0
- package/dist/cosmos/group/v1/query.js +2182 -0
- package/dist/cosmos/group/v1/query.lcd.d.ts +22 -0
- package/dist/cosmos/group/v1/query.lcd.js +158 -0
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +78 -0
- package/dist/cosmos/group/v1/query.rpc.Query.js +148 -0
- package/dist/cosmos/group/v1/tx.amino.d.ts +73 -0
- package/dist/cosmos/group/v1/tx.amino.js +77 -0
- package/dist/cosmos/group/v1/tx.d.ts +1198 -0
- package/dist/cosmos/group/v1/tx.js +2362 -0
- package/dist/cosmos/group/v1/tx.registry.d.ts +180 -0
- package/dist/cosmos/group/v1/tx.registry.js +271 -0
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +51 -0
- package/dist/cosmos/group/v1/tx.rpc.msg.js +96 -0
- package/dist/cosmos/group/v1/types.d.ts +873 -0
- package/dist/cosmos/group/v1/types.js +1495 -0
- package/dist/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos/query/v1/query.d.ts +1 -0
- package/dist/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos/rpc.query.d.ts +59 -0
- package/dist/cosmos/rpc.query.js +60 -0
- package/dist/cosmos/rpc.tx.d.ts +10 -0
- package/dist/cosmos/rpc.tx.js +44 -0
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +278 -0
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +382 -0
- package/dist/cosmos_proto/bundle.d.ts +32 -0
- package/dist/cosmos_proto/bundle.js +41 -0
- package/dist/cosmos_proto/cosmos.d.ts +171 -0
- package/dist/cosmos_proto/cosmos.js +221 -0
- package/dist/esm/amino/amino.js +1 -0
- package/dist/esm/amino/bundle.js +5 -0
- package/dist/esm/binary.js +366 -0
- package/dist/esm/cosmos/bank/v1beta1/bank.js +661 -0
- package/dist/esm/cosmos/bank/v1beta1/query.js +1756 -0
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +169 -0
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +118 -0
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +201 -0
- package/dist/esm/cosmos/base/v1beta1/coin.js +303 -0
- package/dist/esm/cosmos/bundle.js +98 -0
- package/dist/esm/cosmos/client.js +27 -0
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +450 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +484 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +40 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +42 -0
- package/dist/esm/cosmos/gov/v1beta1/gov.js +1112 -0
- package/dist/esm/cosmos/gov/v1beta1/query.js +1261 -0
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +83 -0
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +87 -0
- package/dist/esm/cosmos/group/v1/query.js +2179 -0
- package/dist/esm/cosmos/group/v1/query.lcd.js +154 -0
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +143 -0
- package/dist/esm/cosmos/group/v1/tx.amino.js +74 -0
- package/dist/esm/cosmos/group/v1/tx.js +2354 -0
- package/dist/esm/cosmos/group/v1/tx.registry.js +267 -0
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +92 -0
- package/dist/esm/cosmos/group/v1/types.js +1483 -0
- package/dist/esm/cosmos/msg/v1/msg.js +1 -0
- package/dist/esm/cosmos/query/v1/query.js +1 -0
- package/dist/esm/cosmos/rpc.query.js +23 -0
- package/dist/esm/cosmos/rpc.tx.js +7 -0
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +379 -0
- package/dist/esm/cosmos_proto/bundle.js +5 -0
- package/dist/esm/cosmos_proto/cosmos.js +216 -0
- package/dist/esm/gitopia/bundle.js +95 -0
- package/dist/esm/gitopia/client.js +32 -0
- package/dist/esm/gitopia/custom-lcd-client.js +50 -0
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +101 -0
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +255 -0
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +137 -0
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +488 -0
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +451 -0
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +78 -0
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +460 -0
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +323 -0
- package/dist/esm/gitopia/gitopia/gitopia/params.js +293 -0
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +565 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.js +7351 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +452 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +453 -0
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +123 -0
- package/dist/esm/gitopia/gitopia/gitopia/release.js +225 -0
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +1200 -0
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +125 -0
- package/dist/esm/gitopia/gitopia/gitopia/task.js +197 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +464 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +14679 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +1671 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +560 -0
- package/dist/esm/gitopia/gitopia/gitopia/user.js +340 -0
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +146 -0
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +144 -0
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +82 -0
- package/dist/esm/gitopia/gitopia/rewards/params.js +81 -0
- package/dist/esm/gitopia/gitopia/rewards/pool.js +191 -0
- package/dist/esm/gitopia/gitopia/rewards/query.js +654 -0
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +40 -0
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +53 -0
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +191 -0
- package/dist/esm/gitopia/gitopia/rewards/task.js +176 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +19 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.js +525 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +69 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +26 -0
- package/dist/esm/gitopia/rpc.query.js +29 -0
- package/dist/esm/gitopia/rpc.tx.js +13 -0
- package/dist/esm/gogoproto/bundle.js +5 -0
- package/dist/esm/gogoproto/gogo.js +1 -0
- package/dist/esm/google/api/annotations.js +1 -0
- package/dist/esm/google/api/http.js +329 -0
- package/dist/esm/google/bundle.js +14 -0
- package/dist/esm/google/protobuf/any.js +74 -0
- package/dist/esm/google/protobuf/descriptor.js +4848 -0
- package/dist/esm/google/protobuf/duration.js +71 -0
- package/dist/esm/google/protobuf/timestamp.js +68 -0
- package/dist/esm/helpers.js +129 -0
- package/dist/esm/ibc/applications/transfer/v1/query.js +847 -0
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +70 -0
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +71 -0
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +164 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +9 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.js +226 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +33 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +14 -0
- package/dist/esm/ibc/bundle.js +44 -0
- package/dist/esm/ibc/client.js +29 -0
- package/dist/esm/ibc/core/client/v1/client.js +611 -0
- package/dist/esm/ibc/rpc.query.js +30 -0
- package/dist/esm/ibc/rpc.tx.js +14 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/utf8.js +137 -0
- package/dist/esm/varint.js +408 -0
- package/dist/gitopia/bundle.d.ts +6123 -0
- package/dist/gitopia/bundle.js +131 -0
- package/dist/gitopia/client.d.ts +492 -0
- package/dist/gitopia/client.js +70 -0
- package/dist/gitopia/custom-lcd-client.d.ts +31 -0
- package/dist/gitopia/custom-lcd-client.js +87 -0
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +39 -0
- package/dist/gitopia/gitopia/gitopia/attachment.js +104 -0
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +79 -0
- package/dist/gitopia/gitopia/gitopia/bounty.js +262 -0
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +48 -0
- package/dist/gitopia/gitopia/gitopia/branch.js +140 -0
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +125 -0
- package/dist/gitopia/gitopia/gitopia/comment.js +495 -0
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +160 -0
- package/dist/gitopia/gitopia/gitopia/dao.js +454 -0
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +34 -0
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +81 -0
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +143 -0
- package/dist/gitopia/gitopia/gitopia/genesis.js +463 -0
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +88 -0
- package/dist/gitopia/gitopia/gitopia/issue.js +328 -0
- package/dist/gitopia/gitopia/gitopia/params.d.ts +115 -0
- package/dist/gitopia/gitopia/gitopia/params.js +296 -0
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +177 -0
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +570 -0
- package/dist/gitopia/gitopia/gitopia/query.d.ts +3130 -0
- package/dist/gitopia/gitopia/gitopia/query.js +7355 -0
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +54 -0
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +456 -0
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +188 -0
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +458 -0
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +42 -0
- package/dist/gitopia/gitopia/gitopia/reaction.js +128 -0
- package/dist/gitopia/gitopia/gitopia/release.d.ts +70 -0
- package/dist/gitopia/gitopia/gitopia/release.js +228 -0
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +424 -0
- package/dist/gitopia/gitopia/gitopia/repository.js +1207 -0
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +45 -0
- package/dist/gitopia/gitopia/gitopia/tag.js +128 -0
- package/dist/gitopia/gitopia/gitopia/task.d.ts +64 -0
- package/dist/gitopia/gitopia/gitopia/task.js +204 -0
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +463 -0
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +467 -0
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +6246 -0
- package/dist/gitopia/gitopia/gitopia/tx.js +14687 -0
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +1116 -0
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +1675 -0
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +200 -0
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +564 -0
- package/dist/gitopia/gitopia/gitopia/user.d.ts +104 -0
- package/dist/gitopia/gitopia/gitopia/user.js +343 -0
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +51 -0
- package/dist/gitopia/gitopia/gitopia/whois.js +151 -0
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +74 -0
- package/dist/gitopia/gitopia/offchain/offchain.js +147 -0
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +40 -0
- package/dist/gitopia/gitopia/rewards/genesis.js +85 -0
- package/dist/gitopia/gitopia/rewards/params.d.ts +37 -0
- package/dist/gitopia/gitopia/rewards/params.js +84 -0
- package/dist/gitopia/gitopia/rewards/pool.d.ts +59 -0
- package/dist/gitopia/gitopia/rewards/pool.js +196 -0
- package/dist/gitopia/gitopia/rewards/query.d.ts +294 -0
- package/dist/gitopia/gitopia/rewards/query.js +657 -0
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +12 -0
- package/dist/gitopia/gitopia/rewards/query.lcd.js +44 -0
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +28 -0
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +58 -0
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +79 -0
- package/dist/gitopia/gitopia/rewards/rewards.js +194 -0
- package/dist/gitopia/gitopia/rewards/task.d.ts +54 -0
- package/dist/gitopia/gitopia/rewards/task.js +181 -0
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +18 -0
- package/dist/gitopia/gitopia/rewards/tx.amino.js +22 -0
- package/dist/gitopia/gitopia/rewards/tx.d.ts +242 -0
- package/dist/gitopia/gitopia/rewards/tx.js +528 -0
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +48 -0
- package/dist/gitopia/gitopia/rewards/tx.registry.js +73 -0
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +19 -0
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +30 -0
- package/dist/gitopia/rpc.query.d.ts +117 -0
- package/dist/gitopia/rpc.query.js +66 -0
- package/dist/gitopia/rpc.tx.d.ts +16 -0
- package/dist/gitopia/rpc.tx.js +50 -0
- package/dist/gogoproto/bundle.d.ts +1 -0
- package/dist/gogoproto/bundle.js +41 -0
- package/dist/gogoproto/gogo.d.ts +1 -0
- package/dist/gogoproto/gogo.js +2 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +2 -0
- package/dist/google/api/http.d.ts +1049 -0
- package/dist/google/api/http.js +332 -0
- package/dist/google/bundle.d.ts +525 -0
- package/dist/google/bundle.js +50 -0
- package/dist/google/protobuf/any.d.ts +358 -0
- package/dist/google/protobuf/any.js +77 -0
- package/dist/google/protobuf/descriptor.d.ts +3178 -0
- package/dist/google/protobuf/descriptor.js +4886 -0
- package/dist/google/protobuf/duration.d.ts +223 -0
- package/dist/google/protobuf/duration.js +74 -0
- package/dist/google/protobuf/timestamp.d.ts +314 -0
- package/dist/google/protobuf/timestamp.js +71 -0
- package/dist/helpers.d.ts +82 -0
- package/dist/helpers.js +144 -0
- package/dist/ibc/applications/transfer/v1/query.d.ts +479 -0
- package/dist/ibc/applications/transfer/v1/query.js +850 -0
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +14 -0
- package/dist/ibc/applications/transfer/v1/query.lcd.js +74 -0
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +36 -0
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +76 -0
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +123 -0
- package/dist/ibc/applications/transfer/v1/transfer.js +167 -0
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +8 -0
- package/dist/ibc/applications/transfer/v1/tx.amino.js +12 -0
- package/dist/ibc/applications/transfer/v1/tx.d.ts +132 -0
- package/dist/ibc/applications/transfer/v1/tx.js +229 -0
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/dist/ibc/applications/transfer/v1/tx.registry.js +37 -0
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +18 -0
- package/dist/ibc/bundle.d.ts +450 -0
- package/dist/ibc/bundle.js +80 -0
- package/dist/ibc/client.d.ts +22 -0
- package/dist/ibc/client.js +67 -0
- package/dist/ibc/core/client/v1/client.d.ts +408 -0
- package/dist/ibc/core/client/v1/client.js +614 -0
- package/dist/ibc/rpc.query.d.ts +73 -0
- package/dist/ibc/rpc.query.js +67 -0
- package/dist/ibc/rpc.tx.d.ts +17 -0
- package/dist/ibc/rpc.tx.js +51 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +35 -0
- package/dist/package.json +46 -0
- package/dist/utf8.d.ts +27 -0
- package/dist/utf8.js +141 -0
- package/dist/varint.d.ts +105 -0
- package/dist/varint.js +426 -0
- package/package.json +46 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
+
import { QueryParamsRequest, QueryParamsResponseSDKType, QueryVestedAmountRequest, QueryVestedAmountResponseSDKType, QueryGetTaskRequest, QueryGetTaskResponseSDKType, QueryAllTaskRequest, QueryAllTaskResponseSDKType, QueryAllBranchRequest, QueryAllBranchResponseSDKType, QueryGetRepositoryBranchRequest, QueryGetRepositoryBranchResponseSDKType, QueryGetRepositoryBranchShaRequest, QueryGetRepositoryBranchShaResponseSDKType, QueryAllRepositoryBranchRequest, QueryAllRepositoryBranchResponseSDKType, QueryAllTagRequest, QueryAllTagResponseSDKType, QueryGetRepositoryTagRequest, QueryGetRepositoryTagResponseSDKType, QueryGetRepositoryTagShaRequest, QueryGetRepositoryTagShaResponseSDKType, QueryAllRepositoryTagRequest, QueryAllRepositoryTagResponseSDKType, QueryAllDaoMemberRequest, QueryAllDaoMemberResponseSDKType, QueryGetBountyRequest, QueryGetBountyResponseSDKType, QueryAllBountyRequest, QueryAllBountyResponseSDKType, QueryGetReleaseRequest, QueryGetReleaseResponseSDKType, QueryAllReleaseRequest, QueryAllReleaseResponseSDKType, QueryAllPullRequestRequest, QueryAllPullRequestResponseSDKType, QueryGetDaoRequest, QueryGetDaoResponseSDKType, QueryAllDaoRequest, QueryAllDaoResponseSDKType, QueryGetIssueCommentRequest, QueryGetIssueCommentResponseSDKType, QueryGetPullRequestCommentRequest, QueryGetPullRequestCommentResponseSDKType, QueryAllCommentRequest, QueryAllCommentResponseSDKType, QueryAllIssueCommentRequest, QueryAllIssueCommentResponseSDKType, QueryAllPullRequestCommentRequest, QueryAllPullRequestCommentResponseSDKType, QueryAllIssueRequest, QueryAllIssueResponseSDKType, QueryGetLatestRepositoryReleaseRequest, QueryGetLatestRepositoryReleaseResponseSDKType, QueryGetRepositoryReleaseRequest, QueryGetRepositoryReleaseResponseSDKType, QueryAllRepositoryReleaseRequest, QueryAllRepositoryReleaseResponseSDKType, QueryGetRepositoryIssueRequest, QueryGetRepositoryIssueResponseSDKType, QueryAllRepositoryIssueRequest, QueryAllRepositoryIssueResponseSDKType, QueryGetRepositoryPullRequestRequest, QueryGetRepositoryPullRequestResponseSDKType, QueryAllRepositoryPullRequestRequest, QueryAllRepositoryPullRequestResponseSDKType, QueryGetRepositoryRequest, QueryGetRepositoryResponseSDKType, QueryAllRepositoryRequest, QueryAllRepositoryResponseSDKType, QueryGetAllForkRequest, QueryGetAllForkResponseSDKType, QueryGetUserRequest, QueryGetUserResponseSDKType, QueryAllUserDaoRequest, QueryAllUserDaoResponseSDKType, QueryAllUserRequest, QueryAllUserResponseSDKType, QueryAllAnyRepositoryRequest, QueryAllAnyRepositoryResponseSDKType, QueryGetAnyRepositoryRequest, QueryGetAnyRepositoryResponseSDKType, QueryGetWhoisRequest, QueryGetWhoisResponseSDKType, QueryAllWhoisRequest, QueryAllWhoisResponseSDKType, QueryGetPullRequestMergePermissionRequest, QueryGetPullRequestMergePermissionResponseSDKType, QueryCheckGitServerAuthorizationRequest, QueryCheckGitServerAuthorizationResponseSDKType, QueryCheckStorageProviderAuthorizationRequest, QueryCheckStorageProviderAuthorizationResponseSDKType } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
|
9
|
+
vestedAmount(params: QueryVestedAmountRequest): Promise<QueryVestedAmountResponseSDKType>;
|
|
10
|
+
task(params: QueryGetTaskRequest): Promise<QueryGetTaskResponseSDKType>;
|
|
11
|
+
taskAll(params?: QueryAllTaskRequest): Promise<QueryAllTaskResponseSDKType>;
|
|
12
|
+
branchAll(params?: QueryAllBranchRequest): Promise<QueryAllBranchResponseSDKType>;
|
|
13
|
+
repositoryBranch(params: QueryGetRepositoryBranchRequest): Promise<QueryGetRepositoryBranchResponseSDKType>;
|
|
14
|
+
repositoryBranchSha(params: QueryGetRepositoryBranchShaRequest): Promise<QueryGetRepositoryBranchShaResponseSDKType>;
|
|
15
|
+
repositoryBranchAll(params: QueryAllRepositoryBranchRequest): Promise<QueryAllRepositoryBranchResponseSDKType>;
|
|
16
|
+
tagAll(params?: QueryAllTagRequest): Promise<QueryAllTagResponseSDKType>;
|
|
17
|
+
repositoryTag(params: QueryGetRepositoryTagRequest): Promise<QueryGetRepositoryTagResponseSDKType>;
|
|
18
|
+
repositoryTagSha(params: QueryGetRepositoryTagShaRequest): Promise<QueryGetRepositoryTagShaResponseSDKType>;
|
|
19
|
+
repositoryTagAll(params: QueryAllRepositoryTagRequest): Promise<QueryAllRepositoryTagResponseSDKType>;
|
|
20
|
+
daoMemberAll(params: QueryAllDaoMemberRequest): Promise<QueryAllDaoMemberResponseSDKType>;
|
|
21
|
+
bounty(params: QueryGetBountyRequest): Promise<QueryGetBountyResponseSDKType>;
|
|
22
|
+
bountyAll(params?: QueryAllBountyRequest): Promise<QueryAllBountyResponseSDKType>;
|
|
23
|
+
release(params: QueryGetReleaseRequest): Promise<QueryGetReleaseResponseSDKType>;
|
|
24
|
+
releaseAll(params?: QueryAllReleaseRequest): Promise<QueryAllReleaseResponseSDKType>;
|
|
25
|
+
pullRequestAll(params?: QueryAllPullRequestRequest): Promise<QueryAllPullRequestResponseSDKType>;
|
|
26
|
+
dao(params: QueryGetDaoRequest): Promise<QueryGetDaoResponseSDKType>;
|
|
27
|
+
daoAll(params?: QueryAllDaoRequest): Promise<QueryAllDaoResponseSDKType>;
|
|
28
|
+
issueComment(params: QueryGetIssueCommentRequest): Promise<QueryGetIssueCommentResponseSDKType>;
|
|
29
|
+
pullRequestComment(params: QueryGetPullRequestCommentRequest): Promise<QueryGetPullRequestCommentResponseSDKType>;
|
|
30
|
+
commentAll(params?: QueryAllCommentRequest): Promise<QueryAllCommentResponseSDKType>;
|
|
31
|
+
issueCommentAll(params: QueryAllIssueCommentRequest): Promise<QueryAllIssueCommentResponseSDKType>;
|
|
32
|
+
pullRequestCommentAll(params: QueryAllPullRequestCommentRequest): Promise<QueryAllPullRequestCommentResponseSDKType>;
|
|
33
|
+
issueAll(params?: QueryAllIssueRequest): Promise<QueryAllIssueResponseSDKType>;
|
|
34
|
+
repositoryReleaseLatest(params: QueryGetLatestRepositoryReleaseRequest): Promise<QueryGetLatestRepositoryReleaseResponseSDKType>;
|
|
35
|
+
repositoryRelease(params: QueryGetRepositoryReleaseRequest): Promise<QueryGetRepositoryReleaseResponseSDKType>;
|
|
36
|
+
repositoryReleaseAll(params: QueryAllRepositoryReleaseRequest): Promise<QueryAllRepositoryReleaseResponseSDKType>;
|
|
37
|
+
repositoryIssue(params: QueryGetRepositoryIssueRequest): Promise<QueryGetRepositoryIssueResponseSDKType>;
|
|
38
|
+
repositoryIssueAll(params: QueryAllRepositoryIssueRequest): Promise<QueryAllRepositoryIssueResponseSDKType>;
|
|
39
|
+
repositoryPullRequest(params: QueryGetRepositoryPullRequestRequest): Promise<QueryGetRepositoryPullRequestResponseSDKType>;
|
|
40
|
+
repositoryPullRequestAll(params: QueryAllRepositoryPullRequestRequest): Promise<QueryAllRepositoryPullRequestResponseSDKType>;
|
|
41
|
+
repository(params: QueryGetRepositoryRequest): Promise<QueryGetRepositoryResponseSDKType>;
|
|
42
|
+
repositoryAll(params?: QueryAllRepositoryRequest): Promise<QueryAllRepositoryResponseSDKType>;
|
|
43
|
+
forkAll(params: QueryGetAllForkRequest): Promise<QueryGetAllForkResponseSDKType>;
|
|
44
|
+
user(params: QueryGetUserRequest): Promise<QueryGetUserResponseSDKType>;
|
|
45
|
+
userDaoAll(params: QueryAllUserDaoRequest): Promise<QueryAllUserDaoResponseSDKType>;
|
|
46
|
+
userAll(params?: QueryAllUserRequest): Promise<QueryAllUserResponseSDKType>;
|
|
47
|
+
anyRepositoryAll(params: QueryAllAnyRepositoryRequest): Promise<QueryAllAnyRepositoryResponseSDKType>;
|
|
48
|
+
anyRepository(params: QueryGetAnyRepositoryRequest): Promise<QueryGetAnyRepositoryResponseSDKType>;
|
|
49
|
+
whois(params: QueryGetWhoisRequest): Promise<QueryGetWhoisResponseSDKType>;
|
|
50
|
+
whoisAll(params?: QueryAllWhoisRequest): Promise<QueryAllWhoisResponseSDKType>;
|
|
51
|
+
pullRequestMergePermission(params: QueryGetPullRequestMergePermissionRequest): Promise<QueryGetPullRequestMergePermissionResponseSDKType>;
|
|
52
|
+
checkGitServerAuthorization(params: QueryCheckGitServerAuthorizationRequest): Promise<QueryCheckGitServerAuthorizationResponseSDKType>;
|
|
53
|
+
checkStorageProviderAuthorization(params: QueryCheckStorageProviderAuthorizationRequest): Promise<QueryCheckStorageProviderAuthorizationResponseSDKType>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LCDQueryClient = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
class LCDQueryClient {
|
|
7
|
+
req;
|
|
8
|
+
constructor({ requestClient }) {
|
|
9
|
+
this.req = requestClient;
|
|
10
|
+
this.params = this.params.bind(this);
|
|
11
|
+
this.vestedAmount = this.vestedAmount.bind(this);
|
|
12
|
+
this.task = this.task.bind(this);
|
|
13
|
+
this.taskAll = this.taskAll.bind(this);
|
|
14
|
+
this.branchAll = this.branchAll.bind(this);
|
|
15
|
+
this.repositoryBranch = this.repositoryBranch.bind(this);
|
|
16
|
+
this.repositoryBranchSha = this.repositoryBranchSha.bind(this);
|
|
17
|
+
this.repositoryBranchAll = this.repositoryBranchAll.bind(this);
|
|
18
|
+
this.tagAll = this.tagAll.bind(this);
|
|
19
|
+
this.repositoryTag = this.repositoryTag.bind(this);
|
|
20
|
+
this.repositoryTagSha = this.repositoryTagSha.bind(this);
|
|
21
|
+
this.repositoryTagAll = this.repositoryTagAll.bind(this);
|
|
22
|
+
this.daoMemberAll = this.daoMemberAll.bind(this);
|
|
23
|
+
this.bounty = this.bounty.bind(this);
|
|
24
|
+
this.bountyAll = this.bountyAll.bind(this);
|
|
25
|
+
this.release = this.release.bind(this);
|
|
26
|
+
this.releaseAll = this.releaseAll.bind(this);
|
|
27
|
+
this.pullRequestAll = this.pullRequestAll.bind(this);
|
|
28
|
+
this.dao = this.dao.bind(this);
|
|
29
|
+
this.daoAll = this.daoAll.bind(this);
|
|
30
|
+
this.issueComment = this.issueComment.bind(this);
|
|
31
|
+
this.pullRequestComment = this.pullRequestComment.bind(this);
|
|
32
|
+
this.commentAll = this.commentAll.bind(this);
|
|
33
|
+
this.issueCommentAll = this.issueCommentAll.bind(this);
|
|
34
|
+
this.pullRequestCommentAll = this.pullRequestCommentAll.bind(this);
|
|
35
|
+
this.issueAll = this.issueAll.bind(this);
|
|
36
|
+
this.repositoryReleaseLatest = this.repositoryReleaseLatest.bind(this);
|
|
37
|
+
this.repositoryRelease = this.repositoryRelease.bind(this);
|
|
38
|
+
this.repositoryReleaseAll = this.repositoryReleaseAll.bind(this);
|
|
39
|
+
this.repositoryIssue = this.repositoryIssue.bind(this);
|
|
40
|
+
this.repositoryIssueAll = this.repositoryIssueAll.bind(this);
|
|
41
|
+
this.repositoryPullRequest = this.repositoryPullRequest.bind(this);
|
|
42
|
+
this.repositoryPullRequestAll = this.repositoryPullRequestAll.bind(this);
|
|
43
|
+
this.repository = this.repository.bind(this);
|
|
44
|
+
this.repositoryAll = this.repositoryAll.bind(this);
|
|
45
|
+
this.forkAll = this.forkAll.bind(this);
|
|
46
|
+
this.user = this.user.bind(this);
|
|
47
|
+
this.userDaoAll = this.userDaoAll.bind(this);
|
|
48
|
+
this.userAll = this.userAll.bind(this);
|
|
49
|
+
this.anyRepositoryAll = this.anyRepositoryAll.bind(this);
|
|
50
|
+
this.anyRepository = this.anyRepository.bind(this);
|
|
51
|
+
this.whois = this.whois.bind(this);
|
|
52
|
+
this.whoisAll = this.whoisAll.bind(this);
|
|
53
|
+
this.pullRequestMergePermission = this.pullRequestMergePermission.bind(this);
|
|
54
|
+
this.checkGitServerAuthorization = this.checkGitServerAuthorization.bind(this);
|
|
55
|
+
this.checkStorageProviderAuthorization = this.checkStorageProviderAuthorization.bind(this);
|
|
56
|
+
}
|
|
57
|
+
/* Params returns the total set of gitopia parameters. */
|
|
58
|
+
async params(_params = {}) {
|
|
59
|
+
const endpoint = `gitopia/gitopia/gitopia/params`;
|
|
60
|
+
return await this.req.get(endpoint);
|
|
61
|
+
}
|
|
62
|
+
/* query vested amount for developer address */
|
|
63
|
+
async vestedAmount(params) {
|
|
64
|
+
const endpoint = `gitopia/gitopia/gitopia/vestedAmount/${params.address}`;
|
|
65
|
+
return await this.req.get(endpoint);
|
|
66
|
+
}
|
|
67
|
+
/* Queries a Task by id. */
|
|
68
|
+
async task(params) {
|
|
69
|
+
const endpoint = `gitopia/gitopia/gitopia/task/${params.id}`;
|
|
70
|
+
return await this.req.get(endpoint);
|
|
71
|
+
}
|
|
72
|
+
/* Queries a list of Task items. */
|
|
73
|
+
async taskAll(params = {
|
|
74
|
+
pagination: undefined
|
|
75
|
+
}) {
|
|
76
|
+
const options = {
|
|
77
|
+
params: {}
|
|
78
|
+
};
|
|
79
|
+
if (typeof params?.pagination !== "undefined") {
|
|
80
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
81
|
+
}
|
|
82
|
+
const endpoint = `gitopia/gitopia/gitopia/task`;
|
|
83
|
+
return await this.req.get(endpoint, options);
|
|
84
|
+
}
|
|
85
|
+
/* Queries a list of Branch items. */
|
|
86
|
+
async branchAll(params = {
|
|
87
|
+
pagination: undefined
|
|
88
|
+
}) {
|
|
89
|
+
const options = {
|
|
90
|
+
params: {}
|
|
91
|
+
};
|
|
92
|
+
if (typeof params?.pagination !== "undefined") {
|
|
93
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
94
|
+
}
|
|
95
|
+
const endpoint = `gitopia/gitopia/gitopia/branch`;
|
|
96
|
+
return await this.req.get(endpoint, options);
|
|
97
|
+
}
|
|
98
|
+
/* Queries Repository Branch by name. */
|
|
99
|
+
async repositoryBranch(params) {
|
|
100
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/branch/${params.branchName}`;
|
|
101
|
+
return await this.req.get(endpoint);
|
|
102
|
+
}
|
|
103
|
+
/* RepositoryBranchSha */
|
|
104
|
+
async repositoryBranchSha(params) {
|
|
105
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/branch/${params.branchName}/sha`;
|
|
106
|
+
return await this.req.get(endpoint);
|
|
107
|
+
}
|
|
108
|
+
/* Queries a list of Repository Branch. */
|
|
109
|
+
async repositoryBranchAll(params) {
|
|
110
|
+
const options = {
|
|
111
|
+
params: {}
|
|
112
|
+
};
|
|
113
|
+
if (typeof params?.pagination !== "undefined") {
|
|
114
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
115
|
+
}
|
|
116
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/branch`;
|
|
117
|
+
return await this.req.get(endpoint, options);
|
|
118
|
+
}
|
|
119
|
+
/* Queries a list of Tag items. */
|
|
120
|
+
async tagAll(params = {
|
|
121
|
+
pagination: undefined
|
|
122
|
+
}) {
|
|
123
|
+
const options = {
|
|
124
|
+
params: {}
|
|
125
|
+
};
|
|
126
|
+
if (typeof params?.pagination !== "undefined") {
|
|
127
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
128
|
+
}
|
|
129
|
+
const endpoint = `gitopia/gitopia/gitopia/tag`;
|
|
130
|
+
return await this.req.get(endpoint, options);
|
|
131
|
+
}
|
|
132
|
+
/* Queries a Repository Tag by id. */
|
|
133
|
+
async repositoryTag(params) {
|
|
134
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/tag/${params.tagName}`;
|
|
135
|
+
return await this.req.get(endpoint);
|
|
136
|
+
}
|
|
137
|
+
/* RepositoryTagSha */
|
|
138
|
+
async repositoryTagSha(params) {
|
|
139
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/tag/${params.tagName}/sha`;
|
|
140
|
+
return await this.req.get(endpoint);
|
|
141
|
+
}
|
|
142
|
+
/* Queries a list of Repository Tag. */
|
|
143
|
+
async repositoryTagAll(params) {
|
|
144
|
+
const options = {
|
|
145
|
+
params: {}
|
|
146
|
+
};
|
|
147
|
+
if (typeof params?.pagination !== "undefined") {
|
|
148
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
149
|
+
}
|
|
150
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/tag`;
|
|
151
|
+
return await this.req.get(endpoint, options);
|
|
152
|
+
}
|
|
153
|
+
/* Queries a list of Dao Member. */
|
|
154
|
+
async daoMemberAll(params) {
|
|
155
|
+
const options = {
|
|
156
|
+
params: {}
|
|
157
|
+
};
|
|
158
|
+
if (typeof params?.pagination !== "undefined") {
|
|
159
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
160
|
+
}
|
|
161
|
+
const endpoint = `gitopia/gitopia/gitopia/dao/${params.daoId}/member`;
|
|
162
|
+
return await this.req.get(endpoint, options);
|
|
163
|
+
}
|
|
164
|
+
/* Queries a Bounty by id. */
|
|
165
|
+
async bounty(params) {
|
|
166
|
+
const endpoint = `gitopia/gitopia/gitopia/bounty/${params.id}`;
|
|
167
|
+
return await this.req.get(endpoint);
|
|
168
|
+
}
|
|
169
|
+
/* Queries a list of Bounty items. */
|
|
170
|
+
async bountyAll(params = {
|
|
171
|
+
pagination: undefined
|
|
172
|
+
}) {
|
|
173
|
+
const options = {
|
|
174
|
+
params: {}
|
|
175
|
+
};
|
|
176
|
+
if (typeof params?.pagination !== "undefined") {
|
|
177
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
178
|
+
}
|
|
179
|
+
const endpoint = `gitopia/gitopia/gitopia/bounty`;
|
|
180
|
+
return await this.req.get(endpoint, options);
|
|
181
|
+
}
|
|
182
|
+
/* Queries a release by id. */
|
|
183
|
+
async release(params) {
|
|
184
|
+
const endpoint = `gitopia/gitopia/gitopia/release/${params.id}`;
|
|
185
|
+
return await this.req.get(endpoint);
|
|
186
|
+
}
|
|
187
|
+
/* Queries a list of release items. */
|
|
188
|
+
async releaseAll(params = {
|
|
189
|
+
pagination: undefined
|
|
190
|
+
}) {
|
|
191
|
+
const options = {
|
|
192
|
+
params: {}
|
|
193
|
+
};
|
|
194
|
+
if (typeof params?.pagination !== "undefined") {
|
|
195
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
196
|
+
}
|
|
197
|
+
const endpoint = `gitopia/gitopia/gitopia/release`;
|
|
198
|
+
return await this.req.get(endpoint, options);
|
|
199
|
+
}
|
|
200
|
+
/* Queries a list of pullRequest items. */
|
|
201
|
+
async pullRequestAll(params = {
|
|
202
|
+
pagination: undefined
|
|
203
|
+
}) {
|
|
204
|
+
const options = {
|
|
205
|
+
params: {}
|
|
206
|
+
};
|
|
207
|
+
if (typeof params?.pagination !== "undefined") {
|
|
208
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
209
|
+
}
|
|
210
|
+
const endpoint = `gitopia/gitopia/gitopia/pullRequest`;
|
|
211
|
+
return await this.req.get(endpoint, options);
|
|
212
|
+
}
|
|
213
|
+
/* Queries a Dao by id. */
|
|
214
|
+
async dao(params) {
|
|
215
|
+
const endpoint = `gitopia/gitopia/gitopia/dao/${params.id}`;
|
|
216
|
+
return await this.req.get(endpoint);
|
|
217
|
+
}
|
|
218
|
+
/* Queries a list of Dao items. */
|
|
219
|
+
async daoAll(params = {
|
|
220
|
+
pagination: undefined
|
|
221
|
+
}) {
|
|
222
|
+
const options = {
|
|
223
|
+
params: {}
|
|
224
|
+
};
|
|
225
|
+
if (typeof params?.pagination !== "undefined") {
|
|
226
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
227
|
+
}
|
|
228
|
+
const endpoint = `gitopia/gitopia/gitopia/dao`;
|
|
229
|
+
return await this.req.get(endpoint, options);
|
|
230
|
+
}
|
|
231
|
+
/* Queries a issue comment. */
|
|
232
|
+
async issueComment(params) {
|
|
233
|
+
const endpoint = `gitopia/gitopia/gitopia/repository/${params.repositoryId}/issue/${params.issueIid}/comment/${params.commentIid}`;
|
|
234
|
+
return await this.req.get(endpoint);
|
|
235
|
+
}
|
|
236
|
+
/* Queries a pullrequest comment. */
|
|
237
|
+
async pullRequestComment(params) {
|
|
238
|
+
const endpoint = `gitopia/gitopia/gitopia/repository/${params.repositoryId}/pullrequest/${params.pullRequestIid}/comment/${params.commentIid}`;
|
|
239
|
+
return await this.req.get(endpoint);
|
|
240
|
+
}
|
|
241
|
+
/* Queries a list of comment. */
|
|
242
|
+
async commentAll(params = {
|
|
243
|
+
pagination: undefined
|
|
244
|
+
}) {
|
|
245
|
+
const options = {
|
|
246
|
+
params: {}
|
|
247
|
+
};
|
|
248
|
+
if (typeof params?.pagination !== "undefined") {
|
|
249
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
250
|
+
}
|
|
251
|
+
const endpoint = `gitopia/gitopia/gitopia/comment`;
|
|
252
|
+
return await this.req.get(endpoint, options);
|
|
253
|
+
}
|
|
254
|
+
/* Queries a list of issue comment. */
|
|
255
|
+
async issueCommentAll(params) {
|
|
256
|
+
const options = {
|
|
257
|
+
params: {}
|
|
258
|
+
};
|
|
259
|
+
if (typeof params?.pagination !== "undefined") {
|
|
260
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
261
|
+
}
|
|
262
|
+
const endpoint = `gitopia/gitopia/gitopia/repository/${params.repositoryId}/issue/${params.issueIid}/comment`;
|
|
263
|
+
return await this.req.get(endpoint, options);
|
|
264
|
+
}
|
|
265
|
+
/* Queries a list of pullrequest comment. */
|
|
266
|
+
async pullRequestCommentAll(params) {
|
|
267
|
+
const options = {
|
|
268
|
+
params: {}
|
|
269
|
+
};
|
|
270
|
+
if (typeof params?.pagination !== "undefined") {
|
|
271
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
272
|
+
}
|
|
273
|
+
const endpoint = `gitopia/gitopia/gitopia/repository/${params.repositoryId}/pullrequest/${params.pullRequestIid}/comment`;
|
|
274
|
+
return await this.req.get(endpoint, options);
|
|
275
|
+
}
|
|
276
|
+
/* Queries a list of issue items. */
|
|
277
|
+
async issueAll(params = {
|
|
278
|
+
pagination: undefined
|
|
279
|
+
}) {
|
|
280
|
+
const options = {
|
|
281
|
+
params: {}
|
|
282
|
+
};
|
|
283
|
+
if (typeof params?.pagination !== "undefined") {
|
|
284
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
285
|
+
}
|
|
286
|
+
const endpoint = `gitopia/gitopia/gitopia/issue`;
|
|
287
|
+
return await this.req.get(endpoint, options);
|
|
288
|
+
}
|
|
289
|
+
/* RepositoryReleaseLatest */
|
|
290
|
+
async repositoryReleaseLatest(params) {
|
|
291
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/releases/latest`;
|
|
292
|
+
return await this.req.get(endpoint);
|
|
293
|
+
}
|
|
294
|
+
/* RepositoryRelease */
|
|
295
|
+
async repositoryRelease(params) {
|
|
296
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/releases/tag/${params.tagName}`;
|
|
297
|
+
return await this.req.get(endpoint);
|
|
298
|
+
}
|
|
299
|
+
/* RepositoryReleaseAll */
|
|
300
|
+
async repositoryReleaseAll(params) {
|
|
301
|
+
const options = {
|
|
302
|
+
params: {}
|
|
303
|
+
};
|
|
304
|
+
if (typeof params?.pagination !== "undefined") {
|
|
305
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
306
|
+
}
|
|
307
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/releases`;
|
|
308
|
+
return await this.req.get(endpoint, options);
|
|
309
|
+
}
|
|
310
|
+
/* Queries a repository issue by iid. */
|
|
311
|
+
async repositoryIssue(params) {
|
|
312
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/${params.repositoryName}/issue/${params.issueIid}`;
|
|
313
|
+
return await this.req.get(endpoint);
|
|
314
|
+
}
|
|
315
|
+
/* Queries a list of repository issue. */
|
|
316
|
+
async repositoryIssueAll(params) {
|
|
317
|
+
const options = {
|
|
318
|
+
params: {}
|
|
319
|
+
};
|
|
320
|
+
if (typeof params?.option !== "undefined") {
|
|
321
|
+
options.params.option = params.option;
|
|
322
|
+
}
|
|
323
|
+
if (typeof params?.pagination !== "undefined") {
|
|
324
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
325
|
+
}
|
|
326
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/${params.repositoryName}/issue`;
|
|
327
|
+
return await this.req.get(endpoint, options);
|
|
328
|
+
}
|
|
329
|
+
/* Queries a repository pullRequest. */
|
|
330
|
+
async repositoryPullRequest(params) {
|
|
331
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/${params.repositoryName}/pull/${params.pullIid}`;
|
|
332
|
+
return await this.req.get(endpoint);
|
|
333
|
+
}
|
|
334
|
+
/* Queries a list of repository pullRequest. */
|
|
335
|
+
async repositoryPullRequestAll(params) {
|
|
336
|
+
const options = {
|
|
337
|
+
params: {}
|
|
338
|
+
};
|
|
339
|
+
if (typeof params?.option !== "undefined") {
|
|
340
|
+
options.params.option = params.option;
|
|
341
|
+
}
|
|
342
|
+
if (typeof params?.pagination !== "undefined") {
|
|
343
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
344
|
+
}
|
|
345
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/${params.repositoryName}/pull`;
|
|
346
|
+
return await this.req.get(endpoint, options);
|
|
347
|
+
}
|
|
348
|
+
/* Queries a repository by id. */
|
|
349
|
+
async repository(params) {
|
|
350
|
+
const endpoint = `gitopia/gitopia/gitopia/repository/${params.id}`;
|
|
351
|
+
return await this.req.get(endpoint);
|
|
352
|
+
}
|
|
353
|
+
/* Queries a list of repository items. */
|
|
354
|
+
async repositoryAll(params = {
|
|
355
|
+
pagination: undefined
|
|
356
|
+
}) {
|
|
357
|
+
const options = {
|
|
358
|
+
params: {}
|
|
359
|
+
};
|
|
360
|
+
if (typeof params?.pagination !== "undefined") {
|
|
361
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
362
|
+
}
|
|
363
|
+
const endpoint = `gitopia/gitopia/gitopia/repository`;
|
|
364
|
+
return await this.req.get(endpoint, options);
|
|
365
|
+
}
|
|
366
|
+
/* Queries a repository forks by id. */
|
|
367
|
+
async forkAll(params) {
|
|
368
|
+
const options = {
|
|
369
|
+
params: {}
|
|
370
|
+
};
|
|
371
|
+
if (typeof params?.pagination !== "undefined") {
|
|
372
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
373
|
+
}
|
|
374
|
+
const endpoint = `gitopia/gitopia/gitopia/${params.id}/repository/${params.repositoryName}/forks`;
|
|
375
|
+
return await this.req.get(endpoint, options);
|
|
376
|
+
}
|
|
377
|
+
/* Queries a user by id. */
|
|
378
|
+
async user(params) {
|
|
379
|
+
const endpoint = `gitopia/gitopia/gitopia/user/${params.id}`;
|
|
380
|
+
return await this.req.get(endpoint);
|
|
381
|
+
}
|
|
382
|
+
/* Queries a list of User Dao. */
|
|
383
|
+
async userDaoAll(params) {
|
|
384
|
+
const options = {
|
|
385
|
+
params: {}
|
|
386
|
+
};
|
|
387
|
+
if (typeof params?.pagination !== "undefined") {
|
|
388
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
389
|
+
}
|
|
390
|
+
const endpoint = `gitopia/gitopia/gitopia/user/${params.userId}/dao`;
|
|
391
|
+
return await this.req.get(endpoint, options);
|
|
392
|
+
}
|
|
393
|
+
/* Queries a list of user items. */
|
|
394
|
+
async userAll(params = {
|
|
395
|
+
pagination: undefined
|
|
396
|
+
}) {
|
|
397
|
+
const options = {
|
|
398
|
+
params: {}
|
|
399
|
+
};
|
|
400
|
+
if (typeof params?.pagination !== "undefined") {
|
|
401
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
402
|
+
}
|
|
403
|
+
const endpoint = `gitopia/gitopia/gitopia/user`;
|
|
404
|
+
return await this.req.get(endpoint, options);
|
|
405
|
+
}
|
|
406
|
+
/* Queries a list of user repositories. */
|
|
407
|
+
async anyRepositoryAll(params) {
|
|
408
|
+
const options = {
|
|
409
|
+
params: {}
|
|
410
|
+
};
|
|
411
|
+
if (typeof params?.pagination !== "undefined") {
|
|
412
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
413
|
+
}
|
|
414
|
+
const endpoint = `gitopia/gitopia/gitopia/user/${params.id}/repository`;
|
|
415
|
+
return await this.req.get(endpoint, options);
|
|
416
|
+
}
|
|
417
|
+
/* Queries a repository by user id and repository name */
|
|
418
|
+
async anyRepository(params) {
|
|
419
|
+
const endpoint = `gitopia/gitopia/gitopia/user/${params.id}/repository/${params.repositoryName}`;
|
|
420
|
+
return await this.req.get(endpoint);
|
|
421
|
+
}
|
|
422
|
+
/* Queries a whois by id. */
|
|
423
|
+
async whois(params) {
|
|
424
|
+
const endpoint = `gitopia/gitopia/gitopia/whois/${params.name}`;
|
|
425
|
+
return await this.req.get(endpoint);
|
|
426
|
+
}
|
|
427
|
+
/* Queries a list of whois items. */
|
|
428
|
+
async whoisAll(params = {
|
|
429
|
+
pagination: undefined
|
|
430
|
+
}) {
|
|
431
|
+
const options = {
|
|
432
|
+
params: {}
|
|
433
|
+
};
|
|
434
|
+
if (typeof params?.pagination !== "undefined") {
|
|
435
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
436
|
+
}
|
|
437
|
+
const endpoint = `gitopia/gitopia/gitopia/whois`;
|
|
438
|
+
return await this.req.get(endpoint, options);
|
|
439
|
+
}
|
|
440
|
+
/* PullRequestMergePermission */
|
|
441
|
+
async pullRequestMergePermission(params) {
|
|
442
|
+
const endpoint = `gitopia/gitopia/gitopia/permissions/${params.userId}/repository/${params.repositoryId}/pull/${params.pullIid}/merge`;
|
|
443
|
+
return await this.req.get(endpoint);
|
|
444
|
+
}
|
|
445
|
+
/* CheckGitServerAuthorization */
|
|
446
|
+
async checkGitServerAuthorization(params) {
|
|
447
|
+
const endpoint = `gitopia/gitopia/gitopia/authorizations/git-server/${params.userAddress}/${params.providerAddress}`;
|
|
448
|
+
return await this.req.get(endpoint);
|
|
449
|
+
}
|
|
450
|
+
/* CheckStorageProviderAuthorization */
|
|
451
|
+
async checkStorageProviderAuthorization(params) {
|
|
452
|
+
const endpoint = `gitopia/gitopia/gitopia/authorizations/storage-provider/${params.userAddress}/${params.providerAddress}`;
|
|
453
|
+
return await this.req.get(endpoint);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
exports.LCDQueryClient = LCDQueryClient;
|