pathUUID changed to modelUUID in the connections source and targets of Asset points

This commit is contained in:
2025-04-05 14:55:29 +05:30
parent 35d4268a72
commit e83cf3b486
4 changed files with 34 additions and 34 deletions

View File

@@ -24,8 +24,8 @@ interface IPointConveyor extends IPointBase {
bufferTime: number; bufferTime: number;
}>; }>;
connections: { connections: {
source: { pathUUID: string; pointUUID: string }; source: { modelUUID: string; pointUUID: string };
targets: Array<{ pathUUID: string; pointUUID: string }>; targets: Array<{ modelUUID: string; pointUUID: string }>;
}; };
} }
@@ -41,7 +41,7 @@ interface IPointVehicle extends IPointBase {
}; };
connections: { connections: {
source: { modelUUID: string; pointUUID: string }; source: { modelUUID: string; pointUUID: string };
targets: Array<{ pathUUID: string; pointUUID: string }>; targets: Array<{ modelUUID: string; pointUUID: string }>;
}; };
speed: number; speed: number;
} }
@@ -94,8 +94,8 @@ export class pointService {
}, },
], ],
connections: { connections: {
source: { pathUUID: "modelUUID", pointUUID: "point1UUID" }, source: { modelUUID: "modelUUID", pointUUID: "point1UUID" },
targets: [{ pathUUID: "modelUUID", pointUUID: "point1UUID" }], targets: [{ modelUUID: "modelUUID", pointUUID: "point1UUID" }],
}, },
}, },
{ {
@@ -123,8 +123,8 @@ export class pointService {
}, },
], ],
connections: { connections: {
source: { pathUUID: "modelUUID", pointUUID: "point2UUID" }, source: { modelUUID: "modelUUID", pointUUID: "point2UUID" },
targets: [{ pathUUID: "modelUUID", pointUUID: "point2UUID" }], targets: [{ modelUUID: "modelUUID", pointUUID: "point2UUID" }],
}, },
}, },
{ {
@@ -152,8 +152,8 @@ export class pointService {
}, },
], ],
connections: { connections: {
source: { pathUUID: "modelUUID", pointUUID: "point3UUID" }, source: { modelUUID: "modelUUID", pointUUID: "point3UUID" },
targets: [{ pathUUID: "modelUUID", pointUUID: "point3UUID" }], targets: [{ modelUUID: "modelUUID", pointUUID: "point3UUID" }],
}, },
}, },
]; ];
@@ -183,7 +183,7 @@ export class pointService {
}, },
connections: { connections: {
source: { modelUUID: "modelUUID", pointUUID: "point1UUID" }, source: { modelUUID: "modelUUID", pointUUID: "point1UUID" },
targets: [{ pathUUID: "modelUUID", pointUUID: "point1UUID" }], targets: [{ modelUUID: "modelUUID", pointUUID: "point1UUID" }],
}, },
speed: 2, speed: 2,
}; };

View File

@@ -68,12 +68,12 @@ export default assetModel;
// triggers: [mongoose.Types.ObjectId]; // triggers: [mongoose.Types.ObjectId];
// connections: { // connections: {
// source: { // source: {
// pathUUID: string; // modelUUID: string;
// pointUUID: string; // pointUUID: string;
// }; // };
// targets: [ // targets: [
// { // {
// pathUUID: string; // modelUUID: string;
// pointUUID: string; // pointUUID: string;
// } // }
// ]; // ];
@@ -106,12 +106,12 @@ export default assetModel;
// triggers: [{ type: mongoose.Schema.Types.ObjectId, ref: "Triggers" }], // triggers: [{ type: mongoose.Schema.Types.ObjectId, ref: "Triggers" }],
// connections: { // connections: {
// source: { // source: {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// targets: [ // targets: [
// { // {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// ], // ],

View File

