@ottochain/sdk 0.2.0
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/README.md +305 -0
- package/dist/apps/contracts/index.d.ts +21 -0
- package/dist/apps/contracts/index.js +39 -0
- package/dist/apps/contracts/types.d.ts +24 -0
- package/dist/apps/contracts/types.js +48 -0
- package/dist/apps/identity/index.d.ts +22 -0
- package/dist/apps/identity/index.js +40 -0
- package/dist/apps/identity/types.d.ts +30 -0
- package/dist/apps/identity/types.js +53 -0
- package/dist/apps/index.d.ts +29 -0
- package/dist/apps/index.js +60 -0
- package/dist/apps/markets/index.d.ts +26 -0
- package/dist/apps/markets/index.js +46 -0
- package/dist/apps/markets/types.d.ts +185 -0
- package/dist/apps/markets/types.js +252 -0
- package/dist/apps/oracles/index.d.ts +26 -0
- package/dist/apps/oracles/index.js +46 -0
- package/dist/apps/oracles/types.d.ts +211 -0
- package/dist/apps/oracles/types.js +306 -0
- package/dist/cjs/apps/contracts/index.js +60 -0
- package/dist/cjs/apps/contracts/state-machines/contract.json +420 -0
- package/dist/cjs/apps/contracts/state-machines/escrow.json +426 -0
- package/dist/cjs/apps/contracts/types.js +48 -0
- package/dist/cjs/apps/corporate/index.js +112 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-board.json +1064 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-bylaws.json +751 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-committee.json +957 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-compliance.json +1293 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-entity.json +861 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-officers.json +843 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-proxy.json +783 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-resolution.json +1174 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-securities.json +1215 -0
- package/dist/cjs/apps/corporate/state-machines/corporate-shareholders.json +1298 -0
- package/dist/cjs/apps/corporate/types.js +44 -0
- package/dist/cjs/apps/governance/index.js +203 -0
- package/dist/cjs/apps/governance/state-machines/dao-multisig.json +711 -0
- package/dist/cjs/apps/governance/state-machines/dao-single.json +258 -0
- package/dist/cjs/apps/governance/state-machines/dao-threshold.json +660 -0
- package/dist/cjs/apps/governance/state-machines/dao-token.json +680 -0
- package/dist/cjs/apps/governance/state-machines/governance-constitution.json +401 -0
- package/dist/cjs/apps/governance/state-machines/governance-executive.json +441 -0
- package/dist/cjs/apps/governance/state-machines/governance-judiciary.json +626 -0
- package/dist/cjs/apps/governance/state-machines/governance-legislature.json +726 -0
- package/dist/cjs/apps/governance/state-machines/governance-simple.json +679 -0
- package/dist/cjs/apps/governance/types.js +42 -0
- package/dist/cjs/apps/identity/constants.js +58 -0
- package/dist/cjs/apps/identity/index.js +78 -0
- package/dist/cjs/apps/identity/state-machines/agent-identity.json +320 -0
- package/dist/cjs/apps/identity/types.js +53 -0
- package/dist/cjs/apps/index.js +58 -0
- package/dist/cjs/apps/markets/index.js +55 -0
- package/dist/cjs/apps/markets/state-machines/market-universal.json +354 -0
- package/dist/cjs/apps/markets/types.js +219 -0
- package/dist/cjs/apps/oracles/index.js +62 -0
- package/dist/cjs/apps/oracles/state-machines/oracle.json +452 -0
- package/dist/cjs/apps/oracles/types.js +282 -0
- package/dist/cjs/errors.js +293 -0
- package/dist/cjs/generated/google/protobuf/struct.js +514 -0
- package/dist/cjs/generated/google/protobuf/timestamp.js +92 -0
- package/dist/cjs/generated/index.js +150 -0
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract.js +873 -0
- package/dist/cjs/generated/ottochain/apps/contracts/v1/contract_pb.js +100 -0
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate.js +4515 -0
- package/dist/cjs/generated/ottochain/apps/corporate/v1/corporate_pb.js +392 -0
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance.js +3255 -0
- package/dist/cjs/generated/ottochain/apps/governance/v1/governance_pb.js +235 -0
- package/dist/cjs/generated/ottochain/apps/identity/v1/agent.js +619 -0
- package/dist/cjs/generated/ottochain/apps/identity/v1/agent_pb.js +116 -0
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation.js +780 -0
- package/dist/cjs/generated/ottochain/apps/identity/v1/attestation_pb.js +79 -0
- package/dist/cjs/generated/ottochain/apps/markets/v1/market.js +1261 -0
- package/dist/cjs/generated/ottochain/apps/markets/v1/market_pb.js +151 -0
- package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle.js +1223 -0
- package/dist/cjs/generated/ottochain/apps/oracles/v1/oracle_pb.js +109 -0
- package/dist/cjs/generated/ottochain/v1/common.js +10 -0
- package/dist/cjs/generated/ottochain/v1/common_pb.js +37 -0
- package/dist/cjs/generated/ottochain/v1/fiber.js +1057 -0
- package/dist/cjs/generated/ottochain/v1/fiber_pb.js +86 -0
- package/dist/cjs/generated/ottochain/v1/messages.js +740 -0
- package/dist/cjs/generated/ottochain/v1/messages_pb.js +44 -0
- package/dist/cjs/generated/ottochain/v1/records.js +1253 -0
- package/dist/cjs/generated/ottochain/v1/records_pb.js +44 -0
- package/dist/cjs/index.js +79 -0
- package/dist/cjs/metakit/binary.js +58 -0
- package/dist/cjs/metakit/canonicalize.js +40 -0
- package/dist/cjs/metakit/codec.js +45 -0
- package/dist/cjs/metakit/currency-transaction.js +319 -0
- package/dist/cjs/metakit/currency-types.js +13 -0
- package/dist/cjs/metakit/hash.js +84 -0
- package/dist/cjs/metakit/index.js +74 -0
- package/dist/cjs/metakit/network/client.js +78 -0
- package/dist/cjs/metakit/network/currency-l1-client.js +101 -0
- package/dist/cjs/metakit/network/data-l1-client.js +76 -0
- package/dist/cjs/metakit/network/index.js +16 -0
- package/dist/cjs/metakit/network/types.js +20 -0
- package/dist/cjs/metakit/sign.js +120 -0
- package/dist/cjs/metakit/signed-object.js +100 -0
- package/dist/cjs/metakit/types.js +14 -0
- package/dist/cjs/metakit/verify.js +217 -0
- package/dist/cjs/metakit/wallet.js +127 -0
- package/dist/cjs/ottochain/index.js +47 -0
- package/dist/cjs/ottochain/metagraph-client.js +157 -0
- package/dist/cjs/ottochain/snapshot.js +110 -0
- package/dist/cjs/ottochain/types.js +11 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/types.js +25 -0
- package/dist/cjs/validation.js +312 -0
- package/dist/errors.d.ts +221 -0
- package/dist/errors.js +293 -0
- package/dist/esm/apps/contracts/index.js +42 -0
- package/dist/esm/apps/contracts/state-machines/contract.json +420 -0
- package/dist/esm/apps/contracts/state-machines/escrow.json +426 -0
- package/dist/esm/apps/contracts/types.js +44 -0
- package/dist/esm/apps/corporate/index.js +57 -0
- package/dist/esm/apps/corporate/state-machines/corporate-board.json +1064 -0
- package/dist/esm/apps/corporate/state-machines/corporate-bylaws.json +751 -0
- package/dist/esm/apps/corporate/state-machines/corporate-committee.json +957 -0
- package/dist/esm/apps/corporate/state-machines/corporate-compliance.json +1293 -0
- package/dist/esm/apps/corporate/state-machines/corporate-entity.json +861 -0
- package/dist/esm/apps/corporate/state-machines/corporate-officers.json +843 -0
- package/dist/esm/apps/corporate/state-machines/corporate-proxy.json +783 -0
- package/dist/esm/apps/corporate/state-machines/corporate-resolution.json +1174 -0
- package/dist/esm/apps/corporate/state-machines/corporate-securities.json +1215 -0
- package/dist/esm/apps/corporate/state-machines/corporate-shareholders.json +1298 -0
- package/dist/esm/apps/corporate/types.js +38 -0
- package/dist/esm/apps/governance/index.js +154 -0
- package/dist/esm/apps/governance/state-machines/dao-multisig.json +711 -0
- package/dist/esm/apps/governance/state-machines/dao-single.json +258 -0
- package/dist/esm/apps/governance/state-machines/dao-threshold.json +660 -0
- package/dist/esm/apps/governance/state-machines/dao-token.json +680 -0
- package/dist/esm/apps/governance/state-machines/governance-constitution.json +401 -0
- package/dist/esm/apps/governance/state-machines/governance-executive.json +441 -0
- package/dist/esm/apps/governance/state-machines/governance-judiciary.json +626 -0
- package/dist/esm/apps/governance/state-machines/governance-legislature.json +726 -0
- package/dist/esm/apps/governance/state-machines/governance-simple.json +679 -0
- package/dist/esm/apps/governance/types.js +35 -0
- package/dist/esm/apps/identity/constants.js +53 -0
- package/dist/esm/apps/identity/index.js +50 -0
- package/dist/esm/apps/identity/state-machines/agent-identity.json +320 -0
- package/dist/esm/apps/identity/types.js +50 -0
- package/dist/esm/apps/index.js +32 -0
- package/dist/esm/apps/markets/index.js +34 -0
- package/dist/esm/apps/markets/state-machines/market-universal.json +354 -0
- package/dist/esm/apps/markets/types.js +206 -0
- package/dist/esm/apps/oracles/index.js +42 -0
- package/dist/esm/apps/oracles/state-machines/oracle.json +452 -0
- package/dist/esm/apps/oracles/types.js +267 -0
- package/dist/esm/errors.js +283 -0
- package/dist/esm/generated/google/protobuf/struct.js +508 -0
- package/dist/esm/generated/google/protobuf/timestamp.js +89 -0
- package/dist/esm/generated/index.js +26 -0
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract.js +867 -0
- package/dist/esm/generated/ottochain/apps/contracts/v1/contract_pb.js +97 -0
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate.js +4493 -0
- package/dist/esm/generated/ottochain/apps/corporate/v1/corporate_pb.js +389 -0
- package/dist/esm/generated/ottochain/apps/governance/v1/governance.js +3240 -0
- package/dist/esm/generated/ottochain/apps/governance/v1/governance_pb.js +232 -0
- package/dist/esm/generated/ottochain/apps/identity/v1/agent.js +610 -0
- package/dist/esm/generated/ottochain/apps/identity/v1/agent_pb.js +113 -0
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation.js +774 -0
- package/dist/esm/generated/ottochain/apps/identity/v1/attestation_pb.js +76 -0
- package/dist/esm/generated/ottochain/apps/markets/v1/market.js +1252 -0
- package/dist/esm/generated/ottochain/apps/markets/v1/market_pb.js +148 -0
- package/dist/esm/generated/ottochain/apps/oracles/v1/oracle.js +1217 -0
- package/dist/esm/generated/ottochain/apps/oracles/v1/oracle_pb.js +106 -0
- package/dist/esm/generated/ottochain/v1/common.js +7 -0
- package/dist/esm/generated/ottochain/v1/common_pb.js +34 -0
- package/dist/esm/generated/ottochain/v1/fiber.js +1051 -0
- package/dist/esm/generated/ottochain/v1/fiber_pb.js +83 -0
- package/dist/esm/generated/ottochain/v1/messages.js +737 -0
- package/dist/esm/generated/ottochain/v1/messages_pb.js +41 -0
- package/dist/esm/generated/ottochain/v1/records.js +1250 -0
- package/dist/esm/generated/ottochain/v1/records_pb.js +41 -0
- package/dist/esm/index.js +33 -0
- package/dist/esm/metakit/binary.js +53 -0
- package/dist/esm/metakit/canonicalize.js +33 -0
- package/dist/esm/metakit/codec.js +38 -0
- package/dist/esm/metakit/currency-transaction.js +306 -0
- package/dist/esm/metakit/currency-types.js +10 -0
- package/dist/esm/metakit/hash.js +77 -0
- package/dist/esm/metakit/index.js +30 -0
- package/dist/esm/metakit/network/client.js +74 -0
- package/dist/esm/metakit/network/currency-l1-client.js +97 -0
- package/dist/esm/metakit/network/data-l1-client.js +72 -0
- package/dist/esm/metakit/network/index.js +9 -0
- package/dist/esm/metakit/network/types.js +16 -0
- package/dist/esm/metakit/sign.js +114 -0
- package/dist/esm/metakit/signed-object.js +94 -0
- package/dist/esm/metakit/types.js +11 -0
- package/dist/esm/metakit/verify.js +210 -0
- package/dist/esm/metakit/wallet.js +117 -0
- package/dist/esm/ottochain/index.js +13 -0
- package/dist/esm/ottochain/metagraph-client.js +153 -0
- package/dist/esm/ottochain/snapshot.js +100 -0
- package/dist/esm/ottochain/types.js +10 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/types.js +20 -0
- package/dist/esm/validation.js +301 -0
- package/dist/generated/index.d.ts +15 -0
- package/dist/generated/index.js +34 -0
- package/dist/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +274 -0
- package/dist/generated/ottochain/apps/contracts/v1/contract_pb.js +100 -0
- package/dist/generated/ottochain/apps/identity/v1/agent_pb.d.ts +211 -0
- package/dist/generated/ottochain/apps/identity/v1/agent_pb.js +116 -0
- package/dist/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +238 -0
- package/dist/generated/ottochain/apps/identity/v1/attestation_pb.js +79 -0
- package/dist/generated/ottochain/apps/markets/v1/market_pb.d.ts +436 -0
- package/dist/generated/ottochain/apps/markets/v1/market_pb.js +151 -0
- package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +393 -0
- package/dist/generated/ottochain/apps/oracles/v1/oracle_pb.js +109 -0
- package/dist/generated/ottochain/v1/common_pb.d.ts +86 -0
- package/dist/generated/ottochain/v1/common_pb.js +37 -0
- package/dist/generated/ottochain/v1/fiber_pb.d.ts +292 -0
- package/dist/generated/ottochain/v1/fiber_pb.js +86 -0
- package/dist/generated/ottochain/v1/messages_pb.d.ts +190 -0
- package/dist/generated/ottochain/v1/messages_pb.js +44 -0
- package/dist/generated/ottochain/v1/records_pb.d.ts +221 -0
- package/dist/generated/ottochain/v1/records_pb.js +44 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +77 -0
- package/dist/metakit/binary.d.ts +38 -0
- package/dist/metakit/binary.js +58 -0
- package/dist/metakit/canonicalize.d.ts +26 -0
- package/dist/metakit/canonicalize.js +40 -0
- package/dist/metakit/codec.d.ts +16 -0
- package/dist/metakit/codec.js +45 -0
- package/dist/metakit/currency-transaction.d.ts +157 -0
- package/dist/metakit/currency-transaction.js +319 -0
- package/dist/metakit/currency-types.d.ts +55 -0
- package/dist/metakit/currency-types.js +13 -0
- package/dist/metakit/hash.d.ts +50 -0
- package/dist/metakit/hash.js +84 -0
- package/dist/metakit/index.d.ts +23 -0
- package/dist/metakit/index.js +74 -0
- package/dist/metakit/network/client.d.ts +23 -0
- package/dist/metakit/network/client.js +78 -0
- package/dist/metakit/network/currency-l1-client.d.ts +71 -0
- package/dist/metakit/network/currency-l1-client.js +101 -0
- package/dist/metakit/network/data-l1-client.d.ts +57 -0
- package/dist/metakit/network/data-l1-client.js +76 -0
- package/dist/metakit/network/index.d.ts +10 -0
- package/dist/metakit/network/index.js +16 -0
- package/dist/metakit/network/types.d.ts +74 -0
- package/dist/metakit/network/types.js +20 -0
- package/dist/metakit/sign.d.ts +65 -0
- package/dist/metakit/sign.js +120 -0
- package/dist/metakit/signed-object.d.ts +66 -0
- package/dist/metakit/signed-object.js +100 -0
- package/dist/metakit/types.d.ts +67 -0
- package/dist/metakit/types.js +14 -0
- package/dist/metakit/verify.d.ts +55 -0
- package/dist/metakit/verify.js +217 -0
- package/dist/metakit/wallet.d.ts +70 -0
- package/dist/metakit/wallet.js +127 -0
- package/dist/ottochain/index.d.ts +13 -0
- package/dist/ottochain/index.js +45 -0
- package/dist/ottochain/metagraph-client.d.ts +111 -0
- package/dist/ottochain/metagraph-client.js +157 -0
- package/dist/ottochain/snapshot.d.ts +86 -0
- package/dist/ottochain/snapshot.js +110 -0
- package/dist/ottochain/types.d.ts +278 -0
- package/dist/ottochain/types.js +11 -0
- package/dist/types/apps/contracts/index.d.ts +30 -0
- package/dist/types/apps/contracts/types.d.ts +24 -0
- package/dist/types/apps/corporate/index.d.ts +27 -0
- package/dist/types/apps/corporate/types.d.ts +9861 -0
- package/dist/types/apps/governance/index.d.ts +77 -0
- package/dist/types/apps/governance/types.d.ts +344 -0
- package/dist/types/apps/identity/constants.d.ts +27 -0
- package/dist/types/apps/identity/index.d.ts +39 -0
- package/dist/types/apps/identity/types.d.ts +30 -0
- package/dist/types/apps/index.d.ts +31 -0
- package/dist/types/apps/markets/index.d.ts +26 -0
- package/dist/types/apps/markets/types.d.ts +155 -0
- package/dist/types/apps/oracles/index.d.ts +34 -0
- package/dist/types/apps/oracles/types.d.ts +193 -0
- package/dist/types/errors.d.ts +221 -0
- package/dist/types/generated/google/protobuf/struct.d.ts +134 -0
- package/dist/types/generated/google/protobuf/timestamp.d.ts +134 -0
- package/dist/types/generated/index.d.ts +18 -0
- package/dist/types/generated/ottochain/apps/contracts/v1/contract.d.ts +112 -0
- package/dist/types/generated/ottochain/apps/contracts/v1/contract_pb.d.ts +274 -0
- package/dist/types/generated/ottochain/apps/corporate/v1/corporate.d.ts +376 -0
- package/dist/types/generated/ottochain/apps/corporate/v1/corporate_pb.d.ts +1172 -0
- package/dist/types/generated/ottochain/apps/governance/v1/governance.d.ts +296 -0
- package/dist/types/generated/ottochain/apps/governance/v1/governance_pb.d.ts +772 -0
- package/dist/types/generated/ottochain/apps/identity/v1/agent.d.ts +94 -0
- package/dist/types/generated/ottochain/apps/identity/v1/agent_pb.d.ts +211 -0
- package/dist/types/generated/ottochain/apps/identity/v1/attestation.d.ts +102 -0
- package/dist/types/generated/ottochain/apps/identity/v1/attestation_pb.d.ts +238 -0
- package/dist/types/generated/ottochain/apps/markets/v1/market.d.ts +174 -0
- package/dist/types/generated/ottochain/apps/markets/v1/market_pb.d.ts +436 -0
- package/dist/types/generated/ottochain/apps/oracles/v1/oracle.d.ts +150 -0
- package/dist/types/generated/ottochain/apps/oracles/v1/oracle_pb.d.ts +393 -0
- package/dist/types/generated/ottochain/v1/common.d.ts +1 -0
- package/dist/types/generated/ottochain/v1/common_pb.d.ts +86 -0
- package/dist/types/generated/ottochain/v1/fiber.d.ts +130 -0
- package/dist/types/generated/ottochain/v1/fiber_pb.d.ts +292 -0
- package/dist/types/generated/ottochain/v1/messages.d.ts +89 -0
- package/dist/types/generated/ottochain/v1/messages_pb.d.ts +190 -0
- package/dist/types/generated/ottochain/v1/records.d.ts +128 -0
- package/dist/types/generated/ottochain/v1/records_pb.d.ts +221 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/metakit/binary.d.ts +38 -0
- package/dist/types/metakit/canonicalize.d.ts +26 -0
- package/dist/types/metakit/codec.d.ts +16 -0
- package/dist/types/metakit/currency-transaction.d.ts +157 -0
- package/dist/types/metakit/currency-types.d.ts +55 -0
- package/dist/types/metakit/hash.d.ts +50 -0
- package/dist/types/metakit/index.d.ts +23 -0
- package/dist/types/metakit/network/client.d.ts +23 -0
- package/dist/types/metakit/network/currency-l1-client.d.ts +71 -0
- package/dist/types/metakit/network/data-l1-client.d.ts +57 -0
- package/dist/types/metakit/network/index.d.ts +10 -0
- package/dist/types/metakit/network/types.d.ts +74 -0
- package/dist/types/metakit/sign.d.ts +65 -0
- package/dist/types/metakit/signed-object.d.ts +66 -0
- package/dist/types/metakit/types.d.ts +67 -0
- package/dist/types/metakit/verify.d.ts +55 -0
- package/dist/types/metakit/wallet.d.ts +70 -0
- package/dist/types/ottochain/index.d.ts +13 -0
- package/dist/types/ottochain/metagraph-client.d.ts +111 -0
- package/dist/types/ottochain/snapshot.d.ts +86 -0
- package/dist/types/ottochain/types.d.ts +210 -0
- package/dist/types/types.d.ts +51 -0
- package/dist/types/validation.d.ts +449 -0
- package/dist/validation.d.ts +449 -0
- package/dist/validation.js +312 -0
- package/package.json +136 -0
|
@@ -0,0 +1,4515 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: ottochain/apps/corporate/v1/corporate.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SecurityTransfer = exports.SecurityIssuance = exports.CorporateSecurities = exports.ResolutionVote = exports.CorporateResolution = exports.ShareHolding = exports.Shareholder = exports.CorporateShareholders_VotingPowerEntry = exports.CorporateShareholders = exports.OfficerAction = exports.Officer = exports.CorporateOfficers = exports.MeetingAttendee = exports.BoardMeeting = exports.QuorumRules = exports.SeatInfo = exports.Director = exports.CorporateBoard = exports.ShareStructure = exports.Incorporator = exports.RegisteredAgent = exports.CorporateEntity = exports.ShareClass = exports.Address = exports.Jurisdiction = exports.resolutionStatusToNumber = exports.resolutionStatusToJSON = exports.resolutionStatusFromJSON = exports.ResolutionStatus = exports.boardMeetingTypeToNumber = exports.boardMeetingTypeToJSON = exports.boardMeetingTypeFromJSON = exports.BoardMeetingType = exports.officerStatusToNumber = exports.officerStatusToJSON = exports.officerStatusFromJSON = exports.OfficerStatus = exports.directorStatusToNumber = exports.directorStatusToJSON = exports.directorStatusFromJSON = exports.DirectorStatus = exports.entityStateToNumber = exports.entityStateToJSON = exports.entityStateFromJSON = exports.EntityState = exports.entityTypeToNumber = exports.entityTypeToJSON = exports.entityTypeFromJSON = exports.EntityType = exports.protobufPackage = void 0;
|
|
9
|
+
exports.ProposeResolutionRequest = exports.IssueSharesRequest = exports.AppointDirectorRequest = exports.CreateEntityRequest = exports.ComplianceRequirement = exports.FilingRecord = exports.CorporateCompliance = void 0;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
|
+
const timestamp_js_1 = require("../../../../google/protobuf/timestamp.js");
|
|
13
|
+
exports.protobufPackage = "ottochain.apps.corporate.v1";
|
|
14
|
+
/** Type of corporate entity */
|
|
15
|
+
var EntityType;
|
|
16
|
+
(function (EntityType) {
|
|
17
|
+
EntityType["ENTITY_TYPE_UNSPECIFIED"] = "ENTITY_TYPE_UNSPECIFIED";
|
|
18
|
+
/** ENTITY_TYPE_C_CORP - C Corporation */
|
|
19
|
+
EntityType["ENTITY_TYPE_C_CORP"] = "ENTITY_TYPE_C_CORP";
|
|
20
|
+
/** ENTITY_TYPE_S_CORP - S Corporation */
|
|
21
|
+
EntityType["ENTITY_TYPE_S_CORP"] = "ENTITY_TYPE_S_CORP";
|
|
22
|
+
/** ENTITY_TYPE_B_CORP - Benefit Corporation */
|
|
23
|
+
EntityType["ENTITY_TYPE_B_CORP"] = "ENTITY_TYPE_B_CORP";
|
|
24
|
+
/** ENTITY_TYPE_LLC - Limited Liability Company */
|
|
25
|
+
EntityType["ENTITY_TYPE_LLC"] = "ENTITY_TYPE_LLC";
|
|
26
|
+
/** ENTITY_TYPE_LP - Limited Partnership */
|
|
27
|
+
EntityType["ENTITY_TYPE_LP"] = "ENTITY_TYPE_LP";
|
|
28
|
+
/** ENTITY_TYPE_LLP - Limited Liability Partnership */
|
|
29
|
+
EntityType["ENTITY_TYPE_LLP"] = "ENTITY_TYPE_LLP";
|
|
30
|
+
EntityType["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
31
|
+
})(EntityType || (exports.EntityType = EntityType = {}));
|
|
32
|
+
function entityTypeFromJSON(object) {
|
|
33
|
+
switch (object) {
|
|
34
|
+
case 0:
|
|
35
|
+
case "ENTITY_TYPE_UNSPECIFIED":
|
|
36
|
+
return EntityType.ENTITY_TYPE_UNSPECIFIED;
|
|
37
|
+
case 1:
|
|
38
|
+
case "ENTITY_TYPE_C_CORP":
|
|
39
|
+
return EntityType.ENTITY_TYPE_C_CORP;
|
|
40
|
+
case 2:
|
|
41
|
+
case "ENTITY_TYPE_S_CORP":
|
|
42
|
+
return EntityType.ENTITY_TYPE_S_CORP;
|
|
43
|
+
case 3:
|
|
44
|
+
case "ENTITY_TYPE_B_CORP":
|
|
45
|
+
return EntityType.ENTITY_TYPE_B_CORP;
|
|
46
|
+
case 4:
|
|
47
|
+
case "ENTITY_TYPE_LLC":
|
|
48
|
+
return EntityType.ENTITY_TYPE_LLC;
|
|
49
|
+
case 5:
|
|
50
|
+
case "ENTITY_TYPE_LP":
|
|
51
|
+
return EntityType.ENTITY_TYPE_LP;
|
|
52
|
+
case 6:
|
|
53
|
+
case "ENTITY_TYPE_LLP":
|
|
54
|
+
return EntityType.ENTITY_TYPE_LLP;
|
|
55
|
+
case -1:
|
|
56
|
+
case "UNRECOGNIZED":
|
|
57
|
+
default:
|
|
58
|
+
return EntityType.UNRECOGNIZED;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.entityTypeFromJSON = entityTypeFromJSON;
|
|
62
|
+
function entityTypeToJSON(object) {
|
|
63
|
+
switch (object) {
|
|
64
|
+
case EntityType.ENTITY_TYPE_UNSPECIFIED:
|
|
65
|
+
return "ENTITY_TYPE_UNSPECIFIED";
|
|
66
|
+
case EntityType.ENTITY_TYPE_C_CORP:
|
|
67
|
+
return "ENTITY_TYPE_C_CORP";
|
|
68
|
+
case EntityType.ENTITY_TYPE_S_CORP:
|
|
69
|
+
return "ENTITY_TYPE_S_CORP";
|
|
70
|
+
case EntityType.ENTITY_TYPE_B_CORP:
|
|
71
|
+
return "ENTITY_TYPE_B_CORP";
|
|
72
|
+
case EntityType.ENTITY_TYPE_LLC:
|
|
73
|
+
return "ENTITY_TYPE_LLC";
|
|
74
|
+
case EntityType.ENTITY_TYPE_LP:
|
|
75
|
+
return "ENTITY_TYPE_LP";
|
|
76
|
+
case EntityType.ENTITY_TYPE_LLP:
|
|
77
|
+
return "ENTITY_TYPE_LLP";
|
|
78
|
+
case EntityType.UNRECOGNIZED:
|
|
79
|
+
default:
|
|
80
|
+
return "UNRECOGNIZED";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.entityTypeToJSON = entityTypeToJSON;
|
|
84
|
+
function entityTypeToNumber(object) {
|
|
85
|
+
switch (object) {
|
|
86
|
+
case EntityType.ENTITY_TYPE_UNSPECIFIED:
|
|
87
|
+
return 0;
|
|
88
|
+
case EntityType.ENTITY_TYPE_C_CORP:
|
|
89
|
+
return 1;
|
|
90
|
+
case EntityType.ENTITY_TYPE_S_CORP:
|
|
91
|
+
return 2;
|
|
92
|
+
case EntityType.ENTITY_TYPE_B_CORP:
|
|
93
|
+
return 3;
|
|
94
|
+
case EntityType.ENTITY_TYPE_LLC:
|
|
95
|
+
return 4;
|
|
96
|
+
case EntityType.ENTITY_TYPE_LP:
|
|
97
|
+
return 5;
|
|
98
|
+
case EntityType.ENTITY_TYPE_LLP:
|
|
99
|
+
return 6;
|
|
100
|
+
case EntityType.UNRECOGNIZED:
|
|
101
|
+
default:
|
|
102
|
+
return -1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.entityTypeToNumber = entityTypeToNumber;
|
|
106
|
+
/** Entity lifecycle state */
|
|
107
|
+
var EntityState;
|
|
108
|
+
(function (EntityState) {
|
|
109
|
+
EntityState["ENTITY_STATE_UNSPECIFIED"] = "ENTITY_STATE_UNSPECIFIED";
|
|
110
|
+
/** ENTITY_STATE_INCORPORATING - Formation in progress */
|
|
111
|
+
EntityState["ENTITY_STATE_INCORPORATING"] = "ENTITY_STATE_INCORPORATING";
|
|
112
|
+
/** ENTITY_STATE_ACTIVE - Good standing */
|
|
113
|
+
EntityState["ENTITY_STATE_ACTIVE"] = "ENTITY_STATE_ACTIVE";
|
|
114
|
+
/** ENTITY_STATE_SUSPENDED - Administrative suspension */
|
|
115
|
+
EntityState["ENTITY_STATE_SUSPENDED"] = "ENTITY_STATE_SUSPENDED";
|
|
116
|
+
/** ENTITY_STATE_DISSOLVED - Terminated */
|
|
117
|
+
EntityState["ENTITY_STATE_DISSOLVED"] = "ENTITY_STATE_DISSOLVED";
|
|
118
|
+
EntityState["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
119
|
+
})(EntityState || (exports.EntityState = EntityState = {}));
|
|
120
|
+
function entityStateFromJSON(object) {
|
|
121
|
+
switch (object) {
|
|
122
|
+
case 0:
|
|
123
|
+
case "ENTITY_STATE_UNSPECIFIED":
|
|
124
|
+
return EntityState.ENTITY_STATE_UNSPECIFIED;
|
|
125
|
+
case 1:
|
|
126
|
+
case "ENTITY_STATE_INCORPORATING":
|
|
127
|
+
return EntityState.ENTITY_STATE_INCORPORATING;
|
|
128
|
+
case 2:
|
|
129
|
+
case "ENTITY_STATE_ACTIVE":
|
|
130
|
+
return EntityState.ENTITY_STATE_ACTIVE;
|
|
131
|
+
case 3:
|
|
132
|
+
case "ENTITY_STATE_SUSPENDED":
|
|
133
|
+
return EntityState.ENTITY_STATE_SUSPENDED;
|
|
134
|
+
case 4:
|
|
135
|
+
case "ENTITY_STATE_DISSOLVED":
|
|
136
|
+
return EntityState.ENTITY_STATE_DISSOLVED;
|
|
137
|
+
case -1:
|
|
138
|
+
case "UNRECOGNIZED":
|
|
139
|
+
default:
|
|
140
|
+
return EntityState.UNRECOGNIZED;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.entityStateFromJSON = entityStateFromJSON;
|
|
144
|
+
function entityStateToJSON(object) {
|
|
145
|
+
switch (object) {
|
|
146
|
+
case EntityState.ENTITY_STATE_UNSPECIFIED:
|
|
147
|
+
return "ENTITY_STATE_UNSPECIFIED";
|
|
148
|
+
case EntityState.ENTITY_STATE_INCORPORATING:
|
|
149
|
+
return "ENTITY_STATE_INCORPORATING";
|
|
150
|
+
case EntityState.ENTITY_STATE_ACTIVE:
|
|
151
|
+
return "ENTITY_STATE_ACTIVE";
|
|
152
|
+
case EntityState.ENTITY_STATE_SUSPENDED:
|
|
153
|
+
return "ENTITY_STATE_SUSPENDED";
|
|
154
|
+
case EntityState.ENTITY_STATE_DISSOLVED:
|
|
155
|
+
return "ENTITY_STATE_DISSOLVED";
|
|
156
|
+
case EntityState.UNRECOGNIZED:
|
|
157
|
+
default:
|
|
158
|
+
return "UNRECOGNIZED";
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.entityStateToJSON = entityStateToJSON;
|
|
162
|
+
function entityStateToNumber(object) {
|
|
163
|
+
switch (object) {
|
|
164
|
+
case EntityState.ENTITY_STATE_UNSPECIFIED:
|
|
165
|
+
return 0;
|
|
166
|
+
case EntityState.ENTITY_STATE_INCORPORATING:
|
|
167
|
+
return 1;
|
|
168
|
+
case EntityState.ENTITY_STATE_ACTIVE:
|
|
169
|
+
return 2;
|
|
170
|
+
case EntityState.ENTITY_STATE_SUSPENDED:
|
|
171
|
+
return 3;
|
|
172
|
+
case EntityState.ENTITY_STATE_DISSOLVED:
|
|
173
|
+
return 4;
|
|
174
|
+
case EntityState.UNRECOGNIZED:
|
|
175
|
+
default:
|
|
176
|
+
return -1;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.entityStateToNumber = entityStateToNumber;
|
|
180
|
+
/** Director status */
|
|
181
|
+
var DirectorStatus;
|
|
182
|
+
(function (DirectorStatus) {
|
|
183
|
+
DirectorStatus["DIRECTOR_STATUS_UNSPECIFIED"] = "DIRECTOR_STATUS_UNSPECIFIED";
|
|
184
|
+
DirectorStatus["DIRECTOR_STATUS_ACTIVE"] = "DIRECTOR_STATUS_ACTIVE";
|
|
185
|
+
DirectorStatus["DIRECTOR_STATUS_RESIGNED"] = "DIRECTOR_STATUS_RESIGNED";
|
|
186
|
+
DirectorStatus["DIRECTOR_STATUS_REMOVED"] = "DIRECTOR_STATUS_REMOVED";
|
|
187
|
+
DirectorStatus["DIRECTOR_STATUS_TERM_EXPIRED"] = "DIRECTOR_STATUS_TERM_EXPIRED";
|
|
188
|
+
DirectorStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
189
|
+
})(DirectorStatus || (exports.DirectorStatus = DirectorStatus = {}));
|
|
190
|
+
function directorStatusFromJSON(object) {
|
|
191
|
+
switch (object) {
|
|
192
|
+
case 0:
|
|
193
|
+
case "DIRECTOR_STATUS_UNSPECIFIED":
|
|
194
|
+
return DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED;
|
|
195
|
+
case 1:
|
|
196
|
+
case "DIRECTOR_STATUS_ACTIVE":
|
|
197
|
+
return DirectorStatus.DIRECTOR_STATUS_ACTIVE;
|
|
198
|
+
case 2:
|
|
199
|
+
case "DIRECTOR_STATUS_RESIGNED":
|
|
200
|
+
return DirectorStatus.DIRECTOR_STATUS_RESIGNED;
|
|
201
|
+
case 3:
|
|
202
|
+
case "DIRECTOR_STATUS_REMOVED":
|
|
203
|
+
return DirectorStatus.DIRECTOR_STATUS_REMOVED;
|
|
204
|
+
case 4:
|
|
205
|
+
case "DIRECTOR_STATUS_TERM_EXPIRED":
|
|
206
|
+
return DirectorStatus.DIRECTOR_STATUS_TERM_EXPIRED;
|
|
207
|
+
case -1:
|
|
208
|
+
case "UNRECOGNIZED":
|
|
209
|
+
default:
|
|
210
|
+
return DirectorStatus.UNRECOGNIZED;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.directorStatusFromJSON = directorStatusFromJSON;
|
|
214
|
+
function directorStatusToJSON(object) {
|
|
215
|
+
switch (object) {
|
|
216
|
+
case DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED:
|
|
217
|
+
return "DIRECTOR_STATUS_UNSPECIFIED";
|
|
218
|
+
case DirectorStatus.DIRECTOR_STATUS_ACTIVE:
|
|
219
|
+
return "DIRECTOR_STATUS_ACTIVE";
|
|
220
|
+
case DirectorStatus.DIRECTOR_STATUS_RESIGNED:
|
|
221
|
+
return "DIRECTOR_STATUS_RESIGNED";
|
|
222
|
+
case DirectorStatus.DIRECTOR_STATUS_REMOVED:
|
|
223
|
+
return "DIRECTOR_STATUS_REMOVED";
|
|
224
|
+
case DirectorStatus.DIRECTOR_STATUS_TERM_EXPIRED:
|
|
225
|
+
return "DIRECTOR_STATUS_TERM_EXPIRED";
|
|
226
|
+
case DirectorStatus.UNRECOGNIZED:
|
|
227
|
+
default:
|
|
228
|
+
return "UNRECOGNIZED";
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.directorStatusToJSON = directorStatusToJSON;
|
|
232
|
+
function directorStatusToNumber(object) {
|
|
233
|
+
switch (object) {
|
|
234
|
+
case DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED:
|
|
235
|
+
return 0;
|
|
236
|
+
case DirectorStatus.DIRECTOR_STATUS_ACTIVE:
|
|
237
|
+
return 1;
|
|
238
|
+
case DirectorStatus.DIRECTOR_STATUS_RESIGNED:
|
|
239
|
+
return 2;
|
|
240
|
+
case DirectorStatus.DIRECTOR_STATUS_REMOVED:
|
|
241
|
+
return 3;
|
|
242
|
+
case DirectorStatus.DIRECTOR_STATUS_TERM_EXPIRED:
|
|
243
|
+
return 4;
|
|
244
|
+
case DirectorStatus.UNRECOGNIZED:
|
|
245
|
+
default:
|
|
246
|
+
return -1;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
exports.directorStatusToNumber = directorStatusToNumber;
|
|
250
|
+
/** Officer status */
|
|
251
|
+
var OfficerStatus;
|
|
252
|
+
(function (OfficerStatus) {
|
|
253
|
+
OfficerStatus["OFFICER_STATUS_UNSPECIFIED"] = "OFFICER_STATUS_UNSPECIFIED";
|
|
254
|
+
OfficerStatus["OFFICER_STATUS_ACTIVE"] = "OFFICER_STATUS_ACTIVE";
|
|
255
|
+
OfficerStatus["OFFICER_STATUS_RESIGNED"] = "OFFICER_STATUS_RESIGNED";
|
|
256
|
+
OfficerStatus["OFFICER_STATUS_REMOVED"] = "OFFICER_STATUS_REMOVED";
|
|
257
|
+
OfficerStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
258
|
+
})(OfficerStatus || (exports.OfficerStatus = OfficerStatus = {}));
|
|
259
|
+
function officerStatusFromJSON(object) {
|
|
260
|
+
switch (object) {
|
|
261
|
+
case 0:
|
|
262
|
+
case "OFFICER_STATUS_UNSPECIFIED":
|
|
263
|
+
return OfficerStatus.OFFICER_STATUS_UNSPECIFIED;
|
|
264
|
+
case 1:
|
|
265
|
+
case "OFFICER_STATUS_ACTIVE":
|
|
266
|
+
return OfficerStatus.OFFICER_STATUS_ACTIVE;
|
|
267
|
+
case 2:
|
|
268
|
+
case "OFFICER_STATUS_RESIGNED":
|
|
269
|
+
return OfficerStatus.OFFICER_STATUS_RESIGNED;
|
|
270
|
+
case 3:
|
|
271
|
+
case "OFFICER_STATUS_REMOVED":
|
|
272
|
+
return OfficerStatus.OFFICER_STATUS_REMOVED;
|
|
273
|
+
case -1:
|
|
274
|
+
case "UNRECOGNIZED":
|
|
275
|
+
default:
|
|
276
|
+
return OfficerStatus.UNRECOGNIZED;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
exports.officerStatusFromJSON = officerStatusFromJSON;
|
|
280
|
+
function officerStatusToJSON(object) {
|
|
281
|
+
switch (object) {
|
|
282
|
+
case OfficerStatus.OFFICER_STATUS_UNSPECIFIED:
|
|
283
|
+
return "OFFICER_STATUS_UNSPECIFIED";
|
|
284
|
+
case OfficerStatus.OFFICER_STATUS_ACTIVE:
|
|
285
|
+
return "OFFICER_STATUS_ACTIVE";
|
|
286
|
+
case OfficerStatus.OFFICER_STATUS_RESIGNED:
|
|
287
|
+
return "OFFICER_STATUS_RESIGNED";
|
|
288
|
+
case OfficerStatus.OFFICER_STATUS_REMOVED:
|
|
289
|
+
return "OFFICER_STATUS_REMOVED";
|
|
290
|
+
case OfficerStatus.UNRECOGNIZED:
|
|
291
|
+
default:
|
|
292
|
+
return "UNRECOGNIZED";
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.officerStatusToJSON = officerStatusToJSON;
|
|
296
|
+
function officerStatusToNumber(object) {
|
|
297
|
+
switch (object) {
|
|
298
|
+
case OfficerStatus.OFFICER_STATUS_UNSPECIFIED:
|
|
299
|
+
return 0;
|
|
300
|
+
case OfficerStatus.OFFICER_STATUS_ACTIVE:
|
|
301
|
+
return 1;
|
|
302
|
+
case OfficerStatus.OFFICER_STATUS_RESIGNED:
|
|
303
|
+
return 2;
|
|
304
|
+
case OfficerStatus.OFFICER_STATUS_REMOVED:
|
|
305
|
+
return 3;
|
|
306
|
+
case OfficerStatus.UNRECOGNIZED:
|
|
307
|
+
default:
|
|
308
|
+
return -1;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.officerStatusToNumber = officerStatusToNumber;
|
|
312
|
+
/** Board meeting type */
|
|
313
|
+
var BoardMeetingType;
|
|
314
|
+
(function (BoardMeetingType) {
|
|
315
|
+
BoardMeetingType["BOARD_MEETING_TYPE_UNSPECIFIED"] = "BOARD_MEETING_TYPE_UNSPECIFIED";
|
|
316
|
+
BoardMeetingType["BOARD_MEETING_TYPE_REGULAR"] = "BOARD_MEETING_TYPE_REGULAR";
|
|
317
|
+
BoardMeetingType["BOARD_MEETING_TYPE_SPECIAL"] = "BOARD_MEETING_TYPE_SPECIAL";
|
|
318
|
+
BoardMeetingType["BOARD_MEETING_TYPE_ANNUAL"] = "BOARD_MEETING_TYPE_ANNUAL";
|
|
319
|
+
BoardMeetingType["BOARD_MEETING_TYPE_ORGANIZATIONAL"] = "BOARD_MEETING_TYPE_ORGANIZATIONAL";
|
|
320
|
+
BoardMeetingType["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
321
|
+
})(BoardMeetingType || (exports.BoardMeetingType = BoardMeetingType = {}));
|
|
322
|
+
function boardMeetingTypeFromJSON(object) {
|
|
323
|
+
switch (object) {
|
|
324
|
+
case 0:
|
|
325
|
+
case "BOARD_MEETING_TYPE_UNSPECIFIED":
|
|
326
|
+
return BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED;
|
|
327
|
+
case 1:
|
|
328
|
+
case "BOARD_MEETING_TYPE_REGULAR":
|
|
329
|
+
return BoardMeetingType.BOARD_MEETING_TYPE_REGULAR;
|
|
330
|
+
case 2:
|
|
331
|
+
case "BOARD_MEETING_TYPE_SPECIAL":
|
|
332
|
+
return BoardMeetingType.BOARD_MEETING_TYPE_SPECIAL;
|
|
333
|
+
case 3:
|
|
334
|
+
case "BOARD_MEETING_TYPE_ANNUAL":
|
|
335
|
+
return BoardMeetingType.BOARD_MEETING_TYPE_ANNUAL;
|
|
336
|
+
case 4:
|
|
337
|
+
case "BOARD_MEETING_TYPE_ORGANIZATIONAL":
|
|
338
|
+
return BoardMeetingType.BOARD_MEETING_TYPE_ORGANIZATIONAL;
|
|
339
|
+
case -1:
|
|
340
|
+
case "UNRECOGNIZED":
|
|
341
|
+
default:
|
|
342
|
+
return BoardMeetingType.UNRECOGNIZED;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
exports.boardMeetingTypeFromJSON = boardMeetingTypeFromJSON;
|
|
346
|
+
function boardMeetingTypeToJSON(object) {
|
|
347
|
+
switch (object) {
|
|
348
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED:
|
|
349
|
+
return "BOARD_MEETING_TYPE_UNSPECIFIED";
|
|
350
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_REGULAR:
|
|
351
|
+
return "BOARD_MEETING_TYPE_REGULAR";
|
|
352
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_SPECIAL:
|
|
353
|
+
return "BOARD_MEETING_TYPE_SPECIAL";
|
|
354
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_ANNUAL:
|
|
355
|
+
return "BOARD_MEETING_TYPE_ANNUAL";
|
|
356
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_ORGANIZATIONAL:
|
|
357
|
+
return "BOARD_MEETING_TYPE_ORGANIZATIONAL";
|
|
358
|
+
case BoardMeetingType.UNRECOGNIZED:
|
|
359
|
+
default:
|
|
360
|
+
return "UNRECOGNIZED";
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.boardMeetingTypeToJSON = boardMeetingTypeToJSON;
|
|
364
|
+
function boardMeetingTypeToNumber(object) {
|
|
365
|
+
switch (object) {
|
|
366
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED:
|
|
367
|
+
return 0;
|
|
368
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_REGULAR:
|
|
369
|
+
return 1;
|
|
370
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_SPECIAL:
|
|
371
|
+
return 2;
|
|
372
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_ANNUAL:
|
|
373
|
+
return 3;
|
|
374
|
+
case BoardMeetingType.BOARD_MEETING_TYPE_ORGANIZATIONAL:
|
|
375
|
+
return 4;
|
|
376
|
+
case BoardMeetingType.UNRECOGNIZED:
|
|
377
|
+
default:
|
|
378
|
+
return -1;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
exports.boardMeetingTypeToNumber = boardMeetingTypeToNumber;
|
|
382
|
+
/** Resolution status */
|
|
383
|
+
var ResolutionStatus;
|
|
384
|
+
(function (ResolutionStatus) {
|
|
385
|
+
ResolutionStatus["RESOLUTION_STATUS_UNSPECIFIED"] = "RESOLUTION_STATUS_UNSPECIFIED";
|
|
386
|
+
ResolutionStatus["RESOLUTION_STATUS_DRAFT"] = "RESOLUTION_STATUS_DRAFT";
|
|
387
|
+
ResolutionStatus["RESOLUTION_STATUS_PROPOSED"] = "RESOLUTION_STATUS_PROPOSED";
|
|
388
|
+
ResolutionStatus["RESOLUTION_STATUS_VOTING"] = "RESOLUTION_STATUS_VOTING";
|
|
389
|
+
ResolutionStatus["RESOLUTION_STATUS_ADOPTED"] = "RESOLUTION_STATUS_ADOPTED";
|
|
390
|
+
ResolutionStatus["RESOLUTION_STATUS_REJECTED"] = "RESOLUTION_STATUS_REJECTED";
|
|
391
|
+
ResolutionStatus["RESOLUTION_STATUS_WITHDRAWN"] = "RESOLUTION_STATUS_WITHDRAWN";
|
|
392
|
+
ResolutionStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
393
|
+
})(ResolutionStatus || (exports.ResolutionStatus = ResolutionStatus = {}));
|
|
394
|
+
function resolutionStatusFromJSON(object) {
|
|
395
|
+
switch (object) {
|
|
396
|
+
case 0:
|
|
397
|
+
case "RESOLUTION_STATUS_UNSPECIFIED":
|
|
398
|
+
return ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED;
|
|
399
|
+
case 1:
|
|
400
|
+
case "RESOLUTION_STATUS_DRAFT":
|
|
401
|
+
return ResolutionStatus.RESOLUTION_STATUS_DRAFT;
|
|
402
|
+
case 2:
|
|
403
|
+
case "RESOLUTION_STATUS_PROPOSED":
|
|
404
|
+
return ResolutionStatus.RESOLUTION_STATUS_PROPOSED;
|
|
405
|
+
case 3:
|
|
406
|
+
case "RESOLUTION_STATUS_VOTING":
|
|
407
|
+
return ResolutionStatus.RESOLUTION_STATUS_VOTING;
|
|
408
|
+
case 4:
|
|
409
|
+
case "RESOLUTION_STATUS_ADOPTED":
|
|
410
|
+
return ResolutionStatus.RESOLUTION_STATUS_ADOPTED;
|
|
411
|
+
case 5:
|
|
412
|
+
case "RESOLUTION_STATUS_REJECTED":
|
|
413
|
+
return ResolutionStatus.RESOLUTION_STATUS_REJECTED;
|
|
414
|
+
case 6:
|
|
415
|
+
case "RESOLUTION_STATUS_WITHDRAWN":
|
|
416
|
+
return ResolutionStatus.RESOLUTION_STATUS_WITHDRAWN;
|
|
417
|
+
case -1:
|
|
418
|
+
case "UNRECOGNIZED":
|
|
419
|
+
default:
|
|
420
|
+
return ResolutionStatus.UNRECOGNIZED;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
exports.resolutionStatusFromJSON = resolutionStatusFromJSON;
|
|
424
|
+
function resolutionStatusToJSON(object) {
|
|
425
|
+
switch (object) {
|
|
426
|
+
case ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED:
|
|
427
|
+
return "RESOLUTION_STATUS_UNSPECIFIED";
|
|
428
|
+
case ResolutionStatus.RESOLUTION_STATUS_DRAFT:
|
|
429
|
+
return "RESOLUTION_STATUS_DRAFT";
|
|
430
|
+
case ResolutionStatus.RESOLUTION_STATUS_PROPOSED:
|
|
431
|
+
return "RESOLUTION_STATUS_PROPOSED";
|
|
432
|
+
case ResolutionStatus.RESOLUTION_STATUS_VOTING:
|
|
433
|
+
return "RESOLUTION_STATUS_VOTING";
|
|
434
|
+
case ResolutionStatus.RESOLUTION_STATUS_ADOPTED:
|
|
435
|
+
return "RESOLUTION_STATUS_ADOPTED";
|
|
436
|
+
case ResolutionStatus.RESOLUTION_STATUS_REJECTED:
|
|
437
|
+
return "RESOLUTION_STATUS_REJECTED";
|
|
438
|
+
case ResolutionStatus.RESOLUTION_STATUS_WITHDRAWN:
|
|
439
|
+
return "RESOLUTION_STATUS_WITHDRAWN";
|
|
440
|
+
case ResolutionStatus.UNRECOGNIZED:
|
|
441
|
+
default:
|
|
442
|
+
return "UNRECOGNIZED";
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
exports.resolutionStatusToJSON = resolutionStatusToJSON;
|
|
446
|
+
function resolutionStatusToNumber(object) {
|
|
447
|
+
switch (object) {
|
|
448
|
+
case ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED:
|
|
449
|
+
return 0;
|
|
450
|
+
case ResolutionStatus.RESOLUTION_STATUS_DRAFT:
|
|
451
|
+
return 1;
|
|
452
|
+
case ResolutionStatus.RESOLUTION_STATUS_PROPOSED:
|
|
453
|
+
return 2;
|
|
454
|
+
case ResolutionStatus.RESOLUTION_STATUS_VOTING:
|
|
455
|
+
return 3;
|
|
456
|
+
case ResolutionStatus.RESOLUTION_STATUS_ADOPTED:
|
|
457
|
+
return 4;
|
|
458
|
+
case ResolutionStatus.RESOLUTION_STATUS_REJECTED:
|
|
459
|
+
return 5;
|
|
460
|
+
case ResolutionStatus.RESOLUTION_STATUS_WITHDRAWN:
|
|
461
|
+
return 6;
|
|
462
|
+
case ResolutionStatus.UNRECOGNIZED:
|
|
463
|
+
default:
|
|
464
|
+
return -1;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
exports.resolutionStatusToNumber = resolutionStatusToNumber;
|
|
468
|
+
function createBaseJurisdiction() {
|
|
469
|
+
return { state: "", country: "" };
|
|
470
|
+
}
|
|
471
|
+
exports.Jurisdiction = {
|
|
472
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
473
|
+
if (message.state !== "") {
|
|
474
|
+
writer.uint32(10).string(message.state);
|
|
475
|
+
}
|
|
476
|
+
if (message.country !== "") {
|
|
477
|
+
writer.uint32(18).string(message.country);
|
|
478
|
+
}
|
|
479
|
+
return writer;
|
|
480
|
+
},
|
|
481
|
+
decode(input, length) {
|
|
482
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
483
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
484
|
+
const message = createBaseJurisdiction();
|
|
485
|
+
while (reader.pos < end) {
|
|
486
|
+
const tag = reader.uint32();
|
|
487
|
+
switch (tag >>> 3) {
|
|
488
|
+
case 1: {
|
|
489
|
+
if (tag !== 10) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
message.state = reader.string();
|
|
493
|
+
continue;
|
|
494
|
+
}
|
|
495
|
+
case 2: {
|
|
496
|
+
if (tag !== 18) {
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
message.country = reader.string();
|
|
500
|
+
continue;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
reader.skip(tag & 7);
|
|
507
|
+
}
|
|
508
|
+
return message;
|
|
509
|
+
},
|
|
510
|
+
fromJSON(object) {
|
|
511
|
+
return {
|
|
512
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
513
|
+
country: isSet(object.country) ? globalThis.String(object.country) : "",
|
|
514
|
+
};
|
|
515
|
+
},
|
|
516
|
+
toJSON(message) {
|
|
517
|
+
const obj = {};
|
|
518
|
+
if (message.state !== "") {
|
|
519
|
+
obj.state = message.state;
|
|
520
|
+
}
|
|
521
|
+
if (message.country !== "") {
|
|
522
|
+
obj.country = message.country;
|
|
523
|
+
}
|
|
524
|
+
return obj;
|
|
525
|
+
},
|
|
526
|
+
create(base) {
|
|
527
|
+
return exports.Jurisdiction.fromPartial(base ?? {});
|
|
528
|
+
},
|
|
529
|
+
fromPartial(object) {
|
|
530
|
+
const message = createBaseJurisdiction();
|
|
531
|
+
message.state = object.state ?? "";
|
|
532
|
+
message.country = object.country ?? "";
|
|
533
|
+
return message;
|
|
534
|
+
},
|
|
535
|
+
};
|
|
536
|
+
function createBaseAddress() {
|
|
537
|
+
return { street1: "", street2: "", city: "", state: "", postalCode: "", country: "" };
|
|
538
|
+
}
|
|
539
|
+
exports.Address = {
|
|
540
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
541
|
+
if (message.street1 !== "") {
|
|
542
|
+
writer.uint32(10).string(message.street1);
|
|
543
|
+
}
|
|
544
|
+
if (message.street2 !== "") {
|
|
545
|
+
writer.uint32(18).string(message.street2);
|
|
546
|
+
}
|
|
547
|
+
if (message.city !== "") {
|
|
548
|
+
writer.uint32(26).string(message.city);
|
|
549
|
+
}
|
|
550
|
+
if (message.state !== "") {
|
|
551
|
+
writer.uint32(34).string(message.state);
|
|
552
|
+
}
|
|
553
|
+
if (message.postalCode !== "") {
|
|
554
|
+
writer.uint32(42).string(message.postalCode);
|
|
555
|
+
}
|
|
556
|
+
if (message.country !== "") {
|
|
557
|
+
writer.uint32(50).string(message.country);
|
|
558
|
+
}
|
|
559
|
+
return writer;
|
|
560
|
+
},
|
|
561
|
+
decode(input, length) {
|
|
562
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
563
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
564
|
+
const message = createBaseAddress();
|
|
565
|
+
while (reader.pos < end) {
|
|
566
|
+
const tag = reader.uint32();
|
|
567
|
+
switch (tag >>> 3) {
|
|
568
|
+
case 1: {
|
|
569
|
+
if (tag !== 10) {
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
message.street1 = reader.string();
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
case 2: {
|
|
576
|
+
if (tag !== 18) {
|
|
577
|
+
break;
|
|
578
|
+
}
|
|
579
|
+
message.street2 = reader.string();
|
|
580
|
+
continue;
|
|
581
|
+
}
|
|
582
|
+
case 3: {
|
|
583
|
+
if (tag !== 26) {
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
message.city = reader.string();
|
|
587
|
+
continue;
|
|
588
|
+
}
|
|
589
|
+
case 4: {
|
|
590
|
+
if (tag !== 34) {
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
message.state = reader.string();
|
|
594
|
+
continue;
|
|
595
|
+
}
|
|
596
|
+
case 5: {
|
|
597
|
+
if (tag !== 42) {
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
message.postalCode = reader.string();
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
case 6: {
|
|
604
|
+
if (tag !== 50) {
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
message.country = reader.string();
|
|
608
|
+
continue;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
reader.skip(tag & 7);
|
|
615
|
+
}
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
fromJSON(object) {
|
|
619
|
+
return {
|
|
620
|
+
street1: isSet(object.street1) ? globalThis.String(object.street1) : "",
|
|
621
|
+
street2: isSet(object.street2) ? globalThis.String(object.street2) : "",
|
|
622
|
+
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
623
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
624
|
+
postalCode: isSet(object.postalCode)
|
|
625
|
+
? globalThis.String(object.postalCode)
|
|
626
|
+
: isSet(object.postal_code)
|
|
627
|
+
? globalThis.String(object.postal_code)
|
|
628
|
+
: "",
|
|
629
|
+
country: isSet(object.country) ? globalThis.String(object.country) : "",
|
|
630
|
+
};
|
|
631
|
+
},
|
|
632
|
+
toJSON(message) {
|
|
633
|
+
const obj = {};
|
|
634
|
+
if (message.street1 !== "") {
|
|
635
|
+
obj.street1 = message.street1;
|
|
636
|
+
}
|
|
637
|
+
if (message.street2 !== "") {
|
|
638
|
+
obj.street2 = message.street2;
|
|
639
|
+
}
|
|
640
|
+
if (message.city !== "") {
|
|
641
|
+
obj.city = message.city;
|
|
642
|
+
}
|
|
643
|
+
if (message.state !== "") {
|
|
644
|
+
obj.state = message.state;
|
|
645
|
+
}
|
|
646
|
+
if (message.postalCode !== "") {
|
|
647
|
+
obj.postalCode = message.postalCode;
|
|
648
|
+
}
|
|
649
|
+
if (message.country !== "") {
|
|
650
|
+
obj.country = message.country;
|
|
651
|
+
}
|
|
652
|
+
return obj;
|
|
653
|
+
},
|
|
654
|
+
create(base) {
|
|
655
|
+
return exports.Address.fromPartial(base ?? {});
|
|
656
|
+
},
|
|
657
|
+
fromPartial(object) {
|
|
658
|
+
const message = createBaseAddress();
|
|
659
|
+
message.street1 = object.street1 ?? "";
|
|
660
|
+
message.street2 = object.street2 ?? "";
|
|
661
|
+
message.city = object.city ?? "";
|
|
662
|
+
message.state = object.state ?? "";
|
|
663
|
+
message.postalCode = object.postalCode ?? "";
|
|
664
|
+
message.country = object.country ?? "";
|
|
665
|
+
return message;
|
|
666
|
+
},
|
|
667
|
+
};
|
|
668
|
+
function createBaseShareClass() {
|
|
669
|
+
return {
|
|
670
|
+
classId: "",
|
|
671
|
+
className: "",
|
|
672
|
+
authorized: 0,
|
|
673
|
+
issued: 0,
|
|
674
|
+
outstanding: 0,
|
|
675
|
+
parValueCents: 0,
|
|
676
|
+
votingRights: false,
|
|
677
|
+
votesPerShare: 0,
|
|
678
|
+
liquidationPreference: 0,
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
exports.ShareClass = {
|
|
682
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
683
|
+
if (message.classId !== "") {
|
|
684
|
+
writer.uint32(10).string(message.classId);
|
|
685
|
+
}
|
|
686
|
+
if (message.className !== "") {
|
|
687
|
+
writer.uint32(18).string(message.className);
|
|
688
|
+
}
|
|
689
|
+
if (message.authorized !== 0) {
|
|
690
|
+
writer.uint32(24).int64(message.authorized);
|
|
691
|
+
}
|
|
692
|
+
if (message.issued !== 0) {
|
|
693
|
+
writer.uint32(32).int64(message.issued);
|
|
694
|
+
}
|
|
695
|
+
if (message.outstanding !== 0) {
|
|
696
|
+
writer.uint32(40).int64(message.outstanding);
|
|
697
|
+
}
|
|
698
|
+
if (message.parValueCents !== 0) {
|
|
699
|
+
writer.uint32(48).int64(message.parValueCents);
|
|
700
|
+
}
|
|
701
|
+
if (message.votingRights !== false) {
|
|
702
|
+
writer.uint32(56).bool(message.votingRights);
|
|
703
|
+
}
|
|
704
|
+
if (message.votesPerShare !== 0) {
|
|
705
|
+
writer.uint32(64).int32(message.votesPerShare);
|
|
706
|
+
}
|
|
707
|
+
if (message.liquidationPreference !== 0) {
|
|
708
|
+
writer.uint32(72).int32(message.liquidationPreference);
|
|
709
|
+
}
|
|
710
|
+
return writer;
|
|
711
|
+
},
|
|
712
|
+
decode(input, length) {
|
|
713
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
714
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
715
|
+
const message = createBaseShareClass();
|
|
716
|
+
while (reader.pos < end) {
|
|
717
|
+
const tag = reader.uint32();
|
|
718
|
+
switch (tag >>> 3) {
|
|
719
|
+
case 1: {
|
|
720
|
+
if (tag !== 10) {
|
|
721
|
+
break;
|
|
722
|
+
}
|
|
723
|
+
message.classId = reader.string();
|
|
724
|
+
continue;
|
|
725
|
+
}
|
|
726
|
+
case 2: {
|
|
727
|
+
if (tag !== 18) {
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
message.className = reader.string();
|
|
731
|
+
continue;
|
|
732
|
+
}
|
|
733
|
+
case 3: {
|
|
734
|
+
if (tag !== 24) {
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
message.authorized = longToNumber(reader.int64());
|
|
738
|
+
continue;
|
|
739
|
+
}
|
|
740
|
+
case 4: {
|
|
741
|
+
if (tag !== 32) {
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
message.issued = longToNumber(reader.int64());
|
|
745
|
+
continue;
|
|
746
|
+
}
|
|
747
|
+
case 5: {
|
|
748
|
+
if (tag !== 40) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
message.outstanding = longToNumber(reader.int64());
|
|
752
|
+
continue;
|
|
753
|
+
}
|
|
754
|
+
case 6: {
|
|
755
|
+
if (tag !== 48) {
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
message.parValueCents = longToNumber(reader.int64());
|
|
759
|
+
continue;
|
|
760
|
+
}
|
|
761
|
+
case 7: {
|
|
762
|
+
if (tag !== 56) {
|
|
763
|
+
break;
|
|
764
|
+
}
|
|
765
|
+
message.votingRights = reader.bool();
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
case 8: {
|
|
769
|
+
if (tag !== 64) {
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
message.votesPerShare = reader.int32();
|
|
773
|
+
continue;
|
|
774
|
+
}
|
|
775
|
+
case 9: {
|
|
776
|
+
if (tag !== 72) {
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
message.liquidationPreference = reader.int32();
|
|
780
|
+
continue;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
reader.skip(tag & 7);
|
|
787
|
+
}
|
|
788
|
+
return message;
|
|
789
|
+
},
|
|
790
|
+
fromJSON(object) {
|
|
791
|
+
return {
|
|
792
|
+
classId: isSet(object.classId)
|
|
793
|
+
? globalThis.String(object.classId)
|
|
794
|
+
: isSet(object.class_id)
|
|
795
|
+
? globalThis.String(object.class_id)
|
|
796
|
+
: "",
|
|
797
|
+
className: isSet(object.className)
|
|
798
|
+
? globalThis.String(object.className)
|
|
799
|
+
: isSet(object.class_name)
|
|
800
|
+
? globalThis.String(object.class_name)
|
|
801
|
+
: "",
|
|
802
|
+
authorized: isSet(object.authorized) ? globalThis.Number(object.authorized) : 0,
|
|
803
|
+
issued: isSet(object.issued) ? globalThis.Number(object.issued) : 0,
|
|
804
|
+
outstanding: isSet(object.outstanding) ? globalThis.Number(object.outstanding) : 0,
|
|
805
|
+
parValueCents: isSet(object.parValueCents)
|
|
806
|
+
? globalThis.Number(object.parValueCents)
|
|
807
|
+
: isSet(object.par_value_cents)
|
|
808
|
+
? globalThis.Number(object.par_value_cents)
|
|
809
|
+
: 0,
|
|
810
|
+
votingRights: isSet(object.votingRights)
|
|
811
|
+
? globalThis.Boolean(object.votingRights)
|
|
812
|
+
: isSet(object.voting_rights)
|
|
813
|
+
? globalThis.Boolean(object.voting_rights)
|
|
814
|
+
: false,
|
|
815
|
+
votesPerShare: isSet(object.votesPerShare)
|
|
816
|
+
? globalThis.Number(object.votesPerShare)
|
|
817
|
+
: isSet(object.votes_per_share)
|
|
818
|
+
? globalThis.Number(object.votes_per_share)
|
|
819
|
+
: 0,
|
|
820
|
+
liquidationPreference: isSet(object.liquidationPreference)
|
|
821
|
+
? globalThis.Number(object.liquidationPreference)
|
|
822
|
+
: isSet(object.liquidation_preference)
|
|
823
|
+
? globalThis.Number(object.liquidation_preference)
|
|
824
|
+
: 0,
|
|
825
|
+
};
|
|
826
|
+
},
|
|
827
|
+
toJSON(message) {
|
|
828
|
+
const obj = {};
|
|
829
|
+
if (message.classId !== "") {
|
|
830
|
+
obj.classId = message.classId;
|
|
831
|
+
}
|
|
832
|
+
if (message.className !== "") {
|
|
833
|
+
obj.className = message.className;
|
|
834
|
+
}
|
|
835
|
+
if (message.authorized !== 0) {
|
|
836
|
+
obj.authorized = Math.round(message.authorized);
|
|
837
|
+
}
|
|
838
|
+
if (message.issued !== 0) {
|
|
839
|
+
obj.issued = Math.round(message.issued);
|
|
840
|
+
}
|
|
841
|
+
if (message.outstanding !== 0) {
|
|
842
|
+
obj.outstanding = Math.round(message.outstanding);
|
|
843
|
+
}
|
|
844
|
+
if (message.parValueCents !== 0) {
|
|
845
|
+
obj.parValueCents = Math.round(message.parValueCents);
|
|
846
|
+
}
|
|
847
|
+
if (message.votingRights !== false) {
|
|
848
|
+
obj.votingRights = message.votingRights;
|
|
849
|
+
}
|
|
850
|
+
if (message.votesPerShare !== 0) {
|
|
851
|
+
obj.votesPerShare = Math.round(message.votesPerShare);
|
|
852
|
+
}
|
|
853
|
+
if (message.liquidationPreference !== 0) {
|
|
854
|
+
obj.liquidationPreference = Math.round(message.liquidationPreference);
|
|
855
|
+
}
|
|
856
|
+
return obj;
|
|
857
|
+
},
|
|
858
|
+
create(base) {
|
|
859
|
+
return exports.ShareClass.fromPartial(base ?? {});
|
|
860
|
+
},
|
|
861
|
+
fromPartial(object) {
|
|
862
|
+
const message = createBaseShareClass();
|
|
863
|
+
message.classId = object.classId ?? "";
|
|
864
|
+
message.className = object.className ?? "";
|
|
865
|
+
message.authorized = object.authorized ?? 0;
|
|
866
|
+
message.issued = object.issued ?? 0;
|
|
867
|
+
message.outstanding = object.outstanding ?? 0;
|
|
868
|
+
message.parValueCents = object.parValueCents ?? 0;
|
|
869
|
+
message.votingRights = object.votingRights ?? false;
|
|
870
|
+
message.votesPerShare = object.votesPerShare ?? 0;
|
|
871
|
+
message.liquidationPreference = object.liquidationPreference ?? 0;
|
|
872
|
+
return message;
|
|
873
|
+
},
|
|
874
|
+
};
|
|
875
|
+
function createBaseCorporateEntity() {
|
|
876
|
+
return {
|
|
877
|
+
entityId: "",
|
|
878
|
+
legalName: "",
|
|
879
|
+
entityType: EntityType.ENTITY_TYPE_UNSPECIFIED,
|
|
880
|
+
jurisdiction: undefined,
|
|
881
|
+
formationDate: undefined,
|
|
882
|
+
registeredAgent: undefined,
|
|
883
|
+
incorporators: [],
|
|
884
|
+
shareStructure: undefined,
|
|
885
|
+
status: EntityState.ENTITY_STATE_UNSPECIFIED,
|
|
886
|
+
createdAt: undefined,
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
exports.CorporateEntity = {
|
|
890
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
891
|
+
if (message.entityId !== "") {
|
|
892
|
+
writer.uint32(10).string(message.entityId);
|
|
893
|
+
}
|
|
894
|
+
if (message.legalName !== "") {
|
|
895
|
+
writer.uint32(18).string(message.legalName);
|
|
896
|
+
}
|
|
897
|
+
if (message.entityType !== EntityType.ENTITY_TYPE_UNSPECIFIED) {
|
|
898
|
+
writer.uint32(24).int32(entityTypeToNumber(message.entityType));
|
|
899
|
+
}
|
|
900
|
+
if (message.jurisdiction !== undefined) {
|
|
901
|
+
exports.Jurisdiction.encode(message.jurisdiction, writer.uint32(34).fork()).join();
|
|
902
|
+
}
|
|
903
|
+
if (message.formationDate !== undefined) {
|
|
904
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.formationDate), writer.uint32(42).fork()).join();
|
|
905
|
+
}
|
|
906
|
+
if (message.registeredAgent !== undefined) {
|
|
907
|
+
exports.RegisteredAgent.encode(message.registeredAgent, writer.uint32(50).fork()).join();
|
|
908
|
+
}
|
|
909
|
+
for (const v of message.incorporators) {
|
|
910
|
+
exports.Incorporator.encode(v, writer.uint32(58).fork()).join();
|
|
911
|
+
}
|
|
912
|
+
if (message.shareStructure !== undefined) {
|
|
913
|
+
exports.ShareStructure.encode(message.shareStructure, writer.uint32(66).fork()).join();
|
|
914
|
+
}
|
|
915
|
+
if (message.status !== EntityState.ENTITY_STATE_UNSPECIFIED) {
|
|
916
|
+
writer.uint32(72).int32(entityStateToNumber(message.status));
|
|
917
|
+
}
|
|
918
|
+
if (message.createdAt !== undefined) {
|
|
919
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(82).fork()).join();
|
|
920
|
+
}
|
|
921
|
+
return writer;
|
|
922
|
+
},
|
|
923
|
+
decode(input, length) {
|
|
924
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
925
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
926
|
+
const message = createBaseCorporateEntity();
|
|
927
|
+
while (reader.pos < end) {
|
|
928
|
+
const tag = reader.uint32();
|
|
929
|
+
switch (tag >>> 3) {
|
|
930
|
+
case 1: {
|
|
931
|
+
if (tag !== 10) {
|
|
932
|
+
break;
|
|
933
|
+
}
|
|
934
|
+
message.entityId = reader.string();
|
|
935
|
+
continue;
|
|
936
|
+
}
|
|
937
|
+
case 2: {
|
|
938
|
+
if (tag !== 18) {
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
message.legalName = reader.string();
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
case 3: {
|
|
945
|
+
if (tag !== 24) {
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
message.entityType = entityTypeFromJSON(reader.int32());
|
|
949
|
+
continue;
|
|
950
|
+
}
|
|
951
|
+
case 4: {
|
|
952
|
+
if (tag !== 34) {
|
|
953
|
+
break;
|
|
954
|
+
}
|
|
955
|
+
message.jurisdiction = exports.Jurisdiction.decode(reader, reader.uint32());
|
|
956
|
+
continue;
|
|
957
|
+
}
|
|
958
|
+
case 5: {
|
|
959
|
+
if (tag !== 42) {
|
|
960
|
+
break;
|
|
961
|
+
}
|
|
962
|
+
message.formationDate = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
case 6: {
|
|
966
|
+
if (tag !== 50) {
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
message.registeredAgent = exports.RegisteredAgent.decode(reader, reader.uint32());
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
case 7: {
|
|
973
|
+
if (tag !== 58) {
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
message.incorporators.push(exports.Incorporator.decode(reader, reader.uint32()));
|
|
977
|
+
continue;
|
|
978
|
+
}
|
|
979
|
+
case 8: {
|
|
980
|
+
if (tag !== 66) {
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
message.shareStructure = exports.ShareStructure.decode(reader, reader.uint32());
|
|
984
|
+
continue;
|
|
985
|
+
}
|
|
986
|
+
case 9: {
|
|
987
|
+
if (tag !== 72) {
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
message.status = entityStateFromJSON(reader.int32());
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
case 10: {
|
|
994
|
+
if (tag !== 82) {
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
message.createdAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1002
|
+
break;
|
|
1003
|
+
}
|
|
1004
|
+
reader.skip(tag & 7);
|
|
1005
|
+
}
|
|
1006
|
+
return message;
|
|
1007
|
+
},
|
|
1008
|
+
fromJSON(object) {
|
|
1009
|
+
return {
|
|
1010
|
+
entityId: isSet(object.entityId)
|
|
1011
|
+
? globalThis.String(object.entityId)
|
|
1012
|
+
: isSet(object.entity_id)
|
|
1013
|
+
? globalThis.String(object.entity_id)
|
|
1014
|
+
: "",
|
|
1015
|
+
legalName: isSet(object.legalName)
|
|
1016
|
+
? globalThis.String(object.legalName)
|
|
1017
|
+
: isSet(object.legal_name)
|
|
1018
|
+
? globalThis.String(object.legal_name)
|
|
1019
|
+
: "",
|
|
1020
|
+
entityType: isSet(object.entityType)
|
|
1021
|
+
? entityTypeFromJSON(object.entityType)
|
|
1022
|
+
: isSet(object.entity_type)
|
|
1023
|
+
? entityTypeFromJSON(object.entity_type)
|
|
1024
|
+
: EntityType.ENTITY_TYPE_UNSPECIFIED,
|
|
1025
|
+
jurisdiction: isSet(object.jurisdiction) ? exports.Jurisdiction.fromJSON(object.jurisdiction) : undefined,
|
|
1026
|
+
formationDate: isSet(object.formationDate)
|
|
1027
|
+
? fromJsonTimestamp(object.formationDate)
|
|
1028
|
+
: isSet(object.formation_date)
|
|
1029
|
+
? fromJsonTimestamp(object.formation_date)
|
|
1030
|
+
: undefined,
|
|
1031
|
+
registeredAgent: isSet(object.registeredAgent)
|
|
1032
|
+
? exports.RegisteredAgent.fromJSON(object.registeredAgent)
|
|
1033
|
+
: isSet(object.registered_agent)
|
|
1034
|
+
? exports.RegisteredAgent.fromJSON(object.registered_agent)
|
|
1035
|
+
: undefined,
|
|
1036
|
+
incorporators: globalThis.Array.isArray(object?.incorporators)
|
|
1037
|
+
? object.incorporators.map((e) => exports.Incorporator.fromJSON(e))
|
|
1038
|
+
: [],
|
|
1039
|
+
shareStructure: isSet(object.shareStructure)
|
|
1040
|
+
? exports.ShareStructure.fromJSON(object.shareStructure)
|
|
1041
|
+
: isSet(object.share_structure)
|
|
1042
|
+
? exports.ShareStructure.fromJSON(object.share_structure)
|
|
1043
|
+
: undefined,
|
|
1044
|
+
status: isSet(object.status) ? entityStateFromJSON(object.status) : EntityState.ENTITY_STATE_UNSPECIFIED,
|
|
1045
|
+
createdAt: isSet(object.createdAt)
|
|
1046
|
+
? fromJsonTimestamp(object.createdAt)
|
|
1047
|
+
: isSet(object.created_at)
|
|
1048
|
+
? fromJsonTimestamp(object.created_at)
|
|
1049
|
+
: undefined,
|
|
1050
|
+
};
|
|
1051
|
+
},
|
|
1052
|
+
toJSON(message) {
|
|
1053
|
+
const obj = {};
|
|
1054
|
+
if (message.entityId !== "") {
|
|
1055
|
+
obj.entityId = message.entityId;
|
|
1056
|
+
}
|
|
1057
|
+
if (message.legalName !== "") {
|
|
1058
|
+
obj.legalName = message.legalName;
|
|
1059
|
+
}
|
|
1060
|
+
if (message.entityType !== EntityType.ENTITY_TYPE_UNSPECIFIED) {
|
|
1061
|
+
obj.entityType = entityTypeToJSON(message.entityType);
|
|
1062
|
+
}
|
|
1063
|
+
if (message.jurisdiction !== undefined) {
|
|
1064
|
+
obj.jurisdiction = exports.Jurisdiction.toJSON(message.jurisdiction);
|
|
1065
|
+
}
|
|
1066
|
+
if (message.formationDate !== undefined) {
|
|
1067
|
+
obj.formationDate = message.formationDate.toISOString();
|
|
1068
|
+
}
|
|
1069
|
+
if (message.registeredAgent !== undefined) {
|
|
1070
|
+
obj.registeredAgent = exports.RegisteredAgent.toJSON(message.registeredAgent);
|
|
1071
|
+
}
|
|
1072
|
+
if (message.incorporators?.length) {
|
|
1073
|
+
obj.incorporators = message.incorporators.map((e) => exports.Incorporator.toJSON(e));
|
|
1074
|
+
}
|
|
1075
|
+
if (message.shareStructure !== undefined) {
|
|
1076
|
+
obj.shareStructure = exports.ShareStructure.toJSON(message.shareStructure);
|
|
1077
|
+
}
|
|
1078
|
+
if (message.status !== EntityState.ENTITY_STATE_UNSPECIFIED) {
|
|
1079
|
+
obj.status = entityStateToJSON(message.status);
|
|
1080
|
+
}
|
|
1081
|
+
if (message.createdAt !== undefined) {
|
|
1082
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
1083
|
+
}
|
|
1084
|
+
return obj;
|
|
1085
|
+
},
|
|
1086
|
+
create(base) {
|
|
1087
|
+
return exports.CorporateEntity.fromPartial(base ?? {});
|
|
1088
|
+
},
|
|
1089
|
+
fromPartial(object) {
|
|
1090
|
+
const message = createBaseCorporateEntity();
|
|
1091
|
+
message.entityId = object.entityId ?? "";
|
|
1092
|
+
message.legalName = object.legalName ?? "";
|
|
1093
|
+
message.entityType = object.entityType ?? EntityType.ENTITY_TYPE_UNSPECIFIED;
|
|
1094
|
+
message.jurisdiction = (object.jurisdiction !== undefined && object.jurisdiction !== null)
|
|
1095
|
+
? exports.Jurisdiction.fromPartial(object.jurisdiction)
|
|
1096
|
+
: undefined;
|
|
1097
|
+
message.formationDate = object.formationDate ?? undefined;
|
|
1098
|
+
message.registeredAgent = (object.registeredAgent !== undefined && object.registeredAgent !== null)
|
|
1099
|
+
? exports.RegisteredAgent.fromPartial(object.registeredAgent)
|
|
1100
|
+
: undefined;
|
|
1101
|
+
message.incorporators = object.incorporators?.map((e) => exports.Incorporator.fromPartial(e)) || [];
|
|
1102
|
+
message.shareStructure = (object.shareStructure !== undefined && object.shareStructure !== null)
|
|
1103
|
+
? exports.ShareStructure.fromPartial(object.shareStructure)
|
|
1104
|
+
: undefined;
|
|
1105
|
+
message.status = object.status ?? EntityState.ENTITY_STATE_UNSPECIFIED;
|
|
1106
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
1107
|
+
return message;
|
|
1108
|
+
},
|
|
1109
|
+
};
|
|
1110
|
+
function createBaseRegisteredAgent() {
|
|
1111
|
+
return { name: "", address: undefined };
|
|
1112
|
+
}
|
|
1113
|
+
exports.RegisteredAgent = {
|
|
1114
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1115
|
+
if (message.name !== "") {
|
|
1116
|
+
writer.uint32(10).string(message.name);
|
|
1117
|
+
}
|
|
1118
|
+
if (message.address !== undefined) {
|
|
1119
|
+
exports.Address.encode(message.address, writer.uint32(18).fork()).join();
|
|
1120
|
+
}
|
|
1121
|
+
return writer;
|
|
1122
|
+
},
|
|
1123
|
+
decode(input, length) {
|
|
1124
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1125
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1126
|
+
const message = createBaseRegisteredAgent();
|
|
1127
|
+
while (reader.pos < end) {
|
|
1128
|
+
const tag = reader.uint32();
|
|
1129
|
+
switch (tag >>> 3) {
|
|
1130
|
+
case 1: {
|
|
1131
|
+
if (tag !== 10) {
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
message.name = reader.string();
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1137
|
+
case 2: {
|
|
1138
|
+
if (tag !== 18) {
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
message.address = exports.Address.decode(reader, reader.uint32());
|
|
1142
|
+
continue;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1146
|
+
break;
|
|
1147
|
+
}
|
|
1148
|
+
reader.skip(tag & 7);
|
|
1149
|
+
}
|
|
1150
|
+
return message;
|
|
1151
|
+
},
|
|
1152
|
+
fromJSON(object) {
|
|
1153
|
+
return {
|
|
1154
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1155
|
+
address: isSet(object.address) ? exports.Address.fromJSON(object.address) : undefined,
|
|
1156
|
+
};
|
|
1157
|
+
},
|
|
1158
|
+
toJSON(message) {
|
|
1159
|
+
const obj = {};
|
|
1160
|
+
if (message.name !== "") {
|
|
1161
|
+
obj.name = message.name;
|
|
1162
|
+
}
|
|
1163
|
+
if (message.address !== undefined) {
|
|
1164
|
+
obj.address = exports.Address.toJSON(message.address);
|
|
1165
|
+
}
|
|
1166
|
+
return obj;
|
|
1167
|
+
},
|
|
1168
|
+
create(base) {
|
|
1169
|
+
return exports.RegisteredAgent.fromPartial(base ?? {});
|
|
1170
|
+
},
|
|
1171
|
+
fromPartial(object) {
|
|
1172
|
+
const message = createBaseRegisteredAgent();
|
|
1173
|
+
message.name = object.name ?? "";
|
|
1174
|
+
message.address = (object.address !== undefined && object.address !== null)
|
|
1175
|
+
? exports.Address.fromPartial(object.address)
|
|
1176
|
+
: undefined;
|
|
1177
|
+
return message;
|
|
1178
|
+
},
|
|
1179
|
+
};
|
|
1180
|
+
function createBaseIncorporator() {
|
|
1181
|
+
return { name: "", address: "" };
|
|
1182
|
+
}
|
|
1183
|
+
exports.Incorporator = {
|
|
1184
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1185
|
+
if (message.name !== "") {
|
|
1186
|
+
writer.uint32(10).string(message.name);
|
|
1187
|
+
}
|
|
1188
|
+
if (message.address !== "") {
|
|
1189
|
+
writer.uint32(18).string(message.address);
|
|
1190
|
+
}
|
|
1191
|
+
return writer;
|
|
1192
|
+
},
|
|
1193
|
+
decode(input, length) {
|
|
1194
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1195
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1196
|
+
const message = createBaseIncorporator();
|
|
1197
|
+
while (reader.pos < end) {
|
|
1198
|
+
const tag = reader.uint32();
|
|
1199
|
+
switch (tag >>> 3) {
|
|
1200
|
+
case 1: {
|
|
1201
|
+
if (tag !== 10) {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
message.name = reader.string();
|
|
1205
|
+
continue;
|
|
1206
|
+
}
|
|
1207
|
+
case 2: {
|
|
1208
|
+
if (tag !== 18) {
|
|
1209
|
+
break;
|
|
1210
|
+
}
|
|
1211
|
+
message.address = reader.string();
|
|
1212
|
+
continue;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
reader.skip(tag & 7);
|
|
1219
|
+
}
|
|
1220
|
+
return message;
|
|
1221
|
+
},
|
|
1222
|
+
fromJSON(object) {
|
|
1223
|
+
return {
|
|
1224
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1225
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
1226
|
+
};
|
|
1227
|
+
},
|
|
1228
|
+
toJSON(message) {
|
|
1229
|
+
const obj = {};
|
|
1230
|
+
if (message.name !== "") {
|
|
1231
|
+
obj.name = message.name;
|
|
1232
|
+
}
|
|
1233
|
+
if (message.address !== "") {
|
|
1234
|
+
obj.address = message.address;
|
|
1235
|
+
}
|
|
1236
|
+
return obj;
|
|
1237
|
+
},
|
|
1238
|
+
create(base) {
|
|
1239
|
+
return exports.Incorporator.fromPartial(base ?? {});
|
|
1240
|
+
},
|
|
1241
|
+
fromPartial(object) {
|
|
1242
|
+
const message = createBaseIncorporator();
|
|
1243
|
+
message.name = object.name ?? "";
|
|
1244
|
+
message.address = object.address ?? "";
|
|
1245
|
+
return message;
|
|
1246
|
+
},
|
|
1247
|
+
};
|
|
1248
|
+
function createBaseShareStructure() {
|
|
1249
|
+
return { classes: [], totalAuthorized: 0, totalIssued: 0, totalOutstanding: 0 };
|
|
1250
|
+
}
|
|
1251
|
+
exports.ShareStructure = {
|
|
1252
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1253
|
+
for (const v of message.classes) {
|
|
1254
|
+
exports.ShareClass.encode(v, writer.uint32(10).fork()).join();
|
|
1255
|
+
}
|
|
1256
|
+
if (message.totalAuthorized !== 0) {
|
|
1257
|
+
writer.uint32(16).int64(message.totalAuthorized);
|
|
1258
|
+
}
|
|
1259
|
+
if (message.totalIssued !== 0) {
|
|
1260
|
+
writer.uint32(24).int64(message.totalIssued);
|
|
1261
|
+
}
|
|
1262
|
+
if (message.totalOutstanding !== 0) {
|
|
1263
|
+
writer.uint32(32).int64(message.totalOutstanding);
|
|
1264
|
+
}
|
|
1265
|
+
return writer;
|
|
1266
|
+
},
|
|
1267
|
+
decode(input, length) {
|
|
1268
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1269
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1270
|
+
const message = createBaseShareStructure();
|
|
1271
|
+
while (reader.pos < end) {
|
|
1272
|
+
const tag = reader.uint32();
|
|
1273
|
+
switch (tag >>> 3) {
|
|
1274
|
+
case 1: {
|
|
1275
|
+
if (tag !== 10) {
|
|
1276
|
+
break;
|
|
1277
|
+
}
|
|
1278
|
+
message.classes.push(exports.ShareClass.decode(reader, reader.uint32()));
|
|
1279
|
+
continue;
|
|
1280
|
+
}
|
|
1281
|
+
case 2: {
|
|
1282
|
+
if (tag !== 16) {
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
message.totalAuthorized = longToNumber(reader.int64());
|
|
1286
|
+
continue;
|
|
1287
|
+
}
|
|
1288
|
+
case 3: {
|
|
1289
|
+
if (tag !== 24) {
|
|
1290
|
+
break;
|
|
1291
|
+
}
|
|
1292
|
+
message.totalIssued = longToNumber(reader.int64());
|
|
1293
|
+
continue;
|
|
1294
|
+
}
|
|
1295
|
+
case 4: {
|
|
1296
|
+
if (tag !== 32) {
|
|
1297
|
+
break;
|
|
1298
|
+
}
|
|
1299
|
+
message.totalOutstanding = longToNumber(reader.int64());
|
|
1300
|
+
continue;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1304
|
+
break;
|
|
1305
|
+
}
|
|
1306
|
+
reader.skip(tag & 7);
|
|
1307
|
+
}
|
|
1308
|
+
return message;
|
|
1309
|
+
},
|
|
1310
|
+
fromJSON(object) {
|
|
1311
|
+
return {
|
|
1312
|
+
classes: globalThis.Array.isArray(object?.classes) ? object.classes.map((e) => exports.ShareClass.fromJSON(e)) : [],
|
|
1313
|
+
totalAuthorized: isSet(object.totalAuthorized)
|
|
1314
|
+
? globalThis.Number(object.totalAuthorized)
|
|
1315
|
+
: isSet(object.total_authorized)
|
|
1316
|
+
? globalThis.Number(object.total_authorized)
|
|
1317
|
+
: 0,
|
|
1318
|
+
totalIssued: isSet(object.totalIssued)
|
|
1319
|
+
? globalThis.Number(object.totalIssued)
|
|
1320
|
+
: isSet(object.total_issued)
|
|
1321
|
+
? globalThis.Number(object.total_issued)
|
|
1322
|
+
: 0,
|
|
1323
|
+
totalOutstanding: isSet(object.totalOutstanding)
|
|
1324
|
+
? globalThis.Number(object.totalOutstanding)
|
|
1325
|
+
: isSet(object.total_outstanding)
|
|
1326
|
+
? globalThis.Number(object.total_outstanding)
|
|
1327
|
+
: 0,
|
|
1328
|
+
};
|
|
1329
|
+
},
|
|
1330
|
+
toJSON(message) {
|
|
1331
|
+
const obj = {};
|
|
1332
|
+
if (message.classes?.length) {
|
|
1333
|
+
obj.classes = message.classes.map((e) => exports.ShareClass.toJSON(e));
|
|
1334
|
+
}
|
|
1335
|
+
if (message.totalAuthorized !== 0) {
|
|
1336
|
+
obj.totalAuthorized = Math.round(message.totalAuthorized);
|
|
1337
|
+
}
|
|
1338
|
+
if (message.totalIssued !== 0) {
|
|
1339
|
+
obj.totalIssued = Math.round(message.totalIssued);
|
|
1340
|
+
}
|
|
1341
|
+
if (message.totalOutstanding !== 0) {
|
|
1342
|
+
obj.totalOutstanding = Math.round(message.totalOutstanding);
|
|
1343
|
+
}
|
|
1344
|
+
return obj;
|
|
1345
|
+
},
|
|
1346
|
+
create(base) {
|
|
1347
|
+
return exports.ShareStructure.fromPartial(base ?? {});
|
|
1348
|
+
},
|
|
1349
|
+
fromPartial(object) {
|
|
1350
|
+
const message = createBaseShareStructure();
|
|
1351
|
+
message.classes = object.classes?.map((e) => exports.ShareClass.fromPartial(e)) || [];
|
|
1352
|
+
message.totalAuthorized = object.totalAuthorized ?? 0;
|
|
1353
|
+
message.totalIssued = object.totalIssued ?? 0;
|
|
1354
|
+
message.totalOutstanding = object.totalOutstanding ?? 0;
|
|
1355
|
+
return message;
|
|
1356
|
+
},
|
|
1357
|
+
};
|
|
1358
|
+
function createBaseCorporateBoard() {
|
|
1359
|
+
return {
|
|
1360
|
+
boardId: "",
|
|
1361
|
+
entityId: "",
|
|
1362
|
+
directors: [],
|
|
1363
|
+
seats: undefined,
|
|
1364
|
+
quorumRules: undefined,
|
|
1365
|
+
currentMeeting: undefined,
|
|
1366
|
+
meetingHistory: [],
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
exports.CorporateBoard = {
|
|
1370
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1371
|
+
if (message.boardId !== "") {
|
|
1372
|
+
writer.uint32(10).string(message.boardId);
|
|
1373
|
+
}
|
|
1374
|
+
if (message.entityId !== "") {
|
|
1375
|
+
writer.uint32(18).string(message.entityId);
|
|
1376
|
+
}
|
|
1377
|
+
for (const v of message.directors) {
|
|
1378
|
+
exports.Director.encode(v, writer.uint32(26).fork()).join();
|
|
1379
|
+
}
|
|
1380
|
+
if (message.seats !== undefined) {
|
|
1381
|
+
exports.SeatInfo.encode(message.seats, writer.uint32(34).fork()).join();
|
|
1382
|
+
}
|
|
1383
|
+
if (message.quorumRules !== undefined) {
|
|
1384
|
+
exports.QuorumRules.encode(message.quorumRules, writer.uint32(42).fork()).join();
|
|
1385
|
+
}
|
|
1386
|
+
if (message.currentMeeting !== undefined) {
|
|
1387
|
+
exports.BoardMeeting.encode(message.currentMeeting, writer.uint32(50).fork()).join();
|
|
1388
|
+
}
|
|
1389
|
+
for (const v of message.meetingHistory) {
|
|
1390
|
+
exports.BoardMeeting.encode(v, writer.uint32(58).fork()).join();
|
|
1391
|
+
}
|
|
1392
|
+
return writer;
|
|
1393
|
+
},
|
|
1394
|
+
decode(input, length) {
|
|
1395
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1396
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1397
|
+
const message = createBaseCorporateBoard();
|
|
1398
|
+
while (reader.pos < end) {
|
|
1399
|
+
const tag = reader.uint32();
|
|
1400
|
+
switch (tag >>> 3) {
|
|
1401
|
+
case 1: {
|
|
1402
|
+
if (tag !== 10) {
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1405
|
+
message.boardId = reader.string();
|
|
1406
|
+
continue;
|
|
1407
|
+
}
|
|
1408
|
+
case 2: {
|
|
1409
|
+
if (tag !== 18) {
|
|
1410
|
+
break;
|
|
1411
|
+
}
|
|
1412
|
+
message.entityId = reader.string();
|
|
1413
|
+
continue;
|
|
1414
|
+
}
|
|
1415
|
+
case 3: {
|
|
1416
|
+
if (tag !== 26) {
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
message.directors.push(exports.Director.decode(reader, reader.uint32()));
|
|
1420
|
+
continue;
|
|
1421
|
+
}
|
|
1422
|
+
case 4: {
|
|
1423
|
+
if (tag !== 34) {
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1426
|
+
message.seats = exports.SeatInfo.decode(reader, reader.uint32());
|
|
1427
|
+
continue;
|
|
1428
|
+
}
|
|
1429
|
+
case 5: {
|
|
1430
|
+
if (tag !== 42) {
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1433
|
+
message.quorumRules = exports.QuorumRules.decode(reader, reader.uint32());
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
case 6: {
|
|
1437
|
+
if (tag !== 50) {
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1440
|
+
message.currentMeeting = exports.BoardMeeting.decode(reader, reader.uint32());
|
|
1441
|
+
continue;
|
|
1442
|
+
}
|
|
1443
|
+
case 7: {
|
|
1444
|
+
if (tag !== 58) {
|
|
1445
|
+
break;
|
|
1446
|
+
}
|
|
1447
|
+
message.meetingHistory.push(exports.BoardMeeting.decode(reader, reader.uint32()));
|
|
1448
|
+
continue;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
reader.skip(tag & 7);
|
|
1455
|
+
}
|
|
1456
|
+
return message;
|
|
1457
|
+
},
|
|
1458
|
+
fromJSON(object) {
|
|
1459
|
+
return {
|
|
1460
|
+
boardId: isSet(object.boardId)
|
|
1461
|
+
? globalThis.String(object.boardId)
|
|
1462
|
+
: isSet(object.board_id)
|
|
1463
|
+
? globalThis.String(object.board_id)
|
|
1464
|
+
: "",
|
|
1465
|
+
entityId: isSet(object.entityId)
|
|
1466
|
+
? globalThis.String(object.entityId)
|
|
1467
|
+
: isSet(object.entity_id)
|
|
1468
|
+
? globalThis.String(object.entity_id)
|
|
1469
|
+
: "",
|
|
1470
|
+
directors: globalThis.Array.isArray(object?.directors)
|
|
1471
|
+
? object.directors.map((e) => exports.Director.fromJSON(e))
|
|
1472
|
+
: [],
|
|
1473
|
+
seats: isSet(object.seats) ? exports.SeatInfo.fromJSON(object.seats) : undefined,
|
|
1474
|
+
quorumRules: isSet(object.quorumRules)
|
|
1475
|
+
? exports.QuorumRules.fromJSON(object.quorumRules)
|
|
1476
|
+
: isSet(object.quorum_rules)
|
|
1477
|
+
? exports.QuorumRules.fromJSON(object.quorum_rules)
|
|
1478
|
+
: undefined,
|
|
1479
|
+
currentMeeting: isSet(object.currentMeeting)
|
|
1480
|
+
? exports.BoardMeeting.fromJSON(object.currentMeeting)
|
|
1481
|
+
: isSet(object.current_meeting)
|
|
1482
|
+
? exports.BoardMeeting.fromJSON(object.current_meeting)
|
|
1483
|
+
: undefined,
|
|
1484
|
+
meetingHistory: globalThis.Array.isArray(object?.meetingHistory)
|
|
1485
|
+
? object.meetingHistory.map((e) => exports.BoardMeeting.fromJSON(e))
|
|
1486
|
+
: globalThis.Array.isArray(object?.meeting_history)
|
|
1487
|
+
? object.meeting_history.map((e) => exports.BoardMeeting.fromJSON(e))
|
|
1488
|
+
: [],
|
|
1489
|
+
};
|
|
1490
|
+
},
|
|
1491
|
+
toJSON(message) {
|
|
1492
|
+
const obj = {};
|
|
1493
|
+
if (message.boardId !== "") {
|
|
1494
|
+
obj.boardId = message.boardId;
|
|
1495
|
+
}
|
|
1496
|
+
if (message.entityId !== "") {
|
|
1497
|
+
obj.entityId = message.entityId;
|
|
1498
|
+
}
|
|
1499
|
+
if (message.directors?.length) {
|
|
1500
|
+
obj.directors = message.directors.map((e) => exports.Director.toJSON(e));
|
|
1501
|
+
}
|
|
1502
|
+
if (message.seats !== undefined) {
|
|
1503
|
+
obj.seats = exports.SeatInfo.toJSON(message.seats);
|
|
1504
|
+
}
|
|
1505
|
+
if (message.quorumRules !== undefined) {
|
|
1506
|
+
obj.quorumRules = exports.QuorumRules.toJSON(message.quorumRules);
|
|
1507
|
+
}
|
|
1508
|
+
if (message.currentMeeting !== undefined) {
|
|
1509
|
+
obj.currentMeeting = exports.BoardMeeting.toJSON(message.currentMeeting);
|
|
1510
|
+
}
|
|
1511
|
+
if (message.meetingHistory?.length) {
|
|
1512
|
+
obj.meetingHistory = message.meetingHistory.map((e) => exports.BoardMeeting.toJSON(e));
|
|
1513
|
+
}
|
|
1514
|
+
return obj;
|
|
1515
|
+
},
|
|
1516
|
+
create(base) {
|
|
1517
|
+
return exports.CorporateBoard.fromPartial(base ?? {});
|
|
1518
|
+
},
|
|
1519
|
+
fromPartial(object) {
|
|
1520
|
+
const message = createBaseCorporateBoard();
|
|
1521
|
+
message.boardId = object.boardId ?? "";
|
|
1522
|
+
message.entityId = object.entityId ?? "";
|
|
1523
|
+
message.directors = object.directors?.map((e) => exports.Director.fromPartial(e)) || [];
|
|
1524
|
+
message.seats = (object.seats !== undefined && object.seats !== null)
|
|
1525
|
+
? exports.SeatInfo.fromPartial(object.seats)
|
|
1526
|
+
: undefined;
|
|
1527
|
+
message.quorumRules = (object.quorumRules !== undefined && object.quorumRules !== null)
|
|
1528
|
+
? exports.QuorumRules.fromPartial(object.quorumRules)
|
|
1529
|
+
: undefined;
|
|
1530
|
+
message.currentMeeting = (object.currentMeeting !== undefined && object.currentMeeting !== null)
|
|
1531
|
+
? exports.BoardMeeting.fromPartial(object.currentMeeting)
|
|
1532
|
+
: undefined;
|
|
1533
|
+
message.meetingHistory = object.meetingHistory?.map((e) => exports.BoardMeeting.fromPartial(e)) || [];
|
|
1534
|
+
return message;
|
|
1535
|
+
},
|
|
1536
|
+
};
|
|
1537
|
+
function createBaseDirector() {
|
|
1538
|
+
return {
|
|
1539
|
+
directorId: "",
|
|
1540
|
+
name: "",
|
|
1541
|
+
email: "",
|
|
1542
|
+
termStart: undefined,
|
|
1543
|
+
termEnd: undefined,
|
|
1544
|
+
status: DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED,
|
|
1545
|
+
isIndependent: false,
|
|
1546
|
+
isChair: false,
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
exports.Director = {
|
|
1550
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1551
|
+
if (message.directorId !== "") {
|
|
1552
|
+
writer.uint32(10).string(message.directorId);
|
|
1553
|
+
}
|
|
1554
|
+
if (message.name !== "") {
|
|
1555
|
+
writer.uint32(18).string(message.name);
|
|
1556
|
+
}
|
|
1557
|
+
if (message.email !== "") {
|
|
1558
|
+
writer.uint32(26).string(message.email);
|
|
1559
|
+
}
|
|
1560
|
+
if (message.termStart !== undefined) {
|
|
1561
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.termStart), writer.uint32(34).fork()).join();
|
|
1562
|
+
}
|
|
1563
|
+
if (message.termEnd !== undefined) {
|
|
1564
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.termEnd), writer.uint32(42).fork()).join();
|
|
1565
|
+
}
|
|
1566
|
+
if (message.status !== DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED) {
|
|
1567
|
+
writer.uint32(48).int32(directorStatusToNumber(message.status));
|
|
1568
|
+
}
|
|
1569
|
+
if (message.isIndependent !== false) {
|
|
1570
|
+
writer.uint32(56).bool(message.isIndependent);
|
|
1571
|
+
}
|
|
1572
|
+
if (message.isChair !== false) {
|
|
1573
|
+
writer.uint32(64).bool(message.isChair);
|
|
1574
|
+
}
|
|
1575
|
+
return writer;
|
|
1576
|
+
},
|
|
1577
|
+
decode(input, length) {
|
|
1578
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1579
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1580
|
+
const message = createBaseDirector();
|
|
1581
|
+
while (reader.pos < end) {
|
|
1582
|
+
const tag = reader.uint32();
|
|
1583
|
+
switch (tag >>> 3) {
|
|
1584
|
+
case 1: {
|
|
1585
|
+
if (tag !== 10) {
|
|
1586
|
+
break;
|
|
1587
|
+
}
|
|
1588
|
+
message.directorId = reader.string();
|
|
1589
|
+
continue;
|
|
1590
|
+
}
|
|
1591
|
+
case 2: {
|
|
1592
|
+
if (tag !== 18) {
|
|
1593
|
+
break;
|
|
1594
|
+
}
|
|
1595
|
+
message.name = reader.string();
|
|
1596
|
+
continue;
|
|
1597
|
+
}
|
|
1598
|
+
case 3: {
|
|
1599
|
+
if (tag !== 26) {
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
message.email = reader.string();
|
|
1603
|
+
continue;
|
|
1604
|
+
}
|
|
1605
|
+
case 4: {
|
|
1606
|
+
if (tag !== 34) {
|
|
1607
|
+
break;
|
|
1608
|
+
}
|
|
1609
|
+
message.termStart = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
1610
|
+
continue;
|
|
1611
|
+
}
|
|
1612
|
+
case 5: {
|
|
1613
|
+
if (tag !== 42) {
|
|
1614
|
+
break;
|
|
1615
|
+
}
|
|
1616
|
+
message.termEnd = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
1617
|
+
continue;
|
|
1618
|
+
}
|
|
1619
|
+
case 6: {
|
|
1620
|
+
if (tag !== 48) {
|
|
1621
|
+
break;
|
|
1622
|
+
}
|
|
1623
|
+
message.status = directorStatusFromJSON(reader.int32());
|
|
1624
|
+
continue;
|
|
1625
|
+
}
|
|
1626
|
+
case 7: {
|
|
1627
|
+
if (tag !== 56) {
|
|
1628
|
+
break;
|
|
1629
|
+
}
|
|
1630
|
+
message.isIndependent = reader.bool();
|
|
1631
|
+
continue;
|
|
1632
|
+
}
|
|
1633
|
+
case 8: {
|
|
1634
|
+
if (tag !== 64) {
|
|
1635
|
+
break;
|
|
1636
|
+
}
|
|
1637
|
+
message.isChair = reader.bool();
|
|
1638
|
+
continue;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1642
|
+
break;
|
|
1643
|
+
}
|
|
1644
|
+
reader.skip(tag & 7);
|
|
1645
|
+
}
|
|
1646
|
+
return message;
|
|
1647
|
+
},
|
|
1648
|
+
fromJSON(object) {
|
|
1649
|
+
return {
|
|
1650
|
+
directorId: isSet(object.directorId)
|
|
1651
|
+
? globalThis.String(object.directorId)
|
|
1652
|
+
: isSet(object.director_id)
|
|
1653
|
+
? globalThis.String(object.director_id)
|
|
1654
|
+
: "",
|
|
1655
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1656
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
1657
|
+
termStart: isSet(object.termStart)
|
|
1658
|
+
? fromJsonTimestamp(object.termStart)
|
|
1659
|
+
: isSet(object.term_start)
|
|
1660
|
+
? fromJsonTimestamp(object.term_start)
|
|
1661
|
+
: undefined,
|
|
1662
|
+
termEnd: isSet(object.termEnd)
|
|
1663
|
+
? fromJsonTimestamp(object.termEnd)
|
|
1664
|
+
: isSet(object.term_end)
|
|
1665
|
+
? fromJsonTimestamp(object.term_end)
|
|
1666
|
+
: undefined,
|
|
1667
|
+
status: isSet(object.status) ? directorStatusFromJSON(object.status) : DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED,
|
|
1668
|
+
isIndependent: isSet(object.isIndependent)
|
|
1669
|
+
? globalThis.Boolean(object.isIndependent)
|
|
1670
|
+
: isSet(object.is_independent)
|
|
1671
|
+
? globalThis.Boolean(object.is_independent)
|
|
1672
|
+
: false,
|
|
1673
|
+
isChair: isSet(object.isChair)
|
|
1674
|
+
? globalThis.Boolean(object.isChair)
|
|
1675
|
+
: isSet(object.is_chair)
|
|
1676
|
+
? globalThis.Boolean(object.is_chair)
|
|
1677
|
+
: false,
|
|
1678
|
+
};
|
|
1679
|
+
},
|
|
1680
|
+
toJSON(message) {
|
|
1681
|
+
const obj = {};
|
|
1682
|
+
if (message.directorId !== "") {
|
|
1683
|
+
obj.directorId = message.directorId;
|
|
1684
|
+
}
|
|
1685
|
+
if (message.name !== "") {
|
|
1686
|
+
obj.name = message.name;
|
|
1687
|
+
}
|
|
1688
|
+
if (message.email !== "") {
|
|
1689
|
+
obj.email = message.email;
|
|
1690
|
+
}
|
|
1691
|
+
if (message.termStart !== undefined) {
|
|
1692
|
+
obj.termStart = message.termStart.toISOString();
|
|
1693
|
+
}
|
|
1694
|
+
if (message.termEnd !== undefined) {
|
|
1695
|
+
obj.termEnd = message.termEnd.toISOString();
|
|
1696
|
+
}
|
|
1697
|
+
if (message.status !== DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED) {
|
|
1698
|
+
obj.status = directorStatusToJSON(message.status);
|
|
1699
|
+
}
|
|
1700
|
+
if (message.isIndependent !== false) {
|
|
1701
|
+
obj.isIndependent = message.isIndependent;
|
|
1702
|
+
}
|
|
1703
|
+
if (message.isChair !== false) {
|
|
1704
|
+
obj.isChair = message.isChair;
|
|
1705
|
+
}
|
|
1706
|
+
return obj;
|
|
1707
|
+
},
|
|
1708
|
+
create(base) {
|
|
1709
|
+
return exports.Director.fromPartial(base ?? {});
|
|
1710
|
+
},
|
|
1711
|
+
fromPartial(object) {
|
|
1712
|
+
const message = createBaseDirector();
|
|
1713
|
+
message.directorId = object.directorId ?? "";
|
|
1714
|
+
message.name = object.name ?? "";
|
|
1715
|
+
message.email = object.email ?? "";
|
|
1716
|
+
message.termStart = object.termStart ?? undefined;
|
|
1717
|
+
message.termEnd = object.termEnd ?? undefined;
|
|
1718
|
+
message.status = object.status ?? DirectorStatus.DIRECTOR_STATUS_UNSPECIFIED;
|
|
1719
|
+
message.isIndependent = object.isIndependent ?? false;
|
|
1720
|
+
message.isChair = object.isChair ?? false;
|
|
1721
|
+
return message;
|
|
1722
|
+
},
|
|
1723
|
+
};
|
|
1724
|
+
function createBaseSeatInfo() {
|
|
1725
|
+
return { authorized: 0, filled: 0, vacant: 0 };
|
|
1726
|
+
}
|
|
1727
|
+
exports.SeatInfo = {
|
|
1728
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1729
|
+
if (message.authorized !== 0) {
|
|
1730
|
+
writer.uint32(8).int32(message.authorized);
|
|
1731
|
+
}
|
|
1732
|
+
if (message.filled !== 0) {
|
|
1733
|
+
writer.uint32(16).int32(message.filled);
|
|
1734
|
+
}
|
|
1735
|
+
if (message.vacant !== 0) {
|
|
1736
|
+
writer.uint32(24).int32(message.vacant);
|
|
1737
|
+
}
|
|
1738
|
+
return writer;
|
|
1739
|
+
},
|
|
1740
|
+
decode(input, length) {
|
|
1741
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1742
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1743
|
+
const message = createBaseSeatInfo();
|
|
1744
|
+
while (reader.pos < end) {
|
|
1745
|
+
const tag = reader.uint32();
|
|
1746
|
+
switch (tag >>> 3) {
|
|
1747
|
+
case 1: {
|
|
1748
|
+
if (tag !== 8) {
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
message.authorized = reader.int32();
|
|
1752
|
+
continue;
|
|
1753
|
+
}
|
|
1754
|
+
case 2: {
|
|
1755
|
+
if (tag !== 16) {
|
|
1756
|
+
break;
|
|
1757
|
+
}
|
|
1758
|
+
message.filled = reader.int32();
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
case 3: {
|
|
1762
|
+
if (tag !== 24) {
|
|
1763
|
+
break;
|
|
1764
|
+
}
|
|
1765
|
+
message.vacant = reader.int32();
|
|
1766
|
+
continue;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1770
|
+
break;
|
|
1771
|
+
}
|
|
1772
|
+
reader.skip(tag & 7);
|
|
1773
|
+
}
|
|
1774
|
+
return message;
|
|
1775
|
+
},
|
|
1776
|
+
fromJSON(object) {
|
|
1777
|
+
return {
|
|
1778
|
+
authorized: isSet(object.authorized) ? globalThis.Number(object.authorized) : 0,
|
|
1779
|
+
filled: isSet(object.filled) ? globalThis.Number(object.filled) : 0,
|
|
1780
|
+
vacant: isSet(object.vacant) ? globalThis.Number(object.vacant) : 0,
|
|
1781
|
+
};
|
|
1782
|
+
},
|
|
1783
|
+
toJSON(message) {
|
|
1784
|
+
const obj = {};
|
|
1785
|
+
if (message.authorized !== 0) {
|
|
1786
|
+
obj.authorized = Math.round(message.authorized);
|
|
1787
|
+
}
|
|
1788
|
+
if (message.filled !== 0) {
|
|
1789
|
+
obj.filled = Math.round(message.filled);
|
|
1790
|
+
}
|
|
1791
|
+
if (message.vacant !== 0) {
|
|
1792
|
+
obj.vacant = Math.round(message.vacant);
|
|
1793
|
+
}
|
|
1794
|
+
return obj;
|
|
1795
|
+
},
|
|
1796
|
+
create(base) {
|
|
1797
|
+
return exports.SeatInfo.fromPartial(base ?? {});
|
|
1798
|
+
},
|
|
1799
|
+
fromPartial(object) {
|
|
1800
|
+
const message = createBaseSeatInfo();
|
|
1801
|
+
message.authorized = object.authorized ?? 0;
|
|
1802
|
+
message.filled = object.filled ?? 0;
|
|
1803
|
+
message.vacant = object.vacant ?? 0;
|
|
1804
|
+
return message;
|
|
1805
|
+
},
|
|
1806
|
+
};
|
|
1807
|
+
function createBaseQuorumRules() {
|
|
1808
|
+
return { type: "", threshold: 0 };
|
|
1809
|
+
}
|
|
1810
|
+
exports.QuorumRules = {
|
|
1811
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1812
|
+
if (message.type !== "") {
|
|
1813
|
+
writer.uint32(10).string(message.type);
|
|
1814
|
+
}
|
|
1815
|
+
if (message.threshold !== 0) {
|
|
1816
|
+
writer.uint32(16).int32(message.threshold);
|
|
1817
|
+
}
|
|
1818
|
+
return writer;
|
|
1819
|
+
},
|
|
1820
|
+
decode(input, length) {
|
|
1821
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1822
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1823
|
+
const message = createBaseQuorumRules();
|
|
1824
|
+
while (reader.pos < end) {
|
|
1825
|
+
const tag = reader.uint32();
|
|
1826
|
+
switch (tag >>> 3) {
|
|
1827
|
+
case 1: {
|
|
1828
|
+
if (tag !== 10) {
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
message.type = reader.string();
|
|
1832
|
+
continue;
|
|
1833
|
+
}
|
|
1834
|
+
case 2: {
|
|
1835
|
+
if (tag !== 16) {
|
|
1836
|
+
break;
|
|
1837
|
+
}
|
|
1838
|
+
message.threshold = reader.int32();
|
|
1839
|
+
continue;
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1843
|
+
break;
|
|
1844
|
+
}
|
|
1845
|
+
reader.skip(tag & 7);
|
|
1846
|
+
}
|
|
1847
|
+
return message;
|
|
1848
|
+
},
|
|
1849
|
+
fromJSON(object) {
|
|
1850
|
+
return {
|
|
1851
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
1852
|
+
threshold: isSet(object.threshold) ? globalThis.Number(object.threshold) : 0,
|
|
1853
|
+
};
|
|
1854
|
+
},
|
|
1855
|
+
toJSON(message) {
|
|
1856
|
+
const obj = {};
|
|
1857
|
+
if (message.type !== "") {
|
|
1858
|
+
obj.type = message.type;
|
|
1859
|
+
}
|
|
1860
|
+
if (message.threshold !== 0) {
|
|
1861
|
+
obj.threshold = Math.round(message.threshold);
|
|
1862
|
+
}
|
|
1863
|
+
return obj;
|
|
1864
|
+
},
|
|
1865
|
+
create(base) {
|
|
1866
|
+
return exports.QuorumRules.fromPartial(base ?? {});
|
|
1867
|
+
},
|
|
1868
|
+
fromPartial(object) {
|
|
1869
|
+
const message = createBaseQuorumRules();
|
|
1870
|
+
message.type = object.type ?? "";
|
|
1871
|
+
message.threshold = object.threshold ?? 0;
|
|
1872
|
+
return message;
|
|
1873
|
+
},
|
|
1874
|
+
};
|
|
1875
|
+
function createBaseBoardMeeting() {
|
|
1876
|
+
return {
|
|
1877
|
+
meetingId: "",
|
|
1878
|
+
type: BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED,
|
|
1879
|
+
scheduledDate: undefined,
|
|
1880
|
+
attendees: [],
|
|
1881
|
+
quorumPresent: false,
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
exports.BoardMeeting = {
|
|
1885
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1886
|
+
if (message.meetingId !== "") {
|
|
1887
|
+
writer.uint32(10).string(message.meetingId);
|
|
1888
|
+
}
|
|
1889
|
+
if (message.type !== BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED) {
|
|
1890
|
+
writer.uint32(16).int32(boardMeetingTypeToNumber(message.type));
|
|
1891
|
+
}
|
|
1892
|
+
if (message.scheduledDate !== undefined) {
|
|
1893
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.scheduledDate), writer.uint32(26).fork()).join();
|
|
1894
|
+
}
|
|
1895
|
+
for (const v of message.attendees) {
|
|
1896
|
+
exports.MeetingAttendee.encode(v, writer.uint32(34).fork()).join();
|
|
1897
|
+
}
|
|
1898
|
+
if (message.quorumPresent !== false) {
|
|
1899
|
+
writer.uint32(40).bool(message.quorumPresent);
|
|
1900
|
+
}
|
|
1901
|
+
return writer;
|
|
1902
|
+
},
|
|
1903
|
+
decode(input, length) {
|
|
1904
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1905
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1906
|
+
const message = createBaseBoardMeeting();
|
|
1907
|
+
while (reader.pos < end) {
|
|
1908
|
+
const tag = reader.uint32();
|
|
1909
|
+
switch (tag >>> 3) {
|
|
1910
|
+
case 1: {
|
|
1911
|
+
if (tag !== 10) {
|
|
1912
|
+
break;
|
|
1913
|
+
}
|
|
1914
|
+
message.meetingId = reader.string();
|
|
1915
|
+
continue;
|
|
1916
|
+
}
|
|
1917
|
+
case 2: {
|
|
1918
|
+
if (tag !== 16) {
|
|
1919
|
+
break;
|
|
1920
|
+
}
|
|
1921
|
+
message.type = boardMeetingTypeFromJSON(reader.int32());
|
|
1922
|
+
continue;
|
|
1923
|
+
}
|
|
1924
|
+
case 3: {
|
|
1925
|
+
if (tag !== 26) {
|
|
1926
|
+
break;
|
|
1927
|
+
}
|
|
1928
|
+
message.scheduledDate = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
1929
|
+
continue;
|
|
1930
|
+
}
|
|
1931
|
+
case 4: {
|
|
1932
|
+
if (tag !== 34) {
|
|
1933
|
+
break;
|
|
1934
|
+
}
|
|
1935
|
+
message.attendees.push(exports.MeetingAttendee.decode(reader, reader.uint32()));
|
|
1936
|
+
continue;
|
|
1937
|
+
}
|
|
1938
|
+
case 5: {
|
|
1939
|
+
if (tag !== 40) {
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
message.quorumPresent = reader.bool();
|
|
1943
|
+
continue;
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1947
|
+
break;
|
|
1948
|
+
}
|
|
1949
|
+
reader.skip(tag & 7);
|
|
1950
|
+
}
|
|
1951
|
+
return message;
|
|
1952
|
+
},
|
|
1953
|
+
fromJSON(object) {
|
|
1954
|
+
return {
|
|
1955
|
+
meetingId: isSet(object.meetingId)
|
|
1956
|
+
? globalThis.String(object.meetingId)
|
|
1957
|
+
: isSet(object.meeting_id)
|
|
1958
|
+
? globalThis.String(object.meeting_id)
|
|
1959
|
+
: "",
|
|
1960
|
+
type: isSet(object.type)
|
|
1961
|
+
? boardMeetingTypeFromJSON(object.type)
|
|
1962
|
+
: BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED,
|
|
1963
|
+
scheduledDate: isSet(object.scheduledDate)
|
|
1964
|
+
? fromJsonTimestamp(object.scheduledDate)
|
|
1965
|
+
: isSet(object.scheduled_date)
|
|
1966
|
+
? fromJsonTimestamp(object.scheduled_date)
|
|
1967
|
+
: undefined,
|
|
1968
|
+
attendees: globalThis.Array.isArray(object?.attendees)
|
|
1969
|
+
? object.attendees.map((e) => exports.MeetingAttendee.fromJSON(e))
|
|
1970
|
+
: [],
|
|
1971
|
+
quorumPresent: isSet(object.quorumPresent)
|
|
1972
|
+
? globalThis.Boolean(object.quorumPresent)
|
|
1973
|
+
: isSet(object.quorum_present)
|
|
1974
|
+
? globalThis.Boolean(object.quorum_present)
|
|
1975
|
+
: false,
|
|
1976
|
+
};
|
|
1977
|
+
},
|
|
1978
|
+
toJSON(message) {
|
|
1979
|
+
const obj = {};
|
|
1980
|
+
if (message.meetingId !== "") {
|
|
1981
|
+
obj.meetingId = message.meetingId;
|
|
1982
|
+
}
|
|
1983
|
+
if (message.type !== BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED) {
|
|
1984
|
+
obj.type = boardMeetingTypeToJSON(message.type);
|
|
1985
|
+
}
|
|
1986
|
+
if (message.scheduledDate !== undefined) {
|
|
1987
|
+
obj.scheduledDate = message.scheduledDate.toISOString();
|
|
1988
|
+
}
|
|
1989
|
+
if (message.attendees?.length) {
|
|
1990
|
+
obj.attendees = message.attendees.map((e) => exports.MeetingAttendee.toJSON(e));
|
|
1991
|
+
}
|
|
1992
|
+
if (message.quorumPresent !== false) {
|
|
1993
|
+
obj.quorumPresent = message.quorumPresent;
|
|
1994
|
+
}
|
|
1995
|
+
return obj;
|
|
1996
|
+
},
|
|
1997
|
+
create(base) {
|
|
1998
|
+
return exports.BoardMeeting.fromPartial(base ?? {});
|
|
1999
|
+
},
|
|
2000
|
+
fromPartial(object) {
|
|
2001
|
+
const message = createBaseBoardMeeting();
|
|
2002
|
+
message.meetingId = object.meetingId ?? "";
|
|
2003
|
+
message.type = object.type ?? BoardMeetingType.BOARD_MEETING_TYPE_UNSPECIFIED;
|
|
2004
|
+
message.scheduledDate = object.scheduledDate ?? undefined;
|
|
2005
|
+
message.attendees = object.attendees?.map((e) => exports.MeetingAttendee.fromPartial(e)) || [];
|
|
2006
|
+
message.quorumPresent = object.quorumPresent ?? false;
|
|
2007
|
+
return message;
|
|
2008
|
+
},
|
|
2009
|
+
};
|
|
2010
|
+
function createBaseMeetingAttendee() {
|
|
2011
|
+
return { directorId: "", present: false };
|
|
2012
|
+
}
|
|
2013
|
+
exports.MeetingAttendee = {
|
|
2014
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2015
|
+
if (message.directorId !== "") {
|
|
2016
|
+
writer.uint32(10).string(message.directorId);
|
|
2017
|
+
}
|
|
2018
|
+
if (message.present !== false) {
|
|
2019
|
+
writer.uint32(16).bool(message.present);
|
|
2020
|
+
}
|
|
2021
|
+
return writer;
|
|
2022
|
+
},
|
|
2023
|
+
decode(input, length) {
|
|
2024
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2025
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2026
|
+
const message = createBaseMeetingAttendee();
|
|
2027
|
+
while (reader.pos < end) {
|
|
2028
|
+
const tag = reader.uint32();
|
|
2029
|
+
switch (tag >>> 3) {
|
|
2030
|
+
case 1: {
|
|
2031
|
+
if (tag !== 10) {
|
|
2032
|
+
break;
|
|
2033
|
+
}
|
|
2034
|
+
message.directorId = reader.string();
|
|
2035
|
+
continue;
|
|
2036
|
+
}
|
|
2037
|
+
case 2: {
|
|
2038
|
+
if (tag !== 16) {
|
|
2039
|
+
break;
|
|
2040
|
+
}
|
|
2041
|
+
message.present = reader.bool();
|
|
2042
|
+
continue;
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2046
|
+
break;
|
|
2047
|
+
}
|
|
2048
|
+
reader.skip(tag & 7);
|
|
2049
|
+
}
|
|
2050
|
+
return message;
|
|
2051
|
+
},
|
|
2052
|
+
fromJSON(object) {
|
|
2053
|
+
return {
|
|
2054
|
+
directorId: isSet(object.directorId)
|
|
2055
|
+
? globalThis.String(object.directorId)
|
|
2056
|
+
: isSet(object.director_id)
|
|
2057
|
+
? globalThis.String(object.director_id)
|
|
2058
|
+
: "",
|
|
2059
|
+
present: isSet(object.present) ? globalThis.Boolean(object.present) : false,
|
|
2060
|
+
};
|
|
2061
|
+
},
|
|
2062
|
+
toJSON(message) {
|
|
2063
|
+
const obj = {};
|
|
2064
|
+
if (message.directorId !== "") {
|
|
2065
|
+
obj.directorId = message.directorId;
|
|
2066
|
+
}
|
|
2067
|
+
if (message.present !== false) {
|
|
2068
|
+
obj.present = message.present;
|
|
2069
|
+
}
|
|
2070
|
+
return obj;
|
|
2071
|
+
},
|
|
2072
|
+
create(base) {
|
|
2073
|
+
return exports.MeetingAttendee.fromPartial(base ?? {});
|
|
2074
|
+
},
|
|
2075
|
+
fromPartial(object) {
|
|
2076
|
+
const message = createBaseMeetingAttendee();
|
|
2077
|
+
message.directorId = object.directorId ?? "";
|
|
2078
|
+
message.present = object.present ?? false;
|
|
2079
|
+
return message;
|
|
2080
|
+
},
|
|
2081
|
+
};
|
|
2082
|
+
function createBaseCorporateOfficers() {
|
|
2083
|
+
return { entityId: "", officers: [], actionHistory: [] };
|
|
2084
|
+
}
|
|
2085
|
+
exports.CorporateOfficers = {
|
|
2086
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2087
|
+
if (message.entityId !== "") {
|
|
2088
|
+
writer.uint32(10).string(message.entityId);
|
|
2089
|
+
}
|
|
2090
|
+
for (const v of message.officers) {
|
|
2091
|
+
exports.Officer.encode(v, writer.uint32(18).fork()).join();
|
|
2092
|
+
}
|
|
2093
|
+
for (const v of message.actionHistory) {
|
|
2094
|
+
exports.OfficerAction.encode(v, writer.uint32(26).fork()).join();
|
|
2095
|
+
}
|
|
2096
|
+
return writer;
|
|
2097
|
+
},
|
|
2098
|
+
decode(input, length) {
|
|
2099
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2100
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2101
|
+
const message = createBaseCorporateOfficers();
|
|
2102
|
+
while (reader.pos < end) {
|
|
2103
|
+
const tag = reader.uint32();
|
|
2104
|
+
switch (tag >>> 3) {
|
|
2105
|
+
case 1: {
|
|
2106
|
+
if (tag !== 10) {
|
|
2107
|
+
break;
|
|
2108
|
+
}
|
|
2109
|
+
message.entityId = reader.string();
|
|
2110
|
+
continue;
|
|
2111
|
+
}
|
|
2112
|
+
case 2: {
|
|
2113
|
+
if (tag !== 18) {
|
|
2114
|
+
break;
|
|
2115
|
+
}
|
|
2116
|
+
message.officers.push(exports.Officer.decode(reader, reader.uint32()));
|
|
2117
|
+
continue;
|
|
2118
|
+
}
|
|
2119
|
+
case 3: {
|
|
2120
|
+
if (tag !== 26) {
|
|
2121
|
+
break;
|
|
2122
|
+
}
|
|
2123
|
+
message.actionHistory.push(exports.OfficerAction.decode(reader, reader.uint32()));
|
|
2124
|
+
continue;
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2128
|
+
break;
|
|
2129
|
+
}
|
|
2130
|
+
reader.skip(tag & 7);
|
|
2131
|
+
}
|
|
2132
|
+
return message;
|
|
2133
|
+
},
|
|
2134
|
+
fromJSON(object) {
|
|
2135
|
+
return {
|
|
2136
|
+
entityId: isSet(object.entityId)
|
|
2137
|
+
? globalThis.String(object.entityId)
|
|
2138
|
+
: isSet(object.entity_id)
|
|
2139
|
+
? globalThis.String(object.entity_id)
|
|
2140
|
+
: "",
|
|
2141
|
+
officers: globalThis.Array.isArray(object?.officers) ? object.officers.map((e) => exports.Officer.fromJSON(e)) : [],
|
|
2142
|
+
actionHistory: globalThis.Array.isArray(object?.actionHistory)
|
|
2143
|
+
? object.actionHistory.map((e) => exports.OfficerAction.fromJSON(e))
|
|
2144
|
+
: globalThis.Array.isArray(object?.action_history)
|
|
2145
|
+
? object.action_history.map((e) => exports.OfficerAction.fromJSON(e))
|
|
2146
|
+
: [],
|
|
2147
|
+
};
|
|
2148
|
+
},
|
|
2149
|
+
toJSON(message) {
|
|
2150
|
+
const obj = {};
|
|
2151
|
+
if (message.entityId !== "") {
|
|
2152
|
+
obj.entityId = message.entityId;
|
|
2153
|
+
}
|
|
2154
|
+
if (message.officers?.length) {
|
|
2155
|
+
obj.officers = message.officers.map((e) => exports.Officer.toJSON(e));
|
|
2156
|
+
}
|
|
2157
|
+
if (message.actionHistory?.length) {
|
|
2158
|
+
obj.actionHistory = message.actionHistory.map((e) => exports.OfficerAction.toJSON(e));
|
|
2159
|
+
}
|
|
2160
|
+
return obj;
|
|
2161
|
+
},
|
|
2162
|
+
create(base) {
|
|
2163
|
+
return exports.CorporateOfficers.fromPartial(base ?? {});
|
|
2164
|
+
},
|
|
2165
|
+
fromPartial(object) {
|
|
2166
|
+
const message = createBaseCorporateOfficers();
|
|
2167
|
+
message.entityId = object.entityId ?? "";
|
|
2168
|
+
message.officers = object.officers?.map((e) => exports.Officer.fromPartial(e)) || [];
|
|
2169
|
+
message.actionHistory = object.actionHistory?.map((e) => exports.OfficerAction.fromPartial(e)) || [];
|
|
2170
|
+
return message;
|
|
2171
|
+
},
|
|
2172
|
+
};
|
|
2173
|
+
function createBaseOfficer() {
|
|
2174
|
+
return {
|
|
2175
|
+
officerId: "",
|
|
2176
|
+
name: "",
|
|
2177
|
+
title: "",
|
|
2178
|
+
email: "",
|
|
2179
|
+
appointedAt: undefined,
|
|
2180
|
+
appointedBy: "",
|
|
2181
|
+
status: OfficerStatus.OFFICER_STATUS_UNSPECIFIED,
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
exports.Officer = {
|
|
2185
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2186
|
+
if (message.officerId !== "") {
|
|
2187
|
+
writer.uint32(10).string(message.officerId);
|
|
2188
|
+
}
|
|
2189
|
+
if (message.name !== "") {
|
|
2190
|
+
writer.uint32(18).string(message.name);
|
|
2191
|
+
}
|
|
2192
|
+
if (message.title !== "") {
|
|
2193
|
+
writer.uint32(26).string(message.title);
|
|
2194
|
+
}
|
|
2195
|
+
if (message.email !== "") {
|
|
2196
|
+
writer.uint32(34).string(message.email);
|
|
2197
|
+
}
|
|
2198
|
+
if (message.appointedAt !== undefined) {
|
|
2199
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.appointedAt), writer.uint32(42).fork()).join();
|
|
2200
|
+
}
|
|
2201
|
+
if (message.appointedBy !== "") {
|
|
2202
|
+
writer.uint32(50).string(message.appointedBy);
|
|
2203
|
+
}
|
|
2204
|
+
if (message.status !== OfficerStatus.OFFICER_STATUS_UNSPECIFIED) {
|
|
2205
|
+
writer.uint32(56).int32(officerStatusToNumber(message.status));
|
|
2206
|
+
}
|
|
2207
|
+
return writer;
|
|
2208
|
+
},
|
|
2209
|
+
decode(input, length) {
|
|
2210
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2211
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2212
|
+
const message = createBaseOfficer();
|
|
2213
|
+
while (reader.pos < end) {
|
|
2214
|
+
const tag = reader.uint32();
|
|
2215
|
+
switch (tag >>> 3) {
|
|
2216
|
+
case 1: {
|
|
2217
|
+
if (tag !== 10) {
|
|
2218
|
+
break;
|
|
2219
|
+
}
|
|
2220
|
+
message.officerId = reader.string();
|
|
2221
|
+
continue;
|
|
2222
|
+
}
|
|
2223
|
+
case 2: {
|
|
2224
|
+
if (tag !== 18) {
|
|
2225
|
+
break;
|
|
2226
|
+
}
|
|
2227
|
+
message.name = reader.string();
|
|
2228
|
+
continue;
|
|
2229
|
+
}
|
|
2230
|
+
case 3: {
|
|
2231
|
+
if (tag !== 26) {
|
|
2232
|
+
break;
|
|
2233
|
+
}
|
|
2234
|
+
message.title = reader.string();
|
|
2235
|
+
continue;
|
|
2236
|
+
}
|
|
2237
|
+
case 4: {
|
|
2238
|
+
if (tag !== 34) {
|
|
2239
|
+
break;
|
|
2240
|
+
}
|
|
2241
|
+
message.email = reader.string();
|
|
2242
|
+
continue;
|
|
2243
|
+
}
|
|
2244
|
+
case 5: {
|
|
2245
|
+
if (tag !== 42) {
|
|
2246
|
+
break;
|
|
2247
|
+
}
|
|
2248
|
+
message.appointedAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
2249
|
+
continue;
|
|
2250
|
+
}
|
|
2251
|
+
case 6: {
|
|
2252
|
+
if (tag !== 50) {
|
|
2253
|
+
break;
|
|
2254
|
+
}
|
|
2255
|
+
message.appointedBy = reader.string();
|
|
2256
|
+
continue;
|
|
2257
|
+
}
|
|
2258
|
+
case 7: {
|
|
2259
|
+
if (tag !== 56) {
|
|
2260
|
+
break;
|
|
2261
|
+
}
|
|
2262
|
+
message.status = officerStatusFromJSON(reader.int32());
|
|
2263
|
+
continue;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2267
|
+
break;
|
|
2268
|
+
}
|
|
2269
|
+
reader.skip(tag & 7);
|
|
2270
|
+
}
|
|
2271
|
+
return message;
|
|
2272
|
+
},
|
|
2273
|
+
fromJSON(object) {
|
|
2274
|
+
return {
|
|
2275
|
+
officerId: isSet(object.officerId)
|
|
2276
|
+
? globalThis.String(object.officerId)
|
|
2277
|
+
: isSet(object.officer_id)
|
|
2278
|
+
? globalThis.String(object.officer_id)
|
|
2279
|
+
: "",
|
|
2280
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2281
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
2282
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
2283
|
+
appointedAt: isSet(object.appointedAt)
|
|
2284
|
+
? fromJsonTimestamp(object.appointedAt)
|
|
2285
|
+
: isSet(object.appointed_at)
|
|
2286
|
+
? fromJsonTimestamp(object.appointed_at)
|
|
2287
|
+
: undefined,
|
|
2288
|
+
appointedBy: isSet(object.appointedBy)
|
|
2289
|
+
? globalThis.String(object.appointedBy)
|
|
2290
|
+
: isSet(object.appointed_by)
|
|
2291
|
+
? globalThis.String(object.appointed_by)
|
|
2292
|
+
: "",
|
|
2293
|
+
status: isSet(object.status) ? officerStatusFromJSON(object.status) : OfficerStatus.OFFICER_STATUS_UNSPECIFIED,
|
|
2294
|
+
};
|
|
2295
|
+
},
|
|
2296
|
+
toJSON(message) {
|
|
2297
|
+
const obj = {};
|
|
2298
|
+
if (message.officerId !== "") {
|
|
2299
|
+
obj.officerId = message.officerId;
|
|
2300
|
+
}
|
|
2301
|
+
if (message.name !== "") {
|
|
2302
|
+
obj.name = message.name;
|
|
2303
|
+
}
|
|
2304
|
+
if (message.title !== "") {
|
|
2305
|
+
obj.title = message.title;
|
|
2306
|
+
}
|
|
2307
|
+
if (message.email !== "") {
|
|
2308
|
+
obj.email = message.email;
|
|
2309
|
+
}
|
|
2310
|
+
if (message.appointedAt !== undefined) {
|
|
2311
|
+
obj.appointedAt = message.appointedAt.toISOString();
|
|
2312
|
+
}
|
|
2313
|
+
if (message.appointedBy !== "") {
|
|
2314
|
+
obj.appointedBy = message.appointedBy;
|
|
2315
|
+
}
|
|
2316
|
+
if (message.status !== OfficerStatus.OFFICER_STATUS_UNSPECIFIED) {
|
|
2317
|
+
obj.status = officerStatusToJSON(message.status);
|
|
2318
|
+
}
|
|
2319
|
+
return obj;
|
|
2320
|
+
},
|
|
2321
|
+
create(base) {
|
|
2322
|
+
return exports.Officer.fromPartial(base ?? {});
|
|
2323
|
+
},
|
|
2324
|
+
fromPartial(object) {
|
|
2325
|
+
const message = createBaseOfficer();
|
|
2326
|
+
message.officerId = object.officerId ?? "";
|
|
2327
|
+
message.name = object.name ?? "";
|
|
2328
|
+
message.title = object.title ?? "";
|
|
2329
|
+
message.email = object.email ?? "";
|
|
2330
|
+
message.appointedAt = object.appointedAt ?? undefined;
|
|
2331
|
+
message.appointedBy = object.appointedBy ?? "";
|
|
2332
|
+
message.status = object.status ?? OfficerStatus.OFFICER_STATUS_UNSPECIFIED;
|
|
2333
|
+
return message;
|
|
2334
|
+
},
|
|
2335
|
+
};
|
|
2336
|
+
function createBaseOfficerAction() {
|
|
2337
|
+
return { actionType: "", officerId: "", at: undefined, by: "" };
|
|
2338
|
+
}
|
|
2339
|
+
exports.OfficerAction = {
|
|
2340
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2341
|
+
if (message.actionType !== "") {
|
|
2342
|
+
writer.uint32(10).string(message.actionType);
|
|
2343
|
+
}
|
|
2344
|
+
if (message.officerId !== "") {
|
|
2345
|
+
writer.uint32(18).string(message.officerId);
|
|
2346
|
+
}
|
|
2347
|
+
if (message.at !== undefined) {
|
|
2348
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.at), writer.uint32(26).fork()).join();
|
|
2349
|
+
}
|
|
2350
|
+
if (message.by !== "") {
|
|
2351
|
+
writer.uint32(34).string(message.by);
|
|
2352
|
+
}
|
|
2353
|
+
return writer;
|
|
2354
|
+
},
|
|
2355
|
+
decode(input, length) {
|
|
2356
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2357
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2358
|
+
const message = createBaseOfficerAction();
|
|
2359
|
+
while (reader.pos < end) {
|
|
2360
|
+
const tag = reader.uint32();
|
|
2361
|
+
switch (tag >>> 3) {
|
|
2362
|
+
case 1: {
|
|
2363
|
+
if (tag !== 10) {
|
|
2364
|
+
break;
|
|
2365
|
+
}
|
|
2366
|
+
message.actionType = reader.string();
|
|
2367
|
+
continue;
|
|
2368
|
+
}
|
|
2369
|
+
case 2: {
|
|
2370
|
+
if (tag !== 18) {
|
|
2371
|
+
break;
|
|
2372
|
+
}
|
|
2373
|
+
message.officerId = reader.string();
|
|
2374
|
+
continue;
|
|
2375
|
+
}
|
|
2376
|
+
case 3: {
|
|
2377
|
+
if (tag !== 26) {
|
|
2378
|
+
break;
|
|
2379
|
+
}
|
|
2380
|
+
message.at = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
2381
|
+
continue;
|
|
2382
|
+
}
|
|
2383
|
+
case 4: {
|
|
2384
|
+
if (tag !== 34) {
|
|
2385
|
+
break;
|
|
2386
|
+
}
|
|
2387
|
+
message.by = reader.string();
|
|
2388
|
+
continue;
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2391
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2392
|
+
break;
|
|
2393
|
+
}
|
|
2394
|
+
reader.skip(tag & 7);
|
|
2395
|
+
}
|
|
2396
|
+
return message;
|
|
2397
|
+
},
|
|
2398
|
+
fromJSON(object) {
|
|
2399
|
+
return {
|
|
2400
|
+
actionType: isSet(object.actionType)
|
|
2401
|
+
? globalThis.String(object.actionType)
|
|
2402
|
+
: isSet(object.action_type)
|
|
2403
|
+
? globalThis.String(object.action_type)
|
|
2404
|
+
: "",
|
|
2405
|
+
officerId: isSet(object.officerId)
|
|
2406
|
+
? globalThis.String(object.officerId)
|
|
2407
|
+
: isSet(object.officer_id)
|
|
2408
|
+
? globalThis.String(object.officer_id)
|
|
2409
|
+
: "",
|
|
2410
|
+
at: isSet(object.at) ? fromJsonTimestamp(object.at) : undefined,
|
|
2411
|
+
by: isSet(object.by) ? globalThis.String(object.by) : "",
|
|
2412
|
+
};
|
|
2413
|
+
},
|
|
2414
|
+
toJSON(message) {
|
|
2415
|
+
const obj = {};
|
|
2416
|
+
if (message.actionType !== "") {
|
|
2417
|
+
obj.actionType = message.actionType;
|
|
2418
|
+
}
|
|
2419
|
+
if (message.officerId !== "") {
|
|
2420
|
+
obj.officerId = message.officerId;
|
|
2421
|
+
}
|
|
2422
|
+
if (message.at !== undefined) {
|
|
2423
|
+
obj.at = message.at.toISOString();
|
|
2424
|
+
}
|
|
2425
|
+
if (message.by !== "") {
|
|
2426
|
+
obj.by = message.by;
|
|
2427
|
+
}
|
|
2428
|
+
return obj;
|
|
2429
|
+
},
|
|
2430
|
+
create(base) {
|
|
2431
|
+
return exports.OfficerAction.fromPartial(base ?? {});
|
|
2432
|
+
},
|
|
2433
|
+
fromPartial(object) {
|
|
2434
|
+
const message = createBaseOfficerAction();
|
|
2435
|
+
message.actionType = object.actionType ?? "";
|
|
2436
|
+
message.officerId = object.officerId ?? "";
|
|
2437
|
+
message.at = object.at ?? undefined;
|
|
2438
|
+
message.by = object.by ?? "";
|
|
2439
|
+
return message;
|
|
2440
|
+
},
|
|
2441
|
+
};
|
|
2442
|
+
function createBaseCorporateShareholders() {
|
|
2443
|
+
return { entityId: "", shareholders: [], votingPower: {}, totalVotingPower: 0 };
|
|
2444
|
+
}
|
|
2445
|
+
exports.CorporateShareholders = {
|
|
2446
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2447
|
+
if (message.entityId !== "") {
|
|
2448
|
+
writer.uint32(10).string(message.entityId);
|
|
2449
|
+
}
|
|
2450
|
+
for (const v of message.shareholders) {
|
|
2451
|
+
exports.Shareholder.encode(v, writer.uint32(18).fork()).join();
|
|
2452
|
+
}
|
|
2453
|
+
globalThis.Object.entries(message.votingPower).forEach(([key, value]) => {
|
|
2454
|
+
exports.CorporateShareholders_VotingPowerEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
|
|
2455
|
+
});
|
|
2456
|
+
if (message.totalVotingPower !== 0) {
|
|
2457
|
+
writer.uint32(32).int64(message.totalVotingPower);
|
|
2458
|
+
}
|
|
2459
|
+
return writer;
|
|
2460
|
+
},
|
|
2461
|
+
decode(input, length) {
|
|
2462
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2463
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2464
|
+
const message = createBaseCorporateShareholders();
|
|
2465
|
+
while (reader.pos < end) {
|
|
2466
|
+
const tag = reader.uint32();
|
|
2467
|
+
switch (tag >>> 3) {
|
|
2468
|
+
case 1: {
|
|
2469
|
+
if (tag !== 10) {
|
|
2470
|
+
break;
|
|
2471
|
+
}
|
|
2472
|
+
message.entityId = reader.string();
|
|
2473
|
+
continue;
|
|
2474
|
+
}
|
|
2475
|
+
case 2: {
|
|
2476
|
+
if (tag !== 18) {
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2479
|
+
message.shareholders.push(exports.Shareholder.decode(reader, reader.uint32()));
|
|
2480
|
+
continue;
|
|
2481
|
+
}
|
|
2482
|
+
case 3: {
|
|
2483
|
+
if (tag !== 26) {
|
|
2484
|
+
break;
|
|
2485
|
+
}
|
|
2486
|
+
const entry3 = exports.CorporateShareholders_VotingPowerEntry.decode(reader, reader.uint32());
|
|
2487
|
+
if (entry3.value !== undefined) {
|
|
2488
|
+
message.votingPower[entry3.key] = entry3.value;
|
|
2489
|
+
}
|
|
2490
|
+
continue;
|
|
2491
|
+
}
|
|
2492
|
+
case 4: {
|
|
2493
|
+
if (tag !== 32) {
|
|
2494
|
+
break;
|
|
2495
|
+
}
|
|
2496
|
+
message.totalVotingPower = longToNumber(reader.int64());
|
|
2497
|
+
continue;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2501
|
+
break;
|
|
2502
|
+
}
|
|
2503
|
+
reader.skip(tag & 7);
|
|
2504
|
+
}
|
|
2505
|
+
return message;
|
|
2506
|
+
},
|
|
2507
|
+
fromJSON(object) {
|
|
2508
|
+
return {
|
|
2509
|
+
entityId: isSet(object.entityId)
|
|
2510
|
+
? globalThis.String(object.entityId)
|
|
2511
|
+
: isSet(object.entity_id)
|
|
2512
|
+
? globalThis.String(object.entity_id)
|
|
2513
|
+
: "",
|
|
2514
|
+
shareholders: globalThis.Array.isArray(object?.shareholders)
|
|
2515
|
+
? object.shareholders.map((e) => exports.Shareholder.fromJSON(e))
|
|
2516
|
+
: [],
|
|
2517
|
+
votingPower: isObject(object.votingPower)
|
|
2518
|
+
? globalThis.Object.entries(object.votingPower).reduce((acc, [key, value]) => {
|
|
2519
|
+
acc[key] = globalThis.Number(value);
|
|
2520
|
+
return acc;
|
|
2521
|
+
}, {})
|
|
2522
|
+
: isObject(object.voting_power)
|
|
2523
|
+
? globalThis.Object.entries(object.voting_power).reduce((acc, [key, value]) => {
|
|
2524
|
+
acc[key] = globalThis.Number(value);
|
|
2525
|
+
return acc;
|
|
2526
|
+
}, {})
|
|
2527
|
+
: {},
|
|
2528
|
+
totalVotingPower: isSet(object.totalVotingPower)
|
|
2529
|
+
? globalThis.Number(object.totalVotingPower)
|
|
2530
|
+
: isSet(object.total_voting_power)
|
|
2531
|
+
? globalThis.Number(object.total_voting_power)
|
|
2532
|
+
: 0,
|
|
2533
|
+
};
|
|
2534
|
+
},
|
|
2535
|
+
toJSON(message) {
|
|
2536
|
+
const obj = {};
|
|
2537
|
+
if (message.entityId !== "") {
|
|
2538
|
+
obj.entityId = message.entityId;
|
|
2539
|
+
}
|
|
2540
|
+
if (message.shareholders?.length) {
|
|
2541
|
+
obj.shareholders = message.shareholders.map((e) => exports.Shareholder.toJSON(e));
|
|
2542
|
+
}
|
|
2543
|
+
if (message.votingPower) {
|
|
2544
|
+
const entries = globalThis.Object.entries(message.votingPower);
|
|
2545
|
+
if (entries.length > 0) {
|
|
2546
|
+
obj.votingPower = {};
|
|
2547
|
+
entries.forEach(([k, v]) => {
|
|
2548
|
+
obj.votingPower[k] = Math.round(v);
|
|
2549
|
+
});
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
if (message.totalVotingPower !== 0) {
|
|
2553
|
+
obj.totalVotingPower = Math.round(message.totalVotingPower);
|
|
2554
|
+
}
|
|
2555
|
+
return obj;
|
|
2556
|
+
},
|
|
2557
|
+
create(base) {
|
|
2558
|
+
return exports.CorporateShareholders.fromPartial(base ?? {});
|
|
2559
|
+
},
|
|
2560
|
+
fromPartial(object) {
|
|
2561
|
+
const message = createBaseCorporateShareholders();
|
|
2562
|
+
message.entityId = object.entityId ?? "";
|
|
2563
|
+
message.shareholders = object.shareholders?.map((e) => exports.Shareholder.fromPartial(e)) || [];
|
|
2564
|
+
message.votingPower = globalThis.Object.entries(object.votingPower ?? {}).reduce((acc, [key, value]) => {
|
|
2565
|
+
if (value !== undefined) {
|
|
2566
|
+
acc[key] = globalThis.Number(value);
|
|
2567
|
+
}
|
|
2568
|
+
return acc;
|
|
2569
|
+
}, {});
|
|
2570
|
+
message.totalVotingPower = object.totalVotingPower ?? 0;
|
|
2571
|
+
return message;
|
|
2572
|
+
},
|
|
2573
|
+
};
|
|
2574
|
+
function createBaseCorporateShareholders_VotingPowerEntry() {
|
|
2575
|
+
return { key: "", value: 0 };
|
|
2576
|
+
}
|
|
2577
|
+
exports.CorporateShareholders_VotingPowerEntry = {
|
|
2578
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2579
|
+
if (message.key !== "") {
|
|
2580
|
+
writer.uint32(10).string(message.key);
|
|
2581
|
+
}
|
|
2582
|
+
if (message.value !== 0) {
|
|
2583
|
+
writer.uint32(16).int64(message.value);
|
|
2584
|
+
}
|
|
2585
|
+
return writer;
|
|
2586
|
+
},
|
|
2587
|
+
decode(input, length) {
|
|
2588
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2589
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2590
|
+
const message = createBaseCorporateShareholders_VotingPowerEntry();
|
|
2591
|
+
while (reader.pos < end) {
|
|
2592
|
+
const tag = reader.uint32();
|
|
2593
|
+
switch (tag >>> 3) {
|
|
2594
|
+
case 1: {
|
|
2595
|
+
if (tag !== 10) {
|
|
2596
|
+
break;
|
|
2597
|
+
}
|
|
2598
|
+
message.key = reader.string();
|
|
2599
|
+
continue;
|
|
2600
|
+
}
|
|
2601
|
+
case 2: {
|
|
2602
|
+
if (tag !== 16) {
|
|
2603
|
+
break;
|
|
2604
|
+
}
|
|
2605
|
+
message.value = longToNumber(reader.int64());
|
|
2606
|
+
continue;
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2610
|
+
break;
|
|
2611
|
+
}
|
|
2612
|
+
reader.skip(tag & 7);
|
|
2613
|
+
}
|
|
2614
|
+
return message;
|
|
2615
|
+
},
|
|
2616
|
+
fromJSON(object) {
|
|
2617
|
+
return {
|
|
2618
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2619
|
+
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
2620
|
+
};
|
|
2621
|
+
},
|
|
2622
|
+
toJSON(message) {
|
|
2623
|
+
const obj = {};
|
|
2624
|
+
if (message.key !== "") {
|
|
2625
|
+
obj.key = message.key;
|
|
2626
|
+
}
|
|
2627
|
+
if (message.value !== 0) {
|
|
2628
|
+
obj.value = Math.round(message.value);
|
|
2629
|
+
}
|
|
2630
|
+
return obj;
|
|
2631
|
+
},
|
|
2632
|
+
create(base) {
|
|
2633
|
+
return exports.CorporateShareholders_VotingPowerEntry.fromPartial(base ?? {});
|
|
2634
|
+
},
|
|
2635
|
+
fromPartial(object) {
|
|
2636
|
+
const message = createBaseCorporateShareholders_VotingPowerEntry();
|
|
2637
|
+
message.key = object.key ?? "";
|
|
2638
|
+
message.value = object.value ?? 0;
|
|
2639
|
+
return message;
|
|
2640
|
+
},
|
|
2641
|
+
};
|
|
2642
|
+
function createBaseShareholder() {
|
|
2643
|
+
return { address: "", name: "", holdings: [], firstAcquired: undefined };
|
|
2644
|
+
}
|
|
2645
|
+
exports.Shareholder = {
|
|
2646
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2647
|
+
if (message.address !== "") {
|
|
2648
|
+
writer.uint32(10).string(message.address);
|
|
2649
|
+
}
|
|
2650
|
+
if (message.name !== "") {
|
|
2651
|
+
writer.uint32(18).string(message.name);
|
|
2652
|
+
}
|
|
2653
|
+
for (const v of message.holdings) {
|
|
2654
|
+
exports.ShareHolding.encode(v, writer.uint32(26).fork()).join();
|
|
2655
|
+
}
|
|
2656
|
+
if (message.firstAcquired !== undefined) {
|
|
2657
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.firstAcquired), writer.uint32(34).fork()).join();
|
|
2658
|
+
}
|
|
2659
|
+
return writer;
|
|
2660
|
+
},
|
|
2661
|
+
decode(input, length) {
|
|
2662
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2663
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2664
|
+
const message = createBaseShareholder();
|
|
2665
|
+
while (reader.pos < end) {
|
|
2666
|
+
const tag = reader.uint32();
|
|
2667
|
+
switch (tag >>> 3) {
|
|
2668
|
+
case 1: {
|
|
2669
|
+
if (tag !== 10) {
|
|
2670
|
+
break;
|
|
2671
|
+
}
|
|
2672
|
+
message.address = reader.string();
|
|
2673
|
+
continue;
|
|
2674
|
+
}
|
|
2675
|
+
case 2: {
|
|
2676
|
+
if (tag !== 18) {
|
|
2677
|
+
break;
|
|
2678
|
+
}
|
|
2679
|
+
message.name = reader.string();
|
|
2680
|
+
continue;
|
|
2681
|
+
}
|
|
2682
|
+
case 3: {
|
|
2683
|
+
if (tag !== 26) {
|
|
2684
|
+
break;
|
|
2685
|
+
}
|
|
2686
|
+
message.holdings.push(exports.ShareHolding.decode(reader, reader.uint32()));
|
|
2687
|
+
continue;
|
|
2688
|
+
}
|
|
2689
|
+
case 4: {
|
|
2690
|
+
if (tag !== 34) {
|
|
2691
|
+
break;
|
|
2692
|
+
}
|
|
2693
|
+
message.firstAcquired = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
2694
|
+
continue;
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2698
|
+
break;
|
|
2699
|
+
}
|
|
2700
|
+
reader.skip(tag & 7);
|
|
2701
|
+
}
|
|
2702
|
+
return message;
|
|
2703
|
+
},
|
|
2704
|
+
fromJSON(object) {
|
|
2705
|
+
return {
|
|
2706
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
2707
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2708
|
+
holdings: globalThis.Array.isArray(object?.holdings)
|
|
2709
|
+
? object.holdings.map((e) => exports.ShareHolding.fromJSON(e))
|
|
2710
|
+
: [],
|
|
2711
|
+
firstAcquired: isSet(object.firstAcquired)
|
|
2712
|
+
? fromJsonTimestamp(object.firstAcquired)
|
|
2713
|
+
: isSet(object.first_acquired)
|
|
2714
|
+
? fromJsonTimestamp(object.first_acquired)
|
|
2715
|
+
: undefined,
|
|
2716
|
+
};
|
|
2717
|
+
},
|
|
2718
|
+
toJSON(message) {
|
|
2719
|
+
const obj = {};
|
|
2720
|
+
if (message.address !== "") {
|
|
2721
|
+
obj.address = message.address;
|
|
2722
|
+
}
|
|
2723
|
+
if (message.name !== "") {
|
|
2724
|
+
obj.name = message.name;
|
|
2725
|
+
}
|
|
2726
|
+
if (message.holdings?.length) {
|
|
2727
|
+
obj.holdings = message.holdings.map((e) => exports.ShareHolding.toJSON(e));
|
|
2728
|
+
}
|
|
2729
|
+
if (message.firstAcquired !== undefined) {
|
|
2730
|
+
obj.firstAcquired = message.firstAcquired.toISOString();
|
|
2731
|
+
}
|
|
2732
|
+
return obj;
|
|
2733
|
+
},
|
|
2734
|
+
create(base) {
|
|
2735
|
+
return exports.Shareholder.fromPartial(base ?? {});
|
|
2736
|
+
},
|
|
2737
|
+
fromPartial(object) {
|
|
2738
|
+
const message = createBaseShareholder();
|
|
2739
|
+
message.address = object.address ?? "";
|
|
2740
|
+
message.name = object.name ?? "";
|
|
2741
|
+
message.holdings = object.holdings?.map((e) => exports.ShareHolding.fromPartial(e)) || [];
|
|
2742
|
+
message.firstAcquired = object.firstAcquired ?? undefined;
|
|
2743
|
+
return message;
|
|
2744
|
+
},
|
|
2745
|
+
};
|
|
2746
|
+
function createBaseShareHolding() {
|
|
2747
|
+
return { classId: "", shares: 0, acquiredAt: undefined };
|
|
2748
|
+
}
|
|
2749
|
+
exports.ShareHolding = {
|
|
2750
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2751
|
+
if (message.classId !== "") {
|
|
2752
|
+
writer.uint32(10).string(message.classId);
|
|
2753
|
+
}
|
|
2754
|
+
if (message.shares !== 0) {
|
|
2755
|
+
writer.uint32(16).int64(message.shares);
|
|
2756
|
+
}
|
|
2757
|
+
if (message.acquiredAt !== undefined) {
|
|
2758
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.acquiredAt), writer.uint32(26).fork()).join();
|
|
2759
|
+
}
|
|
2760
|
+
return writer;
|
|
2761
|
+
},
|
|
2762
|
+
decode(input, length) {
|
|
2763
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2764
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2765
|
+
const message = createBaseShareHolding();
|
|
2766
|
+
while (reader.pos < end) {
|
|
2767
|
+
const tag = reader.uint32();
|
|
2768
|
+
switch (tag >>> 3) {
|
|
2769
|
+
case 1: {
|
|
2770
|
+
if (tag !== 10) {
|
|
2771
|
+
break;
|
|
2772
|
+
}
|
|
2773
|
+
message.classId = reader.string();
|
|
2774
|
+
continue;
|
|
2775
|
+
}
|
|
2776
|
+
case 2: {
|
|
2777
|
+
if (tag !== 16) {
|
|
2778
|
+
break;
|
|
2779
|
+
}
|
|
2780
|
+
message.shares = longToNumber(reader.int64());
|
|
2781
|
+
continue;
|
|
2782
|
+
}
|
|
2783
|
+
case 3: {
|
|
2784
|
+
if (tag !== 26) {
|
|
2785
|
+
break;
|
|
2786
|
+
}
|
|
2787
|
+
message.acquiredAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
2788
|
+
continue;
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2792
|
+
break;
|
|
2793
|
+
}
|
|
2794
|
+
reader.skip(tag & 7);
|
|
2795
|
+
}
|
|
2796
|
+
return message;
|
|
2797
|
+
},
|
|
2798
|
+
fromJSON(object) {
|
|
2799
|
+
return {
|
|
2800
|
+
classId: isSet(object.classId)
|
|
2801
|
+
? globalThis.String(object.classId)
|
|
2802
|
+
: isSet(object.class_id)
|
|
2803
|
+
? globalThis.String(object.class_id)
|
|
2804
|
+
: "",
|
|
2805
|
+
shares: isSet(object.shares) ? globalThis.Number(object.shares) : 0,
|
|
2806
|
+
acquiredAt: isSet(object.acquiredAt)
|
|
2807
|
+
? fromJsonTimestamp(object.acquiredAt)
|
|
2808
|
+
: isSet(object.acquired_at)
|
|
2809
|
+
? fromJsonTimestamp(object.acquired_at)
|
|
2810
|
+
: undefined,
|
|
2811
|
+
};
|
|
2812
|
+
},
|
|
2813
|
+
toJSON(message) {
|
|
2814
|
+
const obj = {};
|
|
2815
|
+
if (message.classId !== "") {
|
|
2816
|
+
obj.classId = message.classId;
|
|
2817
|
+
}
|
|
2818
|
+
if (message.shares !== 0) {
|
|
2819
|
+
obj.shares = Math.round(message.shares);
|
|
2820
|
+
}
|
|
2821
|
+
if (message.acquiredAt !== undefined) {
|
|
2822
|
+
obj.acquiredAt = message.acquiredAt.toISOString();
|
|
2823
|
+
}
|
|
2824
|
+
return obj;
|
|
2825
|
+
},
|
|
2826
|
+
create(base) {
|
|
2827
|
+
return exports.ShareHolding.fromPartial(base ?? {});
|
|
2828
|
+
},
|
|
2829
|
+
fromPartial(object) {
|
|
2830
|
+
const message = createBaseShareHolding();
|
|
2831
|
+
message.classId = object.classId ?? "";
|
|
2832
|
+
message.shares = object.shares ?? 0;
|
|
2833
|
+
message.acquiredAt = object.acquiredAt ?? undefined;
|
|
2834
|
+
return message;
|
|
2835
|
+
},
|
|
2836
|
+
};
|
|
2837
|
+
function createBaseCorporateResolution() {
|
|
2838
|
+
return {
|
|
2839
|
+
resolutionId: "",
|
|
2840
|
+
entityId: "",
|
|
2841
|
+
title: "",
|
|
2842
|
+
body: "",
|
|
2843
|
+
resolutionType: "",
|
|
2844
|
+
status: ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED,
|
|
2845
|
+
proposedBy: "",
|
|
2846
|
+
proposedAt: undefined,
|
|
2847
|
+
votes: [],
|
|
2848
|
+
adoptedAt: undefined,
|
|
2849
|
+
};
|
|
2850
|
+
}
|
|
2851
|
+
exports.CorporateResolution = {
|
|
2852
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2853
|
+
if (message.resolutionId !== "") {
|
|
2854
|
+
writer.uint32(10).string(message.resolutionId);
|
|
2855
|
+
}
|
|
2856
|
+
if (message.entityId !== "") {
|
|
2857
|
+
writer.uint32(18).string(message.entityId);
|
|
2858
|
+
}
|
|
2859
|
+
if (message.title !== "") {
|
|
2860
|
+
writer.uint32(26).string(message.title);
|
|
2861
|
+
}
|
|
2862
|
+
if (message.body !== "") {
|
|
2863
|
+
writer.uint32(34).string(message.body);
|
|
2864
|
+
}
|
|
2865
|
+
if (message.resolutionType !== "") {
|
|
2866
|
+
writer.uint32(42).string(message.resolutionType);
|
|
2867
|
+
}
|
|
2868
|
+
if (message.status !== ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED) {
|
|
2869
|
+
writer.uint32(48).int32(resolutionStatusToNumber(message.status));
|
|
2870
|
+
}
|
|
2871
|
+
if (message.proposedBy !== "") {
|
|
2872
|
+
writer.uint32(58).string(message.proposedBy);
|
|
2873
|
+
}
|
|
2874
|
+
if (message.proposedAt !== undefined) {
|
|
2875
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.proposedAt), writer.uint32(66).fork()).join();
|
|
2876
|
+
}
|
|
2877
|
+
for (const v of message.votes) {
|
|
2878
|
+
exports.ResolutionVote.encode(v, writer.uint32(74).fork()).join();
|
|
2879
|
+
}
|
|
2880
|
+
if (message.adoptedAt !== undefined) {
|
|
2881
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.adoptedAt), writer.uint32(82).fork()).join();
|
|
2882
|
+
}
|
|
2883
|
+
return writer;
|
|
2884
|
+
},
|
|
2885
|
+
decode(input, length) {
|
|
2886
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2887
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2888
|
+
const message = createBaseCorporateResolution();
|
|
2889
|
+
while (reader.pos < end) {
|
|
2890
|
+
const tag = reader.uint32();
|
|
2891
|
+
switch (tag >>> 3) {
|
|
2892
|
+
case 1: {
|
|
2893
|
+
if (tag !== 10) {
|
|
2894
|
+
break;
|
|
2895
|
+
}
|
|
2896
|
+
message.resolutionId = reader.string();
|
|
2897
|
+
continue;
|
|
2898
|
+
}
|
|
2899
|
+
case 2: {
|
|
2900
|
+
if (tag !== 18) {
|
|
2901
|
+
break;
|
|
2902
|
+
}
|
|
2903
|
+
message.entityId = reader.string();
|
|
2904
|
+
continue;
|
|
2905
|
+
}
|
|
2906
|
+
case 3: {
|
|
2907
|
+
if (tag !== 26) {
|
|
2908
|
+
break;
|
|
2909
|
+
}
|
|
2910
|
+
message.title = reader.string();
|
|
2911
|
+
continue;
|
|
2912
|
+
}
|
|
2913
|
+
case 4: {
|
|
2914
|
+
if (tag !== 34) {
|
|
2915
|
+
break;
|
|
2916
|
+
}
|
|
2917
|
+
message.body = reader.string();
|
|
2918
|
+
continue;
|
|
2919
|
+
}
|
|
2920
|
+
case 5: {
|
|
2921
|
+
if (tag !== 42) {
|
|
2922
|
+
break;
|
|
2923
|
+
}
|
|
2924
|
+
message.resolutionType = reader.string();
|
|
2925
|
+
continue;
|
|
2926
|
+
}
|
|
2927
|
+
case 6: {
|
|
2928
|
+
if (tag !== 48) {
|
|
2929
|
+
break;
|
|
2930
|
+
}
|
|
2931
|
+
message.status = resolutionStatusFromJSON(reader.int32());
|
|
2932
|
+
continue;
|
|
2933
|
+
}
|
|
2934
|
+
case 7: {
|
|
2935
|
+
if (tag !== 58) {
|
|
2936
|
+
break;
|
|
2937
|
+
}
|
|
2938
|
+
message.proposedBy = reader.string();
|
|
2939
|
+
continue;
|
|
2940
|
+
}
|
|
2941
|
+
case 8: {
|
|
2942
|
+
if (tag !== 66) {
|
|
2943
|
+
break;
|
|
2944
|
+
}
|
|
2945
|
+
message.proposedAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
2946
|
+
continue;
|
|
2947
|
+
}
|
|
2948
|
+
case 9: {
|
|
2949
|
+
if (tag !== 74) {
|
|
2950
|
+
break;
|
|
2951
|
+
}
|
|
2952
|
+
message.votes.push(exports.ResolutionVote.decode(reader, reader.uint32()));
|
|
2953
|
+
continue;
|
|
2954
|
+
}
|
|
2955
|
+
case 10: {
|
|
2956
|
+
if (tag !== 82) {
|
|
2957
|
+
break;
|
|
2958
|
+
}
|
|
2959
|
+
message.adoptedAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
2960
|
+
continue;
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2964
|
+
break;
|
|
2965
|
+
}
|
|
2966
|
+
reader.skip(tag & 7);
|
|
2967
|
+
}
|
|
2968
|
+
return message;
|
|
2969
|
+
},
|
|
2970
|
+
fromJSON(object) {
|
|
2971
|
+
return {
|
|
2972
|
+
resolutionId: isSet(object.resolutionId)
|
|
2973
|
+
? globalThis.String(object.resolutionId)
|
|
2974
|
+
: isSet(object.resolution_id)
|
|
2975
|
+
? globalThis.String(object.resolution_id)
|
|
2976
|
+
: "",
|
|
2977
|
+
entityId: isSet(object.entityId)
|
|
2978
|
+
? globalThis.String(object.entityId)
|
|
2979
|
+
: isSet(object.entity_id)
|
|
2980
|
+
? globalThis.String(object.entity_id)
|
|
2981
|
+
: "",
|
|
2982
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
2983
|
+
body: isSet(object.body) ? globalThis.String(object.body) : "",
|
|
2984
|
+
resolutionType: isSet(object.resolutionType)
|
|
2985
|
+
? globalThis.String(object.resolutionType)
|
|
2986
|
+
: isSet(object.resolution_type)
|
|
2987
|
+
? globalThis.String(object.resolution_type)
|
|
2988
|
+
: "",
|
|
2989
|
+
status: isSet(object.status)
|
|
2990
|
+
? resolutionStatusFromJSON(object.status)
|
|
2991
|
+
: ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED,
|
|
2992
|
+
proposedBy: isSet(object.proposedBy)
|
|
2993
|
+
? globalThis.String(object.proposedBy)
|
|
2994
|
+
: isSet(object.proposed_by)
|
|
2995
|
+
? globalThis.String(object.proposed_by)
|
|
2996
|
+
: "",
|
|
2997
|
+
proposedAt: isSet(object.proposedAt)
|
|
2998
|
+
? fromJsonTimestamp(object.proposedAt)
|
|
2999
|
+
: isSet(object.proposed_at)
|
|
3000
|
+
? fromJsonTimestamp(object.proposed_at)
|
|
3001
|
+
: undefined,
|
|
3002
|
+
votes: globalThis.Array.isArray(object?.votes)
|
|
3003
|
+
? object.votes.map((e) => exports.ResolutionVote.fromJSON(e))
|
|
3004
|
+
: [],
|
|
3005
|
+
adoptedAt: isSet(object.adoptedAt)
|
|
3006
|
+
? fromJsonTimestamp(object.adoptedAt)
|
|
3007
|
+
: isSet(object.adopted_at)
|
|
3008
|
+
? fromJsonTimestamp(object.adopted_at)
|
|
3009
|
+
: undefined,
|
|
3010
|
+
};
|
|
3011
|
+
},
|
|
3012
|
+
toJSON(message) {
|
|
3013
|
+
const obj = {};
|
|
3014
|
+
if (message.resolutionId !== "") {
|
|
3015
|
+
obj.resolutionId = message.resolutionId;
|
|
3016
|
+
}
|
|
3017
|
+
if (message.entityId !== "") {
|
|
3018
|
+
obj.entityId = message.entityId;
|
|
3019
|
+
}
|
|
3020
|
+
if (message.title !== "") {
|
|
3021
|
+
obj.title = message.title;
|
|
3022
|
+
}
|
|
3023
|
+
if (message.body !== "") {
|
|
3024
|
+
obj.body = message.body;
|
|
3025
|
+
}
|
|
3026
|
+
if (message.resolutionType !== "") {
|
|
3027
|
+
obj.resolutionType = message.resolutionType;
|
|
3028
|
+
}
|
|
3029
|
+
if (message.status !== ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED) {
|
|
3030
|
+
obj.status = resolutionStatusToJSON(message.status);
|
|
3031
|
+
}
|
|
3032
|
+
if (message.proposedBy !== "") {
|
|
3033
|
+
obj.proposedBy = message.proposedBy;
|
|
3034
|
+
}
|
|
3035
|
+
if (message.proposedAt !== undefined) {
|
|
3036
|
+
obj.proposedAt = message.proposedAt.toISOString();
|
|
3037
|
+
}
|
|
3038
|
+
if (message.votes?.length) {
|
|
3039
|
+
obj.votes = message.votes.map((e) => exports.ResolutionVote.toJSON(e));
|
|
3040
|
+
}
|
|
3041
|
+
if (message.adoptedAt !== undefined) {
|
|
3042
|
+
obj.adoptedAt = message.adoptedAt.toISOString();
|
|
3043
|
+
}
|
|
3044
|
+
return obj;
|
|
3045
|
+
},
|
|
3046
|
+
create(base) {
|
|
3047
|
+
return exports.CorporateResolution.fromPartial(base ?? {});
|
|
3048
|
+
},
|
|
3049
|
+
fromPartial(object) {
|
|
3050
|
+
const message = createBaseCorporateResolution();
|
|
3051
|
+
message.resolutionId = object.resolutionId ?? "";
|
|
3052
|
+
message.entityId = object.entityId ?? "";
|
|
3053
|
+
message.title = object.title ?? "";
|
|
3054
|
+
message.body = object.body ?? "";
|
|
3055
|
+
message.resolutionType = object.resolutionType ?? "";
|
|
3056
|
+
message.status = object.status ?? ResolutionStatus.RESOLUTION_STATUS_UNSPECIFIED;
|
|
3057
|
+
message.proposedBy = object.proposedBy ?? "";
|
|
3058
|
+
message.proposedAt = object.proposedAt ?? undefined;
|
|
3059
|
+
message.votes = object.votes?.map((e) => exports.ResolutionVote.fromPartial(e)) || [];
|
|
3060
|
+
message.adoptedAt = object.adoptedAt ?? undefined;
|
|
3061
|
+
return message;
|
|
3062
|
+
},
|
|
3063
|
+
};
|
|
3064
|
+
function createBaseResolutionVote() {
|
|
3065
|
+
return { voter: "", vote: "", weight: 0, votedAt: undefined };
|
|
3066
|
+
}
|
|
3067
|
+
exports.ResolutionVote = {
|
|
3068
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3069
|
+
if (message.voter !== "") {
|
|
3070
|
+
writer.uint32(10).string(message.voter);
|
|
3071
|
+
}
|
|
3072
|
+
if (message.vote !== "") {
|
|
3073
|
+
writer.uint32(18).string(message.vote);
|
|
3074
|
+
}
|
|
3075
|
+
if (message.weight !== 0) {
|
|
3076
|
+
writer.uint32(24).int64(message.weight);
|
|
3077
|
+
}
|
|
3078
|
+
if (message.votedAt !== undefined) {
|
|
3079
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.votedAt), writer.uint32(34).fork()).join();
|
|
3080
|
+
}
|
|
3081
|
+
return writer;
|
|
3082
|
+
},
|
|
3083
|
+
decode(input, length) {
|
|
3084
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3085
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3086
|
+
const message = createBaseResolutionVote();
|
|
3087
|
+
while (reader.pos < end) {
|
|
3088
|
+
const tag = reader.uint32();
|
|
3089
|
+
switch (tag >>> 3) {
|
|
3090
|
+
case 1: {
|
|
3091
|
+
if (tag !== 10) {
|
|
3092
|
+
break;
|
|
3093
|
+
}
|
|
3094
|
+
message.voter = reader.string();
|
|
3095
|
+
continue;
|
|
3096
|
+
}
|
|
3097
|
+
case 2: {
|
|
3098
|
+
if (tag !== 18) {
|
|
3099
|
+
break;
|
|
3100
|
+
}
|
|
3101
|
+
message.vote = reader.string();
|
|
3102
|
+
continue;
|
|
3103
|
+
}
|
|
3104
|
+
case 3: {
|
|
3105
|
+
if (tag !== 24) {
|
|
3106
|
+
break;
|
|
3107
|
+
}
|
|
3108
|
+
message.weight = longToNumber(reader.int64());
|
|
3109
|
+
continue;
|
|
3110
|
+
}
|
|
3111
|
+
case 4: {
|
|
3112
|
+
if (tag !== 34) {
|
|
3113
|
+
break;
|
|
3114
|
+
}
|
|
3115
|
+
message.votedAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
3116
|
+
continue;
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3120
|
+
break;
|
|
3121
|
+
}
|
|
3122
|
+
reader.skip(tag & 7);
|
|
3123
|
+
}
|
|
3124
|
+
return message;
|
|
3125
|
+
},
|
|
3126
|
+
fromJSON(object) {
|
|
3127
|
+
return {
|
|
3128
|
+
voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
|
|
3129
|
+
vote: isSet(object.vote) ? globalThis.String(object.vote) : "",
|
|
3130
|
+
weight: isSet(object.weight) ? globalThis.Number(object.weight) : 0,
|
|
3131
|
+
votedAt: isSet(object.votedAt)
|
|
3132
|
+
? fromJsonTimestamp(object.votedAt)
|
|
3133
|
+
: isSet(object.voted_at)
|
|
3134
|
+
? fromJsonTimestamp(object.voted_at)
|
|
3135
|
+
: undefined,
|
|
3136
|
+
};
|
|
3137
|
+
},
|
|
3138
|
+
toJSON(message) {
|
|
3139
|
+
const obj = {};
|
|
3140
|
+
if (message.voter !== "") {
|
|
3141
|
+
obj.voter = message.voter;
|
|
3142
|
+
}
|
|
3143
|
+
if (message.vote !== "") {
|
|
3144
|
+
obj.vote = message.vote;
|
|
3145
|
+
}
|
|
3146
|
+
if (message.weight !== 0) {
|
|
3147
|
+
obj.weight = Math.round(message.weight);
|
|
3148
|
+
}
|
|
3149
|
+
if (message.votedAt !== undefined) {
|
|
3150
|
+
obj.votedAt = message.votedAt.toISOString();
|
|
3151
|
+
}
|
|
3152
|
+
return obj;
|
|
3153
|
+
},
|
|
3154
|
+
create(base) {
|
|
3155
|
+
return exports.ResolutionVote.fromPartial(base ?? {});
|
|
3156
|
+
},
|
|
3157
|
+
fromPartial(object) {
|
|
3158
|
+
const message = createBaseResolutionVote();
|
|
3159
|
+
message.voter = object.voter ?? "";
|
|
3160
|
+
message.vote = object.vote ?? "";
|
|
3161
|
+
message.weight = object.weight ?? 0;
|
|
3162
|
+
message.votedAt = object.votedAt ?? undefined;
|
|
3163
|
+
return message;
|
|
3164
|
+
},
|
|
3165
|
+
};
|
|
3166
|
+
function createBaseCorporateSecurities() {
|
|
3167
|
+
return { entityId: "", issuances: [], transfers: [] };
|
|
3168
|
+
}
|
|
3169
|
+
exports.CorporateSecurities = {
|
|
3170
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3171
|
+
if (message.entityId !== "") {
|
|
3172
|
+
writer.uint32(10).string(message.entityId);
|
|
3173
|
+
}
|
|
3174
|
+
for (const v of message.issuances) {
|
|
3175
|
+
exports.SecurityIssuance.encode(v, writer.uint32(18).fork()).join();
|
|
3176
|
+
}
|
|
3177
|
+
for (const v of message.transfers) {
|
|
3178
|
+
exports.SecurityTransfer.encode(v, writer.uint32(26).fork()).join();
|
|
3179
|
+
}
|
|
3180
|
+
return writer;
|
|
3181
|
+
},
|
|
3182
|
+
decode(input, length) {
|
|
3183
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3184
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3185
|
+
const message = createBaseCorporateSecurities();
|
|
3186
|
+
while (reader.pos < end) {
|
|
3187
|
+
const tag = reader.uint32();
|
|
3188
|
+
switch (tag >>> 3) {
|
|
3189
|
+
case 1: {
|
|
3190
|
+
if (tag !== 10) {
|
|
3191
|
+
break;
|
|
3192
|
+
}
|
|
3193
|
+
message.entityId = reader.string();
|
|
3194
|
+
continue;
|
|
3195
|
+
}
|
|
3196
|
+
case 2: {
|
|
3197
|
+
if (tag !== 18) {
|
|
3198
|
+
break;
|
|
3199
|
+
}
|
|
3200
|
+
message.issuances.push(exports.SecurityIssuance.decode(reader, reader.uint32()));
|
|
3201
|
+
continue;
|
|
3202
|
+
}
|
|
3203
|
+
case 3: {
|
|
3204
|
+
if (tag !== 26) {
|
|
3205
|
+
break;
|
|
3206
|
+
}
|
|
3207
|
+
message.transfers.push(exports.SecurityTransfer.decode(reader, reader.uint32()));
|
|
3208
|
+
continue;
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3212
|
+
break;
|
|
3213
|
+
}
|
|
3214
|
+
reader.skip(tag & 7);
|
|
3215
|
+
}
|
|
3216
|
+
return message;
|
|
3217
|
+
},
|
|
3218
|
+
fromJSON(object) {
|
|
3219
|
+
return {
|
|
3220
|
+
entityId: isSet(object.entityId)
|
|
3221
|
+
? globalThis.String(object.entityId)
|
|
3222
|
+
: isSet(object.entity_id)
|
|
3223
|
+
? globalThis.String(object.entity_id)
|
|
3224
|
+
: "",
|
|
3225
|
+
issuances: globalThis.Array.isArray(object?.issuances)
|
|
3226
|
+
? object.issuances.map((e) => exports.SecurityIssuance.fromJSON(e))
|
|
3227
|
+
: [],
|
|
3228
|
+
transfers: globalThis.Array.isArray(object?.transfers)
|
|
3229
|
+
? object.transfers.map((e) => exports.SecurityTransfer.fromJSON(e))
|
|
3230
|
+
: [],
|
|
3231
|
+
};
|
|
3232
|
+
},
|
|
3233
|
+
toJSON(message) {
|
|
3234
|
+
const obj = {};
|
|
3235
|
+
if (message.entityId !== "") {
|
|
3236
|
+
obj.entityId = message.entityId;
|
|
3237
|
+
}
|
|
3238
|
+
if (message.issuances?.length) {
|
|
3239
|
+
obj.issuances = message.issuances.map((e) => exports.SecurityIssuance.toJSON(e));
|
|
3240
|
+
}
|
|
3241
|
+
if (message.transfers?.length) {
|
|
3242
|
+
obj.transfers = message.transfers.map((e) => exports.SecurityTransfer.toJSON(e));
|
|
3243
|
+
}
|
|
3244
|
+
return obj;
|
|
3245
|
+
},
|
|
3246
|
+
create(base) {
|
|
3247
|
+
return exports.CorporateSecurities.fromPartial(base ?? {});
|
|
3248
|
+
},
|
|
3249
|
+
fromPartial(object) {
|
|
3250
|
+
const message = createBaseCorporateSecurities();
|
|
3251
|
+
message.entityId = object.entityId ?? "";
|
|
3252
|
+
message.issuances = object.issuances?.map((e) => exports.SecurityIssuance.fromPartial(e)) || [];
|
|
3253
|
+
message.transfers = object.transfers?.map((e) => exports.SecurityTransfer.fromPartial(e)) || [];
|
|
3254
|
+
return message;
|
|
3255
|
+
},
|
|
3256
|
+
};
|
|
3257
|
+
function createBaseSecurityIssuance() {
|
|
3258
|
+
return {
|
|
3259
|
+
issuanceId: "",
|
|
3260
|
+
classId: "",
|
|
3261
|
+
recipient: "",
|
|
3262
|
+
shares: 0,
|
|
3263
|
+
pricePerShareCents: 0,
|
|
3264
|
+
issuedAt: undefined,
|
|
3265
|
+
authorizationResolutionId: "",
|
|
3266
|
+
};
|
|
3267
|
+
}
|
|
3268
|
+
exports.SecurityIssuance = {
|
|
3269
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3270
|
+
if (message.issuanceId !== "") {
|
|
3271
|
+
writer.uint32(10).string(message.issuanceId);
|
|
3272
|
+
}
|
|
3273
|
+
if (message.classId !== "") {
|
|
3274
|
+
writer.uint32(18).string(message.classId);
|
|
3275
|
+
}
|
|
3276
|
+
if (message.recipient !== "") {
|
|
3277
|
+
writer.uint32(26).string(message.recipient);
|
|
3278
|
+
}
|
|
3279
|
+
if (message.shares !== 0) {
|
|
3280
|
+
writer.uint32(32).int64(message.shares);
|
|
3281
|
+
}
|
|
3282
|
+
if (message.pricePerShareCents !== 0) {
|
|
3283
|
+
writer.uint32(40).int64(message.pricePerShareCents);
|
|
3284
|
+
}
|
|
3285
|
+
if (message.issuedAt !== undefined) {
|
|
3286
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.issuedAt), writer.uint32(50).fork()).join();
|
|
3287
|
+
}
|
|
3288
|
+
if (message.authorizationResolutionId !== "") {
|
|
3289
|
+
writer.uint32(58).string(message.authorizationResolutionId);
|
|
3290
|
+
}
|
|
3291
|
+
return writer;
|
|
3292
|
+
},
|
|
3293
|
+
decode(input, length) {
|
|
3294
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3295
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3296
|
+
const message = createBaseSecurityIssuance();
|
|
3297
|
+
while (reader.pos < end) {
|
|
3298
|
+
const tag = reader.uint32();
|
|
3299
|
+
switch (tag >>> 3) {
|
|
3300
|
+
case 1: {
|
|
3301
|
+
if (tag !== 10) {
|
|
3302
|
+
break;
|
|
3303
|
+
}
|
|
3304
|
+
message.issuanceId = reader.string();
|
|
3305
|
+
continue;
|
|
3306
|
+
}
|
|
3307
|
+
case 2: {
|
|
3308
|
+
if (tag !== 18) {
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
message.classId = reader.string();
|
|
3312
|
+
continue;
|
|
3313
|
+
}
|
|
3314
|
+
case 3: {
|
|
3315
|
+
if (tag !== 26) {
|
|
3316
|
+
break;
|
|
3317
|
+
}
|
|
3318
|
+
message.recipient = reader.string();
|
|
3319
|
+
continue;
|
|
3320
|
+
}
|
|
3321
|
+
case 4: {
|
|
3322
|
+
if (tag !== 32) {
|
|
3323
|
+
break;
|
|
3324
|
+
}
|
|
3325
|
+
message.shares = longToNumber(reader.int64());
|
|
3326
|
+
continue;
|
|
3327
|
+
}
|
|
3328
|
+
case 5: {
|
|
3329
|
+
if (tag !== 40) {
|
|
3330
|
+
break;
|
|
3331
|
+
}
|
|
3332
|
+
message.pricePerShareCents = longToNumber(reader.int64());
|
|
3333
|
+
continue;
|
|
3334
|
+
}
|
|
3335
|
+
case 6: {
|
|
3336
|
+
if (tag !== 50) {
|
|
3337
|
+
break;
|
|
3338
|
+
}
|
|
3339
|
+
message.issuedAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
3340
|
+
continue;
|
|
3341
|
+
}
|
|
3342
|
+
case 7: {
|
|
3343
|
+
if (tag !== 58) {
|
|
3344
|
+
break;
|
|
3345
|
+
}
|
|
3346
|
+
message.authorizationResolutionId = reader.string();
|
|
3347
|
+
continue;
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3351
|
+
break;
|
|
3352
|
+
}
|
|
3353
|
+
reader.skip(tag & 7);
|
|
3354
|
+
}
|
|
3355
|
+
return message;
|
|
3356
|
+
},
|
|
3357
|
+
fromJSON(object) {
|
|
3358
|
+
return {
|
|
3359
|
+
issuanceId: isSet(object.issuanceId)
|
|
3360
|
+
? globalThis.String(object.issuanceId)
|
|
3361
|
+
: isSet(object.issuance_id)
|
|
3362
|
+
? globalThis.String(object.issuance_id)
|
|
3363
|
+
: "",
|
|
3364
|
+
classId: isSet(object.classId)
|
|
3365
|
+
? globalThis.String(object.classId)
|
|
3366
|
+
: isSet(object.class_id)
|
|
3367
|
+
? globalThis.String(object.class_id)
|
|
3368
|
+
: "",
|
|
3369
|
+
recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
|
|
3370
|
+
shares: isSet(object.shares) ? globalThis.Number(object.shares) : 0,
|
|
3371
|
+
pricePerShareCents: isSet(object.pricePerShareCents)
|
|
3372
|
+
? globalThis.Number(object.pricePerShareCents)
|
|
3373
|
+
: isSet(object.price_per_share_cents)
|
|
3374
|
+
? globalThis.Number(object.price_per_share_cents)
|
|
3375
|
+
: 0,
|
|
3376
|
+
issuedAt: isSet(object.issuedAt)
|
|
3377
|
+
? fromJsonTimestamp(object.issuedAt)
|
|
3378
|
+
: isSet(object.issued_at)
|
|
3379
|
+
? fromJsonTimestamp(object.issued_at)
|
|
3380
|
+
: undefined,
|
|
3381
|
+
authorizationResolutionId: isSet(object.authorizationResolutionId)
|
|
3382
|
+
? globalThis.String(object.authorizationResolutionId)
|
|
3383
|
+
: isSet(object.authorization_resolution_id)
|
|
3384
|
+
? globalThis.String(object.authorization_resolution_id)
|
|
3385
|
+
: "",
|
|
3386
|
+
};
|
|
3387
|
+
},
|
|
3388
|
+
toJSON(message) {
|
|
3389
|
+
const obj = {};
|
|
3390
|
+
if (message.issuanceId !== "") {
|
|
3391
|
+
obj.issuanceId = message.issuanceId;
|
|
3392
|
+
}
|
|
3393
|
+
if (message.classId !== "") {
|
|
3394
|
+
obj.classId = message.classId;
|
|
3395
|
+
}
|
|
3396
|
+
if (message.recipient !== "") {
|
|
3397
|
+
obj.recipient = message.recipient;
|
|
3398
|
+
}
|
|
3399
|
+
if (message.shares !== 0) {
|
|
3400
|
+
obj.shares = Math.round(message.shares);
|
|
3401
|
+
}
|
|
3402
|
+
if (message.pricePerShareCents !== 0) {
|
|
3403
|
+
obj.pricePerShareCents = Math.round(message.pricePerShareCents);
|
|
3404
|
+
}
|
|
3405
|
+
if (message.issuedAt !== undefined) {
|
|
3406
|
+
obj.issuedAt = message.issuedAt.toISOString();
|
|
3407
|
+
}
|
|
3408
|
+
if (message.authorizationResolutionId !== "") {
|
|
3409
|
+
obj.authorizationResolutionId = message.authorizationResolutionId;
|
|
3410
|
+
}
|
|
3411
|
+
return obj;
|
|
3412
|
+
},
|
|
3413
|
+
create(base) {
|
|
3414
|
+
return exports.SecurityIssuance.fromPartial(base ?? {});
|
|
3415
|
+
},
|
|
3416
|
+
fromPartial(object) {
|
|
3417
|
+
const message = createBaseSecurityIssuance();
|
|
3418
|
+
message.issuanceId = object.issuanceId ?? "";
|
|
3419
|
+
message.classId = object.classId ?? "";
|
|
3420
|
+
message.recipient = object.recipient ?? "";
|
|
3421
|
+
message.shares = object.shares ?? 0;
|
|
3422
|
+
message.pricePerShareCents = object.pricePerShareCents ?? 0;
|
|
3423
|
+
message.issuedAt = object.issuedAt ?? undefined;
|
|
3424
|
+
message.authorizationResolutionId = object.authorizationResolutionId ?? "";
|
|
3425
|
+
return message;
|
|
3426
|
+
},
|
|
3427
|
+
};
|
|
3428
|
+
function createBaseSecurityTransfer() {
|
|
3429
|
+
return { transferId: "", classId: "", from: "", to: "", shares: 0, transferredAt: undefined };
|
|
3430
|
+
}
|
|
3431
|
+
exports.SecurityTransfer = {
|
|
3432
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3433
|
+
if (message.transferId !== "") {
|
|
3434
|
+
writer.uint32(10).string(message.transferId);
|
|
3435
|
+
}
|
|
3436
|
+
if (message.classId !== "") {
|
|
3437
|
+
writer.uint32(18).string(message.classId);
|
|
3438
|
+
}
|
|
3439
|
+
if (message.from !== "") {
|
|
3440
|
+
writer.uint32(26).string(message.from);
|
|
3441
|
+
}
|
|
3442
|
+
if (message.to !== "") {
|
|
3443
|
+
writer.uint32(34).string(message.to);
|
|
3444
|
+
}
|
|
3445
|
+
if (message.shares !== 0) {
|
|
3446
|
+
writer.uint32(40).int64(message.shares);
|
|
3447
|
+
}
|
|
3448
|
+
if (message.transferredAt !== undefined) {
|
|
3449
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.transferredAt), writer.uint32(50).fork()).join();
|
|
3450
|
+
}
|
|
3451
|
+
return writer;
|
|
3452
|
+
},
|
|
3453
|
+
decode(input, length) {
|
|
3454
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3455
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3456
|
+
const message = createBaseSecurityTransfer();
|
|
3457
|
+
while (reader.pos < end) {
|
|
3458
|
+
const tag = reader.uint32();
|
|
3459
|
+
switch (tag >>> 3) {
|
|
3460
|
+
case 1: {
|
|
3461
|
+
if (tag !== 10) {
|
|
3462
|
+
break;
|
|
3463
|
+
}
|
|
3464
|
+
message.transferId = reader.string();
|
|
3465
|
+
continue;
|
|
3466
|
+
}
|
|
3467
|
+
case 2: {
|
|
3468
|
+
if (tag !== 18) {
|
|
3469
|
+
break;
|
|
3470
|
+
}
|
|
3471
|
+
message.classId = reader.string();
|
|
3472
|
+
continue;
|
|
3473
|
+
}
|
|
3474
|
+
case 3: {
|
|
3475
|
+
if (tag !== 26) {
|
|
3476
|
+
break;
|
|
3477
|
+
}
|
|
3478
|
+
message.from = reader.string();
|
|
3479
|
+
continue;
|
|
3480
|
+
}
|
|
3481
|
+
case 4: {
|
|
3482
|
+
if (tag !== 34) {
|
|
3483
|
+
break;
|
|
3484
|
+
}
|
|
3485
|
+
message.to = reader.string();
|
|
3486
|
+
continue;
|
|
3487
|
+
}
|
|
3488
|
+
case 5: {
|
|
3489
|
+
if (tag !== 40) {
|
|
3490
|
+
break;
|
|
3491
|
+
}
|
|
3492
|
+
message.shares = longToNumber(reader.int64());
|
|
3493
|
+
continue;
|
|
3494
|
+
}
|
|
3495
|
+
case 6: {
|
|
3496
|
+
if (tag !== 50) {
|
|
3497
|
+
break;
|
|
3498
|
+
}
|
|
3499
|
+
message.transferredAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
3500
|
+
continue;
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3504
|
+
break;
|
|
3505
|
+
}
|
|
3506
|
+
reader.skip(tag & 7);
|
|
3507
|
+
}
|
|
3508
|
+
return message;
|
|
3509
|
+
},
|
|
3510
|
+
fromJSON(object) {
|
|
3511
|
+
return {
|
|
3512
|
+
transferId: isSet(object.transferId)
|
|
3513
|
+
? globalThis.String(object.transferId)
|
|
3514
|
+
: isSet(object.transfer_id)
|
|
3515
|
+
? globalThis.String(object.transfer_id)
|
|
3516
|
+
: "",
|
|
3517
|
+
classId: isSet(object.classId)
|
|
3518
|
+
? globalThis.String(object.classId)
|
|
3519
|
+
: isSet(object.class_id)
|
|
3520
|
+
? globalThis.String(object.class_id)
|
|
3521
|
+
: "",
|
|
3522
|
+
from: isSet(object.from) ? globalThis.String(object.from) : "",
|
|
3523
|
+
to: isSet(object.to) ? globalThis.String(object.to) : "",
|
|
3524
|
+
shares: isSet(object.shares) ? globalThis.Number(object.shares) : 0,
|
|
3525
|
+
transferredAt: isSet(object.transferredAt)
|
|
3526
|
+
? fromJsonTimestamp(object.transferredAt)
|
|
3527
|
+
: isSet(object.transferred_at)
|
|
3528
|
+
? fromJsonTimestamp(object.transferred_at)
|
|
3529
|
+
: undefined,
|
|
3530
|
+
};
|
|
3531
|
+
},
|
|
3532
|
+
toJSON(message) {
|
|
3533
|
+
const obj = {};
|
|
3534
|
+
if (message.transferId !== "") {
|
|
3535
|
+
obj.transferId = message.transferId;
|
|
3536
|
+
}
|
|
3537
|
+
if (message.classId !== "") {
|
|
3538
|
+
obj.classId = message.classId;
|
|
3539
|
+
}
|
|
3540
|
+
if (message.from !== "") {
|
|
3541
|
+
obj.from = message.from;
|
|
3542
|
+
}
|
|
3543
|
+
if (message.to !== "") {
|
|
3544
|
+
obj.to = message.to;
|
|
3545
|
+
}
|
|
3546
|
+
if (message.shares !== 0) {
|
|
3547
|
+
obj.shares = Math.round(message.shares);
|
|
3548
|
+
}
|
|
3549
|
+
if (message.transferredAt !== undefined) {
|
|
3550
|
+
obj.transferredAt = message.transferredAt.toISOString();
|
|
3551
|
+
}
|
|
3552
|
+
return obj;
|
|
3553
|
+
},
|
|
3554
|
+
create(base) {
|
|
3555
|
+
return exports.SecurityTransfer.fromPartial(base ?? {});
|
|
3556
|
+
},
|
|
3557
|
+
fromPartial(object) {
|
|
3558
|
+
const message = createBaseSecurityTransfer();
|
|
3559
|
+
message.transferId = object.transferId ?? "";
|
|
3560
|
+
message.classId = object.classId ?? "";
|
|
3561
|
+
message.from = object.from ?? "";
|
|
3562
|
+
message.to = object.to ?? "";
|
|
3563
|
+
message.shares = object.shares ?? 0;
|
|
3564
|
+
message.transferredAt = object.transferredAt ?? undefined;
|
|
3565
|
+
return message;
|
|
3566
|
+
},
|
|
3567
|
+
};
|
|
3568
|
+
function createBaseCorporateCompliance() {
|
|
3569
|
+
return { entityId: "", filings: [], requirements: [], inGoodStanding: false };
|
|
3570
|
+
}
|
|
3571
|
+
exports.CorporateCompliance = {
|
|
3572
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3573
|
+
if (message.entityId !== "") {
|
|
3574
|
+
writer.uint32(10).string(message.entityId);
|
|
3575
|
+
}
|
|
3576
|
+
for (const v of message.filings) {
|
|
3577
|
+
exports.FilingRecord.encode(v, writer.uint32(18).fork()).join();
|
|
3578
|
+
}
|
|
3579
|
+
for (const v of message.requirements) {
|
|
3580
|
+
exports.ComplianceRequirement.encode(v, writer.uint32(26).fork()).join();
|
|
3581
|
+
}
|
|
3582
|
+
if (message.inGoodStanding !== false) {
|
|
3583
|
+
writer.uint32(32).bool(message.inGoodStanding);
|
|
3584
|
+
}
|
|
3585
|
+
return writer;
|
|
3586
|
+
},
|
|
3587
|
+
decode(input, length) {
|
|
3588
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3589
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3590
|
+
const message = createBaseCorporateCompliance();
|
|
3591
|
+
while (reader.pos < end) {
|
|
3592
|
+
const tag = reader.uint32();
|
|
3593
|
+
switch (tag >>> 3) {
|
|
3594
|
+
case 1: {
|
|
3595
|
+
if (tag !== 10) {
|
|
3596
|
+
break;
|
|
3597
|
+
}
|
|
3598
|
+
message.entityId = reader.string();
|
|
3599
|
+
continue;
|
|
3600
|
+
}
|
|
3601
|
+
case 2: {
|
|
3602
|
+
if (tag !== 18) {
|
|
3603
|
+
break;
|
|
3604
|
+
}
|
|
3605
|
+
message.filings.push(exports.FilingRecord.decode(reader, reader.uint32()));
|
|
3606
|
+
continue;
|
|
3607
|
+
}
|
|
3608
|
+
case 3: {
|
|
3609
|
+
if (tag !== 26) {
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
message.requirements.push(exports.ComplianceRequirement.decode(reader, reader.uint32()));
|
|
3613
|
+
continue;
|
|
3614
|
+
}
|
|
3615
|
+
case 4: {
|
|
3616
|
+
if (tag !== 32) {
|
|
3617
|
+
break;
|
|
3618
|
+
}
|
|
3619
|
+
message.inGoodStanding = reader.bool();
|
|
3620
|
+
continue;
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3624
|
+
break;
|
|
3625
|
+
}
|
|
3626
|
+
reader.skip(tag & 7);
|
|
3627
|
+
}
|
|
3628
|
+
return message;
|
|
3629
|
+
},
|
|
3630
|
+
fromJSON(object) {
|
|
3631
|
+
return {
|
|
3632
|
+
entityId: isSet(object.entityId)
|
|
3633
|
+
? globalThis.String(object.entityId)
|
|
3634
|
+
: isSet(object.entity_id)
|
|
3635
|
+
? globalThis.String(object.entity_id)
|
|
3636
|
+
: "",
|
|
3637
|
+
filings: globalThis.Array.isArray(object?.filings)
|
|
3638
|
+
? object.filings.map((e) => exports.FilingRecord.fromJSON(e))
|
|
3639
|
+
: [],
|
|
3640
|
+
requirements: globalThis.Array.isArray(object?.requirements)
|
|
3641
|
+
? object.requirements.map((e) => exports.ComplianceRequirement.fromJSON(e))
|
|
3642
|
+
: [],
|
|
3643
|
+
inGoodStanding: isSet(object.inGoodStanding)
|
|
3644
|
+
? globalThis.Boolean(object.inGoodStanding)
|
|
3645
|
+
: isSet(object.in_good_standing)
|
|
3646
|
+
? globalThis.Boolean(object.in_good_standing)
|
|
3647
|
+
: false,
|
|
3648
|
+
};
|
|
3649
|
+
},
|
|
3650
|
+
toJSON(message) {
|
|
3651
|
+
const obj = {};
|
|
3652
|
+
if (message.entityId !== "") {
|
|
3653
|
+
obj.entityId = message.entityId;
|
|
3654
|
+
}
|
|
3655
|
+
if (message.filings?.length) {
|
|
3656
|
+
obj.filings = message.filings.map((e) => exports.FilingRecord.toJSON(e));
|
|
3657
|
+
}
|
|
3658
|
+
if (message.requirements?.length) {
|
|
3659
|
+
obj.requirements = message.requirements.map((e) => exports.ComplianceRequirement.toJSON(e));
|
|
3660
|
+
}
|
|
3661
|
+
if (message.inGoodStanding !== false) {
|
|
3662
|
+
obj.inGoodStanding = message.inGoodStanding;
|
|
3663
|
+
}
|
|
3664
|
+
return obj;
|
|
3665
|
+
},
|
|
3666
|
+
create(base) {
|
|
3667
|
+
return exports.CorporateCompliance.fromPartial(base ?? {});
|
|
3668
|
+
},
|
|
3669
|
+
fromPartial(object) {
|
|
3670
|
+
const message = createBaseCorporateCompliance();
|
|
3671
|
+
message.entityId = object.entityId ?? "";
|
|
3672
|
+
message.filings = object.filings?.map((e) => exports.FilingRecord.fromPartial(e)) || [];
|
|
3673
|
+
message.requirements = object.requirements?.map((e) => exports.ComplianceRequirement.fromPartial(e)) || [];
|
|
3674
|
+
message.inGoodStanding = object.inGoodStanding ?? false;
|
|
3675
|
+
return message;
|
|
3676
|
+
},
|
|
3677
|
+
};
|
|
3678
|
+
function createBaseFilingRecord() {
|
|
3679
|
+
return { filingId: "", filingType: "", filedAt: undefined, dueDate: undefined, status: "" };
|
|
3680
|
+
}
|
|
3681
|
+
exports.FilingRecord = {
|
|
3682
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3683
|
+
if (message.filingId !== "") {
|
|
3684
|
+
writer.uint32(10).string(message.filingId);
|
|
3685
|
+
}
|
|
3686
|
+
if (message.filingType !== "") {
|
|
3687
|
+
writer.uint32(18).string(message.filingType);
|
|
3688
|
+
}
|
|
3689
|
+
if (message.filedAt !== undefined) {
|
|
3690
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.filedAt), writer.uint32(26).fork()).join();
|
|
3691
|
+
}
|
|
3692
|
+
if (message.dueDate !== undefined) {
|
|
3693
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.dueDate), writer.uint32(34).fork()).join();
|
|
3694
|
+
}
|
|
3695
|
+
if (message.status !== "") {
|
|
3696
|
+
writer.uint32(42).string(message.status);
|
|
3697
|
+
}
|
|
3698
|
+
return writer;
|
|
3699
|
+
},
|
|
3700
|
+
decode(input, length) {
|
|
3701
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3702
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3703
|
+
const message = createBaseFilingRecord();
|
|
3704
|
+
while (reader.pos < end) {
|
|
3705
|
+
const tag = reader.uint32();
|
|
3706
|
+
switch (tag >>> 3) {
|
|
3707
|
+
case 1: {
|
|
3708
|
+
if (tag !== 10) {
|
|
3709
|
+
break;
|
|
3710
|
+
}
|
|
3711
|
+
message.filingId = reader.string();
|
|
3712
|
+
continue;
|
|
3713
|
+
}
|
|
3714
|
+
case 2: {
|
|
3715
|
+
if (tag !== 18) {
|
|
3716
|
+
break;
|
|
3717
|
+
}
|
|
3718
|
+
message.filingType = reader.string();
|
|
3719
|
+
continue;
|
|
3720
|
+
}
|
|
3721
|
+
case 3: {
|
|
3722
|
+
if (tag !== 26) {
|
|
3723
|
+
break;
|
|
3724
|
+
}
|
|
3725
|
+
message.filedAt = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
3726
|
+
continue;
|
|
3727
|
+
}
|
|
3728
|
+
case 4: {
|
|
3729
|
+
if (tag !== 34) {
|
|
3730
|
+
break;
|
|
3731
|
+
}
|
|
3732
|
+
message.dueDate = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
3733
|
+
continue;
|
|
3734
|
+
}
|
|
3735
|
+
case 5: {
|
|
3736
|
+
if (tag !== 42) {
|
|
3737
|
+
break;
|
|
3738
|
+
}
|
|
3739
|
+
message.status = reader.string();
|
|
3740
|
+
continue;
|
|
3741
|
+
}
|
|
3742
|
+
}
|
|
3743
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3744
|
+
break;
|
|
3745
|
+
}
|
|
3746
|
+
reader.skip(tag & 7);
|
|
3747
|
+
}
|
|
3748
|
+
return message;
|
|
3749
|
+
},
|
|
3750
|
+
fromJSON(object) {
|
|
3751
|
+
return {
|
|
3752
|
+
filingId: isSet(object.filingId)
|
|
3753
|
+
? globalThis.String(object.filingId)
|
|
3754
|
+
: isSet(object.filing_id)
|
|
3755
|
+
? globalThis.String(object.filing_id)
|
|
3756
|
+
: "",
|
|
3757
|
+
filingType: isSet(object.filingType)
|
|
3758
|
+
? globalThis.String(object.filingType)
|
|
3759
|
+
: isSet(object.filing_type)
|
|
3760
|
+
? globalThis.String(object.filing_type)
|
|
3761
|
+
: "",
|
|
3762
|
+
filedAt: isSet(object.filedAt)
|
|
3763
|
+
? fromJsonTimestamp(object.filedAt)
|
|
3764
|
+
: isSet(object.filed_at)
|
|
3765
|
+
? fromJsonTimestamp(object.filed_at)
|
|
3766
|
+
: undefined,
|
|
3767
|
+
dueDate: isSet(object.dueDate)
|
|
3768
|
+
? fromJsonTimestamp(object.dueDate)
|
|
3769
|
+
: isSet(object.due_date)
|
|
3770
|
+
? fromJsonTimestamp(object.due_date)
|
|
3771
|
+
: undefined,
|
|
3772
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
3773
|
+
};
|
|
3774
|
+
},
|
|
3775
|
+
toJSON(message) {
|
|
3776
|
+
const obj = {};
|
|
3777
|
+
if (message.filingId !== "") {
|
|
3778
|
+
obj.filingId = message.filingId;
|
|
3779
|
+
}
|
|
3780
|
+
if (message.filingType !== "") {
|
|
3781
|
+
obj.filingType = message.filingType;
|
|
3782
|
+
}
|
|
3783
|
+
if (message.filedAt !== undefined) {
|
|
3784
|
+
obj.filedAt = message.filedAt.toISOString();
|
|
3785
|
+
}
|
|
3786
|
+
if (message.dueDate !== undefined) {
|
|
3787
|
+
obj.dueDate = message.dueDate.toISOString();
|
|
3788
|
+
}
|
|
3789
|
+
if (message.status !== "") {
|
|
3790
|
+
obj.status = message.status;
|
|
3791
|
+
}
|
|
3792
|
+
return obj;
|
|
3793
|
+
},
|
|
3794
|
+
create(base) {
|
|
3795
|
+
return exports.FilingRecord.fromPartial(base ?? {});
|
|
3796
|
+
},
|
|
3797
|
+
fromPartial(object) {
|
|
3798
|
+
const message = createBaseFilingRecord();
|
|
3799
|
+
message.filingId = object.filingId ?? "";
|
|
3800
|
+
message.filingType = object.filingType ?? "";
|
|
3801
|
+
message.filedAt = object.filedAt ?? undefined;
|
|
3802
|
+
message.dueDate = object.dueDate ?? undefined;
|
|
3803
|
+
message.status = object.status ?? "";
|
|
3804
|
+
return message;
|
|
3805
|
+
},
|
|
3806
|
+
};
|
|
3807
|
+
function createBaseComplianceRequirement() {
|
|
3808
|
+
return { requirementId: "", description: "", frequency: "", nextDue: undefined };
|
|
3809
|
+
}
|
|
3810
|
+
exports.ComplianceRequirement = {
|
|
3811
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3812
|
+
if (message.requirementId !== "") {
|
|
3813
|
+
writer.uint32(10).string(message.requirementId);
|
|
3814
|
+
}
|
|
3815
|
+
if (message.description !== "") {
|
|
3816
|
+
writer.uint32(18).string(message.description);
|
|
3817
|
+
}
|
|
3818
|
+
if (message.frequency !== "") {
|
|
3819
|
+
writer.uint32(26).string(message.frequency);
|
|
3820
|
+
}
|
|
3821
|
+
if (message.nextDue !== undefined) {
|
|
3822
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.nextDue), writer.uint32(34).fork()).join();
|
|
3823
|
+
}
|
|
3824
|
+
return writer;
|
|
3825
|
+
},
|
|
3826
|
+
decode(input, length) {
|
|
3827
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3828
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3829
|
+
const message = createBaseComplianceRequirement();
|
|
3830
|
+
while (reader.pos < end) {
|
|
3831
|
+
const tag = reader.uint32();
|
|
3832
|
+
switch (tag >>> 3) {
|
|
3833
|
+
case 1: {
|
|
3834
|
+
if (tag !== 10) {
|
|
3835
|
+
break;
|
|
3836
|
+
}
|
|
3837
|
+
message.requirementId = reader.string();
|
|
3838
|
+
continue;
|
|
3839
|
+
}
|
|
3840
|
+
case 2: {
|
|
3841
|
+
if (tag !== 18) {
|
|
3842
|
+
break;
|
|
3843
|
+
}
|
|
3844
|
+
message.description = reader.string();
|
|
3845
|
+
continue;
|
|
3846
|
+
}
|
|
3847
|
+
case 3: {
|
|
3848
|
+
if (tag !== 26) {
|
|
3849
|
+
break;
|
|
3850
|
+
}
|
|
3851
|
+
message.frequency = reader.string();
|
|
3852
|
+
continue;
|
|
3853
|
+
}
|
|
3854
|
+
case 4: {
|
|
3855
|
+
if (tag !== 34) {
|
|
3856
|
+
break;
|
|
3857
|
+
}
|
|
3858
|
+
message.nextDue = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
3859
|
+
continue;
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3863
|
+
break;
|
|
3864
|
+
}
|
|
3865
|
+
reader.skip(tag & 7);
|
|
3866
|
+
}
|
|
3867
|
+
return message;
|
|
3868
|
+
},
|
|
3869
|
+
fromJSON(object) {
|
|
3870
|
+
return {
|
|
3871
|
+
requirementId: isSet(object.requirementId)
|
|
3872
|
+
? globalThis.String(object.requirementId)
|
|
3873
|
+
: isSet(object.requirement_id)
|
|
3874
|
+
? globalThis.String(object.requirement_id)
|
|
3875
|
+
: "",
|
|
3876
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
3877
|
+
frequency: isSet(object.frequency) ? globalThis.String(object.frequency) : "",
|
|
3878
|
+
nextDue: isSet(object.nextDue)
|
|
3879
|
+
? fromJsonTimestamp(object.nextDue)
|
|
3880
|
+
: isSet(object.next_due)
|
|
3881
|
+
? fromJsonTimestamp(object.next_due)
|
|
3882
|
+
: undefined,
|
|
3883
|
+
};
|
|
3884
|
+
},
|
|
3885
|
+
toJSON(message) {
|
|
3886
|
+
const obj = {};
|
|
3887
|
+
if (message.requirementId !== "") {
|
|
3888
|
+
obj.requirementId = message.requirementId;
|
|
3889
|
+
}
|
|
3890
|
+
if (message.description !== "") {
|
|
3891
|
+
obj.description = message.description;
|
|
3892
|
+
}
|
|
3893
|
+
if (message.frequency !== "") {
|
|
3894
|
+
obj.frequency = message.frequency;
|
|
3895
|
+
}
|
|
3896
|
+
if (message.nextDue !== undefined) {
|
|
3897
|
+
obj.nextDue = message.nextDue.toISOString();
|
|
3898
|
+
}
|
|
3899
|
+
return obj;
|
|
3900
|
+
},
|
|
3901
|
+
create(base) {
|
|
3902
|
+
return exports.ComplianceRequirement.fromPartial(base ?? {});
|
|
3903
|
+
},
|
|
3904
|
+
fromPartial(object) {
|
|
3905
|
+
const message = createBaseComplianceRequirement();
|
|
3906
|
+
message.requirementId = object.requirementId ?? "";
|
|
3907
|
+
message.description = object.description ?? "";
|
|
3908
|
+
message.frequency = object.frequency ?? "";
|
|
3909
|
+
message.nextDue = object.nextDue ?? undefined;
|
|
3910
|
+
return message;
|
|
3911
|
+
},
|
|
3912
|
+
};
|
|
3913
|
+
function createBaseCreateEntityRequest() {
|
|
3914
|
+
return {
|
|
3915
|
+
legalName: "",
|
|
3916
|
+
entityType: EntityType.ENTITY_TYPE_UNSPECIFIED,
|
|
3917
|
+
jurisdiction: undefined,
|
|
3918
|
+
registeredAgent: undefined,
|
|
3919
|
+
incorporators: [],
|
|
3920
|
+
shareClasses: [],
|
|
3921
|
+
};
|
|
3922
|
+
}
|
|
3923
|
+
exports.CreateEntityRequest = {
|
|
3924
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3925
|
+
if (message.legalName !== "") {
|
|
3926
|
+
writer.uint32(10).string(message.legalName);
|
|
3927
|
+
}
|
|
3928
|
+
if (message.entityType !== EntityType.ENTITY_TYPE_UNSPECIFIED) {
|
|
3929
|
+
writer.uint32(16).int32(entityTypeToNumber(message.entityType));
|
|
3930
|
+
}
|
|
3931
|
+
if (message.jurisdiction !== undefined) {
|
|
3932
|
+
exports.Jurisdiction.encode(message.jurisdiction, writer.uint32(26).fork()).join();
|
|
3933
|
+
}
|
|
3934
|
+
if (message.registeredAgent !== undefined) {
|
|
3935
|
+
exports.RegisteredAgent.encode(message.registeredAgent, writer.uint32(34).fork()).join();
|
|
3936
|
+
}
|
|
3937
|
+
for (const v of message.incorporators) {
|
|
3938
|
+
exports.Incorporator.encode(v, writer.uint32(42).fork()).join();
|
|
3939
|
+
}
|
|
3940
|
+
for (const v of message.shareClasses) {
|
|
3941
|
+
exports.ShareClass.encode(v, writer.uint32(50).fork()).join();
|
|
3942
|
+
}
|
|
3943
|
+
return writer;
|
|
3944
|
+
},
|
|
3945
|
+
decode(input, length) {
|
|
3946
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3947
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3948
|
+
const message = createBaseCreateEntityRequest();
|
|
3949
|
+
while (reader.pos < end) {
|
|
3950
|
+
const tag = reader.uint32();
|
|
3951
|
+
switch (tag >>> 3) {
|
|
3952
|
+
case 1: {
|
|
3953
|
+
if (tag !== 10) {
|
|
3954
|
+
break;
|
|
3955
|
+
}
|
|
3956
|
+
message.legalName = reader.string();
|
|
3957
|
+
continue;
|
|
3958
|
+
}
|
|
3959
|
+
case 2: {
|
|
3960
|
+
if (tag !== 16) {
|
|
3961
|
+
break;
|
|
3962
|
+
}
|
|
3963
|
+
message.entityType = entityTypeFromJSON(reader.int32());
|
|
3964
|
+
continue;
|
|
3965
|
+
}
|
|
3966
|
+
case 3: {
|
|
3967
|
+
if (tag !== 26) {
|
|
3968
|
+
break;
|
|
3969
|
+
}
|
|
3970
|
+
message.jurisdiction = exports.Jurisdiction.decode(reader, reader.uint32());
|
|
3971
|
+
continue;
|
|
3972
|
+
}
|
|
3973
|
+
case 4: {
|
|
3974
|
+
if (tag !== 34) {
|
|
3975
|
+
break;
|
|
3976
|
+
}
|
|
3977
|
+
message.registeredAgent = exports.RegisteredAgent.decode(reader, reader.uint32());
|
|
3978
|
+
continue;
|
|
3979
|
+
}
|
|
3980
|
+
case 5: {
|
|
3981
|
+
if (tag !== 42) {
|
|
3982
|
+
break;
|
|
3983
|
+
}
|
|
3984
|
+
message.incorporators.push(exports.Incorporator.decode(reader, reader.uint32()));
|
|
3985
|
+
continue;
|
|
3986
|
+
}
|
|
3987
|
+
case 6: {
|
|
3988
|
+
if (tag !== 50) {
|
|
3989
|
+
break;
|
|
3990
|
+
}
|
|
3991
|
+
message.shareClasses.push(exports.ShareClass.decode(reader, reader.uint32()));
|
|
3992
|
+
continue;
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3996
|
+
break;
|
|
3997
|
+
}
|
|
3998
|
+
reader.skip(tag & 7);
|
|
3999
|
+
}
|
|
4000
|
+
return message;
|
|
4001
|
+
},
|
|
4002
|
+
fromJSON(object) {
|
|
4003
|
+
return {
|
|
4004
|
+
legalName: isSet(object.legalName)
|
|
4005
|
+
? globalThis.String(object.legalName)
|
|
4006
|
+
: isSet(object.legal_name)
|
|
4007
|
+
? globalThis.String(object.legal_name)
|
|
4008
|
+
: "",
|
|
4009
|
+
entityType: isSet(object.entityType)
|
|
4010
|
+
? entityTypeFromJSON(object.entityType)
|
|
4011
|
+
: isSet(object.entity_type)
|
|
4012
|
+
? entityTypeFromJSON(object.entity_type)
|
|
4013
|
+
: EntityType.ENTITY_TYPE_UNSPECIFIED,
|
|
4014
|
+
jurisdiction: isSet(object.jurisdiction) ? exports.Jurisdiction.fromJSON(object.jurisdiction) : undefined,
|
|
4015
|
+
registeredAgent: isSet(object.registeredAgent)
|
|
4016
|
+
? exports.RegisteredAgent.fromJSON(object.registeredAgent)
|
|
4017
|
+
: isSet(object.registered_agent)
|
|
4018
|
+
? exports.RegisteredAgent.fromJSON(object.registered_agent)
|
|
4019
|
+
: undefined,
|
|
4020
|
+
incorporators: globalThis.Array.isArray(object?.incorporators)
|
|
4021
|
+
? object.incorporators.map((e) => exports.Incorporator.fromJSON(e))
|
|
4022
|
+
: [],
|
|
4023
|
+
shareClasses: globalThis.Array.isArray(object?.shareClasses)
|
|
4024
|
+
? object.shareClasses.map((e) => exports.ShareClass.fromJSON(e))
|
|
4025
|
+
: globalThis.Array.isArray(object?.share_classes)
|
|
4026
|
+
? object.share_classes.map((e) => exports.ShareClass.fromJSON(e))
|
|
4027
|
+
: [],
|
|
4028
|
+
};
|
|
4029
|
+
},
|
|
4030
|
+
toJSON(message) {
|
|
4031
|
+
const obj = {};
|
|
4032
|
+
if (message.legalName !== "") {
|
|
4033
|
+
obj.legalName = message.legalName;
|
|
4034
|
+
}
|
|
4035
|
+
if (message.entityType !== EntityType.ENTITY_TYPE_UNSPECIFIED) {
|
|
4036
|
+
obj.entityType = entityTypeToJSON(message.entityType);
|
|
4037
|
+
}
|
|
4038
|
+
if (message.jurisdiction !== undefined) {
|
|
4039
|
+
obj.jurisdiction = exports.Jurisdiction.toJSON(message.jurisdiction);
|
|
4040
|
+
}
|
|
4041
|
+
if (message.registeredAgent !== undefined) {
|
|
4042
|
+
obj.registeredAgent = exports.RegisteredAgent.toJSON(message.registeredAgent);
|
|
4043
|
+
}
|
|
4044
|
+
if (message.incorporators?.length) {
|
|
4045
|
+
obj.incorporators = message.incorporators.map((e) => exports.Incorporator.toJSON(e));
|
|
4046
|
+
}
|
|
4047
|
+
if (message.shareClasses?.length) {
|
|
4048
|
+
obj.shareClasses = message.shareClasses.map((e) => exports.ShareClass.toJSON(e));
|
|
4049
|
+
}
|
|
4050
|
+
return obj;
|
|
4051
|
+
},
|
|
4052
|
+
create(base) {
|
|
4053
|
+
return exports.CreateEntityRequest.fromPartial(base ?? {});
|
|
4054
|
+
},
|
|
4055
|
+
fromPartial(object) {
|
|
4056
|
+
const message = createBaseCreateEntityRequest();
|
|
4057
|
+
message.legalName = object.legalName ?? "";
|
|
4058
|
+
message.entityType = object.entityType ?? EntityType.ENTITY_TYPE_UNSPECIFIED;
|
|
4059
|
+
message.jurisdiction = (object.jurisdiction !== undefined && object.jurisdiction !== null)
|
|
4060
|
+
? exports.Jurisdiction.fromPartial(object.jurisdiction)
|
|
4061
|
+
: undefined;
|
|
4062
|
+
message.registeredAgent = (object.registeredAgent !== undefined && object.registeredAgent !== null)
|
|
4063
|
+
? exports.RegisteredAgent.fromPartial(object.registeredAgent)
|
|
4064
|
+
: undefined;
|
|
4065
|
+
message.incorporators = object.incorporators?.map((e) => exports.Incorporator.fromPartial(e)) || [];
|
|
4066
|
+
message.shareClasses = object.shareClasses?.map((e) => exports.ShareClass.fromPartial(e)) || [];
|
|
4067
|
+
return message;
|
|
4068
|
+
},
|
|
4069
|
+
};
|
|
4070
|
+
function createBaseAppointDirectorRequest() {
|
|
4071
|
+
return { entityId: "", name: "", email: "", termStart: undefined, termEnd: undefined, isIndependent: false };
|
|
4072
|
+
}
|
|
4073
|
+
exports.AppointDirectorRequest = {
|
|
4074
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4075
|
+
if (message.entityId !== "") {
|
|
4076
|
+
writer.uint32(10).string(message.entityId);
|
|
4077
|
+
}
|
|
4078
|
+
if (message.name !== "") {
|
|
4079
|
+
writer.uint32(18).string(message.name);
|
|
4080
|
+
}
|
|
4081
|
+
if (message.email !== "") {
|
|
4082
|
+
writer.uint32(26).string(message.email);
|
|
4083
|
+
}
|
|
4084
|
+
if (message.termStart !== undefined) {
|
|
4085
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.termStart), writer.uint32(34).fork()).join();
|
|
4086
|
+
}
|
|
4087
|
+
if (message.termEnd !== undefined) {
|
|
4088
|
+
timestamp_js_1.Timestamp.encode(toTimestamp(message.termEnd), writer.uint32(42).fork()).join();
|
|
4089
|
+
}
|
|
4090
|
+
if (message.isIndependent !== false) {
|
|
4091
|
+
writer.uint32(48).bool(message.isIndependent);
|
|
4092
|
+
}
|
|
4093
|
+
return writer;
|
|
4094
|
+
},
|
|
4095
|
+
decode(input, length) {
|
|
4096
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4097
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4098
|
+
const message = createBaseAppointDirectorRequest();
|
|
4099
|
+
while (reader.pos < end) {
|
|
4100
|
+
const tag = reader.uint32();
|
|
4101
|
+
switch (tag >>> 3) {
|
|
4102
|
+
case 1: {
|
|
4103
|
+
if (tag !== 10) {
|
|
4104
|
+
break;
|
|
4105
|
+
}
|
|
4106
|
+
message.entityId = reader.string();
|
|
4107
|
+
continue;
|
|
4108
|
+
}
|
|
4109
|
+
case 2: {
|
|
4110
|
+
if (tag !== 18) {
|
|
4111
|
+
break;
|
|
4112
|
+
}
|
|
4113
|
+
message.name = reader.string();
|
|
4114
|
+
continue;
|
|
4115
|
+
}
|
|
4116
|
+
case 3: {
|
|
4117
|
+
if (tag !== 26) {
|
|
4118
|
+
break;
|
|
4119
|
+
}
|
|
4120
|
+
message.email = reader.string();
|
|
4121
|
+
continue;
|
|
4122
|
+
}
|
|
4123
|
+
case 4: {
|
|
4124
|
+
if (tag !== 34) {
|
|
4125
|
+
break;
|
|
4126
|
+
}
|
|
4127
|
+
message.termStart = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
4128
|
+
continue;
|
|
4129
|
+
}
|
|
4130
|
+
case 5: {
|
|
4131
|
+
if (tag !== 42) {
|
|
4132
|
+
break;
|
|
4133
|
+
}
|
|
4134
|
+
message.termEnd = fromTimestamp(timestamp_js_1.Timestamp.decode(reader, reader.uint32()));
|
|
4135
|
+
continue;
|
|
4136
|
+
}
|
|
4137
|
+
case 6: {
|
|
4138
|
+
if (tag !== 48) {
|
|
4139
|
+
break;
|
|
4140
|
+
}
|
|
4141
|
+
message.isIndependent = reader.bool();
|
|
4142
|
+
continue;
|
|
4143
|
+
}
|
|
4144
|
+
}
|
|
4145
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4146
|
+
break;
|
|
4147
|
+
}
|
|
4148
|
+
reader.skip(tag & 7);
|
|
4149
|
+
}
|
|
4150
|
+
return message;
|
|
4151
|
+
},
|
|
4152
|
+
fromJSON(object) {
|
|
4153
|
+
return {
|
|
4154
|
+
entityId: isSet(object.entityId)
|
|
4155
|
+
? globalThis.String(object.entityId)
|
|
4156
|
+
: isSet(object.entity_id)
|
|
4157
|
+
? globalThis.String(object.entity_id)
|
|
4158
|
+
: "",
|
|
4159
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
4160
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
4161
|
+
termStart: isSet(object.termStart)
|
|
4162
|
+
? fromJsonTimestamp(object.termStart)
|
|
4163
|
+
: isSet(object.term_start)
|
|
4164
|
+
? fromJsonTimestamp(object.term_start)
|
|
4165
|
+
: undefined,
|
|
4166
|
+
termEnd: isSet(object.termEnd)
|
|
4167
|
+
? fromJsonTimestamp(object.termEnd)
|
|
4168
|
+
: isSet(object.term_end)
|
|
4169
|
+
? fromJsonTimestamp(object.term_end)
|
|
4170
|
+
: undefined,
|
|
4171
|
+
isIndependent: isSet(object.isIndependent)
|
|
4172
|
+
? globalThis.Boolean(object.isIndependent)
|
|
4173
|
+
: isSet(object.is_independent)
|
|
4174
|
+
? globalThis.Boolean(object.is_independent)
|
|
4175
|
+
: false,
|
|
4176
|
+
};
|
|
4177
|
+
},
|
|
4178
|
+
toJSON(message) {
|
|
4179
|
+
const obj = {};
|
|
4180
|
+
if (message.entityId !== "") {
|
|
4181
|
+
obj.entityId = message.entityId;
|
|
4182
|
+
}
|
|
4183
|
+
if (message.name !== "") {
|
|
4184
|
+
obj.name = message.name;
|
|
4185
|
+
}
|
|
4186
|
+
if (message.email !== "") {
|
|
4187
|
+
obj.email = message.email;
|
|
4188
|
+
}
|
|
4189
|
+
if (message.termStart !== undefined) {
|
|
4190
|
+
obj.termStart = message.termStart.toISOString();
|
|
4191
|
+
}
|
|
4192
|
+
if (message.termEnd !== undefined) {
|
|
4193
|
+
obj.termEnd = message.termEnd.toISOString();
|
|
4194
|
+
}
|
|
4195
|
+
if (message.isIndependent !== false) {
|
|
4196
|
+
obj.isIndependent = message.isIndependent;
|
|
4197
|
+
}
|
|
4198
|
+
return obj;
|
|
4199
|
+
},
|
|
4200
|
+
create(base) {
|
|
4201
|
+
return exports.AppointDirectorRequest.fromPartial(base ?? {});
|
|
4202
|
+
},
|
|
4203
|
+
fromPartial(object) {
|
|
4204
|
+
const message = createBaseAppointDirectorRequest();
|
|
4205
|
+
message.entityId = object.entityId ?? "";
|
|
4206
|
+
message.name = object.name ?? "";
|
|
4207
|
+
message.email = object.email ?? "";
|
|
4208
|
+
message.termStart = object.termStart ?? undefined;
|
|
4209
|
+
message.termEnd = object.termEnd ?? undefined;
|
|
4210
|
+
message.isIndependent = object.isIndependent ?? false;
|
|
4211
|
+
return message;
|
|
4212
|
+
},
|
|
4213
|
+
};
|
|
4214
|
+
function createBaseIssueSharesRequest() {
|
|
4215
|
+
return { entityId: "", classId: "", recipient: "", shares: 0, pricePerShareCents: 0, authorizationResolutionId: "" };
|
|
4216
|
+
}
|
|
4217
|
+
exports.IssueSharesRequest = {
|
|
4218
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4219
|
+
if (message.entityId !== "") {
|
|
4220
|
+
writer.uint32(10).string(message.entityId);
|
|
4221
|
+
}
|
|
4222
|
+
if (message.classId !== "") {
|
|
4223
|
+
writer.uint32(18).string(message.classId);
|
|
4224
|
+
}
|
|
4225
|
+
if (message.recipient !== "") {
|
|
4226
|
+
writer.uint32(26).string(message.recipient);
|
|
4227
|
+
}
|
|
4228
|
+
if (message.shares !== 0) {
|
|
4229
|
+
writer.uint32(32).int64(message.shares);
|
|
4230
|
+
}
|
|
4231
|
+
if (message.pricePerShareCents !== 0) {
|
|
4232
|
+
writer.uint32(40).int64(message.pricePerShareCents);
|
|
4233
|
+
}
|
|
4234
|
+
if (message.authorizationResolutionId !== "") {
|
|
4235
|
+
writer.uint32(50).string(message.authorizationResolutionId);
|
|
4236
|
+
}
|
|
4237
|
+
return writer;
|
|
4238
|
+
},
|
|
4239
|
+
decode(input, length) {
|
|
4240
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4241
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4242
|
+
const message = createBaseIssueSharesRequest();
|
|
4243
|
+
while (reader.pos < end) {
|
|
4244
|
+
const tag = reader.uint32();
|
|
4245
|
+
switch (tag >>> 3) {
|
|
4246
|
+
case 1: {
|
|
4247
|
+
if (tag !== 10) {
|
|
4248
|
+
break;
|
|
4249
|
+
}
|
|
4250
|
+
message.entityId = reader.string();
|
|
4251
|
+
continue;
|
|
4252
|
+
}
|
|
4253
|
+
case 2: {
|
|
4254
|
+
if (tag !== 18) {
|
|
4255
|
+
break;
|
|
4256
|
+
}
|
|
4257
|
+
message.classId = reader.string();
|
|
4258
|
+
continue;
|
|
4259
|
+
}
|
|
4260
|
+
case 3: {
|
|
4261
|
+
if (tag !== 26) {
|
|
4262
|
+
break;
|
|
4263
|
+
}
|
|
4264
|
+
message.recipient = reader.string();
|
|
4265
|
+
continue;
|
|
4266
|
+
}
|
|
4267
|
+
case 4: {
|
|
4268
|
+
if (tag !== 32) {
|
|
4269
|
+
break;
|
|
4270
|
+
}
|
|
4271
|
+
message.shares = longToNumber(reader.int64());
|
|
4272
|
+
continue;
|
|
4273
|
+
}
|
|
4274
|
+
case 5: {
|
|
4275
|
+
if (tag !== 40) {
|
|
4276
|
+
break;
|
|
4277
|
+
}
|
|
4278
|
+
message.pricePerShareCents = longToNumber(reader.int64());
|
|
4279
|
+
continue;
|
|
4280
|
+
}
|
|
4281
|
+
case 6: {
|
|
4282
|
+
if (tag !== 50) {
|
|
4283
|
+
break;
|
|
4284
|
+
}
|
|
4285
|
+
message.authorizationResolutionId = reader.string();
|
|
4286
|
+
continue;
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4290
|
+
break;
|
|
4291
|
+
}
|
|
4292
|
+
reader.skip(tag & 7);
|
|
4293
|
+
}
|
|
4294
|
+
return message;
|
|
4295
|
+
},
|
|
4296
|
+
fromJSON(object) {
|
|
4297
|
+
return {
|
|
4298
|
+
entityId: isSet(object.entityId)
|
|
4299
|
+
? globalThis.String(object.entityId)
|
|
4300
|
+
: isSet(object.entity_id)
|
|
4301
|
+
? globalThis.String(object.entity_id)
|
|
4302
|
+
: "",
|
|
4303
|
+
classId: isSet(object.classId)
|
|
4304
|
+
? globalThis.String(object.classId)
|
|
4305
|
+
: isSet(object.class_id)
|
|
4306
|
+
? globalThis.String(object.class_id)
|
|
4307
|
+
: "",
|
|
4308
|
+
recipient: isSet(object.recipient) ? globalThis.String(object.recipient) : "",
|
|
4309
|
+
shares: isSet(object.shares) ? globalThis.Number(object.shares) : 0,
|
|
4310
|
+
pricePerShareCents: isSet(object.pricePerShareCents)
|
|
4311
|
+
? globalThis.Number(object.pricePerShareCents)
|
|
4312
|
+
: isSet(object.price_per_share_cents)
|
|
4313
|
+
? globalThis.Number(object.price_per_share_cents)
|
|
4314
|
+
: 0,
|
|
4315
|
+
authorizationResolutionId: isSet(object.authorizationResolutionId)
|
|
4316
|
+
? globalThis.String(object.authorizationResolutionId)
|
|
4317
|
+
: isSet(object.authorization_resolution_id)
|
|
4318
|
+
? globalThis.String(object.authorization_resolution_id)
|
|
4319
|
+
: "",
|
|
4320
|
+
};
|
|
4321
|
+
},
|
|
4322
|
+
toJSON(message) {
|
|
4323
|
+
const obj = {};
|
|
4324
|
+
if (message.entityId !== "") {
|
|
4325
|
+
obj.entityId = message.entityId;
|
|
4326
|
+
}
|
|
4327
|
+
if (message.classId !== "") {
|
|
4328
|
+
obj.classId = message.classId;
|
|
4329
|
+
}
|
|
4330
|
+
if (message.recipient !== "") {
|
|
4331
|
+
obj.recipient = message.recipient;
|
|
4332
|
+
}
|
|
4333
|
+
if (message.shares !== 0) {
|
|
4334
|
+
obj.shares = Math.round(message.shares);
|
|
4335
|
+
}
|
|
4336
|
+
if (message.pricePerShareCents !== 0) {
|
|
4337
|
+
obj.pricePerShareCents = Math.round(message.pricePerShareCents);
|
|
4338
|
+
}
|
|
4339
|
+
if (message.authorizationResolutionId !== "") {
|
|
4340
|
+
obj.authorizationResolutionId = message.authorizationResolutionId;
|
|
4341
|
+
}
|
|
4342
|
+
return obj;
|
|
4343
|
+
},
|
|
4344
|
+
create(base) {
|
|
4345
|
+
return exports.IssueSharesRequest.fromPartial(base ?? {});
|
|
4346
|
+
},
|
|
4347
|
+
fromPartial(object) {
|
|
4348
|
+
const message = createBaseIssueSharesRequest();
|
|
4349
|
+
message.entityId = object.entityId ?? "";
|
|
4350
|
+
message.classId = object.classId ?? "";
|
|
4351
|
+
message.recipient = object.recipient ?? "";
|
|
4352
|
+
message.shares = object.shares ?? 0;
|
|
4353
|
+
message.pricePerShareCents = object.pricePerShareCents ?? 0;
|
|
4354
|
+
message.authorizationResolutionId = object.authorizationResolutionId ?? "";
|
|
4355
|
+
return message;
|
|
4356
|
+
},
|
|
4357
|
+
};
|
|
4358
|
+
function createBaseProposeResolutionRequest() {
|
|
4359
|
+
return { entityId: "", title: "", body: "", resolutionType: "", proposer: "" };
|
|
4360
|
+
}
|
|
4361
|
+
exports.ProposeResolutionRequest = {
|
|
4362
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4363
|
+
if (message.entityId !== "") {
|
|
4364
|
+
writer.uint32(10).string(message.entityId);
|
|
4365
|
+
}
|
|
4366
|
+
if (message.title !== "") {
|
|
4367
|
+
writer.uint32(18).string(message.title);
|
|
4368
|
+
}
|
|
4369
|
+
if (message.body !== "") {
|
|
4370
|
+
writer.uint32(26).string(message.body);
|
|
4371
|
+
}
|
|
4372
|
+
if (message.resolutionType !== "") {
|
|
4373
|
+
writer.uint32(34).string(message.resolutionType);
|
|
4374
|
+
}
|
|
4375
|
+
if (message.proposer !== "") {
|
|
4376
|
+
writer.uint32(42).string(message.proposer);
|
|
4377
|
+
}
|
|
4378
|
+
return writer;
|
|
4379
|
+
},
|
|
4380
|
+
decode(input, length) {
|
|
4381
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4382
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4383
|
+
const message = createBaseProposeResolutionRequest();
|
|
4384
|
+
while (reader.pos < end) {
|
|
4385
|
+
const tag = reader.uint32();
|
|
4386
|
+
switch (tag >>> 3) {
|
|
4387
|
+
case 1: {
|
|
4388
|
+
if (tag !== 10) {
|
|
4389
|
+
break;
|
|
4390
|
+
}
|
|
4391
|
+
message.entityId = reader.string();
|
|
4392
|
+
continue;
|
|
4393
|
+
}
|
|
4394
|
+
case 2: {
|
|
4395
|
+
if (tag !== 18) {
|
|
4396
|
+
break;
|
|
4397
|
+
}
|
|
4398
|
+
message.title = reader.string();
|
|
4399
|
+
continue;
|
|
4400
|
+
}
|
|
4401
|
+
case 3: {
|
|
4402
|
+
if (tag !== 26) {
|
|
4403
|
+
break;
|
|
4404
|
+
}
|
|
4405
|
+
message.body = reader.string();
|
|
4406
|
+
continue;
|
|
4407
|
+
}
|
|
4408
|
+
case 4: {
|
|
4409
|
+
if (tag !== 34) {
|
|
4410
|
+
break;
|
|
4411
|
+
}
|
|
4412
|
+
message.resolutionType = reader.string();
|
|
4413
|
+
continue;
|
|
4414
|
+
}
|
|
4415
|
+
case 5: {
|
|
4416
|
+
if (tag !== 42) {
|
|
4417
|
+
break;
|
|
4418
|
+
}
|
|
4419
|
+
message.proposer = reader.string();
|
|
4420
|
+
continue;
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4424
|
+
break;
|
|
4425
|
+
}
|
|
4426
|
+
reader.skip(tag & 7);
|
|
4427
|
+
}
|
|
4428
|
+
return message;
|
|
4429
|
+
},
|
|
4430
|
+
fromJSON(object) {
|
|
4431
|
+
return {
|
|
4432
|
+
entityId: isSet(object.entityId)
|
|
4433
|
+
? globalThis.String(object.entityId)
|
|
4434
|
+
: isSet(object.entity_id)
|
|
4435
|
+
? globalThis.String(object.entity_id)
|
|
4436
|
+
: "",
|
|
4437
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
4438
|
+
body: isSet(object.body) ? globalThis.String(object.body) : "",
|
|
4439
|
+
resolutionType: isSet(object.resolutionType)
|
|
4440
|
+
? globalThis.String(object.resolutionType)
|
|
4441
|
+
: isSet(object.resolution_type)
|
|
4442
|
+
? globalThis.String(object.resolution_type)
|
|
4443
|
+
: "",
|
|
4444
|
+
proposer: isSet(object.proposer) ? globalThis.String(object.proposer) : "",
|
|
4445
|
+
};
|
|
4446
|
+
},
|
|
4447
|
+
toJSON(message) {
|
|
4448
|
+
const obj = {};
|
|
4449
|
+
if (message.entityId !== "") {
|
|
4450
|
+
obj.entityId = message.entityId;
|
|
4451
|
+
}
|
|
4452
|
+
if (message.title !== "") {
|
|
4453
|
+
obj.title = message.title;
|
|
4454
|
+
}
|
|
4455
|
+
if (message.body !== "") {
|
|
4456
|
+
obj.body = message.body;
|
|
4457
|
+
}
|
|
4458
|
+
if (message.resolutionType !== "") {
|
|
4459
|
+
obj.resolutionType = message.resolutionType;
|
|
4460
|
+
}
|
|
4461
|
+
if (message.proposer !== "") {
|
|
4462
|
+
obj.proposer = message.proposer;
|
|
4463
|
+
}
|
|
4464
|
+
return obj;
|
|
4465
|
+
},
|
|
4466
|
+
create(base) {
|
|
4467
|
+
return exports.ProposeResolutionRequest.fromPartial(base ?? {});
|
|
4468
|
+
},
|
|
4469
|
+
fromPartial(object) {
|
|
4470
|
+
const message = createBaseProposeResolutionRequest();
|
|
4471
|
+
message.entityId = object.entityId ?? "";
|
|
4472
|
+
message.title = object.title ?? "";
|
|
4473
|
+
message.body = object.body ?? "";
|
|
4474
|
+
message.resolutionType = object.resolutionType ?? "";
|
|
4475
|
+
message.proposer = object.proposer ?? "";
|
|
4476
|
+
return message;
|
|
4477
|
+
},
|
|
4478
|
+
};
|
|
4479
|
+
function toTimestamp(date) {
|
|
4480
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
4481
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
4482
|
+
return { seconds, nanos };
|
|
4483
|
+
}
|
|
4484
|
+
function fromTimestamp(t) {
|
|
4485
|
+
let millis = (t.seconds || 0) * 1000;
|
|
4486
|
+
millis += (t.nanos || 0) / 1000000;
|
|
4487
|
+
return new globalThis.Date(millis);
|
|
4488
|
+
}
|
|
4489
|
+
function fromJsonTimestamp(o) {
|
|
4490
|
+
if (o instanceof globalThis.Date) {
|
|
4491
|
+
return o;
|
|
4492
|
+
}
|
|
4493
|
+
else if (typeof o === "string") {
|
|
4494
|
+
return new globalThis.Date(o);
|
|
4495
|
+
}
|
|
4496
|
+
else {
|
|
4497
|
+
return fromTimestamp(timestamp_js_1.Timestamp.fromJSON(o));
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
function longToNumber(int64) {
|
|
4501
|
+
const num = globalThis.Number(int64.toString());
|
|
4502
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
4503
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
4504
|
+
}
|
|
4505
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
4506
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
4507
|
+
}
|
|
4508
|
+
return num;
|
|
4509
|
+
}
|
|
4510
|
+
function isObject(value) {
|
|
4511
|
+
return typeof value === "object" && value !== null;
|
|
4512
|
+
}
|
|
4513
|
+
function isSet(value) {
|
|
4514
|
+
return value !== null && value !== undefined;
|
|
4515
|
+
}
|