git ssb

0+

Piet / ssb-loomio



Tree: ca77c54d481c41a3dbb9f2c43454de9dd9dde4c1

Files: ca77c54d481c41a3dbb9f2c43454de9dd9dde4c1 / methods.js

1194 bytesRaw
1// verbose export of public methods
2const {isPoll, isChooseOnePoll, isPosition, isChooseOnePosition} = require('ssb-poll-schema')
3
4module.exports = {
5 poll: {
6 async: {
7 get: require('./poll/async/get'),
8 publishChooseOne: require('./poll/async/publishChooseOne'),
9 publishUpdatedClosingTime: require('./poll/async/publishUpdatedClosingTime')
10 },
11 // NOTE - we think this is a bad idea, planning to deprecate
12 // obs: {
13 // get: require('./poll/obs/get')
14 // },
15 sync: {
16 isPoll: () => isPoll,
17 isChooseOnePoll: () => isChooseOnePoll
18 // Poll: // this is not exported - doesn't follow the inject pattern atm
19 },
20 pull: {
21 closed: require('./poll/pull/closed'),
22 open: require('./poll/pull/open'),
23 all: require('./poll/pull/all')
24 }
25 },
26 position: {
27 async: {
28 buildChooseOne: require('./position/async/buildChooseOne'),
29 publishChooseOne: require('./position/async/publishChooseOne'),
30 buildPosition: require('./position/async/buildPosition'),
31 publishPosition: require('./position/async/publishPosition')
32 },
33 sync: {
34 isChooseOnePosition: () => isChooseOnePosition
35 }
36 }
37}
38

Built with git-ssb-web