opencrm/backend/node_modules/.prisma/client/index-browser.js

717 lines
20 KiB
JavaScript

Object.defineProperty(exports, "__esModule", { value: true });
const {
Decimal,
objectEnumValues,
makeStrictEnum,
Public,
getRuntime,
skip
} = require('@prisma/client/runtime/index-browser.js')
const Prisma = {}
exports.Prisma = Prisma
exports.$Enums = {}
/**
* Prisma Client JS version: 5.22.0
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
*/
Prisma.prismaVersion = {
client: "5.22.0",
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
}
Prisma.PrismaClientKnownRequestError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)};
Prisma.PrismaClientUnknownRequestError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.PrismaClientRustPanicError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.PrismaClientInitializationError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.PrismaClientValidationError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.NotFoundError = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.Decimal = Decimal
/**
* Re-export of sql-template-tag
*/
Prisma.sql = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.empty = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.join = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.raw = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.validator = Public.validator
/**
* Extensions
*/
Prisma.getExtensionContext = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
Prisma.defineExtension = () => {
const runtimeName = getRuntime().prettyName;
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
)}
/**
* Shorthand utilities for JSON filtering
*/
Prisma.DbNull = objectEnumValues.instances.DbNull
Prisma.JsonNull = objectEnumValues.instances.JsonNull
Prisma.AnyNull = objectEnumValues.instances.AnyNull
Prisma.NullTypes = {
DbNull: objectEnumValues.classes.DbNull,
JsonNull: objectEnumValues.classes.JsonNull,
AnyNull: objectEnumValues.classes.AnyNull
}
/**
* Enums
*/
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
});
exports.Prisma.AppSettingScalarFieldEnum = {
id: 'id',
key: 'key',
value: 'value',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.UserScalarFieldEnum = {
id: 'id',
email: 'email',
password: 'password',
firstName: 'firstName',
lastName: 'lastName',
isActive: 'isActive',
tokenInvalidatedAt: 'tokenInvalidatedAt',
customerId: 'customerId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.RoleScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.PermissionScalarFieldEnum = {
id: 'id',
resource: 'resource',
action: 'action'
};
exports.Prisma.RolePermissionScalarFieldEnum = {
roleId: 'roleId',
permissionId: 'permissionId'
};
exports.Prisma.UserRoleScalarFieldEnum = {
userId: 'userId',
roleId: 'roleId'
};
exports.Prisma.CustomerScalarFieldEnum = {
id: 'id',
customerNumber: 'customerNumber',
type: 'type',
salutation: 'salutation',
firstName: 'firstName',
lastName: 'lastName',
companyName: 'companyName',
foundingDate: 'foundingDate',
birthDate: 'birthDate',
birthPlace: 'birthPlace',
email: 'email',
phone: 'phone',
mobile: 'mobile',
taxNumber: 'taxNumber',
businessRegistrationPath: 'businessRegistrationPath',
commercialRegisterPath: 'commercialRegisterPath',
commercialRegisterNumber: 'commercialRegisterNumber',
privacyPolicyPath: 'privacyPolicyPath',
notes: 'notes',
portalEnabled: 'portalEnabled',
portalEmail: 'portalEmail',
portalPasswordHash: 'portalPasswordHash',
portalPasswordEncrypted: 'portalPasswordEncrypted',
portalLastLogin: 'portalLastLogin',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.CustomerRepresentativeScalarFieldEnum = {
id: 'id',
customerId: 'customerId',
representativeId: 'representativeId',
notes: 'notes',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.AddressScalarFieldEnum = {
id: 'id',
customerId: 'customerId',
type: 'type',
street: 'street',
houseNumber: 'houseNumber',
postalCode: 'postalCode',
city: 'city',
country: 'country',
isDefault: 'isDefault',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.BankCardScalarFieldEnum = {
id: 'id',
customerId: 'customerId',
accountHolder: 'accountHolder',
iban: 'iban',
bic: 'bic',
bankName: 'bankName',
expiryDate: 'expiryDate',
documentPath: 'documentPath',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.IdentityDocumentScalarFieldEnum = {
id: 'id',
customerId: 'customerId',
type: 'type',
documentNumber: 'documentNumber',
issuingAuthority: 'issuingAuthority',
issueDate: 'issueDate',
expiryDate: 'expiryDate',
documentPath: 'documentPath',
isActive: 'isActive',
licenseClasses: 'licenseClasses',
licenseIssueDate: 'licenseIssueDate',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.EmailProviderConfigScalarFieldEnum = {
id: 'id',
name: 'name',
type: 'type',
apiUrl: 'apiUrl',
apiKey: 'apiKey',
username: 'username',
passwordEncrypted: 'passwordEncrypted',
domain: 'domain',
defaultForwardEmail: 'defaultForwardEmail',
imapServer: 'imapServer',
imapPort: 'imapPort',
smtpServer: 'smtpServer',
smtpPort: 'smtpPort',
imapEncryption: 'imapEncryption',
smtpEncryption: 'smtpEncryption',
allowSelfSignedCerts: 'allowSelfSignedCerts',
isActive: 'isActive',
isDefault: 'isDefault',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.StressfreiEmailScalarFieldEnum = {
id: 'id',
customerId: 'customerId',
email: 'email',
platform: 'platform',
notes: 'notes',
isActive: 'isActive',
isProvisioned: 'isProvisioned',
provisionedAt: 'provisionedAt',
provisionError: 'provisionError',
hasMailbox: 'hasMailbox',
emailPasswordEncrypted: 'emailPasswordEncrypted',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.CachedEmailScalarFieldEnum = {
id: 'id',
stressfreiEmailId: 'stressfreiEmailId',
folder: 'folder',
messageId: 'messageId',
uid: 'uid',
subject: 'subject',
fromAddress: 'fromAddress',
fromName: 'fromName',
toAddresses: 'toAddresses',
ccAddresses: 'ccAddresses',
receivedAt: 'receivedAt',
textBody: 'textBody',
htmlBody: 'htmlBody',
hasAttachments: 'hasAttachments',
attachmentNames: 'attachmentNames',
contractId: 'contractId',
assignedAt: 'assignedAt',
assignedBy: 'assignedBy',
isAutoAssigned: 'isAutoAssigned',
isRead: 'isRead',
isStarred: 'isStarred',
isDeleted: 'isDeleted',
deletedAt: 'deletedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.MeterScalarFieldEnum = {
id: 'id',
customerId: 'customerId',
meterNumber: 'meterNumber',
type: 'type',
location: 'location',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.MeterReadingScalarFieldEnum = {
id: 'id',
meterId: 'meterId',
readingDate: 'readingDate',
value: 'value',
unit: 'unit',
notes: 'notes',
createdAt: 'createdAt'
};
exports.Prisma.SalesPlatformScalarFieldEnum = {
id: 'id',
name: 'name',
contactInfo: 'contactInfo',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.CancellationPeriodScalarFieldEnum = {
id: 'id',
code: 'code',
description: 'description',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.ContractDurationScalarFieldEnum = {
id: 'id',
code: 'code',
description: 'description',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.ProviderScalarFieldEnum = {
id: 'id',
name: 'name',
portalUrl: 'portalUrl',
usernameFieldName: 'usernameFieldName',
passwordFieldName: 'passwordFieldName',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.TariffScalarFieldEnum = {
id: 'id',
providerId: 'providerId',
name: 'name',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.ContractCategoryScalarFieldEnum = {
id: 'id',
code: 'code',
name: 'name',
icon: 'icon',
color: 'color',
sortOrder: 'sortOrder',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.ContractScalarFieldEnum = {
id: 'id',
contractNumber: 'contractNumber',
customerId: 'customerId',
type: 'type',
status: 'status',
contractCategoryId: 'contractCategoryId',
addressId: 'addressId',
billingAddressId: 'billingAddressId',
bankCardId: 'bankCardId',
identityDocumentId: 'identityDocumentId',
salesPlatformId: 'salesPlatformId',
cancellationPeriodId: 'cancellationPeriodId',
contractDurationId: 'contractDurationId',
previousContractId: 'previousContractId',
providerId: 'providerId',
tariffId: 'tariffId',
providerName: 'providerName',
tariffName: 'tariffName',
customerNumberAtProvider: 'customerNumberAtProvider',
priceFirst12Months: 'priceFirst12Months',
priceFrom13Months: 'priceFrom13Months',
priceAfter24Months: 'priceAfter24Months',
startDate: 'startDate',
endDate: 'endDate',
commission: 'commission',
cancellationLetterPath: 'cancellationLetterPath',
cancellationConfirmationPath: 'cancellationConfirmationPath',
cancellationLetterOptionsPath: 'cancellationLetterOptionsPath',
cancellationConfirmationOptionsPath: 'cancellationConfirmationOptionsPath',
cancellationConfirmationDate: 'cancellationConfirmationDate',
cancellationConfirmationOptionsDate: 'cancellationConfirmationOptionsDate',
wasSpecialCancellation: 'wasSpecialCancellation',
portalUsername: 'portalUsername',
portalPasswordEncrypted: 'portalPasswordEncrypted',
stressfreiEmailId: 'stressfreiEmailId',
nextReviewDate: 'nextReviewDate',
notes: 'notes',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.ContractTaskScalarFieldEnum = {
id: 'id',
contractId: 'contractId',
title: 'title',
description: 'description',
status: 'status',
visibleInPortal: 'visibleInPortal',
createdBy: 'createdBy',
completedAt: 'completedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.ContractTaskSubtaskScalarFieldEnum = {
id: 'id',
taskId: 'taskId',
title: 'title',
status: 'status',
createdBy: 'createdBy',
completedAt: 'completedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.EnergyContractDetailsScalarFieldEnum = {
id: 'id',
contractId: 'contractId',
meterId: 'meterId',
maloId: 'maloId',
annualConsumption: 'annualConsumption',
annualConsumptionKwh: 'annualConsumptionKwh',
basePrice: 'basePrice',
unitPrice: 'unitPrice',
bonus: 'bonus',
previousProviderName: 'previousProviderName',
previousCustomerNumber: 'previousCustomerNumber'
};
exports.Prisma.InvoiceScalarFieldEnum = {
id: 'id',
energyContractDetailsId: 'energyContractDetailsId',
invoiceDate: 'invoiceDate',
invoiceType: 'invoiceType',
documentPath: 'documentPath',
notes: 'notes',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.InternetContractDetailsScalarFieldEnum = {
id: 'id',
contractId: 'contractId',
downloadSpeed: 'downloadSpeed',
uploadSpeed: 'uploadSpeed',
routerModel: 'routerModel',
routerSerialNumber: 'routerSerialNumber',
installationDate: 'installationDate',
internetUsername: 'internetUsername',
internetPasswordEncrypted: 'internetPasswordEncrypted',
homeId: 'homeId',
activationCode: 'activationCode'
};
exports.Prisma.PhoneNumberScalarFieldEnum = {
id: 'id',
internetContractDetailsId: 'internetContractDetailsId',
phoneNumber: 'phoneNumber',
isMain: 'isMain',
sipUsername: 'sipUsername',
sipPasswordEncrypted: 'sipPasswordEncrypted',
sipServer: 'sipServer'
};
exports.Prisma.MobileContractDetailsScalarFieldEnum = {
id: 'id',
contractId: 'contractId',
requiresMultisim: 'requiresMultisim',
dataVolume: 'dataVolume',
includedMinutes: 'includedMinutes',
includedSMS: 'includedSMS',
deviceModel: 'deviceModel',
deviceImei: 'deviceImei',
phoneNumber: 'phoneNumber',
simCardNumber: 'simCardNumber'
};
exports.Prisma.SimCardScalarFieldEnum = {
id: 'id',
mobileDetailsId: 'mobileDetailsId',
phoneNumber: 'phoneNumber',
simCardNumber: 'simCardNumber',
pin: 'pin',
puk: 'puk',
isMultisim: 'isMultisim',
isMain: 'isMain',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.TvContractDetailsScalarFieldEnum = {
id: 'id',
contractId: 'contractId',
receiverModel: 'receiverModel',
smartcardNumber: 'smartcardNumber',
package: 'package'
};
exports.Prisma.CarInsuranceDetailsScalarFieldEnum = {
id: 'id',
contractId: 'contractId',
licensePlate: 'licensePlate',
hsn: 'hsn',
tsn: 'tsn',
vin: 'vin',
vehicleType: 'vehicleType',
firstRegistration: 'firstRegistration',
noClaimsClass: 'noClaimsClass',
insuranceType: 'insuranceType',
deductiblePartial: 'deductiblePartial',
deductibleFull: 'deductibleFull',
policyNumber: 'policyNumber',
previousInsurer: 'previousInsurer'
};
exports.Prisma.SortOrder = {
asc: 'asc',
desc: 'desc'
};
exports.Prisma.NullsOrder = {
first: 'first',
last: 'last'
};
exports.CustomerType = exports.$Enums.CustomerType = {
PRIVATE: 'PRIVATE',
BUSINESS: 'BUSINESS'
};
exports.AddressType = exports.$Enums.AddressType = {
DELIVERY_RESIDENCE: 'DELIVERY_RESIDENCE',
BILLING: 'BILLING'
};
exports.DocumentType = exports.$Enums.DocumentType = {
ID_CARD: 'ID_CARD',
PASSPORT: 'PASSPORT',
DRIVERS_LICENSE: 'DRIVERS_LICENSE',
OTHER: 'OTHER'
};
exports.EmailProviderType = exports.$Enums.EmailProviderType = {
PLESK: 'PLESK',
CPANEL: 'CPANEL',
DIRECTADMIN: 'DIRECTADMIN'
};
exports.MailEncryption = exports.$Enums.MailEncryption = {
SSL: 'SSL',
STARTTLS: 'STARTTLS',
NONE: 'NONE'
};
exports.EmailFolder = exports.$Enums.EmailFolder = {
INBOX: 'INBOX',
SENT: 'SENT'
};
exports.MeterType = exports.$Enums.MeterType = {
ELECTRICITY: 'ELECTRICITY',
GAS: 'GAS'
};
exports.ContractType = exports.$Enums.ContractType = {
ELECTRICITY: 'ELECTRICITY',
GAS: 'GAS',
DSL: 'DSL',
CABLE: 'CABLE',
FIBER: 'FIBER',
MOBILE: 'MOBILE',
TV: 'TV',
CAR_INSURANCE: 'CAR_INSURANCE'
};
exports.ContractStatus = exports.$Enums.ContractStatus = {
DRAFT: 'DRAFT',
PENDING: 'PENDING',
ACTIVE: 'ACTIVE',
CANCELLED: 'CANCELLED',
EXPIRED: 'EXPIRED',
DEACTIVATED: 'DEACTIVATED'
};
exports.ContractTaskStatus = exports.$Enums.ContractTaskStatus = {
OPEN: 'OPEN',
COMPLETED: 'COMPLETED'
};
exports.InvoiceType = exports.$Enums.InvoiceType = {
INTERIM: 'INTERIM',
FINAL: 'FINAL',
NOT_AVAILABLE: 'NOT_AVAILABLE'
};
exports.InsuranceType = exports.$Enums.InsuranceType = {
LIABILITY: 'LIABILITY',
PARTIAL: 'PARTIAL',
FULL: 'FULL'
};
exports.Prisma.ModelName = {
AppSetting: 'AppSetting',
User: 'User',
Role: 'Role',
Permission: 'Permission',
RolePermission: 'RolePermission',
UserRole: 'UserRole',
Customer: 'Customer',
CustomerRepresentative: 'CustomerRepresentative',
Address: 'Address',
BankCard: 'BankCard',
IdentityDocument: 'IdentityDocument',
EmailProviderConfig: 'EmailProviderConfig',
StressfreiEmail: 'StressfreiEmail',
CachedEmail: 'CachedEmail',
Meter: 'Meter',
MeterReading: 'MeterReading',
SalesPlatform: 'SalesPlatform',
CancellationPeriod: 'CancellationPeriod',
ContractDuration: 'ContractDuration',
Provider: 'Provider',
Tariff: 'Tariff',
ContractCategory: 'ContractCategory',
Contract: 'Contract',
ContractTask: 'ContractTask',
ContractTaskSubtask: 'ContractTaskSubtask',
EnergyContractDetails: 'EnergyContractDetails',
Invoice: 'Invoice',
InternetContractDetails: 'InternetContractDetails',
PhoneNumber: 'PhoneNumber',
MobileContractDetails: 'MobileContractDetails',
SimCard: 'SimCard',
TvContractDetails: 'TvContractDetails',
CarInsuranceDetails: 'CarInsuranceDetails'
};
/**
* This is a stub Prisma Client that will error at runtime if called.
*/
class PrismaClient {
constructor() {
return new Proxy(this, {
get(target, prop) {
let message
const runtime = getRuntime()
if (runtime.isEdge) {
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
- Use Prisma Accelerate: https://pris.ly/d/accelerate
- Use Driver Adapters: https://pris.ly/d/driver-adapters
`;
} else {
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
}
message += `
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
throw new Error(message)
}
})
}
}
exports.PrismaClient = PrismaClient
Object.assign(exports, Prisma)