@tmlmobilidade/databases 20260618.457.26 → 20260618.532.12
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.
|
@@ -420,14 +420,14 @@ declare class RawApexTransactionsClass extends MongoInterfaceTemplate<RawApexTra
|
|
|
420
420
|
} & {
|
|
421
421
|
payload: import("zod").ZodObject<{
|
|
422
422
|
controlAckInfo: import("zod").ZodObject<{
|
|
423
|
-
corrControlTransactionID: import("zod").ZodString
|
|
423
|
+
corrControlTransactionID: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
424
424
|
finalControlStatus: import("zod").ZodNumber;
|
|
425
425
|
}, "strip", import("zod").ZodTypeAny, {
|
|
426
|
-
corrControlTransactionID: string;
|
|
426
|
+
corrControlTransactionID: string | null;
|
|
427
427
|
finalControlStatus: number;
|
|
428
428
|
}, {
|
|
429
|
-
corrControlTransactionID: string;
|
|
430
429
|
finalControlStatus: number;
|
|
430
|
+
corrControlTransactionID?: string | null | undefined;
|
|
431
431
|
}>;
|
|
432
432
|
mac: import("zod").ZodObject<{
|
|
433
433
|
aseCounterValue: import("zod").ZodNumber;
|
|
@@ -559,7 +559,7 @@ declare class RawApexTransactionsClass extends MongoInterfaceTemplate<RawApexTra
|
|
|
559
559
|
vivaVersion: string;
|
|
560
560
|
};
|
|
561
561
|
controlAckInfo: {
|
|
562
|
-
corrControlTransactionID: string;
|
|
562
|
+
corrControlTransactionID: string | null;
|
|
563
563
|
finalControlStatus: number;
|
|
564
564
|
};
|
|
565
565
|
}, {
|
|
@@ -598,8 +598,8 @@ declare class RawApexTransactionsClass extends MongoInterfaceTemplate<RawApexTra
|
|
|
598
598
|
vivaVersion: string;
|
|
599
599
|
};
|
|
600
600
|
controlAckInfo: {
|
|
601
|
-
corrControlTransactionID: string;
|
|
602
601
|
finalControlStatus: number;
|
|
602
|
+
corrControlTransactionID?: string | null | undefined;
|
|
603
603
|
};
|
|
604
604
|
}>;
|
|
605
605
|
version: import("zod").ZodLiteral<"inspection-decision-2.0">;
|
|
@@ -650,7 +650,7 @@ declare class RawApexTransactionsClass extends MongoInterfaceTemplate<RawApexTra
|
|
|
650
650
|
vivaVersion: string;
|
|
651
651
|
};
|
|
652
652
|
controlAckInfo: {
|
|
653
|
-
corrControlTransactionID: string;
|
|
653
|
+
corrControlTransactionID: string | null;
|
|
654
654
|
finalControlStatus: number;
|
|
655
655
|
};
|
|
656
656
|
};
|
|
@@ -697,8 +697,8 @@ declare class RawApexTransactionsClass extends MongoInterfaceTemplate<RawApexTra
|
|
|
697
697
|
vivaVersion: string;
|
|
698
698
|
};
|
|
699
699
|
controlAckInfo: {
|
|
700
|
-
corrControlTransactionID: string;
|
|
701
700
|
finalControlStatus: number;
|
|
701
|
+
corrControlTransactionID?: string | null | undefined;
|
|
702
702
|
};
|
|
703
703
|
};
|
|
704
704
|
}>, import("zod").ZodObject<{
|
|
@@ -56,7 +56,7 @@ export class ClickHouseInterfaceTemplate {
|
|
|
56
56
|
* @returns A promise that resolves to an array of distinct values matching the query.
|
|
57
57
|
*/
|
|
58
58
|
async distinct(field, where, params) {
|
|
59
|
-
const result = await queryFromString(this.client, `SELECT ${String(field)} FROM "${this.databaseName}"."${this.tableName}" WHERE ${where}`, params);
|
|
59
|
+
const result = await queryFromString(this.client, `SELECT DISTINCT ${String(field)} FROM "${this.databaseName}"."${this.tableName}" WHERE ${where}`, params);
|
|
60
60
|
return result.map(doc => doc[field]);
|
|
61
61
|
}
|
|
62
62
|
/**
|