complete new audit system
This commit is contained in:
+50
-50
@@ -97,13 +97,13 @@ export declare function getAllContracts(filters: ContractFilters): Promise<{
|
||||
providerId: number;
|
||||
} | 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;
|
||||
@@ -150,6 +150,8 @@ export declare function getAllContracts(filters: ContractFilters): Promise<{
|
||||
}>;
|
||||
export declare function getContractById(id: number, decryptPassword?: boolean): Promise<({
|
||||
customer: {
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -174,8 +176,6 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
};
|
||||
address: {
|
||||
@@ -230,13 +230,13 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
energyDetails: ({
|
||||
meter: ({
|
||||
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;
|
||||
@@ -257,13 +257,13 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
contractMeters: ({
|
||||
meter: {
|
||||
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;
|
||||
@@ -359,13 +359,13 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
energyDetails: ({
|
||||
meter: ({
|
||||
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;
|
||||
@@ -386,13 +386,13 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
contractMeters: ({
|
||||
meter: {
|
||||
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;
|
||||
@@ -446,15 +446,16 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
}) | null;
|
||||
internetDetails: ({
|
||||
phoneNumbers: {
|
||||
sipPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
phoneNumber: string;
|
||||
isMain: boolean;
|
||||
sipUsername: string | null;
|
||||
sipPasswordEncrypted: string | null;
|
||||
sipServer: string | null;
|
||||
internetContractDetailsId: number;
|
||||
}[];
|
||||
} & {
|
||||
internetPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
contractId: number;
|
||||
activationCode: string | null;
|
||||
@@ -465,18 +466,17 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
routerModel: string | null;
|
||||
installationDate: Date | null;
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
mobileDetails: ({
|
||||
simCards: {
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
simCardNumber: string | null;
|
||||
phoneNumber: string | null;
|
||||
isMain: boolean;
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
isMultisim: boolean;
|
||||
mobileDetailsId: number;
|
||||
}[];
|
||||
@@ -516,13 +516,13 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
previousInsurer: 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;
|
||||
@@ -594,6 +594,7 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
providerId: number;
|
||||
} | null;
|
||||
stressfreiEmail: {
|
||||
emailPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string;
|
||||
customerId: number;
|
||||
@@ -606,19 +607,19 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
isProvisioned: boolean;
|
||||
provisionedAt: Date | null;
|
||||
provisionError: string | null;
|
||||
emailPasswordEncrypted: string | null;
|
||||
} | null;
|
||||
internetDetails: ({
|
||||
phoneNumbers: {
|
||||
sipPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
phoneNumber: string;
|
||||
isMain: boolean;
|
||||
sipUsername: string | null;
|
||||
sipPasswordEncrypted: string | null;
|
||||
sipServer: string | null;
|
||||
internetContractDetailsId: number;
|
||||
}[];
|
||||
} & {
|
||||
internetPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
contractId: number;
|
||||
activationCode: string | null;
|
||||
@@ -629,18 +630,17 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
routerModel: string | null;
|
||||
installationDate: Date | null;
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
mobileDetails: ({
|
||||
simCards: {
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
simCardNumber: string | null;
|
||||
phoneNumber: string | null;
|
||||
isMain: boolean;
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
isMultisim: boolean;
|
||||
mobileDetailsId: number;
|
||||
}[];
|
||||
@@ -680,13 +680,13 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
previousInsurer: 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;
|
||||
@@ -824,6 +824,8 @@ interface ContractCreateData {
|
||||
}
|
||||
export declare function createContract(data: ContractCreateData): Promise<{
|
||||
customer: {
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -848,8 +850,6 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
};
|
||||
address: {
|
||||
@@ -902,15 +902,16 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
} | null;
|
||||
internetDetails: ({
|
||||
phoneNumbers: {
|
||||
sipPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
phoneNumber: string;
|
||||
isMain: boolean;
|
||||
sipUsername: string | null;
|
||||
sipPasswordEncrypted: string | null;
|
||||
sipServer: string | null;
|
||||
internetContractDetailsId: number;
|
||||
}[];
|
||||
} & {
|
||||
internetPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
contractId: number;
|
||||
activationCode: string | null;
|
||||
@@ -921,18 +922,17 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
routerModel: string | null;
|
||||
installationDate: Date | null;
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
mobileDetails: ({
|
||||
simCards: {
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
simCardNumber: string | null;
|
||||
phoneNumber: string | null;
|
||||
isMain: boolean;
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
isMultisim: boolean;
|
||||
mobileDetailsId: number;
|
||||
}[];
|
||||
@@ -972,13 +972,13 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
previousInsurer: 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;
|
||||
@@ -1018,6 +1018,8 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
}>;
|
||||
export declare function updateContract(id: number, data: Partial<ContractCreateData>): Promise<({
|
||||
customer: {
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -1042,8 +1044,6 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
};
|
||||
address: {
|
||||
@@ -1098,13 +1098,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
energyDetails: ({
|
||||
meter: ({
|
||||
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;
|
||||
@@ -1125,13 +1125,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
contractMeters: ({
|
||||
meter: {
|
||||
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;
|
||||
@@ -1227,13 +1227,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
energyDetails: ({
|
||||
meter: ({
|
||||
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;
|
||||
@@ -1254,13 +1254,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
contractMeters: ({
|
||||
meter: {
|
||||
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;
|
||||
@@ -1314,15 +1314,16 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
}) | null;
|
||||
internetDetails: ({
|
||||
phoneNumbers: {
|
||||
sipPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
phoneNumber: string;
|
||||
isMain: boolean;
|
||||
sipUsername: string | null;
|
||||
sipPasswordEncrypted: string | null;
|
||||
sipServer: string | null;
|
||||
internetContractDetailsId: number;
|
||||
}[];
|
||||
} & {
|
||||
internetPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
contractId: number;
|
||||
activationCode: string | null;
|
||||
@@ -1333,18 +1334,17 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
routerModel: string | null;
|
||||
installationDate: Date | null;
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
mobileDetails: ({
|
||||
simCards: {
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
simCardNumber: string | null;
|
||||
phoneNumber: string | null;
|
||||
isMain: boolean;
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
isMultisim: boolean;
|
||||
mobileDetailsId: number;
|
||||
}[];
|
||||
@@ -1384,13 +1384,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
previousInsurer: 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;
|
||||
@@ -1462,6 +1462,7 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
providerId: number;
|
||||
} | null;
|
||||
stressfreiEmail: {
|
||||
emailPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string;
|
||||
customerId: number;
|
||||
@@ -1474,19 +1475,19 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
isProvisioned: boolean;
|
||||
provisionedAt: Date | null;
|
||||
provisionError: string | null;
|
||||
emailPasswordEncrypted: string | null;
|
||||
} | null;
|
||||
internetDetails: ({
|
||||
phoneNumbers: {
|
||||
sipPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
phoneNumber: string;
|
||||
isMain: boolean;
|
||||
sipUsername: string | null;
|
||||
sipPasswordEncrypted: string | null;
|
||||
sipServer: string | null;
|
||||
internetContractDetailsId: number;
|
||||
}[];
|
||||
} & {
|
||||
internetPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
contractId: number;
|
||||
activationCode: string | null;
|
||||
@@ -1497,18 +1498,17 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
routerModel: string | null;
|
||||
installationDate: Date | null;
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
mobileDetails: ({
|
||||
simCards: {
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
simCardNumber: string | null;
|
||||
phoneNumber: string | null;
|
||||
isMain: boolean;
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
isMultisim: boolean;
|
||||
mobileDetailsId: number;
|
||||
}[];
|
||||
@@ -1548,13 +1548,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
previousInsurer: 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;
|
||||
@@ -1593,13 +1593,13 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
nextReviewDate: Date | null;
|
||||
}) | null>;
|
||||
export declare function deleteContract(id: number): Promise<{
|
||||
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;
|
||||
@@ -1639,6 +1639,8 @@ export declare function deleteContract(id: number): Promise<{
|
||||
}>;
|
||||
export declare function createFollowUpContract(previousContractId: number): Promise<{
|
||||
customer: {
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
email: string | null;
|
||||
firstName: string;
|
||||
@@ -1663,8 +1665,6 @@ export declare function createFollowUpContract(previousContractId: number): Prom
|
||||
privacyPolicyPath: string | null;
|
||||
notes: string | null;
|
||||
portalEnabled: boolean;
|
||||
portalPasswordHash: string | null;
|
||||
portalPasswordEncrypted: string | null;
|
||||
portalLastLogin: Date | null;
|
||||
};
|
||||
address: {
|
||||
@@ -1717,15 +1717,16 @@ export declare function createFollowUpContract(previousContractId: number): Prom
|
||||
} | null;
|
||||
internetDetails: ({
|
||||
phoneNumbers: {
|
||||
sipPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
phoneNumber: string;
|
||||
isMain: boolean;
|
||||
sipUsername: string | null;
|
||||
sipPasswordEncrypted: string | null;
|
||||
sipServer: string | null;
|
||||
internetContractDetailsId: number;
|
||||
}[];
|
||||
} & {
|
||||
internetPasswordEncrypted: string | null;
|
||||
id: number;
|
||||
contractId: number;
|
||||
activationCode: string | null;
|
||||
@@ -1736,18 +1737,17 @@ export declare function createFollowUpContract(previousContractId: number): Prom
|
||||
routerModel: string | null;
|
||||
installationDate: Date | null;
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
mobileDetails: ({
|
||||
simCards: {
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
id: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
simCardNumber: string | null;
|
||||
phoneNumber: string | null;
|
||||
isMain: boolean;
|
||||
pin: string | null;
|
||||
puk: string | null;
|
||||
isMultisim: boolean;
|
||||
mobileDetailsId: number;
|
||||
}[];
|
||||
@@ -1787,13 +1787,13 @@ export declare function createFollowUpContract(previousContractId: number): Prom
|
||||
previousInsurer: 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;
|
||||
|
||||
Reference in New Issue
Block a user