@axelor/aos-mobile-core 8.2.5 → 8.2.6
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/lib/api/anomaly-api.js +1 -1
- package/lib/api/app-config-api.js +1 -1
- package/lib/api/attached-files-api.js +1 -1
- package/lib/api/login-api.d.ts +11 -0
- package/lib/api/login-api.js +28 -16
- package/lib/api/login-api.js.map +1 -1
- package/lib/api/mail-message-api.js +1 -1
- package/lib/api/meta-module-api.js +1 -1
- package/lib/api/metafile-api.js +1 -1
- package/lib/api/model-api.js +1 -1
- package/lib/api/net-info-utils.js +1 -1
- package/lib/api/print-template-api.js +1 -1
- package/lib/api/traceback-api.js +1 -1
- package/lib/api/user-api.js +1 -1
- package/lib/apiProviders/Action/ActionApiProvider.js +1 -1
- package/lib/apiProviders/Action/ActionProvider.js +1 -1
- package/lib/apiProviders/Action/AosActionApi.js +1 -1
- package/lib/apiProviders/Action/GatewayActionApi.js +1 -1
- package/lib/apiProviders/Action/index.js +1 -1
- package/lib/apiProviders/Action/utils.js +1 -1
- package/lib/apiProviders/Model/AopModelApi.js +1 -1
- package/lib/apiProviders/Model/GatewayModelApi.js +1 -1
- package/lib/apiProviders/Model/ModelApiProvider.js +1 -1
- package/lib/apiProviders/Model/Provider.js +1 -1
- package/lib/apiProviders/Model/index.js +1 -1
- package/lib/apiProviders/Model/utils.d.ts +1 -1
- package/lib/apiProviders/Model/utils.js +1 -1
- package/lib/apiProviders/Standard/AxiosProvider.js +1 -1
- package/lib/apiProviders/Standard/ObjectFieldsProvider.js +1 -1
- package/lib/apiProviders/Standard/index.d.ts +1 -1
- package/lib/apiProviders/Standard/index.js +2 -2
- package/lib/apiProviders/Standard/index.js.map +1 -1
- package/lib/apiProviders/Standard/requests.helper.d.ts +7 -0
- package/lib/apiProviders/Standard/requests.helper.js +71 -1
- package/lib/apiProviders/Standard/requests.helper.js.map +1 -1
- package/lib/apiProviders/config.js +1 -1
- package/lib/apiProviders/index.d.ts +1 -0
- package/lib/apiProviders/index.js +2 -1
- package/lib/apiProviders/index.js.map +1 -1
- package/lib/apiProviders/middlewares/fieldParser.js +1 -1
- package/lib/apiProviders/middlewares/index.js +1 -1
- package/lib/apiProviders/middlewares/translation.js +1 -1
- package/lib/apiProviders/utils.js +1 -1
- package/lib/app/Application.js +1 -1
- package/lib/app/ContextedApplication.js +1 -1
- package/lib/app/ContextsProvider.js +1 -1
- package/lib/app/RootNavigator.js +1 -1
- package/lib/app/context.helper.js +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/module-generation.helper.js +1 -1
- package/lib/app/modules/ModuleProvider.js +1 -1
- package/lib/app/modules/hooks.js +1 -1
- package/lib/app/modules/index.js +1 -1
- package/lib/app/modules/types.js +1 -1
- package/lib/app/types.js +1 -1
- package/lib/auth/api/company-api.js +1 -1
- package/lib/auth/api/config-api.js +1 -1
- package/lib/auth/api/index.js +1 -1
- package/lib/auth/api/localization-api.js +1 -1
- package/lib/auth/api/user-api.js +1 -1
- package/lib/auth/components/index.js +1 -1
- package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.js +1 -1
- package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.js +1 -1
- package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.js +1 -1
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js +1 -1
- package/lib/auth/components/molecules/UserCard/UserCard.js +1 -1
- package/lib/auth/components/molecules/index.js +1 -1
- package/lib/auth/features/asyncFunctionsIndex.js +1 -1
- package/lib/auth/features/companySlice.js +1 -1
- package/lib/auth/features/configSlice.js +1 -1
- package/lib/auth/features/index.js +1 -1
- package/lib/auth/features/localizationSlice.js +1 -1
- package/lib/auth/features/userSlice.js +1 -1
- package/lib/auth/hooks/use-auth-headers.js +1 -1
- package/lib/auth/index.js +1 -1
- package/lib/auth/models/index.js +1 -1
- package/lib/auth/models/objectFields.js +1 -1
- package/lib/auth/screens/SettingsScreen.js +1 -1
- package/lib/auth/screens/UserScreen.js +1 -1
- package/lib/auth/screens/index.js +1 -1
- package/lib/components/external/Camera/Camera.js +1 -1
- package/lib/components/external/Camera/CaptureButton.js +1 -1
- package/lib/components/external/CodeHighlighter/CodeHighlighter.js +1 -1
- package/lib/components/external/CodeHighlighter/code-highlighter.helper.js +1 -1
- package/lib/components/external/PlanningView/AgendaItemDisplay.js +1 -1
- package/lib/components/external/PlanningView/DayDisplay.js +1 -1
- package/lib/components/external/PlanningView/MonthDisplay.js +1 -1
- package/lib/components/external/PlanningView/NavigationButton.js +1 -1
- package/lib/components/external/PlanningView/PlanningView.js +1 -1
- package/lib/components/external/PlanningView/agenda.helpers.js +1 -1
- package/lib/components/external/Scanner/Scanner.js +1 -1
- package/lib/components/external/Stopwatch/Stopwatch.js +1 -1
- package/lib/components/external/Timer/Timer.js +1 -1
- package/lib/components/external/Toast/Toast.js +1 -1
- package/lib/components/external/Toast/ToastProvider.js +1 -1
- package/lib/components/external/Toast/index.js +1 -1
- package/lib/components/external/WebView/WebView.js +1 -1
- package/lib/components/external/index.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/molecules/CameraButton/CameraButton.js +1 -1
- package/lib/components/molecules/DateDisplay/DateDisplay.js +1 -1
- package/lib/components/molecules/DatePicker/DatePicker.js +1 -1
- package/lib/components/molecules/FocusScreen/FocusScreen.js +1 -1
- package/lib/components/molecules/HeaderBand/HeaderBand.js +1 -1
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js +1 -1
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js +1 -1
- package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.js +1 -1
- package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js +10 -4
- package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js.map +1 -1
- package/lib/components/molecules/TrackItem/TrackItem.js +1 -1
- package/lib/components/molecules/UploadFileInput/UploadFileInput.js +1 -1
- package/lib/components/molecules/index.js +1 -1
- package/lib/components/organisms/AOSImage/AOSImage.js +1 -1
- package/lib/components/organisms/AOSImageBubble/AOSImageBubble.js +1 -1
- package/lib/components/organisms/AnomalyBubble/AnomalyBubble.js +1 -1
- package/lib/components/organisms/AnomalyList/AnomalyList.js +1 -1
- package/lib/components/organisms/DateInput/DateInput.js +1 -1
- package/lib/components/organisms/DateInput/date-input.helper.js +1 -1
- package/lib/components/organisms/HeaderBandList/HeaderBandList.js +1 -1
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +1 -1
- package/lib/components/organisms/MailMessageCard/MailMessageCard.js +1 -1
- package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.js +1 -1
- package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.js +1 -1
- package/lib/components/organisms/PopupPrintTemplate/PopupPrintTemplate.js +1 -1
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +1 -1
- package/lib/components/organisms/SignatureInput/PictureIcon.js +1 -1
- package/lib/components/organisms/SignatureInput/SignatureInput.js +1 -1
- package/lib/components/organisms/index.js +1 -1
- package/lib/components/pages/CustomFieldForm/CustomFieldForm.js +1 -1
- package/lib/components/pages/FormView/Alerts/ConfirmationPopup.js +1 -1
- package/lib/components/pages/FormView/Alerts/ConstraintsValidatorPopup.js +1 -1
- package/lib/components/pages/FormView/Alerts/index.js +1 -1
- package/lib/components/pages/FormView/Buttons/FloatingTools.js +1 -1
- package/lib/components/pages/FormView/Buttons/index.js +1 -1
- package/lib/components/pages/FormView/Components/Field.js +1 -1
- package/lib/components/pages/FormView/Components/Panel.js +1 -1
- package/lib/components/pages/FormView/Components/index.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomButton.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomPasswordInput.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomPicker.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomSearchBar.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomTagList.js +1 -1
- package/lib/components/pages/FormView/Custom/index.js +1 -1
- package/lib/components/pages/FormView/FormView.js +1 -1
- package/lib/components/pages/index.js +1 -1
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +1 -1
- package/lib/components/templates/GlobalToolBox/GlobalToolBox.js +1 -1
- package/lib/components/templates/MailMessageView/MailMessageView.js +1 -1
- package/lib/components/templates/PeriodInput/PeriodInput.js +1 -1
- package/lib/components/templates/PopupApplicationInformation/PopupApplicationInformation.js +1 -1
- package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.js +1 -1
- package/lib/components/templates/PrintTemplateSearchBar/PrintTemplateSearchBar.js +1 -1
- package/lib/components/templates/SearchListView/SearchListView.js +1 -1
- package/lib/components/templates/SearchTreeView/SearchTreeView.js +1 -1
- package/lib/components/templates/SingleSelectSearchListView/SingleSelectSearchListView.js +1 -1
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js +1 -1
- package/lib/components/templates/UserSearchBar/UserSearchBar.js +1 -1
- package/lib/components/templates/index.js +1 -1
- package/lib/config/RouterProvider.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/config/routes.js +1 -1
- package/lib/dashboards/api.helpers.js +1 -1
- package/lib/dashboards/component/AOPChart/AOPChart.js +1 -1
- package/lib/dashboards/component/AOPChart/DynamicSearchForm.js +1 -1
- package/lib/dashboards/component/AOPChart/api.helpers.js +1 -1
- package/lib/dashboards/component/AOPChart/format.helpers.js +1 -1
- package/lib/dashboards/component/RefreshChart/RefreshChart.js +1 -1
- package/lib/dashboards/component/index.js +1 -1
- package/lib/dashboards/display.helpers.js +1 -1
- package/lib/dashboards/index.js +1 -1
- package/lib/dashboards/menu.helpers.js +1 -1
- package/lib/dashboards/view/DashboardScreen.js +1 -1
- package/lib/dashboards/view/DashboardView.js +1 -1
- package/lib/dashboards/view/index.js +1 -1
- package/lib/features/appConfigSlice.js +1 -1
- package/lib/features/attachedFilesSlice.js +1 -1
- package/lib/features/authSlice.js +4 -5
- package/lib/features/authSlice.js.map +1 -1
- package/lib/features/cameraScannerSlice.js +1 -1
- package/lib/features/cameraSlice.js +1 -1
- package/lib/features/formSlice.js +1 -1
- package/lib/features/index.js +1 -1
- package/lib/features/mailMessageSlice.js +1 -1
- package/lib/features/metaJsonFieldSlice.js +1 -1
- package/lib/features/metaModuleSlice.js +1 -1
- package/lib/features/metafileSlice.js +1 -1
- package/lib/features/onlineSlice.js +1 -1
- package/lib/features/permissionSlice.js +1 -1
- package/lib/features/printTemplateSlice.js +1 -1
- package/lib/features/scannerSlice.js +1 -1
- package/lib/features/userSlice.js +1 -1
- package/lib/forms/FormConfigsProvider.js +1 -1
- package/lib/forms/action.helpers.js +1 -1
- package/lib/forms/api.helpers.js +1 -1
- package/lib/forms/display.helpers.js +1 -1
- package/lib/forms/index.js +1 -1
- package/lib/forms/register.helpers.js +1 -1
- package/lib/forms/studio/api.helpers.js +1 -1
- package/lib/forms/studio/display.helpers.js +1 -1
- package/lib/forms/studio/formula.helpers.js +1 -1
- package/lib/forms/studio/index.js +1 -1
- package/lib/forms/studio/permission.helpers.js +1 -1
- package/lib/forms/types.js +1 -1
- package/lib/forms/validation.helpers.js +1 -1
- package/lib/header/HeaderActionsProvider.js +1 -1
- package/lib/header/HeaderBandContext.js +1 -1
- package/lib/header/header-band-context.helper.js +1 -1
- package/lib/header/hooks.js +1 -1
- package/lib/header/index.js +1 -1
- package/lib/header/types.js +1 -1
- package/lib/header/utils.js +1 -1
- package/lib/hooks/use-background-function.js +1 -1
- package/lib/hooks/use-effect-debugger.js +1 -1
- package/lib/hooks/use-header-registers.js +1 -1
- package/lib/hooks/use-navigation.js +1 -1
- package/lib/hooks/use-scan-activator.js +1 -1
- package/lib/hooks/use-storage-config.js +1 -1
- package/lib/i18n/api/translation.js +1 -1
- package/lib/i18n/component/Translator.js +1 -1
- package/lib/i18n/helpers/langages.js +1 -1
- package/lib/i18n/helpers/translations.js +1 -1
- package/lib/i18n/hooks/use-translator.js +1 -1
- package/lib/i18n/i18n.js +1 -1
- package/lib/i18n/index.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/loader/ProcessProvider.js +1 -1
- package/lib/loader/ProcessStorage.js +1 -1
- package/lib/loader/components/atoms/ProcessCard/ProcessCard.js +1 -1
- package/lib/loader/components/atoms/index.js +1 -1
- package/lib/loader/components/index.js +1 -1
- package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.js +1 -1
- package/lib/loader/components/organisms/index.js +1 -1
- package/lib/loader/helpers.js +1 -1
- package/lib/loader/hooks.js +1 -1
- package/lib/loader/index.js +1 -1
- package/lib/loader/types.js +1 -1
- package/lib/models/index.js +1 -1
- package/lib/models/objectFields.js +1 -1
- package/lib/models/searchFields.js +1 -1
- package/lib/models/sortFields.js +1 -1
- package/lib/navigator/ActiveScreenProvider.js +1 -1
- package/lib/navigator/NavigationInformationsProvider.js +1 -1
- package/lib/navigator/Navigator.js +4 -2
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/navigator/drawer/AuthMenuIconButton.js +1 -1
- package/lib/navigator/drawer/BackIcon.js +1 -1
- package/lib/navigator/drawer/DrawerContent.js +1 -1
- package/lib/navigator/drawer/DrawerToggleButton.js +1 -1
- package/lib/navigator/drawer/Header.js +1 -1
- package/lib/navigator/drawer/Menu.js +1 -1
- package/lib/navigator/drawer/MenuIconButton.js +1 -1
- package/lib/navigator/drawer/MenuItem.js +1 -1
- package/lib/navigator/drawer/MenuItemEntry.js +1 -1
- package/lib/navigator/drawer/MenuSeparator.js +1 -1
- package/lib/navigator/drawer/MenuTitle.js +1 -1
- package/lib/navigator/drawer/SubMenuItem.js +1 -1
- package/lib/navigator/drawer/SubMenuItemList.js +1 -1
- package/lib/navigator/index.js +1 -1
- package/lib/navigator/menu.helper.js +1 -1
- package/lib/navigator/module.helper.js +1 -1
- package/lib/permissions/api.helpers.js +1 -1
- package/lib/permissions/format.helpers.js +1 -1
- package/lib/permissions/hooks.js +1 -1
- package/lib/permissions/index.js +1 -1
- package/lib/permissions/type.helpers.js +1 -1
- package/lib/redux/hooks.js +1 -1
- package/lib/redux/store.js +1 -1
- package/lib/screens/AttachedFilesScreen.js +1 -1
- package/lib/screens/BarcodeDisplayScreen.js +1 -1
- package/lib/screens/ErrorScreen.js +1 -1
- package/lib/screens/JsonFieldScreen.js +1 -1
- package/lib/screens/LoginScreen.js +1 -1
- package/lib/screens/MailMessageScreen.js +1 -1
- package/lib/screens/ProcessListScreen.js +1 -1
- package/lib/screens/SessionManagementScreen.js +1 -1
- package/lib/screens/index.js +1 -1
- package/lib/selections/SelectionProvider.js +1 -1
- package/lib/selections/api.helpers.js +1 -1
- package/lib/selections/format.helpers.js +1 -1
- package/lib/selections/hooks.js +1 -1
- package/lib/selections/index.js +1 -1
- package/lib/selections/types.js +1 -1
- package/lib/sessions/SessionStorage.js +1 -1
- package/lib/sessions/components/alerts/PopupCreateSession.js +1 -1
- package/lib/sessions/components/alerts/PopupEditSession.js +1 -1
- package/lib/sessions/components/alerts/PopupSession.js +1 -1
- package/lib/sessions/components/alerts/index.js +1 -1
- package/lib/sessions/components/display/LogoImage.js +1 -1
- package/lib/sessions/components/display/SessionCard.js +1 -1
- package/lib/sessions/components/display/SessionListCard.js +1 -1
- package/lib/sessions/components/display/index.js +1 -1
- package/lib/sessions/components/error/ErrorText.js +1 -1
- package/lib/sessions/components/error/index.js +1 -1
- package/lib/sessions/components/index.js +1 -1
- package/lib/sessions/components/inputs/DefaultCheckbox.js +1 -1
- package/lib/sessions/components/inputs/PasswordInput.js +1 -1
- package/lib/sessions/components/inputs/SessionInputs.js +1 -1
- package/lib/sessions/components/inputs/SessionNameInput.js +1 -1
- package/lib/sessions/components/inputs/UrlInput.js +1 -1
- package/lib/sessions/components/inputs/UsernameInput.js +1 -1
- package/lib/sessions/components/inputs/index.js +1 -1
- package/lib/sessions/hook.js +1 -1
- package/lib/sessions/index.js +1 -1
- package/lib/sessions/type.js +1 -1
- package/lib/sessions/utils.js +1 -1
- package/lib/storage/Storage.js +1 -1
- package/lib/tools/ClipboardProvider.js +1 -1
- package/lib/tools/ContactProvider.js +1 -1
- package/lib/tools/FilePicker.js +1 -1
- package/lib/tools/FileViewer.js +1 -1
- package/lib/tools/LinkingProvider.js +1 -1
- package/lib/tools/contact.helper.js +1 -1
- package/lib/tools/index.js +1 -1
- package/lib/tools/linking.helper.js +1 -1
- package/lib/types/anomaly-type.js +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/mail-message-notification-type.js +1 -1
- package/lib/types/mail-message-type.js +1 -1
- package/lib/types/stopwatch-type.js +1 -1
- package/lib/utils/agenda.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/displayers.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatters.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +2 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/list.js +1 -1
- package/lib/utils/object.js +1 -1
- package/lib/utils/show-toast-message.js +1 -1
- package/lib/utils/string.js +1 -1
- package/lib/utils/time.js +1 -1
- package/lib/webViews/api.helpers.js +1 -1
- package/lib/webViews/display.helpers.js +1 -1
- package/lib/webViews/menu.helper.js +1 -1
- package/lib/webViews/view/WebViewScreen.js +1 -1
- package/lib/webViews/view/index.js +1 -1
- package/package.json +3 -3
package/lib/api/anomaly-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/login-api.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
export declare function ejectAxios({ requestInterceptorId, responseInterceptorId, }: {
|
|
2
|
+
requestInterceptorId: number;
|
|
3
|
+
responseInterceptorId: number;
|
|
4
|
+
}): void;
|
|
5
|
+
export declare function initAxiosWithHeaders(res: any, url: string): {
|
|
6
|
+
token: any;
|
|
7
|
+
jsessionId: string;
|
|
8
|
+
requestInterceptorId: number;
|
|
9
|
+
responseInterceptorId: number;
|
|
10
|
+
};
|
|
1
11
|
export declare function loginApi(url: string, username: string, password: string): Promise<{
|
|
2
12
|
token: string;
|
|
3
13
|
jsessionId: string;
|
|
4
14
|
requestInterceptorId: number;
|
|
5
15
|
responseInterceptorId: number;
|
|
6
16
|
}>;
|
|
17
|
+
export declare function logoutApi(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
18
|
export declare function getActiveUserInfo(): Promise<{
|
|
8
19
|
userId: any;
|
|
9
20
|
applicationMode: any;
|
package/lib/api/login-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -18,24 +18,36 @@
|
|
|
18
18
|
import axios from 'axios';
|
|
19
19
|
import { fieldsParserMiddleware, provider, translationMiddleware, } from '../apiProviders';
|
|
20
20
|
const loginPath = '/callback';
|
|
21
|
+
const SESSION_REGEX = /JSESSIONID=\w+/g;
|
|
22
|
+
const getJsessionId = (cookie) => {
|
|
23
|
+
return cookie?.match(SESSION_REGEX)?.[0];
|
|
24
|
+
};
|
|
25
|
+
export function ejectAxios({ requestInterceptorId, responseInterceptorId, }) {
|
|
26
|
+
axios.interceptors.request.eject(requestInterceptorId);
|
|
27
|
+
axios.interceptors.request.eject(responseInterceptorId);
|
|
28
|
+
}
|
|
29
|
+
export function initAxiosWithHeaders(res, url) {
|
|
30
|
+
const token = res.headers['x-csrf-token'];
|
|
31
|
+
const jsessionId = getJsessionId(res.headers['set-cookie']?.[0]);
|
|
32
|
+
if (token == null) {
|
|
33
|
+
throw new Error('X-CSRF-Token is not exposed in remote header');
|
|
34
|
+
}
|
|
35
|
+
const requestInterceptorId = axios.interceptors.request.use(config => {
|
|
36
|
+
config.baseURL = url;
|
|
37
|
+
config.headers['x-csrf-token'] = token;
|
|
38
|
+
return config;
|
|
39
|
+
});
|
|
40
|
+
const responseInterceptorId = axios.interceptors.response.use(_response => fieldsParserMiddleware(translationMiddleware(_response)));
|
|
41
|
+
provider.getModelApi()?.init();
|
|
42
|
+
return { token, jsessionId, requestInterceptorId, responseInterceptorId };
|
|
43
|
+
}
|
|
21
44
|
export async function loginApi(url, username, password) {
|
|
22
45
|
return axios
|
|
23
46
|
.post(`${url}${loginPath}`, { username, password })
|
|
24
|
-
.then(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
throw new Error('X-CSRF-Token is not exposed in remote header');
|
|
29
|
-
}
|
|
30
|
-
const requestInterceptorId = axios.interceptors.request.use(config => {
|
|
31
|
-
config.baseURL = url;
|
|
32
|
-
config.headers['x-csrf-token'] = token;
|
|
33
|
-
return config;
|
|
34
|
-
});
|
|
35
|
-
const responseInterceptorId = axios.interceptors.response.use(_response => fieldsParserMiddleware(translationMiddleware(_response)));
|
|
36
|
-
provider.getModelApi()?.init();
|
|
37
|
-
return { token, jsessionId, requestInterceptorId, responseInterceptorId };
|
|
38
|
-
});
|
|
47
|
+
.then(res => initAxiosWithHeaders(res, url));
|
|
48
|
+
}
|
|
49
|
+
export async function logoutApi() {
|
|
50
|
+
return axios.get('/logout');
|
|
39
51
|
}
|
|
40
52
|
export async function getActiveUserInfo() {
|
|
41
53
|
const response = await axios.get('/ws/public/app/info');
|
package/lib/api/login-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-api.js","sourceRoot":"","sources":["../../src/api/login-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,sBAAsB,EACtB,QAAQ,EACR,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,SAAS,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"login-api.js","sourceRoot":"","sources":["../../src/api/login-api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,sBAAsB,EACtB,QAAQ,EACR,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,SAAS,GAAG,WAAW,CAAC;AAC9B,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAExC,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,EAAE;IACvC,OAAO,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,EACzB,oBAAoB,EACpB,qBAAqB,GAItB;IACC,KAAK,C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,EAAE,CAAC,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS;IAC7B,OAAO,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACxD,OAAO;QACL,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAChC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI;KACnD,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/metafile-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/model-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/traceback-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/api/user-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const REQUEST_LIMIT = 10;
|
|
2
2
|
export type CriteriaField = {
|
|
3
|
-
operator: '=' | '!=' | '<' | '>' | '<=' | '>=' | 'like' | 'notLike' | 'between' | 'notBetween' | 'isNull' | 'notNull';
|
|
3
|
+
operator: '=' | '!=' | '<' | '>' | '<=' | '>=' | 'like' | 'notLike' | 'between' | 'notBetween' | 'isNull' | 'notNull' | 'in';
|
|
4
4
|
fieldName: string;
|
|
5
5
|
value?: any;
|
|
6
6
|
value2?: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ApiProvider, axiosApiProvider } from './AxiosProvider';
|
|
2
2
|
export { getObjectFields, getSearchCriterias, getSortFields, objectFieldsProvider, } from './ObjectFieldsProvider';
|
|
3
|
-
export { createStandardSearch, createStandardFetch } from './requests.helper';
|
|
3
|
+
export { createHierarchicalSearch, createStandardSearch, createStandardFetch, } from './requests.helper';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export { axiosApiProvider } from './AxiosProvider';
|
|
19
19
|
export { getObjectFields, getSearchCriterias, getSortFields, objectFieldsProvider, } from './ObjectFieldsProvider';
|
|
20
|
-
export { createStandardSearch, createStandardFetch } from './requests.helper';
|
|
20
|
+
export { createHierarchicalSearch, createStandardSearch, createStandardFetch, } from './requests.helper';
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/apiProviders/Standard/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAc,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/apiProviders/Standard/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAc,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC"}
|
|
@@ -14,6 +14,10 @@ interface SearchProps {
|
|
|
14
14
|
companyFieldName?: string;
|
|
15
15
|
companySetFieldName?: string;
|
|
16
16
|
}
|
|
17
|
+
interface HierarchicalSearchProps extends SearchProps {
|
|
18
|
+
parentField: string;
|
|
19
|
+
parentId: number;
|
|
20
|
+
}
|
|
17
21
|
interface FetchProps {
|
|
18
22
|
model: string;
|
|
19
23
|
fieldKey: string;
|
|
@@ -27,11 +31,14 @@ declare class RequestBuilder {
|
|
|
27
31
|
init(defaultRequestLimit: number): void;
|
|
28
32
|
getRequestLimit(): number;
|
|
29
33
|
createStandardSearch: ({ model, criteria, domain, domainContext, fieldKey, sortKey, page, numberElementsByPage, provider, companyId, isCompanyM2M, companyFieldName, companySetFieldName, }: SearchProps) => Promise<any>;
|
|
34
|
+
private getIdsHierarchicalSearch;
|
|
35
|
+
createHierarchicalSearch: ({ parentField, parentId, criteria, ...props }: HierarchicalSearchProps) => Promise<any>;
|
|
30
36
|
createStandardFetch: ({ model, fieldKey, id, relatedFields, provider, }: FetchProps) => Promise<any>;
|
|
31
37
|
}
|
|
32
38
|
export declare const requestBuilder: RequestBuilder;
|
|
33
39
|
export declare const getCompanyCriteria: (companyId: number, companyFieldName?: string) => Criteria;
|
|
34
40
|
export declare const getCompanyDomain: (companyId: number, companySetFieldName?: string) => Domain;
|
|
35
41
|
export declare const createStandardSearch: (searchOptions: SearchProps) => Promise<any>;
|
|
42
|
+
export declare const createHierarchicalSearch: (searchOptions: HierarchicalSearchProps) => Promise<any>;
|
|
36
43
|
export declare const createStandardFetch: (fetchOptions: FetchProps) => Promise<any>;
|
|
37
44
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -89,6 +89,73 @@ class RequestBuilder {
|
|
|
89
89
|
},
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
+
getIdsHierarchicalSearch = async ({ parentField, parentId, model, criteria = [], domain = '', domainContext = {}, provider = 'axios', companyId, isCompanyM2M = false, companyFieldName, companySetFieldName, }) => {
|
|
93
|
+
const result = [parentId];
|
|
94
|
+
const res = await this.createStandardSearch({
|
|
95
|
+
model,
|
|
96
|
+
criteria: [
|
|
97
|
+
{
|
|
98
|
+
fieldName: parentField + '.id',
|
|
99
|
+
operator: '=',
|
|
100
|
+
value: parentId,
|
|
101
|
+
},
|
|
102
|
+
...(criteria ?? []),
|
|
103
|
+
],
|
|
104
|
+
domain,
|
|
105
|
+
domainContext,
|
|
106
|
+
fieldKey: '',
|
|
107
|
+
page: 0,
|
|
108
|
+
numberElementsByPage: null,
|
|
109
|
+
provider,
|
|
110
|
+
companyId,
|
|
111
|
+
isCompanyM2M,
|
|
112
|
+
companyFieldName,
|
|
113
|
+
companySetFieldName,
|
|
114
|
+
});
|
|
115
|
+
const children = res?.data?.data;
|
|
116
|
+
if (Array.isArray(children) && children?.length > 0) {
|
|
117
|
+
result.push(...children.map(child => child.id));
|
|
118
|
+
for (const child of children) {
|
|
119
|
+
const subTree = await this.getIdsHierarchicalSearch({
|
|
120
|
+
parentField,
|
|
121
|
+
parentId: child.id,
|
|
122
|
+
model,
|
|
123
|
+
criteria,
|
|
124
|
+
domain,
|
|
125
|
+
domainContext,
|
|
126
|
+
provider,
|
|
127
|
+
companyId,
|
|
128
|
+
isCompanyM2M,
|
|
129
|
+
companyFieldName,
|
|
130
|
+
companySetFieldName,
|
|
131
|
+
});
|
|
132
|
+
result.push(...subTree);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return result.filter((id, idx) => result.indexOf(id) === idx);
|
|
136
|
+
};
|
|
137
|
+
createHierarchicalSearch = async ({ parentField, parentId, criteria = [], ...props }) => {
|
|
138
|
+
let _criteria = criteria;
|
|
139
|
+
if (parentId != null) {
|
|
140
|
+
const ids = await this.getIdsHierarchicalSearch({
|
|
141
|
+
...props,
|
|
142
|
+
parentField,
|
|
143
|
+
parentId,
|
|
144
|
+
criteria,
|
|
145
|
+
});
|
|
146
|
+
if (!Array.isArray(ids) || ids.length === 0) {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
_criteria = [
|
|
150
|
+
{
|
|
151
|
+
fieldName: 'id',
|
|
152
|
+
operator: 'in',
|
|
153
|
+
value: ids,
|
|
154
|
+
},
|
|
155
|
+
];
|
|
156
|
+
}
|
|
157
|
+
return this.createStandardSearch({ ...props, criteria: _criteria });
|
|
158
|
+
};
|
|
92
159
|
createStandardFetch = ({ model, fieldKey, id, relatedFields = {}, provider = 'axios', }) => {
|
|
93
160
|
if (model == null || fieldKey == null) {
|
|
94
161
|
return null;
|
|
@@ -143,6 +210,9 @@ export const getCompanyDomain = (companyId, companySetFieldName = 'companySet')
|
|
|
143
210
|
export const createStandardSearch = (searchOptions) => {
|
|
144
211
|
return requestBuilder.createStandardSearch({ ...searchOptions });
|
|
145
212
|
};
|
|
213
|
+
export const createHierarchicalSearch = (searchOptions) => {
|
|
214
|
+
return requestBuilder.createHierarchicalSearch({ ...searchOptions });
|
|
215
|
+
};
|
|
146
216
|
export const createStandardFetch = (fetchOptions) => {
|
|
147
217
|
return requestBuilder.createStandardFetch({ ...fetchOptions });
|
|
148
218
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.helper.js","sourceRoot":"","sources":["../../../src/apiProviders/Standard/requests.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,WAAW,EAAC,MAAM,UAAU,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"requests.helper.js","sourceRoot":"","sources":["../../../src/apiProviders/Standard/requests.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,WAAW,EAAC,MAAM,UAAU,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC;AA+BtE,MAAM,cAAc;IACV,YAAY,CAAS;IAE7B;QACE,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACzB,CAAC;IAED,IAAI,CAAC,mBAA2B;QAC9B,IAAI,CAAC,YAAY,GAAG,mBAAmB,CAAC;IAC1C,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,oBAAoB,GAAG,CAAC,EACtB,KAAK,EACL,QAAQ,GAAG,EAAE,EACb,MAAM,GAAG,EAAE,EACX,aAAa,GAAG,EAAE,EAClB,QAAQ,EACR,OAAO,EACP,IAAI,GAAG,CAAC,EACR,oBAAoB,EACpB,QAAQ,GAAG,OAAO,EAClB,SAAS,EACT,YAAY,GAAG,KAAK,EACpB,gBAAgB,EAChB,mBAAmB,GACP,EAAgB,EAAE;QAC9B,IAAI,KAAK,IAAI,IAAI,IAAI,QAAQ,IAAI,IAAI,EAAE;YACrC,OAAO,IAAI,CAAC;SACb;QAED,MAAM,KAAK,GACT,oBAAoB,KAAK,SAAS;YAChC,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAC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;aACjB;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,SAAiB,EACjB,sBAA8B,YAAY,EAClC,EAAE;IACV,OAAO;QACL,MAAM,EAAE,QAAQ,mBAAmB,wCAAwC,mBAAmB,EAAE;QAChG,aAAa,EAAE;YACb,OAAO,EAAE;gBACP,EAAE,EAAE,SAAS;aACd;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,aAA0B,EACZ,EAAE;IAChB,OAAO,cAAc,CAAC,oBAAoB,CAAC,EAAC,GAAG,aAAa,EAAC,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,aAAsC,EACxB,EAAE;IAChB,OAAO,cAAc,CAAC,wBAAwB,CAAC,EAAC,GAAG,aAAa,EAAC,CAAC,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,YAAwB,EAAgB,EAAE;IAC5E,OAAO,cAAc,CAAC,mBAAmB,CAAC,EAAC,GAAG,YAAY,EAAC,CAAC,CAAC;AAC/D,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -2,4 +2,5 @@ export * from "./Model";
|
|
|
2
2
|
export * from "./Action";
|
|
3
3
|
export * from "./Standard";
|
|
4
4
|
export * from "./middlewares";
|
|
5
|
+
export { apiProviderConfig } from "./config";
|
|
5
6
|
export { getApiResponseData, getFirstData, handlerApiCall, handlerError, manageInfiteScrollState, generateInifiniteScrollCases } from "./utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -20,4 +20,5 @@ export * from './Action';
|
|
|
20
20
|
export * from './Standard';
|
|
21
21
|
export * from './middlewares';
|
|
22
22
|
export { getApiResponseData, getFirstData, handlerApiCall, handlerError, manageInfiteScrollState, generateInifiniteScrollCases, } from './utils';
|
|
23
|
+
export { apiProviderConfig } from './config';
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apiProviders/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apiProviders/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
package/lib/app/Application.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
5
|
*
|
|
6
6
|
* This program is free software: you can redistribute it and/or modify
|
|
7
7
|
* it under the terms of the GNU Affero General Public License, version 3,
|