@sinequa/atomic 0.0.62 → 0.0.100
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 +60 -11
- package/dist/atomic.js +1087 -760
- package/dist/atomic.umd.cjs +1 -1
- package/dist/authentication/auth.d.ts +59 -0
- package/dist/authentication/auth.d.ts.map +1 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/configurations/global.config.d.ts +19 -15
- package/dist/configurations/global.config.d.ts.map +1 -1
- package/dist/configurations/index.d.ts +1 -1
- package/dist/helpers/metadata.d.ts +22 -7
- package/dist/helpers/metadata.d.ts.map +1 -1
- package/dist/helpers/metadata.test.d.ts +2 -0
- package/dist/helpers/metadata.test.d.ts.map +1 -0
- package/dist/helpers/utils.d.ts +0 -17
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/types/api-endpoints.d.ts +1 -1
- package/dist/types/api-endpoints.d.ts.map +1 -1
- package/dist/types/config/CCAppPreLogin.d.ts +7 -3
- package/dist/types/config/CCAppPreLogin.d.ts.map +1 -1
- package/dist/types/config/index.d.ts +2 -5
- package/dist/types/config/index.d.ts.map +1 -1
- package/dist/types/export/types.d.ts +22 -0
- package/dist/types/export/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/search/index.d.ts +2 -2
- package/dist/types/search/index.d.ts.map +1 -1
- package/dist/utils/bisect.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/is-not-input-event.d.ts +2 -0
- package/dist/utils/is-not-input-event.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +40 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/query-params.d.ts +1 -3
- package/dist/utils/query-params.d.ts.map +1 -1
- package/dist/utils/utilities.d.ts +23 -0
- package/dist/utils/utilities.d.ts.map +1 -0
- package/dist/web-api/fetch-aggregation.d.ts.map +1 -1
- package/dist/web-api/fetch-app.d.ts.map +1 -1
- package/dist/web-api/fetch-audit.d.ts +3 -2
- package/dist/web-api/fetch-audit.d.ts.map +1 -1
- package/dist/web-api/fetch-dataset.d.ts +2 -2
- package/dist/web-api/fetch-dataset.d.ts.map +1 -1
- package/dist/web-api/fetch-labels.d.ts +1 -1
- package/dist/web-api/fetch-labels.d.ts.map +1 -1
- package/dist/web-api/fetch-query-export.d.ts +19 -0
- package/dist/web-api/fetch-query-export.d.ts.map +1 -0
- package/dist/web-api/fetch-query.d.ts.map +1 -1
- package/dist/web-api/fetch-similar-documents.d.ts +13 -0
- package/dist/web-api/fetch-similar-documents.d.ts.map +1 -0
- package/dist/web-api/fetch-suggest.d.ts.map +1 -1
- package/dist/web-api/helpers.d.ts +111 -1
- package/dist/web-api/helpers.d.ts.map +1 -1
- package/dist/web-api/index.d.ts +10 -8
- package/dist/web-api/index.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/auth/auth.d.ts +0 -39
- package/dist/auth/auth.d.ts.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/types/config/ExportDialogModel.d.ts +0 -13
- package/dist/types/config/ExportDialogModel.d.ts.map +0 -1
- package/dist/types/config/ExportOutputFormat.d.ts +0 -10
- package/dist/types/config/ExportOutputFormat.d.ts.map +0 -1
- package/dist/types/config/ExportSourceType.d.ts +0 -10
- package/dist/types/config/ExportSourceType.d.ts.map +0 -1
- package/dist/utils/array/bisect.d.ts.map +0 -1
- /package/dist/{auth → authentication}/index.d.ts +0 -0
- /package/dist/utils/{array/bisect.d.ts → bisect.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,18 +1,67 @@
|
|
|
1
|
-
# atomic
|
|
2
|
-
This is a package created to practice building a TypeScript package with Vite.
|
|
1
|
+
# @sinequa/atomic
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* build a new version (the version number will be incremented)
|
|
3
|
+

|
|
4
|
+

|
|
7
5
|
|
|
6
|
+
A modern TypeScript package designed for use with [Sinequa](https://www.sinequa.com/), providing web API helpers, authentication, configurations, and utilities.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Table of Contents
|
|
11
|
+
|
|
12
|
+
- [Features](#features)
|
|
13
|
+
- [Installation](#installation)
|
|
14
|
+
- [Usage](#usage)
|
|
15
|
+
- [Documentation](#documentation)
|
|
16
|
+
- [License](#license)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
- **Web API Helpers**: Simplify API calls with helpers for aggregations, datasets, preview, principal, query, and more.
|
|
23
|
+
- **Authentication**: Easy-to-use authentication utilities (OAuth, SAML, JWT, CSRF, etc.).
|
|
24
|
+
- **Configurations**: Centralized and type-safe configuration management.
|
|
25
|
+
- **Helpers & Utilities**: Includes bisect, date, logger, syslang, and more.
|
|
26
|
+
- **Type Definitions**: Strongly-typed interfaces for API endpoints and data structures.
|
|
27
|
+
- ...and many more functions to help you build with Sinequa.
|
|
28
|
+
|
|
29
|
+
Explore the full feature set in the [online documentation](https://sinequa.github.io/sba-mint/atomic/intro).
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
npm install @sinequa/atomic
|
|
8
37
|
```
|
|
9
|
-
npm run build:patch
|
|
10
|
-
```
|
|
11
38
|
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
Import and use helpers in your TypeScript project:
|
|
12
44
|
|
|
13
|
-
|
|
14
|
-
|
|
45
|
+
```ts
|
|
46
|
+
import { fetchQuery, fetchAggregation, isAuthenticated } from '@sinequa/atomic';
|
|
15
47
|
|
|
48
|
+
// Example: Fetch data
|
|
49
|
+
const data = await fetchQuery({ query: 'example' });
|
|
50
|
+
|
|
51
|
+
// Example: Check authentication
|
|
52
|
+
if (isAuthenticated()) {
|
|
53
|
+
// ...
|
|
54
|
+
}
|
|
16
55
|
```
|
|
17
|
-
|
|
18
|
-
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
Comprehensive documentation is available in the [Atomic Documentation Portal](https://sinequa.github.io/sba-mint/atomic/intro).
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
|