@@ -17,12 +17,12 @@ import MainModel from "../../../connect/mongoose.ts";
// } // }
// interface IConnectionConveyor { // interface IConnectionConveyor {
// source: { pathUUID: string; pointUUID: string }; // source: { modelUUID: string; pointUUID: string };
// targets: { pathUUID: string; pointUUID: string }[]; // targets: { modelUUID: string; pointUUID: string }[];
// } // }
// interface IConnectionVehicle { // interface IConnectionVehicle {
// source: { modelUUID: string; pointUUID: string }; // source: { modelUUID: string; pointUUID: string };
// targets: { pathUUID: string; pointUUID: string }[]; // targets: { modelUUID: string; pointUUID: string }[];
// } // }
// Point Types // Point Types
@@ -50,8 +50,8 @@ interface IPointConveyor extends IPointBase {
bufferTime: number; bufferTime: number;
}>; }>;
connections: { connections: {
source: { pathUUID: string; pointUUID: string }; source: { modelUUID: string; pointUUID: string };
targets: Array<{ pathUUID: string; pointUUID: string }>; targets: Array<{ modelUUID: string; pointUUID: string }>;
}; };
} }
@@ -68,7 +68,7 @@ interface IPointVehicle extends IPointBase {
speed: number; speed: number;
connections: { connections: {
source: { modelUUID: string; pointUUID: string }; source: { modelUUID: string; pointUUID: string };
targets: Array<{ pathUUID: string; pointUUID: string }>; targets: Array<{ modelUUID: string; pointUUID: string }>;
}; };
} }
@@ -130,8 +130,8 @@ export default pointModel;
// } // }
// interface IConnection { // interface IConnection {
// source: { pathUUID: string; pointUUID: string }; // source: { modelUUID: string; pointUUID: string };
// targets: { pathUUID: string; pointUUID: string }[]; // targets: { modelUUID: string; pointUUID: string }[];
// } // }
// interface IActionVehicle { // interface IActionVehicle {
// uuid: string; // uuid: string;
@@ -191,12 +191,12 @@ export default pointModel;
// ], // ],
// connections: { // connections: {
// source: { // source: {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// targets: [ // targets: [
// { // {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// ], // ],
@@ -228,12 +228,12 @@ export default pointModel;
// ], // ],
// connections: { // connections: {
// source: { // source: {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// targets: [ // targets: [
// { // {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// ], // ],
@@ -335,8 +335,8 @@ export default pointModel;
// } // }
// interface IConnection { // interface IConnection {
// source: { pathUUID: string; pointUUID: string }; // source: { modelUUID: string; pointUUID: string };
// targets: { pathUUID: string; pointUUID: string }[]; // targets: { modelUUID: string; pointUUID: string }[];
// } // }
// interface IPoint { // interface IPoint {
// uuid: string; // uuid: string;
@@ -384,12 +384,12 @@ export default pointModel;
// ], // ],
// connections: { // connections: {
// source: { // source: {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// targets: [ // targets: [
// { // {
// pathUUID: { type: String }, // modelUUID: { type: String },
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// ], // ],

View File

@@ -17,12 +17,12 @@
// rotation: [number]; // rotation: [number];
// connections: { // connections: {
// source: { // source: {
// // pathUUID: { type: String }; // // modelUUID: { type: String };
// pointUUID: string; // pointUUID: string;
// }; // };
// targets: [ // targets: [
// { // {
// // pathUUID: { type: String }; // // modelUUID: { type: String };
// pointUUID: string; // pointUUID: string;
// } // }
// ]; // ];
@@ -61,12 +61,12 @@
// ], // ],
// connections: { // connections: {
// source: { // source: {
// // pathUUID: { type: String }; // // modelUUID: { type: String };
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// targets: [ // targets: [
// { // {
// // pathUUID: { type: String }; // // modelUUID: { type: String };
// pointUUID: { type: String }, // pointUUID: { type: String },
// }, // },
// ], // ],