autosync_backend2 1.1.55 → 1.1.58
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 +28 -0
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -6473,6 +6473,34 @@ export declare const app: Elysia<"", {
|
|
6473
6473
|
updatedAt: string;
|
6474
6474
|
deletedAt: string | null;
|
6475
6475
|
};
|
6476
|
+
vehicle: {
|
6477
|
+
customerId: string | null;
|
6478
|
+
vehicleKindId: string;
|
6479
|
+
vin: string | null;
|
6480
|
+
licensePlate: string | null;
|
6481
|
+
color: string | null;
|
6482
|
+
engineCc: string | null;
|
6483
|
+
cylinder: string | null;
|
6484
|
+
gasType: string | null;
|
6485
|
+
transmissionType: string | null;
|
6486
|
+
vehicleType: string | null;
|
6487
|
+
yearManufacture: number | null;
|
6488
|
+
yearImport: number | null;
|
6489
|
+
steering: string | null;
|
6490
|
+
engineCode: string | null;
|
6491
|
+
transmissionCode: string | null;
|
6492
|
+
driveTrain: string | null;
|
6493
|
+
km: number;
|
6494
|
+
companyId: string | null;
|
6495
|
+
id: string;
|
6496
|
+
createdAt: string;
|
6497
|
+
updatedAt: string;
|
6498
|
+
deletedAt: string | null;
|
6499
|
+
};
|
6500
|
+
employee: {
|
6501
|
+
firstname: string | null;
|
6502
|
+
name: never;
|
6503
|
+
};
|
6476
6504
|
}[];
|
6477
6505
|
};
|
6478
6506
|
422: {
|
package/dist/index.js
CHANGED
@@ -146210,8 +146210,13 @@ var CrmInspectionLogic;
|
|
146210
146210
|
CrmInspectionLogic.select = async (query, user2) => {
|
146211
146211
|
const baseQuery = db_default.select({
|
146212
146212
|
inspection: crmInspectionTable,
|
146213
|
-
|
146214
|
-
|
146213
|
+
vehicle: crmVehicleTable,
|
146214
|
+
totalCount: totalCountSql,
|
146215
|
+
employee: {
|
146216
|
+
firstname: companyEmployeeTable.firstname,
|
146217
|
+
name: companyCompanyTable.name
|
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();
|
146215
146220
|
const result = await pagination_helper_default(baseQuery, query.pagination);
|
146216
146221
|
const content = {
|
146217
146222
|
totalCount: result[0]?.totalCount ?? 0,
|