complete new audit system
This commit is contained in:
+19
-19
@@ -24,6 +24,8 @@ export declare function getAllCustomers(filters: CustomerFilters): Promise<{
|
||||
contracts: number;
|
||||
};
|
||||
} & {
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -48,8 +50,6 @@ export declare function getAllCustomers(filters: CustomerFilters): Promise<{
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
})[];
|
||||
pagination: {
|
||||
@@ -103,13 +103,13 @@ export declare function getCustomerById(id: number): Promise<({
|
||||
}[];
|
||||
meters: ({
|
||||
readings: {
|
||||
value: number;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
notes: string | null;
|
||||
readingDate: Date;
|
||||
meterId: number;
|
||||
status: import(".prisma/client").$Enums.MeterReadingStatus;
|
||||
value: number;
|
||||
valueNt: number | null;
|
||||
unit: string;
|
||||
reportedBy: string | null;
|
||||
@@ -128,6 +128,7 @@ export declare function getCustomerById(id: number): Promise<({
|
||||
location: string | null;
|
||||
})[];
|
||||
stressfreiEmails: {
|
||||
emailPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string;
|
||||
customerId: number;
|
||||
@@ -140,7 +141,6 @@ export declare function getCustomerById(id: number): Promise<({
|
||||
isProvisioned: boolean;
|
||||
provisionedAt: Date | null;
|
||||
provisionError: string | null;
|
||||
emailPasswordEncrypted: string | null;
|
||||
}[];
|
||||
contracts: ({
|
||||
address: {
|
||||
@@ -165,13 +165,13 @@ export declare function getCustomerById(id: number): Promise<({
|
||||
contactInfo: string | null;
|
||||
} | null;
|
||||
} & {
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
customerId: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
type: import(".prisma/client").$Enums.ContractType;
|
||||
notes: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
startDate: Date | null;
|
||||
contractNumber: string;
|
||||
status: import(".prisma/client").$Enums.ContractStatus;
|
||||
@@ -210,6 +210,8 @@ export declare function getCustomerById(id: number): Promise<({
|
||||
nextReviewDate: Date | null;
|
||||
})[];
|
||||
} & {
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -234,8 +236,6 @@ export declare function getCustomerById(id: number): Promise<({
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
}) | null>;
|
||||
export declare function getCustomersByIds(ids: number[]): Promise<{
|
||||
@@ -258,6 +258,8 @@ export declare function createCustomer(data: {
|
||||
commercialRegister?: string;
|
||||
notes?: string;
|
||||
}): Promise<{
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -282,8 +284,6 @@ export declare function createCustomer(data: {
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
}>;
|
||||
export declare function updateCustomer(id: number, data: {
|
||||
@@ -302,6 +302,8 @@ export declare function updateCustomer(id: number, data: {
|
||||
commercialRegister?: string;
|
||||
notes?: string;
|
||||
}): Promise<{
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -326,11 +328,11 @@ export declare function updateCustomer(id: number, data: {
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
}>;
|
||||
export declare function deleteCustomer(id: number): Promise<{
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -355,8 +357,6 @@ export declare function deleteCustomer(id: number): Promise<{
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
}>;
|
||||
export declare function getCustomerAddresses(customerId: number): Promise<{
|
||||
@@ -571,13 +571,13 @@ export declare function deleteDocument(id: number): Promise<{
|
||||
}>;
|
||||
export declare function getCustomerMeters(customerId: number, showInactive?: boolean): Promise<({
|
||||
readings: {
|
||||
value: number;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
notes: string | null;
|
||||
readingDate: Date;
|
||||
meterId: number;
|
||||
status: import(".prisma/client").$Enums.MeterReadingStatus;
|
||||
value: number;
|
||||
valueNt: number | null;
|
||||
unit: string;
|
||||
reportedBy: string | null;
|
||||
@@ -644,13 +644,13 @@ export declare function addMeterReading(meterId: number, data: {
|
||||
unit?: string;
|
||||
notes?: string;
|
||||
}): Promise<{
|
||||
value: number;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
notes: string | null;
|
||||
readingDate: Date;
|
||||
meterId: number;
|
||||
status: import(".prisma/client").$Enums.MeterReadingStatus;
|
||||
value: number;
|
||||
valueNt: number | null;
|
||||
unit: string;
|
||||
reportedBy: string | null;
|
||||
@@ -658,13 +658,13 @@ export declare function addMeterReading(meterId: number, data: {
|
||||
transferredBy: string | null;
|
||||
}>;
|
||||
export declare function getMeterReadings(meterId: number): Promise<{
|
||||
value: number;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
notes: string | null;
|
||||
readingDate: Date;
|
||||
meterId: number;
|
||||
status: import(".prisma/client").$Enums.MeterReadingStatus;
|
||||
value: number;
|
||||
valueNt: number | null;
|
||||
unit: string;
|
||||
reportedBy: string | null;
|
||||
@@ -678,13 +678,13 @@ export declare function updateMeterReading(meterId: number, readingId: number, d
|
||||
unit?: string;
|
||||
notes?: string;
|
||||
}): Promise<{
|
||||
value: number;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
notes: string | null;
|
||||
readingDate: Date;
|
||||
meterId: number;
|
||||
status: import(".prisma/client").$Enums.MeterReadingStatus;
|
||||
value: number;
|
||||
valueNt: number | null;
|
||||
unit: string;
|
||||
reportedBy: string | null;
|
||||
@@ -692,13 +692,13 @@ export declare function updateMeterReading(meterId: number, readingId: number, d
|
||||
transferredBy: string | null;
|
||||
}>;
|
||||
export declare function deleteMeterReading(meterId: number, readingId: number): Promise<{
|
||||
value: number;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
notes: string | null;
|
||||
readingDate: Date;
|
||||
meterId: number;
|
||||
status: import(".prisma/client").$Enums.MeterReadingStatus;
|
||||
value: number;
|
||||
valueNt: number | null;
|
||||
unit: string;
|
||||
reportedBy: string | null;
|
||||
@@ -715,10 +715,10 @@ export declare function updatePortalSettings(customerId: number, data: {
|
||||
portalLastLogin: Date | null;
|
||||
}>;
|
||||
export declare function getPortalSettings(customerId: number): Promise<{
|
||||
portalPasswordHash: string | null;
|
||||
id: number;
|
||||
portalEmail: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
} | null>;
|
||||
export declare function getCustomerRepresentatives(customerId: number): Promise<({
|
||||
|
||||
Reference in New Issue
Block a user