@gitopia/gitopiajs 0.0.3 → 0.0.4
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/package.json +3 -3
- package/dist/LICENSE +0 -21
- package/dist/amino/amino.d.ts +0 -1
- package/dist/amino/amino.js +0 -2
- package/dist/amino/bundle.d.ts +0 -1
- package/dist/amino/bundle.js +0 -41
- package/dist/binary.d.ts +0 -130
- package/dist/binary.js +0 -371
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
- package/dist/cosmos/bank/v1beta1/bank.js +0 -664
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
- package/dist/cosmos/bank/v1beta1/query.js +0 -1759
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
- package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
- package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
- package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
- package/dist/cosmos/base/v1beta1/coin.js +0 -306
- package/dist/cosmos/bundle.d.ts +0 -2311
- package/dist/cosmos/bundle.js +0 -134
- package/dist/cosmos/client.d.ts +0 -84
- package/dist/cosmos/client.js +0 -65
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
- package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
- package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
- package/dist/cosmos/gov/v1beta1/query.js +0 -1264
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
- package/dist/cosmos/group/v1/query.d.ts +0 -1097
- package/dist/cosmos/group/v1/query.js +0 -2182
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
- package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
- package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
- package/dist/cosmos/group/v1/tx.amino.js +0 -77
- package/dist/cosmos/group/v1/tx.d.ts +0 -1198
- package/dist/cosmos/group/v1/tx.js +0 -2362
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
- package/dist/cosmos/group/v1/tx.registry.js +0 -271
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
- package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
- package/dist/cosmos/group/v1/types.d.ts +0 -873
- package/dist/cosmos/group/v1/types.js +0 -1495
- package/dist/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos/query/v1/query.d.ts +0 -1
- package/dist/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos/rpc.query.d.ts +0 -59
- package/dist/cosmos/rpc.query.js +0 -60
- package/dist/cosmos/rpc.tx.d.ts +0 -10
- package/dist/cosmos/rpc.tx.js +0 -44
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
- package/dist/cosmos_proto/bundle.d.ts +0 -32
- package/dist/cosmos_proto/bundle.js +0 -41
- package/dist/cosmos_proto/cosmos.d.ts +0 -171
- package/dist/cosmos_proto/cosmos.js +0 -221
- package/dist/esm/amino/amino.js +0 -1
- package/dist/esm/amino/bundle.js +0 -5
- package/dist/esm/binary.js +0 -366
- package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
- package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
- package/dist/esm/cosmos/bundle.js +0 -98
- package/dist/esm/cosmos/client.js +0 -27
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
- package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
- package/dist/esm/cosmos/group/v1/query.js +0 -2179
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
- package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
- package/dist/esm/cosmos/group/v1/tx.js +0 -2354
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
- package/dist/esm/cosmos/group/v1/types.js +0 -1483
- package/dist/esm/cosmos/msg/v1/msg.js +0 -1
- package/dist/esm/cosmos/query/v1/query.js +0 -1
- package/dist/esm/cosmos/rpc.query.js +0 -23
- package/dist/esm/cosmos/rpc.tx.js +0 -7
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
- package/dist/esm/cosmos_proto/bundle.js +0 -5
- package/dist/esm/cosmos_proto/cosmos.js +0 -216
- package/dist/esm/gitopia/bundle.js +0 -95
- package/dist/esm/gitopia/client.js +0 -32
- package/dist/esm/gitopia/custom-lcd-client.js +0 -50
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
- package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
- package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
- package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
- package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
- package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
- package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
- package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
- package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
- package/dist/esm/gitopia/rpc.query.js +0 -29
- package/dist/esm/gitopia/rpc.tx.js +0 -13
- package/dist/esm/gogoproto/bundle.js +0 -5
- package/dist/esm/gogoproto/gogo.js +0 -1
- package/dist/esm/google/api/annotations.js +0 -1
- package/dist/esm/google/api/http.js +0 -329
- package/dist/esm/google/bundle.js +0 -14
- package/dist/esm/google/protobuf/any.js +0 -74
- package/dist/esm/google/protobuf/descriptor.js +0 -4848
- package/dist/esm/google/protobuf/duration.js +0 -71
- package/dist/esm/google/protobuf/timestamp.js +0 -68
- package/dist/esm/helpers.js +0 -129
- package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
- package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
- package/dist/esm/ibc/bundle.js +0 -44
- package/dist/esm/ibc/client.js +0 -29
- package/dist/esm/ibc/core/client/v1/client.js +0 -611
- package/dist/esm/ibc/rpc.query.js +0 -30
- package/dist/esm/ibc/rpc.tx.js +0 -14
- package/dist/esm/index.js +0 -19
- package/dist/esm/utf8.js +0 -137
- package/dist/esm/varint.js +0 -408
- package/dist/gitopia/bundle.d.ts +0 -6123
- package/dist/gitopia/bundle.js +0 -131
- package/dist/gitopia/client.d.ts +0 -492
- package/dist/gitopia/client.js +0 -70
- package/dist/gitopia/custom-lcd-client.d.ts +0 -31
- package/dist/gitopia/custom-lcd-client.js +0 -87
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
- package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
- package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
- package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
- package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
- package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
- package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
- package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
- package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
- package/dist/gitopia/gitopia/gitopia/params.js +0 -296
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
- package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
- package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
- package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
- package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
- package/dist/gitopia/gitopia/gitopia/release.js +0 -228
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
- package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
- package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
- package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
- package/dist/gitopia/gitopia/gitopia/task.js +0 -204
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
- package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
- package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
- package/dist/gitopia/gitopia/gitopia/user.js +0 -343
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
- package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
- package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
- package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
- package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
- package/dist/gitopia/gitopia/rewards/params.js +0 -84
- package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
- package/dist/gitopia/gitopia/rewards/pool.js +0 -196
- package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
- package/dist/gitopia/gitopia/rewards/query.js +0 -657
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
- package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
- package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
- package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
- package/dist/gitopia/gitopia/rewards/task.js +0 -181
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
- package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
- package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
- package/dist/gitopia/gitopia/rewards/tx.js +0 -528
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
- package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
- package/dist/gitopia/rpc.query.d.ts +0 -117
- package/dist/gitopia/rpc.query.js +0 -66
- package/dist/gitopia/rpc.tx.d.ts +0 -16
- package/dist/gitopia/rpc.tx.js +0 -50
- package/dist/gogoproto/bundle.d.ts +0 -1
- package/dist/gogoproto/bundle.js +0 -41
- package/dist/gogoproto/gogo.d.ts +0 -1
- package/dist/gogoproto/gogo.js +0 -2
- package/dist/google/api/annotations.d.ts +0 -1
- package/dist/google/api/annotations.js +0 -2
- package/dist/google/api/http.d.ts +0 -1049
- package/dist/google/api/http.js +0 -332
- package/dist/google/bundle.d.ts +0 -525
- package/dist/google/bundle.js +0 -50
- package/dist/google/protobuf/any.d.ts +0 -358
- package/dist/google/protobuf/any.js +0 -77
- package/dist/google/protobuf/descriptor.d.ts +0 -3178
- package/dist/google/protobuf/descriptor.js +0 -4886
- package/dist/google/protobuf/duration.d.ts +0 -223
- package/dist/google/protobuf/duration.js +0 -74
- package/dist/google/protobuf/timestamp.d.ts +0 -314
- package/dist/google/protobuf/timestamp.js +0 -71
- package/dist/helpers.d.ts +0 -82
- package/dist/helpers.js +0 -144
- package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
- package/dist/ibc/applications/transfer/v1/query.js +0 -850
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
- package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
- package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
- package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
- package/dist/ibc/applications/transfer/v1/tx.js +0 -229
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
- package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
- package/dist/ibc/bundle.d.ts +0 -450
- package/dist/ibc/bundle.js +0 -80
- package/dist/ibc/client.d.ts +0 -22
- package/dist/ibc/client.js +0 -67
- package/dist/ibc/core/client/v1/client.d.ts +0 -408
- package/dist/ibc/core/client/v1/client.js +0 -614
- package/dist/ibc/rpc.query.d.ts +0 -73
- package/dist/ibc/rpc.query.js +0 -67
- package/dist/ibc/rpc.tx.d.ts +0 -17
- package/dist/ibc/rpc.tx.js +0 -51
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -35
- package/dist/package.json +0 -46
- package/dist/utf8.d.ts +0 -27
- package/dist/utf8.js +0 -141
- package/dist/varint.d.ts +0 -105
- package/dist/varint.js +0 -426
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,456 +0,0 @@
|
|
|
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;
|