@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.
Files changed (309) hide show
  1. package/package.json +3 -3
  2. package/dist/LICENSE +0 -21
  3. package/dist/amino/amino.d.ts +0 -1
  4. package/dist/amino/amino.js +0 -2
  5. package/dist/amino/bundle.d.ts +0 -1
  6. package/dist/amino/bundle.js +0 -41
  7. package/dist/binary.d.ts +0 -130
  8. package/dist/binary.js +0 -371
  9. package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
  10. package/dist/cosmos/bank/v1beta1/bank.js +0 -664
  11. package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
  12. package/dist/cosmos/bank/v1beta1/query.js +0 -1759
  13. package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
  14. package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
  15. package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
  16. package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
  17. package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
  18. package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
  19. package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
  20. package/dist/cosmos/base/v1beta1/coin.js +0 -306
  21. package/dist/cosmos/bundle.d.ts +0 -2311
  22. package/dist/cosmos/bundle.js +0 -134
  23. package/dist/cosmos/client.d.ts +0 -84
  24. package/dist/cosmos/client.js +0 -65
  25. package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
  26. package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
  27. package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
  28. package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
  29. package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
  30. package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
  31. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
  32. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
  33. package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
  34. package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
  35. package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
  36. package/dist/cosmos/gov/v1beta1/query.js +0 -1264
  37. package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
  38. package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
  39. package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
  40. package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
  41. package/dist/cosmos/group/v1/query.d.ts +0 -1097
  42. package/dist/cosmos/group/v1/query.js +0 -2182
  43. package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
  44. package/dist/cosmos/group/v1/query.lcd.js +0 -158
  45. package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
  46. package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
  47. package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
  48. package/dist/cosmos/group/v1/tx.amino.js +0 -77
  49. package/dist/cosmos/group/v1/tx.d.ts +0 -1198
  50. package/dist/cosmos/group/v1/tx.js +0 -2362
  51. package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
  52. package/dist/cosmos/group/v1/tx.registry.js +0 -271
  53. package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
  54. package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
  55. package/dist/cosmos/group/v1/types.d.ts +0 -873
  56. package/dist/cosmos/group/v1/types.js +0 -1495
  57. package/dist/cosmos/msg/v1/msg.d.ts +0 -1
  58. package/dist/cosmos/msg/v1/msg.js +0 -2
  59. package/dist/cosmos/query/v1/query.d.ts +0 -1
  60. package/dist/cosmos/query/v1/query.js +0 -2
  61. package/dist/cosmos/rpc.query.d.ts +0 -59
  62. package/dist/cosmos/rpc.query.js +0 -60
  63. package/dist/cosmos/rpc.tx.d.ts +0 -10
  64. package/dist/cosmos/rpc.tx.js +0 -44
  65. package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
  66. package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
  67. package/dist/cosmos_proto/bundle.d.ts +0 -32
  68. package/dist/cosmos_proto/bundle.js +0 -41
  69. package/dist/cosmos_proto/cosmos.d.ts +0 -171
  70. package/dist/cosmos_proto/cosmos.js +0 -221
  71. package/dist/esm/amino/amino.js +0 -1
  72. package/dist/esm/amino/bundle.js +0 -5
  73. package/dist/esm/binary.js +0 -366
  74. package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
  75. package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
  76. package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
  77. package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
  78. package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
  79. package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
  80. package/dist/esm/cosmos/bundle.js +0 -98
  81. package/dist/esm/cosmos/client.js +0 -27
  82. package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
  83. package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
  84. package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
  85. package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
  86. package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
  87. package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
  88. package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
  89. package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
  90. package/dist/esm/cosmos/group/v1/query.js +0 -2179
  91. package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
  92. package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
  93. package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
  94. package/dist/esm/cosmos/group/v1/tx.js +0 -2354
  95. package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
  96. package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
  97. package/dist/esm/cosmos/group/v1/types.js +0 -1483
  98. package/dist/esm/cosmos/msg/v1/msg.js +0 -1
  99. package/dist/esm/cosmos/query/v1/query.js +0 -1
  100. package/dist/esm/cosmos/rpc.query.js +0 -23
  101. package/dist/esm/cosmos/rpc.tx.js +0 -7
  102. package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
  103. package/dist/esm/cosmos_proto/bundle.js +0 -5
  104. package/dist/esm/cosmos_proto/cosmos.js +0 -216
  105. package/dist/esm/gitopia/bundle.js +0 -95
  106. package/dist/esm/gitopia/client.js +0 -32
  107. package/dist/esm/gitopia/custom-lcd-client.js +0 -50
  108. package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
  109. package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
  110. package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
  111. package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
  112. package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
  113. package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
  114. package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
  115. package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
  116. package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
  117. package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
  118. package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
  119. package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
  120. package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
  121. package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
  122. package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
  123. package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
  124. package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
  125. package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
  126. package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
  127. package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
  128. package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
  129. package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
  130. package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
  131. package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
  132. package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
  133. package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
  134. package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
  135. package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
  136. package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
  137. package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
  138. package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
  139. package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
  140. package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
  141. package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
  142. package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
  143. package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
  144. package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
  145. package/dist/esm/gitopia/rpc.query.js +0 -29
  146. package/dist/esm/gitopia/rpc.tx.js +0 -13
  147. package/dist/esm/gogoproto/bundle.js +0 -5
  148. package/dist/esm/gogoproto/gogo.js +0 -1
  149. package/dist/esm/google/api/annotations.js +0 -1
  150. package/dist/esm/google/api/http.js +0 -329
  151. package/dist/esm/google/bundle.js +0 -14
  152. package/dist/esm/google/protobuf/any.js +0 -74
  153. package/dist/esm/google/protobuf/descriptor.js +0 -4848
  154. package/dist/esm/google/protobuf/duration.js +0 -71
  155. package/dist/esm/google/protobuf/timestamp.js +0 -68
  156. package/dist/esm/helpers.js +0 -129
  157. package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
  158. package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
  159. package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
  160. package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
  161. package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
  162. package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
  163. package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
  164. package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
  165. package/dist/esm/ibc/bundle.js +0 -44
  166. package/dist/esm/ibc/client.js +0 -29
  167. package/dist/esm/ibc/core/client/v1/client.js +0 -611
  168. package/dist/esm/ibc/rpc.query.js +0 -30
  169. package/dist/esm/ibc/rpc.tx.js +0 -14
  170. package/dist/esm/index.js +0 -19
  171. package/dist/esm/utf8.js +0 -137
  172. package/dist/esm/varint.js +0 -408
  173. package/dist/gitopia/bundle.d.ts +0 -6123
  174. package/dist/gitopia/bundle.js +0 -131
  175. package/dist/gitopia/client.d.ts +0 -492
  176. package/dist/gitopia/client.js +0 -70
  177. package/dist/gitopia/custom-lcd-client.d.ts +0 -31
  178. package/dist/gitopia/custom-lcd-client.js +0 -87
  179. package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
  180. package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
  181. package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
  182. package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
  183. package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
  184. package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
  185. package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
  186. package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
  187. package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
  188. package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
  189. package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
  190. package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
  191. package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
  192. package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
  193. package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
  194. package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
  195. package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
  196. package/dist/gitopia/gitopia/gitopia/params.js +0 -296
  197. package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
  198. package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
  199. package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
  200. package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
  201. package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
  202. package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
  203. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
  204. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
  205. package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
  206. package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
  207. package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
  208. package/dist/gitopia/gitopia/gitopia/release.js +0 -228
  209. package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
  210. package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
  211. package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
  212. package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
  213. package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
  214. package/dist/gitopia/gitopia/gitopia/task.js +0 -204
  215. package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
  216. package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
  217. package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
  218. package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
  219. package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
  220. package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
  221. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
  222. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
  223. package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
  224. package/dist/gitopia/gitopia/gitopia/user.js +0 -343
  225. package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
  226. package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
  227. package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
  228. package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
  229. package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
  230. package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
  231. package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
  232. package/dist/gitopia/gitopia/rewards/params.js +0 -84
  233. package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
  234. package/dist/gitopia/gitopia/rewards/pool.js +0 -196
  235. package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
  236. package/dist/gitopia/gitopia/rewards/query.js +0 -657
  237. package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
  238. package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
  239. package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
  240. package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
  241. package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
  242. package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
  243. package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
  244. package/dist/gitopia/gitopia/rewards/task.js +0 -181
  245. package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
  246. package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
  247. package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
  248. package/dist/gitopia/gitopia/rewards/tx.js +0 -528
  249. package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
  250. package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
  251. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
  252. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
  253. package/dist/gitopia/rpc.query.d.ts +0 -117
  254. package/dist/gitopia/rpc.query.js +0 -66
  255. package/dist/gitopia/rpc.tx.d.ts +0 -16
  256. package/dist/gitopia/rpc.tx.js +0 -50
  257. package/dist/gogoproto/bundle.d.ts +0 -1
  258. package/dist/gogoproto/bundle.js +0 -41
  259. package/dist/gogoproto/gogo.d.ts +0 -1
  260. package/dist/gogoproto/gogo.js +0 -2
  261. package/dist/google/api/annotations.d.ts +0 -1
  262. package/dist/google/api/annotations.js +0 -2
  263. package/dist/google/api/http.d.ts +0 -1049
  264. package/dist/google/api/http.js +0 -332
  265. package/dist/google/bundle.d.ts +0 -525
  266. package/dist/google/bundle.js +0 -50
  267. package/dist/google/protobuf/any.d.ts +0 -358
  268. package/dist/google/protobuf/any.js +0 -77
  269. package/dist/google/protobuf/descriptor.d.ts +0 -3178
  270. package/dist/google/protobuf/descriptor.js +0 -4886
  271. package/dist/google/protobuf/duration.d.ts +0 -223
  272. package/dist/google/protobuf/duration.js +0 -74
  273. package/dist/google/protobuf/timestamp.d.ts +0 -314
  274. package/dist/google/protobuf/timestamp.js +0 -71
  275. package/dist/helpers.d.ts +0 -82
  276. package/dist/helpers.js +0 -144
  277. package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
  278. package/dist/ibc/applications/transfer/v1/query.js +0 -850
  279. package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
  280. package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
  281. package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
  282. package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
  283. package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
  284. package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
  285. package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
  286. package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
  287. package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
  288. package/dist/ibc/applications/transfer/v1/tx.js +0 -229
  289. package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
  290. package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
  291. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
  292. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
  293. package/dist/ibc/bundle.d.ts +0 -450
  294. package/dist/ibc/bundle.js +0 -80
  295. package/dist/ibc/client.d.ts +0 -22
  296. package/dist/ibc/client.js +0 -67
  297. package/dist/ibc/core/client/v1/client.d.ts +0 -408
  298. package/dist/ibc/core/client/v1/client.js +0 -614
  299. package/dist/ibc/rpc.query.d.ts +0 -73
  300. package/dist/ibc/rpc.query.js +0 -67
  301. package/dist/ibc/rpc.tx.d.ts +0 -17
  302. package/dist/ibc/rpc.tx.js +0 -51
  303. package/dist/index.d.ts +0 -18
  304. package/dist/index.js +0 -35
  305. package/dist/package.json +0 -46
  306. package/dist/utf8.d.ts +0 -27
  307. package/dist/utf8.js +0 -141
  308. package/dist/varint.d.ts +0 -105
  309. 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;