autosync_backend2 1.1.55 → 1.1.56
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 +24 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -6473,6 +6473,30 @@ 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
|
+
};
|
6476
6500
|
}[];
|
6477
6501
|
};
|
6478
6502
|
422: {
|
package/dist/index.js
CHANGED
@@ -146210,8 +146210,9 @@ var CrmInspectionLogic;
|
|
146210
146210
|
CrmInspectionLogic.select = async (query, user2) => {
|
146211
146211
|
const baseQuery = db_default.select({
|
146212
146212
|
inspection: crmInspectionTable,
|
146213
|
+
vehicle: crmVehicleTable,
|
146213
146214
|
totalCount: totalCountSql
|
146214
|
-
}).from(crmInspectionTable).where(CrmInspectionLogic.getFilter(query, user2)).orderBy(desc(crmInspectionTable.createdAt)).$dynamic();
|
146215
|
+
}).from(crmInspectionTable).where(CrmInspectionLogic.getFilter(query, user2)).orderBy(desc(crmInspectionTable.createdAt)).innerJoin(crmVehicleTable, eq(crmInspectionTable.vehicleId, crmVehicleTable.id)).$dynamic();
|
146215
146216
|
const result = await pagination_helper_default(baseQuery, query.pagination);
|
146216
146217
|
const content = {
|
146217
146218
|
totalCount: result[0]?.totalCount ?? 0,
|