@sinequa/atomic 0.0.61 → 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.
Files changed (77) hide show
  1. package/README.md +60 -11
  2. package/dist/atomic.js +1089 -735
  3. package/dist/atomic.umd.cjs +1 -1
  4. package/dist/authentication/auth.d.ts +59 -0
  5. package/dist/authentication/auth.d.ts.map +1 -0
  6. package/dist/authentication/index.d.ts.map +1 -0
  7. package/dist/configurations/global.config.d.ts +19 -15
  8. package/dist/configurations/global.config.d.ts.map +1 -1
  9. package/dist/configurations/index.d.ts +1 -1
  10. package/dist/helpers/metadata.d.ts +22 -7
  11. package/dist/helpers/metadata.d.ts.map +1 -1
  12. package/dist/helpers/metadata.test.d.ts +2 -0
  13. package/dist/helpers/metadata.test.d.ts.map +1 -0
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/types/api-endpoints.d.ts +1 -1
  17. package/dist/types/api-endpoints.d.ts.map +1 -1
  18. package/dist/types/config/CCAppPreLogin.d.ts +7 -3
  19. package/dist/types/config/CCAppPreLogin.d.ts.map +1 -1
  20. package/dist/types/config/index.d.ts +2 -5
  21. package/dist/types/config/index.d.ts.map +1 -1
  22. package/dist/types/export/types.d.ts +22 -0
  23. package/dist/types/export/types.d.ts.map +1 -0
  24. package/dist/types/index.d.ts +1 -0
  25. package/dist/types/index.d.ts.map +1 -1
  26. package/dist/types/search/QueryIntentEntity.d.ts +16 -1
  27. package/dist/types/search/QueryIntentEntity.d.ts.map +1 -1
  28. package/dist/types/search/QueryIntentMatch.d.ts +17 -0
  29. package/dist/types/search/QueryIntentMatch.d.ts.map +1 -0
  30. package/dist/types/search/QueryIntentResponse.d.ts +9 -0
  31. package/dist/types/search/QueryIntentResponse.d.ts.map +1 -0
  32. package/dist/types/search/index.d.ts +4 -2
  33. package/dist/types/search/index.d.ts.map +1 -1
  34. package/dist/utils/bisect.d.ts.map +1 -0
  35. package/dist/utils/index.d.ts +4 -1
  36. package/dist/utils/index.d.ts.map +1 -1
  37. package/dist/utils/is-not-input-event.d.ts +2 -0
  38. package/dist/utils/is-not-input-event.d.ts.map +1 -0
  39. package/dist/utils/logger.d.ts +40 -0
  40. package/dist/utils/logger.d.ts.map +1 -0
  41. package/dist/utils/query-params.d.ts +1 -3
  42. package/dist/utils/query-params.d.ts.map +1 -1
  43. package/dist/utils/utilities.d.ts +23 -0
  44. package/dist/utils/utilities.d.ts.map +1 -0
  45. package/dist/web-api/fetch-aggregation.d.ts.map +1 -1
  46. package/dist/web-api/fetch-app.d.ts.map +1 -1
  47. package/dist/web-api/fetch-audit.d.ts +3 -2
  48. package/dist/web-api/fetch-audit.d.ts.map +1 -1
  49. package/dist/web-api/fetch-dataset.d.ts +2 -2
  50. package/dist/web-api/fetch-dataset.d.ts.map +1 -1
  51. package/dist/web-api/fetch-labels.d.ts +1 -1
  52. package/dist/web-api/fetch-labels.d.ts.map +1 -1
  53. package/dist/web-api/fetch-query-export.d.ts +19 -0
  54. package/dist/web-api/fetch-query-export.d.ts.map +1 -0
  55. package/dist/web-api/fetch-query-intent.d.ts +13 -0
  56. package/dist/web-api/fetch-query-intent.d.ts.map +1 -0
  57. package/dist/web-api/fetch-query.d.ts.map +1 -1
  58. package/dist/web-api/fetch-similar-documents.d.ts +13 -0
  59. package/dist/web-api/fetch-similar-documents.d.ts.map +1 -0
  60. package/dist/web-api/fetch-suggest.d.ts.map +1 -1
  61. package/dist/web-api/helpers.d.ts +111 -1
  62. package/dist/web-api/helpers.d.ts.map +1 -1
  63. package/dist/web-api/index.d.ts +11 -8
  64. package/dist/web-api/index.d.ts.map +1 -1
  65. package/package.json +9 -8
  66. package/dist/auth/auth.d.ts +0 -39
  67. package/dist/auth/auth.d.ts.map +0 -1
  68. package/dist/auth/index.d.ts.map +0 -1
  69. package/dist/types/config/ExportDialogModel.d.ts +0 -13
  70. package/dist/types/config/ExportDialogModel.d.ts.map +0 -1
  71. package/dist/types/config/ExportOutputFormat.d.ts +0 -10
  72. package/dist/types/config/ExportOutputFormat.d.ts.map +0 -1
  73. package/dist/types/config/ExportSourceType.d.ts +0 -10
  74. package/dist/types/config/ExportSourceType.d.ts.map +0 -1
  75. package/dist/utils/array/bisect.d.ts.map +0 -1
  76. /package/dist/{auth → authentication}/index.d.ts +0 -0
  77. /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
- ## How to publish a new version
5
- * first commit your changes
6
- * build a new version (the version number will be incremented)
3
+ ![npm](https://img.shields.io/npm/v/atomic.svg)
4
+ ![license](https://img.shields.io/npm/l/atomic.svg)
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
- * commit the changes (then new version number)
14
- * publish the package to verdaccio
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
- npm run v:publish
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.