@flatfile/listener 0.3.7 → 0.3.8
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.
- package/README.md +49 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @flatfile/listener
|
|
2
|
+
|
|
3
|
+
`@flatfile/listener` is Flatfile's core library. It combines event handling capabilities with Flatfile-specific functionality, such as working with Flatfile records and sessions. Simply put, it receives events and it responds to events. Period.
|
|
4
|
+
|
|
5
|
+
The `AuthenticatedClient` class serves as a foundation for authenticated API communication, while the event-related classes enable event-driven workflows within the Flatfile ecosystem.
|
|
6
|
+
|
|
7
|
+
## Components
|
|
8
|
+
|
|
9
|
+
Here's an overview of the package and its components:
|
|
10
|
+
|
|
11
|
+
### `FlatfileRecord and FlatfileRecords`
|
|
12
|
+
|
|
13
|
+
- These classes represent records and collections of records in the Flatfile format.
|
|
14
|
+
- They provide methods for manipulating and retrieving record data.
|
|
15
|
+
|
|
16
|
+
### `FlatfileSession`
|
|
17
|
+
|
|
18
|
+
- This class represents a session in the Flatfile platform.
|
|
19
|
+
- It stores information about the workspace, workbook, schema, uploads, and other session-related data.
|
|
20
|
+
|
|
21
|
+
### `EventCache`
|
|
22
|
+
|
|
23
|
+
- This class implements an event caching mechanism.
|
|
24
|
+
- It allows for caching and retrieval of event data based on cache keys.
|
|
25
|
+
|
|
26
|
+
### `EventHandler`
|
|
27
|
+
|
|
28
|
+
This class is an event handler implementation that extends the AuthenticatedClient class.
|
|
29
|
+
|
|
30
|
+
- It provides methods for registering event listeners, dispatching events, and managing child event handlers.
|
|
31
|
+
- It supports filtering events based on topic and context.
|
|
32
|
+
- It can be used to handle and process events in the Flatfile platform.
|
|
33
|
+
|
|
34
|
+
### `AuthenticatedClient`
|
|
35
|
+
|
|
36
|
+
This class is a base class for authenticated HTTP clients.
|
|
37
|
+
|
|
38
|
+
- It provides functionality for making authenticated HTTP requests using Axios.
|
|
39
|
+
- It handles access tokens, API URLs, and HTTP headers.
|
|
40
|
+
|
|
41
|
+
### Various utility functions and types:
|
|
42
|
+
|
|
43
|
+
`@flatfile/listener` includes utility functions and types related to event handling, filtering, and data manipulation.
|
|
44
|
+
|
|
45
|
+
These utilities support the functionality of the event handling and data processing components.
|
|
46
|
+
|
|
47
|
+
## Get Started
|
|
48
|
+
|
|
49
|
+
To get started with @flatfile/listener, follow our [Quickstart guide](https://flatfile.com/docs/quickstart/meet-the-workbook).
|