@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,488 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Attachment } from "./attachment";
|
|
3
|
+
import { Reaction } from "./reaction";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
export var CommentType;
|
|
6
|
+
(function (CommentType) {
|
|
7
|
+
CommentType[CommentType["COMMENT_TYPE_NONE"] = 0] = "COMMENT_TYPE_NONE";
|
|
8
|
+
CommentType[CommentType["COMMENT_TYPE_REPLY"] = 1] = "COMMENT_TYPE_REPLY";
|
|
9
|
+
CommentType[CommentType["COMMENT_TYPE_ADD_LABELS"] = 2] = "COMMENT_TYPE_ADD_LABELS";
|
|
10
|
+
CommentType[CommentType["COMMENT_TYPE_REMOVE_LABELS"] = 3] = "COMMENT_TYPE_REMOVE_LABELS";
|
|
11
|
+
CommentType[CommentType["COMMENT_TYPE_ADD_ASSIGNEES"] = 4] = "COMMENT_TYPE_ADD_ASSIGNEES";
|
|
12
|
+
CommentType[CommentType["COMMENT_TYPE_REMOVE_ASSIGNEES"] = 5] = "COMMENT_TYPE_REMOVE_ASSIGNEES";
|
|
13
|
+
CommentType[CommentType["COMMENT_TYPE_ADD_REVIEWERS"] = 6] = "COMMENT_TYPE_ADD_REVIEWERS";
|
|
14
|
+
CommentType[CommentType["COMMENT_TYPE_REMOVE_REVIEWERS"] = 7] = "COMMENT_TYPE_REMOVE_REVIEWERS";
|
|
15
|
+
CommentType[CommentType["COMMENT_TYPE_MODIFIED_TITLE"] = 8] = "COMMENT_TYPE_MODIFIED_TITLE";
|
|
16
|
+
CommentType[CommentType["COMMENT_TYPE_MODIFIED_DESCRIPTION"] = 9] = "COMMENT_TYPE_MODIFIED_DESCRIPTION";
|
|
17
|
+
CommentType[CommentType["COMMENT_TYPE_ISSUE_CLOSED"] = 10] = "COMMENT_TYPE_ISSUE_CLOSED";
|
|
18
|
+
CommentType[CommentType["COMMENT_TYPE_ISSUE_OPENED"] = 11] = "COMMENT_TYPE_ISSUE_OPENED";
|
|
19
|
+
CommentType[CommentType["COMMENT_TYPE_PULL_REQUEST_CLOSED"] = 12] = "COMMENT_TYPE_PULL_REQUEST_CLOSED";
|
|
20
|
+
CommentType[CommentType["COMMENT_TYPE_PULL_REQUEST_OPENED"] = 13] = "COMMENT_TYPE_PULL_REQUEST_OPENED";
|
|
21
|
+
CommentType[CommentType["COMMENT_TYPE_PULL_REQUEST_MERGED"] = 14] = "COMMENT_TYPE_PULL_REQUEST_MERGED";
|
|
22
|
+
CommentType[CommentType["COMMENT_TYPE_REVIEW"] = 15] = "COMMENT_TYPE_REVIEW";
|
|
23
|
+
CommentType[CommentType["COMMENT_TYPE_ADD_BOUNTY"] = 16] = "COMMENT_TYPE_ADD_BOUNTY";
|
|
24
|
+
CommentType[CommentType["COMMENT_TYPE_MODIFIED_BOUNTY"] = 17] = "COMMENT_TYPE_MODIFIED_BOUNTY";
|
|
25
|
+
CommentType[CommentType["COMMENT_TYPE_CLOSED_BOUNTY"] = 18] = "COMMENT_TYPE_CLOSED_BOUNTY";
|
|
26
|
+
CommentType[CommentType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
27
|
+
})(CommentType || (CommentType = {}));
|
|
28
|
+
export const CommentTypeSDKType = CommentType;
|
|
29
|
+
export const CommentTypeAmino = CommentType;
|
|
30
|
+
export function commentTypeFromJSON(object) {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case 0:
|
|
33
|
+
case "COMMENT_TYPE_NONE":
|
|
34
|
+
return CommentType.COMMENT_TYPE_NONE;
|
|
35
|
+
case 1:
|
|
36
|
+
case "COMMENT_TYPE_REPLY":
|
|
37
|
+
return CommentType.COMMENT_TYPE_REPLY;
|
|
38
|
+
case 2:
|
|
39
|
+
case "COMMENT_TYPE_ADD_LABELS":
|
|
40
|
+
return CommentType.COMMENT_TYPE_ADD_LABELS;
|
|
41
|
+
case 3:
|
|
42
|
+
case "COMMENT_TYPE_REMOVE_LABELS":
|
|
43
|
+
return CommentType.COMMENT_TYPE_REMOVE_LABELS;
|
|
44
|
+
case 4:
|
|
45
|
+
case "COMMENT_TYPE_ADD_ASSIGNEES":
|
|
46
|
+
return CommentType.COMMENT_TYPE_ADD_ASSIGNEES;
|
|
47
|
+
case 5:
|
|
48
|
+
case "COMMENT_TYPE_REMOVE_ASSIGNEES":
|
|
49
|
+
return CommentType.COMMENT_TYPE_REMOVE_ASSIGNEES;
|
|
50
|
+
case 6:
|
|
51
|
+
case "COMMENT_TYPE_ADD_REVIEWERS":
|
|
52
|
+
return CommentType.COMMENT_TYPE_ADD_REVIEWERS;
|
|
53
|
+
case 7:
|
|
54
|
+
case "COMMENT_TYPE_REMOVE_REVIEWERS":
|
|
55
|
+
return CommentType.COMMENT_TYPE_REMOVE_REVIEWERS;
|
|
56
|
+
case 8:
|
|
57
|
+
case "COMMENT_TYPE_MODIFIED_TITLE":
|
|
58
|
+
return CommentType.COMMENT_TYPE_MODIFIED_TITLE;
|
|
59
|
+
case 9:
|
|
60
|
+
case "COMMENT_TYPE_MODIFIED_DESCRIPTION":
|
|
61
|
+
return CommentType.COMMENT_TYPE_MODIFIED_DESCRIPTION;
|
|
62
|
+
case 10:
|
|
63
|
+
case "COMMENT_TYPE_ISSUE_CLOSED":
|
|
64
|
+
return CommentType.COMMENT_TYPE_ISSUE_CLOSED;
|
|
65
|
+
case 11:
|
|
66
|
+
case "COMMENT_TYPE_ISSUE_OPENED":
|
|
67
|
+
return CommentType.COMMENT_TYPE_ISSUE_OPENED;
|
|
68
|
+
case 12:
|
|
69
|
+
case "COMMENT_TYPE_PULL_REQUEST_CLOSED":
|
|
70
|
+
return CommentType.COMMENT_TYPE_PULL_REQUEST_CLOSED;
|
|
71
|
+
case 13:
|
|
72
|
+
case "COMMENT_TYPE_PULL_REQUEST_OPENED":
|
|
73
|
+
return CommentType.COMMENT_TYPE_PULL_REQUEST_OPENED;
|
|
74
|
+
case 14:
|
|
75
|
+
case "COMMENT_TYPE_PULL_REQUEST_MERGED":
|
|
76
|
+
return CommentType.COMMENT_TYPE_PULL_REQUEST_MERGED;
|
|
77
|
+
case 15:
|
|
78
|
+
case "COMMENT_TYPE_REVIEW":
|
|
79
|
+
return CommentType.COMMENT_TYPE_REVIEW;
|
|
80
|
+
case 16:
|
|
81
|
+
case "COMMENT_TYPE_ADD_BOUNTY":
|
|
82
|
+
return CommentType.COMMENT_TYPE_ADD_BOUNTY;
|
|
83
|
+
case 17:
|
|
84
|
+
case "COMMENT_TYPE_MODIFIED_BOUNTY":
|
|
85
|
+
return CommentType.COMMENT_TYPE_MODIFIED_BOUNTY;
|
|
86
|
+
case 18:
|
|
87
|
+
case "COMMENT_TYPE_CLOSED_BOUNTY":
|
|
88
|
+
return CommentType.COMMENT_TYPE_CLOSED_BOUNTY;
|
|
89
|
+
case -1:
|
|
90
|
+
case "UNRECOGNIZED":
|
|
91
|
+
default:
|
|
92
|
+
return CommentType.UNRECOGNIZED;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
export function commentTypeToJSON(object) {
|
|
96
|
+
switch (object) {
|
|
97
|
+
case CommentType.COMMENT_TYPE_NONE:
|
|
98
|
+
return "COMMENT_TYPE_NONE";
|
|
99
|
+
case CommentType.COMMENT_TYPE_REPLY:
|
|
100
|
+
return "COMMENT_TYPE_REPLY";
|
|
101
|
+
case CommentType.COMMENT_TYPE_ADD_LABELS:
|
|
102
|
+
return "COMMENT_TYPE_ADD_LABELS";
|
|
103
|
+
case CommentType.COMMENT_TYPE_REMOVE_LABELS:
|
|
104
|
+
return "COMMENT_TYPE_REMOVE_LABELS";
|
|
105
|
+
case CommentType.COMMENT_TYPE_ADD_ASSIGNEES:
|
|
106
|
+
return "COMMENT_TYPE_ADD_ASSIGNEES";
|
|
107
|
+
case CommentType.COMMENT_TYPE_REMOVE_ASSIGNEES:
|
|
108
|
+
return "COMMENT_TYPE_REMOVE_ASSIGNEES";
|
|
109
|
+
case CommentType.COMMENT_TYPE_ADD_REVIEWERS:
|
|
110
|
+
return "COMMENT_TYPE_ADD_REVIEWERS";
|
|
111
|
+
case CommentType.COMMENT_TYPE_REMOVE_REVIEWERS:
|
|
112
|
+
return "COMMENT_TYPE_REMOVE_REVIEWERS";
|
|
113
|
+
case CommentType.COMMENT_TYPE_MODIFIED_TITLE:
|
|
114
|
+
return "COMMENT_TYPE_MODIFIED_TITLE";
|
|
115
|
+
case CommentType.COMMENT_TYPE_MODIFIED_DESCRIPTION:
|
|
116
|
+
return "COMMENT_TYPE_MODIFIED_DESCRIPTION";
|
|
117
|
+
case CommentType.COMMENT_TYPE_ISSUE_CLOSED:
|
|
118
|
+
return "COMMENT_TYPE_ISSUE_CLOSED";
|
|
119
|
+
case CommentType.COMMENT_TYPE_ISSUE_OPENED:
|
|
120
|
+
return "COMMENT_TYPE_ISSUE_OPENED";
|
|
121
|
+
case CommentType.COMMENT_TYPE_PULL_REQUEST_CLOSED:
|
|
122
|
+
return "COMMENT_TYPE_PULL_REQUEST_CLOSED";
|
|
123
|
+
case CommentType.COMMENT_TYPE_PULL_REQUEST_OPENED:
|
|
124
|
+
return "COMMENT_TYPE_PULL_REQUEST_OPENED";
|
|
125
|
+
case CommentType.COMMENT_TYPE_PULL_REQUEST_MERGED:
|
|
126
|
+
return "COMMENT_TYPE_PULL_REQUEST_MERGED";
|
|
127
|
+
case CommentType.COMMENT_TYPE_REVIEW:
|
|
128
|
+
return "COMMENT_TYPE_REVIEW";
|
|
129
|
+
case CommentType.COMMENT_TYPE_ADD_BOUNTY:
|
|
130
|
+
return "COMMENT_TYPE_ADD_BOUNTY";
|
|
131
|
+
case CommentType.COMMENT_TYPE_MODIFIED_BOUNTY:
|
|
132
|
+
return "COMMENT_TYPE_MODIFIED_BOUNTY";
|
|
133
|
+
case CommentType.COMMENT_TYPE_CLOSED_BOUNTY:
|
|
134
|
+
return "COMMENT_TYPE_CLOSED_BOUNTY";
|
|
135
|
+
case CommentType.UNRECOGNIZED:
|
|
136
|
+
default:
|
|
137
|
+
return "UNRECOGNIZED";
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export var CommentParent;
|
|
141
|
+
(function (CommentParent) {
|
|
142
|
+
CommentParent[CommentParent["COMMENT_PARENT_NONE"] = 0] = "COMMENT_PARENT_NONE";
|
|
143
|
+
CommentParent[CommentParent["COMMENT_PARENT_ISSUE"] = 1] = "COMMENT_PARENT_ISSUE";
|
|
144
|
+
CommentParent[CommentParent["COMMENT_PARENT_PULL_REQUEST"] = 2] = "COMMENT_PARENT_PULL_REQUEST";
|
|
145
|
+
CommentParent[CommentParent["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
146
|
+
})(CommentParent || (CommentParent = {}));
|
|
147
|
+
export const CommentParentSDKType = CommentParent;
|
|
148
|
+
export const CommentParentAmino = CommentParent;
|
|
149
|
+
export function commentParentFromJSON(object) {
|
|
150
|
+
switch (object) {
|
|
151
|
+
case 0:
|
|
152
|
+
case "COMMENT_PARENT_NONE":
|
|
153
|
+
return CommentParent.COMMENT_PARENT_NONE;
|
|
154
|
+
case 1:
|
|
155
|
+
case "COMMENT_PARENT_ISSUE":
|
|
156
|
+
return CommentParent.COMMENT_PARENT_ISSUE;
|
|
157
|
+
case 2:
|
|
158
|
+
case "COMMENT_PARENT_PULL_REQUEST":
|
|
159
|
+
return CommentParent.COMMENT_PARENT_PULL_REQUEST;
|
|
160
|
+
case -1:
|
|
161
|
+
case "UNRECOGNIZED":
|
|
162
|
+
default:
|
|
163
|
+
return CommentParent.UNRECOGNIZED;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
export function commentParentToJSON(object) {
|
|
167
|
+
switch (object) {
|
|
168
|
+
case CommentParent.COMMENT_PARENT_NONE:
|
|
169
|
+
return "COMMENT_PARENT_NONE";
|
|
170
|
+
case CommentParent.COMMENT_PARENT_ISSUE:
|
|
171
|
+
return "COMMENT_PARENT_ISSUE";
|
|
172
|
+
case CommentParent.COMMENT_PARENT_PULL_REQUEST:
|
|
173
|
+
return "COMMENT_PARENT_PULL_REQUEST";
|
|
174
|
+
case CommentParent.UNRECOGNIZED:
|
|
175
|
+
default:
|
|
176
|
+
return "UNRECOGNIZED";
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function createBaseComment() {
|
|
180
|
+
return {
|
|
181
|
+
creator: "",
|
|
182
|
+
id: BigInt(0),
|
|
183
|
+
repositoryId: BigInt(0),
|
|
184
|
+
parentIid: BigInt(0),
|
|
185
|
+
parent: 0,
|
|
186
|
+
commentIid: BigInt(0),
|
|
187
|
+
body: "",
|
|
188
|
+
attachments: [],
|
|
189
|
+
diffHunk: "",
|
|
190
|
+
path: "",
|
|
191
|
+
position: BigInt(0),
|
|
192
|
+
system: false,
|
|
193
|
+
authorAssociation: "",
|
|
194
|
+
createdAt: BigInt(0),
|
|
195
|
+
updatedAt: BigInt(0),
|
|
196
|
+
commentType: 0,
|
|
197
|
+
resolved: false,
|
|
198
|
+
replies: [],
|
|
199
|
+
reactions: [],
|
|
200
|
+
hidden: false
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
export const Comment = {
|
|
204
|
+
typeUrl: "/gitopia.gitopia.gitopia.Comment",
|
|
205
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
206
|
+
if (message.creator !== "") {
|
|
207
|
+
writer.uint32(10).string(message.creator);
|
|
208
|
+
}
|
|
209
|
+
if (message.id !== BigInt(0)) {
|
|
210
|
+
writer.uint32(16).uint64(message.id);
|
|
211
|
+
}
|
|
212
|
+
if (message.repositoryId !== BigInt(0)) {
|
|
213
|
+
writer.uint32(24).uint64(message.repositoryId);
|
|
214
|
+
}
|
|
215
|
+
if (message.parentIid !== BigInt(0)) {
|
|
216
|
+
writer.uint32(32).uint64(message.parentIid);
|
|
217
|
+
}
|
|
218
|
+
if (message.parent !== 0) {
|
|
219
|
+
writer.uint32(40).int32(message.parent);
|
|
220
|
+
}
|
|
221
|
+
if (message.commentIid !== BigInt(0)) {
|
|
222
|
+
writer.uint32(48).uint64(message.commentIid);
|
|
223
|
+
}
|
|
224
|
+
if (message.body !== "") {
|
|
225
|
+
writer.uint32(58).string(message.body);
|
|
226
|
+
}
|
|
227
|
+
for (const v of message.attachments) {
|
|
228
|
+
Attachment.encode(v, writer.uint32(66).fork()).ldelim();
|
|
229
|
+
}
|
|
230
|
+
if (message.diffHunk !== "") {
|
|
231
|
+
writer.uint32(74).string(message.diffHunk);
|
|
232
|
+
}
|
|
233
|
+
if (message.path !== "") {
|
|
234
|
+
writer.uint32(82).string(message.path);
|
|
235
|
+
}
|
|
236
|
+
if (message.position !== BigInt(0)) {
|
|
237
|
+
writer.uint32(88).uint64(message.position);
|
|
238
|
+
}
|
|
239
|
+
if (message.system === true) {
|
|
240
|
+
writer.uint32(96).bool(message.system);
|
|
241
|
+
}
|
|
242
|
+
if (message.authorAssociation !== "") {
|
|
243
|
+
writer.uint32(106).string(message.authorAssociation);
|
|
244
|
+
}
|
|
245
|
+
if (message.createdAt !== BigInt(0)) {
|
|
246
|
+
writer.uint32(112).int64(message.createdAt);
|
|
247
|
+
}
|
|
248
|
+
if (message.updatedAt !== BigInt(0)) {
|
|
249
|
+
writer.uint32(120).int64(message.updatedAt);
|
|
250
|
+
}
|
|
251
|
+
if (message.commentType !== 0) {
|
|
252
|
+
writer.uint32(128).int32(message.commentType);
|
|
253
|
+
}
|
|
254
|
+
if (message.resolved === true) {
|
|
255
|
+
writer.uint32(136).bool(message.resolved);
|
|
256
|
+
}
|
|
257
|
+
writer.uint32(146).fork();
|
|
258
|
+
for (const v of message.replies) {
|
|
259
|
+
writer.uint64(v);
|
|
260
|
+
}
|
|
261
|
+
writer.ldelim();
|
|
262
|
+
for (const v of message.reactions) {
|
|
263
|
+
Reaction.encode(v, writer.uint32(154).fork()).ldelim();
|
|
264
|
+
}
|
|
265
|
+
if (message.hidden === true) {
|
|
266
|
+
writer.uint32(160).bool(message.hidden);
|
|
267
|
+
}
|
|
268
|
+
return writer;
|
|
269
|
+
},
|
|
270
|
+
decode(input, length) {
|
|
271
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
272
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
+
const message = createBaseComment();
|
|
274
|
+
while (reader.pos < end) {
|
|
275
|
+
const tag = reader.uint32();
|
|
276
|
+
switch (tag >>> 3) {
|
|
277
|
+
case 1:
|
|
278
|
+
message.creator = reader.string();
|
|
279
|
+
break;
|
|
280
|
+
case 2:
|
|
281
|
+
message.id = reader.uint64();
|
|
282
|
+
break;
|
|
283
|
+
case 3:
|
|
284
|
+
message.repositoryId = reader.uint64();
|
|
285
|
+
break;
|
|
286
|
+
case 4:
|
|
287
|
+
message.parentIid = reader.uint64();
|
|
288
|
+
break;
|
|
289
|
+
case 5:
|
|
290
|
+
message.parent = reader.int32();
|
|
291
|
+
break;
|
|
292
|
+
case 6:
|
|
293
|
+
message.commentIid = reader.uint64();
|
|
294
|
+
break;
|
|
295
|
+
case 7:
|
|
296
|
+
message.body = reader.string();
|
|
297
|
+
break;
|
|
298
|
+
case 8:
|
|
299
|
+
message.attachments.push(Attachment.decode(reader, reader.uint32()));
|
|
300
|
+
break;
|
|
301
|
+
case 9:
|
|
302
|
+
message.diffHunk = reader.string();
|
|
303
|
+
break;
|
|
304
|
+
case 10:
|
|
305
|
+
message.path = reader.string();
|
|
306
|
+
break;
|
|
307
|
+
case 11:
|
|
308
|
+
message.position = reader.uint64();
|
|
309
|
+
break;
|
|
310
|
+
case 12:
|
|
311
|
+
message.system = reader.bool();
|
|
312
|
+
break;
|
|
313
|
+
case 13:
|
|
314
|
+
message.authorAssociation = reader.string();
|
|
315
|
+
break;
|
|
316
|
+
case 14:
|
|
317
|
+
message.createdAt = reader.int64();
|
|
318
|
+
break;
|
|
319
|
+
case 15:
|
|
320
|
+
message.updatedAt = reader.int64();
|
|
321
|
+
break;
|
|
322
|
+
case 16:
|
|
323
|
+
message.commentType = reader.int32();
|
|
324
|
+
break;
|
|
325
|
+
case 17:
|
|
326
|
+
message.resolved = reader.bool();
|
|
327
|
+
break;
|
|
328
|
+
case 18:
|
|
329
|
+
if ((tag & 7) === 2) {
|
|
330
|
+
const end2 = reader.uint32() + reader.pos;
|
|
331
|
+
while (reader.pos < end2) {
|
|
332
|
+
message.replies.push(reader.uint64());
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
message.replies.push(reader.uint64());
|
|
337
|
+
}
|
|
338
|
+
break;
|
|
339
|
+
case 19:
|
|
340
|
+
message.reactions.push(Reaction.decode(reader, reader.uint32()));
|
|
341
|
+
break;
|
|
342
|
+
case 20:
|
|
343
|
+
message.hidden = reader.bool();
|
|
344
|
+
break;
|
|
345
|
+
default:
|
|
346
|
+
reader.skipType(tag & 7);
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return message;
|
|
351
|
+
},
|
|
352
|
+
fromPartial(object) {
|
|
353
|
+
const message = createBaseComment();
|
|
354
|
+
message.creator = object.creator ?? "";
|
|
355
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
356
|
+
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
357
|
+
message.parentIid = object.parentIid !== undefined && object.parentIid !== null ? BigInt(object.parentIid.toString()) : BigInt(0);
|
|
358
|
+
message.parent = object.parent ?? 0;
|
|
359
|
+
message.commentIid = object.commentIid !== undefined && object.commentIid !== null ? BigInt(object.commentIid.toString()) : BigInt(0);
|
|
360
|
+
message.body = object.body ?? "";
|
|
361
|
+
message.attachments = object.attachments?.map(e => Attachment.fromPartial(e)) || [];
|
|
362
|
+
message.diffHunk = object.diffHunk ?? "";
|
|
363
|
+
message.path = object.path ?? "";
|
|
364
|
+
message.position = object.position !== undefined && object.position !== null ? BigInt(object.position.toString()) : BigInt(0);
|
|
365
|
+
message.system = object.system ?? false;
|
|
366
|
+
message.authorAssociation = object.authorAssociation ?? "";
|
|
367
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
368
|
+
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
369
|
+
message.commentType = object.commentType ?? 0;
|
|
370
|
+
message.resolved = object.resolved ?? false;
|
|
371
|
+
message.replies = object.replies?.map(e => BigInt(e.toString())) || [];
|
|
372
|
+
message.reactions = object.reactions?.map(e => Reaction.fromPartial(e)) || [];
|
|
373
|
+
message.hidden = object.hidden ?? false;
|
|
374
|
+
return message;
|
|
375
|
+
},
|
|
376
|
+
fromAmino(object) {
|
|
377
|
+
const message = createBaseComment();
|
|
378
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
379
|
+
message.creator = object.creator;
|
|
380
|
+
}
|
|
381
|
+
if (object.id !== undefined && object.id !== null) {
|
|
382
|
+
message.id = BigInt(object.id);
|
|
383
|
+
}
|
|
384
|
+
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
385
|
+
message.repositoryId = BigInt(object.repositoryId);
|
|
386
|
+
}
|
|
387
|
+
if (object.parentIid !== undefined && object.parentIid !== null) {
|
|
388
|
+
message.parentIid = BigInt(object.parentIid);
|
|
389
|
+
}
|
|
390
|
+
if (object.parent !== undefined && object.parent !== null) {
|
|
391
|
+
message.parent = object.parent;
|
|
392
|
+
}
|
|
393
|
+
if (object.commentIid !== undefined && object.commentIid !== null) {
|
|
394
|
+
message.commentIid = BigInt(object.commentIid);
|
|
395
|
+
}
|
|
396
|
+
if (object.body !== undefined && object.body !== null) {
|
|
397
|
+
message.body = object.body;
|
|
398
|
+
}
|
|
399
|
+
message.attachments = object.attachments?.map(e => Attachment.fromAmino(e)) || [];
|
|
400
|
+
if (object.diffHunk !== undefined && object.diffHunk !== null) {
|
|
401
|
+
message.diffHunk = object.diffHunk;
|
|
402
|
+
}
|
|
403
|
+
if (object.path !== undefined && object.path !== null) {
|
|
404
|
+
message.path = object.path;
|
|
405
|
+
}
|
|
406
|
+
if (object.position !== undefined && object.position !== null) {
|
|
407
|
+
message.position = BigInt(object.position);
|
|
408
|
+
}
|
|
409
|
+
if (object.system !== undefined && object.system !== null) {
|
|
410
|
+
message.system = object.system;
|
|
411
|
+
}
|
|
412
|
+
if (object.authorAssociation !== undefined && object.authorAssociation !== null) {
|
|
413
|
+
message.authorAssociation = object.authorAssociation;
|
|
414
|
+
}
|
|
415
|
+
if (object.createdAt !== undefined && object.createdAt !== null) {
|
|
416
|
+
message.createdAt = BigInt(object.createdAt);
|
|
417
|
+
}
|
|
418
|
+
if (object.updatedAt !== undefined && object.updatedAt !== null) {
|
|
419
|
+
message.updatedAt = BigInt(object.updatedAt);
|
|
420
|
+
}
|
|
421
|
+
if (object.commentType !== undefined && object.commentType !== null) {
|
|
422
|
+
message.commentType = object.commentType;
|
|
423
|
+
}
|
|
424
|
+
if (object.resolved !== undefined && object.resolved !== null) {
|
|
425
|
+
message.resolved = object.resolved;
|
|
426
|
+
}
|
|
427
|
+
message.replies = object.replies?.map(e => BigInt(e)) || [];
|
|
428
|
+
message.reactions = object.reactions?.map(e => Reaction.fromAmino(e)) || [];
|
|
429
|
+
if (object.hidden !== undefined && object.hidden !== null) {
|
|
430
|
+
message.hidden = object.hidden;
|
|
431
|
+
}
|
|
432
|
+
return message;
|
|
433
|
+
},
|
|
434
|
+
toAmino(message) {
|
|
435
|
+
const obj = {};
|
|
436
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
437
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
438
|
+
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
439
|
+
obj.parentIid = message.parentIid !== BigInt(0) ? message.parentIid?.toString() : undefined;
|
|
440
|
+
obj.parent = message.parent === 0 ? undefined : message.parent;
|
|
441
|
+
obj.commentIid = message.commentIid !== BigInt(0) ? message.commentIid?.toString() : undefined;
|
|
442
|
+
obj.body = message.body === "" ? undefined : message.body;
|
|
443
|
+
if (message.attachments) {
|
|
444
|
+
obj.attachments = message.attachments.map(e => e ? Attachment.toAmino(e) : undefined);
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
obj.attachments = message.attachments;
|
|
448
|
+
}
|
|
449
|
+
obj.diffHunk = message.diffHunk === "" ? undefined : message.diffHunk;
|
|
450
|
+
obj.path = message.path === "" ? undefined : message.path;
|
|
451
|
+
obj.position = message.position !== BigInt(0) ? message.position?.toString() : undefined;
|
|
452
|
+
obj.system = message.system === false ? undefined : message.system;
|
|
453
|
+
obj.authorAssociation = message.authorAssociation === "" ? undefined : message.authorAssociation;
|
|
454
|
+
obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
455
|
+
obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
456
|
+
obj.commentType = message.commentType === 0 ? undefined : message.commentType;
|
|
457
|
+
obj.resolved = message.resolved === false ? undefined : message.resolved;
|
|
458
|
+
if (message.replies) {
|
|
459
|
+
obj.replies = message.replies.map(e => e.toString());
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
obj.replies = message.replies;
|
|
463
|
+
}
|
|
464
|
+
if (message.reactions) {
|
|
465
|
+
obj.reactions = message.reactions.map(e => e ? Reaction.toAmino(e) : undefined);
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
obj.reactions = message.reactions;
|
|
469
|
+
}
|
|
470
|
+
obj.hidden = message.hidden === false ? undefined : message.hidden;
|
|
471
|
+
return obj;
|
|
472
|
+
},
|
|
473
|
+
fromAminoMsg(object) {
|
|
474
|
+
return Comment.fromAmino(object.value);
|
|
475
|
+
},
|
|
476
|
+
fromProtoMsg(message) {
|
|
477
|
+
return Comment.decode(message.value);
|
|
478
|
+
},
|
|
479
|
+
toProto(message) {
|
|
480
|
+
return Comment.encode(message).finish();
|
|
481
|
+
},
|
|
482
|
+
toProtoMsg(message) {
|
|
483
|
+
return {
|
|
484
|
+
typeUrl: "/gitopia.gitopia.gitopia.Comment",
|
|
485
|
+
value: Comment.encode(message).finish()
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
};
|