@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,565 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { IssueIid } from "./repository";
|
|
3
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
-
export var PullRequest_State;
|
|
5
|
-
(function (PullRequest_State) {
|
|
6
|
-
PullRequest_State[PullRequest_State["OPEN"] = 0] = "OPEN";
|
|
7
|
-
PullRequest_State[PullRequest_State["CLOSED"] = 1] = "CLOSED";
|
|
8
|
-
PullRequest_State[PullRequest_State["MERGED"] = 2] = "MERGED";
|
|
9
|
-
PullRequest_State[PullRequest_State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
10
|
-
})(PullRequest_State || (PullRequest_State = {}));
|
|
11
|
-
export const PullRequest_StateSDKType = PullRequest_State;
|
|
12
|
-
export const PullRequest_StateAmino = PullRequest_State;
|
|
13
|
-
export function pullRequest_StateFromJSON(object) {
|
|
14
|
-
switch (object) {
|
|
15
|
-
case 0:
|
|
16
|
-
case "OPEN":
|
|
17
|
-
return PullRequest_State.OPEN;
|
|
18
|
-
case 1:
|
|
19
|
-
case "CLOSED":
|
|
20
|
-
return PullRequest_State.CLOSED;
|
|
21
|
-
case 2:
|
|
22
|
-
case "MERGED":
|
|
23
|
-
return PullRequest_State.MERGED;
|
|
24
|
-
case -1:
|
|
25
|
-
case "UNRECOGNIZED":
|
|
26
|
-
default:
|
|
27
|
-
return PullRequest_State.UNRECOGNIZED;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export function pullRequest_StateToJSON(object) {
|
|
31
|
-
switch (object) {
|
|
32
|
-
case PullRequest_State.OPEN:
|
|
33
|
-
return "OPEN";
|
|
34
|
-
case PullRequest_State.CLOSED:
|
|
35
|
-
return "CLOSED";
|
|
36
|
-
case PullRequest_State.MERGED:
|
|
37
|
-
return "MERGED";
|
|
38
|
-
case PullRequest_State.UNRECOGNIZED:
|
|
39
|
-
default:
|
|
40
|
-
return "UNRECOGNIZED";
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function createBasePullRequest() {
|
|
44
|
-
return {
|
|
45
|
-
creator: "",
|
|
46
|
-
id: BigInt(0),
|
|
47
|
-
iid: BigInt(0),
|
|
48
|
-
title: "",
|
|
49
|
-
state: 0,
|
|
50
|
-
description: "",
|
|
51
|
-
locked: false,
|
|
52
|
-
commentsCount: BigInt(0),
|
|
53
|
-
issues: [],
|
|
54
|
-
labels: [],
|
|
55
|
-
assignees: [],
|
|
56
|
-
reviewers: [],
|
|
57
|
-
draft: false,
|
|
58
|
-
createdAt: BigInt(0),
|
|
59
|
-
updatedAt: BigInt(0),
|
|
60
|
-
closedAt: BigInt(0),
|
|
61
|
-
closedBy: "",
|
|
62
|
-
mergedAt: BigInt(0),
|
|
63
|
-
mergedBy: "",
|
|
64
|
-
mergeCommitSha: "",
|
|
65
|
-
maintainerCanModify: false,
|
|
66
|
-
head: undefined,
|
|
67
|
-
base: undefined
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export const PullRequest = {
|
|
71
|
-
typeUrl: "/gitopia.gitopia.gitopia.PullRequest",
|
|
72
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
73
|
-
if (message.creator !== "") {
|
|
74
|
-
writer.uint32(10).string(message.creator);
|
|
75
|
-
}
|
|
76
|
-
if (message.id !== BigInt(0)) {
|
|
77
|
-
writer.uint32(16).uint64(message.id);
|
|
78
|
-
}
|
|
79
|
-
if (message.iid !== BigInt(0)) {
|
|
80
|
-
writer.uint32(24).uint64(message.iid);
|
|
81
|
-
}
|
|
82
|
-
if (message.title !== "") {
|
|
83
|
-
writer.uint32(34).string(message.title);
|
|
84
|
-
}
|
|
85
|
-
if (message.state !== 0) {
|
|
86
|
-
writer.uint32(40).int32(message.state);
|
|
87
|
-
}
|
|
88
|
-
if (message.description !== "") {
|
|
89
|
-
writer.uint32(50).string(message.description);
|
|
90
|
-
}
|
|
91
|
-
if (message.locked === true) {
|
|
92
|
-
writer.uint32(56).bool(message.locked);
|
|
93
|
-
}
|
|
94
|
-
if (message.commentsCount !== BigInt(0)) {
|
|
95
|
-
writer.uint32(64).uint64(message.commentsCount);
|
|
96
|
-
}
|
|
97
|
-
for (const v of message.issues) {
|
|
98
|
-
IssueIid.encode(v, writer.uint32(74).fork()).ldelim();
|
|
99
|
-
}
|
|
100
|
-
writer.uint32(82).fork();
|
|
101
|
-
for (const v of message.labels) {
|
|
102
|
-
writer.uint64(v);
|
|
103
|
-
}
|
|
104
|
-
writer.ldelim();
|
|
105
|
-
for (const v of message.assignees) {
|
|
106
|
-
writer.uint32(90).string(v);
|
|
107
|
-
}
|
|
108
|
-
for (const v of message.reviewers) {
|
|
109
|
-
writer.uint32(98).string(v);
|
|
110
|
-
}
|
|
111
|
-
if (message.draft === true) {
|
|
112
|
-
writer.uint32(104).bool(message.draft);
|
|
113
|
-
}
|
|
114
|
-
if (message.createdAt !== BigInt(0)) {
|
|
115
|
-
writer.uint32(112).int64(message.createdAt);
|
|
116
|
-
}
|
|
117
|
-
if (message.updatedAt !== BigInt(0)) {
|
|
118
|
-
writer.uint32(120).int64(message.updatedAt);
|
|
119
|
-
}
|
|
120
|
-
if (message.closedAt !== BigInt(0)) {
|
|
121
|
-
writer.uint32(128).int64(message.closedAt);
|
|
122
|
-
}
|
|
123
|
-
if (message.closedBy !== "") {
|
|
124
|
-
writer.uint32(138).string(message.closedBy);
|
|
125
|
-
}
|
|
126
|
-
if (message.mergedAt !== BigInt(0)) {
|
|
127
|
-
writer.uint32(144).int64(message.mergedAt);
|
|
128
|
-
}
|
|
129
|
-
if (message.mergedBy !== "") {
|
|
130
|
-
writer.uint32(154).string(message.mergedBy);
|
|
131
|
-
}
|
|
132
|
-
if (message.mergeCommitSha !== "") {
|
|
133
|
-
writer.uint32(162).string(message.mergeCommitSha);
|
|
134
|
-
}
|
|
135
|
-
if (message.maintainerCanModify === true) {
|
|
136
|
-
writer.uint32(168).bool(message.maintainerCanModify);
|
|
137
|
-
}
|
|
138
|
-
if (message.head !== undefined) {
|
|
139
|
-
PullRequestHead.encode(message.head, writer.uint32(178).fork()).ldelim();
|
|
140
|
-
}
|
|
141
|
-
if (message.base !== undefined) {
|
|
142
|
-
PullRequestBase.encode(message.base, writer.uint32(186).fork()).ldelim();
|
|
143
|
-
}
|
|
144
|
-
return writer;
|
|
145
|
-
},
|
|
146
|
-
decode(input, length) {
|
|
147
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
148
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
149
|
-
const message = createBasePullRequest();
|
|
150
|
-
while (reader.pos < end) {
|
|
151
|
-
const tag = reader.uint32();
|
|
152
|
-
switch (tag >>> 3) {
|
|
153
|
-
case 1:
|
|
154
|
-
message.creator = reader.string();
|
|
155
|
-
break;
|
|
156
|
-
case 2:
|
|
157
|
-
message.id = reader.uint64();
|
|
158
|
-
break;
|
|
159
|
-
case 3:
|
|
160
|
-
message.iid = reader.uint64();
|
|
161
|
-
break;
|
|
162
|
-
case 4:
|
|
163
|
-
message.title = reader.string();
|
|
164
|
-
break;
|
|
165
|
-
case 5:
|
|
166
|
-
message.state = reader.int32();
|
|
167
|
-
break;
|
|
168
|
-
case 6:
|
|
169
|
-
message.description = reader.string();
|
|
170
|
-
break;
|
|
171
|
-
case 7:
|
|
172
|
-
message.locked = reader.bool();
|
|
173
|
-
break;
|
|
174
|
-
case 8:
|
|
175
|
-
message.commentsCount = reader.uint64();
|
|
176
|
-
break;
|
|
177
|
-
case 9:
|
|
178
|
-
message.issues.push(IssueIid.decode(reader, reader.uint32()));
|
|
179
|
-
break;
|
|
180
|
-
case 10:
|
|
181
|
-
if ((tag & 7) === 2) {
|
|
182
|
-
const end2 = reader.uint32() + reader.pos;
|
|
183
|
-
while (reader.pos < end2) {
|
|
184
|
-
message.labels.push(reader.uint64());
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
message.labels.push(reader.uint64());
|
|
189
|
-
}
|
|
190
|
-
break;
|
|
191
|
-
case 11:
|
|
192
|
-
message.assignees.push(reader.string());
|
|
193
|
-
break;
|
|
194
|
-
case 12:
|
|
195
|
-
message.reviewers.push(reader.string());
|
|
196
|
-
break;
|
|
197
|
-
case 13:
|
|
198
|
-
message.draft = reader.bool();
|
|
199
|
-
break;
|
|
200
|
-
case 14:
|
|
201
|
-
message.createdAt = reader.int64();
|
|
202
|
-
break;
|
|
203
|
-
case 15:
|
|
204
|
-
message.updatedAt = reader.int64();
|
|
205
|
-
break;
|
|
206
|
-
case 16:
|
|
207
|
-
message.closedAt = reader.int64();
|
|
208
|
-
break;
|
|
209
|
-
case 17:
|
|
210
|
-
message.closedBy = reader.string();
|
|
211
|
-
break;
|
|
212
|
-
case 18:
|
|
213
|
-
message.mergedAt = reader.int64();
|
|
214
|
-
break;
|
|
215
|
-
case 19:
|
|
216
|
-
message.mergedBy = reader.string();
|
|
217
|
-
break;
|
|
218
|
-
case 20:
|
|
219
|
-
message.mergeCommitSha = reader.string();
|
|
220
|
-
break;
|
|
221
|
-
case 21:
|
|
222
|
-
message.maintainerCanModify = reader.bool();
|
|
223
|
-
break;
|
|
224
|
-
case 22:
|
|
225
|
-
message.head = PullRequestHead.decode(reader, reader.uint32());
|
|
226
|
-
break;
|
|
227
|
-
case 23:
|
|
228
|
-
message.base = PullRequestBase.decode(reader, reader.uint32());
|
|
229
|
-
break;
|
|
230
|
-
default:
|
|
231
|
-
reader.skipType(tag & 7);
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return message;
|
|
236
|
-
},
|
|
237
|
-
fromPartial(object) {
|
|
238
|
-
const message = createBasePullRequest();
|
|
239
|
-
message.creator = object.creator ?? "";
|
|
240
|
-
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
241
|
-
message.iid = object.iid !== undefined && object.iid !== null ? BigInt(object.iid.toString()) : BigInt(0);
|
|
242
|
-
message.title = object.title ?? "";
|
|
243
|
-
message.state = object.state ?? 0;
|
|
244
|
-
message.description = object.description ?? "";
|
|
245
|
-
message.locked = object.locked ?? false;
|
|
246
|
-
message.commentsCount = object.commentsCount !== undefined && object.commentsCount !== null ? BigInt(object.commentsCount.toString()) : BigInt(0);
|
|
247
|
-
message.issues = object.issues?.map(e => IssueIid.fromPartial(e)) || [];
|
|
248
|
-
message.labels = object.labels?.map(e => BigInt(e.toString())) || [];
|
|
249
|
-
message.assignees = object.assignees?.map(e => e) || [];
|
|
250
|
-
message.reviewers = object.reviewers?.map(e => e) || [];
|
|
251
|
-
message.draft = object.draft ?? false;
|
|
252
|
-
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
253
|
-
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
254
|
-
message.closedAt = object.closedAt !== undefined && object.closedAt !== null ? BigInt(object.closedAt.toString()) : BigInt(0);
|
|
255
|
-
message.closedBy = object.closedBy ?? "";
|
|
256
|
-
message.mergedAt = object.mergedAt !== undefined && object.mergedAt !== null ? BigInt(object.mergedAt.toString()) : BigInt(0);
|
|
257
|
-
message.mergedBy = object.mergedBy ?? "";
|
|
258
|
-
message.mergeCommitSha = object.mergeCommitSha ?? "";
|
|
259
|
-
message.maintainerCanModify = object.maintainerCanModify ?? false;
|
|
260
|
-
message.head = object.head !== undefined && object.head !== null ? PullRequestHead.fromPartial(object.head) : undefined;
|
|
261
|
-
message.base = object.base !== undefined && object.base !== null ? PullRequestBase.fromPartial(object.base) : undefined;
|
|
262
|
-
return message;
|
|
263
|
-
},
|
|
264
|
-
fromAmino(object) {
|
|
265
|
-
const message = createBasePullRequest();
|
|
266
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
267
|
-
message.creator = object.creator;
|
|
268
|
-
}
|
|
269
|
-
if (object.id !== undefined && object.id !== null) {
|
|
270
|
-
message.id = BigInt(object.id);
|
|
271
|
-
}
|
|
272
|
-
if (object.iid !== undefined && object.iid !== null) {
|
|
273
|
-
message.iid = BigInt(object.iid);
|
|
274
|
-
}
|
|
275
|
-
if (object.title !== undefined && object.title !== null) {
|
|
276
|
-
message.title = object.title;
|
|
277
|
-
}
|
|
278
|
-
if (object.state !== undefined && object.state !== null) {
|
|
279
|
-
message.state = object.state;
|
|
280
|
-
}
|
|
281
|
-
if (object.description !== undefined && object.description !== null) {
|
|
282
|
-
message.description = object.description;
|
|
283
|
-
}
|
|
284
|
-
if (object.locked !== undefined && object.locked !== null) {
|
|
285
|
-
message.locked = object.locked;
|
|
286
|
-
}
|
|
287
|
-
if (object.commentsCount !== undefined && object.commentsCount !== null) {
|
|
288
|
-
message.commentsCount = BigInt(object.commentsCount);
|
|
289
|
-
}
|
|
290
|
-
message.issues = object.issues?.map(e => IssueIid.fromAmino(e)) || [];
|
|
291
|
-
message.labels = object.labels?.map(e => BigInt(e)) || [];
|
|
292
|
-
message.assignees = object.assignees?.map(e => e) || [];
|
|
293
|
-
message.reviewers = object.reviewers?.map(e => e) || [];
|
|
294
|
-
if (object.draft !== undefined && object.draft !== null) {
|
|
295
|
-
message.draft = object.draft;
|
|
296
|
-
}
|
|
297
|
-
if (object.createdAt !== undefined && object.createdAt !== null) {
|
|
298
|
-
message.createdAt = BigInt(object.createdAt);
|
|
299
|
-
}
|
|
300
|
-
if (object.updatedAt !== undefined && object.updatedAt !== null) {
|
|
301
|
-
message.updatedAt = BigInt(object.updatedAt);
|
|
302
|
-
}
|
|
303
|
-
if (object.closedAt !== undefined && object.closedAt !== null) {
|
|
304
|
-
message.closedAt = BigInt(object.closedAt);
|
|
305
|
-
}
|
|
306
|
-
if (object.closedBy !== undefined && object.closedBy !== null) {
|
|
307
|
-
message.closedBy = object.closedBy;
|
|
308
|
-
}
|
|
309
|
-
if (object.mergedAt !== undefined && object.mergedAt !== null) {
|
|
310
|
-
message.mergedAt = BigInt(object.mergedAt);
|
|
311
|
-
}
|
|
312
|
-
if (object.mergedBy !== undefined && object.mergedBy !== null) {
|
|
313
|
-
message.mergedBy = object.mergedBy;
|
|
314
|
-
}
|
|
315
|
-
if (object.mergeCommitSha !== undefined && object.mergeCommitSha !== null) {
|
|
316
|
-
message.mergeCommitSha = object.mergeCommitSha;
|
|
317
|
-
}
|
|
318
|
-
if (object.maintainerCanModify !== undefined && object.maintainerCanModify !== null) {
|
|
319
|
-
message.maintainerCanModify = object.maintainerCanModify;
|
|
320
|
-
}
|
|
321
|
-
if (object.head !== undefined && object.head !== null) {
|
|
322
|
-
message.head = PullRequestHead.fromAmino(object.head);
|
|
323
|
-
}
|
|
324
|
-
if (object.base !== undefined && object.base !== null) {
|
|
325
|
-
message.base = PullRequestBase.fromAmino(object.base);
|
|
326
|
-
}
|
|
327
|
-
return message;
|
|
328
|
-
},
|
|
329
|
-
toAmino(message) {
|
|
330
|
-
const obj = {};
|
|
331
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
332
|
-
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
333
|
-
obj.iid = message.iid !== BigInt(0) ? message.iid?.toString() : undefined;
|
|
334
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
335
|
-
obj.state = message.state === 0 ? undefined : message.state;
|
|
336
|
-
obj.description = message.description === "" ? undefined : message.description;
|
|
337
|
-
obj.locked = message.locked === false ? undefined : message.locked;
|
|
338
|
-
obj.commentsCount = message.commentsCount !== BigInt(0) ? message.commentsCount?.toString() : undefined;
|
|
339
|
-
if (message.issues) {
|
|
340
|
-
obj.issues = message.issues.map(e => e ? IssueIid.toAmino(e) : undefined);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
obj.issues = message.issues;
|
|
344
|
-
}
|
|
345
|
-
if (message.labels) {
|
|
346
|
-
obj.labels = message.labels.map(e => e.toString());
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
obj.labels = message.labels;
|
|
350
|
-
}
|
|
351
|
-
if (message.assignees) {
|
|
352
|
-
obj.assignees = message.assignees.map(e => e);
|
|
353
|
-
}
|
|
354
|
-
else {
|
|
355
|
-
obj.assignees = message.assignees;
|
|
356
|
-
}
|
|
357
|
-
if (message.reviewers) {
|
|
358
|
-
obj.reviewers = message.reviewers.map(e => e);
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
361
|
-
obj.reviewers = message.reviewers;
|
|
362
|
-
}
|
|
363
|
-
obj.draft = message.draft === false ? undefined : message.draft;
|
|
364
|
-
obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
365
|
-
obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
366
|
-
obj.closedAt = message.closedAt !== BigInt(0) ? message.closedAt?.toString() : undefined;
|
|
367
|
-
obj.closedBy = message.closedBy === "" ? undefined : message.closedBy;
|
|
368
|
-
obj.mergedAt = message.mergedAt !== BigInt(0) ? message.mergedAt?.toString() : undefined;
|
|
369
|
-
obj.mergedBy = message.mergedBy === "" ? undefined : message.mergedBy;
|
|
370
|
-
obj.mergeCommitSha = message.mergeCommitSha === "" ? undefined : message.mergeCommitSha;
|
|
371
|
-
obj.maintainerCanModify = message.maintainerCanModify === false ? undefined : message.maintainerCanModify;
|
|
372
|
-
obj.head = message.head ? PullRequestHead.toAmino(message.head) : undefined;
|
|
373
|
-
obj.base = message.base ? PullRequestBase.toAmino(message.base) : undefined;
|
|
374
|
-
return obj;
|
|
375
|
-
},
|
|
376
|
-
fromAminoMsg(object) {
|
|
377
|
-
return PullRequest.fromAmino(object.value);
|
|
378
|
-
},
|
|
379
|
-
fromProtoMsg(message) {
|
|
380
|
-
return PullRequest.decode(message.value);
|
|
381
|
-
},
|
|
382
|
-
toProto(message) {
|
|
383
|
-
return PullRequest.encode(message).finish();
|
|
384
|
-
},
|
|
385
|
-
toProtoMsg(message) {
|
|
386
|
-
return {
|
|
387
|
-
typeUrl: "/gitopia.gitopia.gitopia.PullRequest",
|
|
388
|
-
value: PullRequest.encode(message).finish()
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
function createBasePullRequestHead() {
|
|
393
|
-
return {
|
|
394
|
-
repositoryId: BigInt(0),
|
|
395
|
-
branch: "",
|
|
396
|
-
commitSha: ""
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
export const PullRequestHead = {
|
|
400
|
-
typeUrl: "/gitopia.gitopia.gitopia.PullRequestHead",
|
|
401
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
402
|
-
if (message.repositoryId !== BigInt(0)) {
|
|
403
|
-
writer.uint32(8).uint64(message.repositoryId);
|
|
404
|
-
}
|
|
405
|
-
if (message.branch !== "") {
|
|
406
|
-
writer.uint32(18).string(message.branch);
|
|
407
|
-
}
|
|
408
|
-
if (message.commitSha !== "") {
|
|
409
|
-
writer.uint32(26).string(message.commitSha);
|
|
410
|
-
}
|
|
411
|
-
return writer;
|
|
412
|
-
},
|
|
413
|
-
decode(input, length) {
|
|
414
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
415
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
416
|
-
const message = createBasePullRequestHead();
|
|
417
|
-
while (reader.pos < end) {
|
|
418
|
-
const tag = reader.uint32();
|
|
419
|
-
switch (tag >>> 3) {
|
|
420
|
-
case 1:
|
|
421
|
-
message.repositoryId = reader.uint64();
|
|
422
|
-
break;
|
|
423
|
-
case 2:
|
|
424
|
-
message.branch = reader.string();
|
|
425
|
-
break;
|
|
426
|
-
case 3:
|
|
427
|
-
message.commitSha = reader.string();
|
|
428
|
-
break;
|
|
429
|
-
default:
|
|
430
|
-
reader.skipType(tag & 7);
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
return message;
|
|
435
|
-
},
|
|
436
|
-
fromPartial(object) {
|
|
437
|
-
const message = createBasePullRequestHead();
|
|
438
|
-
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
439
|
-
message.branch = object.branch ?? "";
|
|
440
|
-
message.commitSha = object.commitSha ?? "";
|
|
441
|
-
return message;
|
|
442
|
-
},
|
|
443
|
-
fromAmino(object) {
|
|
444
|
-
const message = createBasePullRequestHead();
|
|
445
|
-
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
446
|
-
message.repositoryId = BigInt(object.repositoryId);
|
|
447
|
-
}
|
|
448
|
-
if (object.branch !== undefined && object.branch !== null) {
|
|
449
|
-
message.branch = object.branch;
|
|
450
|
-
}
|
|
451
|
-
if (object.commitSha !== undefined && object.commitSha !== null) {
|
|
452
|
-
message.commitSha = object.commitSha;
|
|
453
|
-
}
|
|
454
|
-
return message;
|
|
455
|
-
},
|
|
456
|
-
toAmino(message) {
|
|
457
|
-
const obj = {};
|
|
458
|
-
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
459
|
-
obj.branch = message.branch === "" ? undefined : message.branch;
|
|
460
|
-
obj.commitSha = message.commitSha === "" ? undefined : message.commitSha;
|
|
461
|
-
return obj;
|
|
462
|
-
},
|
|
463
|
-
fromAminoMsg(object) {
|
|
464
|
-
return PullRequestHead.fromAmino(object.value);
|
|
465
|
-
},
|
|
466
|
-
fromProtoMsg(message) {
|
|
467
|
-
return PullRequestHead.decode(message.value);
|
|
468
|
-
},
|
|
469
|
-
toProto(message) {
|
|
470
|
-
return PullRequestHead.encode(message).finish();
|
|
471
|
-
},
|
|
472
|
-
toProtoMsg(message) {
|
|
473
|
-
return {
|
|
474
|
-
typeUrl: "/gitopia.gitopia.gitopia.PullRequestHead",
|
|
475
|
-
value: PullRequestHead.encode(message).finish()
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
function createBasePullRequestBase() {
|
|
480
|
-
return {
|
|
481
|
-
repositoryId: BigInt(0),
|
|
482
|
-
branch: "",
|
|
483
|
-
commitSha: ""
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
export const PullRequestBase = {
|
|
487
|
-
typeUrl: "/gitopia.gitopia.gitopia.PullRequestBase",
|
|
488
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
489
|
-
if (message.repositoryId !== BigInt(0)) {
|
|
490
|
-
writer.uint32(8).uint64(message.repositoryId);
|
|
491
|
-
}
|
|
492
|
-
if (message.branch !== "") {
|
|
493
|
-
writer.uint32(18).string(message.branch);
|
|
494
|
-
}
|
|
495
|
-
if (message.commitSha !== "") {
|
|
496
|
-
writer.uint32(26).string(message.commitSha);
|
|
497
|
-
}
|
|
498
|
-
return writer;
|
|
499
|
-
},
|
|
500
|
-
decode(input, length) {
|
|
501
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
502
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
|
-
const message = createBasePullRequestBase();
|
|
504
|
-
while (reader.pos < end) {
|
|
505
|
-
const tag = reader.uint32();
|
|
506
|
-
switch (tag >>> 3) {
|
|
507
|
-
case 1:
|
|
508
|
-
message.repositoryId = reader.uint64();
|
|
509
|
-
break;
|
|
510
|
-
case 2:
|
|
511
|
-
message.branch = reader.string();
|
|
512
|
-
break;
|
|
513
|
-
case 3:
|
|
514
|
-
message.commitSha = reader.string();
|
|
515
|
-
break;
|
|
516
|
-
default:
|
|
517
|
-
reader.skipType(tag & 7);
|
|
518
|
-
break;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
return message;
|
|
522
|
-
},
|
|
523
|
-
fromPartial(object) {
|
|
524
|
-
const message = createBasePullRequestBase();
|
|
525
|
-
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
526
|
-
message.branch = object.branch ?? "";
|
|
527
|
-
message.commitSha = object.commitSha ?? "";
|
|
528
|
-
return message;
|
|
529
|
-
},
|
|
530
|
-
fromAmino(object) {
|
|
531
|
-
const message = createBasePullRequestBase();
|
|
532
|
-
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
533
|
-
message.repositoryId = BigInt(object.repositoryId);
|
|
534
|
-
}
|
|
535
|
-
if (object.branch !== undefined && object.branch !== null) {
|
|
536
|
-
message.branch = object.branch;
|
|
537
|
-
}
|
|
538
|
-
if (object.commitSha !== undefined && object.commitSha !== null) {
|
|
539
|
-
message.commitSha = object.commitSha;
|
|
540
|
-
}
|
|
541
|
-
return message;
|
|
542
|
-
},
|
|
543
|
-
toAmino(message) {
|
|
544
|
-
const obj = {};
|
|
545
|
-
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
546
|
-
obj.branch = message.branch === "" ? undefined : message.branch;
|
|
547
|
-
obj.commitSha = message.commitSha === "" ? undefined : message.commitSha;
|
|
548
|
-
return obj;
|
|
549
|
-
},
|
|
550
|
-
fromAminoMsg(object) {
|
|
551
|
-
return PullRequestBase.fromAmino(object.value);
|
|
552
|
-
},
|
|
553
|
-
fromProtoMsg(message) {
|
|
554
|
-
return PullRequestBase.decode(message.value);
|
|
555
|
-
},
|
|
556
|
-
toProto(message) {
|
|
557
|
-
return PullRequestBase.encode(message).finish();
|
|
558
|
-
},
|
|
559
|
-
toProtoMsg(message) {
|
|
560
|
-
return {
|
|
561
|
-
typeUrl: "/gitopia.gitopia.gitopia.PullRequestBase",
|
|
562
|
-
value: PullRequestBase.encode(message).finish()
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
};
|