@tracktor/shared-module 2.18.2 → 2.19.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.
- package/CHANGELOG.md +3 -14
- package/dist/axiosCustomInstance.ts +1 -1
- package/dist/config/orval/orval.d.ts +10 -0
- package/dist/main.d.ts +26 -26
- package/dist/main.js +357 -357
- package/dist/main.umd.cjs +4 -4
- package/dist/utils/adapter/dateAdapter.d.ts +3 -5
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [2.18.
|
|
3
|
+
## [2.18.3] - 2025-10-03
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## [2.18.1] - 2025-10-01
|
|
10
|
-
|
|
11
|
-
### ✨ Features
|
|
12
|
-
- `UpdateNotifier`: add `autoUpdate` prop to automatically reload the app when an update is detected, bypassing confirmation dialogs and custom UI.
|
|
13
|
-
|
|
14
|
-
## [2.18.2] - 2025-10-03
|
|
15
|
-
|
|
16
|
-
### ✨ Features
|
|
17
|
-
- expose `customAxiosInstancePath` in `CustomOrvalConfig` to allow overriding the default axios instance.
|
|
5
|
+
### 🚀 Features
|
|
6
|
+
- Change Eslint config to Biome config
|
|
@@ -37,6 +37,11 @@ interface CustomOrvalConfig {
|
|
|
37
37
|
* This is useful to define dynamic baseUrl in the axios default instance.
|
|
38
38
|
*/
|
|
39
39
|
customAxiosInstancePath?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The default API name inferred from the "filename".
|
|
42
|
+
* Orval can also retrieve OAS from a fully formed URL.
|
|
43
|
+
*/
|
|
44
|
+
overrideApiName?: string;
|
|
40
45
|
}
|
|
41
46
|
interface OrvalConfig {
|
|
42
47
|
[key: string]: CustomOrvalConfig;
|
|
@@ -46,6 +51,11 @@ interface OrvalConfig {
|
|
|
46
51
|
* @param method
|
|
47
52
|
*/
|
|
48
53
|
export declare const convertToCapitalize: (method: string) => string;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve the filename in a given OS path minus the file extension.
|
|
56
|
+
* @param fullPath
|
|
57
|
+
*/
|
|
58
|
+
export declare const getFileNameWithoutExtension: (fullPath: string) => string;
|
|
49
59
|
/**
|
|
50
60
|
* Convert a route to camelCase
|
|
51
61
|
* @param route
|
package/dist/main.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export { axiosCustomInstance, type
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export { default as GTMSendPageView } from './components/Utils/GTMSendPageView';
|
|
1
|
+
export { axiosCustomInstance, type BodyType, type ErrorType } from './axios/axiosCustomInstance';
|
|
2
|
+
export * from './components/Inputs/MaskTextField';
|
|
3
|
+
export { default as MaskTextField } from './components/Inputs/MaskTextField';
|
|
5
4
|
export * from './components/Utils/GTMSendPageView';
|
|
6
|
-
export { default as
|
|
5
|
+
export { default as GTMSendPageView } from './components/Utils/GTMSendPageView';
|
|
7
6
|
export * from './components/Utils/InitializeAxiosConfig';
|
|
8
|
-
export { default as
|
|
7
|
+
export { default as InitializeAxiosConfig } from './components/Utils/InitializeAxiosConfig';
|
|
8
|
+
export * from './components/Utils/InitializeDaysJSConfig';
|
|
9
|
+
export { default as InitializeDaysJSConfig } from './components/Utils/InitializeDaysJSConfig';
|
|
9
10
|
export * from './components/Utils/InitializeI18nConfig';
|
|
10
|
-
export { default as
|
|
11
|
+
export { default as InitializeI18nConfig } from './components/Utils/InitializeI18nConfig';
|
|
11
12
|
export * from './components/Utils/InitializeSentryConfig';
|
|
12
|
-
export { default as
|
|
13
|
-
export * from './components/Inputs/MaskTextField';
|
|
14
|
-
export { default as InitializeDaysJSConfig } from './components/Utils/InitializeDaysJSConfig';
|
|
15
|
-
export * from './components/Utils/InitializeDaysJSConfig';
|
|
16
|
-
export { default as PreloadErrorHandler } from './components/Utils/PreloadErrorHandler';
|
|
13
|
+
export { default as InitializeSentryConfig } from './components/Utils/InitializeSentryConfig';
|
|
17
14
|
export * from './components/Utils/PreloadErrorHandler';
|
|
18
|
-
export { default as
|
|
15
|
+
export { default as PreloadErrorHandler } from './components/Utils/PreloadErrorHandler';
|
|
16
|
+
export * from './components/Utils/RequireAuth';
|
|
17
|
+
export { default as RequireAuth } from './components/Utils/RequireAuth';
|
|
19
18
|
export * from './components/Utils/UpdateNotifier';
|
|
20
|
-
export { default as
|
|
19
|
+
export { default as UpdateNotifier } from './components/Utils/UpdateNotifier';
|
|
20
|
+
export * from './config/orval';
|
|
21
|
+
export { default as getOrvalConfig } from './config/orval';
|
|
21
22
|
export * from './context/InjectDependenciesProvider';
|
|
22
|
-
export { default as
|
|
23
|
+
export { default as InjectDependenciesProvider } from './context/InjectDependenciesProvider';
|
|
23
24
|
export * from './context/QueryClientProviderWithConfig';
|
|
24
|
-
export { default as
|
|
25
|
-
export * from './hooks/useResponseError/useResponseError';
|
|
26
|
-
export { default as useInfiniteDataGrid } from './hooks/useInfiniteDataGrid';
|
|
27
|
-
export * from './hooks/useInfiniteDataGrid';
|
|
28
|
-
export { default as useAuth } from './hooks/useAuth';
|
|
29
|
-
export * from './hooks/useAuth';
|
|
30
|
-
export { default as useAdapter } from './hooks/useAdapter';
|
|
25
|
+
export { default as QueryClientProviderWithConfig } from './context/QueryClientProviderWithConfig';
|
|
31
26
|
export * from './hooks/useAdapter';
|
|
32
|
-
export { default as
|
|
27
|
+
export { default as useAdapter } from './hooks/useAdapter';
|
|
28
|
+
export * from './hooks/useAuth';
|
|
29
|
+
export { default as useAuth } from './hooks/useAuth';
|
|
33
30
|
export * from './hooks/useCurrentLanguage/useCurrentLanguage';
|
|
34
|
-
export { default as
|
|
31
|
+
export { default as useCurrentLanguage } from './hooks/useCurrentLanguage/useCurrentLanguage';
|
|
35
32
|
export * from './hooks/useFilters';
|
|
36
|
-
export { default as
|
|
37
|
-
export * from './
|
|
33
|
+
export { default as useFilters } from './hooks/useFilters';
|
|
34
|
+
export * from './hooks/useInfiniteDataGrid';
|
|
35
|
+
export { default as useInfiniteDataGrid } from './hooks/useInfiniteDataGrid';
|
|
36
|
+
export * from './hooks/useResponseError/useResponseError';
|
|
37
|
+
export { default as useResponseError } from './hooks/useResponseError/useResponseError';
|
|
38
38
|
export { default as dateAdapter } from './utils/adapter/dateAdapter';
|
|
39
39
|
export { default as distanceAdapter } from './utils/adapter/distanceAdapter';
|
|
40
40
|
export { default as worksiteNameAdapter } from './utils/adapter/worksiteNameAdapter/worksiteNameAdapter';
|