@syzy/apphost 1.0.2 → 1.0.4
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/dist/AppHostRoutes.js +7 -3
- package/dist/{types/api → api}/mapping-api.d.ts +8 -5
- package/package.json +21 -2
- /package/dist/{types/App.d.ts → App.d.ts} +0 -0
- /package/dist/{types/AppHostProvider.d.ts → AppHostProvider.d.ts} +0 -0
- /package/dist/{types/AppHostRoutes.d.ts → AppHostRoutes.d.ts} +0 -0
- /package/dist/{types/api → api}/image-api.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/AmenityForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/BillingManagement.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/CreateRoomForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/ExtraRequirementForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/ReservationForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/RoomCategoryForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/RoomCategoryPriceForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/RoomExtraRequirementCapture.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/RoomFacilityForm.d.ts +0 -0
- /package/dist/{types/bookingModule → bookingModule}/components/RoomReservationAction.d.ts +0 -0
- /package/dist/{types/components → components}/Home/Home.d.ts +0 -0
- /package/dist/{types/components → components}/Loader/Loader.d.ts +0 -0
- /package/dist/{types/components → components}/Login/Login.d.ts +0 -0
- /package/dist/{types/components → components}/Login/loginSchema.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/BranchMapping/Branch.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/BranchMapping/BranchTableColumns.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/BranchMapping/MappingFormBranchUser.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/BranchMapping/MappingTableColumns.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/BranchMapping/branchSchema.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/ComponentMapping/ComponentRoleMapping.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/ComponentMapping/componentRoleColumns.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/MappingForm/MappingForm.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/MappingForm/mappingSchema.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/RoleMapping/MappingFormUserRole.d.ts +0 -0
- /package/dist/{types/components → components}/Mappings/RoleMapping/UserRoleTableColumns.d.ts +0 -0
- /package/dist/{types/components → components}/NavBar/Sidebar.d.ts +0 -0
- /package/dist/{types/components → components}/ProfileForm/ProfileForm.d.ts +0 -0
- /package/dist/{types/components → components}/ProfileForm/ProfileList.d.ts +0 -0
- /package/dist/{types/components → components}/ProfileForm/profileColumns.d.ts +0 -0
- /package/dist/{types/components → components}/ProfileForm/profileSchema.d.ts +0 -0
- /package/dist/{types/components → components}/SettingsPage/SettingsPage.d.ts +0 -0
- /package/dist/{types/components → components}/api/settings-api.d.ts +0 -0
- /package/dist/{types/components → components}/common/Form/FormActionButtons.d.ts +0 -0
- /package/dist/{types/components → components}/common/Form/FormLabel.d.ts +0 -0
- /package/dist/{types/components → components}/common/ListTable/ListHeader.d.ts +0 -0
- /package/dist/{types/components → components}/common/ListTable/ListTable.d.ts +0 -0
- /package/dist/{types/components → components}/common/Modal/Modal.d.ts +0 -0
- /package/dist/{types/config → config}/EnvConfig.d.ts +0 -0
- /package/dist/{types/config → config}/amplifyConfig.d.ts +0 -0
- /package/dist/{types/configureAppHost.d.ts → configureAppHost.d.ts} +0 -0
- /package/dist/{types/customGraphQL → customGraphQL}/customMutations.d.ts +0 -0
- /package/dist/{types/customGraphQL → customGraphQL}/customQueries.d.ts +0 -0
- /package/dist/{types/domain → domain}/input/input-types.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/BranchDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/ComponentMappingDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/MappingDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/PrefixDescriptionDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/ProfileDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/RoleMappingDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/SettingsDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/UserMappingDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/model/imageDto.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/EntityTypes.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/MappingOptions.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/MappingTypes.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/Nullable.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/ResettingPeriodOptions.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/RolesEnum.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/SelectType.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/StatusEnum.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/signUpOptions.d.ts +0 -0
- /package/dist/{types/domain → domain}/type/statusOptions.d.ts +0 -0
- /package/dist/{types/graphql → graphql}/profileQueries.d.ts +0 -0
- /package/dist/{types/hoc → hoc}/withSyzyAuth.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/useCurrentUser.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/useDispatch.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/usePermission.d.ts +0 -0
- /package/dist/{types/index.d.ts → index.d.ts} +0 -0
- /package/dist/{types/main.d.ts → main.d.ts} +0 -0
- /package/dist/{types/services → services}/Client.Service.d.ts +0 -0
- /package/dist/{types/services → services}/Storage-service.d.ts +0 -0
- /package/dist/{types/services → services}/navigationMenu.d.ts +0 -0
- /package/dist/{types/static → static}/constants.d.ts +0 -0
- /package/dist/{types/store → store}/AppAction.d.ts +0 -0
- /package/dist/{types/store → store}/AppContext.d.ts +0 -0
- /package/dist/{types/store → store}/AppContextType.d.ts +0 -0
- /package/dist/{types/store → store}/AppProvider.d.ts +0 -0
- /package/dist/{types/store → store}/HostedInContainerContext.d.ts +0 -0
- /package/dist/{types/store → store}/SesssionReducer.d.ts +0 -0
- /package/dist/{types/types.d.ts → types.d.ts} +0 -0
- /package/dist/{types/util → util}/AuthUtils.d.ts +0 -0
- /package/dist/{types/util → util}/LogEnum.d.ts +0 -0
- /package/dist/{types/util → util}/Logger.d.ts +0 -0
- /package/dist/{types/util → util}/SyzyDate.d.ts +0 -0
- /package/dist/{types/util → util}/dateUtils.d.ts +0 -0
- /package/dist/{types/util → util}/hostedinContainer.d.ts +0 -0
- /package/dist/{types/util → util}/model-types.d.ts +0 -0
- /package/dist/{types/util → util}/prefixAndResettingValidation.d.ts +0 -0
- /package/dist/{types/util → util}/transformToData.d.ts +0 -0
package/dist/AppHostRoutes.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Routes, Route } from "react-router-dom";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import Home from "./components/Home/Home";
|
|
4
|
+
import ProfileForm from "./components/ProfileForm/ProfileForm";
|
|
5
|
+
import BranchMapping from "./components/Mappings/BranchMapping/Branch";
|
|
6
|
+
import MappingFormBranchUser from "./components/Mappings/BranchMapping/MappingFormBranchUser";
|
|
7
|
+
import ComponentRoleMapping from "./components/Mappings/ComponentMapping/ComponentRoleMapping";
|
|
8
|
+
import MappingFormUserRole from "./components/Mappings/RoleMapping/MappingFormUserRole";
|
|
5
9
|
export const AppHostRoutes = () => {
|
|
6
|
-
return (_jsxs(Routes, { children: [_jsx(Route, { path: "/apphost", element: _jsx(
|
|
10
|
+
return (_jsxs(Routes, { children: [_jsx(Route, { path: "/apphost/home", element: _jsx(Home, {}) }), _jsx(Route, { path: "/apphost/profile-form", element: _jsx(ProfileForm, {}) }), _jsx(Route, { path: "/apphost/branch", element: _jsx(BranchMapping, {}) }), _jsx(Route, { path: "/apphost/mapping-branch-user", element: _jsx(MappingFormBranchUser, {}) }), _jsx(Route, { path: "/apphost/mapping-user-role", element: _jsx(MappingFormUserRole, {}) }), _jsx(Route, { path: "/apphost/component-role-mapping", element: _jsx(ComponentRoleMapping, {}) })] }));
|
|
7
11
|
};
|
|
@@ -5,6 +5,7 @@ import { RoleMappingDto } from "../domain/model/RoleMappingDto";
|
|
|
5
5
|
import { ComponentMappingDto, ComponentRoleMapping } from "../domain/model/ComponentMappingDto";
|
|
6
6
|
import { BranchDto } from "../domain/model/BranchDto";
|
|
7
7
|
import { ProfileDto } from "../domain/model/ProfileDto";
|
|
8
|
+
import { MappingItemDto } from "../domain/input/input-types";
|
|
8
9
|
import { Status } from "../domain/type/StatusEnum";
|
|
9
10
|
export declare const MAPPING_RESOURCE: string;
|
|
10
11
|
export declare const GET_MAPPING_BY_USERID_QUERYKEY: string;
|
|
@@ -26,8 +27,8 @@ export type BranchInput = {
|
|
|
26
27
|
createdDt: string;
|
|
27
28
|
status: string;
|
|
28
29
|
};
|
|
29
|
-
export declare const getBranches: () => Promise<
|
|
30
|
-
export declare const useListBranches: () => import("@tanstack/react-query").UseQueryResult<
|
|
30
|
+
export declare const getBranches: () => Promise<BranchDto[]>;
|
|
31
|
+
export declare const useListBranches: () => import("@tanstack/react-query").UseQueryResult<BranchDto[], Error>;
|
|
31
32
|
export declare const createBranchFn: (input: {
|
|
32
33
|
branchName: string;
|
|
33
34
|
branchAddress: string;
|
|
@@ -50,12 +51,14 @@ export declare const useGetUserMappingByUserId: (userId: string) => {
|
|
|
50
51
|
};
|
|
51
52
|
export declare const getRolesMappingByUserIdAndEntityFun: (branchId: string, userId: string, entity: string) => Promise<RoleMappingDto[]>;
|
|
52
53
|
export declare const getRoleMappingByUserIdAndRoleNameFun: (userId: UndefinedString, roleName: UndefinedString) => Promise<RoleMappingDto>;
|
|
53
|
-
export declare const queryMappings: (variables: any) => Promise<
|
|
54
|
-
export declare const getUserComponents: (branchId: string, userId: string) => Promise<
|
|
54
|
+
export declare const queryMappings: (variables: any) => Promise<MappingItemDto[]>;
|
|
55
|
+
export declare const getUserComponents: (branchId: string, userId: string) => Promise<MappingItemDto[]>;
|
|
55
56
|
export declare const getCompoMappingByRoleIdAndCompoIdFun: (roleId: UndefinedString, componentId: UndefinedString) => Promise<ComponentMappingDto>;
|
|
56
57
|
export declare const getCompoMappingByRoleIdAndEntityFun: (branchId: string, roleId: string) => Promise<ComponentMappingDto[]>;
|
|
57
58
|
export declare const getComponentsByRoleOnly: (roleId: string) => Promise<ComponentMappingDto[]>;
|
|
58
|
-
export declare const useCreateMappingMutation: () => import("@tanstack/react-query").UseMutationResult<
|
|
59
|
+
export declare const useCreateMappingMutation: () => import("@tanstack/react-query").UseMutationResult<{
|
|
60
|
+
createMapping: MappingItemDto;
|
|
61
|
+
}, Error, MappingDto, unknown>;
|
|
59
62
|
export declare const useUpdateMappingMutation: () => import("@tanstack/react-query").UseMutationResult<any, Error, MappingDto, unknown>;
|
|
60
63
|
export declare const getBranchIdByUserId: (userId: string) => Promise<string[]>;
|
|
61
64
|
export declare const getBranchNameById: (branchId: string) => Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syzy/apphost",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,26 @@
|
|
|
26
26
|
"react-bootstrap": "^2.10.10",
|
|
27
27
|
"react-select": "^5.10.2",
|
|
28
28
|
"react-toastify": "^11.0.5",
|
|
29
|
-
"zod": "^4.1.9"
|
|
29
|
+
"zod": "^4.1.9",
|
|
30
|
+
"@aws-sdk/protocol-http": "^3.370.0",
|
|
31
|
+
"@aws-sdk/signature-v4": "^3.370.0",
|
|
32
|
+
"@fortawesome/fontawesome-svg-core": "^7.0.1",
|
|
33
|
+
"@fortawesome/free-solid-svg-icons": "^7.0.1",
|
|
34
|
+
"@fortawesome/react-fontawesome": "^3.0.2",
|
|
35
|
+
"@hookform/resolvers": "^5.2.2",
|
|
36
|
+
"@tanstack/react-table": "^8.21.3",
|
|
37
|
+
"@types/react-router-dom": "^5.3.3",
|
|
38
|
+
"aws-cdk-lib": "^2.227.0",
|
|
39
|
+
"bootstrap": "^5.3.8",
|
|
40
|
+
"chalk": "^4.1.2",
|
|
41
|
+
"constructs": "^10.4.3",
|
|
42
|
+
"graphql-request": "^7.2.0",
|
|
43
|
+
"react": "^19.1.1",
|
|
44
|
+
"react-dom": "^19.2.0",
|
|
45
|
+
"react-hook-form": "^7.62.0",
|
|
46
|
+
"react-icons": "^5.5.0",
|
|
47
|
+
"react-router-dom": "^7.9.6",
|
|
48
|
+
"ts-node": "^10.9.2"
|
|
30
49
|
},
|
|
31
50
|
"devDependencies": {
|
|
32
51
|
"@types/node": "^25.3.3",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/bookingModule → bookingModule}/components/RoomExtraRequirementCapture.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/components → components}/Mappings/BranchMapping/BranchTableColumns.d.ts
RENAMED
|
File without changes
|
/package/dist/{types/components → components}/Mappings/BranchMapping/MappingFormBranchUser.d.ts
RENAMED
|
File without changes
|
/package/dist/{types/components → components}/Mappings/BranchMapping/MappingTableColumns.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{types/components → components}/Mappings/ComponentMapping/ComponentRoleMapping.d.ts
RENAMED
|
File without changes
|
/package/dist/{types/components → components}/Mappings/ComponentMapping/componentRoleColumns.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/components → components}/Mappings/RoleMapping/UserRoleTableColumns.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|