autosync_backend2 1.2.41 → 1.2.42
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 +35 -9
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9639,16 +9639,42 @@ export declare const app: Elysia<"", {
|
|
|
9639
9639
|
totalCount: number;
|
|
9640
9640
|
totalPage: number;
|
|
9641
9641
|
result: Omit<{
|
|
9642
|
+
product: {
|
|
9643
|
+
pmTemplateId: string;
|
|
9644
|
+
productKindId: string;
|
|
9645
|
+
quantity: number | null;
|
|
9646
|
+
uomId: string;
|
|
9647
|
+
id: string;
|
|
9648
|
+
createdAt: string;
|
|
9649
|
+
updatedAt: string;
|
|
9650
|
+
deletedAt: string | null;
|
|
9651
|
+
oldId: number | null;
|
|
9652
|
+
};
|
|
9653
|
+
productKind: {
|
|
9654
|
+
productCategoryId: string;
|
|
9655
|
+
name: string;
|
|
9656
|
+
description: string | null;
|
|
9657
|
+
id: string;
|
|
9658
|
+
createdAt: string;
|
|
9659
|
+
updatedAt: string;
|
|
9660
|
+
deletedAt: string | null;
|
|
9661
|
+
oldId: number | null;
|
|
9662
|
+
} | null;
|
|
9663
|
+
uom: {
|
|
9664
|
+
uomCategoryId: string;
|
|
9665
|
+
code: string | null;
|
|
9666
|
+
name: string;
|
|
9667
|
+
description: string | null;
|
|
9668
|
+
symbol: string | null;
|
|
9669
|
+
isBaseUnit: boolean;
|
|
9670
|
+
baseFactor: number | null;
|
|
9671
|
+
id: string;
|
|
9672
|
+
createdAt: string;
|
|
9673
|
+
updatedAt: string;
|
|
9674
|
+
deletedAt: string | null;
|
|
9675
|
+
oldId: number | null;
|
|
9676
|
+
} | null;
|
|
9642
9677
|
totalCount: number;
|
|
9643
|
-
pmTemplateId: string;
|
|
9644
|
-
productKindId: string;
|
|
9645
|
-
quantity: number | null;
|
|
9646
|
-
uomId: string;
|
|
9647
|
-
id: string;
|
|
9648
|
-
createdAt: string;
|
|
9649
|
-
updatedAt: string;
|
|
9650
|
-
deletedAt: string | null;
|
|
9651
|
-
oldId: number | null;
|
|
9652
9678
|
}, "totalCount">[];
|
|
9653
9679
|
};
|
|
9654
9680
|
422: {
|
package/dist/index.js
CHANGED
|
@@ -152408,7 +152408,7 @@ var CrmInspectionLogic;
|
|
|
152408
152408
|
status: crmInspectionTable.status
|
|
152409
152409
|
}
|
|
152410
152410
|
}).from(crmInspectionTable).where(eq(crmInspectionTable.id, inspection.id)).leftJoin(companyCompanyTable, eq(companyCompanyTable.id, crmInspectionTable.companyId)).leftJoin(crmVehicleTable, eq(crmVehicleTable.id, crmInspectionTable.vehicleId)).leftJoin(techdocVehicleKindTable, eq(techdocVehicleKindTable.id, crmVehicleTable.vehicleKindId)).leftJoin(companyEmployeeTable, eq(companyEmployeeTable.id, crmInspectionTable.employeeId));
|
|
152411
|
-
await distribution_default.post(env_default.NODE_ENV === "development" ? "https://driver-partner-api.dev.ubcabtech.com/v1/webhook/autosync/inspection" : "https://driver-partner-api.ubcabtech.com/v1/webhook/autosync/inspection", {
|
|
152411
|
+
await distribution_default.post(env_default.NODE_ENV === "development" ? "https://driver-partner-api-v4.dev.ubcabtech.com/v1/webhook/autosync/inspection" : "https://driver-partner-api-v4.ubcabtech.com/v1/webhook/autosync/inspection", {
|
|
152412
152412
|
json: result[0],
|
|
152413
152413
|
retry: 3
|
|
152414
152414
|
});
|
|
@@ -154958,11 +154958,12 @@ var PmTemplateProductLogic;
|
|
|
154958
154958
|
((PmTemplateProductLogic) => {
|
|
154959
154959
|
PmTemplateProductLogic.select = async (query) => {
|
|
154960
154960
|
const filter = and(softDeletedFilter(pmTemplateProductTable), eq(pmTemplateProductTable.pmTemplateId, query.pmTemplateId));
|
|
154961
|
-
const columns = getTableColumns(pmTemplateProductTable);
|
|
154962
154961
|
const baseQuery = db_default.select({
|
|
154963
|
-
|
|
154962
|
+
product: pmTemplateProductTable,
|
|
154963
|
+
productKind: techdocProductKindTable,
|
|
154964
|
+
uom: uomTable,
|
|
154964
154965
|
totalCount: totalCountSql
|
|
154965
|
-
}).from(pmTemplateProductTable).where(filter).$dynamic();
|
|
154966
|
+
}).from(pmTemplateProductTable).leftJoin(techdocProductKindTable, eq(techdocProductKindTable.id, pmTemplateProductTable.productKindId)).leftJoin(uomTable, eq(uomTable.id, pmTemplateProductTable.uomId)).where(filter).$dynamic();
|
|
154966
154967
|
const result = await pagination_helper_default(baseQuery, query.pagination);
|
|
154967
154968
|
return getPaginationContent(result, query.pagination.size);
|
|
154968
154969
|
};
|