* feat: add createCallLink function * feat: create Event class * feat: add functionality for sending Events * feat: add editEvent function * refactor: send event location prop as wa does * refactor: combine modules * feat: add sendResponseToEvent function * fix: createEventCallLink parameter * docs: add documentation * fix: eslint * refactor: change timestamp to Date for the user's convenience * refactor: rename 'Event' to 'ScheduledEvent' for more clarity * style: fix typo in inner function * refactor: remove unnecessary inner function * refactor: rename 'sendResponseToEvent' to 'sendResponseToScheduledEvent' for more clarity * fix: update the module name
35 lines
1.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
const Constants = require('./src/util/Constants');
|
|
|
|
module.exports = {
|
|
Client: require('./src/Client'),
|
|
|
|
version: require('./package.json').version,
|
|
|
|
// Structures
|
|
Chat: require('./src/structures/Chat'),
|
|
PrivateChat: require('./src/structures/PrivateChat'),
|
|
GroupChat: require('./src/structures/GroupChat'),
|
|
Channel: require('./src/structures/Channel'),
|
|
Message: require('./src/structures/Message'),
|
|
MessageMedia: require('./src/structures/MessageMedia'),
|
|
Contact: require('./src/structures/Contact'),
|
|
PrivateContact: require('./src/structures/PrivateContact'),
|
|
BusinessContact: require('./src/structures/BusinessContact'),
|
|
ClientInfo: require('./src/structures/ClientInfo'),
|
|
Location: require('./src/structures/Location'),
|
|
Poll: require('./src/structures/Poll'),
|
|
ScheduledEvent: require('./src/structures/ScheduledEvent'),
|
|
ProductMetadata: require('./src/structures/ProductMetadata'),
|
|
List: require('./src/structures/List'),
|
|
Buttons: require('./src/structures/Buttons'),
|
|
Broadcast: require('./src/structures/Broadcast'),
|
|
|
|
// Auth Strategies
|
|
NoAuth: require('./src/authStrategies/NoAuth'),
|
|
LocalAuth: require('./src/authStrategies/LocalAuth'),
|
|
RemoteAuth: require('./src/authStrategies/RemoteAuth'),
|
|
|
|
...Constants
|
|
};
|