This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
43 lines (35 loc) · 1.51 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
'use strict';
var meta = require('./lib/meta');
var ticketsClient = require('./lib/client/createTicket');
var updateTicketClient = require('./lib/client/updateTicket');
var getTicketClient = require('./lib/client/getTicket');
var accountClient = require('./lib/client/account');
var resultsClient = require('./lib/client/results');
var authClient = require('./lib/client/auth');
var sendLotteryTicket = function sendLotteryTicket(ticketRequest, options, callback) {
return ticketsClient.sendLotteryTicket(ticketRequest, options, callback);
};
var authorizeUser = function authorizeUser(authRequest, options, callback) {
return authClient.authorizeUser(authRequest, options, callback);
};
var getResults = function getResults(options, callback) {
return resultsClient.getResults(options, callback);
};
var getTickets = function getTickets(jar, options, callback) {
return accountClient.getTickets(jar, options, callback);
};
var updateLotteryTicket = function updateLotteryTicket(jar, id, updateTicketRequest, options, callback) {
return updateTicketClient.updateLotteryTicket(jar, id, updateTicketRequest, options, callback);
};
var getLotteryTicket = function getLotteryTicket(jar, id, options, callback) {
return getTicketClient.getLotteryTicket(jar, id, options, callback);
};
module.exports = {
VERSION: meta.VERSION,
authorizeUser: authorizeUser,
sendLotteryTicket: sendLotteryTicket,
getResults: getResults,
getTickets: getTickets,
updateLotteryTicket: updateLotteryTicket,
getLotteryTicket: getLotteryTicket
};