autosync_backend2 1.1.56 → 1.1.59

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
@@ -6497,6 +6497,10 @@ export declare const app: Elysia<"", {
6497
6497
  updatedAt: string;
6498
6498
  deletedAt: string | null;
6499
6499
  };
6500
+ employee: {
6501
+ firstname: string;
6502
+ lastname: string;
6503
+ } | null;
6500
6504
  }[];
6501
6505
  };
6502
6506
  422: {
package/dist/index.js CHANGED
@@ -146211,8 +146211,12 @@ var CrmInspectionLogic;
146211
146211
  const baseQuery = db_default.select({
146212
146212
  inspection: crmInspectionTable,
146213
146213
  vehicle: crmVehicleTable,
146214
- totalCount: totalCountSql
146215
- }).from(crmInspectionTable).where(CrmInspectionLogic.getFilter(query, user2)).orderBy(desc(crmInspectionTable.createdAt)).innerJoin(crmVehicleTable, eq(crmInspectionTable.vehicleId, crmVehicleTable.id)).$dynamic();
146214
+ totalCount: totalCountSql,
146215
+ employee: {
146216
+ firstname: companyEmployeeTable.firstname,
146217
+ lastname: companyEmployeeTable.lastname
146218
+ }
146219
+ }).from(crmInspectionTable).where(CrmInspectionLogic.getFilter(query, user2)).orderBy(desc(crmInspectionTable.createdAt)).innerJoin(crmVehicleTable, eq(crmInspectionTable.vehicleId, crmVehicleTable.id)).leftJoin(companyEmployeeTable, eq(crmInspectionTable.employeeId, companyEmployeeTable.id)).$dynamic();
146216
146220
  const result = await pagination_helper_default(baseQuery, query.pagination);
146217
146221
  const content = {
146218
146222
  totalCount: result[0]?.totalCount ?? 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosync_backend2",
3
- "version": "1.1.56",
3
+ "version": "1.1.59",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",