976 lines
26 KiB
JavaScript
976 lines
26 KiB
JavaScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
/* eslint-disable */
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const {
|
|
Decimal,
|
|
objectEnumValues,
|
|
makeStrictEnum,
|
|
Public,
|
|
getRuntime,
|
|
skip
|
|
} = require('./runtime/index-browser.js')
|
|
|
|
|
|
const Prisma = {}
|
|
|
|
exports.Prisma = Prisma
|
|
exports.$Enums = {}
|
|
|
|
/**
|
|
* Prisma Client JS version: 6.13.0
|
|
* Query Engine version: 361e86d0ea4987e9f53a565309b3eed797a6bcbd
|
|
*/
|
|
Prisma.prismaVersion = {
|
|
client: "6.13.0",
|
|
engine: "361e86d0ea4987e9f53a565309b3eed797a6bcbd"
|
|
}
|
|
|
|
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.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.Alert_recipientsScalarFieldEnum = {
|
|
id: 'id',
|
|
alert_id: 'alert_id',
|
|
recipient_type: 'recipient_type',
|
|
recipient_id: 'recipient_id',
|
|
recipient_name: 'recipient_name',
|
|
recipient_contact: 'recipient_contact',
|
|
channel: 'channel',
|
|
delivery_status: 'delivery_status',
|
|
sent_at: 'sent_at',
|
|
delivered_at: 'delivered_at',
|
|
acknowledged_at: 'acknowledged_at',
|
|
failed_at: 'failed_at',
|
|
delivery_attempts: 'delivery_attempts',
|
|
last_attempt_at: 'last_attempt_at',
|
|
failure_reason: 'failure_reason',
|
|
delivery_metadata: 'delivery_metadata',
|
|
response_data: 'response_data',
|
|
response_time: 'response_time',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.AlertsScalarFieldEnum = {
|
|
id: 'id',
|
|
alert_id: 'alert_id',
|
|
title: 'title',
|
|
message: 'message',
|
|
type: 'type',
|
|
category: 'category',
|
|
severity: 'severity',
|
|
priority: 'priority',
|
|
status: 'status',
|
|
is_emergency: 'is_emergency',
|
|
is_broadcast: 'is_broadcast',
|
|
is_recurring: 'is_recurring',
|
|
location: 'location',
|
|
coordinates_lat: 'coordinates_lat',
|
|
coordinates_lng: 'coordinates_lng',
|
|
target_zones: 'target_zones',
|
|
target_buildings: 'target_buildings',
|
|
target_roles: 'target_roles',
|
|
target_teams: 'target_teams',
|
|
target_users: 'target_users',
|
|
geofence_ids: 'geofence_ids',
|
|
scheduled_at: 'scheduled_at',
|
|
starts_at: 'starts_at',
|
|
ends_at: 'ends_at',
|
|
expires_at: 'expires_at',
|
|
acknowledged_at: 'acknowledged_at',
|
|
resolved_at: 'resolved_at',
|
|
recurrence_pattern: 'recurrence_pattern',
|
|
next_occurrence: 'next_occurrence',
|
|
content: 'content',
|
|
attachments: 'attachments',
|
|
media_urls: 'media_urls',
|
|
action_buttons: 'action_buttons',
|
|
channels: 'channels',
|
|
delivery_config: 'delivery_config',
|
|
source: 'source',
|
|
source_id: 'source_id',
|
|
context: 'context',
|
|
incident_id: 'incident_id',
|
|
camera_ids: 'camera_ids',
|
|
related_alerts: 'related_alerts',
|
|
total_recipients: 'total_recipients',
|
|
delivered_count: 'delivered_count',
|
|
acknowledged_count: 'acknowledged_count',
|
|
failed_count: 'failed_count',
|
|
tags: 'tags',
|
|
metadata: 'metadata',
|
|
custom_fields: 'custom_fields',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
deleted_at: 'deleted_at',
|
|
deleted_by: 'deleted_by'
|
|
};
|
|
|
|
exports.Prisma.Basemap_configsScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
svg_data: 'svg_data',
|
|
calibration: 'calibration',
|
|
dimensions: 'dimensions',
|
|
is_active: 'is_active',
|
|
is_default: 'is_default',
|
|
version: 'version',
|
|
settings: 'settings',
|
|
metadata: 'metadata',
|
|
file_size: 'file_size',
|
|
checksum: 'checksum',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.Camera_health_logScalarFieldEnum = {
|
|
id: 'id',
|
|
camera_id: 'camera_id',
|
|
status: 'status',
|
|
response_time: 'response_time',
|
|
health_score: 'health_score',
|
|
error_message: 'error_message',
|
|
stream_accessible: 'stream_accessible',
|
|
timestamp: 'timestamp'
|
|
};
|
|
|
|
exports.Prisma.CamerasScalarFieldEnum = {
|
|
id: 'id',
|
|
label: 'label',
|
|
area: 'area',
|
|
lat: 'lat',
|
|
lng: 'lng',
|
|
stream_url: 'stream_url',
|
|
status: 'status',
|
|
last_heartbeat: 'last_heartbeat',
|
|
response_time: 'response_time',
|
|
health_score: 'health_score',
|
|
error_message: 'error_message',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Feature_flagsScalarFieldEnum = {
|
|
id: 'id',
|
|
key: 'key',
|
|
name: 'name',
|
|
description: 'description',
|
|
is_enabled: 'is_enabled',
|
|
type: 'type',
|
|
value: 'value',
|
|
default_value: 'default_value',
|
|
environment: 'environment',
|
|
category: 'category',
|
|
tags: 'tags',
|
|
conditions: 'conditions',
|
|
rollout_percentage: 'rollout_percentage',
|
|
user_segments: 'user_segments',
|
|
is_archived: 'is_archived',
|
|
is_permanent: 'is_permanent',
|
|
expires_at: 'expires_at',
|
|
last_evaluated_at: 'last_evaluated_at',
|
|
evaluation_count: 'evaluation_count',
|
|
metadata: 'metadata',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
enabled_at: 'enabled_at',
|
|
disabled_at: 'disabled_at'
|
|
};
|
|
|
|
exports.Prisma.Geofence_breachesScalarFieldEnum = {
|
|
id: 'id',
|
|
geofence_id: 'geofence_id',
|
|
team_member_id: 'team_member_id',
|
|
breach_type: 'breach_type',
|
|
location: 'location',
|
|
severity: 'severity',
|
|
is_resolved: 'is_resolved',
|
|
resolved_at: 'resolved_at',
|
|
resolved_by: 'resolved_by',
|
|
notes: 'notes',
|
|
metadata: 'metadata',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.GeofencesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
type: 'type',
|
|
coordinates: 'coordinates',
|
|
description: 'description',
|
|
is_active: 'is_active',
|
|
priority: 'priority',
|
|
notification_settings: 'notification_settings',
|
|
metadata: 'metadata',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.HousesScalarFieldEnum = {
|
|
id: 'id',
|
|
house_number: 'house_number',
|
|
block: 'block',
|
|
street: 'street',
|
|
owner_name: 'owner_name',
|
|
owner_phone: 'owner_phone',
|
|
status: 'status',
|
|
perumahan_id: 'perumahan_id',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Incident_updatesScalarFieldEnum = {
|
|
id: 'id',
|
|
incident_id: 'incident_id',
|
|
update_type: 'update_type',
|
|
title: 'title',
|
|
description: 'description',
|
|
old_values: 'old_values',
|
|
new_values: 'new_values',
|
|
changed_fields: 'changed_fields',
|
|
is_internal: 'is_internal',
|
|
is_system_generated: 'is_system_generated',
|
|
attachments: 'attachments',
|
|
created_at: 'created_at',
|
|
created_by: 'created_by',
|
|
notifications_sent: 'notifications_sent',
|
|
notification_status: 'notification_status'
|
|
};
|
|
|
|
exports.Prisma.IncidentsScalarFieldEnum = {
|
|
id: 'id',
|
|
incident_number: 'incident_number',
|
|
title: 'title',
|
|
description: 'description',
|
|
type: 'type',
|
|
severity: 'severity',
|
|
priority: 'priority',
|
|
status: 'status',
|
|
location: 'location',
|
|
coordinates_lat: 'coordinates_lat',
|
|
coordinates_lng: 'coordinates_lng',
|
|
address: 'address',
|
|
zone: 'zone',
|
|
building: 'building',
|
|
floor: 'floor',
|
|
room: 'room',
|
|
reported_by: 'reported_by',
|
|
reporter_name: 'reporter_name',
|
|
reporter_contact: 'reporter_contact',
|
|
reporter_type: 'reporter_type',
|
|
assigned_to: 'assigned_to',
|
|
assigned_team: 'assigned_team',
|
|
assigned_at: 'assigned_at',
|
|
occurred_at: 'occurred_at',
|
|
reported_at: 'reported_at',
|
|
acknowledged_at: 'acknowledged_at',
|
|
resolved_at: 'resolved_at',
|
|
closed_at: 'closed_at',
|
|
due_date: 'due_date',
|
|
tags: 'tags',
|
|
attachments: 'attachments',
|
|
evidence: 'evidence',
|
|
witnesses: 'witnesses',
|
|
related_incidents: 'related_incidents',
|
|
camera_ids: 'camera_ids',
|
|
geofence_id: 'geofence_id',
|
|
alert_id: 'alert_id',
|
|
metadata: 'metadata',
|
|
custom_fields: 'custom_fields',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
deleted_at: 'deleted_at',
|
|
deleted_by: 'deleted_by'
|
|
};
|
|
|
|
exports.Prisma.Ktp_validation_auditScalarFieldEnum = {
|
|
id: 'id',
|
|
ktp_data_id: 'ktp_data_id',
|
|
action: 'action',
|
|
old_values: 'old_values',
|
|
new_values: 'new_values',
|
|
performed_by: 'performed_by',
|
|
ip_address: 'ip_address',
|
|
user_agent: 'user_agent',
|
|
reason: 'reason',
|
|
created_at: 'created_at',
|
|
metadata: 'metadata'
|
|
};
|
|
|
|
exports.Prisma.Map_pinsScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
coordinates: 'coordinates',
|
|
title: 'title',
|
|
description: 'description',
|
|
status: 'status',
|
|
priority: 'priority',
|
|
icon_type: 'icon_type',
|
|
icon_color: 'icon_color',
|
|
size: 'size',
|
|
is_visible: 'is_visible',
|
|
is_clickable: 'is_clickable',
|
|
metadata: 'metadata',
|
|
alert_id: 'alert_id',
|
|
incident_id: 'incident_id',
|
|
team_member_id: 'team_member_id',
|
|
camera_id: 'camera_id',
|
|
geofence_id: 'geofence_id',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.Perumahan_facilitiesScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
type: 'type',
|
|
description: 'description',
|
|
location: 'location',
|
|
lat: 'lat',
|
|
lng: 'lng',
|
|
status: 'status',
|
|
operating_hours: 'operating_hours',
|
|
contact_info: 'contact_info',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Perumahan_infoScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
total_units: 'total_units',
|
|
clusters: 'clusters',
|
|
address: 'address',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Qr_codesScalarFieldEnum = {
|
|
id: 'id',
|
|
entry_point: 'entry_point',
|
|
qr_data: 'qr_data',
|
|
location_lat: 'location_lat',
|
|
location_lng: 'location_lng',
|
|
geofence_radius: 'geofence_radius',
|
|
is_active: 'is_active',
|
|
description: 'description',
|
|
max_daily_registrations: 'max_daily_registrations',
|
|
operating_hours: 'operating_hours',
|
|
security_level: 'security_level',
|
|
requires_approval: 'requires_approval',
|
|
auto_approve_roles: 'auto_approve_roles',
|
|
metadata: 'metadata',
|
|
last_used_at: 'last_used_at',
|
|
usage_count: 'usage_count',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Security_activitiesScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
ref_id: 'ref_id',
|
|
actor: 'actor',
|
|
note: 'note',
|
|
severity: 'severity',
|
|
timestamp: 'timestamp',
|
|
metadata: 'metadata',
|
|
source: 'source'
|
|
};
|
|
|
|
exports.Prisma.SequelizemetaScalarFieldEnum = {
|
|
name: 'name'
|
|
};
|
|
|
|
exports.Prisma.Team_location_historyScalarFieldEnum = {
|
|
id: 'id',
|
|
member_id: 'member_id',
|
|
location: 'location',
|
|
lat: 'lat',
|
|
lng: 'lng',
|
|
activity_type: 'activity_type',
|
|
timestamp: 'timestamp'
|
|
};
|
|
|
|
exports.Prisma.Team_membersScalarFieldEnum = {
|
|
id: 'id',
|
|
nama: 'nama',
|
|
role: 'role',
|
|
status: 'status',
|
|
phone: 'phone',
|
|
email: 'email',
|
|
current_location: 'current_location',
|
|
last_update: 'last_update',
|
|
shift_start: 'shift_start',
|
|
shift_end: 'shift_end',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Visitor_ktp_dataScalarFieldEnum = {
|
|
id: 'id',
|
|
visitor_registration_id: 'visitor_registration_id',
|
|
ktp_number: 'ktp_number',
|
|
full_name: 'full_name',
|
|
birth_date: 'birth_date',
|
|
birth_place: 'birth_place',
|
|
gender: 'gender',
|
|
address: 'address',
|
|
rt_rw: 'rt_rw',
|
|
kelurahan: 'kelurahan',
|
|
kecamatan: 'kecamatan',
|
|
religion: 'religion',
|
|
marital_status: 'marital_status',
|
|
occupation: 'occupation',
|
|
nationality: 'nationality',
|
|
ktp_photo_url: 'ktp_photo_url',
|
|
ktp_photo_hash: 'ktp_photo_hash',
|
|
validation_status: 'validation_status',
|
|
validation_confidence: 'validation_confidence',
|
|
validation_notes: 'validation_notes',
|
|
validated_by: 'validated_by',
|
|
validated_at: 'validated_at',
|
|
ocr_raw_data: 'ocr_raw_data',
|
|
manual_corrections: 'manual_corrections',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
exports.Prisma.Visitor_registrationsScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
phone: 'phone',
|
|
photo_url: 'photo_url',
|
|
purpose: 'purpose',
|
|
entry_point: 'entry_point',
|
|
location_lat: 'location_lat',
|
|
location_lng: 'location_lng',
|
|
qr_code_id: 'qr_code_id',
|
|
status: 'status',
|
|
approved_by: 'approved_by',
|
|
approved_at: 'approved_at',
|
|
rejected_by: 'rejected_by',
|
|
rejected_at: 'rejected_at',
|
|
rejection_reason: 'rejection_reason',
|
|
expires_at: 'expires_at',
|
|
checked_in_at: 'checked_in_at',
|
|
checked_out_at: 'checked_out_at',
|
|
metadata: 'metadata',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at',
|
|
location_address: 'location_address',
|
|
location_updated_at: 'location_updated_at'
|
|
};
|
|
|
|
exports.Prisma.SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueInput = {
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueFilter = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull,
|
|
AnyNull: Prisma.AnyNull
|
|
};
|
|
|
|
exports.Prisma.QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
};
|
|
|
|
exports.Prisma.NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
};
|
|
|
|
exports.Prisma.alert_recipientsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
alert_id: 'alert_id',
|
|
recipient_type: 'recipient_type',
|
|
recipient_id: 'recipient_id',
|
|
recipient_name: 'recipient_name',
|
|
channel: 'channel',
|
|
delivery_status: 'delivery_status',
|
|
failure_reason: 'failure_reason'
|
|
};
|
|
|
|
exports.Prisma.alertsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
alert_id: 'alert_id',
|
|
title: 'title',
|
|
message: 'message',
|
|
type: 'type',
|
|
category: 'category',
|
|
severity: 'severity',
|
|
priority: 'priority',
|
|
status: 'status',
|
|
source: 'source',
|
|
source_id: 'source_id',
|
|
incident_id: 'incident_id',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
deleted_by: 'deleted_by'
|
|
};
|
|
|
|
exports.Prisma.basemap_configsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
svg_data: 'svg_data',
|
|
checksum: 'checksum',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.camera_health_logOrderByRelevanceFieldEnum = {
|
|
camera_id: 'camera_id',
|
|
status: 'status',
|
|
error_message: 'error_message'
|
|
};
|
|
|
|
exports.Prisma.camerasOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
label: 'label',
|
|
area: 'area',
|
|
stream_url: 'stream_url',
|
|
error_message: 'error_message'
|
|
};
|
|
|
|
exports.Prisma.feature_flagsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
key: 'key',
|
|
name: 'name',
|
|
description: 'description',
|
|
type: 'type',
|
|
environment: 'environment',
|
|
category: 'category',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.geofence_breachesOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
geofence_id: 'geofence_id',
|
|
team_member_id: 'team_member_id',
|
|
breach_type: 'breach_type',
|
|
severity: 'severity',
|
|
resolved_by: 'resolved_by',
|
|
notes: 'notes'
|
|
};
|
|
|
|
exports.Prisma.geofencesOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
type: 'type',
|
|
description: 'description',
|
|
priority: 'priority',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.housesOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
house_number: 'house_number',
|
|
block: 'block',
|
|
street: 'street',
|
|
owner_name: 'owner_name',
|
|
owner_phone: 'owner_phone',
|
|
perumahan_id: 'perumahan_id'
|
|
};
|
|
|
|
exports.Prisma.incident_updatesOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
incident_id: 'incident_id',
|
|
update_type: 'update_type',
|
|
title: 'title',
|
|
description: 'description',
|
|
created_by: 'created_by',
|
|
notification_status: 'notification_status'
|
|
};
|
|
|
|
exports.Prisma.incidentsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
incident_number: 'incident_number',
|
|
title: 'title',
|
|
description: 'description',
|
|
type: 'type',
|
|
severity: 'severity',
|
|
priority: 'priority',
|
|
status: 'status',
|
|
address: 'address',
|
|
zone: 'zone',
|
|
building: 'building',
|
|
floor: 'floor',
|
|
room: 'room',
|
|
reported_by: 'reported_by',
|
|
reporter_name: 'reporter_name',
|
|
reporter_contact: 'reporter_contact',
|
|
reporter_type: 'reporter_type',
|
|
assigned_to: 'assigned_to',
|
|
assigned_team: 'assigned_team',
|
|
geofence_id: 'geofence_id',
|
|
alert_id: 'alert_id',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
deleted_by: 'deleted_by'
|
|
};
|
|
|
|
exports.Prisma.ktp_validation_auditOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
ktp_data_id: 'ktp_data_id',
|
|
performed_by: 'performed_by',
|
|
ip_address: 'ip_address',
|
|
user_agent: 'user_agent',
|
|
reason: 'reason'
|
|
};
|
|
|
|
exports.Prisma.map_pinsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
title: 'title',
|
|
description: 'description',
|
|
status: 'status',
|
|
priority: 'priority',
|
|
icon_type: 'icon_type',
|
|
icon_color: 'icon_color',
|
|
size: 'size',
|
|
alert_id: 'alert_id',
|
|
incident_id: 'incident_id',
|
|
team_member_id: 'team_member_id',
|
|
camera_id: 'camera_id',
|
|
geofence_id: 'geofence_id',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.perumahan_facilitiesOrderByRelevanceFieldEnum = {
|
|
name: 'name',
|
|
type: 'type',
|
|
description: 'description',
|
|
location: 'location'
|
|
};
|
|
|
|
exports.Prisma.perumahan_infoOrderByRelevanceFieldEnum = {
|
|
name: 'name',
|
|
address: 'address'
|
|
};
|
|
|
|
exports.Prisma.qr_codesOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
entry_point: 'entry_point',
|
|
qr_data: 'qr_data',
|
|
description: 'description',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
exports.Prisma.security_activitiesOrderByRelevanceFieldEnum = {
|
|
type: 'type',
|
|
ref_id: 'ref_id',
|
|
actor: 'actor',
|
|
note: 'note',
|
|
source: 'source'
|
|
};
|
|
|
|
exports.Prisma.sequelizemetaOrderByRelevanceFieldEnum = {
|
|
name: 'name'
|
|
};
|
|
|
|
exports.Prisma.team_location_historyOrderByRelevanceFieldEnum = {
|
|
member_id: 'member_id',
|
|
location: 'location',
|
|
activity_type: 'activity_type'
|
|
};
|
|
|
|
exports.Prisma.team_membersOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
nama: 'nama',
|
|
role: 'role',
|
|
phone: 'phone',
|
|
email: 'email',
|
|
current_location: 'current_location'
|
|
};
|
|
|
|
exports.Prisma.visitor_ktp_dataOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
visitor_registration_id: 'visitor_registration_id',
|
|
ktp_number: 'ktp_number',
|
|
full_name: 'full_name',
|
|
birth_place: 'birth_place',
|
|
address: 'address',
|
|
rt_rw: 'rt_rw',
|
|
kelurahan: 'kelurahan',
|
|
kecamatan: 'kecamatan',
|
|
religion: 'religion',
|
|
marital_status: 'marital_status',
|
|
occupation: 'occupation',
|
|
nationality: 'nationality',
|
|
ktp_photo_url: 'ktp_photo_url',
|
|
ktp_photo_hash: 'ktp_photo_hash',
|
|
validation_notes: 'validation_notes',
|
|
validated_by: 'validated_by'
|
|
};
|
|
|
|
exports.Prisma.visitor_registrationsOrderByRelevanceFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
phone: 'phone',
|
|
photo_url: 'photo_url',
|
|
purpose: 'purpose',
|
|
entry_point: 'entry_point',
|
|
qr_code_id: 'qr_code_id',
|
|
approved_by: 'approved_by',
|
|
rejected_by: 'rejected_by',
|
|
rejection_reason: 'rejection_reason',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by',
|
|
location_address: 'location_address'
|
|
};
|
|
exports.cameras_status = exports.$Enums.cameras_status = {
|
|
online: 'online',
|
|
offline: 'offline',
|
|
degraded: 'degraded',
|
|
error: 'error'
|
|
};
|
|
|
|
exports.houses_status = exports.$Enums.houses_status = {
|
|
active: 'active',
|
|
inactive: 'inactive'
|
|
};
|
|
|
|
exports.ktp_validation_audit_action = exports.$Enums.ktp_validation_audit_action = {
|
|
created: 'created',
|
|
updated: 'updated',
|
|
verified: 'verified',
|
|
rejected: 'rejected',
|
|
manual_override: 'manual_override',
|
|
duplicate_detected: 'duplicate_detected',
|
|
validation_error: 'validation_error',
|
|
manual_validation: 'manual_validation',
|
|
manual_validation_error: 'manual_validation_error'
|
|
};
|
|
|
|
exports.perumahan_facilities_status = exports.$Enums.perumahan_facilities_status = {
|
|
active: 'active',
|
|
inactive: 'inactive',
|
|
maintenance: 'maintenance'
|
|
};
|
|
|
|
exports.qr_codes_security_level = exports.$Enums.qr_codes_security_level = {
|
|
low: 'low',
|
|
medium: 'medium',
|
|
high: 'high',
|
|
restricted: 'restricted'
|
|
};
|
|
|
|
exports.security_activities_severity = exports.$Enums.security_activities_severity = {
|
|
INFO: 'INFO',
|
|
WARNING: 'WARNING',
|
|
ERROR: 'ERROR',
|
|
CRITICAL: 'CRITICAL'
|
|
};
|
|
|
|
exports.team_members_status = exports.$Enums.team_members_status = {
|
|
ON_DUTY: 'ON_DUTY',
|
|
OFF_DUTY: 'OFF_DUTY',
|
|
PATROLLING: 'PATROLLING',
|
|
BREAK: 'BREAK'
|
|
};
|
|
|
|
exports.visitor_ktp_data_gender = exports.$Enums.visitor_ktp_data_gender = {
|
|
L: 'L',
|
|
P: 'P'
|
|
};
|
|
|
|
exports.visitor_ktp_data_validation_status = exports.$Enums.visitor_ktp_data_validation_status = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
verified: 'verified',
|
|
rejected: 'rejected',
|
|
manual_review: 'manual_review'
|
|
};
|
|
|
|
exports.visitor_registrations_status = exports.$Enums.visitor_registrations_status = {
|
|
pending: 'pending',
|
|
approved: 'approved',
|
|
rejected: 'rejected',
|
|
expired: 'expired',
|
|
checked_in: 'checked_in',
|
|
checked_out: 'checked_out'
|
|
};
|
|
|
|
exports.Prisma.ModelName = {
|
|
alert_recipients: 'alert_recipients',
|
|
alerts: 'alerts',
|
|
basemap_configs: 'basemap_configs',
|
|
camera_health_log: 'camera_health_log',
|
|
cameras: 'cameras',
|
|
feature_flags: 'feature_flags',
|
|
geofence_breaches: 'geofence_breaches',
|
|
geofences: 'geofences',
|
|
houses: 'houses',
|
|
incident_updates: 'incident_updates',
|
|
incidents: 'incidents',
|
|
ktp_validation_audit: 'ktp_validation_audit',
|
|
map_pins: 'map_pins',
|
|
perumahan_facilities: 'perumahan_facilities',
|
|
perumahan_info: 'perumahan_info',
|
|
qr_codes: 'qr_codes',
|
|
security_activities: 'security_activities',
|
|
sequelizemeta: 'sequelizemeta',
|
|
team_location_history: 'team_location_history',
|
|
team_members: 'team_members',
|
|
visitor_ktp_data: 'visitor_ktp_data',
|
|
visitor_registrations: 'visitor_registrations'
|
|
};
|
|
|
|
/**
|
|
* 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)
|