autosync_backend2 1.2.34 → 1.2.35

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/index.d.ts CHANGED
@@ -8820,6 +8820,34 @@ export declare const app: Elysia<"", {
8820
8820
  deletedAt: string | null;
8821
8821
  oldId: number | null;
8822
8822
  };
8823
+ machine: {
8824
+ companyId: string | null;
8825
+ machineKindId: string;
8826
+ customerId: string | null;
8827
+ name: string | null;
8828
+ assetCode: string | null;
8829
+ vin: string | null;
8830
+ licensePlate: string | null;
8831
+ color: string | null;
8832
+ engineCc: string | null;
8833
+ cylinder: string | null;
8834
+ gasType: string | null;
8835
+ transmissionType: string | null;
8836
+ vehicleType: string | null;
8837
+ yearManufacture: number | null;
8838
+ yearImport: number | null;
8839
+ steering: string | null;
8840
+ engineCode: string | null;
8841
+ transmissionCode: string | null;
8842
+ driveTrain: string | null;
8843
+ km: number;
8844
+ customData: unknown;
8845
+ id: string;
8846
+ createdAt: string;
8847
+ updatedAt: string;
8848
+ deletedAt: string | null;
8849
+ oldId: number | null;
8850
+ } | null;
8823
8851
  totalCount: number;
8824
8852
  template: {
8825
8853
  name: string;
package/dist/index.js CHANGED
@@ -154298,11 +154298,12 @@ var InspectionLogic;
154298
154298
  const filter = and(eq(inspectionTable.machineId, query.machineId).if(query.machineId), eq(inspectionTable.templateId, query.templateId).if(query.templateId), eq(inspectionTable.state, query.state).if(query.state), gte(inspectionTable.createdAt, query.startDate).if(query.startDate), lte(inspectionTable.createdAt, query.endDate).if(query.endDate), eq(inspectionTable.id, query.id).if(query.id), or(eq(inspectionTemplateTable.companyId, user2.companyId), isNull2(inspectionTemplateTable.companyId)));
154299
154299
  const baseQuery = db_default.select({
154300
154300
  inspection: inspectionTable,
154301
+ machine: companyMachineTable,
154301
154302
  totalCount: totalCountSql,
154302
154303
  template: {
154303
154304
  name: inspectionTemplateTable.name
154304
154305
  }
154305
- }).from(inspectionTable).leftJoin(inspectionTemplateTable, eq(inspectionTemplateTable.id, inspectionTable.templateId)).where(filter).$dynamic();
154306
+ }).from(inspectionTable).leftJoin(inspectionTemplateTable, eq(inspectionTemplateTable.id, inspectionTable.templateId)).leftJoin(companyMachineTable, eq(companyMachineTable.id, inspectionTable.machineId)).where(filter).$dynamic();
154306
154307
  const result = await pagination_helper_default(baseQuery, query.pagination);
154307
154308
  return getPaginationContent(result, query.pagination.size);
154308
154309
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosync_backend2",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",