Collaboration completed for builder,dashboard, visualization for API and socket

This commit is contained in:
2025-06-04 17:25:46 +05:30
parent 591d86c274
commit 5216ee190a
40 changed files with 1045 additions and 674 deletions

View File

@@ -1,5 +1,8 @@
import wallItemModel from "../../../shared/model/builder/assets/wallitems-Model.ts";
import { existingProjectById, existingUser } from "../helpers/v1projecthelperFns.ts";
import {
existingProjectById,
existingUser,
} from "../helpers/v1projecthelperFns.ts";
interface IWallSetupData {
modelUuid: string;
modelName: string;
@@ -29,7 +32,9 @@ interface IWallItemResult {
data?: Object;
status: string;
}
export const setWallItems = async (data: IWallSetupData): Promise<IWallItemResult> => {
export const setWallItems = async (
data: IWallSetupData
): Promise<IWallItemResult> => {
try {
const {
userId,
@@ -86,6 +91,7 @@ export const setWallItems = async (data: IWallSetupData): Promise<IWallItemResul
quaternion,
scale,
});
console.log("newValue: ", newValue);
return {
status: "wall Item created successfully",
data: newValue,
@@ -102,7 +108,7 @@ export const setWallItems = async (data: IWallSetupData): Promise<IWallItemResul
};
}
}
}
};
export const getWallItems = async (data: IWallGet) => {
try {
const { organization, userId, projectId } = data;
@@ -120,6 +126,7 @@ export const getWallItems = async (data: IWallGet) => {
if (!findValue) {
return {
status: "wallitems not found",
data: [],
};
} else {
return {
@@ -138,8 +145,10 @@ export const getWallItems = async (data: IWallGet) => {
};
}
}
}
export const deleteWallItems = async (data: IWallDelete): Promise<IWallItemResult> => {
};
export const deleteWallItems = async (
data: IWallDelete
): Promise<IWallItemResult> => {
try {
const { modelUuid, modelName, organization, userId, projectId } = data;
const UserExists = await existingUser(userId, organization);
@@ -176,4 +185,4 @@ export const deleteWallItems = async (data: IWallDelete): Promise<IWallItemResul
};
}
}
}
};