@ztimson/momentum 0.0.0 → 0.14.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.
@@ -1,35 +1,36 @@
1
- import { Actions } from './actions';
2
- import { Api, type ApiEvents } from './api';
3
- import { Auth, type AuthEvents, AuthOptions } from './auth';
4
- import { Data, type DataEvents } from './data';
5
- import { Email, type EmailEvents } from './email';
6
- import { Groups } from './groups';
7
- import { TypedEmitter, type TypedEvents, type XhrOptions } from '@ztimson/utils';
8
- import { Logger, LogLevel } from './logger';
9
- import { Socket } from './sockets';
10
- import { Storage, type StorageEvents } from './storage';
11
- import { Users } from './users';
12
- import { Settings, type SettingEvents } from './settings';
13
- import { Static, type StaticEvents } from './static';
14
- export type MomentumEvents = TypedEvents & ApiEvents & AuthEvents & DataEvents & EmailEvents & StaticEvents & StorageEvents & SettingEvents;
15
- export type MomentumOptions = AuthOptions & {
16
- logLevel?: LogLevel;
17
- socket?: boolean;
18
- api?: XhrOptions;
19
- };
20
- export declare class Momentum extends TypedEmitter<MomentumEvents> {
21
- api: Api;
22
- actions: Actions;
23
- auth: Auth;
24
- data: Data;
25
- email: Email;
26
- groups: Groups;
27
- logger: Logger;
28
- settings: Settings;
29
- socket?: Socket;
30
- static: Static;
31
- storage: Storage;
32
- users: Users;
33
- constructor(url?: string, opts?: MomentumOptions);
34
- }
1
+ import { Static, StaticEvents } from './static';
2
+ import { Settings, SettingEvents } from './settings';
3
+ import { Users } from './users';
4
+ import { Storage, StorageEvents } from './storage';
5
+ import { Socket } from './sockets';
6
+ import { Logger, LogLevel } from './logger';
7
+ import { TypedEmitter, TypedEvents, XhrOptions } from '@ztimson/utils';
8
+ import { Groups } from './groups';
9
+ import { Email, EmailEvents } from './email';
10
+ import { Data, DataEvents } from './data';
11
+ import { Auth, AuthEvents, AuthOptions } from './auth';
12
+ import { Api, ApiEvents } from './api';
13
+ import { Actions } from './actions';
14
+
15
+ export type MomentumEvents = TypedEvents & ApiEvents & AuthEvents & DataEvents & EmailEvents & StaticEvents & StorageEvents & SettingEvents;
16
+ export type MomentumOptions = AuthOptions & {
17
+ logLevel?: LogLevel;
18
+ socket?: boolean;
19
+ api?: XhrOptions;
20
+ };
21
+ export declare class Momentum extends TypedEmitter<MomentumEvents> {
22
+ api: Api;
23
+ actions: Actions;
24
+ auth: Auth;
25
+ data: Data;
26
+ email: Email;
27
+ groups: Groups;
28
+ logger: Logger;
29
+ settings: Settings;
30
+ socket?: Socket;
31
+ static: Static;
32
+ storage: Storage;
33
+ users: Users;
34
+ constructor(url?: string, opts?: MomentumOptions);
35
+ }
35
36
  //# sourceMappingURL=momentum.d.ts.map