forked from dashevo/drive-grpc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
32 lines (28 loc) · 818 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const UpdateStatePromiseClient = require('./clients/nodejs/UpdateStatePromiseClient');
const protocUpdateStateMessages = require('./clients/nodejs/update_state_protoc');
const {
org: {
dash: {
platform: {
drive: {
v0: pbjsUpdateStateMessages,
},
},
},
},
} = require('./clients/nodejs/update_state_pbjs');
const loadPackageDefinition = require('./src/loadPackageDefinition');
const jsonToProtobufFactory = require('./src/converters/jsonToProtobufFactory');
const protobufToJsonFactory = require('./src/converters/protobufToJsonFactory');
module.exports = {
UpdateStatePromiseClient,
utils: {
loadPackageDefinition,
jsonToProtobufFactory,
protobufToJsonFactory,
},
pbjs: {
...pbjsUpdateStateMessages,
},
...protocUpdateStateMessages,
};