save email as pdf likae attachment version 2
This commit is contained in:
+107
@@ -67,6 +67,19 @@ export declare function getAllContracts(filters: ContractFilters): Promise<{
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
} | null;
|
||||
billingAddress: {
|
||||
id: number;
|
||||
customerId: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
type: import(".prisma/client").$Enums.AddressType;
|
||||
isDefault: boolean;
|
||||
street: string;
|
||||
houseNumber: string;
|
||||
postalCode: string;
|
||||
city: string;
|
||||
country: string;
|
||||
} | null;
|
||||
cancellationPeriod: {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
@@ -99,6 +112,7 @@ export declare function getAllContracts(filters: ContractFilters): Promise<{
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -354,6 +368,19 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
} | null;
|
||||
billingAddress: {
|
||||
id: number;
|
||||
customerId: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
type: import(".prisma/client").$Enums.AddressType;
|
||||
isDefault: boolean;
|
||||
street: string;
|
||||
houseNumber: string;
|
||||
postalCode: string;
|
||||
city: string;
|
||||
country: string;
|
||||
} | null;
|
||||
cancellationPeriod: {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
@@ -490,6 +517,7 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -534,6 +562,7 @@ export declare function getContractById(id: number, decryptPassword?: boolean):
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -563,6 +592,7 @@ interface ContractCreateData {
|
||||
contractCategoryId?: number;
|
||||
status?: ContractStatus;
|
||||
addressId?: number;
|
||||
billingAddressId?: number;
|
||||
bankCardId?: number;
|
||||
identityDocumentId?: number;
|
||||
salesPlatformId?: number;
|
||||
@@ -786,6 +816,19 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
billingAddress: {
|
||||
id: number;
|
||||
customerId: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
type: import(".prisma/client").$Enums.AddressType;
|
||||
isDefault: boolean;
|
||||
street: string;
|
||||
houseNumber: string;
|
||||
postalCode: string;
|
||||
city: string;
|
||||
country: string;
|
||||
} | null;
|
||||
} & {
|
||||
id: number;
|
||||
customerId: number;
|
||||
@@ -802,6 +845,7 @@ export declare function createContract(data: ContractCreateData): Promise<{
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -1050,6 +1094,19 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
color: string | null;
|
||||
sortOrder: number;
|
||||
} | null;
|
||||
billingAddress: {
|
||||
id: number;
|
||||
customerId: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
type: import(".prisma/client").$Enums.AddressType;
|
||||
isDefault: boolean;
|
||||
street: string;
|
||||
houseNumber: string;
|
||||
postalCode: string;
|
||||
city: string;
|
||||
country: string;
|
||||
} | null;
|
||||
cancellationPeriod: {
|
||||
id: number;
|
||||
isActive: boolean;
|
||||
@@ -1186,6 +1243,7 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -1230,6 +1288,7 @@ export declare function updateContract(id: number, data: Partial<ContractCreateD
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -1269,6 +1328,7 @@ export declare function deleteContract(id: number): Promise<{
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -1424,6 +1484,19 @@ export declare function createFollowUpContract(previousContractId: number): Prom
|
||||
internetUsername: string | null;
|
||||
internetPasswordEncrypted: string | null;
|
||||
}) | null;
|
||||
billingAddress: {
|
||||
id: number;
|
||||
customerId: number;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
type: import(".prisma/client").$Enums.AddressType;
|
||||
isDefault: boolean;
|
||||
street: string;
|
||||
houseNumber: string;
|
||||
postalCode: string;
|
||||
city: string;
|
||||
country: string;
|
||||
} | null;
|
||||
} & {
|
||||
id: number;
|
||||
customerId: number;
|
||||
@@ -1440,6 +1513,7 @@ export declare function createFollowUpContract(previousContractId: number): Prom
|
||||
contractNumber: string;
|
||||
contractCategoryId: number | null;
|
||||
addressId: number | null;
|
||||
billingAddressId: number | null;
|
||||
bankCardId: number | null;
|
||||
identityDocumentId: number | null;
|
||||
salesPlatformId: number | null;
|
||||
@@ -1474,5 +1548,38 @@ export declare function getInternetCredentials(contractId: number): Promise<{
|
||||
export declare function getSipCredentials(phoneNumberId: number): Promise<{
|
||||
password: string | null;
|
||||
}>;
|
||||
export interface ContractTreeNode {
|
||||
contract: {
|
||||
id: number;
|
||||
contractNumber: string;
|
||||
type: ContractType;
|
||||
status: ContractStatus;
|
||||
startDate: Date | null;
|
||||
endDate: Date | null;
|
||||
providerName: string | null;
|
||||
tariffName: string | null;
|
||||
previousContractId: number | null;
|
||||
provider?: {
|
||||
id: number;
|
||||
name: string;
|
||||
} | null;
|
||||
tariff?: {
|
||||
id: number;
|
||||
name: string;
|
||||
} | null;
|
||||
contractCategory?: {
|
||||
id: number;
|
||||
name: string;
|
||||
} | null;
|
||||
};
|
||||
predecessors: ContractTreeNode[];
|
||||
hasHistory: boolean;
|
||||
}
|
||||
/**
|
||||
* Verträge eines Kunden als Baumstruktur abrufen.
|
||||
* Wurzelknoten = Verträge ohne Nachfolger (aktuellste Verträge)
|
||||
* Vorgänger werden rekursiv eingebettet.
|
||||
*/
|
||||
export declare function getContractTreeForCustomer(customerId: number): Promise<ContractTreeNode[]>;
|
||||
export {};
|
||||
//# sourceMappingURL=contract.service.d.ts.map
|
||||
Reference in New Issue
Block a user