41459 lines
1.6 MiB
41459 lines
1.6 MiB
|
|
/**
|
|
* Client
|
|
**/
|
|
|
|
import * as runtime from './runtime/library.js';
|
|
import $Types = runtime.Types // general types
|
|
import $Public = runtime.Types.Public
|
|
import $Utils = runtime.Types.Utils
|
|
import $Extensions = runtime.Types.Extensions
|
|
import $Result = runtime.Types.Result
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
|
|
/**
|
|
* Model alert_recipients
|
|
*
|
|
*/
|
|
export type alert_recipients = $Result.DefaultSelection<Prisma.$alert_recipientsPayload>
|
|
/**
|
|
* Model alerts
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type alerts = $Result.DefaultSelection<Prisma.$alertsPayload>
|
|
/**
|
|
* Model basemap_configs
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type basemap_configs = $Result.DefaultSelection<Prisma.$basemap_configsPayload>
|
|
/**
|
|
* Model camera_health_log
|
|
*
|
|
*/
|
|
export type camera_health_log = $Result.DefaultSelection<Prisma.$camera_health_logPayload>
|
|
/**
|
|
* Model cameras
|
|
*
|
|
*/
|
|
export type cameras = $Result.DefaultSelection<Prisma.$camerasPayload>
|
|
/**
|
|
* Model feature_flags
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type feature_flags = $Result.DefaultSelection<Prisma.$feature_flagsPayload>
|
|
/**
|
|
* Model geofence_breaches
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type geofence_breaches = $Result.DefaultSelection<Prisma.$geofence_breachesPayload>
|
|
/**
|
|
* Model geofences
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type geofences = $Result.DefaultSelection<Prisma.$geofencesPayload>
|
|
/**
|
|
* Model houses
|
|
*
|
|
*/
|
|
export type houses = $Result.DefaultSelection<Prisma.$housesPayload>
|
|
/**
|
|
* Model incident_updates
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type incident_updates = $Result.DefaultSelection<Prisma.$incident_updatesPayload>
|
|
/**
|
|
* Model incidents
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type incidents = $Result.DefaultSelection<Prisma.$incidentsPayload>
|
|
/**
|
|
* Model ktp_validation_audit
|
|
* This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
*/
|
|
export type ktp_validation_audit = $Result.DefaultSelection<Prisma.$ktp_validation_auditPayload>
|
|
/**
|
|
* Model map_pins
|
|
* This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
|
|
*/
|
|
export type map_pins = $Result.DefaultSelection<Prisma.$map_pinsPayload>
|
|
/**
|
|
* Model perumahan_facilities
|
|
*
|
|
*/
|
|
export type perumahan_facilities = $Result.DefaultSelection<Prisma.$perumahan_facilitiesPayload>
|
|
/**
|
|
* Model perumahan_info
|
|
*
|
|
*/
|
|
export type perumahan_info = $Result.DefaultSelection<Prisma.$perumahan_infoPayload>
|
|
/**
|
|
* Model qr_codes
|
|
*
|
|
*/
|
|
export type qr_codes = $Result.DefaultSelection<Prisma.$qr_codesPayload>
|
|
/**
|
|
* Model security_activities
|
|
*
|
|
*/
|
|
export type security_activities = $Result.DefaultSelection<Prisma.$security_activitiesPayload>
|
|
/**
|
|
* Model sequelizemeta
|
|
*
|
|
*/
|
|
export type sequelizemeta = $Result.DefaultSelection<Prisma.$sequelizemetaPayload>
|
|
/**
|
|
* Model team_location_history
|
|
*
|
|
*/
|
|
export type team_location_history = $Result.DefaultSelection<Prisma.$team_location_historyPayload>
|
|
/**
|
|
* Model team_members
|
|
*
|
|
*/
|
|
export type team_members = $Result.DefaultSelection<Prisma.$team_membersPayload>
|
|
/**
|
|
* Model visitor_ktp_data
|
|
*
|
|
*/
|
|
export type visitor_ktp_data = $Result.DefaultSelection<Prisma.$visitor_ktp_dataPayload>
|
|
/**
|
|
* Model visitor_registrations
|
|
*
|
|
*/
|
|
export type visitor_registrations = $Result.DefaultSelection<Prisma.$visitor_registrationsPayload>
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
export namespace $Enums {
|
|
export const 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'
|
|
};
|
|
|
|
export type ktp_validation_audit_action = (typeof ktp_validation_audit_action)[keyof typeof ktp_validation_audit_action]
|
|
|
|
|
|
export const team_members_status: {
|
|
ON_DUTY: 'ON_DUTY',
|
|
OFF_DUTY: 'OFF_DUTY',
|
|
PATROLLING: 'PATROLLING',
|
|
BREAK: 'BREAK'
|
|
};
|
|
|
|
export type team_members_status = (typeof team_members_status)[keyof typeof team_members_status]
|
|
|
|
|
|
export const security_activities_severity: {
|
|
INFO: 'INFO',
|
|
WARNING: 'WARNING',
|
|
ERROR: 'ERROR',
|
|
CRITICAL: 'CRITICAL'
|
|
};
|
|
|
|
export type security_activities_severity = (typeof security_activities_severity)[keyof typeof security_activities_severity]
|
|
|
|
|
|
export const cameras_status: {
|
|
online: 'online',
|
|
offline: 'offline',
|
|
degraded: 'degraded',
|
|
error: 'error'
|
|
};
|
|
|
|
export type cameras_status = (typeof cameras_status)[keyof typeof cameras_status]
|
|
|
|
|
|
export const houses_status: {
|
|
active: 'active',
|
|
inactive: 'inactive'
|
|
};
|
|
|
|
export type houses_status = (typeof houses_status)[keyof typeof houses_status]
|
|
|
|
|
|
export const visitor_ktp_data_gender: {
|
|
L: 'L',
|
|
P: 'P'
|
|
};
|
|
|
|
export type visitor_ktp_data_gender = (typeof visitor_ktp_data_gender)[keyof typeof visitor_ktp_data_gender]
|
|
|
|
|
|
export const perumahan_facilities_status: {
|
|
active: 'active',
|
|
inactive: 'inactive',
|
|
maintenance: 'maintenance'
|
|
};
|
|
|
|
export type perumahan_facilities_status = (typeof perumahan_facilities_status)[keyof typeof perumahan_facilities_status]
|
|
|
|
|
|
export const visitor_registrations_status: {
|
|
pending: 'pending',
|
|
approved: 'approved',
|
|
rejected: 'rejected',
|
|
expired: 'expired',
|
|
checked_in: 'checked_in',
|
|
checked_out: 'checked_out'
|
|
};
|
|
|
|
export type visitor_registrations_status = (typeof visitor_registrations_status)[keyof typeof visitor_registrations_status]
|
|
|
|
|
|
export const qr_codes_security_level: {
|
|
low: 'low',
|
|
medium: 'medium',
|
|
high: 'high',
|
|
restricted: 'restricted'
|
|
};
|
|
|
|
export type qr_codes_security_level = (typeof qr_codes_security_level)[keyof typeof qr_codes_security_level]
|
|
|
|
|
|
export const visitor_ktp_data_validation_status: {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
verified: 'verified',
|
|
rejected: 'rejected',
|
|
manual_review: 'manual_review'
|
|
};
|
|
|
|
export type visitor_ktp_data_validation_status = (typeof visitor_ktp_data_validation_status)[keyof typeof visitor_ktp_data_validation_status]
|
|
|
|
}
|
|
|
|
export type ktp_validation_audit_action = $Enums.ktp_validation_audit_action
|
|
|
|
export const ktp_validation_audit_action: typeof $Enums.ktp_validation_audit_action
|
|
|
|
export type team_members_status = $Enums.team_members_status
|
|
|
|
export const team_members_status: typeof $Enums.team_members_status
|
|
|
|
export type security_activities_severity = $Enums.security_activities_severity
|
|
|
|
export const security_activities_severity: typeof $Enums.security_activities_severity
|
|
|
|
export type cameras_status = $Enums.cameras_status
|
|
|
|
export const cameras_status: typeof $Enums.cameras_status
|
|
|
|
export type houses_status = $Enums.houses_status
|
|
|
|
export const houses_status: typeof $Enums.houses_status
|
|
|
|
export type visitor_ktp_data_gender = $Enums.visitor_ktp_data_gender
|
|
|
|
export const visitor_ktp_data_gender: typeof $Enums.visitor_ktp_data_gender
|
|
|
|
export type perumahan_facilities_status = $Enums.perumahan_facilities_status
|
|
|
|
export const perumahan_facilities_status: typeof $Enums.perumahan_facilities_status
|
|
|
|
export type visitor_registrations_status = $Enums.visitor_registrations_status
|
|
|
|
export const visitor_registrations_status: typeof $Enums.visitor_registrations_status
|
|
|
|
export type qr_codes_security_level = $Enums.qr_codes_security_level
|
|
|
|
export const qr_codes_security_level: typeof $Enums.qr_codes_security_level
|
|
|
|
export type visitor_ktp_data_validation_status = $Enums.visitor_ktp_data_validation_status
|
|
|
|
export const visitor_ktp_data_validation_status: typeof $Enums.visitor_ktp_data_validation_status
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
export class PrismaClient<
|
|
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
|
|
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
|
|
> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
|
|
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
|
|
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
|
|
/**
|
|
* Connect with the database
|
|
*/
|
|
$connect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Disconnect from the database
|
|
*/
|
|
$disconnect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Add a middleware
|
|
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
|
|
* @see https://pris.ly/d/extensions
|
|
*/
|
|
$use(cb: Prisma.Middleware): void
|
|
|
|
/**
|
|
* Executes a prepared raw query and returns the number of affected rows.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Executes a raw query and returns the number of affected rows.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Performs a prepared raw query and returns the `SELECT` data.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
/**
|
|
* Performs a raw query and returns the `SELECT` data.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
|
|
/**
|
|
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
* @example
|
|
* ```
|
|
* const [george, bob, alice] = await prisma.$transaction([
|
|
* prisma.user.create({ data: { name: 'George' } }),
|
|
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
* ])
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
*/
|
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
|
|
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
|
|
|
|
|
|
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
|
|
extArgs: ExtArgs
|
|
}>>
|
|
|
|
/**
|
|
* `prisma.alert_recipients`: Exposes CRUD operations for the **alert_recipients** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findMany()
|
|
* ```
|
|
*/
|
|
get alert_recipients(): Prisma.alert_recipientsDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.alerts`: Exposes CRUD operations for the **alerts** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Alerts
|
|
* const alerts = await prisma.alerts.findMany()
|
|
* ```
|
|
*/
|
|
get alerts(): Prisma.alertsDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.basemap_configs`: Exposes CRUD operations for the **basemap_configs** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findMany()
|
|
* ```
|
|
*/
|
|
get basemap_configs(): Prisma.basemap_configsDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.camera_health_log`: Exposes CRUD operations for the **camera_health_log** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Camera_health_logs
|
|
* const camera_health_logs = await prisma.camera_health_log.findMany()
|
|
* ```
|
|
*/
|
|
get camera_health_log(): Prisma.camera_health_logDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.cameras`: Exposes CRUD operations for the **cameras** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Cameras
|
|
* const cameras = await prisma.cameras.findMany()
|
|
* ```
|
|
*/
|
|
get cameras(): Prisma.camerasDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.feature_flags`: Exposes CRUD operations for the **feature_flags** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findMany()
|
|
* ```
|
|
*/
|
|
get feature_flags(): Prisma.feature_flagsDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.geofence_breaches`: Exposes CRUD operations for the **geofence_breaches** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findMany()
|
|
* ```
|
|
*/
|
|
get geofence_breaches(): Prisma.geofence_breachesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.geofences`: Exposes CRUD operations for the **geofences** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Geofences
|
|
* const geofences = await prisma.geofences.findMany()
|
|
* ```
|
|
*/
|
|
get geofences(): Prisma.geofencesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.houses`: Exposes CRUD operations for the **houses** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Houses
|
|
* const houses = await prisma.houses.findMany()
|
|
* ```
|
|
*/
|
|
get houses(): Prisma.housesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.incident_updates`: Exposes CRUD operations for the **incident_updates** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findMany()
|
|
* ```
|
|
*/
|
|
get incident_updates(): Prisma.incident_updatesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.incidents`: Exposes CRUD operations for the **incidents** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Incidents
|
|
* const incidents = await prisma.incidents.findMany()
|
|
* ```
|
|
*/
|
|
get incidents(): Prisma.incidentsDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.ktp_validation_audit`: Exposes CRUD operations for the **ktp_validation_audit** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Ktp_validation_audits
|
|
* const ktp_validation_audits = await prisma.ktp_validation_audit.findMany()
|
|
* ```
|
|
*/
|
|
get ktp_validation_audit(): Prisma.ktp_validation_auditDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.map_pins`: Exposes CRUD operations for the **map_pins** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Map_pins
|
|
* const map_pins = await prisma.map_pins.findMany()
|
|
* ```
|
|
*/
|
|
get map_pins(): Prisma.map_pinsDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.perumahan_facilities`: Exposes CRUD operations for the **perumahan_facilities** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findMany()
|
|
* ```
|
|
*/
|
|
get perumahan_facilities(): Prisma.perumahan_facilitiesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.perumahan_info`: Exposes CRUD operations for the **perumahan_info** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Perumahan_infos
|
|
* const perumahan_infos = await prisma.perumahan_info.findMany()
|
|
* ```
|
|
*/
|
|
get perumahan_info(): Prisma.perumahan_infoDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.qr_codes`: Exposes CRUD operations for the **qr_codes** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findMany()
|
|
* ```
|
|
*/
|
|
get qr_codes(): Prisma.qr_codesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.security_activities`: Exposes CRUD operations for the **security_activities** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Security_activities
|
|
* const security_activities = await prisma.security_activities.findMany()
|
|
* ```
|
|
*/
|
|
get security_activities(): Prisma.security_activitiesDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.sequelizemeta`: Exposes CRUD operations for the **sequelizemeta** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Sequelizemetas
|
|
* const sequelizemetas = await prisma.sequelizemeta.findMany()
|
|
* ```
|
|
*/
|
|
get sequelizemeta(): Prisma.sequelizemetaDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.team_location_history`: Exposes CRUD operations for the **team_location_history** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Team_location_histories
|
|
* const team_location_histories = await prisma.team_location_history.findMany()
|
|
* ```
|
|
*/
|
|
get team_location_history(): Prisma.team_location_historyDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.team_members`: Exposes CRUD operations for the **team_members** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Team_members
|
|
* const team_members = await prisma.team_members.findMany()
|
|
* ```
|
|
*/
|
|
get team_members(): Prisma.team_membersDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.visitor_ktp_data`: Exposes CRUD operations for the **visitor_ktp_data** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findMany()
|
|
* ```
|
|
*/
|
|
get visitor_ktp_data(): Prisma.visitor_ktp_dataDelegate<ExtArgs, ClientOptions>;
|
|
|
|
/**
|
|
* `prisma.visitor_registrations`: Exposes CRUD operations for the **visitor_registrations** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findMany()
|
|
* ```
|
|
*/
|
|
get visitor_registrations(): Prisma.visitor_registrationsDelegate<ExtArgs, ClientOptions>;
|
|
}
|
|
|
|
export namespace Prisma {
|
|
export import DMMF = runtime.DMMF
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
/**
|
|
* Validator
|
|
*/
|
|
export import validator = runtime.Public.validator
|
|
|
|
/**
|
|
* Prisma Errors
|
|
*/
|
|
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
|
|
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
|
|
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
|
|
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
|
|
export import PrismaClientValidationError = runtime.PrismaClientValidationError
|
|
|
|
/**
|
|
* Re-export of sql-template-tag
|
|
*/
|
|
export import sql = runtime.sqltag
|
|
export import empty = runtime.empty
|
|
export import join = runtime.join
|
|
export import raw = runtime.raw
|
|
export import Sql = runtime.Sql
|
|
|
|
|
|
|
|
/**
|
|
* Decimal.js
|
|
*/
|
|
export import Decimal = runtime.Decimal
|
|
|
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
|
|
/**
|
|
* Metrics
|
|
*/
|
|
export type Metrics = runtime.Metrics
|
|
export type Metric<T> = runtime.Metric<T>
|
|
export type MetricHistogram = runtime.MetricHistogram
|
|
export type MetricHistogramBucket = runtime.MetricHistogramBucket
|
|
|
|
/**
|
|
* Extensions
|
|
*/
|
|
export import Extension = $Extensions.UserArgs
|
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
|
export import Args = $Public.Args
|
|
export import Payload = $Public.Payload
|
|
export import Result = $Public.Result
|
|
export import Exact = $Public.Exact
|
|
|
|
/**
|
|
* Prisma Client JS version: 6.13.0
|
|
* Query Engine version: 361e86d0ea4987e9f53a565309b3eed797a6bcbd
|
|
*/
|
|
export type PrismaVersion = {
|
|
client: string
|
|
}
|
|
|
|
export const prismaVersion: PrismaVersion
|
|
|
|
/**
|
|
* Utility Types
|
|
*/
|
|
|
|
|
|
export import JsonObject = runtime.JsonObject
|
|
export import JsonArray = runtime.JsonArray
|
|
export import JsonValue = runtime.JsonValue
|
|
export import InputJsonObject = runtime.InputJsonObject
|
|
export import InputJsonArray = runtime.InputJsonArray
|
|
export import InputJsonValue = runtime.InputJsonValue
|
|
|
|
/**
|
|
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
namespace NullTypes {
|
|
/**
|
|
* Type of `Prisma.DbNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class DbNull {
|
|
private DbNull: never
|
|
private constructor()
|
|
}
|
|
|
|
/**
|
|
* Type of `Prisma.JsonNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class JsonNull {
|
|
private JsonNull: never
|
|
private constructor()
|
|
}
|
|
|
|
/**
|
|
* Type of `Prisma.AnyNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class AnyNull {
|
|
private AnyNull: never
|
|
private constructor()
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull: NullTypes.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull: NullTypes.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull: NullTypes.AnyNull
|
|
|
|
type SelectAndInclude = {
|
|
select: any
|
|
include: any
|
|
}
|
|
|
|
type SelectAndOmit = {
|
|
select: any
|
|
omit: any
|
|
}
|
|
|
|
/**
|
|
* Get the type of the value, that the Promise holds.
|
|
*/
|
|
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
|
|
|
|
/**
|
|
* Get the return type of a function which returns a Promise.
|
|
*/
|
|
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
|
|
|
|
/**
|
|
* From T, pick a set of properties whose keys are in the union K
|
|
*/
|
|
type Prisma__Pick<T, K extends keyof T> = {
|
|
[P in K]: T[P];
|
|
};
|
|
|
|
|
|
export type Enumerable<T> = T | Array<T>;
|
|
|
|
export type RequiredKeys<T> = {
|
|
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
|
|
}[keyof T]
|
|
|
|
export type TruthyKeys<T> = keyof {
|
|
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
|
|
}
|
|
|
|
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
|
|
|
|
/**
|
|
* Subset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
|
|
*/
|
|
export type Subset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
};
|
|
|
|
/**
|
|
* SelectSubset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
|
* Additionally, it validates, if both select and include are present. If the case, it errors.
|
|
*/
|
|
export type SelectSubset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
(T extends SelectAndInclude
|
|
? 'Please either choose `select` or `include`.'
|
|
: T extends SelectAndOmit
|
|
? 'Please either choose `select` or `omit`.'
|
|
: {})
|
|
|
|
/**
|
|
* Subset + Intersection
|
|
* @desc From `T` pick properties that exist in `U` and intersect `K`
|
|
*/
|
|
export type SubsetIntersection<T, U, K> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
K
|
|
|
|
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
|
|
/**
|
|
* XOR is needed to have a real mutually exclusive union type
|
|
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
*/
|
|
type XOR<T, U> =
|
|
T extends object ?
|
|
U extends object ?
|
|
(Without<T, U> & U) | (Without<U, T> & T)
|
|
: U : T
|
|
|
|
|
|
/**
|
|
* Is T a Record?
|
|
*/
|
|
type IsObject<T extends any> = T extends Array<any>
|
|
? False
|
|
: T extends Date
|
|
? False
|
|
: T extends Uint8Array
|
|
? False
|
|
: T extends BigInt
|
|
? False
|
|
: T extends object
|
|
? True
|
|
: False
|
|
|
|
|
|
/**
|
|
* If it's T[], return T
|
|
*/
|
|
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
|
|
|
|
/**
|
|
* From ts-toolbelt
|
|
*/
|
|
|
|
type __Either<O extends object, K extends Key> = Omit<O, K> &
|
|
{
|
|
// Merge all but K
|
|
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
|
|
}[K]
|
|
|
|
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
|
|
|
|
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
|
|
|
|
type _Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean
|
|
> = {
|
|
1: EitherStrict<O, K>
|
|
0: EitherLoose<O, K>
|
|
}[strict]
|
|
|
|
type Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean = 1
|
|
> = O extends unknown ? _Either<O, K, strict> : never
|
|
|
|
export type Union = any
|
|
|
|
type PatchUndefined<O extends object, O1 extends object> = {
|
|
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
|
|
} & {}
|
|
|
|
/** Helper Types for "Merge" **/
|
|
export type IntersectOf<U extends Union> = (
|
|
U extends unknown ? (k: U) => void : never
|
|
) extends (k: infer I) => void
|
|
? I
|
|
: never
|
|
|
|
export type Overwrite<O extends object, O1 extends object> = {
|
|
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
} & {};
|
|
|
|
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
[K in keyof U]-?: At<U, K>;
|
|
}>>;
|
|
|
|
type Key = string | number | symbol;
|
|
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
|
|
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
1: AtStrict<O, K>;
|
|
0: AtLoose<O, K>;
|
|
}[strict];
|
|
|
|
export type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
[K in keyof A]: A[K];
|
|
} & {};
|
|
|
|
export type OptionalFlat<O> = {
|
|
[K in keyof O]?: O[K];
|
|
} & {};
|
|
|
|
type _Record<K extends keyof any, T> = {
|
|
[P in K]: T;
|
|
};
|
|
|
|
// cause typescript not to expand types and preserve names
|
|
type NoExpand<T> = T extends unknown ? T : never;
|
|
|
|
// this type assumes the passed object is entirely optional
|
|
type AtLeast<O extends object, K extends string> = NoExpand<
|
|
O extends unknown
|
|
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
|
|
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
|
|
: never>;
|
|
|
|
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
|
|
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
/** End Helper Types for "Merge" **/
|
|
|
|
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
|
|
/**
|
|
A [[Boolean]]
|
|
*/
|
|
export type Boolean = True | False
|
|
|
|
// /**
|
|
// 1
|
|
// */
|
|
export type True = 1
|
|
|
|
/**
|
|
0
|
|
*/
|
|
export type False = 0
|
|
|
|
export type Not<B extends Boolean> = {
|
|
0: 1
|
|
1: 0
|
|
}[B]
|
|
|
|
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
|
|
? 0 // anything `never` is false
|
|
: A1 extends A2
|
|
? 1
|
|
: 0
|
|
|
|
export type Has<U extends Union, U1 extends Union> = Not<
|
|
Extends<Exclude<U1, U>, U1>
|
|
>
|
|
|
|
export type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
0: {
|
|
0: 0
|
|
1: 1
|
|
}
|
|
1: {
|
|
0: 1
|
|
1: 1
|
|
}
|
|
}[B1][B2]
|
|
|
|
export type Keys<U extends Union> = U extends unknown ? keyof U : never
|
|
|
|
type Cast<A, B> = A extends B ? A : B;
|
|
|
|
export const type: unique symbol;
|
|
|
|
|
|
|
|
/**
|
|
* Used by group by
|
|
*/
|
|
|
|
export type GetScalarType<T, O> = O extends object ? {
|
|
[P in keyof T]: P extends keyof O
|
|
? O[P]
|
|
: never
|
|
} : never
|
|
|
|
type FieldPaths<
|
|
T,
|
|
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
|
|
> = IsObject<T> extends True ? U : T
|
|
|
|
type GetHavingFields<T> = {
|
|
[K in keyof T]: Or<
|
|
Or<Extends<'OR', K>, Extends<'AND', K>>,
|
|
Extends<'NOT', K>
|
|
> extends True
|
|
? // infer is only needed to not hit TS limit
|
|
// based on the brilliant idea of Pierre-Antoine Mills
|
|
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
|
|
T[K] extends infer TK
|
|
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
|
|
: never
|
|
: {} extends FieldPaths<T[K]>
|
|
? never
|
|
: K
|
|
}[keyof T]
|
|
|
|
/**
|
|
* Convert tuple to union
|
|
*/
|
|
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
|
|
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
|
|
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
|
|
|
|
/**
|
|
* Like `Pick`, but additionally can also accept an array of keys
|
|
*/
|
|
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
|
|
|
|
/**
|
|
* Exclude all keys with underscores
|
|
*/
|
|
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
|
|
|
|
|
|
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
|
|
|
|
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
|
|
export type Datasources = {
|
|
db_utility?: Datasource
|
|
}
|
|
|
|
interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
|
|
returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
|
|
}
|
|
|
|
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
|
|
globalOmitOptions: {
|
|
omit: GlobalOmitOptions
|
|
}
|
|
meta: {
|
|
modelProps: "alert_recipients" | "alerts" | "basemap_configs" | "camera_health_log" | "cameras" | "feature_flags" | "geofence_breaches" | "geofences" | "houses" | "incident_updates" | "incidents" | "ktp_validation_audit" | "map_pins" | "perumahan_facilities" | "perumahan_info" | "qr_codes" | "security_activities" | "sequelizemeta" | "team_location_history" | "team_members" | "visitor_ktp_data" | "visitor_registrations"
|
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
}
|
|
model: {
|
|
alert_recipients: {
|
|
payload: Prisma.$alert_recipientsPayload<ExtArgs>
|
|
fields: Prisma.alert_recipientsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.alert_recipientsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.alert_recipientsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.alert_recipientsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.alert_recipientsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.alert_recipientsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.alert_recipientsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.alert_recipientsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.alert_recipientsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.alert_recipientsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.alert_recipientsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.alert_recipientsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.alert_recipientsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alert_recipientsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Alert_recipientsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAlert_recipients>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.alert_recipientsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Alert_recipientsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.alert_recipientsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Alert_recipientsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
alerts: {
|
|
payload: Prisma.$alertsPayload<ExtArgs>
|
|
fields: Prisma.alertsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.alertsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.alertsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.alertsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.alertsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.alertsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.alertsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.alertsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.alertsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.alertsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.alertsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.alertsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.alertsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$alertsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AlertsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAlerts>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.alertsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AlertsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.alertsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AlertsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
basemap_configs: {
|
|
payload: Prisma.$basemap_configsPayload<ExtArgs>
|
|
fields: Prisma.basemap_configsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.basemap_configsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.basemap_configsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.basemap_configsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.basemap_configsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.basemap_configsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.basemap_configsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.basemap_configsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.basemap_configsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.basemap_configsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.basemap_configsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.basemap_configsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.basemap_configsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$basemap_configsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Basemap_configsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateBasemap_configs>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.basemap_configsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Basemap_configsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.basemap_configsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Basemap_configsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
camera_health_log: {
|
|
payload: Prisma.$camera_health_logPayload<ExtArgs>
|
|
fields: Prisma.camera_health_logFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.camera_health_logFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.camera_health_logFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.camera_health_logFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.camera_health_logFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.camera_health_logFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.camera_health_logCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.camera_health_logCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.camera_health_logDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.camera_health_logUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.camera_health_logDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.camera_health_logUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.camera_health_logUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camera_health_logPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Camera_health_logAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCamera_health_log>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.camera_health_logGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Camera_health_logGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.camera_health_logCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Camera_health_logCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
cameras: {
|
|
payload: Prisma.$camerasPayload<ExtArgs>
|
|
fields: Prisma.camerasFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.camerasFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.camerasFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.camerasFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.camerasFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.camerasFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.camerasCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.camerasCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.camerasDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.camerasUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.camerasDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.camerasUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.camerasUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$camerasPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CamerasAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCameras>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.camerasGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CamerasGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.camerasCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CamerasCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
feature_flags: {
|
|
payload: Prisma.$feature_flagsPayload<ExtArgs>
|
|
fields: Prisma.feature_flagsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.feature_flagsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.feature_flagsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.feature_flagsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.feature_flagsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.feature_flagsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.feature_flagsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.feature_flagsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.feature_flagsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.feature_flagsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.feature_flagsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.feature_flagsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.feature_flagsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$feature_flagsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Feature_flagsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateFeature_flags>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.feature_flagsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Feature_flagsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.feature_flagsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Feature_flagsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
geofence_breaches: {
|
|
payload: Prisma.$geofence_breachesPayload<ExtArgs>
|
|
fields: Prisma.geofence_breachesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.geofence_breachesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.geofence_breachesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.geofence_breachesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.geofence_breachesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.geofence_breachesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.geofence_breachesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.geofence_breachesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.geofence_breachesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.geofence_breachesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.geofence_breachesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.geofence_breachesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.geofence_breachesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofence_breachesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Geofence_breachesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateGeofence_breaches>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.geofence_breachesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Geofence_breachesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.geofence_breachesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Geofence_breachesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
geofences: {
|
|
payload: Prisma.$geofencesPayload<ExtArgs>
|
|
fields: Prisma.geofencesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.geofencesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.geofencesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.geofencesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.geofencesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.geofencesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.geofencesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.geofencesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.geofencesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.geofencesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.geofencesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.geofencesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.geofencesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$geofencesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.GeofencesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateGeofences>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.geofencesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<GeofencesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.geofencesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<GeofencesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
houses: {
|
|
payload: Prisma.$housesPayload<ExtArgs>
|
|
fields: Prisma.housesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.housesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.housesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.housesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.housesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.housesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.housesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.housesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.housesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.housesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.housesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.housesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.housesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$housesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.HousesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateHouses>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.housesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<HousesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.housesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<HousesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
incident_updates: {
|
|
payload: Prisma.$incident_updatesPayload<ExtArgs>
|
|
fields: Prisma.incident_updatesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.incident_updatesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.incident_updatesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.incident_updatesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.incident_updatesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.incident_updatesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.incident_updatesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.incident_updatesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.incident_updatesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.incident_updatesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.incident_updatesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.incident_updatesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.incident_updatesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incident_updatesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Incident_updatesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateIncident_updates>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.incident_updatesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Incident_updatesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.incident_updatesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Incident_updatesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
incidents: {
|
|
payload: Prisma.$incidentsPayload<ExtArgs>
|
|
fields: Prisma.incidentsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.incidentsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.incidentsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.incidentsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.incidentsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.incidentsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.incidentsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.incidentsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.incidentsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.incidentsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.incidentsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.incidentsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.incidentsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$incidentsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.IncidentsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateIncidents>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.incidentsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<IncidentsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.incidentsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<IncidentsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ktp_validation_audit: {
|
|
payload: Prisma.$ktp_validation_auditPayload<ExtArgs>
|
|
fields: Prisma.ktp_validation_auditFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ktp_validation_auditFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ktp_validation_auditFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ktp_validation_auditFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ktp_validation_auditFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ktp_validation_auditFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ktp_validation_auditCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ktp_validation_auditCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.ktp_validation_auditDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ktp_validation_auditUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ktp_validation_auditDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ktp_validation_auditUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ktp_validation_auditUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ktp_validation_auditPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Ktp_validation_auditAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateKtp_validation_audit>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ktp_validation_auditGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Ktp_validation_auditGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ktp_validation_auditCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Ktp_validation_auditCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
map_pins: {
|
|
payload: Prisma.$map_pinsPayload<ExtArgs>
|
|
fields: Prisma.map_pinsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.map_pinsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.map_pinsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.map_pinsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.map_pinsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.map_pinsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.map_pinsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.map_pinsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.map_pinsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.map_pinsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.map_pinsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.map_pinsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.map_pinsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$map_pinsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Map_pinsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateMap_pins>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.map_pinsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Map_pinsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.map_pinsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Map_pinsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
perumahan_facilities: {
|
|
payload: Prisma.$perumahan_facilitiesPayload<ExtArgs>
|
|
fields: Prisma.perumahan_facilitiesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.perumahan_facilitiesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.perumahan_facilitiesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.perumahan_facilitiesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.perumahan_facilitiesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.perumahan_facilitiesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.perumahan_facilitiesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.perumahan_facilitiesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.perumahan_facilitiesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.perumahan_facilitiesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.perumahan_facilitiesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.perumahan_facilitiesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.perumahan_facilitiesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_facilitiesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Perumahan_facilitiesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePerumahan_facilities>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.perumahan_facilitiesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Perumahan_facilitiesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.perumahan_facilitiesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Perumahan_facilitiesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
perumahan_info: {
|
|
payload: Prisma.$perumahan_infoPayload<ExtArgs>
|
|
fields: Prisma.perumahan_infoFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.perumahan_infoFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.perumahan_infoFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.perumahan_infoFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.perumahan_infoFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.perumahan_infoFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.perumahan_infoCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.perumahan_infoCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.perumahan_infoDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.perumahan_infoUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.perumahan_infoDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.perumahan_infoUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.perumahan_infoUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$perumahan_infoPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Perumahan_infoAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePerumahan_info>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.perumahan_infoGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Perumahan_infoGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.perumahan_infoCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Perumahan_infoCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
qr_codes: {
|
|
payload: Prisma.$qr_codesPayload<ExtArgs>
|
|
fields: Prisma.qr_codesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.qr_codesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.qr_codesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.qr_codesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.qr_codesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.qr_codesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.qr_codesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.qr_codesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.qr_codesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.qr_codesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.qr_codesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.qr_codesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.qr_codesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$qr_codesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Qr_codesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateQr_codes>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.qr_codesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Qr_codesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.qr_codesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Qr_codesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
security_activities: {
|
|
payload: Prisma.$security_activitiesPayload<ExtArgs>
|
|
fields: Prisma.security_activitiesFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.security_activitiesFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.security_activitiesFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.security_activitiesFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.security_activitiesFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.security_activitiesFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.security_activitiesCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.security_activitiesCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.security_activitiesDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.security_activitiesUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.security_activitiesDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.security_activitiesUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.security_activitiesUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$security_activitiesPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Security_activitiesAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSecurity_activities>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.security_activitiesGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Security_activitiesGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.security_activitiesCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Security_activitiesCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
sequelizemeta: {
|
|
payload: Prisma.$sequelizemetaPayload<ExtArgs>
|
|
fields: Prisma.sequelizemetaFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.sequelizemetaFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.sequelizemetaFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.sequelizemetaFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.sequelizemetaFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.sequelizemetaFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.sequelizemetaCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.sequelizemetaCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.sequelizemetaDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.sequelizemetaUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.sequelizemetaDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.sequelizemetaUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.sequelizemetaUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$sequelizemetaPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SequelizemetaAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSequelizemeta>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.sequelizemetaGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SequelizemetaGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.sequelizemetaCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SequelizemetaCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
team_location_history: {
|
|
payload: Prisma.$team_location_historyPayload<ExtArgs>
|
|
fields: Prisma.team_location_historyFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.team_location_historyFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.team_location_historyFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.team_location_historyFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.team_location_historyFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.team_location_historyFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.team_location_historyCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.team_location_historyCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.team_location_historyDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.team_location_historyUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.team_location_historyDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.team_location_historyUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.team_location_historyUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_location_historyPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Team_location_historyAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateTeam_location_history>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.team_location_historyGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Team_location_historyGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.team_location_historyCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Team_location_historyCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
team_members: {
|
|
payload: Prisma.$team_membersPayload<ExtArgs>
|
|
fields: Prisma.team_membersFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.team_membersFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.team_membersFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.team_membersFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.team_membersFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.team_membersFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.team_membersCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.team_membersCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.team_membersDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.team_membersUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.team_membersDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.team_membersUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.team_membersUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$team_membersPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Team_membersAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateTeam_members>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.team_membersGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Team_membersGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.team_membersCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Team_membersCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
visitor_ktp_data: {
|
|
payload: Prisma.$visitor_ktp_dataPayload<ExtArgs>
|
|
fields: Prisma.visitor_ktp_dataFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.visitor_ktp_dataFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.visitor_ktp_dataFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.visitor_ktp_dataFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.visitor_ktp_dataFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.visitor_ktp_dataFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.visitor_ktp_dataCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.visitor_ktp_dataCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.visitor_ktp_dataDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.visitor_ktp_dataUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.visitor_ktp_dataDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.visitor_ktp_dataUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.visitor_ktp_dataUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_ktp_dataPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Visitor_ktp_dataAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateVisitor_ktp_data>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.visitor_ktp_dataGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Visitor_ktp_dataGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.visitor_ktp_dataCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Visitor_ktp_dataCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
visitor_registrations: {
|
|
payload: Prisma.$visitor_registrationsPayload<ExtArgs>
|
|
fields: Prisma.visitor_registrationsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.visitor_registrationsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.visitor_registrationsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.visitor_registrationsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.visitor_registrationsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.visitor_registrationsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.visitor_registrationsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.visitor_registrationsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
delete: {
|
|
args: Prisma.visitor_registrationsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.visitor_registrationsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.visitor_registrationsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.visitor_registrationsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.visitor_registrationsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$visitor_registrationsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.Visitor_registrationsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateVisitor_registrations>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.visitor_registrationsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<Visitor_registrationsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.visitor_registrationsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<Visitor_registrationsCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} & {
|
|
other: {
|
|
payload: any
|
|
operations: {
|
|
$executeRaw: {
|
|
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
result: any
|
|
}
|
|
$executeRawUnsafe: {
|
|
args: [query: string, ...values: any[]],
|
|
result: any
|
|
}
|
|
$queryRaw: {
|
|
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
result: any
|
|
}
|
|
$queryRawUnsafe: {
|
|
args: [query: string, ...values: any[]],
|
|
result: any
|
|
}
|
|
}
|
|
}
|
|
}
|
|
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
|
|
export type DefaultPrismaClient = PrismaClient
|
|
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
|
export interface PrismaClientOptions {
|
|
/**
|
|
* Overwrites the datasource url from your schema.prisma file
|
|
*/
|
|
datasources?: Datasources
|
|
/**
|
|
* Overwrites the datasource url from your schema.prisma file
|
|
*/
|
|
datasourceUrl?: string
|
|
/**
|
|
* @default "colorless"
|
|
*/
|
|
errorFormat?: ErrorFormat
|
|
/**
|
|
* @example
|
|
* ```
|
|
* // Shorthand for `emit: 'stdout'`
|
|
* log: ['query', 'info', 'warn', 'error']
|
|
*
|
|
* // Emit as events only
|
|
* log: [
|
|
* { emit: 'event', level: 'query' },
|
|
* { emit: 'event', level: 'info' },
|
|
* { emit: 'event', level: 'warn' }
|
|
* { emit: 'event', level: 'error' }
|
|
* ]
|
|
*
|
|
* / Emit as events and log to stdout
|
|
* og: [
|
|
* { emit: 'stdout', level: 'query' },
|
|
* { emit: 'stdout', level: 'info' },
|
|
* { emit: 'stdout', level: 'warn' }
|
|
* { emit: 'stdout', level: 'error' }
|
|
*
|
|
* ```
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
*/
|
|
log?: (LogLevel | LogDefinition)[]
|
|
/**
|
|
* The default values for transactionOptions
|
|
* maxWait ?= 2000
|
|
* timeout ?= 5000
|
|
*/
|
|
transactionOptions?: {
|
|
maxWait?: number
|
|
timeout?: number
|
|
isolationLevel?: Prisma.TransactionIsolationLevel
|
|
}
|
|
/**
|
|
* Global configuration for omitting model fields by default.
|
|
*
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient({
|
|
* omit: {
|
|
* user: {
|
|
* password: true
|
|
* }
|
|
* }
|
|
* })
|
|
* ```
|
|
*/
|
|
omit?: Prisma.GlobalOmitConfig
|
|
}
|
|
export type GlobalOmitConfig = {
|
|
alert_recipients?: alert_recipientsOmit
|
|
alerts?: alertsOmit
|
|
basemap_configs?: basemap_configsOmit
|
|
camera_health_log?: camera_health_logOmit
|
|
cameras?: camerasOmit
|
|
feature_flags?: feature_flagsOmit
|
|
geofence_breaches?: geofence_breachesOmit
|
|
geofences?: geofencesOmit
|
|
houses?: housesOmit
|
|
incident_updates?: incident_updatesOmit
|
|
incidents?: incidentsOmit
|
|
ktp_validation_audit?: ktp_validation_auditOmit
|
|
map_pins?: map_pinsOmit
|
|
perumahan_facilities?: perumahan_facilitiesOmit
|
|
perumahan_info?: perumahan_infoOmit
|
|
qr_codes?: qr_codesOmit
|
|
security_activities?: security_activitiesOmit
|
|
sequelizemeta?: sequelizemetaOmit
|
|
team_location_history?: team_location_historyOmit
|
|
team_members?: team_membersOmit
|
|
visitor_ktp_data?: visitor_ktp_dataOmit
|
|
visitor_registrations?: visitor_registrationsOmit
|
|
}
|
|
|
|
/* Types for Logging */
|
|
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
|
|
export type LogDefinition = {
|
|
level: LogLevel
|
|
emit: 'stdout' | 'event'
|
|
}
|
|
|
|
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
|
|
export type GetLogType<T> = CheckIsLogLevel<
|
|
T extends LogDefinition ? T['level'] : T
|
|
>;
|
|
|
|
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
|
|
? GetLogType<T[number]>
|
|
: never;
|
|
|
|
export type QueryEvent = {
|
|
timestamp: Date
|
|
query: string
|
|
params: string
|
|
duration: number
|
|
target: string
|
|
}
|
|
|
|
export type LogEvent = {
|
|
timestamp: Date
|
|
message: string
|
|
target: string
|
|
}
|
|
/* End Types for Logging */
|
|
|
|
|
|
export type PrismaAction =
|
|
| 'findUnique'
|
|
| 'findUniqueOrThrow'
|
|
| 'findMany'
|
|
| 'findFirst'
|
|
| 'findFirstOrThrow'
|
|
| 'create'
|
|
| 'createMany'
|
|
| 'createManyAndReturn'
|
|
| 'update'
|
|
| 'updateMany'
|
|
| 'updateManyAndReturn'
|
|
| 'upsert'
|
|
| 'delete'
|
|
| 'deleteMany'
|
|
| 'executeRaw'
|
|
| 'queryRaw'
|
|
| 'aggregate'
|
|
| 'count'
|
|
| 'runCommandRaw'
|
|
| 'findRaw'
|
|
| 'groupBy'
|
|
|
|
/**
|
|
* These options are being passed into the middleware as "params"
|
|
*/
|
|
export type MiddlewareParams = {
|
|
model?: ModelName
|
|
action: PrismaAction
|
|
args: any
|
|
dataPath: string[]
|
|
runInTransaction: boolean
|
|
}
|
|
|
|
/**
|
|
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
|
|
*/
|
|
export type Middleware<T = any> = (
|
|
params: MiddlewareParams,
|
|
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
|
|
) => $Utils.JsPromise<T>
|
|
|
|
// tested in getLogLevel.test.ts
|
|
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
|
|
|
|
/**
|
|
* `PrismaClient` proxy available in interactive transactions.
|
|
*/
|
|
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
|
|
|
|
export type Datasource = {
|
|
url?: string
|
|
}
|
|
|
|
/**
|
|
* Count Types
|
|
*/
|
|
|
|
|
|
/**
|
|
* Count Type AlertsCountOutputType
|
|
*/
|
|
|
|
export type AlertsCountOutputType = {
|
|
alert_recipients: number
|
|
}
|
|
|
|
export type AlertsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
alert_recipients?: boolean | AlertsCountOutputTypeCountAlert_recipientsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AlertsCountOutputType without action
|
|
*/
|
|
export type AlertsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AlertsCountOutputType
|
|
*/
|
|
select?: AlertsCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AlertsCountOutputType without action
|
|
*/
|
|
export type AlertsCountOutputTypeCountAlert_recipientsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: alert_recipientsWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CamerasCountOutputType
|
|
*/
|
|
|
|
export type CamerasCountOutputType = {
|
|
camera_health_log: number
|
|
}
|
|
|
|
export type CamerasCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
camera_health_log?: boolean | CamerasCountOutputTypeCountCamera_health_logArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* CamerasCountOutputType without action
|
|
*/
|
|
export type CamerasCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CamerasCountOutputType
|
|
*/
|
|
select?: CamerasCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CamerasCountOutputType without action
|
|
*/
|
|
export type CamerasCountOutputTypeCountCamera_health_logArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: camera_health_logWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type GeofencesCountOutputType
|
|
*/
|
|
|
|
export type GeofencesCountOutputType = {
|
|
geofence_breaches: number
|
|
incidents: number
|
|
map_pins: number
|
|
}
|
|
|
|
export type GeofencesCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
geofence_breaches?: boolean | GeofencesCountOutputTypeCountGeofence_breachesArgs
|
|
incidents?: boolean | GeofencesCountOutputTypeCountIncidentsArgs
|
|
map_pins?: boolean | GeofencesCountOutputTypeCountMap_pinsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* GeofencesCountOutputType without action
|
|
*/
|
|
export type GeofencesCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the GeofencesCountOutputType
|
|
*/
|
|
select?: GeofencesCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* GeofencesCountOutputType without action
|
|
*/
|
|
export type GeofencesCountOutputTypeCountGeofence_breachesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: geofence_breachesWhereInput
|
|
}
|
|
|
|
/**
|
|
* GeofencesCountOutputType without action
|
|
*/
|
|
export type GeofencesCountOutputTypeCountIncidentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: incidentsWhereInput
|
|
}
|
|
|
|
/**
|
|
* GeofencesCountOutputType without action
|
|
*/
|
|
export type GeofencesCountOutputTypeCountMap_pinsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: map_pinsWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type IncidentsCountOutputType
|
|
*/
|
|
|
|
export type IncidentsCountOutputType = {
|
|
alerts: number
|
|
incident_updates: number
|
|
}
|
|
|
|
export type IncidentsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
alerts?: boolean | IncidentsCountOutputTypeCountAlertsArgs
|
|
incident_updates?: boolean | IncidentsCountOutputTypeCountIncident_updatesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* IncidentsCountOutputType without action
|
|
*/
|
|
export type IncidentsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IncidentsCountOutputType
|
|
*/
|
|
select?: IncidentsCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* IncidentsCountOutputType without action
|
|
*/
|
|
export type IncidentsCountOutputTypeCountAlertsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: alertsWhereInput
|
|
}
|
|
|
|
/**
|
|
* IncidentsCountOutputType without action
|
|
*/
|
|
export type IncidentsCountOutputTypeCountIncident_updatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: incident_updatesWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type Qr_codesCountOutputType
|
|
*/
|
|
|
|
export type Qr_codesCountOutputType = {
|
|
visitor_registrations: number
|
|
}
|
|
|
|
export type Qr_codesCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
visitor_registrations?: boolean | Qr_codesCountOutputTypeCountVisitor_registrationsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Qr_codesCountOutputType without action
|
|
*/
|
|
export type Qr_codesCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Qr_codesCountOutputType
|
|
*/
|
|
select?: Qr_codesCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Qr_codesCountOutputType without action
|
|
*/
|
|
export type Qr_codesCountOutputTypeCountVisitor_registrationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: visitor_registrationsWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type Team_membersCountOutputType
|
|
*/
|
|
|
|
export type Team_membersCountOutputType = {
|
|
incidents_incidents_reported_byToteam_members: number
|
|
incidents_incidents_assigned_toToteam_members: number
|
|
team_location_history: number
|
|
}
|
|
|
|
export type Team_membersCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
incidents_incidents_reported_byToteam_members?: boolean | Team_membersCountOutputTypeCountIncidents_incidents_reported_byToteam_membersArgs
|
|
incidents_incidents_assigned_toToteam_members?: boolean | Team_membersCountOutputTypeCountIncidents_incidents_assigned_toToteam_membersArgs
|
|
team_location_history?: boolean | Team_membersCountOutputTypeCountTeam_location_historyArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Team_membersCountOutputType without action
|
|
*/
|
|
export type Team_membersCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Team_membersCountOutputType
|
|
*/
|
|
select?: Team_membersCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Team_membersCountOutputType without action
|
|
*/
|
|
export type Team_membersCountOutputTypeCountIncidents_incidents_reported_byToteam_membersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: incidentsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Team_membersCountOutputType without action
|
|
*/
|
|
export type Team_membersCountOutputTypeCountIncidents_incidents_assigned_toToteam_membersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: incidentsWhereInput
|
|
}
|
|
|
|
/**
|
|
* Team_membersCountOutputType without action
|
|
*/
|
|
export type Team_membersCountOutputTypeCountTeam_location_historyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: team_location_historyWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type Visitor_ktp_dataCountOutputType
|
|
*/
|
|
|
|
export type Visitor_ktp_dataCountOutputType = {
|
|
ktp_validation_audit: number
|
|
}
|
|
|
|
export type Visitor_ktp_dataCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
ktp_validation_audit?: boolean | Visitor_ktp_dataCountOutputTypeCountKtp_validation_auditArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Visitor_ktp_dataCountOutputType without action
|
|
*/
|
|
export type Visitor_ktp_dataCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Visitor_ktp_dataCountOutputType
|
|
*/
|
|
select?: Visitor_ktp_dataCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Visitor_ktp_dataCountOutputType without action
|
|
*/
|
|
export type Visitor_ktp_dataCountOutputTypeCountKtp_validation_auditArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ktp_validation_auditWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Models
|
|
*/
|
|
|
|
/**
|
|
* Model alert_recipients
|
|
*/
|
|
|
|
export type AggregateAlert_recipients = {
|
|
_count: Alert_recipientsCountAggregateOutputType | null
|
|
_avg: Alert_recipientsAvgAggregateOutputType | null
|
|
_sum: Alert_recipientsSumAggregateOutputType | null
|
|
_min: Alert_recipientsMinAggregateOutputType | null
|
|
_max: Alert_recipientsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Alert_recipientsAvgAggregateOutputType = {
|
|
delivery_attempts: number | null
|
|
response_time: number | null
|
|
}
|
|
|
|
export type Alert_recipientsSumAggregateOutputType = {
|
|
delivery_attempts: number | null
|
|
response_time: number | null
|
|
}
|
|
|
|
export type Alert_recipientsMinAggregateOutputType = {
|
|
id: string | null
|
|
alert_id: string | null
|
|
recipient_type: string | null
|
|
recipient_id: string | null
|
|
recipient_name: string | null
|
|
channel: string | null
|
|
delivery_status: string | null
|
|
sent_at: Date | null
|
|
delivered_at: Date | null
|
|
acknowledged_at: Date | null
|
|
failed_at: Date | null
|
|
delivery_attempts: number | null
|
|
last_attempt_at: Date | null
|
|
failure_reason: string | null
|
|
response_time: number | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Alert_recipientsMaxAggregateOutputType = {
|
|
id: string | null
|
|
alert_id: string | null
|
|
recipient_type: string | null
|
|
recipient_id: string | null
|
|
recipient_name: string | null
|
|
channel: string | null
|
|
delivery_status: string | null
|
|
sent_at: Date | null
|
|
delivered_at: Date | null
|
|
acknowledged_at: Date | null
|
|
failed_at: Date | null
|
|
delivery_attempts: number | null
|
|
last_attempt_at: Date | null
|
|
failure_reason: string | null
|
|
response_time: number | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Alert_recipientsCountAggregateOutputType = {
|
|
id: number
|
|
alert_id: number
|
|
recipient_type: number
|
|
recipient_id: number
|
|
recipient_name: number
|
|
recipient_contact: number
|
|
channel: number
|
|
delivery_status: number
|
|
sent_at: number
|
|
delivered_at: number
|
|
acknowledged_at: number
|
|
failed_at: number
|
|
delivery_attempts: number
|
|
last_attempt_at: number
|
|
failure_reason: number
|
|
delivery_metadata: number
|
|
response_data: number
|
|
response_time: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Alert_recipientsAvgAggregateInputType = {
|
|
delivery_attempts?: true
|
|
response_time?: true
|
|
}
|
|
|
|
export type Alert_recipientsSumAggregateInputType = {
|
|
delivery_attempts?: true
|
|
response_time?: true
|
|
}
|
|
|
|
export type Alert_recipientsMinAggregateInputType = {
|
|
id?: true
|
|
alert_id?: true
|
|
recipient_type?: true
|
|
recipient_id?: true
|
|
recipient_name?: true
|
|
channel?: true
|
|
delivery_status?: true
|
|
sent_at?: true
|
|
delivered_at?: true
|
|
acknowledged_at?: true
|
|
failed_at?: true
|
|
delivery_attempts?: true
|
|
last_attempt_at?: true
|
|
failure_reason?: true
|
|
response_time?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Alert_recipientsMaxAggregateInputType = {
|
|
id?: true
|
|
alert_id?: true
|
|
recipient_type?: true
|
|
recipient_id?: true
|
|
recipient_name?: true
|
|
channel?: true
|
|
delivery_status?: true
|
|
sent_at?: true
|
|
delivered_at?: true
|
|
acknowledged_at?: true
|
|
failed_at?: true
|
|
delivery_attempts?: true
|
|
last_attempt_at?: true
|
|
failure_reason?: true
|
|
response_time?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Alert_recipientsCountAggregateInputType = {
|
|
id?: true
|
|
alert_id?: true
|
|
recipient_type?: true
|
|
recipient_id?: true
|
|
recipient_name?: true
|
|
recipient_contact?: true
|
|
channel?: true
|
|
delivery_status?: true
|
|
sent_at?: true
|
|
delivered_at?: true
|
|
acknowledged_at?: true
|
|
failed_at?: true
|
|
delivery_attempts?: true
|
|
last_attempt_at?: true
|
|
failure_reason?: true
|
|
delivery_metadata?: true
|
|
response_data?: true
|
|
response_time?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Alert_recipientsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which alert_recipients to aggregate.
|
|
*/
|
|
where?: alert_recipientsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alert_recipients to fetch.
|
|
*/
|
|
orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: alert_recipientsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alert_recipients from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alert_recipients.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned alert_recipients
|
|
**/
|
|
_count?: true | Alert_recipientsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Alert_recipientsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Alert_recipientsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Alert_recipientsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Alert_recipientsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAlert_recipientsAggregateType<T extends Alert_recipientsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAlert_recipients]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAlert_recipients[P]>
|
|
: GetScalarType<T[P], AggregateAlert_recipients[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type alert_recipientsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: alert_recipientsWhereInput
|
|
orderBy?: alert_recipientsOrderByWithAggregationInput | alert_recipientsOrderByWithAggregationInput[]
|
|
by: Alert_recipientsScalarFieldEnum[] | Alert_recipientsScalarFieldEnum
|
|
having?: alert_recipientsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Alert_recipientsCountAggregateInputType | true
|
|
_avg?: Alert_recipientsAvgAggregateInputType
|
|
_sum?: Alert_recipientsSumAggregateInputType
|
|
_min?: Alert_recipientsMinAggregateInputType
|
|
_max?: Alert_recipientsMaxAggregateInputType
|
|
}
|
|
|
|
export type Alert_recipientsGroupByOutputType = {
|
|
id: string
|
|
alert_id: string
|
|
recipient_type: string
|
|
recipient_id: string | null
|
|
recipient_name: string | null
|
|
recipient_contact: JsonValue | null
|
|
channel: string
|
|
delivery_status: string | null
|
|
sent_at: Date | null
|
|
delivered_at: Date | null
|
|
acknowledged_at: Date | null
|
|
failed_at: Date | null
|
|
delivery_attempts: number | null
|
|
last_attempt_at: Date | null
|
|
failure_reason: string | null
|
|
delivery_metadata: JsonValue | null
|
|
response_data: JsonValue | null
|
|
response_time: number | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: Alert_recipientsCountAggregateOutputType | null
|
|
_avg: Alert_recipientsAvgAggregateOutputType | null
|
|
_sum: Alert_recipientsSumAggregateOutputType | null
|
|
_min: Alert_recipientsMinAggregateOutputType | null
|
|
_max: Alert_recipientsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAlert_recipientsGroupByPayload<T extends alert_recipientsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Alert_recipientsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Alert_recipientsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Alert_recipientsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Alert_recipientsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type alert_recipientsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
alert_id?: boolean
|
|
recipient_type?: boolean
|
|
recipient_id?: boolean
|
|
recipient_name?: boolean
|
|
recipient_contact?: boolean
|
|
channel?: boolean
|
|
delivery_status?: boolean
|
|
sent_at?: boolean
|
|
delivered_at?: boolean
|
|
acknowledged_at?: boolean
|
|
failed_at?: boolean
|
|
delivery_attempts?: boolean
|
|
last_attempt_at?: boolean
|
|
failure_reason?: boolean
|
|
delivery_metadata?: boolean
|
|
response_data?: boolean
|
|
response_time?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
alerts?: boolean | alertsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["alert_recipients"]>
|
|
|
|
|
|
|
|
export type alert_recipientsSelectScalar = {
|
|
id?: boolean
|
|
alert_id?: boolean
|
|
recipient_type?: boolean
|
|
recipient_id?: boolean
|
|
recipient_name?: boolean
|
|
recipient_contact?: boolean
|
|
channel?: boolean
|
|
delivery_status?: boolean
|
|
sent_at?: boolean
|
|
delivered_at?: boolean
|
|
acknowledged_at?: boolean
|
|
failed_at?: boolean
|
|
delivery_attempts?: boolean
|
|
last_attempt_at?: boolean
|
|
failure_reason?: boolean
|
|
delivery_metadata?: boolean
|
|
response_data?: boolean
|
|
response_time?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type alert_recipientsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "alert_id" | "recipient_type" | "recipient_id" | "recipient_name" | "recipient_contact" | "channel" | "delivery_status" | "sent_at" | "delivered_at" | "acknowledged_at" | "failed_at" | "delivery_attempts" | "last_attempt_at" | "failure_reason" | "delivery_metadata" | "response_data" | "response_time" | "created_at" | "updated_at", ExtArgs["result"]["alert_recipients"]>
|
|
export type alert_recipientsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
alerts?: boolean | alertsDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $alert_recipientsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "alert_recipients"
|
|
objects: {
|
|
alerts: Prisma.$alertsPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
alert_id: string
|
|
recipient_type: string
|
|
recipient_id: string | null
|
|
recipient_name: string | null
|
|
recipient_contact: Prisma.JsonValue | null
|
|
channel: string
|
|
delivery_status: string | null
|
|
sent_at: Date | null
|
|
delivered_at: Date | null
|
|
acknowledged_at: Date | null
|
|
failed_at: Date | null
|
|
delivery_attempts: number | null
|
|
last_attempt_at: Date | null
|
|
failure_reason: string | null
|
|
delivery_metadata: Prisma.JsonValue | null
|
|
response_data: Prisma.JsonValue | null
|
|
response_time: number | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["alert_recipients"]>
|
|
composites: {}
|
|
}
|
|
|
|
type alert_recipientsGetPayload<S extends boolean | null | undefined | alert_recipientsDefaultArgs> = $Result.GetResult<Prisma.$alert_recipientsPayload, S>
|
|
|
|
type alert_recipientsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<alert_recipientsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Alert_recipientsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface alert_recipientsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['alert_recipients'], meta: { name: 'alert_recipients' } }
|
|
/**
|
|
* Find zero or one Alert_recipients that matches the filter.
|
|
* @param {alert_recipientsFindUniqueArgs} args - Arguments to find a Alert_recipients
|
|
* @example
|
|
* // Get one Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends alert_recipientsFindUniqueArgs>(args: SelectSubset<T, alert_recipientsFindUniqueArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Alert_recipients that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {alert_recipientsFindUniqueOrThrowArgs} args - Arguments to find a Alert_recipients
|
|
* @example
|
|
* // Get one Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends alert_recipientsFindUniqueOrThrowArgs>(args: SelectSubset<T, alert_recipientsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Alert_recipients that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alert_recipientsFindFirstArgs} args - Arguments to find a Alert_recipients
|
|
* @example
|
|
* // Get one Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends alert_recipientsFindFirstArgs>(args?: SelectSubset<T, alert_recipientsFindFirstArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Alert_recipients that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alert_recipientsFindFirstOrThrowArgs} args - Arguments to find a Alert_recipients
|
|
* @example
|
|
* // Get one Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends alert_recipientsFindFirstOrThrowArgs>(args?: SelectSubset<T, alert_recipientsFindFirstOrThrowArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Alert_recipients that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alert_recipientsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findMany()
|
|
*
|
|
* // Get first 10 Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const alert_recipientsWithIdOnly = await prisma.alert_recipients.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends alert_recipientsFindManyArgs>(args?: SelectSubset<T, alert_recipientsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Alert_recipients.
|
|
* @param {alert_recipientsCreateArgs} args - Arguments to create a Alert_recipients.
|
|
* @example
|
|
* // Create one Alert_recipients
|
|
* const Alert_recipients = await prisma.alert_recipients.create({
|
|
* data: {
|
|
* // ... data to create a Alert_recipients
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends alert_recipientsCreateArgs>(args: SelectSubset<T, alert_recipientsCreateArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Alert_recipients.
|
|
* @param {alert_recipientsCreateManyArgs} args - Arguments to create many Alert_recipients.
|
|
* @example
|
|
* // Create many Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends alert_recipientsCreateManyArgs>(args?: SelectSubset<T, alert_recipientsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Alert_recipients.
|
|
* @param {alert_recipientsDeleteArgs} args - Arguments to delete one Alert_recipients.
|
|
* @example
|
|
* // Delete one Alert_recipients
|
|
* const Alert_recipients = await prisma.alert_recipients.delete({
|
|
* where: {
|
|
* // ... filter to delete one Alert_recipients
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends alert_recipientsDeleteArgs>(args: SelectSubset<T, alert_recipientsDeleteArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Alert_recipients.
|
|
* @param {alert_recipientsUpdateArgs} args - Arguments to update one Alert_recipients.
|
|
* @example
|
|
* // Update one Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends alert_recipientsUpdateArgs>(args: SelectSubset<T, alert_recipientsUpdateArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Alert_recipients.
|
|
* @param {alert_recipientsDeleteManyArgs} args - Arguments to filter Alert_recipients to delete.
|
|
* @example
|
|
* // Delete a few Alert_recipients
|
|
* const { count } = await prisma.alert_recipients.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends alert_recipientsDeleteManyArgs>(args?: SelectSubset<T, alert_recipientsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Alert_recipients.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alert_recipientsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends alert_recipientsUpdateManyArgs>(args: SelectSubset<T, alert_recipientsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Alert_recipients.
|
|
* @param {alert_recipientsUpsertArgs} args - Arguments to update or create a Alert_recipients.
|
|
* @example
|
|
* // Update or create a Alert_recipients
|
|
* const alert_recipients = await prisma.alert_recipients.upsert({
|
|
* create: {
|
|
* // ... data to create a Alert_recipients
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Alert_recipients we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends alert_recipientsUpsertArgs>(args: SelectSubset<T, alert_recipientsUpsertArgs<ExtArgs>>): Prisma__alert_recipientsClient<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Alert_recipients.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alert_recipientsCountArgs} args - Arguments to filter Alert_recipients to count.
|
|
* @example
|
|
* // Count the number of Alert_recipients
|
|
* const count = await prisma.alert_recipients.count({
|
|
* where: {
|
|
* // ... the filter for the Alert_recipients we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends alert_recipientsCountArgs>(
|
|
args?: Subset<T, alert_recipientsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Alert_recipientsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Alert_recipients.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Alert_recipientsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Alert_recipientsAggregateArgs>(args: Subset<T, Alert_recipientsAggregateArgs>): Prisma.PrismaPromise<GetAlert_recipientsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Alert_recipients.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alert_recipientsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends alert_recipientsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: alert_recipientsGroupByArgs['orderBy'] }
|
|
: { orderBy?: alert_recipientsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, alert_recipientsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAlert_recipientsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the alert_recipients model
|
|
*/
|
|
readonly fields: alert_recipientsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for alert_recipients.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__alert_recipientsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
alerts<T extends alertsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, alertsDefaultArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the alert_recipients model
|
|
*/
|
|
interface alert_recipientsFieldRefs {
|
|
readonly id: FieldRef<"alert_recipients", 'String'>
|
|
readonly alert_id: FieldRef<"alert_recipients", 'String'>
|
|
readonly recipient_type: FieldRef<"alert_recipients", 'String'>
|
|
readonly recipient_id: FieldRef<"alert_recipients", 'String'>
|
|
readonly recipient_name: FieldRef<"alert_recipients", 'String'>
|
|
readonly recipient_contact: FieldRef<"alert_recipients", 'Json'>
|
|
readonly channel: FieldRef<"alert_recipients", 'String'>
|
|
readonly delivery_status: FieldRef<"alert_recipients", 'String'>
|
|
readonly sent_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
readonly delivered_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
readonly acknowledged_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
readonly failed_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
readonly delivery_attempts: FieldRef<"alert_recipients", 'Int'>
|
|
readonly last_attempt_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
readonly failure_reason: FieldRef<"alert_recipients", 'String'>
|
|
readonly delivery_metadata: FieldRef<"alert_recipients", 'Json'>
|
|
readonly response_data: FieldRef<"alert_recipients", 'Json'>
|
|
readonly response_time: FieldRef<"alert_recipients", 'Int'>
|
|
readonly created_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
readonly updated_at: FieldRef<"alert_recipients", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* alert_recipients findUnique
|
|
*/
|
|
export type alert_recipientsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alert_recipients to fetch.
|
|
*/
|
|
where: alert_recipientsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alert_recipients findUniqueOrThrow
|
|
*/
|
|
export type alert_recipientsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alert_recipients to fetch.
|
|
*/
|
|
where: alert_recipientsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alert_recipients findFirst
|
|
*/
|
|
export type alert_recipientsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alert_recipients to fetch.
|
|
*/
|
|
where?: alert_recipientsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alert_recipients to fetch.
|
|
*/
|
|
orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for alert_recipients.
|
|
*/
|
|
cursor?: alert_recipientsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alert_recipients from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alert_recipients.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of alert_recipients.
|
|
*/
|
|
distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alert_recipients findFirstOrThrow
|
|
*/
|
|
export type alert_recipientsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alert_recipients to fetch.
|
|
*/
|
|
where?: alert_recipientsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alert_recipients to fetch.
|
|
*/
|
|
orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for alert_recipients.
|
|
*/
|
|
cursor?: alert_recipientsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alert_recipients from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alert_recipients.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of alert_recipients.
|
|
*/
|
|
distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alert_recipients findMany
|
|
*/
|
|
export type alert_recipientsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alert_recipients to fetch.
|
|
*/
|
|
where?: alert_recipientsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alert_recipients to fetch.
|
|
*/
|
|
orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing alert_recipients.
|
|
*/
|
|
cursor?: alert_recipientsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alert_recipients from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alert_recipients.
|
|
*/
|
|
skip?: number
|
|
distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alert_recipients create
|
|
*/
|
|
export type alert_recipientsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a alert_recipients.
|
|
*/
|
|
data: XOR<alert_recipientsCreateInput, alert_recipientsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* alert_recipients createMany
|
|
*/
|
|
export type alert_recipientsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many alert_recipients.
|
|
*/
|
|
data: alert_recipientsCreateManyInput | alert_recipientsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* alert_recipients update
|
|
*/
|
|
export type alert_recipientsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a alert_recipients.
|
|
*/
|
|
data: XOR<alert_recipientsUpdateInput, alert_recipientsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which alert_recipients to update.
|
|
*/
|
|
where: alert_recipientsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alert_recipients updateMany
|
|
*/
|
|
export type alert_recipientsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update alert_recipients.
|
|
*/
|
|
data: XOR<alert_recipientsUpdateManyMutationInput, alert_recipientsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which alert_recipients to update
|
|
*/
|
|
where?: alert_recipientsWhereInput
|
|
/**
|
|
* Limit how many alert_recipients to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* alert_recipients upsert
|
|
*/
|
|
export type alert_recipientsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the alert_recipients to update in case it exists.
|
|
*/
|
|
where: alert_recipientsWhereUniqueInput
|
|
/**
|
|
* In case the alert_recipients found by the `where` argument doesn't exist, create a new alert_recipients with this data.
|
|
*/
|
|
create: XOR<alert_recipientsCreateInput, alert_recipientsUncheckedCreateInput>
|
|
/**
|
|
* In case the alert_recipients was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<alert_recipientsUpdateInput, alert_recipientsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* alert_recipients delete
|
|
*/
|
|
export type alert_recipientsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which alert_recipients to delete.
|
|
*/
|
|
where: alert_recipientsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alert_recipients deleteMany
|
|
*/
|
|
export type alert_recipientsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which alert_recipients to delete
|
|
*/
|
|
where?: alert_recipientsWhereInput
|
|
/**
|
|
* Limit how many alert_recipients to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* alert_recipients without action
|
|
*/
|
|
export type alert_recipientsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model alerts
|
|
*/
|
|
|
|
export type AggregateAlerts = {
|
|
_count: AlertsCountAggregateOutputType | null
|
|
_avg: AlertsAvgAggregateOutputType | null
|
|
_sum: AlertsSumAggregateOutputType | null
|
|
_min: AlertsMinAggregateOutputType | null
|
|
_max: AlertsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AlertsAvgAggregateOutputType = {
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
total_recipients: number | null
|
|
delivered_count: number | null
|
|
acknowledged_count: number | null
|
|
failed_count: number | null
|
|
}
|
|
|
|
export type AlertsSumAggregateOutputType = {
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
total_recipients: number | null
|
|
delivered_count: number | null
|
|
acknowledged_count: number | null
|
|
failed_count: number | null
|
|
}
|
|
|
|
export type AlertsMinAggregateOutputType = {
|
|
id: string | null
|
|
alert_id: string | null
|
|
title: string | null
|
|
message: string | null
|
|
type: string | null
|
|
category: string | null
|
|
severity: string | null
|
|
priority: string | null
|
|
status: string | null
|
|
is_emergency: boolean | null
|
|
is_broadcast: boolean | null
|
|
is_recurring: boolean | null
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
scheduled_at: Date | null
|
|
starts_at: Date | null
|
|
ends_at: Date | null
|
|
expires_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
next_occurrence: Date | null
|
|
source: string | null
|
|
source_id: string | null
|
|
incident_id: string | null
|
|
total_recipients: number | null
|
|
delivered_count: number | null
|
|
acknowledged_count: number | null
|
|
failed_count: number | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
}
|
|
|
|
export type AlertsMaxAggregateOutputType = {
|
|
id: string | null
|
|
alert_id: string | null
|
|
title: string | null
|
|
message: string | null
|
|
type: string | null
|
|
category: string | null
|
|
severity: string | null
|
|
priority: string | null
|
|
status: string | null
|
|
is_emergency: boolean | null
|
|
is_broadcast: boolean | null
|
|
is_recurring: boolean | null
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
scheduled_at: Date | null
|
|
starts_at: Date | null
|
|
ends_at: Date | null
|
|
expires_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
next_occurrence: Date | null
|
|
source: string | null
|
|
source_id: string | null
|
|
incident_id: string | null
|
|
total_recipients: number | null
|
|
delivered_count: number | null
|
|
acknowledged_count: number | null
|
|
failed_count: number | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
}
|
|
|
|
export type AlertsCountAggregateOutputType = {
|
|
id: number
|
|
alert_id: number
|
|
title: number
|
|
message: number
|
|
type: number
|
|
category: number
|
|
severity: number
|
|
priority: number
|
|
status: number
|
|
is_emergency: number
|
|
is_broadcast: number
|
|
is_recurring: number
|
|
location: number
|
|
coordinates_lat: number
|
|
coordinates_lng: number
|
|
target_zones: number
|
|
target_buildings: number
|
|
target_roles: number
|
|
target_teams: number
|
|
target_users: number
|
|
geofence_ids: number
|
|
scheduled_at: number
|
|
starts_at: number
|
|
ends_at: number
|
|
expires_at: number
|
|
acknowledged_at: number
|
|
resolved_at: number
|
|
recurrence_pattern: number
|
|
next_occurrence: number
|
|
content: number
|
|
attachments: number
|
|
media_urls: number
|
|
action_buttons: number
|
|
channels: number
|
|
delivery_config: number
|
|
source: number
|
|
source_id: number
|
|
context: number
|
|
incident_id: number
|
|
camera_ids: number
|
|
related_alerts: number
|
|
total_recipients: number
|
|
delivered_count: number
|
|
acknowledged_count: number
|
|
failed_count: number
|
|
tags: number
|
|
metadata: number
|
|
custom_fields: number
|
|
created_at: number
|
|
updated_at: number
|
|
created_by: number
|
|
updated_by: number
|
|
deleted_at: number
|
|
deleted_by: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AlertsAvgAggregateInputType = {
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
total_recipients?: true
|
|
delivered_count?: true
|
|
acknowledged_count?: true
|
|
failed_count?: true
|
|
}
|
|
|
|
export type AlertsSumAggregateInputType = {
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
total_recipients?: true
|
|
delivered_count?: true
|
|
acknowledged_count?: true
|
|
failed_count?: true
|
|
}
|
|
|
|
export type AlertsMinAggregateInputType = {
|
|
id?: true
|
|
alert_id?: true
|
|
title?: true
|
|
message?: true
|
|
type?: true
|
|
category?: true
|
|
severity?: true
|
|
priority?: true
|
|
status?: true
|
|
is_emergency?: true
|
|
is_broadcast?: true
|
|
is_recurring?: true
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
scheduled_at?: true
|
|
starts_at?: true
|
|
ends_at?: true
|
|
expires_at?: true
|
|
acknowledged_at?: true
|
|
resolved_at?: true
|
|
next_occurrence?: true
|
|
source?: true
|
|
source_id?: true
|
|
incident_id?: true
|
|
total_recipients?: true
|
|
delivered_count?: true
|
|
acknowledged_count?: true
|
|
failed_count?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
deleted_at?: true
|
|
deleted_by?: true
|
|
}
|
|
|
|
export type AlertsMaxAggregateInputType = {
|
|
id?: true
|
|
alert_id?: true
|
|
title?: true
|
|
message?: true
|
|
type?: true
|
|
category?: true
|
|
severity?: true
|
|
priority?: true
|
|
status?: true
|
|
is_emergency?: true
|
|
is_broadcast?: true
|
|
is_recurring?: true
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
scheduled_at?: true
|
|
starts_at?: true
|
|
ends_at?: true
|
|
expires_at?: true
|
|
acknowledged_at?: true
|
|
resolved_at?: true
|
|
next_occurrence?: true
|
|
source?: true
|
|
source_id?: true
|
|
incident_id?: true
|
|
total_recipients?: true
|
|
delivered_count?: true
|
|
acknowledged_count?: true
|
|
failed_count?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
deleted_at?: true
|
|
deleted_by?: true
|
|
}
|
|
|
|
export type AlertsCountAggregateInputType = {
|
|
id?: true
|
|
alert_id?: true
|
|
title?: true
|
|
message?: true
|
|
type?: true
|
|
category?: true
|
|
severity?: true
|
|
priority?: true
|
|
status?: true
|
|
is_emergency?: true
|
|
is_broadcast?: true
|
|
is_recurring?: true
|
|
location?: true
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
target_zones?: true
|
|
target_buildings?: true
|
|
target_roles?: true
|
|
target_teams?: true
|
|
target_users?: true
|
|
geofence_ids?: true
|
|
scheduled_at?: true
|
|
starts_at?: true
|
|
ends_at?: true
|
|
expires_at?: true
|
|
acknowledged_at?: true
|
|
resolved_at?: true
|
|
recurrence_pattern?: true
|
|
next_occurrence?: true
|
|
content?: true
|
|
attachments?: true
|
|
media_urls?: true
|
|
action_buttons?: true
|
|
channels?: true
|
|
delivery_config?: true
|
|
source?: true
|
|
source_id?: true
|
|
context?: true
|
|
incident_id?: true
|
|
camera_ids?: true
|
|
related_alerts?: true
|
|
total_recipients?: true
|
|
delivered_count?: true
|
|
acknowledged_count?: true
|
|
failed_count?: true
|
|
tags?: true
|
|
metadata?: true
|
|
custom_fields?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
deleted_at?: true
|
|
deleted_by?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AlertsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which alerts to aggregate.
|
|
*/
|
|
where?: alertsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alerts to fetch.
|
|
*/
|
|
orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: alertsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alerts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alerts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned alerts
|
|
**/
|
|
_count?: true | AlertsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AlertsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AlertsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AlertsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AlertsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAlertsAggregateType<T extends AlertsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAlerts]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAlerts[P]>
|
|
: GetScalarType<T[P], AggregateAlerts[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type alertsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: alertsWhereInput
|
|
orderBy?: alertsOrderByWithAggregationInput | alertsOrderByWithAggregationInput[]
|
|
by: AlertsScalarFieldEnum[] | AlertsScalarFieldEnum
|
|
having?: alertsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AlertsCountAggregateInputType | true
|
|
_avg?: AlertsAvgAggregateInputType
|
|
_sum?: AlertsSumAggregateInputType
|
|
_min?: AlertsMinAggregateInputType
|
|
_max?: AlertsMaxAggregateInputType
|
|
}
|
|
|
|
export type AlertsGroupByOutputType = {
|
|
id: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category: string | null
|
|
severity: string
|
|
priority: string
|
|
status: string
|
|
is_emergency: boolean | null
|
|
is_broadcast: boolean | null
|
|
is_recurring: boolean | null
|
|
location: JsonValue | null
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
target_zones: JsonValue | null
|
|
target_buildings: JsonValue | null
|
|
target_roles: JsonValue | null
|
|
target_teams: JsonValue | null
|
|
target_users: JsonValue | null
|
|
geofence_ids: JsonValue | null
|
|
scheduled_at: Date | null
|
|
starts_at: Date | null
|
|
ends_at: Date | null
|
|
expires_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
recurrence_pattern: JsonValue | null
|
|
next_occurrence: Date | null
|
|
content: JsonValue | null
|
|
attachments: JsonValue | null
|
|
media_urls: JsonValue | null
|
|
action_buttons: JsonValue | null
|
|
channels: JsonValue | null
|
|
delivery_config: JsonValue | null
|
|
source: string | null
|
|
source_id: string | null
|
|
context: JsonValue | null
|
|
incident_id: string | null
|
|
camera_ids: JsonValue | null
|
|
related_alerts: JsonValue | null
|
|
total_recipients: number | null
|
|
delivered_count: number | null
|
|
acknowledged_count: number | null
|
|
failed_count: number | null
|
|
tags: JsonValue | null
|
|
metadata: JsonValue | null
|
|
custom_fields: JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
_count: AlertsCountAggregateOutputType | null
|
|
_avg: AlertsAvgAggregateOutputType | null
|
|
_sum: AlertsSumAggregateOutputType | null
|
|
_min: AlertsMinAggregateOutputType | null
|
|
_max: AlertsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAlertsGroupByPayload<T extends alertsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AlertsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AlertsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AlertsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AlertsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type alertsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
alert_id?: boolean
|
|
title?: boolean
|
|
message?: boolean
|
|
type?: boolean
|
|
category?: boolean
|
|
severity?: boolean
|
|
priority?: boolean
|
|
status?: boolean
|
|
is_emergency?: boolean
|
|
is_broadcast?: boolean
|
|
is_recurring?: boolean
|
|
location?: boolean
|
|
coordinates_lat?: boolean
|
|
coordinates_lng?: boolean
|
|
target_zones?: boolean
|
|
target_buildings?: boolean
|
|
target_roles?: boolean
|
|
target_teams?: boolean
|
|
target_users?: boolean
|
|
geofence_ids?: boolean
|
|
scheduled_at?: boolean
|
|
starts_at?: boolean
|
|
ends_at?: boolean
|
|
expires_at?: boolean
|
|
acknowledged_at?: boolean
|
|
resolved_at?: boolean
|
|
recurrence_pattern?: boolean
|
|
next_occurrence?: boolean
|
|
content?: boolean
|
|
attachments?: boolean
|
|
media_urls?: boolean
|
|
action_buttons?: boolean
|
|
channels?: boolean
|
|
delivery_config?: boolean
|
|
source?: boolean
|
|
source_id?: boolean
|
|
context?: boolean
|
|
incident_id?: boolean
|
|
camera_ids?: boolean
|
|
related_alerts?: boolean
|
|
total_recipients?: boolean
|
|
delivered_count?: boolean
|
|
acknowledged_count?: boolean
|
|
failed_count?: boolean
|
|
tags?: boolean
|
|
metadata?: boolean
|
|
custom_fields?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
deleted_at?: boolean
|
|
deleted_by?: boolean
|
|
alert_recipients?: boolean | alerts$alert_recipientsArgs<ExtArgs>
|
|
incidents?: boolean | alerts$incidentsArgs<ExtArgs>
|
|
_count?: boolean | AlertsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["alerts"]>
|
|
|
|
|
|
|
|
export type alertsSelectScalar = {
|
|
id?: boolean
|
|
alert_id?: boolean
|
|
title?: boolean
|
|
message?: boolean
|
|
type?: boolean
|
|
category?: boolean
|
|
severity?: boolean
|
|
priority?: boolean
|
|
status?: boolean
|
|
is_emergency?: boolean
|
|
is_broadcast?: boolean
|
|
is_recurring?: boolean
|
|
location?: boolean
|
|
coordinates_lat?: boolean
|
|
coordinates_lng?: boolean
|
|
target_zones?: boolean
|
|
target_buildings?: boolean
|
|
target_roles?: boolean
|
|
target_teams?: boolean
|
|
target_users?: boolean
|
|
geofence_ids?: boolean
|
|
scheduled_at?: boolean
|
|
starts_at?: boolean
|
|
ends_at?: boolean
|
|
expires_at?: boolean
|
|
acknowledged_at?: boolean
|
|
resolved_at?: boolean
|
|
recurrence_pattern?: boolean
|
|
next_occurrence?: boolean
|
|
content?: boolean
|
|
attachments?: boolean
|
|
media_urls?: boolean
|
|
action_buttons?: boolean
|
|
channels?: boolean
|
|
delivery_config?: boolean
|
|
source?: boolean
|
|
source_id?: boolean
|
|
context?: boolean
|
|
incident_id?: boolean
|
|
camera_ids?: boolean
|
|
related_alerts?: boolean
|
|
total_recipients?: boolean
|
|
delivered_count?: boolean
|
|
acknowledged_count?: boolean
|
|
failed_count?: boolean
|
|
tags?: boolean
|
|
metadata?: boolean
|
|
custom_fields?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
deleted_at?: boolean
|
|
deleted_by?: boolean
|
|
}
|
|
|
|
export type alertsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "alert_id" | "title" | "message" | "type" | "category" | "severity" | "priority" | "status" | "is_emergency" | "is_broadcast" | "is_recurring" | "location" | "coordinates_lat" | "coordinates_lng" | "target_zones" | "target_buildings" | "target_roles" | "target_teams" | "target_users" | "geofence_ids" | "scheduled_at" | "starts_at" | "ends_at" | "expires_at" | "acknowledged_at" | "resolved_at" | "recurrence_pattern" | "next_occurrence" | "content" | "attachments" | "media_urls" | "action_buttons" | "channels" | "delivery_config" | "source" | "source_id" | "context" | "incident_id" | "camera_ids" | "related_alerts" | "total_recipients" | "delivered_count" | "acknowledged_count" | "failed_count" | "tags" | "metadata" | "custom_fields" | "created_at" | "updated_at" | "created_by" | "updated_by" | "deleted_at" | "deleted_by", ExtArgs["result"]["alerts"]>
|
|
export type alertsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
alert_recipients?: boolean | alerts$alert_recipientsArgs<ExtArgs>
|
|
incidents?: boolean | alerts$incidentsArgs<ExtArgs>
|
|
_count?: boolean | AlertsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $alertsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "alerts"
|
|
objects: {
|
|
alert_recipients: Prisma.$alert_recipientsPayload<ExtArgs>[]
|
|
incidents: Prisma.$incidentsPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category: string | null
|
|
severity: string
|
|
priority: string
|
|
status: string
|
|
is_emergency: boolean | null
|
|
is_broadcast: boolean | null
|
|
is_recurring: boolean | null
|
|
location: Prisma.JsonValue | null
|
|
coordinates_lat: Prisma.Decimal | null
|
|
coordinates_lng: Prisma.Decimal | null
|
|
target_zones: Prisma.JsonValue | null
|
|
target_buildings: Prisma.JsonValue | null
|
|
target_roles: Prisma.JsonValue | null
|
|
target_teams: Prisma.JsonValue | null
|
|
target_users: Prisma.JsonValue | null
|
|
geofence_ids: Prisma.JsonValue | null
|
|
scheduled_at: Date | null
|
|
starts_at: Date | null
|
|
ends_at: Date | null
|
|
expires_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
recurrence_pattern: Prisma.JsonValue | null
|
|
next_occurrence: Date | null
|
|
content: Prisma.JsonValue | null
|
|
attachments: Prisma.JsonValue | null
|
|
media_urls: Prisma.JsonValue | null
|
|
action_buttons: Prisma.JsonValue | null
|
|
channels: Prisma.JsonValue | null
|
|
delivery_config: Prisma.JsonValue | null
|
|
source: string | null
|
|
source_id: string | null
|
|
context: Prisma.JsonValue | null
|
|
incident_id: string | null
|
|
camera_ids: Prisma.JsonValue | null
|
|
related_alerts: Prisma.JsonValue | null
|
|
total_recipients: number | null
|
|
delivered_count: number | null
|
|
acknowledged_count: number | null
|
|
failed_count: number | null
|
|
tags: Prisma.JsonValue | null
|
|
metadata: Prisma.JsonValue | null
|
|
custom_fields: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
}, ExtArgs["result"]["alerts"]>
|
|
composites: {}
|
|
}
|
|
|
|
type alertsGetPayload<S extends boolean | null | undefined | alertsDefaultArgs> = $Result.GetResult<Prisma.$alertsPayload, S>
|
|
|
|
type alertsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<alertsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AlertsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface alertsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['alerts'], meta: { name: 'alerts' } }
|
|
/**
|
|
* Find zero or one Alerts that matches the filter.
|
|
* @param {alertsFindUniqueArgs} args - Arguments to find a Alerts
|
|
* @example
|
|
* // Get one Alerts
|
|
* const alerts = await prisma.alerts.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends alertsFindUniqueArgs>(args: SelectSubset<T, alertsFindUniqueArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Alerts that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {alertsFindUniqueOrThrowArgs} args - Arguments to find a Alerts
|
|
* @example
|
|
* // Get one Alerts
|
|
* const alerts = await prisma.alerts.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends alertsFindUniqueOrThrowArgs>(args: SelectSubset<T, alertsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Alerts that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alertsFindFirstArgs} args - Arguments to find a Alerts
|
|
* @example
|
|
* // Get one Alerts
|
|
* const alerts = await prisma.alerts.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends alertsFindFirstArgs>(args?: SelectSubset<T, alertsFindFirstArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Alerts that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alertsFindFirstOrThrowArgs} args - Arguments to find a Alerts
|
|
* @example
|
|
* // Get one Alerts
|
|
* const alerts = await prisma.alerts.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends alertsFindFirstOrThrowArgs>(args?: SelectSubset<T, alertsFindFirstOrThrowArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Alerts that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alertsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Alerts
|
|
* const alerts = await prisma.alerts.findMany()
|
|
*
|
|
* // Get first 10 Alerts
|
|
* const alerts = await prisma.alerts.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const alertsWithIdOnly = await prisma.alerts.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends alertsFindManyArgs>(args?: SelectSubset<T, alertsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Alerts.
|
|
* @param {alertsCreateArgs} args - Arguments to create a Alerts.
|
|
* @example
|
|
* // Create one Alerts
|
|
* const Alerts = await prisma.alerts.create({
|
|
* data: {
|
|
* // ... data to create a Alerts
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends alertsCreateArgs>(args: SelectSubset<T, alertsCreateArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Alerts.
|
|
* @param {alertsCreateManyArgs} args - Arguments to create many Alerts.
|
|
* @example
|
|
* // Create many Alerts
|
|
* const alerts = await prisma.alerts.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends alertsCreateManyArgs>(args?: SelectSubset<T, alertsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Alerts.
|
|
* @param {alertsDeleteArgs} args - Arguments to delete one Alerts.
|
|
* @example
|
|
* // Delete one Alerts
|
|
* const Alerts = await prisma.alerts.delete({
|
|
* where: {
|
|
* // ... filter to delete one Alerts
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends alertsDeleteArgs>(args: SelectSubset<T, alertsDeleteArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Alerts.
|
|
* @param {alertsUpdateArgs} args - Arguments to update one Alerts.
|
|
* @example
|
|
* // Update one Alerts
|
|
* const alerts = await prisma.alerts.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends alertsUpdateArgs>(args: SelectSubset<T, alertsUpdateArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Alerts.
|
|
* @param {alertsDeleteManyArgs} args - Arguments to filter Alerts to delete.
|
|
* @example
|
|
* // Delete a few Alerts
|
|
* const { count } = await prisma.alerts.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends alertsDeleteManyArgs>(args?: SelectSubset<T, alertsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Alerts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alertsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Alerts
|
|
* const alerts = await prisma.alerts.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends alertsUpdateManyArgs>(args: SelectSubset<T, alertsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Alerts.
|
|
* @param {alertsUpsertArgs} args - Arguments to update or create a Alerts.
|
|
* @example
|
|
* // Update or create a Alerts
|
|
* const alerts = await prisma.alerts.upsert({
|
|
* create: {
|
|
* // ... data to create a Alerts
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Alerts we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends alertsUpsertArgs>(args: SelectSubset<T, alertsUpsertArgs<ExtArgs>>): Prisma__alertsClient<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Alerts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alertsCountArgs} args - Arguments to filter Alerts to count.
|
|
* @example
|
|
* // Count the number of Alerts
|
|
* const count = await prisma.alerts.count({
|
|
* where: {
|
|
* // ... the filter for the Alerts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends alertsCountArgs>(
|
|
args?: Subset<T, alertsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AlertsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Alerts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AlertsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends AlertsAggregateArgs>(args: Subset<T, AlertsAggregateArgs>): Prisma.PrismaPromise<GetAlertsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Alerts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {alertsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends alertsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: alertsGroupByArgs['orderBy'] }
|
|
: { orderBy?: alertsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, alertsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAlertsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the alerts model
|
|
*/
|
|
readonly fields: alertsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for alerts.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__alertsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
alert_recipients<T extends alerts$alert_recipientsArgs<ExtArgs> = {}>(args?: Subset<T, alerts$alert_recipientsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$alert_recipientsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
incidents<T extends alerts$incidentsArgs<ExtArgs> = {}>(args?: Subset<T, alerts$incidentsArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the alerts model
|
|
*/
|
|
interface alertsFieldRefs {
|
|
readonly id: FieldRef<"alerts", 'String'>
|
|
readonly alert_id: FieldRef<"alerts", 'String'>
|
|
readonly title: FieldRef<"alerts", 'String'>
|
|
readonly message: FieldRef<"alerts", 'String'>
|
|
readonly type: FieldRef<"alerts", 'String'>
|
|
readonly category: FieldRef<"alerts", 'String'>
|
|
readonly severity: FieldRef<"alerts", 'String'>
|
|
readonly priority: FieldRef<"alerts", 'String'>
|
|
readonly status: FieldRef<"alerts", 'String'>
|
|
readonly is_emergency: FieldRef<"alerts", 'Boolean'>
|
|
readonly is_broadcast: FieldRef<"alerts", 'Boolean'>
|
|
readonly is_recurring: FieldRef<"alerts", 'Boolean'>
|
|
readonly location: FieldRef<"alerts", 'Json'>
|
|
readonly coordinates_lat: FieldRef<"alerts", 'Decimal'>
|
|
readonly coordinates_lng: FieldRef<"alerts", 'Decimal'>
|
|
readonly target_zones: FieldRef<"alerts", 'Json'>
|
|
readonly target_buildings: FieldRef<"alerts", 'Json'>
|
|
readonly target_roles: FieldRef<"alerts", 'Json'>
|
|
readonly target_teams: FieldRef<"alerts", 'Json'>
|
|
readonly target_users: FieldRef<"alerts", 'Json'>
|
|
readonly geofence_ids: FieldRef<"alerts", 'Json'>
|
|
readonly scheduled_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly starts_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly ends_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly expires_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly acknowledged_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly resolved_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly recurrence_pattern: FieldRef<"alerts", 'Json'>
|
|
readonly next_occurrence: FieldRef<"alerts", 'DateTime'>
|
|
readonly content: FieldRef<"alerts", 'Json'>
|
|
readonly attachments: FieldRef<"alerts", 'Json'>
|
|
readonly media_urls: FieldRef<"alerts", 'Json'>
|
|
readonly action_buttons: FieldRef<"alerts", 'Json'>
|
|
readonly channels: FieldRef<"alerts", 'Json'>
|
|
readonly delivery_config: FieldRef<"alerts", 'Json'>
|
|
readonly source: FieldRef<"alerts", 'String'>
|
|
readonly source_id: FieldRef<"alerts", 'String'>
|
|
readonly context: FieldRef<"alerts", 'Json'>
|
|
readonly incident_id: FieldRef<"alerts", 'String'>
|
|
readonly camera_ids: FieldRef<"alerts", 'Json'>
|
|
readonly related_alerts: FieldRef<"alerts", 'Json'>
|
|
readonly total_recipients: FieldRef<"alerts", 'Int'>
|
|
readonly delivered_count: FieldRef<"alerts", 'Int'>
|
|
readonly acknowledged_count: FieldRef<"alerts", 'Int'>
|
|
readonly failed_count: FieldRef<"alerts", 'Int'>
|
|
readonly tags: FieldRef<"alerts", 'Json'>
|
|
readonly metadata: FieldRef<"alerts", 'Json'>
|
|
readonly custom_fields: FieldRef<"alerts", 'Json'>
|
|
readonly created_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly updated_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly created_by: FieldRef<"alerts", 'String'>
|
|
readonly updated_by: FieldRef<"alerts", 'String'>
|
|
readonly deleted_at: FieldRef<"alerts", 'DateTime'>
|
|
readonly deleted_by: FieldRef<"alerts", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* alerts findUnique
|
|
*/
|
|
export type alertsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alerts to fetch.
|
|
*/
|
|
where: alertsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alerts findUniqueOrThrow
|
|
*/
|
|
export type alertsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alerts to fetch.
|
|
*/
|
|
where: alertsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alerts findFirst
|
|
*/
|
|
export type alertsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alerts to fetch.
|
|
*/
|
|
where?: alertsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alerts to fetch.
|
|
*/
|
|
orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for alerts.
|
|
*/
|
|
cursor?: alertsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alerts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alerts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of alerts.
|
|
*/
|
|
distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alerts findFirstOrThrow
|
|
*/
|
|
export type alertsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alerts to fetch.
|
|
*/
|
|
where?: alertsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alerts to fetch.
|
|
*/
|
|
orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for alerts.
|
|
*/
|
|
cursor?: alertsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alerts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alerts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of alerts.
|
|
*/
|
|
distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alerts findMany
|
|
*/
|
|
export type alertsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which alerts to fetch.
|
|
*/
|
|
where?: alertsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of alerts to fetch.
|
|
*/
|
|
orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing alerts.
|
|
*/
|
|
cursor?: alertsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` alerts from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` alerts.
|
|
*/
|
|
skip?: number
|
|
distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alerts create
|
|
*/
|
|
export type alertsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a alerts.
|
|
*/
|
|
data: XOR<alertsCreateInput, alertsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* alerts createMany
|
|
*/
|
|
export type alertsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many alerts.
|
|
*/
|
|
data: alertsCreateManyInput | alertsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* alerts update
|
|
*/
|
|
export type alertsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a alerts.
|
|
*/
|
|
data: XOR<alertsUpdateInput, alertsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which alerts to update.
|
|
*/
|
|
where: alertsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alerts updateMany
|
|
*/
|
|
export type alertsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update alerts.
|
|
*/
|
|
data: XOR<alertsUpdateManyMutationInput, alertsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which alerts to update
|
|
*/
|
|
where?: alertsWhereInput
|
|
/**
|
|
* Limit how many alerts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* alerts upsert
|
|
*/
|
|
export type alertsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the alerts to update in case it exists.
|
|
*/
|
|
where: alertsWhereUniqueInput
|
|
/**
|
|
* In case the alerts found by the `where` argument doesn't exist, create a new alerts with this data.
|
|
*/
|
|
create: XOR<alertsCreateInput, alertsUncheckedCreateInput>
|
|
/**
|
|
* In case the alerts was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<alertsUpdateInput, alertsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* alerts delete
|
|
*/
|
|
export type alertsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which alerts to delete.
|
|
*/
|
|
where: alertsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* alerts deleteMany
|
|
*/
|
|
export type alertsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which alerts to delete
|
|
*/
|
|
where?: alertsWhereInput
|
|
/**
|
|
* Limit how many alerts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* alerts.alert_recipients
|
|
*/
|
|
export type alerts$alert_recipientsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alert_recipients
|
|
*/
|
|
select?: alert_recipientsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alert_recipients
|
|
*/
|
|
omit?: alert_recipientsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alert_recipientsInclude<ExtArgs> | null
|
|
where?: alert_recipientsWhereInput
|
|
orderBy?: alert_recipientsOrderByWithRelationInput | alert_recipientsOrderByWithRelationInput[]
|
|
cursor?: alert_recipientsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Alert_recipientsScalarFieldEnum | Alert_recipientsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* alerts.incidents
|
|
*/
|
|
export type alerts$incidentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
where?: incidentsWhereInput
|
|
}
|
|
|
|
/**
|
|
* alerts without action
|
|
*/
|
|
export type alertsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model basemap_configs
|
|
*/
|
|
|
|
export type AggregateBasemap_configs = {
|
|
_count: Basemap_configsCountAggregateOutputType | null
|
|
_avg: Basemap_configsAvgAggregateOutputType | null
|
|
_sum: Basemap_configsSumAggregateOutputType | null
|
|
_min: Basemap_configsMinAggregateOutputType | null
|
|
_max: Basemap_configsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Basemap_configsAvgAggregateOutputType = {
|
|
version: number | null
|
|
file_size: number | null
|
|
}
|
|
|
|
export type Basemap_configsSumAggregateOutputType = {
|
|
version: number | null
|
|
file_size: number | null
|
|
}
|
|
|
|
export type Basemap_configsMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
description: string | null
|
|
svg_data: string | null
|
|
is_active: boolean | null
|
|
is_default: boolean | null
|
|
version: number | null
|
|
file_size: number | null
|
|
checksum: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}
|
|
|
|
export type Basemap_configsMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
description: string | null
|
|
svg_data: string | null
|
|
is_active: boolean | null
|
|
is_default: boolean | null
|
|
version: number | null
|
|
file_size: number | null
|
|
checksum: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}
|
|
|
|
export type Basemap_configsCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
description: number
|
|
svg_data: number
|
|
calibration: number
|
|
dimensions: number
|
|
is_active: number
|
|
is_default: number
|
|
version: number
|
|
settings: number
|
|
metadata: number
|
|
file_size: number
|
|
checksum: number
|
|
created_at: number
|
|
updated_at: number
|
|
created_by: number
|
|
updated_by: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Basemap_configsAvgAggregateInputType = {
|
|
version?: true
|
|
file_size?: true
|
|
}
|
|
|
|
export type Basemap_configsSumAggregateInputType = {
|
|
version?: true
|
|
file_size?: true
|
|
}
|
|
|
|
export type Basemap_configsMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
svg_data?: true
|
|
is_active?: true
|
|
is_default?: true
|
|
version?: true
|
|
file_size?: true
|
|
checksum?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
}
|
|
|
|
export type Basemap_configsMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
svg_data?: true
|
|
is_active?: true
|
|
is_default?: true
|
|
version?: true
|
|
file_size?: true
|
|
checksum?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
}
|
|
|
|
export type Basemap_configsCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
svg_data?: true
|
|
calibration?: true
|
|
dimensions?: true
|
|
is_active?: true
|
|
is_default?: true
|
|
version?: true
|
|
settings?: true
|
|
metadata?: true
|
|
file_size?: true
|
|
checksum?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Basemap_configsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which basemap_configs to aggregate.
|
|
*/
|
|
where?: basemap_configsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of basemap_configs to fetch.
|
|
*/
|
|
orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: basemap_configsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` basemap_configs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` basemap_configs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned basemap_configs
|
|
**/
|
|
_count?: true | Basemap_configsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Basemap_configsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Basemap_configsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Basemap_configsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Basemap_configsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetBasemap_configsAggregateType<T extends Basemap_configsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateBasemap_configs]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateBasemap_configs[P]>
|
|
: GetScalarType<T[P], AggregateBasemap_configs[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type basemap_configsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: basemap_configsWhereInput
|
|
orderBy?: basemap_configsOrderByWithAggregationInput | basemap_configsOrderByWithAggregationInput[]
|
|
by: Basemap_configsScalarFieldEnum[] | Basemap_configsScalarFieldEnum
|
|
having?: basemap_configsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Basemap_configsCountAggregateInputType | true
|
|
_avg?: Basemap_configsAvgAggregateInputType
|
|
_sum?: Basemap_configsSumAggregateInputType
|
|
_min?: Basemap_configsMinAggregateInputType
|
|
_max?: Basemap_configsMaxAggregateInputType
|
|
}
|
|
|
|
export type Basemap_configsGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
description: string | null
|
|
svg_data: string
|
|
calibration: JsonValue
|
|
dimensions: JsonValue
|
|
is_active: boolean | null
|
|
is_default: boolean | null
|
|
version: number | null
|
|
settings: JsonValue | null
|
|
metadata: JsonValue | null
|
|
file_size: number | null
|
|
checksum: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
_count: Basemap_configsCountAggregateOutputType | null
|
|
_avg: Basemap_configsAvgAggregateOutputType | null
|
|
_sum: Basemap_configsSumAggregateOutputType | null
|
|
_min: Basemap_configsMinAggregateOutputType | null
|
|
_max: Basemap_configsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetBasemap_configsGroupByPayload<T extends basemap_configsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Basemap_configsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Basemap_configsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Basemap_configsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Basemap_configsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type basemap_configsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
svg_data?: boolean
|
|
calibration?: boolean
|
|
dimensions?: boolean
|
|
is_active?: boolean
|
|
is_default?: boolean
|
|
version?: boolean
|
|
settings?: boolean
|
|
metadata?: boolean
|
|
file_size?: boolean
|
|
checksum?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
}, ExtArgs["result"]["basemap_configs"]>
|
|
|
|
|
|
|
|
export type basemap_configsSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
svg_data?: boolean
|
|
calibration?: boolean
|
|
dimensions?: boolean
|
|
is_active?: boolean
|
|
is_default?: boolean
|
|
version?: boolean
|
|
settings?: boolean
|
|
metadata?: boolean
|
|
file_size?: boolean
|
|
checksum?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
}
|
|
|
|
export type basemap_configsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "description" | "svg_data" | "calibration" | "dimensions" | "is_active" | "is_default" | "version" | "settings" | "metadata" | "file_size" | "checksum" | "created_at" | "updated_at" | "created_by" | "updated_by", ExtArgs["result"]["basemap_configs"]>
|
|
|
|
export type $basemap_configsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "basemap_configs"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
description: string | null
|
|
svg_data: string
|
|
calibration: Prisma.JsonValue
|
|
dimensions: Prisma.JsonValue
|
|
is_active: boolean | null
|
|
is_default: boolean | null
|
|
version: number | null
|
|
settings: Prisma.JsonValue | null
|
|
metadata: Prisma.JsonValue | null
|
|
file_size: number | null
|
|
checksum: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}, ExtArgs["result"]["basemap_configs"]>
|
|
composites: {}
|
|
}
|
|
|
|
type basemap_configsGetPayload<S extends boolean | null | undefined | basemap_configsDefaultArgs> = $Result.GetResult<Prisma.$basemap_configsPayload, S>
|
|
|
|
type basemap_configsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<basemap_configsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Basemap_configsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface basemap_configsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['basemap_configs'], meta: { name: 'basemap_configs' } }
|
|
/**
|
|
* Find zero or one Basemap_configs that matches the filter.
|
|
* @param {basemap_configsFindUniqueArgs} args - Arguments to find a Basemap_configs
|
|
* @example
|
|
* // Get one Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends basemap_configsFindUniqueArgs>(args: SelectSubset<T, basemap_configsFindUniqueArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Basemap_configs that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {basemap_configsFindUniqueOrThrowArgs} args - Arguments to find a Basemap_configs
|
|
* @example
|
|
* // Get one Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends basemap_configsFindUniqueOrThrowArgs>(args: SelectSubset<T, basemap_configsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Basemap_configs that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {basemap_configsFindFirstArgs} args - Arguments to find a Basemap_configs
|
|
* @example
|
|
* // Get one Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends basemap_configsFindFirstArgs>(args?: SelectSubset<T, basemap_configsFindFirstArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Basemap_configs that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {basemap_configsFindFirstOrThrowArgs} args - Arguments to find a Basemap_configs
|
|
* @example
|
|
* // Get one Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends basemap_configsFindFirstOrThrowArgs>(args?: SelectSubset<T, basemap_configsFindFirstOrThrowArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Basemap_configs that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {basemap_configsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findMany()
|
|
*
|
|
* // Get first 10 Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const basemap_configsWithIdOnly = await prisma.basemap_configs.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends basemap_configsFindManyArgs>(args?: SelectSubset<T, basemap_configsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Basemap_configs.
|
|
* @param {basemap_configsCreateArgs} args - Arguments to create a Basemap_configs.
|
|
* @example
|
|
* // Create one Basemap_configs
|
|
* const Basemap_configs = await prisma.basemap_configs.create({
|
|
* data: {
|
|
* // ... data to create a Basemap_configs
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends basemap_configsCreateArgs>(args: SelectSubset<T, basemap_configsCreateArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Basemap_configs.
|
|
* @param {basemap_configsCreateManyArgs} args - Arguments to create many Basemap_configs.
|
|
* @example
|
|
* // Create many Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends basemap_configsCreateManyArgs>(args?: SelectSubset<T, basemap_configsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Basemap_configs.
|
|
* @param {basemap_configsDeleteArgs} args - Arguments to delete one Basemap_configs.
|
|
* @example
|
|
* // Delete one Basemap_configs
|
|
* const Basemap_configs = await prisma.basemap_configs.delete({
|
|
* where: {
|
|
* // ... filter to delete one Basemap_configs
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends basemap_configsDeleteArgs>(args: SelectSubset<T, basemap_configsDeleteArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Basemap_configs.
|
|
* @param {basemap_configsUpdateArgs} args - Arguments to update one Basemap_configs.
|
|
* @example
|
|
* // Update one Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends basemap_configsUpdateArgs>(args: SelectSubset<T, basemap_configsUpdateArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Basemap_configs.
|
|
* @param {basemap_configsDeleteManyArgs} args - Arguments to filter Basemap_configs to delete.
|
|
* @example
|
|
* // Delete a few Basemap_configs
|
|
* const { count } = await prisma.basemap_configs.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends basemap_configsDeleteManyArgs>(args?: SelectSubset<T, basemap_configsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Basemap_configs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {basemap_configsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends basemap_configsUpdateManyArgs>(args: SelectSubset<T, basemap_configsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Basemap_configs.
|
|
* @param {basemap_configsUpsertArgs} args - Arguments to update or create a Basemap_configs.
|
|
* @example
|
|
* // Update or create a Basemap_configs
|
|
* const basemap_configs = await prisma.basemap_configs.upsert({
|
|
* create: {
|
|
* // ... data to create a Basemap_configs
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Basemap_configs we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends basemap_configsUpsertArgs>(args: SelectSubset<T, basemap_configsUpsertArgs<ExtArgs>>): Prisma__basemap_configsClient<$Result.GetResult<Prisma.$basemap_configsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Basemap_configs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {basemap_configsCountArgs} args - Arguments to filter Basemap_configs to count.
|
|
* @example
|
|
* // Count the number of Basemap_configs
|
|
* const count = await prisma.basemap_configs.count({
|
|
* where: {
|
|
* // ... the filter for the Basemap_configs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends basemap_configsCountArgs>(
|
|
args?: Subset<T, basemap_configsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Basemap_configsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Basemap_configs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Basemap_configsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Basemap_configsAggregateArgs>(args: Subset<T, Basemap_configsAggregateArgs>): Prisma.PrismaPromise<GetBasemap_configsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Basemap_configs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {basemap_configsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends basemap_configsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: basemap_configsGroupByArgs['orderBy'] }
|
|
: { orderBy?: basemap_configsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, basemap_configsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBasemap_configsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the basemap_configs model
|
|
*/
|
|
readonly fields: basemap_configsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for basemap_configs.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__basemap_configsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the basemap_configs model
|
|
*/
|
|
interface basemap_configsFieldRefs {
|
|
readonly id: FieldRef<"basemap_configs", 'String'>
|
|
readonly name: FieldRef<"basemap_configs", 'String'>
|
|
readonly description: FieldRef<"basemap_configs", 'String'>
|
|
readonly svg_data: FieldRef<"basemap_configs", 'String'>
|
|
readonly calibration: FieldRef<"basemap_configs", 'Json'>
|
|
readonly dimensions: FieldRef<"basemap_configs", 'Json'>
|
|
readonly is_active: FieldRef<"basemap_configs", 'Boolean'>
|
|
readonly is_default: FieldRef<"basemap_configs", 'Boolean'>
|
|
readonly version: FieldRef<"basemap_configs", 'Int'>
|
|
readonly settings: FieldRef<"basemap_configs", 'Json'>
|
|
readonly metadata: FieldRef<"basemap_configs", 'Json'>
|
|
readonly file_size: FieldRef<"basemap_configs", 'Int'>
|
|
readonly checksum: FieldRef<"basemap_configs", 'String'>
|
|
readonly created_at: FieldRef<"basemap_configs", 'DateTime'>
|
|
readonly updated_at: FieldRef<"basemap_configs", 'DateTime'>
|
|
readonly created_by: FieldRef<"basemap_configs", 'String'>
|
|
readonly updated_by: FieldRef<"basemap_configs", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* basemap_configs findUnique
|
|
*/
|
|
export type basemap_configsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which basemap_configs to fetch.
|
|
*/
|
|
where: basemap_configsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* basemap_configs findUniqueOrThrow
|
|
*/
|
|
export type basemap_configsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which basemap_configs to fetch.
|
|
*/
|
|
where: basemap_configsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* basemap_configs findFirst
|
|
*/
|
|
export type basemap_configsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which basemap_configs to fetch.
|
|
*/
|
|
where?: basemap_configsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of basemap_configs to fetch.
|
|
*/
|
|
orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for basemap_configs.
|
|
*/
|
|
cursor?: basemap_configsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` basemap_configs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` basemap_configs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of basemap_configs.
|
|
*/
|
|
distinct?: Basemap_configsScalarFieldEnum | Basemap_configsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* basemap_configs findFirstOrThrow
|
|
*/
|
|
export type basemap_configsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which basemap_configs to fetch.
|
|
*/
|
|
where?: basemap_configsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of basemap_configs to fetch.
|
|
*/
|
|
orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for basemap_configs.
|
|
*/
|
|
cursor?: basemap_configsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` basemap_configs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` basemap_configs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of basemap_configs.
|
|
*/
|
|
distinct?: Basemap_configsScalarFieldEnum | Basemap_configsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* basemap_configs findMany
|
|
*/
|
|
export type basemap_configsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which basemap_configs to fetch.
|
|
*/
|
|
where?: basemap_configsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of basemap_configs to fetch.
|
|
*/
|
|
orderBy?: basemap_configsOrderByWithRelationInput | basemap_configsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing basemap_configs.
|
|
*/
|
|
cursor?: basemap_configsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` basemap_configs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` basemap_configs.
|
|
*/
|
|
skip?: number
|
|
distinct?: Basemap_configsScalarFieldEnum | Basemap_configsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* basemap_configs create
|
|
*/
|
|
export type basemap_configsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a basemap_configs.
|
|
*/
|
|
data: XOR<basemap_configsCreateInput, basemap_configsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* basemap_configs createMany
|
|
*/
|
|
export type basemap_configsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many basemap_configs.
|
|
*/
|
|
data: basemap_configsCreateManyInput | basemap_configsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* basemap_configs update
|
|
*/
|
|
export type basemap_configsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a basemap_configs.
|
|
*/
|
|
data: XOR<basemap_configsUpdateInput, basemap_configsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which basemap_configs to update.
|
|
*/
|
|
where: basemap_configsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* basemap_configs updateMany
|
|
*/
|
|
export type basemap_configsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update basemap_configs.
|
|
*/
|
|
data: XOR<basemap_configsUpdateManyMutationInput, basemap_configsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which basemap_configs to update
|
|
*/
|
|
where?: basemap_configsWhereInput
|
|
/**
|
|
* Limit how many basemap_configs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* basemap_configs upsert
|
|
*/
|
|
export type basemap_configsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the basemap_configs to update in case it exists.
|
|
*/
|
|
where: basemap_configsWhereUniqueInput
|
|
/**
|
|
* In case the basemap_configs found by the `where` argument doesn't exist, create a new basemap_configs with this data.
|
|
*/
|
|
create: XOR<basemap_configsCreateInput, basemap_configsUncheckedCreateInput>
|
|
/**
|
|
* In case the basemap_configs was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<basemap_configsUpdateInput, basemap_configsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* basemap_configs delete
|
|
*/
|
|
export type basemap_configsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which basemap_configs to delete.
|
|
*/
|
|
where: basemap_configsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* basemap_configs deleteMany
|
|
*/
|
|
export type basemap_configsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which basemap_configs to delete
|
|
*/
|
|
where?: basemap_configsWhereInput
|
|
/**
|
|
* Limit how many basemap_configs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* basemap_configs without action
|
|
*/
|
|
export type basemap_configsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the basemap_configs
|
|
*/
|
|
select?: basemap_configsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the basemap_configs
|
|
*/
|
|
omit?: basemap_configsOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model camera_health_log
|
|
*/
|
|
|
|
export type AggregateCamera_health_log = {
|
|
_count: Camera_health_logCountAggregateOutputType | null
|
|
_avg: Camera_health_logAvgAggregateOutputType | null
|
|
_sum: Camera_health_logSumAggregateOutputType | null
|
|
_min: Camera_health_logMinAggregateOutputType | null
|
|
_max: Camera_health_logMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Camera_health_logAvgAggregateOutputType = {
|
|
id: number | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
}
|
|
|
|
export type Camera_health_logSumAggregateOutputType = {
|
|
id: number | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
}
|
|
|
|
export type Camera_health_logMinAggregateOutputType = {
|
|
id: number | null
|
|
camera_id: string | null
|
|
status: string | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
error_message: string | null
|
|
stream_accessible: boolean | null
|
|
timestamp: Date | null
|
|
}
|
|
|
|
export type Camera_health_logMaxAggregateOutputType = {
|
|
id: number | null
|
|
camera_id: string | null
|
|
status: string | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
error_message: string | null
|
|
stream_accessible: boolean | null
|
|
timestamp: Date | null
|
|
}
|
|
|
|
export type Camera_health_logCountAggregateOutputType = {
|
|
id: number
|
|
camera_id: number
|
|
status: number
|
|
response_time: number
|
|
health_score: number
|
|
error_message: number
|
|
stream_accessible: number
|
|
timestamp: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Camera_health_logAvgAggregateInputType = {
|
|
id?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
}
|
|
|
|
export type Camera_health_logSumAggregateInputType = {
|
|
id?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
}
|
|
|
|
export type Camera_health_logMinAggregateInputType = {
|
|
id?: true
|
|
camera_id?: true
|
|
status?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
error_message?: true
|
|
stream_accessible?: true
|
|
timestamp?: true
|
|
}
|
|
|
|
export type Camera_health_logMaxAggregateInputType = {
|
|
id?: true
|
|
camera_id?: true
|
|
status?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
error_message?: true
|
|
stream_accessible?: true
|
|
timestamp?: true
|
|
}
|
|
|
|
export type Camera_health_logCountAggregateInputType = {
|
|
id?: true
|
|
camera_id?: true
|
|
status?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
error_message?: true
|
|
stream_accessible?: true
|
|
timestamp?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Camera_health_logAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which camera_health_log to aggregate.
|
|
*/
|
|
where?: camera_health_logWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of camera_health_logs to fetch.
|
|
*/
|
|
orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: camera_health_logWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` camera_health_logs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` camera_health_logs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned camera_health_logs
|
|
**/
|
|
_count?: true | Camera_health_logCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Camera_health_logAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Camera_health_logSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Camera_health_logMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Camera_health_logMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCamera_health_logAggregateType<T extends Camera_health_logAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCamera_health_log]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCamera_health_log[P]>
|
|
: GetScalarType<T[P], AggregateCamera_health_log[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type camera_health_logGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: camera_health_logWhereInput
|
|
orderBy?: camera_health_logOrderByWithAggregationInput | camera_health_logOrderByWithAggregationInput[]
|
|
by: Camera_health_logScalarFieldEnum[] | Camera_health_logScalarFieldEnum
|
|
having?: camera_health_logScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Camera_health_logCountAggregateInputType | true
|
|
_avg?: Camera_health_logAvgAggregateInputType
|
|
_sum?: Camera_health_logSumAggregateInputType
|
|
_min?: Camera_health_logMinAggregateInputType
|
|
_max?: Camera_health_logMaxAggregateInputType
|
|
}
|
|
|
|
export type Camera_health_logGroupByOutputType = {
|
|
id: number
|
|
camera_id: string
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message: string | null
|
|
stream_accessible: boolean | null
|
|
timestamp: Date | null
|
|
_count: Camera_health_logCountAggregateOutputType | null
|
|
_avg: Camera_health_logAvgAggregateOutputType | null
|
|
_sum: Camera_health_logSumAggregateOutputType | null
|
|
_min: Camera_health_logMinAggregateOutputType | null
|
|
_max: Camera_health_logMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCamera_health_logGroupByPayload<T extends camera_health_logGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Camera_health_logGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Camera_health_logGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Camera_health_logGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Camera_health_logGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type camera_health_logSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
camera_id?: boolean
|
|
status?: boolean
|
|
response_time?: boolean
|
|
health_score?: boolean
|
|
error_message?: boolean
|
|
stream_accessible?: boolean
|
|
timestamp?: boolean
|
|
cameras?: boolean | camerasDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["camera_health_log"]>
|
|
|
|
|
|
|
|
export type camera_health_logSelectScalar = {
|
|
id?: boolean
|
|
camera_id?: boolean
|
|
status?: boolean
|
|
response_time?: boolean
|
|
health_score?: boolean
|
|
error_message?: boolean
|
|
stream_accessible?: boolean
|
|
timestamp?: boolean
|
|
}
|
|
|
|
export type camera_health_logOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "camera_id" | "status" | "response_time" | "health_score" | "error_message" | "stream_accessible" | "timestamp", ExtArgs["result"]["camera_health_log"]>
|
|
export type camera_health_logInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
cameras?: boolean | camerasDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $camera_health_logPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "camera_health_log"
|
|
objects: {
|
|
cameras: Prisma.$camerasPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
camera_id: string
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message: string | null
|
|
stream_accessible: boolean | null
|
|
timestamp: Date | null
|
|
}, ExtArgs["result"]["camera_health_log"]>
|
|
composites: {}
|
|
}
|
|
|
|
type camera_health_logGetPayload<S extends boolean | null | undefined | camera_health_logDefaultArgs> = $Result.GetResult<Prisma.$camera_health_logPayload, S>
|
|
|
|
type camera_health_logCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<camera_health_logFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Camera_health_logCountAggregateInputType | true
|
|
}
|
|
|
|
export interface camera_health_logDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['camera_health_log'], meta: { name: 'camera_health_log' } }
|
|
/**
|
|
* Find zero or one Camera_health_log that matches the filter.
|
|
* @param {camera_health_logFindUniqueArgs} args - Arguments to find a Camera_health_log
|
|
* @example
|
|
* // Get one Camera_health_log
|
|
* const camera_health_log = await prisma.camera_health_log.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends camera_health_logFindUniqueArgs>(args: SelectSubset<T, camera_health_logFindUniqueArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Camera_health_log that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {camera_health_logFindUniqueOrThrowArgs} args - Arguments to find a Camera_health_log
|
|
* @example
|
|
* // Get one Camera_health_log
|
|
* const camera_health_log = await prisma.camera_health_log.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends camera_health_logFindUniqueOrThrowArgs>(args: SelectSubset<T, camera_health_logFindUniqueOrThrowArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Camera_health_log that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camera_health_logFindFirstArgs} args - Arguments to find a Camera_health_log
|
|
* @example
|
|
* // Get one Camera_health_log
|
|
* const camera_health_log = await prisma.camera_health_log.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends camera_health_logFindFirstArgs>(args?: SelectSubset<T, camera_health_logFindFirstArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Camera_health_log that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camera_health_logFindFirstOrThrowArgs} args - Arguments to find a Camera_health_log
|
|
* @example
|
|
* // Get one Camera_health_log
|
|
* const camera_health_log = await prisma.camera_health_log.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends camera_health_logFindFirstOrThrowArgs>(args?: SelectSubset<T, camera_health_logFindFirstOrThrowArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Camera_health_logs that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camera_health_logFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Camera_health_logs
|
|
* const camera_health_logs = await prisma.camera_health_log.findMany()
|
|
*
|
|
* // Get first 10 Camera_health_logs
|
|
* const camera_health_logs = await prisma.camera_health_log.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const camera_health_logWithIdOnly = await prisma.camera_health_log.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends camera_health_logFindManyArgs>(args?: SelectSubset<T, camera_health_logFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Camera_health_log.
|
|
* @param {camera_health_logCreateArgs} args - Arguments to create a Camera_health_log.
|
|
* @example
|
|
* // Create one Camera_health_log
|
|
* const Camera_health_log = await prisma.camera_health_log.create({
|
|
* data: {
|
|
* // ... data to create a Camera_health_log
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends camera_health_logCreateArgs>(args: SelectSubset<T, camera_health_logCreateArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Camera_health_logs.
|
|
* @param {camera_health_logCreateManyArgs} args - Arguments to create many Camera_health_logs.
|
|
* @example
|
|
* // Create many Camera_health_logs
|
|
* const camera_health_log = await prisma.camera_health_log.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends camera_health_logCreateManyArgs>(args?: SelectSubset<T, camera_health_logCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Camera_health_log.
|
|
* @param {camera_health_logDeleteArgs} args - Arguments to delete one Camera_health_log.
|
|
* @example
|
|
* // Delete one Camera_health_log
|
|
* const Camera_health_log = await prisma.camera_health_log.delete({
|
|
* where: {
|
|
* // ... filter to delete one Camera_health_log
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends camera_health_logDeleteArgs>(args: SelectSubset<T, camera_health_logDeleteArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Camera_health_log.
|
|
* @param {camera_health_logUpdateArgs} args - Arguments to update one Camera_health_log.
|
|
* @example
|
|
* // Update one Camera_health_log
|
|
* const camera_health_log = await prisma.camera_health_log.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends camera_health_logUpdateArgs>(args: SelectSubset<T, camera_health_logUpdateArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Camera_health_logs.
|
|
* @param {camera_health_logDeleteManyArgs} args - Arguments to filter Camera_health_logs to delete.
|
|
* @example
|
|
* // Delete a few Camera_health_logs
|
|
* const { count } = await prisma.camera_health_log.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends camera_health_logDeleteManyArgs>(args?: SelectSubset<T, camera_health_logDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Camera_health_logs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camera_health_logUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Camera_health_logs
|
|
* const camera_health_log = await prisma.camera_health_log.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends camera_health_logUpdateManyArgs>(args: SelectSubset<T, camera_health_logUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Camera_health_log.
|
|
* @param {camera_health_logUpsertArgs} args - Arguments to update or create a Camera_health_log.
|
|
* @example
|
|
* // Update or create a Camera_health_log
|
|
* const camera_health_log = await prisma.camera_health_log.upsert({
|
|
* create: {
|
|
* // ... data to create a Camera_health_log
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Camera_health_log we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends camera_health_logUpsertArgs>(args: SelectSubset<T, camera_health_logUpsertArgs<ExtArgs>>): Prisma__camera_health_logClient<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Camera_health_logs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camera_health_logCountArgs} args - Arguments to filter Camera_health_logs to count.
|
|
* @example
|
|
* // Count the number of Camera_health_logs
|
|
* const count = await prisma.camera_health_log.count({
|
|
* where: {
|
|
* // ... the filter for the Camera_health_logs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends camera_health_logCountArgs>(
|
|
args?: Subset<T, camera_health_logCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Camera_health_logCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Camera_health_log.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Camera_health_logAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Camera_health_logAggregateArgs>(args: Subset<T, Camera_health_logAggregateArgs>): Prisma.PrismaPromise<GetCamera_health_logAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Camera_health_log.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camera_health_logGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends camera_health_logGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: camera_health_logGroupByArgs['orderBy'] }
|
|
: { orderBy?: camera_health_logGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, camera_health_logGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCamera_health_logGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the camera_health_log model
|
|
*/
|
|
readonly fields: camera_health_logFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for camera_health_log.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__camera_health_logClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
cameras<T extends camerasDefaultArgs<ExtArgs> = {}>(args?: Subset<T, camerasDefaultArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the camera_health_log model
|
|
*/
|
|
interface camera_health_logFieldRefs {
|
|
readonly id: FieldRef<"camera_health_log", 'Int'>
|
|
readonly camera_id: FieldRef<"camera_health_log", 'String'>
|
|
readonly status: FieldRef<"camera_health_log", 'String'>
|
|
readonly response_time: FieldRef<"camera_health_log", 'Int'>
|
|
readonly health_score: FieldRef<"camera_health_log", 'Int'>
|
|
readonly error_message: FieldRef<"camera_health_log", 'String'>
|
|
readonly stream_accessible: FieldRef<"camera_health_log", 'Boolean'>
|
|
readonly timestamp: FieldRef<"camera_health_log", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* camera_health_log findUnique
|
|
*/
|
|
export type camera_health_logFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which camera_health_log to fetch.
|
|
*/
|
|
where: camera_health_logWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* camera_health_log findUniqueOrThrow
|
|
*/
|
|
export type camera_health_logFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which camera_health_log to fetch.
|
|
*/
|
|
where: camera_health_logWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* camera_health_log findFirst
|
|
*/
|
|
export type camera_health_logFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which camera_health_log to fetch.
|
|
*/
|
|
where?: camera_health_logWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of camera_health_logs to fetch.
|
|
*/
|
|
orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for camera_health_logs.
|
|
*/
|
|
cursor?: camera_health_logWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` camera_health_logs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` camera_health_logs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of camera_health_logs.
|
|
*/
|
|
distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* camera_health_log findFirstOrThrow
|
|
*/
|
|
export type camera_health_logFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which camera_health_log to fetch.
|
|
*/
|
|
where?: camera_health_logWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of camera_health_logs to fetch.
|
|
*/
|
|
orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for camera_health_logs.
|
|
*/
|
|
cursor?: camera_health_logWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` camera_health_logs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` camera_health_logs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of camera_health_logs.
|
|
*/
|
|
distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* camera_health_log findMany
|
|
*/
|
|
export type camera_health_logFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which camera_health_logs to fetch.
|
|
*/
|
|
where?: camera_health_logWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of camera_health_logs to fetch.
|
|
*/
|
|
orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing camera_health_logs.
|
|
*/
|
|
cursor?: camera_health_logWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` camera_health_logs from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` camera_health_logs.
|
|
*/
|
|
skip?: number
|
|
distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* camera_health_log create
|
|
*/
|
|
export type camera_health_logCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a camera_health_log.
|
|
*/
|
|
data: XOR<camera_health_logCreateInput, camera_health_logUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* camera_health_log createMany
|
|
*/
|
|
export type camera_health_logCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many camera_health_logs.
|
|
*/
|
|
data: camera_health_logCreateManyInput | camera_health_logCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* camera_health_log update
|
|
*/
|
|
export type camera_health_logUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a camera_health_log.
|
|
*/
|
|
data: XOR<camera_health_logUpdateInput, camera_health_logUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which camera_health_log to update.
|
|
*/
|
|
where: camera_health_logWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* camera_health_log updateMany
|
|
*/
|
|
export type camera_health_logUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update camera_health_logs.
|
|
*/
|
|
data: XOR<camera_health_logUpdateManyMutationInput, camera_health_logUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which camera_health_logs to update
|
|
*/
|
|
where?: camera_health_logWhereInput
|
|
/**
|
|
* Limit how many camera_health_logs to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* camera_health_log upsert
|
|
*/
|
|
export type camera_health_logUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the camera_health_log to update in case it exists.
|
|
*/
|
|
where: camera_health_logWhereUniqueInput
|
|
/**
|
|
* In case the camera_health_log found by the `where` argument doesn't exist, create a new camera_health_log with this data.
|
|
*/
|
|
create: XOR<camera_health_logCreateInput, camera_health_logUncheckedCreateInput>
|
|
/**
|
|
* In case the camera_health_log was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<camera_health_logUpdateInput, camera_health_logUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* camera_health_log delete
|
|
*/
|
|
export type camera_health_logDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which camera_health_log to delete.
|
|
*/
|
|
where: camera_health_logWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* camera_health_log deleteMany
|
|
*/
|
|
export type camera_health_logDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which camera_health_logs to delete
|
|
*/
|
|
where?: camera_health_logWhereInput
|
|
/**
|
|
* Limit how many camera_health_logs to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* camera_health_log without action
|
|
*/
|
|
export type camera_health_logDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model cameras
|
|
*/
|
|
|
|
export type AggregateCameras = {
|
|
_count: CamerasCountAggregateOutputType | null
|
|
_avg: CamerasAvgAggregateOutputType | null
|
|
_sum: CamerasSumAggregateOutputType | null
|
|
_min: CamerasMinAggregateOutputType | null
|
|
_max: CamerasMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CamerasAvgAggregateOutputType = {
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
}
|
|
|
|
export type CamerasSumAggregateOutputType = {
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
}
|
|
|
|
export type CamerasMinAggregateOutputType = {
|
|
id: string | null
|
|
label: string | null
|
|
area: string | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
stream_url: string | null
|
|
status: $Enums.cameras_status | null
|
|
last_heartbeat: Date | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
error_message: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type CamerasMaxAggregateOutputType = {
|
|
id: string | null
|
|
label: string | null
|
|
area: string | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
stream_url: string | null
|
|
status: $Enums.cameras_status | null
|
|
last_heartbeat: Date | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
error_message: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type CamerasCountAggregateOutputType = {
|
|
id: number
|
|
label: number
|
|
area: number
|
|
lat: number
|
|
lng: number
|
|
stream_url: number
|
|
status: number
|
|
last_heartbeat: number
|
|
response_time: number
|
|
health_score: number
|
|
error_message: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CamerasAvgAggregateInputType = {
|
|
lat?: true
|
|
lng?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
}
|
|
|
|
export type CamerasSumAggregateInputType = {
|
|
lat?: true
|
|
lng?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
}
|
|
|
|
export type CamerasMinAggregateInputType = {
|
|
id?: true
|
|
label?: true
|
|
area?: true
|
|
lat?: true
|
|
lng?: true
|
|
stream_url?: true
|
|
status?: true
|
|
last_heartbeat?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
error_message?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type CamerasMaxAggregateInputType = {
|
|
id?: true
|
|
label?: true
|
|
area?: true
|
|
lat?: true
|
|
lng?: true
|
|
stream_url?: true
|
|
status?: true
|
|
last_heartbeat?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
error_message?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type CamerasCountAggregateInputType = {
|
|
id?: true
|
|
label?: true
|
|
area?: true
|
|
lat?: true
|
|
lng?: true
|
|
stream_url?: true
|
|
status?: true
|
|
last_heartbeat?: true
|
|
response_time?: true
|
|
health_score?: true
|
|
error_message?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CamerasAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which cameras to aggregate.
|
|
*/
|
|
where?: camerasWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of cameras to fetch.
|
|
*/
|
|
orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: camerasWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` cameras from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` cameras.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned cameras
|
|
**/
|
|
_count?: true | CamerasCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CamerasAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CamerasSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CamerasMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CamerasMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCamerasAggregateType<T extends CamerasAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCameras]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCameras[P]>
|
|
: GetScalarType<T[P], AggregateCameras[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type camerasGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: camerasWhereInput
|
|
orderBy?: camerasOrderByWithAggregationInput | camerasOrderByWithAggregationInput[]
|
|
by: CamerasScalarFieldEnum[] | CamerasScalarFieldEnum
|
|
having?: camerasScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CamerasCountAggregateInputType | true
|
|
_avg?: CamerasAvgAggregateInputType
|
|
_sum?: CamerasSumAggregateInputType
|
|
_min?: CamerasMinAggregateInputType
|
|
_max?: CamerasMaxAggregateInputType
|
|
}
|
|
|
|
export type CamerasGroupByOutputType = {
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Decimal
|
|
lng: Decimal
|
|
stream_url: string
|
|
status: $Enums.cameras_status | null
|
|
last_heartbeat: Date | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
error_message: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: CamerasCountAggregateOutputType | null
|
|
_avg: CamerasAvgAggregateOutputType | null
|
|
_sum: CamerasSumAggregateOutputType | null
|
|
_min: CamerasMinAggregateOutputType | null
|
|
_max: CamerasMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCamerasGroupByPayload<T extends camerasGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CamerasGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CamerasGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CamerasGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CamerasGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type camerasSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
label?: boolean
|
|
area?: boolean
|
|
lat?: boolean
|
|
lng?: boolean
|
|
stream_url?: boolean
|
|
status?: boolean
|
|
last_heartbeat?: boolean
|
|
response_time?: boolean
|
|
health_score?: boolean
|
|
error_message?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
camera_health_log?: boolean | cameras$camera_health_logArgs<ExtArgs>
|
|
_count?: boolean | CamerasCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["cameras"]>
|
|
|
|
|
|
|
|
export type camerasSelectScalar = {
|
|
id?: boolean
|
|
label?: boolean
|
|
area?: boolean
|
|
lat?: boolean
|
|
lng?: boolean
|
|
stream_url?: boolean
|
|
status?: boolean
|
|
last_heartbeat?: boolean
|
|
response_time?: boolean
|
|
health_score?: boolean
|
|
error_message?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type camerasOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "label" | "area" | "lat" | "lng" | "stream_url" | "status" | "last_heartbeat" | "response_time" | "health_score" | "error_message" | "created_at" | "updated_at", ExtArgs["result"]["cameras"]>
|
|
export type camerasInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
camera_health_log?: boolean | cameras$camera_health_logArgs<ExtArgs>
|
|
_count?: boolean | CamerasCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $camerasPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "cameras"
|
|
objects: {
|
|
camera_health_log: Prisma.$camera_health_logPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Prisma.Decimal
|
|
lng: Prisma.Decimal
|
|
stream_url: string
|
|
status: $Enums.cameras_status | null
|
|
last_heartbeat: Date | null
|
|
response_time: number | null
|
|
health_score: number | null
|
|
error_message: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["cameras"]>
|
|
composites: {}
|
|
}
|
|
|
|
type camerasGetPayload<S extends boolean | null | undefined | camerasDefaultArgs> = $Result.GetResult<Prisma.$camerasPayload, S>
|
|
|
|
type camerasCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<camerasFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CamerasCountAggregateInputType | true
|
|
}
|
|
|
|
export interface camerasDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['cameras'], meta: { name: 'cameras' } }
|
|
/**
|
|
* Find zero or one Cameras that matches the filter.
|
|
* @param {camerasFindUniqueArgs} args - Arguments to find a Cameras
|
|
* @example
|
|
* // Get one Cameras
|
|
* const cameras = await prisma.cameras.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends camerasFindUniqueArgs>(args: SelectSubset<T, camerasFindUniqueArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Cameras that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {camerasFindUniqueOrThrowArgs} args - Arguments to find a Cameras
|
|
* @example
|
|
* // Get one Cameras
|
|
* const cameras = await prisma.cameras.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends camerasFindUniqueOrThrowArgs>(args: SelectSubset<T, camerasFindUniqueOrThrowArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Cameras that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camerasFindFirstArgs} args - Arguments to find a Cameras
|
|
* @example
|
|
* // Get one Cameras
|
|
* const cameras = await prisma.cameras.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends camerasFindFirstArgs>(args?: SelectSubset<T, camerasFindFirstArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Cameras that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camerasFindFirstOrThrowArgs} args - Arguments to find a Cameras
|
|
* @example
|
|
* // Get one Cameras
|
|
* const cameras = await prisma.cameras.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends camerasFindFirstOrThrowArgs>(args?: SelectSubset<T, camerasFindFirstOrThrowArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Cameras that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camerasFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Cameras
|
|
* const cameras = await prisma.cameras.findMany()
|
|
*
|
|
* // Get first 10 Cameras
|
|
* const cameras = await prisma.cameras.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const camerasWithIdOnly = await prisma.cameras.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends camerasFindManyArgs>(args?: SelectSubset<T, camerasFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Cameras.
|
|
* @param {camerasCreateArgs} args - Arguments to create a Cameras.
|
|
* @example
|
|
* // Create one Cameras
|
|
* const Cameras = await prisma.cameras.create({
|
|
* data: {
|
|
* // ... data to create a Cameras
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends camerasCreateArgs>(args: SelectSubset<T, camerasCreateArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Cameras.
|
|
* @param {camerasCreateManyArgs} args - Arguments to create many Cameras.
|
|
* @example
|
|
* // Create many Cameras
|
|
* const cameras = await prisma.cameras.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends camerasCreateManyArgs>(args?: SelectSubset<T, camerasCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Cameras.
|
|
* @param {camerasDeleteArgs} args - Arguments to delete one Cameras.
|
|
* @example
|
|
* // Delete one Cameras
|
|
* const Cameras = await prisma.cameras.delete({
|
|
* where: {
|
|
* // ... filter to delete one Cameras
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends camerasDeleteArgs>(args: SelectSubset<T, camerasDeleteArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Cameras.
|
|
* @param {camerasUpdateArgs} args - Arguments to update one Cameras.
|
|
* @example
|
|
* // Update one Cameras
|
|
* const cameras = await prisma.cameras.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends camerasUpdateArgs>(args: SelectSubset<T, camerasUpdateArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Cameras.
|
|
* @param {camerasDeleteManyArgs} args - Arguments to filter Cameras to delete.
|
|
* @example
|
|
* // Delete a few Cameras
|
|
* const { count } = await prisma.cameras.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends camerasDeleteManyArgs>(args?: SelectSubset<T, camerasDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Cameras.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camerasUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Cameras
|
|
* const cameras = await prisma.cameras.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends camerasUpdateManyArgs>(args: SelectSubset<T, camerasUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Cameras.
|
|
* @param {camerasUpsertArgs} args - Arguments to update or create a Cameras.
|
|
* @example
|
|
* // Update or create a Cameras
|
|
* const cameras = await prisma.cameras.upsert({
|
|
* create: {
|
|
* // ... data to create a Cameras
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Cameras we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends camerasUpsertArgs>(args: SelectSubset<T, camerasUpsertArgs<ExtArgs>>): Prisma__camerasClient<$Result.GetResult<Prisma.$camerasPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Cameras.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camerasCountArgs} args - Arguments to filter Cameras to count.
|
|
* @example
|
|
* // Count the number of Cameras
|
|
* const count = await prisma.cameras.count({
|
|
* where: {
|
|
* // ... the filter for the Cameras we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends camerasCountArgs>(
|
|
args?: Subset<T, camerasCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CamerasCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Cameras.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CamerasAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CamerasAggregateArgs>(args: Subset<T, CamerasAggregateArgs>): Prisma.PrismaPromise<GetCamerasAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Cameras.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {camerasGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends camerasGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: camerasGroupByArgs['orderBy'] }
|
|
: { orderBy?: camerasGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, camerasGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCamerasGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the cameras model
|
|
*/
|
|
readonly fields: camerasFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for cameras.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__camerasClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
camera_health_log<T extends cameras$camera_health_logArgs<ExtArgs> = {}>(args?: Subset<T, cameras$camera_health_logArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$camera_health_logPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the cameras model
|
|
*/
|
|
interface camerasFieldRefs {
|
|
readonly id: FieldRef<"cameras", 'String'>
|
|
readonly label: FieldRef<"cameras", 'String'>
|
|
readonly area: FieldRef<"cameras", 'String'>
|
|
readonly lat: FieldRef<"cameras", 'Decimal'>
|
|
readonly lng: FieldRef<"cameras", 'Decimal'>
|
|
readonly stream_url: FieldRef<"cameras", 'String'>
|
|
readonly status: FieldRef<"cameras", 'cameras_status'>
|
|
readonly last_heartbeat: FieldRef<"cameras", 'DateTime'>
|
|
readonly response_time: FieldRef<"cameras", 'Int'>
|
|
readonly health_score: FieldRef<"cameras", 'Int'>
|
|
readonly error_message: FieldRef<"cameras", 'String'>
|
|
readonly created_at: FieldRef<"cameras", 'DateTime'>
|
|
readonly updated_at: FieldRef<"cameras", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* cameras findUnique
|
|
*/
|
|
export type camerasFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which cameras to fetch.
|
|
*/
|
|
where: camerasWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* cameras findUniqueOrThrow
|
|
*/
|
|
export type camerasFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which cameras to fetch.
|
|
*/
|
|
where: camerasWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* cameras findFirst
|
|
*/
|
|
export type camerasFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which cameras to fetch.
|
|
*/
|
|
where?: camerasWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of cameras to fetch.
|
|
*/
|
|
orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for cameras.
|
|
*/
|
|
cursor?: camerasWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` cameras from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` cameras.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of cameras.
|
|
*/
|
|
distinct?: CamerasScalarFieldEnum | CamerasScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* cameras findFirstOrThrow
|
|
*/
|
|
export type camerasFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which cameras to fetch.
|
|
*/
|
|
where?: camerasWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of cameras to fetch.
|
|
*/
|
|
orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for cameras.
|
|
*/
|
|
cursor?: camerasWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` cameras from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` cameras.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of cameras.
|
|
*/
|
|
distinct?: CamerasScalarFieldEnum | CamerasScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* cameras findMany
|
|
*/
|
|
export type camerasFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which cameras to fetch.
|
|
*/
|
|
where?: camerasWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of cameras to fetch.
|
|
*/
|
|
orderBy?: camerasOrderByWithRelationInput | camerasOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing cameras.
|
|
*/
|
|
cursor?: camerasWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` cameras from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` cameras.
|
|
*/
|
|
skip?: number
|
|
distinct?: CamerasScalarFieldEnum | CamerasScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* cameras create
|
|
*/
|
|
export type camerasCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a cameras.
|
|
*/
|
|
data: XOR<camerasCreateInput, camerasUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* cameras createMany
|
|
*/
|
|
export type camerasCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many cameras.
|
|
*/
|
|
data: camerasCreateManyInput | camerasCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* cameras update
|
|
*/
|
|
export type camerasUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a cameras.
|
|
*/
|
|
data: XOR<camerasUpdateInput, camerasUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which cameras to update.
|
|
*/
|
|
where: camerasWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* cameras updateMany
|
|
*/
|
|
export type camerasUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update cameras.
|
|
*/
|
|
data: XOR<camerasUpdateManyMutationInput, camerasUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which cameras to update
|
|
*/
|
|
where?: camerasWhereInput
|
|
/**
|
|
* Limit how many cameras to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* cameras upsert
|
|
*/
|
|
export type camerasUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the cameras to update in case it exists.
|
|
*/
|
|
where: camerasWhereUniqueInput
|
|
/**
|
|
* In case the cameras found by the `where` argument doesn't exist, create a new cameras with this data.
|
|
*/
|
|
create: XOR<camerasCreateInput, camerasUncheckedCreateInput>
|
|
/**
|
|
* In case the cameras was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<camerasUpdateInput, camerasUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* cameras delete
|
|
*/
|
|
export type camerasDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which cameras to delete.
|
|
*/
|
|
where: camerasWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* cameras deleteMany
|
|
*/
|
|
export type camerasDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which cameras to delete
|
|
*/
|
|
where?: camerasWhereInput
|
|
/**
|
|
* Limit how many cameras to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* cameras.camera_health_log
|
|
*/
|
|
export type cameras$camera_health_logArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the camera_health_log
|
|
*/
|
|
select?: camera_health_logSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the camera_health_log
|
|
*/
|
|
omit?: camera_health_logOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camera_health_logInclude<ExtArgs> | null
|
|
where?: camera_health_logWhereInput
|
|
orderBy?: camera_health_logOrderByWithRelationInput | camera_health_logOrderByWithRelationInput[]
|
|
cursor?: camera_health_logWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Camera_health_logScalarFieldEnum | Camera_health_logScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* cameras without action
|
|
*/
|
|
export type camerasDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the cameras
|
|
*/
|
|
select?: camerasSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the cameras
|
|
*/
|
|
omit?: camerasOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: camerasInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model feature_flags
|
|
*/
|
|
|
|
export type AggregateFeature_flags = {
|
|
_count: Feature_flagsCountAggregateOutputType | null
|
|
_avg: Feature_flagsAvgAggregateOutputType | null
|
|
_sum: Feature_flagsSumAggregateOutputType | null
|
|
_min: Feature_flagsMinAggregateOutputType | null
|
|
_max: Feature_flagsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Feature_flagsAvgAggregateOutputType = {
|
|
rollout_percentage: Decimal | null
|
|
evaluation_count: number | null
|
|
}
|
|
|
|
export type Feature_flagsSumAggregateOutputType = {
|
|
rollout_percentage: Decimal | null
|
|
evaluation_count: bigint | null
|
|
}
|
|
|
|
export type Feature_flagsMinAggregateOutputType = {
|
|
id: string | null
|
|
key: string | null
|
|
name: string | null
|
|
description: string | null
|
|
is_enabled: boolean | null
|
|
type: string | null
|
|
environment: string | null
|
|
category: string | null
|
|
rollout_percentage: Decimal | null
|
|
is_archived: boolean | null
|
|
is_permanent: boolean | null
|
|
expires_at: Date | null
|
|
last_evaluated_at: Date | null
|
|
evaluation_count: bigint | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
enabled_at: Date | null
|
|
disabled_at: Date | null
|
|
}
|
|
|
|
export type Feature_flagsMaxAggregateOutputType = {
|
|
id: string | null
|
|
key: string | null
|
|
name: string | null
|
|
description: string | null
|
|
is_enabled: boolean | null
|
|
type: string | null
|
|
environment: string | null
|
|
category: string | null
|
|
rollout_percentage: Decimal | null
|
|
is_archived: boolean | null
|
|
is_permanent: boolean | null
|
|
expires_at: Date | null
|
|
last_evaluated_at: Date | null
|
|
evaluation_count: bigint | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
enabled_at: Date | null
|
|
disabled_at: Date | null
|
|
}
|
|
|
|
export type Feature_flagsCountAggregateOutputType = {
|
|
id: number
|
|
key: number
|
|
name: number
|
|
description: number
|
|
is_enabled: number
|
|
type: number
|
|
value: number
|
|
default_value: number
|
|
environment: number
|
|
category: number
|
|
tags: number
|
|
conditions: number
|
|
rollout_percentage: number
|
|
user_segments: number
|
|
is_archived: number
|
|
is_permanent: number
|
|
expires_at: number
|
|
last_evaluated_at: number
|
|
evaluation_count: number
|
|
metadata: number
|
|
created_at: number
|
|
updated_at: number
|
|
created_by: number
|
|
updated_by: number
|
|
enabled_at: number
|
|
disabled_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Feature_flagsAvgAggregateInputType = {
|
|
rollout_percentage?: true
|
|
evaluation_count?: true
|
|
}
|
|
|
|
export type Feature_flagsSumAggregateInputType = {
|
|
rollout_percentage?: true
|
|
evaluation_count?: true
|
|
}
|
|
|
|
export type Feature_flagsMinAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
name?: true
|
|
description?: true
|
|
is_enabled?: true
|
|
type?: true
|
|
environment?: true
|
|
category?: true
|
|
rollout_percentage?: true
|
|
is_archived?: true
|
|
is_permanent?: true
|
|
expires_at?: true
|
|
last_evaluated_at?: true
|
|
evaluation_count?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
enabled_at?: true
|
|
disabled_at?: true
|
|
}
|
|
|
|
export type Feature_flagsMaxAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
name?: true
|
|
description?: true
|
|
is_enabled?: true
|
|
type?: true
|
|
environment?: true
|
|
category?: true
|
|
rollout_percentage?: true
|
|
is_archived?: true
|
|
is_permanent?: true
|
|
expires_at?: true
|
|
last_evaluated_at?: true
|
|
evaluation_count?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
enabled_at?: true
|
|
disabled_at?: true
|
|
}
|
|
|
|
export type Feature_flagsCountAggregateInputType = {
|
|
id?: true
|
|
key?: true
|
|
name?: true
|
|
description?: true
|
|
is_enabled?: true
|
|
type?: true
|
|
value?: true
|
|
default_value?: true
|
|
environment?: true
|
|
category?: true
|
|
tags?: true
|
|
conditions?: true
|
|
rollout_percentage?: true
|
|
user_segments?: true
|
|
is_archived?: true
|
|
is_permanent?: true
|
|
expires_at?: true
|
|
last_evaluated_at?: true
|
|
evaluation_count?: true
|
|
metadata?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
enabled_at?: true
|
|
disabled_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Feature_flagsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which feature_flags to aggregate.
|
|
*/
|
|
where?: feature_flagsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of feature_flags to fetch.
|
|
*/
|
|
orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: feature_flagsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` feature_flags from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` feature_flags.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned feature_flags
|
|
**/
|
|
_count?: true | Feature_flagsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Feature_flagsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Feature_flagsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Feature_flagsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Feature_flagsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFeature_flagsAggregateType<T extends Feature_flagsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFeature_flags]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateFeature_flags[P]>
|
|
: GetScalarType<T[P], AggregateFeature_flags[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type feature_flagsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: feature_flagsWhereInput
|
|
orderBy?: feature_flagsOrderByWithAggregationInput | feature_flagsOrderByWithAggregationInput[]
|
|
by: Feature_flagsScalarFieldEnum[] | Feature_flagsScalarFieldEnum
|
|
having?: feature_flagsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Feature_flagsCountAggregateInputType | true
|
|
_avg?: Feature_flagsAvgAggregateInputType
|
|
_sum?: Feature_flagsSumAggregateInputType
|
|
_min?: Feature_flagsMinAggregateInputType
|
|
_max?: Feature_flagsMaxAggregateInputType
|
|
}
|
|
|
|
export type Feature_flagsGroupByOutputType = {
|
|
id: string
|
|
key: string
|
|
name: string
|
|
description: string | null
|
|
is_enabled: boolean | null
|
|
type: string
|
|
value: JsonValue | null
|
|
default_value: JsonValue | null
|
|
environment: string | null
|
|
category: string | null
|
|
tags: JsonValue | null
|
|
conditions: JsonValue | null
|
|
rollout_percentage: Decimal | null
|
|
user_segments: JsonValue | null
|
|
is_archived: boolean | null
|
|
is_permanent: boolean | null
|
|
expires_at: Date | null
|
|
last_evaluated_at: Date | null
|
|
evaluation_count: bigint | null
|
|
metadata: JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
enabled_at: Date | null
|
|
disabled_at: Date | null
|
|
_count: Feature_flagsCountAggregateOutputType | null
|
|
_avg: Feature_flagsAvgAggregateOutputType | null
|
|
_sum: Feature_flagsSumAggregateOutputType | null
|
|
_min: Feature_flagsMinAggregateOutputType | null
|
|
_max: Feature_flagsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetFeature_flagsGroupByPayload<T extends feature_flagsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Feature_flagsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Feature_flagsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Feature_flagsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Feature_flagsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type feature_flagsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
is_enabled?: boolean
|
|
type?: boolean
|
|
value?: boolean
|
|
default_value?: boolean
|
|
environment?: boolean
|
|
category?: boolean
|
|
tags?: boolean
|
|
conditions?: boolean
|
|
rollout_percentage?: boolean
|
|
user_segments?: boolean
|
|
is_archived?: boolean
|
|
is_permanent?: boolean
|
|
expires_at?: boolean
|
|
last_evaluated_at?: boolean
|
|
evaluation_count?: boolean
|
|
metadata?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
enabled_at?: boolean
|
|
disabled_at?: boolean
|
|
}, ExtArgs["result"]["feature_flags"]>
|
|
|
|
|
|
|
|
export type feature_flagsSelectScalar = {
|
|
id?: boolean
|
|
key?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
is_enabled?: boolean
|
|
type?: boolean
|
|
value?: boolean
|
|
default_value?: boolean
|
|
environment?: boolean
|
|
category?: boolean
|
|
tags?: boolean
|
|
conditions?: boolean
|
|
rollout_percentage?: boolean
|
|
user_segments?: boolean
|
|
is_archived?: boolean
|
|
is_permanent?: boolean
|
|
expires_at?: boolean
|
|
last_evaluated_at?: boolean
|
|
evaluation_count?: boolean
|
|
metadata?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
enabled_at?: boolean
|
|
disabled_at?: boolean
|
|
}
|
|
|
|
export type feature_flagsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "key" | "name" | "description" | "is_enabled" | "type" | "value" | "default_value" | "environment" | "category" | "tags" | "conditions" | "rollout_percentage" | "user_segments" | "is_archived" | "is_permanent" | "expires_at" | "last_evaluated_at" | "evaluation_count" | "metadata" | "created_at" | "updated_at" | "created_by" | "updated_by" | "enabled_at" | "disabled_at", ExtArgs["result"]["feature_flags"]>
|
|
|
|
export type $feature_flagsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "feature_flags"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
key: string
|
|
name: string
|
|
description: string | null
|
|
is_enabled: boolean | null
|
|
type: string
|
|
value: Prisma.JsonValue | null
|
|
default_value: Prisma.JsonValue | null
|
|
environment: string | null
|
|
category: string | null
|
|
tags: Prisma.JsonValue | null
|
|
conditions: Prisma.JsonValue | null
|
|
rollout_percentage: Prisma.Decimal | null
|
|
user_segments: Prisma.JsonValue | null
|
|
is_archived: boolean | null
|
|
is_permanent: boolean | null
|
|
expires_at: Date | null
|
|
last_evaluated_at: Date | null
|
|
evaluation_count: bigint | null
|
|
metadata: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
enabled_at: Date | null
|
|
disabled_at: Date | null
|
|
}, ExtArgs["result"]["feature_flags"]>
|
|
composites: {}
|
|
}
|
|
|
|
type feature_flagsGetPayload<S extends boolean | null | undefined | feature_flagsDefaultArgs> = $Result.GetResult<Prisma.$feature_flagsPayload, S>
|
|
|
|
type feature_flagsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<feature_flagsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Feature_flagsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface feature_flagsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['feature_flags'], meta: { name: 'feature_flags' } }
|
|
/**
|
|
* Find zero or one Feature_flags that matches the filter.
|
|
* @param {feature_flagsFindUniqueArgs} args - Arguments to find a Feature_flags
|
|
* @example
|
|
* // Get one Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends feature_flagsFindUniqueArgs>(args: SelectSubset<T, feature_flagsFindUniqueArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Feature_flags that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {feature_flagsFindUniqueOrThrowArgs} args - Arguments to find a Feature_flags
|
|
* @example
|
|
* // Get one Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends feature_flagsFindUniqueOrThrowArgs>(args: SelectSubset<T, feature_flagsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Feature_flags that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {feature_flagsFindFirstArgs} args - Arguments to find a Feature_flags
|
|
* @example
|
|
* // Get one Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends feature_flagsFindFirstArgs>(args?: SelectSubset<T, feature_flagsFindFirstArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Feature_flags that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {feature_flagsFindFirstOrThrowArgs} args - Arguments to find a Feature_flags
|
|
* @example
|
|
* // Get one Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends feature_flagsFindFirstOrThrowArgs>(args?: SelectSubset<T, feature_flagsFindFirstOrThrowArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Feature_flags that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {feature_flagsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findMany()
|
|
*
|
|
* // Get first 10 Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const feature_flagsWithIdOnly = await prisma.feature_flags.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends feature_flagsFindManyArgs>(args?: SelectSubset<T, feature_flagsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Feature_flags.
|
|
* @param {feature_flagsCreateArgs} args - Arguments to create a Feature_flags.
|
|
* @example
|
|
* // Create one Feature_flags
|
|
* const Feature_flags = await prisma.feature_flags.create({
|
|
* data: {
|
|
* // ... data to create a Feature_flags
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends feature_flagsCreateArgs>(args: SelectSubset<T, feature_flagsCreateArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Feature_flags.
|
|
* @param {feature_flagsCreateManyArgs} args - Arguments to create many Feature_flags.
|
|
* @example
|
|
* // Create many Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends feature_flagsCreateManyArgs>(args?: SelectSubset<T, feature_flagsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Feature_flags.
|
|
* @param {feature_flagsDeleteArgs} args - Arguments to delete one Feature_flags.
|
|
* @example
|
|
* // Delete one Feature_flags
|
|
* const Feature_flags = await prisma.feature_flags.delete({
|
|
* where: {
|
|
* // ... filter to delete one Feature_flags
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends feature_flagsDeleteArgs>(args: SelectSubset<T, feature_flagsDeleteArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Feature_flags.
|
|
* @param {feature_flagsUpdateArgs} args - Arguments to update one Feature_flags.
|
|
* @example
|
|
* // Update one Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends feature_flagsUpdateArgs>(args: SelectSubset<T, feature_flagsUpdateArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Feature_flags.
|
|
* @param {feature_flagsDeleteManyArgs} args - Arguments to filter Feature_flags to delete.
|
|
* @example
|
|
* // Delete a few Feature_flags
|
|
* const { count } = await prisma.feature_flags.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends feature_flagsDeleteManyArgs>(args?: SelectSubset<T, feature_flagsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Feature_flags.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {feature_flagsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends feature_flagsUpdateManyArgs>(args: SelectSubset<T, feature_flagsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Feature_flags.
|
|
* @param {feature_flagsUpsertArgs} args - Arguments to update or create a Feature_flags.
|
|
* @example
|
|
* // Update or create a Feature_flags
|
|
* const feature_flags = await prisma.feature_flags.upsert({
|
|
* create: {
|
|
* // ... data to create a Feature_flags
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Feature_flags we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends feature_flagsUpsertArgs>(args: SelectSubset<T, feature_flagsUpsertArgs<ExtArgs>>): Prisma__feature_flagsClient<$Result.GetResult<Prisma.$feature_flagsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Feature_flags.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {feature_flagsCountArgs} args - Arguments to filter Feature_flags to count.
|
|
* @example
|
|
* // Count the number of Feature_flags
|
|
* const count = await prisma.feature_flags.count({
|
|
* where: {
|
|
* // ... the filter for the Feature_flags we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends feature_flagsCountArgs>(
|
|
args?: Subset<T, feature_flagsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Feature_flagsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Feature_flags.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Feature_flagsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Feature_flagsAggregateArgs>(args: Subset<T, Feature_flagsAggregateArgs>): Prisma.PrismaPromise<GetFeature_flagsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Feature_flags.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {feature_flagsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends feature_flagsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: feature_flagsGroupByArgs['orderBy'] }
|
|
: { orderBy?: feature_flagsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, feature_flagsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFeature_flagsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the feature_flags model
|
|
*/
|
|
readonly fields: feature_flagsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for feature_flags.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__feature_flagsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the feature_flags model
|
|
*/
|
|
interface feature_flagsFieldRefs {
|
|
readonly id: FieldRef<"feature_flags", 'String'>
|
|
readonly key: FieldRef<"feature_flags", 'String'>
|
|
readonly name: FieldRef<"feature_flags", 'String'>
|
|
readonly description: FieldRef<"feature_flags", 'String'>
|
|
readonly is_enabled: FieldRef<"feature_flags", 'Boolean'>
|
|
readonly type: FieldRef<"feature_flags", 'String'>
|
|
readonly value: FieldRef<"feature_flags", 'Json'>
|
|
readonly default_value: FieldRef<"feature_flags", 'Json'>
|
|
readonly environment: FieldRef<"feature_flags", 'String'>
|
|
readonly category: FieldRef<"feature_flags", 'String'>
|
|
readonly tags: FieldRef<"feature_flags", 'Json'>
|
|
readonly conditions: FieldRef<"feature_flags", 'Json'>
|
|
readonly rollout_percentage: FieldRef<"feature_flags", 'Decimal'>
|
|
readonly user_segments: FieldRef<"feature_flags", 'Json'>
|
|
readonly is_archived: FieldRef<"feature_flags", 'Boolean'>
|
|
readonly is_permanent: FieldRef<"feature_flags", 'Boolean'>
|
|
readonly expires_at: FieldRef<"feature_flags", 'DateTime'>
|
|
readonly last_evaluated_at: FieldRef<"feature_flags", 'DateTime'>
|
|
readonly evaluation_count: FieldRef<"feature_flags", 'BigInt'>
|
|
readonly metadata: FieldRef<"feature_flags", 'Json'>
|
|
readonly created_at: FieldRef<"feature_flags", 'DateTime'>
|
|
readonly updated_at: FieldRef<"feature_flags", 'DateTime'>
|
|
readonly created_by: FieldRef<"feature_flags", 'String'>
|
|
readonly updated_by: FieldRef<"feature_flags", 'String'>
|
|
readonly enabled_at: FieldRef<"feature_flags", 'DateTime'>
|
|
readonly disabled_at: FieldRef<"feature_flags", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* feature_flags findUnique
|
|
*/
|
|
export type feature_flagsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which feature_flags to fetch.
|
|
*/
|
|
where: feature_flagsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* feature_flags findUniqueOrThrow
|
|
*/
|
|
export type feature_flagsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which feature_flags to fetch.
|
|
*/
|
|
where: feature_flagsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* feature_flags findFirst
|
|
*/
|
|
export type feature_flagsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which feature_flags to fetch.
|
|
*/
|
|
where?: feature_flagsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of feature_flags to fetch.
|
|
*/
|
|
orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for feature_flags.
|
|
*/
|
|
cursor?: feature_flagsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` feature_flags from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` feature_flags.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of feature_flags.
|
|
*/
|
|
distinct?: Feature_flagsScalarFieldEnum | Feature_flagsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* feature_flags findFirstOrThrow
|
|
*/
|
|
export type feature_flagsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which feature_flags to fetch.
|
|
*/
|
|
where?: feature_flagsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of feature_flags to fetch.
|
|
*/
|
|
orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for feature_flags.
|
|
*/
|
|
cursor?: feature_flagsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` feature_flags from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` feature_flags.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of feature_flags.
|
|
*/
|
|
distinct?: Feature_flagsScalarFieldEnum | Feature_flagsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* feature_flags findMany
|
|
*/
|
|
export type feature_flagsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which feature_flags to fetch.
|
|
*/
|
|
where?: feature_flagsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of feature_flags to fetch.
|
|
*/
|
|
orderBy?: feature_flagsOrderByWithRelationInput | feature_flagsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing feature_flags.
|
|
*/
|
|
cursor?: feature_flagsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` feature_flags from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` feature_flags.
|
|
*/
|
|
skip?: number
|
|
distinct?: Feature_flagsScalarFieldEnum | Feature_flagsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* feature_flags create
|
|
*/
|
|
export type feature_flagsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a feature_flags.
|
|
*/
|
|
data: XOR<feature_flagsCreateInput, feature_flagsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* feature_flags createMany
|
|
*/
|
|
export type feature_flagsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many feature_flags.
|
|
*/
|
|
data: feature_flagsCreateManyInput | feature_flagsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* feature_flags update
|
|
*/
|
|
export type feature_flagsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a feature_flags.
|
|
*/
|
|
data: XOR<feature_flagsUpdateInput, feature_flagsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which feature_flags to update.
|
|
*/
|
|
where: feature_flagsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* feature_flags updateMany
|
|
*/
|
|
export type feature_flagsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update feature_flags.
|
|
*/
|
|
data: XOR<feature_flagsUpdateManyMutationInput, feature_flagsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which feature_flags to update
|
|
*/
|
|
where?: feature_flagsWhereInput
|
|
/**
|
|
* Limit how many feature_flags to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* feature_flags upsert
|
|
*/
|
|
export type feature_flagsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the feature_flags to update in case it exists.
|
|
*/
|
|
where: feature_flagsWhereUniqueInput
|
|
/**
|
|
* In case the feature_flags found by the `where` argument doesn't exist, create a new feature_flags with this data.
|
|
*/
|
|
create: XOR<feature_flagsCreateInput, feature_flagsUncheckedCreateInput>
|
|
/**
|
|
* In case the feature_flags was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<feature_flagsUpdateInput, feature_flagsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* feature_flags delete
|
|
*/
|
|
export type feature_flagsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which feature_flags to delete.
|
|
*/
|
|
where: feature_flagsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* feature_flags deleteMany
|
|
*/
|
|
export type feature_flagsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which feature_flags to delete
|
|
*/
|
|
where?: feature_flagsWhereInput
|
|
/**
|
|
* Limit how many feature_flags to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* feature_flags without action
|
|
*/
|
|
export type feature_flagsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the feature_flags
|
|
*/
|
|
select?: feature_flagsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the feature_flags
|
|
*/
|
|
omit?: feature_flagsOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model geofence_breaches
|
|
*/
|
|
|
|
export type AggregateGeofence_breaches = {
|
|
_count: Geofence_breachesCountAggregateOutputType | null
|
|
_min: Geofence_breachesMinAggregateOutputType | null
|
|
_max: Geofence_breachesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Geofence_breachesMinAggregateOutputType = {
|
|
id: string | null
|
|
geofence_id: string | null
|
|
team_member_id: string | null
|
|
breach_type: string | null
|
|
severity: string | null
|
|
is_resolved: boolean | null
|
|
resolved_at: Date | null
|
|
resolved_by: string | null
|
|
notes: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Geofence_breachesMaxAggregateOutputType = {
|
|
id: string | null
|
|
geofence_id: string | null
|
|
team_member_id: string | null
|
|
breach_type: string | null
|
|
severity: string | null
|
|
is_resolved: boolean | null
|
|
resolved_at: Date | null
|
|
resolved_by: string | null
|
|
notes: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Geofence_breachesCountAggregateOutputType = {
|
|
id: number
|
|
geofence_id: number
|
|
team_member_id: number
|
|
breach_type: number
|
|
location: number
|
|
severity: number
|
|
is_resolved: number
|
|
resolved_at: number
|
|
resolved_by: number
|
|
notes: number
|
|
metadata: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Geofence_breachesMinAggregateInputType = {
|
|
id?: true
|
|
geofence_id?: true
|
|
team_member_id?: true
|
|
breach_type?: true
|
|
severity?: true
|
|
is_resolved?: true
|
|
resolved_at?: true
|
|
resolved_by?: true
|
|
notes?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Geofence_breachesMaxAggregateInputType = {
|
|
id?: true
|
|
geofence_id?: true
|
|
team_member_id?: true
|
|
breach_type?: true
|
|
severity?: true
|
|
is_resolved?: true
|
|
resolved_at?: true
|
|
resolved_by?: true
|
|
notes?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Geofence_breachesCountAggregateInputType = {
|
|
id?: true
|
|
geofence_id?: true
|
|
team_member_id?: true
|
|
breach_type?: true
|
|
location?: true
|
|
severity?: true
|
|
is_resolved?: true
|
|
resolved_at?: true
|
|
resolved_by?: true
|
|
notes?: true
|
|
metadata?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Geofence_breachesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which geofence_breaches to aggregate.
|
|
*/
|
|
where?: geofence_breachesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofence_breaches to fetch.
|
|
*/
|
|
orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: geofence_breachesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofence_breaches from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofence_breaches.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned geofence_breaches
|
|
**/
|
|
_count?: true | Geofence_breachesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Geofence_breachesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Geofence_breachesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetGeofence_breachesAggregateType<T extends Geofence_breachesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateGeofence_breaches]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateGeofence_breaches[P]>
|
|
: GetScalarType<T[P], AggregateGeofence_breaches[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type geofence_breachesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: geofence_breachesWhereInput
|
|
orderBy?: geofence_breachesOrderByWithAggregationInput | geofence_breachesOrderByWithAggregationInput[]
|
|
by: Geofence_breachesScalarFieldEnum[] | Geofence_breachesScalarFieldEnum
|
|
having?: geofence_breachesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Geofence_breachesCountAggregateInputType | true
|
|
_min?: Geofence_breachesMinAggregateInputType
|
|
_max?: Geofence_breachesMaxAggregateInputType
|
|
}
|
|
|
|
export type Geofence_breachesGroupByOutputType = {
|
|
id: string
|
|
geofence_id: string
|
|
team_member_id: string | null
|
|
breach_type: string
|
|
location: JsonValue
|
|
severity: string | null
|
|
is_resolved: boolean | null
|
|
resolved_at: Date | null
|
|
resolved_by: string | null
|
|
notes: string | null
|
|
metadata: JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: Geofence_breachesCountAggregateOutputType | null
|
|
_min: Geofence_breachesMinAggregateOutputType | null
|
|
_max: Geofence_breachesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetGeofence_breachesGroupByPayload<T extends geofence_breachesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Geofence_breachesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Geofence_breachesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Geofence_breachesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Geofence_breachesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type geofence_breachesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
geofence_id?: boolean
|
|
team_member_id?: boolean
|
|
breach_type?: boolean
|
|
location?: boolean
|
|
severity?: boolean
|
|
is_resolved?: boolean
|
|
resolved_at?: boolean
|
|
resolved_by?: boolean
|
|
notes?: boolean
|
|
metadata?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
geofences?: boolean | geofencesDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["geofence_breaches"]>
|
|
|
|
|
|
|
|
export type geofence_breachesSelectScalar = {
|
|
id?: boolean
|
|
geofence_id?: boolean
|
|
team_member_id?: boolean
|
|
breach_type?: boolean
|
|
location?: boolean
|
|
severity?: boolean
|
|
is_resolved?: boolean
|
|
resolved_at?: boolean
|
|
resolved_by?: boolean
|
|
notes?: boolean
|
|
metadata?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type geofence_breachesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "geofence_id" | "team_member_id" | "breach_type" | "location" | "severity" | "is_resolved" | "resolved_at" | "resolved_by" | "notes" | "metadata" | "created_at" | "updated_at", ExtArgs["result"]["geofence_breaches"]>
|
|
export type geofence_breachesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
geofences?: boolean | geofencesDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $geofence_breachesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "geofence_breaches"
|
|
objects: {
|
|
geofences: Prisma.$geofencesPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
geofence_id: string
|
|
team_member_id: string | null
|
|
breach_type: string
|
|
location: Prisma.JsonValue
|
|
severity: string | null
|
|
is_resolved: boolean | null
|
|
resolved_at: Date | null
|
|
resolved_by: string | null
|
|
notes: string | null
|
|
metadata: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["geofence_breaches"]>
|
|
composites: {}
|
|
}
|
|
|
|
type geofence_breachesGetPayload<S extends boolean | null | undefined | geofence_breachesDefaultArgs> = $Result.GetResult<Prisma.$geofence_breachesPayload, S>
|
|
|
|
type geofence_breachesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<geofence_breachesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Geofence_breachesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface geofence_breachesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['geofence_breaches'], meta: { name: 'geofence_breaches' } }
|
|
/**
|
|
* Find zero or one Geofence_breaches that matches the filter.
|
|
* @param {geofence_breachesFindUniqueArgs} args - Arguments to find a Geofence_breaches
|
|
* @example
|
|
* // Get one Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends geofence_breachesFindUniqueArgs>(args: SelectSubset<T, geofence_breachesFindUniqueArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Geofence_breaches that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {geofence_breachesFindUniqueOrThrowArgs} args - Arguments to find a Geofence_breaches
|
|
* @example
|
|
* // Get one Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends geofence_breachesFindUniqueOrThrowArgs>(args: SelectSubset<T, geofence_breachesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Geofence_breaches that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofence_breachesFindFirstArgs} args - Arguments to find a Geofence_breaches
|
|
* @example
|
|
* // Get one Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends geofence_breachesFindFirstArgs>(args?: SelectSubset<T, geofence_breachesFindFirstArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Geofence_breaches that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofence_breachesFindFirstOrThrowArgs} args - Arguments to find a Geofence_breaches
|
|
* @example
|
|
* // Get one Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends geofence_breachesFindFirstOrThrowArgs>(args?: SelectSubset<T, geofence_breachesFindFirstOrThrowArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Geofence_breaches that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofence_breachesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findMany()
|
|
*
|
|
* // Get first 10 Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const geofence_breachesWithIdOnly = await prisma.geofence_breaches.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends geofence_breachesFindManyArgs>(args?: SelectSubset<T, geofence_breachesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Geofence_breaches.
|
|
* @param {geofence_breachesCreateArgs} args - Arguments to create a Geofence_breaches.
|
|
* @example
|
|
* // Create one Geofence_breaches
|
|
* const Geofence_breaches = await prisma.geofence_breaches.create({
|
|
* data: {
|
|
* // ... data to create a Geofence_breaches
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends geofence_breachesCreateArgs>(args: SelectSubset<T, geofence_breachesCreateArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Geofence_breaches.
|
|
* @param {geofence_breachesCreateManyArgs} args - Arguments to create many Geofence_breaches.
|
|
* @example
|
|
* // Create many Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends geofence_breachesCreateManyArgs>(args?: SelectSubset<T, geofence_breachesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Geofence_breaches.
|
|
* @param {geofence_breachesDeleteArgs} args - Arguments to delete one Geofence_breaches.
|
|
* @example
|
|
* // Delete one Geofence_breaches
|
|
* const Geofence_breaches = await prisma.geofence_breaches.delete({
|
|
* where: {
|
|
* // ... filter to delete one Geofence_breaches
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends geofence_breachesDeleteArgs>(args: SelectSubset<T, geofence_breachesDeleteArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Geofence_breaches.
|
|
* @param {geofence_breachesUpdateArgs} args - Arguments to update one Geofence_breaches.
|
|
* @example
|
|
* // Update one Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends geofence_breachesUpdateArgs>(args: SelectSubset<T, geofence_breachesUpdateArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Geofence_breaches.
|
|
* @param {geofence_breachesDeleteManyArgs} args - Arguments to filter Geofence_breaches to delete.
|
|
* @example
|
|
* // Delete a few Geofence_breaches
|
|
* const { count } = await prisma.geofence_breaches.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends geofence_breachesDeleteManyArgs>(args?: SelectSubset<T, geofence_breachesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Geofence_breaches.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofence_breachesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends geofence_breachesUpdateManyArgs>(args: SelectSubset<T, geofence_breachesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Geofence_breaches.
|
|
* @param {geofence_breachesUpsertArgs} args - Arguments to update or create a Geofence_breaches.
|
|
* @example
|
|
* // Update or create a Geofence_breaches
|
|
* const geofence_breaches = await prisma.geofence_breaches.upsert({
|
|
* create: {
|
|
* // ... data to create a Geofence_breaches
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Geofence_breaches we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends geofence_breachesUpsertArgs>(args: SelectSubset<T, geofence_breachesUpsertArgs<ExtArgs>>): Prisma__geofence_breachesClient<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Geofence_breaches.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofence_breachesCountArgs} args - Arguments to filter Geofence_breaches to count.
|
|
* @example
|
|
* // Count the number of Geofence_breaches
|
|
* const count = await prisma.geofence_breaches.count({
|
|
* where: {
|
|
* // ... the filter for the Geofence_breaches we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends geofence_breachesCountArgs>(
|
|
args?: Subset<T, geofence_breachesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Geofence_breachesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Geofence_breaches.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Geofence_breachesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Geofence_breachesAggregateArgs>(args: Subset<T, Geofence_breachesAggregateArgs>): Prisma.PrismaPromise<GetGeofence_breachesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Geofence_breaches.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofence_breachesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends geofence_breachesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: geofence_breachesGroupByArgs['orderBy'] }
|
|
: { orderBy?: geofence_breachesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, geofence_breachesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGeofence_breachesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the geofence_breaches model
|
|
*/
|
|
readonly fields: geofence_breachesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for geofence_breaches.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__geofence_breachesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
geofences<T extends geofencesDefaultArgs<ExtArgs> = {}>(args?: Subset<T, geofencesDefaultArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the geofence_breaches model
|
|
*/
|
|
interface geofence_breachesFieldRefs {
|
|
readonly id: FieldRef<"geofence_breaches", 'String'>
|
|
readonly geofence_id: FieldRef<"geofence_breaches", 'String'>
|
|
readonly team_member_id: FieldRef<"geofence_breaches", 'String'>
|
|
readonly breach_type: FieldRef<"geofence_breaches", 'String'>
|
|
readonly location: FieldRef<"geofence_breaches", 'Json'>
|
|
readonly severity: FieldRef<"geofence_breaches", 'String'>
|
|
readonly is_resolved: FieldRef<"geofence_breaches", 'Boolean'>
|
|
readonly resolved_at: FieldRef<"geofence_breaches", 'DateTime'>
|
|
readonly resolved_by: FieldRef<"geofence_breaches", 'String'>
|
|
readonly notes: FieldRef<"geofence_breaches", 'String'>
|
|
readonly metadata: FieldRef<"geofence_breaches", 'Json'>
|
|
readonly created_at: FieldRef<"geofence_breaches", 'DateTime'>
|
|
readonly updated_at: FieldRef<"geofence_breaches", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* geofence_breaches findUnique
|
|
*/
|
|
export type geofence_breachesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofence_breaches to fetch.
|
|
*/
|
|
where: geofence_breachesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches findUniqueOrThrow
|
|
*/
|
|
export type geofence_breachesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofence_breaches to fetch.
|
|
*/
|
|
where: geofence_breachesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches findFirst
|
|
*/
|
|
export type geofence_breachesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofence_breaches to fetch.
|
|
*/
|
|
where?: geofence_breachesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofence_breaches to fetch.
|
|
*/
|
|
orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for geofence_breaches.
|
|
*/
|
|
cursor?: geofence_breachesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofence_breaches from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofence_breaches.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of geofence_breaches.
|
|
*/
|
|
distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches findFirstOrThrow
|
|
*/
|
|
export type geofence_breachesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofence_breaches to fetch.
|
|
*/
|
|
where?: geofence_breachesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofence_breaches to fetch.
|
|
*/
|
|
orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for geofence_breaches.
|
|
*/
|
|
cursor?: geofence_breachesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofence_breaches from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofence_breaches.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of geofence_breaches.
|
|
*/
|
|
distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches findMany
|
|
*/
|
|
export type geofence_breachesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofence_breaches to fetch.
|
|
*/
|
|
where?: geofence_breachesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofence_breaches to fetch.
|
|
*/
|
|
orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing geofence_breaches.
|
|
*/
|
|
cursor?: geofence_breachesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofence_breaches from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofence_breaches.
|
|
*/
|
|
skip?: number
|
|
distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches create
|
|
*/
|
|
export type geofence_breachesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a geofence_breaches.
|
|
*/
|
|
data: XOR<geofence_breachesCreateInput, geofence_breachesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches createMany
|
|
*/
|
|
export type geofence_breachesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many geofence_breaches.
|
|
*/
|
|
data: geofence_breachesCreateManyInput | geofence_breachesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches update
|
|
*/
|
|
export type geofence_breachesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a geofence_breaches.
|
|
*/
|
|
data: XOR<geofence_breachesUpdateInput, geofence_breachesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which geofence_breaches to update.
|
|
*/
|
|
where: geofence_breachesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches updateMany
|
|
*/
|
|
export type geofence_breachesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update geofence_breaches.
|
|
*/
|
|
data: XOR<geofence_breachesUpdateManyMutationInput, geofence_breachesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which geofence_breaches to update
|
|
*/
|
|
where?: geofence_breachesWhereInput
|
|
/**
|
|
* Limit how many geofence_breaches to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches upsert
|
|
*/
|
|
export type geofence_breachesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the geofence_breaches to update in case it exists.
|
|
*/
|
|
where: geofence_breachesWhereUniqueInput
|
|
/**
|
|
* In case the geofence_breaches found by the `where` argument doesn't exist, create a new geofence_breaches with this data.
|
|
*/
|
|
create: XOR<geofence_breachesCreateInput, geofence_breachesUncheckedCreateInput>
|
|
/**
|
|
* In case the geofence_breaches was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<geofence_breachesUpdateInput, geofence_breachesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches delete
|
|
*/
|
|
export type geofence_breachesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which geofence_breaches to delete.
|
|
*/
|
|
where: geofence_breachesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches deleteMany
|
|
*/
|
|
export type geofence_breachesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which geofence_breaches to delete
|
|
*/
|
|
where?: geofence_breachesWhereInput
|
|
/**
|
|
* Limit how many geofence_breaches to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* geofence_breaches without action
|
|
*/
|
|
export type geofence_breachesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model geofences
|
|
*/
|
|
|
|
export type AggregateGeofences = {
|
|
_count: GeofencesCountAggregateOutputType | null
|
|
_min: GeofencesMinAggregateOutputType | null
|
|
_max: GeofencesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GeofencesMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
type: string | null
|
|
description: string | null
|
|
is_active: boolean | null
|
|
priority: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}
|
|
|
|
export type GeofencesMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
type: string | null
|
|
description: string | null
|
|
is_active: boolean | null
|
|
priority: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}
|
|
|
|
export type GeofencesCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
type: number
|
|
coordinates: number
|
|
description: number
|
|
is_active: number
|
|
priority: number
|
|
notification_settings: number
|
|
metadata: number
|
|
created_at: number
|
|
updated_at: number
|
|
created_by: number
|
|
updated_by: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type GeofencesMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
description?: true
|
|
is_active?: true
|
|
priority?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
}
|
|
|
|
export type GeofencesMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
description?: true
|
|
is_active?: true
|
|
priority?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
}
|
|
|
|
export type GeofencesCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
coordinates?: true
|
|
description?: true
|
|
is_active?: true
|
|
priority?: true
|
|
notification_settings?: true
|
|
metadata?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type GeofencesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which geofences to aggregate.
|
|
*/
|
|
where?: geofencesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofences to fetch.
|
|
*/
|
|
orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: geofencesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofences from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofences.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned geofences
|
|
**/
|
|
_count?: true | GeofencesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: GeofencesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: GeofencesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetGeofencesAggregateType<T extends GeofencesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateGeofences]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateGeofences[P]>
|
|
: GetScalarType<T[P], AggregateGeofences[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type geofencesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: geofencesWhereInput
|
|
orderBy?: geofencesOrderByWithAggregationInput | geofencesOrderByWithAggregationInput[]
|
|
by: GeofencesScalarFieldEnum[] | GeofencesScalarFieldEnum
|
|
having?: geofencesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: GeofencesCountAggregateInputType | true
|
|
_min?: GeofencesMinAggregateInputType
|
|
_max?: GeofencesMaxAggregateInputType
|
|
}
|
|
|
|
export type GeofencesGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonValue
|
|
description: string | null
|
|
is_active: boolean | null
|
|
priority: string | null
|
|
notification_settings: JsonValue | null
|
|
metadata: JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
_count: GeofencesCountAggregateOutputType | null
|
|
_min: GeofencesMinAggregateOutputType | null
|
|
_max: GeofencesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetGeofencesGroupByPayload<T extends geofencesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<GeofencesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof GeofencesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], GeofencesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], GeofencesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type geofencesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
type?: boolean
|
|
coordinates?: boolean
|
|
description?: boolean
|
|
is_active?: boolean
|
|
priority?: boolean
|
|
notification_settings?: boolean
|
|
metadata?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
geofence_breaches?: boolean | geofences$geofence_breachesArgs<ExtArgs>
|
|
incidents?: boolean | geofences$incidentsArgs<ExtArgs>
|
|
map_pins?: boolean | geofences$map_pinsArgs<ExtArgs>
|
|
_count?: boolean | GeofencesCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["geofences"]>
|
|
|
|
|
|
|
|
export type geofencesSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
type?: boolean
|
|
coordinates?: boolean
|
|
description?: boolean
|
|
is_active?: boolean
|
|
priority?: boolean
|
|
notification_settings?: boolean
|
|
metadata?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
}
|
|
|
|
export type geofencesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "coordinates" | "description" | "is_active" | "priority" | "notification_settings" | "metadata" | "created_at" | "updated_at" | "created_by" | "updated_by", ExtArgs["result"]["geofences"]>
|
|
export type geofencesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
geofence_breaches?: boolean | geofences$geofence_breachesArgs<ExtArgs>
|
|
incidents?: boolean | geofences$incidentsArgs<ExtArgs>
|
|
map_pins?: boolean | geofences$map_pinsArgs<ExtArgs>
|
|
_count?: boolean | GeofencesCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $geofencesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "geofences"
|
|
objects: {
|
|
geofence_breaches: Prisma.$geofence_breachesPayload<ExtArgs>[]
|
|
incidents: Prisma.$incidentsPayload<ExtArgs>[]
|
|
map_pins: Prisma.$map_pinsPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
type: string
|
|
coordinates: Prisma.JsonValue
|
|
description: string | null
|
|
is_active: boolean | null
|
|
priority: string | null
|
|
notification_settings: Prisma.JsonValue | null
|
|
metadata: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}, ExtArgs["result"]["geofences"]>
|
|
composites: {}
|
|
}
|
|
|
|
type geofencesGetPayload<S extends boolean | null | undefined | geofencesDefaultArgs> = $Result.GetResult<Prisma.$geofencesPayload, S>
|
|
|
|
type geofencesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<geofencesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: GeofencesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface geofencesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['geofences'], meta: { name: 'geofences' } }
|
|
/**
|
|
* Find zero or one Geofences that matches the filter.
|
|
* @param {geofencesFindUniqueArgs} args - Arguments to find a Geofences
|
|
* @example
|
|
* // Get one Geofences
|
|
* const geofences = await prisma.geofences.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends geofencesFindUniqueArgs>(args: SelectSubset<T, geofencesFindUniqueArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Geofences that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {geofencesFindUniqueOrThrowArgs} args - Arguments to find a Geofences
|
|
* @example
|
|
* // Get one Geofences
|
|
* const geofences = await prisma.geofences.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends geofencesFindUniqueOrThrowArgs>(args: SelectSubset<T, geofencesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Geofences that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofencesFindFirstArgs} args - Arguments to find a Geofences
|
|
* @example
|
|
* // Get one Geofences
|
|
* const geofences = await prisma.geofences.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends geofencesFindFirstArgs>(args?: SelectSubset<T, geofencesFindFirstArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Geofences that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofencesFindFirstOrThrowArgs} args - Arguments to find a Geofences
|
|
* @example
|
|
* // Get one Geofences
|
|
* const geofences = await prisma.geofences.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends geofencesFindFirstOrThrowArgs>(args?: SelectSubset<T, geofencesFindFirstOrThrowArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Geofences that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofencesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Geofences
|
|
* const geofences = await prisma.geofences.findMany()
|
|
*
|
|
* // Get first 10 Geofences
|
|
* const geofences = await prisma.geofences.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const geofencesWithIdOnly = await prisma.geofences.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends geofencesFindManyArgs>(args?: SelectSubset<T, geofencesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Geofences.
|
|
* @param {geofencesCreateArgs} args - Arguments to create a Geofences.
|
|
* @example
|
|
* // Create one Geofences
|
|
* const Geofences = await prisma.geofences.create({
|
|
* data: {
|
|
* // ... data to create a Geofences
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends geofencesCreateArgs>(args: SelectSubset<T, geofencesCreateArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Geofences.
|
|
* @param {geofencesCreateManyArgs} args - Arguments to create many Geofences.
|
|
* @example
|
|
* // Create many Geofences
|
|
* const geofences = await prisma.geofences.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends geofencesCreateManyArgs>(args?: SelectSubset<T, geofencesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Geofences.
|
|
* @param {geofencesDeleteArgs} args - Arguments to delete one Geofences.
|
|
* @example
|
|
* // Delete one Geofences
|
|
* const Geofences = await prisma.geofences.delete({
|
|
* where: {
|
|
* // ... filter to delete one Geofences
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends geofencesDeleteArgs>(args: SelectSubset<T, geofencesDeleteArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Geofences.
|
|
* @param {geofencesUpdateArgs} args - Arguments to update one Geofences.
|
|
* @example
|
|
* // Update one Geofences
|
|
* const geofences = await prisma.geofences.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends geofencesUpdateArgs>(args: SelectSubset<T, geofencesUpdateArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Geofences.
|
|
* @param {geofencesDeleteManyArgs} args - Arguments to filter Geofences to delete.
|
|
* @example
|
|
* // Delete a few Geofences
|
|
* const { count } = await prisma.geofences.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends geofencesDeleteManyArgs>(args?: SelectSubset<T, geofencesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Geofences.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofencesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Geofences
|
|
* const geofences = await prisma.geofences.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends geofencesUpdateManyArgs>(args: SelectSubset<T, geofencesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Geofences.
|
|
* @param {geofencesUpsertArgs} args - Arguments to update or create a Geofences.
|
|
* @example
|
|
* // Update or create a Geofences
|
|
* const geofences = await prisma.geofences.upsert({
|
|
* create: {
|
|
* // ... data to create a Geofences
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Geofences we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends geofencesUpsertArgs>(args: SelectSubset<T, geofencesUpsertArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Geofences.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofencesCountArgs} args - Arguments to filter Geofences to count.
|
|
* @example
|
|
* // Count the number of Geofences
|
|
* const count = await prisma.geofences.count({
|
|
* where: {
|
|
* // ... the filter for the Geofences we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends geofencesCountArgs>(
|
|
args?: Subset<T, geofencesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], GeofencesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Geofences.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {GeofencesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends GeofencesAggregateArgs>(args: Subset<T, GeofencesAggregateArgs>): Prisma.PrismaPromise<GetGeofencesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Geofences.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {geofencesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends geofencesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: geofencesGroupByArgs['orderBy'] }
|
|
: { orderBy?: geofencesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, geofencesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGeofencesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the geofences model
|
|
*/
|
|
readonly fields: geofencesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for geofences.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__geofencesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
geofence_breaches<T extends geofences$geofence_breachesArgs<ExtArgs> = {}>(args?: Subset<T, geofences$geofence_breachesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$geofence_breachesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
incidents<T extends geofences$incidentsArgs<ExtArgs> = {}>(args?: Subset<T, geofences$incidentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
map_pins<T extends geofences$map_pinsArgs<ExtArgs> = {}>(args?: Subset<T, geofences$map_pinsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the geofences model
|
|
*/
|
|
interface geofencesFieldRefs {
|
|
readonly id: FieldRef<"geofences", 'String'>
|
|
readonly name: FieldRef<"geofences", 'String'>
|
|
readonly type: FieldRef<"geofences", 'String'>
|
|
readonly coordinates: FieldRef<"geofences", 'Json'>
|
|
readonly description: FieldRef<"geofences", 'String'>
|
|
readonly is_active: FieldRef<"geofences", 'Boolean'>
|
|
readonly priority: FieldRef<"geofences", 'String'>
|
|
readonly notification_settings: FieldRef<"geofences", 'Json'>
|
|
readonly metadata: FieldRef<"geofences", 'Json'>
|
|
readonly created_at: FieldRef<"geofences", 'DateTime'>
|
|
readonly updated_at: FieldRef<"geofences", 'DateTime'>
|
|
readonly created_by: FieldRef<"geofences", 'String'>
|
|
readonly updated_by: FieldRef<"geofences", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* geofences findUnique
|
|
*/
|
|
export type geofencesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofences to fetch.
|
|
*/
|
|
where: geofencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofences findUniqueOrThrow
|
|
*/
|
|
export type geofencesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofences to fetch.
|
|
*/
|
|
where: geofencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofences findFirst
|
|
*/
|
|
export type geofencesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofences to fetch.
|
|
*/
|
|
where?: geofencesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofences to fetch.
|
|
*/
|
|
orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for geofences.
|
|
*/
|
|
cursor?: geofencesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofences from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofences.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of geofences.
|
|
*/
|
|
distinct?: GeofencesScalarFieldEnum | GeofencesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofences findFirstOrThrow
|
|
*/
|
|
export type geofencesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofences to fetch.
|
|
*/
|
|
where?: geofencesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofences to fetch.
|
|
*/
|
|
orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for geofences.
|
|
*/
|
|
cursor?: geofencesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofences from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofences.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of geofences.
|
|
*/
|
|
distinct?: GeofencesScalarFieldEnum | GeofencesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofences findMany
|
|
*/
|
|
export type geofencesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which geofences to fetch.
|
|
*/
|
|
where?: geofencesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of geofences to fetch.
|
|
*/
|
|
orderBy?: geofencesOrderByWithRelationInput | geofencesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing geofences.
|
|
*/
|
|
cursor?: geofencesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` geofences from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` geofences.
|
|
*/
|
|
skip?: number
|
|
distinct?: GeofencesScalarFieldEnum | GeofencesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofences create
|
|
*/
|
|
export type geofencesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a geofences.
|
|
*/
|
|
data: XOR<geofencesCreateInput, geofencesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* geofences createMany
|
|
*/
|
|
export type geofencesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many geofences.
|
|
*/
|
|
data: geofencesCreateManyInput | geofencesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* geofences update
|
|
*/
|
|
export type geofencesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a geofences.
|
|
*/
|
|
data: XOR<geofencesUpdateInput, geofencesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which geofences to update.
|
|
*/
|
|
where: geofencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofences updateMany
|
|
*/
|
|
export type geofencesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update geofences.
|
|
*/
|
|
data: XOR<geofencesUpdateManyMutationInput, geofencesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which geofences to update
|
|
*/
|
|
where?: geofencesWhereInput
|
|
/**
|
|
* Limit how many geofences to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* geofences upsert
|
|
*/
|
|
export type geofencesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the geofences to update in case it exists.
|
|
*/
|
|
where: geofencesWhereUniqueInput
|
|
/**
|
|
* In case the geofences found by the `where` argument doesn't exist, create a new geofences with this data.
|
|
*/
|
|
create: XOR<geofencesCreateInput, geofencesUncheckedCreateInput>
|
|
/**
|
|
* In case the geofences was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<geofencesUpdateInput, geofencesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* geofences delete
|
|
*/
|
|
export type geofencesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which geofences to delete.
|
|
*/
|
|
where: geofencesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* geofences deleteMany
|
|
*/
|
|
export type geofencesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which geofences to delete
|
|
*/
|
|
where?: geofencesWhereInput
|
|
/**
|
|
* Limit how many geofences to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* geofences.geofence_breaches
|
|
*/
|
|
export type geofences$geofence_breachesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofence_breaches
|
|
*/
|
|
select?: geofence_breachesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofence_breaches
|
|
*/
|
|
omit?: geofence_breachesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofence_breachesInclude<ExtArgs> | null
|
|
where?: geofence_breachesWhereInput
|
|
orderBy?: geofence_breachesOrderByWithRelationInput | geofence_breachesOrderByWithRelationInput[]
|
|
cursor?: geofence_breachesWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Geofence_breachesScalarFieldEnum | Geofence_breachesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofences.incidents
|
|
*/
|
|
export type geofences$incidentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
where?: incidentsWhereInput
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
cursor?: incidentsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofences.map_pins
|
|
*/
|
|
export type geofences$map_pinsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
where?: map_pinsWhereInput
|
|
orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[]
|
|
cursor?: map_pinsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* geofences without action
|
|
*/
|
|
export type geofencesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model houses
|
|
*/
|
|
|
|
export type AggregateHouses = {
|
|
_count: HousesCountAggregateOutputType | null
|
|
_min: HousesMinAggregateOutputType | null
|
|
_max: HousesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type HousesMinAggregateOutputType = {
|
|
id: string | null
|
|
house_number: string | null
|
|
block: string | null
|
|
street: string | null
|
|
owner_name: string | null
|
|
owner_phone: string | null
|
|
status: $Enums.houses_status | null
|
|
perumahan_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type HousesMaxAggregateOutputType = {
|
|
id: string | null
|
|
house_number: string | null
|
|
block: string | null
|
|
street: string | null
|
|
owner_name: string | null
|
|
owner_phone: string | null
|
|
status: $Enums.houses_status | null
|
|
perumahan_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type HousesCountAggregateOutputType = {
|
|
id: number
|
|
house_number: number
|
|
block: number
|
|
street: number
|
|
owner_name: number
|
|
owner_phone: number
|
|
status: number
|
|
perumahan_id: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type HousesMinAggregateInputType = {
|
|
id?: true
|
|
house_number?: true
|
|
block?: true
|
|
street?: true
|
|
owner_name?: true
|
|
owner_phone?: true
|
|
status?: true
|
|
perumahan_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type HousesMaxAggregateInputType = {
|
|
id?: true
|
|
house_number?: true
|
|
block?: true
|
|
street?: true
|
|
owner_name?: true
|
|
owner_phone?: true
|
|
status?: true
|
|
perumahan_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type HousesCountAggregateInputType = {
|
|
id?: true
|
|
house_number?: true
|
|
block?: true
|
|
street?: true
|
|
owner_name?: true
|
|
owner_phone?: true
|
|
status?: true
|
|
perumahan_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type HousesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which houses to aggregate.
|
|
*/
|
|
where?: housesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of houses to fetch.
|
|
*/
|
|
orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: housesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` houses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` houses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned houses
|
|
**/
|
|
_count?: true | HousesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: HousesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: HousesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetHousesAggregateType<T extends HousesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateHouses]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateHouses[P]>
|
|
: GetScalarType<T[P], AggregateHouses[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type housesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: housesWhereInput
|
|
orderBy?: housesOrderByWithAggregationInput | housesOrderByWithAggregationInput[]
|
|
by: HousesScalarFieldEnum[] | HousesScalarFieldEnum
|
|
having?: housesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: HousesCountAggregateInputType | true
|
|
_min?: HousesMinAggregateInputType
|
|
_max?: HousesMaxAggregateInputType
|
|
}
|
|
|
|
export type HousesGroupByOutputType = {
|
|
id: string
|
|
house_number: string
|
|
block: string
|
|
street: string
|
|
owner_name: string
|
|
owner_phone: string
|
|
status: $Enums.houses_status | null
|
|
perumahan_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: HousesCountAggregateOutputType | null
|
|
_min: HousesMinAggregateOutputType | null
|
|
_max: HousesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetHousesGroupByPayload<T extends housesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<HousesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof HousesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], HousesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], HousesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type housesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
house_number?: boolean
|
|
block?: boolean
|
|
street?: boolean
|
|
owner_name?: boolean
|
|
owner_phone?: boolean
|
|
status?: boolean
|
|
perumahan_id?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}, ExtArgs["result"]["houses"]>
|
|
|
|
|
|
|
|
export type housesSelectScalar = {
|
|
id?: boolean
|
|
house_number?: boolean
|
|
block?: boolean
|
|
street?: boolean
|
|
owner_name?: boolean
|
|
owner_phone?: boolean
|
|
status?: boolean
|
|
perumahan_id?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type housesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "house_number" | "block" | "street" | "owner_name" | "owner_phone" | "status" | "perumahan_id" | "created_at" | "updated_at", ExtArgs["result"]["houses"]>
|
|
|
|
export type $housesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "houses"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
house_number: string
|
|
block: string
|
|
street: string
|
|
owner_name: string
|
|
owner_phone: string
|
|
status: $Enums.houses_status | null
|
|
perumahan_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["houses"]>
|
|
composites: {}
|
|
}
|
|
|
|
type housesGetPayload<S extends boolean | null | undefined | housesDefaultArgs> = $Result.GetResult<Prisma.$housesPayload, S>
|
|
|
|
type housesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<housesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: HousesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface housesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['houses'], meta: { name: 'houses' } }
|
|
/**
|
|
* Find zero or one Houses that matches the filter.
|
|
* @param {housesFindUniqueArgs} args - Arguments to find a Houses
|
|
* @example
|
|
* // Get one Houses
|
|
* const houses = await prisma.houses.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends housesFindUniqueArgs>(args: SelectSubset<T, housesFindUniqueArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Houses that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {housesFindUniqueOrThrowArgs} args - Arguments to find a Houses
|
|
* @example
|
|
* // Get one Houses
|
|
* const houses = await prisma.houses.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends housesFindUniqueOrThrowArgs>(args: SelectSubset<T, housesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Houses that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {housesFindFirstArgs} args - Arguments to find a Houses
|
|
* @example
|
|
* // Get one Houses
|
|
* const houses = await prisma.houses.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends housesFindFirstArgs>(args?: SelectSubset<T, housesFindFirstArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Houses that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {housesFindFirstOrThrowArgs} args - Arguments to find a Houses
|
|
* @example
|
|
* // Get one Houses
|
|
* const houses = await prisma.houses.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends housesFindFirstOrThrowArgs>(args?: SelectSubset<T, housesFindFirstOrThrowArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Houses that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {housesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Houses
|
|
* const houses = await prisma.houses.findMany()
|
|
*
|
|
* // Get first 10 Houses
|
|
* const houses = await prisma.houses.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const housesWithIdOnly = await prisma.houses.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends housesFindManyArgs>(args?: SelectSubset<T, housesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Houses.
|
|
* @param {housesCreateArgs} args - Arguments to create a Houses.
|
|
* @example
|
|
* // Create one Houses
|
|
* const Houses = await prisma.houses.create({
|
|
* data: {
|
|
* // ... data to create a Houses
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends housesCreateArgs>(args: SelectSubset<T, housesCreateArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Houses.
|
|
* @param {housesCreateManyArgs} args - Arguments to create many Houses.
|
|
* @example
|
|
* // Create many Houses
|
|
* const houses = await prisma.houses.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends housesCreateManyArgs>(args?: SelectSubset<T, housesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Houses.
|
|
* @param {housesDeleteArgs} args - Arguments to delete one Houses.
|
|
* @example
|
|
* // Delete one Houses
|
|
* const Houses = await prisma.houses.delete({
|
|
* where: {
|
|
* // ... filter to delete one Houses
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends housesDeleteArgs>(args: SelectSubset<T, housesDeleteArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Houses.
|
|
* @param {housesUpdateArgs} args - Arguments to update one Houses.
|
|
* @example
|
|
* // Update one Houses
|
|
* const houses = await prisma.houses.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends housesUpdateArgs>(args: SelectSubset<T, housesUpdateArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Houses.
|
|
* @param {housesDeleteManyArgs} args - Arguments to filter Houses to delete.
|
|
* @example
|
|
* // Delete a few Houses
|
|
* const { count } = await prisma.houses.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends housesDeleteManyArgs>(args?: SelectSubset<T, housesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Houses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {housesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Houses
|
|
* const houses = await prisma.houses.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends housesUpdateManyArgs>(args: SelectSubset<T, housesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Houses.
|
|
* @param {housesUpsertArgs} args - Arguments to update or create a Houses.
|
|
* @example
|
|
* // Update or create a Houses
|
|
* const houses = await prisma.houses.upsert({
|
|
* create: {
|
|
* // ... data to create a Houses
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Houses we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends housesUpsertArgs>(args: SelectSubset<T, housesUpsertArgs<ExtArgs>>): Prisma__housesClient<$Result.GetResult<Prisma.$housesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Houses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {housesCountArgs} args - Arguments to filter Houses to count.
|
|
* @example
|
|
* // Count the number of Houses
|
|
* const count = await prisma.houses.count({
|
|
* where: {
|
|
* // ... the filter for the Houses we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends housesCountArgs>(
|
|
args?: Subset<T, housesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], HousesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Houses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {HousesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends HousesAggregateArgs>(args: Subset<T, HousesAggregateArgs>): Prisma.PrismaPromise<GetHousesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Houses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {housesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends housesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: housesGroupByArgs['orderBy'] }
|
|
: { orderBy?: housesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, housesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHousesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the houses model
|
|
*/
|
|
readonly fields: housesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for houses.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__housesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the houses model
|
|
*/
|
|
interface housesFieldRefs {
|
|
readonly id: FieldRef<"houses", 'String'>
|
|
readonly house_number: FieldRef<"houses", 'String'>
|
|
readonly block: FieldRef<"houses", 'String'>
|
|
readonly street: FieldRef<"houses", 'String'>
|
|
readonly owner_name: FieldRef<"houses", 'String'>
|
|
readonly owner_phone: FieldRef<"houses", 'String'>
|
|
readonly status: FieldRef<"houses", 'houses_status'>
|
|
readonly perumahan_id: FieldRef<"houses", 'String'>
|
|
readonly created_at: FieldRef<"houses", 'DateTime'>
|
|
readonly updated_at: FieldRef<"houses", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* houses findUnique
|
|
*/
|
|
export type housesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which houses to fetch.
|
|
*/
|
|
where: housesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* houses findUniqueOrThrow
|
|
*/
|
|
export type housesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which houses to fetch.
|
|
*/
|
|
where: housesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* houses findFirst
|
|
*/
|
|
export type housesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which houses to fetch.
|
|
*/
|
|
where?: housesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of houses to fetch.
|
|
*/
|
|
orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for houses.
|
|
*/
|
|
cursor?: housesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` houses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` houses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of houses.
|
|
*/
|
|
distinct?: HousesScalarFieldEnum | HousesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* houses findFirstOrThrow
|
|
*/
|
|
export type housesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which houses to fetch.
|
|
*/
|
|
where?: housesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of houses to fetch.
|
|
*/
|
|
orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for houses.
|
|
*/
|
|
cursor?: housesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` houses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` houses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of houses.
|
|
*/
|
|
distinct?: HousesScalarFieldEnum | HousesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* houses findMany
|
|
*/
|
|
export type housesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which houses to fetch.
|
|
*/
|
|
where?: housesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of houses to fetch.
|
|
*/
|
|
orderBy?: housesOrderByWithRelationInput | housesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing houses.
|
|
*/
|
|
cursor?: housesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` houses from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` houses.
|
|
*/
|
|
skip?: number
|
|
distinct?: HousesScalarFieldEnum | HousesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* houses create
|
|
*/
|
|
export type housesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a houses.
|
|
*/
|
|
data: XOR<housesCreateInput, housesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* houses createMany
|
|
*/
|
|
export type housesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many houses.
|
|
*/
|
|
data: housesCreateManyInput | housesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* houses update
|
|
*/
|
|
export type housesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a houses.
|
|
*/
|
|
data: XOR<housesUpdateInput, housesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which houses to update.
|
|
*/
|
|
where: housesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* houses updateMany
|
|
*/
|
|
export type housesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update houses.
|
|
*/
|
|
data: XOR<housesUpdateManyMutationInput, housesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which houses to update
|
|
*/
|
|
where?: housesWhereInput
|
|
/**
|
|
* Limit how many houses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* houses upsert
|
|
*/
|
|
export type housesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the houses to update in case it exists.
|
|
*/
|
|
where: housesWhereUniqueInput
|
|
/**
|
|
* In case the houses found by the `where` argument doesn't exist, create a new houses with this data.
|
|
*/
|
|
create: XOR<housesCreateInput, housesUncheckedCreateInput>
|
|
/**
|
|
* In case the houses was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<housesUpdateInput, housesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* houses delete
|
|
*/
|
|
export type housesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which houses to delete.
|
|
*/
|
|
where: housesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* houses deleteMany
|
|
*/
|
|
export type housesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which houses to delete
|
|
*/
|
|
where?: housesWhereInput
|
|
/**
|
|
* Limit how many houses to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* houses without action
|
|
*/
|
|
export type housesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the houses
|
|
*/
|
|
select?: housesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the houses
|
|
*/
|
|
omit?: housesOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model incident_updates
|
|
*/
|
|
|
|
export type AggregateIncident_updates = {
|
|
_count: Incident_updatesCountAggregateOutputType | null
|
|
_min: Incident_updatesMinAggregateOutputType | null
|
|
_max: Incident_updatesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Incident_updatesMinAggregateOutputType = {
|
|
id: string | null
|
|
incident_id: string | null
|
|
update_type: string | null
|
|
title: string | null
|
|
description: string | null
|
|
is_internal: boolean | null
|
|
is_system_generated: boolean | null
|
|
created_at: Date | null
|
|
created_by: string | null
|
|
notification_status: string | null
|
|
}
|
|
|
|
export type Incident_updatesMaxAggregateOutputType = {
|
|
id: string | null
|
|
incident_id: string | null
|
|
update_type: string | null
|
|
title: string | null
|
|
description: string | null
|
|
is_internal: boolean | null
|
|
is_system_generated: boolean | null
|
|
created_at: Date | null
|
|
created_by: string | null
|
|
notification_status: string | null
|
|
}
|
|
|
|
export type Incident_updatesCountAggregateOutputType = {
|
|
id: number
|
|
incident_id: number
|
|
update_type: number
|
|
title: number
|
|
description: number
|
|
old_values: number
|
|
new_values: number
|
|
changed_fields: number
|
|
is_internal: number
|
|
is_system_generated: number
|
|
attachments: number
|
|
created_at: number
|
|
created_by: number
|
|
notifications_sent: number
|
|
notification_status: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Incident_updatesMinAggregateInputType = {
|
|
id?: true
|
|
incident_id?: true
|
|
update_type?: true
|
|
title?: true
|
|
description?: true
|
|
is_internal?: true
|
|
is_system_generated?: true
|
|
created_at?: true
|
|
created_by?: true
|
|
notification_status?: true
|
|
}
|
|
|
|
export type Incident_updatesMaxAggregateInputType = {
|
|
id?: true
|
|
incident_id?: true
|
|
update_type?: true
|
|
title?: true
|
|
description?: true
|
|
is_internal?: true
|
|
is_system_generated?: true
|
|
created_at?: true
|
|
created_by?: true
|
|
notification_status?: true
|
|
}
|
|
|
|
export type Incident_updatesCountAggregateInputType = {
|
|
id?: true
|
|
incident_id?: true
|
|
update_type?: true
|
|
title?: true
|
|
description?: true
|
|
old_values?: true
|
|
new_values?: true
|
|
changed_fields?: true
|
|
is_internal?: true
|
|
is_system_generated?: true
|
|
attachments?: true
|
|
created_at?: true
|
|
created_by?: true
|
|
notifications_sent?: true
|
|
notification_status?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Incident_updatesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which incident_updates to aggregate.
|
|
*/
|
|
where?: incident_updatesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incident_updates to fetch.
|
|
*/
|
|
orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: incident_updatesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incident_updates from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incident_updates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned incident_updates
|
|
**/
|
|
_count?: true | Incident_updatesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Incident_updatesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Incident_updatesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetIncident_updatesAggregateType<T extends Incident_updatesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateIncident_updates]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateIncident_updates[P]>
|
|
: GetScalarType<T[P], AggregateIncident_updates[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type incident_updatesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: incident_updatesWhereInput
|
|
orderBy?: incident_updatesOrderByWithAggregationInput | incident_updatesOrderByWithAggregationInput[]
|
|
by: Incident_updatesScalarFieldEnum[] | Incident_updatesScalarFieldEnum
|
|
having?: incident_updatesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Incident_updatesCountAggregateInputType | true
|
|
_min?: Incident_updatesMinAggregateInputType
|
|
_max?: Incident_updatesMaxAggregateInputType
|
|
}
|
|
|
|
export type Incident_updatesGroupByOutputType = {
|
|
id: string
|
|
incident_id: string
|
|
update_type: string
|
|
title: string | null
|
|
description: string | null
|
|
old_values: JsonValue | null
|
|
new_values: JsonValue | null
|
|
changed_fields: JsonValue | null
|
|
is_internal: boolean | null
|
|
is_system_generated: boolean | null
|
|
attachments: JsonValue | null
|
|
created_at: Date | null
|
|
created_by: string
|
|
notifications_sent: JsonValue | null
|
|
notification_status: string | null
|
|
_count: Incident_updatesCountAggregateOutputType | null
|
|
_min: Incident_updatesMinAggregateOutputType | null
|
|
_max: Incident_updatesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetIncident_updatesGroupByPayload<T extends incident_updatesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Incident_updatesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Incident_updatesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Incident_updatesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Incident_updatesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type incident_updatesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
incident_id?: boolean
|
|
update_type?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
old_values?: boolean
|
|
new_values?: boolean
|
|
changed_fields?: boolean
|
|
is_internal?: boolean
|
|
is_system_generated?: boolean
|
|
attachments?: boolean
|
|
created_at?: boolean
|
|
created_by?: boolean
|
|
notifications_sent?: boolean
|
|
notification_status?: boolean
|
|
incidents?: boolean | incidentsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["incident_updates"]>
|
|
|
|
|
|
|
|
export type incident_updatesSelectScalar = {
|
|
id?: boolean
|
|
incident_id?: boolean
|
|
update_type?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
old_values?: boolean
|
|
new_values?: boolean
|
|
changed_fields?: boolean
|
|
is_internal?: boolean
|
|
is_system_generated?: boolean
|
|
attachments?: boolean
|
|
created_at?: boolean
|
|
created_by?: boolean
|
|
notifications_sent?: boolean
|
|
notification_status?: boolean
|
|
}
|
|
|
|
export type incident_updatesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "incident_id" | "update_type" | "title" | "description" | "old_values" | "new_values" | "changed_fields" | "is_internal" | "is_system_generated" | "attachments" | "created_at" | "created_by" | "notifications_sent" | "notification_status", ExtArgs["result"]["incident_updates"]>
|
|
export type incident_updatesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
incidents?: boolean | incidentsDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $incident_updatesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "incident_updates"
|
|
objects: {
|
|
incidents: Prisma.$incidentsPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
incident_id: string
|
|
update_type: string
|
|
title: string | null
|
|
description: string | null
|
|
old_values: Prisma.JsonValue | null
|
|
new_values: Prisma.JsonValue | null
|
|
changed_fields: Prisma.JsonValue | null
|
|
is_internal: boolean | null
|
|
is_system_generated: boolean | null
|
|
attachments: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
created_by: string
|
|
notifications_sent: Prisma.JsonValue | null
|
|
notification_status: string | null
|
|
}, ExtArgs["result"]["incident_updates"]>
|
|
composites: {}
|
|
}
|
|
|
|
type incident_updatesGetPayload<S extends boolean | null | undefined | incident_updatesDefaultArgs> = $Result.GetResult<Prisma.$incident_updatesPayload, S>
|
|
|
|
type incident_updatesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<incident_updatesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Incident_updatesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface incident_updatesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['incident_updates'], meta: { name: 'incident_updates' } }
|
|
/**
|
|
* Find zero or one Incident_updates that matches the filter.
|
|
* @param {incident_updatesFindUniqueArgs} args - Arguments to find a Incident_updates
|
|
* @example
|
|
* // Get one Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends incident_updatesFindUniqueArgs>(args: SelectSubset<T, incident_updatesFindUniqueArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Incident_updates that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {incident_updatesFindUniqueOrThrowArgs} args - Arguments to find a Incident_updates
|
|
* @example
|
|
* // Get one Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends incident_updatesFindUniqueOrThrowArgs>(args: SelectSubset<T, incident_updatesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Incident_updates that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incident_updatesFindFirstArgs} args - Arguments to find a Incident_updates
|
|
* @example
|
|
* // Get one Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends incident_updatesFindFirstArgs>(args?: SelectSubset<T, incident_updatesFindFirstArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Incident_updates that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incident_updatesFindFirstOrThrowArgs} args - Arguments to find a Incident_updates
|
|
* @example
|
|
* // Get one Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends incident_updatesFindFirstOrThrowArgs>(args?: SelectSubset<T, incident_updatesFindFirstOrThrowArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Incident_updates that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incident_updatesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findMany()
|
|
*
|
|
* // Get first 10 Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const incident_updatesWithIdOnly = await prisma.incident_updates.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends incident_updatesFindManyArgs>(args?: SelectSubset<T, incident_updatesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Incident_updates.
|
|
* @param {incident_updatesCreateArgs} args - Arguments to create a Incident_updates.
|
|
* @example
|
|
* // Create one Incident_updates
|
|
* const Incident_updates = await prisma.incident_updates.create({
|
|
* data: {
|
|
* // ... data to create a Incident_updates
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends incident_updatesCreateArgs>(args: SelectSubset<T, incident_updatesCreateArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Incident_updates.
|
|
* @param {incident_updatesCreateManyArgs} args - Arguments to create many Incident_updates.
|
|
* @example
|
|
* // Create many Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends incident_updatesCreateManyArgs>(args?: SelectSubset<T, incident_updatesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Incident_updates.
|
|
* @param {incident_updatesDeleteArgs} args - Arguments to delete one Incident_updates.
|
|
* @example
|
|
* // Delete one Incident_updates
|
|
* const Incident_updates = await prisma.incident_updates.delete({
|
|
* where: {
|
|
* // ... filter to delete one Incident_updates
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends incident_updatesDeleteArgs>(args: SelectSubset<T, incident_updatesDeleteArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Incident_updates.
|
|
* @param {incident_updatesUpdateArgs} args - Arguments to update one Incident_updates.
|
|
* @example
|
|
* // Update one Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends incident_updatesUpdateArgs>(args: SelectSubset<T, incident_updatesUpdateArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Incident_updates.
|
|
* @param {incident_updatesDeleteManyArgs} args - Arguments to filter Incident_updates to delete.
|
|
* @example
|
|
* // Delete a few Incident_updates
|
|
* const { count } = await prisma.incident_updates.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends incident_updatesDeleteManyArgs>(args?: SelectSubset<T, incident_updatesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Incident_updates.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incident_updatesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends incident_updatesUpdateManyArgs>(args: SelectSubset<T, incident_updatesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Incident_updates.
|
|
* @param {incident_updatesUpsertArgs} args - Arguments to update or create a Incident_updates.
|
|
* @example
|
|
* // Update or create a Incident_updates
|
|
* const incident_updates = await prisma.incident_updates.upsert({
|
|
* create: {
|
|
* // ... data to create a Incident_updates
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Incident_updates we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends incident_updatesUpsertArgs>(args: SelectSubset<T, incident_updatesUpsertArgs<ExtArgs>>): Prisma__incident_updatesClient<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Incident_updates.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incident_updatesCountArgs} args - Arguments to filter Incident_updates to count.
|
|
* @example
|
|
* // Count the number of Incident_updates
|
|
* const count = await prisma.incident_updates.count({
|
|
* where: {
|
|
* // ... the filter for the Incident_updates we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends incident_updatesCountArgs>(
|
|
args?: Subset<T, incident_updatesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Incident_updatesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Incident_updates.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Incident_updatesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Incident_updatesAggregateArgs>(args: Subset<T, Incident_updatesAggregateArgs>): Prisma.PrismaPromise<GetIncident_updatesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Incident_updates.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incident_updatesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends incident_updatesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: incident_updatesGroupByArgs['orderBy'] }
|
|
: { orderBy?: incident_updatesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, incident_updatesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIncident_updatesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the incident_updates model
|
|
*/
|
|
readonly fields: incident_updatesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for incident_updates.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__incident_updatesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
incidents<T extends incidentsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, incidentsDefaultArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the incident_updates model
|
|
*/
|
|
interface incident_updatesFieldRefs {
|
|
readonly id: FieldRef<"incident_updates", 'String'>
|
|
readonly incident_id: FieldRef<"incident_updates", 'String'>
|
|
readonly update_type: FieldRef<"incident_updates", 'String'>
|
|
readonly title: FieldRef<"incident_updates", 'String'>
|
|
readonly description: FieldRef<"incident_updates", 'String'>
|
|
readonly old_values: FieldRef<"incident_updates", 'Json'>
|
|
readonly new_values: FieldRef<"incident_updates", 'Json'>
|
|
readonly changed_fields: FieldRef<"incident_updates", 'Json'>
|
|
readonly is_internal: FieldRef<"incident_updates", 'Boolean'>
|
|
readonly is_system_generated: FieldRef<"incident_updates", 'Boolean'>
|
|
readonly attachments: FieldRef<"incident_updates", 'Json'>
|
|
readonly created_at: FieldRef<"incident_updates", 'DateTime'>
|
|
readonly created_by: FieldRef<"incident_updates", 'String'>
|
|
readonly notifications_sent: FieldRef<"incident_updates", 'Json'>
|
|
readonly notification_status: FieldRef<"incident_updates", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* incident_updates findUnique
|
|
*/
|
|
export type incident_updatesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incident_updates to fetch.
|
|
*/
|
|
where: incident_updatesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incident_updates findUniqueOrThrow
|
|
*/
|
|
export type incident_updatesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incident_updates to fetch.
|
|
*/
|
|
where: incident_updatesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incident_updates findFirst
|
|
*/
|
|
export type incident_updatesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incident_updates to fetch.
|
|
*/
|
|
where?: incident_updatesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incident_updates to fetch.
|
|
*/
|
|
orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for incident_updates.
|
|
*/
|
|
cursor?: incident_updatesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incident_updates from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incident_updates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of incident_updates.
|
|
*/
|
|
distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incident_updates findFirstOrThrow
|
|
*/
|
|
export type incident_updatesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incident_updates to fetch.
|
|
*/
|
|
where?: incident_updatesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incident_updates to fetch.
|
|
*/
|
|
orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for incident_updates.
|
|
*/
|
|
cursor?: incident_updatesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incident_updates from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incident_updates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of incident_updates.
|
|
*/
|
|
distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incident_updates findMany
|
|
*/
|
|
export type incident_updatesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incident_updates to fetch.
|
|
*/
|
|
where?: incident_updatesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incident_updates to fetch.
|
|
*/
|
|
orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing incident_updates.
|
|
*/
|
|
cursor?: incident_updatesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incident_updates from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incident_updates.
|
|
*/
|
|
skip?: number
|
|
distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incident_updates create
|
|
*/
|
|
export type incident_updatesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a incident_updates.
|
|
*/
|
|
data: XOR<incident_updatesCreateInput, incident_updatesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* incident_updates createMany
|
|
*/
|
|
export type incident_updatesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many incident_updates.
|
|
*/
|
|
data: incident_updatesCreateManyInput | incident_updatesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* incident_updates update
|
|
*/
|
|
export type incident_updatesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a incident_updates.
|
|
*/
|
|
data: XOR<incident_updatesUpdateInput, incident_updatesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which incident_updates to update.
|
|
*/
|
|
where: incident_updatesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incident_updates updateMany
|
|
*/
|
|
export type incident_updatesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update incident_updates.
|
|
*/
|
|
data: XOR<incident_updatesUpdateManyMutationInput, incident_updatesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which incident_updates to update
|
|
*/
|
|
where?: incident_updatesWhereInput
|
|
/**
|
|
* Limit how many incident_updates to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* incident_updates upsert
|
|
*/
|
|
export type incident_updatesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the incident_updates to update in case it exists.
|
|
*/
|
|
where: incident_updatesWhereUniqueInput
|
|
/**
|
|
* In case the incident_updates found by the `where` argument doesn't exist, create a new incident_updates with this data.
|
|
*/
|
|
create: XOR<incident_updatesCreateInput, incident_updatesUncheckedCreateInput>
|
|
/**
|
|
* In case the incident_updates was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<incident_updatesUpdateInput, incident_updatesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* incident_updates delete
|
|
*/
|
|
export type incident_updatesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which incident_updates to delete.
|
|
*/
|
|
where: incident_updatesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incident_updates deleteMany
|
|
*/
|
|
export type incident_updatesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which incident_updates to delete
|
|
*/
|
|
where?: incident_updatesWhereInput
|
|
/**
|
|
* Limit how many incident_updates to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* incident_updates without action
|
|
*/
|
|
export type incident_updatesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model incidents
|
|
*/
|
|
|
|
export type AggregateIncidents = {
|
|
_count: IncidentsCountAggregateOutputType | null
|
|
_avg: IncidentsAvgAggregateOutputType | null
|
|
_sum: IncidentsSumAggregateOutputType | null
|
|
_min: IncidentsMinAggregateOutputType | null
|
|
_max: IncidentsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type IncidentsAvgAggregateOutputType = {
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
}
|
|
|
|
export type IncidentsSumAggregateOutputType = {
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
}
|
|
|
|
export type IncidentsMinAggregateOutputType = {
|
|
id: string | null
|
|
incident_number: string | null
|
|
title: string | null
|
|
description: string | null
|
|
type: string | null
|
|
severity: string | null
|
|
priority: string | null
|
|
status: string | null
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
address: string | null
|
|
zone: string | null
|
|
building: string | null
|
|
floor: string | null
|
|
room: string | null
|
|
reported_by: string | null
|
|
reporter_name: string | null
|
|
reporter_contact: string | null
|
|
reporter_type: string | null
|
|
assigned_to: string | null
|
|
assigned_team: string | null
|
|
assigned_at: Date | null
|
|
occurred_at: Date | null
|
|
reported_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
closed_at: Date | null
|
|
due_date: Date | null
|
|
geofence_id: string | null
|
|
alert_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
}
|
|
|
|
export type IncidentsMaxAggregateOutputType = {
|
|
id: string | null
|
|
incident_number: string | null
|
|
title: string | null
|
|
description: string | null
|
|
type: string | null
|
|
severity: string | null
|
|
priority: string | null
|
|
status: string | null
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
address: string | null
|
|
zone: string | null
|
|
building: string | null
|
|
floor: string | null
|
|
room: string | null
|
|
reported_by: string | null
|
|
reporter_name: string | null
|
|
reporter_contact: string | null
|
|
reporter_type: string | null
|
|
assigned_to: string | null
|
|
assigned_team: string | null
|
|
assigned_at: Date | null
|
|
occurred_at: Date | null
|
|
reported_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
closed_at: Date | null
|
|
due_date: Date | null
|
|
geofence_id: string | null
|
|
alert_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
}
|
|
|
|
export type IncidentsCountAggregateOutputType = {
|
|
id: number
|
|
incident_number: number
|
|
title: number
|
|
description: number
|
|
type: number
|
|
severity: number
|
|
priority: number
|
|
status: number
|
|
location: number
|
|
coordinates_lat: number
|
|
coordinates_lng: number
|
|
address: number
|
|
zone: number
|
|
building: number
|
|
floor: number
|
|
room: number
|
|
reported_by: number
|
|
reporter_name: number
|
|
reporter_contact: number
|
|
reporter_type: number
|
|
assigned_to: number
|
|
assigned_team: number
|
|
assigned_at: number
|
|
occurred_at: number
|
|
reported_at: number
|
|
acknowledged_at: number
|
|
resolved_at: number
|
|
closed_at: number
|
|
due_date: number
|
|
tags: number
|
|
attachments: number
|
|
evidence: number
|
|
witnesses: number
|
|
related_incidents: number
|
|
camera_ids: number
|
|
geofence_id: number
|
|
alert_id: number
|
|
metadata: number
|
|
custom_fields: number
|
|
created_at: number
|
|
updated_at: number
|
|
created_by: number
|
|
updated_by: number
|
|
deleted_at: number
|
|
deleted_by: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type IncidentsAvgAggregateInputType = {
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
}
|
|
|
|
export type IncidentsSumAggregateInputType = {
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
}
|
|
|
|
export type IncidentsMinAggregateInputType = {
|
|
id?: true
|
|
incident_number?: true
|
|
title?: true
|
|
description?: true
|
|
type?: true
|
|
severity?: true
|
|
priority?: true
|
|
status?: true
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
address?: true
|
|
zone?: true
|
|
building?: true
|
|
floor?: true
|
|
room?: true
|
|
reported_by?: true
|
|
reporter_name?: true
|
|
reporter_contact?: true
|
|
reporter_type?: true
|
|
assigned_to?: true
|
|
assigned_team?: true
|
|
assigned_at?: true
|
|
occurred_at?: true
|
|
reported_at?: true
|
|
acknowledged_at?: true
|
|
resolved_at?: true
|
|
closed_at?: true
|
|
due_date?: true
|
|
geofence_id?: true
|
|
alert_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
deleted_at?: true
|
|
deleted_by?: true
|
|
}
|
|
|
|
export type IncidentsMaxAggregateInputType = {
|
|
id?: true
|
|
incident_number?: true
|
|
title?: true
|
|
description?: true
|
|
type?: true
|
|
severity?: true
|
|
priority?: true
|
|
status?: true
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
address?: true
|
|
zone?: true
|
|
building?: true
|
|
floor?: true
|
|
room?: true
|
|
reported_by?: true
|
|
reporter_name?: true
|
|
reporter_contact?: true
|
|
reporter_type?: true
|
|
assigned_to?: true
|
|
assigned_team?: true
|
|
assigned_at?: true
|
|
occurred_at?: true
|
|
reported_at?: true
|
|
acknowledged_at?: true
|
|
resolved_at?: true
|
|
closed_at?: true
|
|
due_date?: true
|
|
geofence_id?: true
|
|
alert_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
deleted_at?: true
|
|
deleted_by?: true
|
|
}
|
|
|
|
export type IncidentsCountAggregateInputType = {
|
|
id?: true
|
|
incident_number?: true
|
|
title?: true
|
|
description?: true
|
|
type?: true
|
|
severity?: true
|
|
priority?: true
|
|
status?: true
|
|
location?: true
|
|
coordinates_lat?: true
|
|
coordinates_lng?: true
|
|
address?: true
|
|
zone?: true
|
|
building?: true
|
|
floor?: true
|
|
room?: true
|
|
reported_by?: true
|
|
reporter_name?: true
|
|
reporter_contact?: true
|
|
reporter_type?: true
|
|
assigned_to?: true
|
|
assigned_team?: true
|
|
assigned_at?: true
|
|
occurred_at?: true
|
|
reported_at?: true
|
|
acknowledged_at?: true
|
|
resolved_at?: true
|
|
closed_at?: true
|
|
due_date?: true
|
|
tags?: true
|
|
attachments?: true
|
|
evidence?: true
|
|
witnesses?: true
|
|
related_incidents?: true
|
|
camera_ids?: true
|
|
geofence_id?: true
|
|
alert_id?: true
|
|
metadata?: true
|
|
custom_fields?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
deleted_at?: true
|
|
deleted_by?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type IncidentsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which incidents to aggregate.
|
|
*/
|
|
where?: incidentsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incidents to fetch.
|
|
*/
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: incidentsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incidents from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incidents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned incidents
|
|
**/
|
|
_count?: true | IncidentsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: IncidentsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: IncidentsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: IncidentsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: IncidentsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetIncidentsAggregateType<T extends IncidentsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateIncidents]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateIncidents[P]>
|
|
: GetScalarType<T[P], AggregateIncidents[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type incidentsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: incidentsWhereInput
|
|
orderBy?: incidentsOrderByWithAggregationInput | incidentsOrderByWithAggregationInput[]
|
|
by: IncidentsScalarFieldEnum[] | IncidentsScalarFieldEnum
|
|
having?: incidentsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: IncidentsCountAggregateInputType | true
|
|
_avg?: IncidentsAvgAggregateInputType
|
|
_sum?: IncidentsSumAggregateInputType
|
|
_min?: IncidentsMinAggregateInputType
|
|
_max?: IncidentsMaxAggregateInputType
|
|
}
|
|
|
|
export type IncidentsGroupByOutputType = {
|
|
id: string
|
|
incident_number: string
|
|
title: string
|
|
description: string | null
|
|
type: string
|
|
severity: string
|
|
priority: string
|
|
status: string
|
|
location: JsonValue
|
|
coordinates_lat: Decimal | null
|
|
coordinates_lng: Decimal | null
|
|
address: string | null
|
|
zone: string | null
|
|
building: string | null
|
|
floor: string | null
|
|
room: string | null
|
|
reported_by: string | null
|
|
reporter_name: string | null
|
|
reporter_contact: string | null
|
|
reporter_type: string | null
|
|
assigned_to: string | null
|
|
assigned_team: string | null
|
|
assigned_at: Date | null
|
|
occurred_at: Date
|
|
reported_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
closed_at: Date | null
|
|
due_date: Date | null
|
|
tags: JsonValue | null
|
|
attachments: JsonValue | null
|
|
evidence: JsonValue | null
|
|
witnesses: JsonValue | null
|
|
related_incidents: JsonValue | null
|
|
camera_ids: JsonValue | null
|
|
geofence_id: string | null
|
|
alert_id: string | null
|
|
metadata: JsonValue | null
|
|
custom_fields: JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
_count: IncidentsCountAggregateOutputType | null
|
|
_avg: IncidentsAvgAggregateOutputType | null
|
|
_sum: IncidentsSumAggregateOutputType | null
|
|
_min: IncidentsMinAggregateOutputType | null
|
|
_max: IncidentsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetIncidentsGroupByPayload<T extends incidentsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<IncidentsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof IncidentsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], IncidentsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], IncidentsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type incidentsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
incident_number?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
type?: boolean
|
|
severity?: boolean
|
|
priority?: boolean
|
|
status?: boolean
|
|
location?: boolean
|
|
coordinates_lat?: boolean
|
|
coordinates_lng?: boolean
|
|
address?: boolean
|
|
zone?: boolean
|
|
building?: boolean
|
|
floor?: boolean
|
|
room?: boolean
|
|
reported_by?: boolean
|
|
reporter_name?: boolean
|
|
reporter_contact?: boolean
|
|
reporter_type?: boolean
|
|
assigned_to?: boolean
|
|
assigned_team?: boolean
|
|
assigned_at?: boolean
|
|
occurred_at?: boolean
|
|
reported_at?: boolean
|
|
acknowledged_at?: boolean
|
|
resolved_at?: boolean
|
|
closed_at?: boolean
|
|
due_date?: boolean
|
|
tags?: boolean
|
|
attachments?: boolean
|
|
evidence?: boolean
|
|
witnesses?: boolean
|
|
related_incidents?: boolean
|
|
camera_ids?: boolean
|
|
geofence_id?: boolean
|
|
alert_id?: boolean
|
|
metadata?: boolean
|
|
custom_fields?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
deleted_at?: boolean
|
|
deleted_by?: boolean
|
|
alerts?: boolean | incidents$alertsArgs<ExtArgs>
|
|
incident_updates?: boolean | incidents$incident_updatesArgs<ExtArgs>
|
|
team_members_incidents_reported_byToteam_members?: boolean | incidents$team_members_incidents_reported_byToteam_membersArgs<ExtArgs>
|
|
team_members_incidents_assigned_toToteam_members?: boolean | incidents$team_members_incidents_assigned_toToteam_membersArgs<ExtArgs>
|
|
geofences?: boolean | incidents$geofencesArgs<ExtArgs>
|
|
_count?: boolean | IncidentsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["incidents"]>
|
|
|
|
|
|
|
|
export type incidentsSelectScalar = {
|
|
id?: boolean
|
|
incident_number?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
type?: boolean
|
|
severity?: boolean
|
|
priority?: boolean
|
|
status?: boolean
|
|
location?: boolean
|
|
coordinates_lat?: boolean
|
|
coordinates_lng?: boolean
|
|
address?: boolean
|
|
zone?: boolean
|
|
building?: boolean
|
|
floor?: boolean
|
|
room?: boolean
|
|
reported_by?: boolean
|
|
reporter_name?: boolean
|
|
reporter_contact?: boolean
|
|
reporter_type?: boolean
|
|
assigned_to?: boolean
|
|
assigned_team?: boolean
|
|
assigned_at?: boolean
|
|
occurred_at?: boolean
|
|
reported_at?: boolean
|
|
acknowledged_at?: boolean
|
|
resolved_at?: boolean
|
|
closed_at?: boolean
|
|
due_date?: boolean
|
|
tags?: boolean
|
|
attachments?: boolean
|
|
evidence?: boolean
|
|
witnesses?: boolean
|
|
related_incidents?: boolean
|
|
camera_ids?: boolean
|
|
geofence_id?: boolean
|
|
alert_id?: boolean
|
|
metadata?: boolean
|
|
custom_fields?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
deleted_at?: boolean
|
|
deleted_by?: boolean
|
|
}
|
|
|
|
export type incidentsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "incident_number" | "title" | "description" | "type" | "severity" | "priority" | "status" | "location" | "coordinates_lat" | "coordinates_lng" | "address" | "zone" | "building" | "floor" | "room" | "reported_by" | "reporter_name" | "reporter_contact" | "reporter_type" | "assigned_to" | "assigned_team" | "assigned_at" | "occurred_at" | "reported_at" | "acknowledged_at" | "resolved_at" | "closed_at" | "due_date" | "tags" | "attachments" | "evidence" | "witnesses" | "related_incidents" | "camera_ids" | "geofence_id" | "alert_id" | "metadata" | "custom_fields" | "created_at" | "updated_at" | "created_by" | "updated_by" | "deleted_at" | "deleted_by", ExtArgs["result"]["incidents"]>
|
|
export type incidentsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
alerts?: boolean | incidents$alertsArgs<ExtArgs>
|
|
incident_updates?: boolean | incidents$incident_updatesArgs<ExtArgs>
|
|
team_members_incidents_reported_byToteam_members?: boolean | incidents$team_members_incidents_reported_byToteam_membersArgs<ExtArgs>
|
|
team_members_incidents_assigned_toToteam_members?: boolean | incidents$team_members_incidents_assigned_toToteam_membersArgs<ExtArgs>
|
|
geofences?: boolean | incidents$geofencesArgs<ExtArgs>
|
|
_count?: boolean | IncidentsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $incidentsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "incidents"
|
|
objects: {
|
|
alerts: Prisma.$alertsPayload<ExtArgs>[]
|
|
incident_updates: Prisma.$incident_updatesPayload<ExtArgs>[]
|
|
team_members_incidents_reported_byToteam_members: Prisma.$team_membersPayload<ExtArgs> | null
|
|
team_members_incidents_assigned_toToteam_members: Prisma.$team_membersPayload<ExtArgs> | null
|
|
geofences: Prisma.$geofencesPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
incident_number: string
|
|
title: string
|
|
description: string | null
|
|
type: string
|
|
severity: string
|
|
priority: string
|
|
status: string
|
|
location: Prisma.JsonValue
|
|
coordinates_lat: Prisma.Decimal | null
|
|
coordinates_lng: Prisma.Decimal | null
|
|
address: string | null
|
|
zone: string | null
|
|
building: string | null
|
|
floor: string | null
|
|
room: string | null
|
|
reported_by: string | null
|
|
reporter_name: string | null
|
|
reporter_contact: string | null
|
|
reporter_type: string | null
|
|
assigned_to: string | null
|
|
assigned_team: string | null
|
|
assigned_at: Date | null
|
|
occurred_at: Date
|
|
reported_at: Date | null
|
|
acknowledged_at: Date | null
|
|
resolved_at: Date | null
|
|
closed_at: Date | null
|
|
due_date: Date | null
|
|
tags: Prisma.JsonValue | null
|
|
attachments: Prisma.JsonValue | null
|
|
evidence: Prisma.JsonValue | null
|
|
witnesses: Prisma.JsonValue | null
|
|
related_incidents: Prisma.JsonValue | null
|
|
camera_ids: Prisma.JsonValue | null
|
|
geofence_id: string | null
|
|
alert_id: string | null
|
|
metadata: Prisma.JsonValue | null
|
|
custom_fields: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
deleted_at: Date | null
|
|
deleted_by: string | null
|
|
}, ExtArgs["result"]["incidents"]>
|
|
composites: {}
|
|
}
|
|
|
|
type incidentsGetPayload<S extends boolean | null | undefined | incidentsDefaultArgs> = $Result.GetResult<Prisma.$incidentsPayload, S>
|
|
|
|
type incidentsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<incidentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: IncidentsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface incidentsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['incidents'], meta: { name: 'incidents' } }
|
|
/**
|
|
* Find zero or one Incidents that matches the filter.
|
|
* @param {incidentsFindUniqueArgs} args - Arguments to find a Incidents
|
|
* @example
|
|
* // Get one Incidents
|
|
* const incidents = await prisma.incidents.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends incidentsFindUniqueArgs>(args: SelectSubset<T, incidentsFindUniqueArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Incidents that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {incidentsFindUniqueOrThrowArgs} args - Arguments to find a Incidents
|
|
* @example
|
|
* // Get one Incidents
|
|
* const incidents = await prisma.incidents.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends incidentsFindUniqueOrThrowArgs>(args: SelectSubset<T, incidentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Incidents that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incidentsFindFirstArgs} args - Arguments to find a Incidents
|
|
* @example
|
|
* // Get one Incidents
|
|
* const incidents = await prisma.incidents.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends incidentsFindFirstArgs>(args?: SelectSubset<T, incidentsFindFirstArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Incidents that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incidentsFindFirstOrThrowArgs} args - Arguments to find a Incidents
|
|
* @example
|
|
* // Get one Incidents
|
|
* const incidents = await prisma.incidents.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends incidentsFindFirstOrThrowArgs>(args?: SelectSubset<T, incidentsFindFirstOrThrowArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Incidents that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incidentsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Incidents
|
|
* const incidents = await prisma.incidents.findMany()
|
|
*
|
|
* // Get first 10 Incidents
|
|
* const incidents = await prisma.incidents.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const incidentsWithIdOnly = await prisma.incidents.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends incidentsFindManyArgs>(args?: SelectSubset<T, incidentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Incidents.
|
|
* @param {incidentsCreateArgs} args - Arguments to create a Incidents.
|
|
* @example
|
|
* // Create one Incidents
|
|
* const Incidents = await prisma.incidents.create({
|
|
* data: {
|
|
* // ... data to create a Incidents
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends incidentsCreateArgs>(args: SelectSubset<T, incidentsCreateArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Incidents.
|
|
* @param {incidentsCreateManyArgs} args - Arguments to create many Incidents.
|
|
* @example
|
|
* // Create many Incidents
|
|
* const incidents = await prisma.incidents.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends incidentsCreateManyArgs>(args?: SelectSubset<T, incidentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Incidents.
|
|
* @param {incidentsDeleteArgs} args - Arguments to delete one Incidents.
|
|
* @example
|
|
* // Delete one Incidents
|
|
* const Incidents = await prisma.incidents.delete({
|
|
* where: {
|
|
* // ... filter to delete one Incidents
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends incidentsDeleteArgs>(args: SelectSubset<T, incidentsDeleteArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Incidents.
|
|
* @param {incidentsUpdateArgs} args - Arguments to update one Incidents.
|
|
* @example
|
|
* // Update one Incidents
|
|
* const incidents = await prisma.incidents.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends incidentsUpdateArgs>(args: SelectSubset<T, incidentsUpdateArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Incidents.
|
|
* @param {incidentsDeleteManyArgs} args - Arguments to filter Incidents to delete.
|
|
* @example
|
|
* // Delete a few Incidents
|
|
* const { count } = await prisma.incidents.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends incidentsDeleteManyArgs>(args?: SelectSubset<T, incidentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Incidents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incidentsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Incidents
|
|
* const incidents = await prisma.incidents.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends incidentsUpdateManyArgs>(args: SelectSubset<T, incidentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Incidents.
|
|
* @param {incidentsUpsertArgs} args - Arguments to update or create a Incidents.
|
|
* @example
|
|
* // Update or create a Incidents
|
|
* const incidents = await prisma.incidents.upsert({
|
|
* create: {
|
|
* // ... data to create a Incidents
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Incidents we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends incidentsUpsertArgs>(args: SelectSubset<T, incidentsUpsertArgs<ExtArgs>>): Prisma__incidentsClient<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Incidents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incidentsCountArgs} args - Arguments to filter Incidents to count.
|
|
* @example
|
|
* // Count the number of Incidents
|
|
* const count = await prisma.incidents.count({
|
|
* where: {
|
|
* // ... the filter for the Incidents we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends incidentsCountArgs>(
|
|
args?: Subset<T, incidentsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], IncidentsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Incidents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {IncidentsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends IncidentsAggregateArgs>(args: Subset<T, IncidentsAggregateArgs>): Prisma.PrismaPromise<GetIncidentsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Incidents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {incidentsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends incidentsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: incidentsGroupByArgs['orderBy'] }
|
|
: { orderBy?: incidentsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, incidentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIncidentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the incidents model
|
|
*/
|
|
readonly fields: incidentsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for incidents.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__incidentsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
alerts<T extends incidents$alertsArgs<ExtArgs> = {}>(args?: Subset<T, incidents$alertsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$alertsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
incident_updates<T extends incidents$incident_updatesArgs<ExtArgs> = {}>(args?: Subset<T, incidents$incident_updatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$incident_updatesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
team_members_incidents_reported_byToteam_members<T extends incidents$team_members_incidents_reported_byToteam_membersArgs<ExtArgs> = {}>(args?: Subset<T, incidents$team_members_incidents_reported_byToteam_membersArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
team_members_incidents_assigned_toToteam_members<T extends incidents$team_members_incidents_assigned_toToteam_membersArgs<ExtArgs> = {}>(args?: Subset<T, incidents$team_members_incidents_assigned_toToteam_membersArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
geofences<T extends incidents$geofencesArgs<ExtArgs> = {}>(args?: Subset<T, incidents$geofencesArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the incidents model
|
|
*/
|
|
interface incidentsFieldRefs {
|
|
readonly id: FieldRef<"incidents", 'String'>
|
|
readonly incident_number: FieldRef<"incidents", 'String'>
|
|
readonly title: FieldRef<"incidents", 'String'>
|
|
readonly description: FieldRef<"incidents", 'String'>
|
|
readonly type: FieldRef<"incidents", 'String'>
|
|
readonly severity: FieldRef<"incidents", 'String'>
|
|
readonly priority: FieldRef<"incidents", 'String'>
|
|
readonly status: FieldRef<"incidents", 'String'>
|
|
readonly location: FieldRef<"incidents", 'Json'>
|
|
readonly coordinates_lat: FieldRef<"incidents", 'Decimal'>
|
|
readonly coordinates_lng: FieldRef<"incidents", 'Decimal'>
|
|
readonly address: FieldRef<"incidents", 'String'>
|
|
readonly zone: FieldRef<"incidents", 'String'>
|
|
readonly building: FieldRef<"incidents", 'String'>
|
|
readonly floor: FieldRef<"incidents", 'String'>
|
|
readonly room: FieldRef<"incidents", 'String'>
|
|
readonly reported_by: FieldRef<"incidents", 'String'>
|
|
readonly reporter_name: FieldRef<"incidents", 'String'>
|
|
readonly reporter_contact: FieldRef<"incidents", 'String'>
|
|
readonly reporter_type: FieldRef<"incidents", 'String'>
|
|
readonly assigned_to: FieldRef<"incidents", 'String'>
|
|
readonly assigned_team: FieldRef<"incidents", 'String'>
|
|
readonly assigned_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly occurred_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly reported_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly acknowledged_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly resolved_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly closed_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly due_date: FieldRef<"incidents", 'DateTime'>
|
|
readonly tags: FieldRef<"incidents", 'Json'>
|
|
readonly attachments: FieldRef<"incidents", 'Json'>
|
|
readonly evidence: FieldRef<"incidents", 'Json'>
|
|
readonly witnesses: FieldRef<"incidents", 'Json'>
|
|
readonly related_incidents: FieldRef<"incidents", 'Json'>
|
|
readonly camera_ids: FieldRef<"incidents", 'Json'>
|
|
readonly geofence_id: FieldRef<"incidents", 'String'>
|
|
readonly alert_id: FieldRef<"incidents", 'String'>
|
|
readonly metadata: FieldRef<"incidents", 'Json'>
|
|
readonly custom_fields: FieldRef<"incidents", 'Json'>
|
|
readonly created_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly updated_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly created_by: FieldRef<"incidents", 'String'>
|
|
readonly updated_by: FieldRef<"incidents", 'String'>
|
|
readonly deleted_at: FieldRef<"incidents", 'DateTime'>
|
|
readonly deleted_by: FieldRef<"incidents", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* incidents findUnique
|
|
*/
|
|
export type incidentsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incidents to fetch.
|
|
*/
|
|
where: incidentsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incidents findUniqueOrThrow
|
|
*/
|
|
export type incidentsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incidents to fetch.
|
|
*/
|
|
where: incidentsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incidents findFirst
|
|
*/
|
|
export type incidentsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incidents to fetch.
|
|
*/
|
|
where?: incidentsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incidents to fetch.
|
|
*/
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for incidents.
|
|
*/
|
|
cursor?: incidentsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incidents from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incidents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of incidents.
|
|
*/
|
|
distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incidents findFirstOrThrow
|
|
*/
|
|
export type incidentsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incidents to fetch.
|
|
*/
|
|
where?: incidentsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incidents to fetch.
|
|
*/
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for incidents.
|
|
*/
|
|
cursor?: incidentsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incidents from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incidents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of incidents.
|
|
*/
|
|
distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incidents findMany
|
|
*/
|
|
export type incidentsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which incidents to fetch.
|
|
*/
|
|
where?: incidentsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of incidents to fetch.
|
|
*/
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing incidents.
|
|
*/
|
|
cursor?: incidentsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` incidents from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` incidents.
|
|
*/
|
|
skip?: number
|
|
distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incidents create
|
|
*/
|
|
export type incidentsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a incidents.
|
|
*/
|
|
data: XOR<incidentsCreateInput, incidentsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* incidents createMany
|
|
*/
|
|
export type incidentsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many incidents.
|
|
*/
|
|
data: incidentsCreateManyInput | incidentsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* incidents update
|
|
*/
|
|
export type incidentsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a incidents.
|
|
*/
|
|
data: XOR<incidentsUpdateInput, incidentsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which incidents to update.
|
|
*/
|
|
where: incidentsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incidents updateMany
|
|
*/
|
|
export type incidentsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update incidents.
|
|
*/
|
|
data: XOR<incidentsUpdateManyMutationInput, incidentsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which incidents to update
|
|
*/
|
|
where?: incidentsWhereInput
|
|
/**
|
|
* Limit how many incidents to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* incidents upsert
|
|
*/
|
|
export type incidentsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the incidents to update in case it exists.
|
|
*/
|
|
where: incidentsWhereUniqueInput
|
|
/**
|
|
* In case the incidents found by the `where` argument doesn't exist, create a new incidents with this data.
|
|
*/
|
|
create: XOR<incidentsCreateInput, incidentsUncheckedCreateInput>
|
|
/**
|
|
* In case the incidents was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<incidentsUpdateInput, incidentsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* incidents delete
|
|
*/
|
|
export type incidentsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which incidents to delete.
|
|
*/
|
|
where: incidentsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* incidents deleteMany
|
|
*/
|
|
export type incidentsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which incidents to delete
|
|
*/
|
|
where?: incidentsWhereInput
|
|
/**
|
|
* Limit how many incidents to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* incidents.alerts
|
|
*/
|
|
export type incidents$alertsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the alerts
|
|
*/
|
|
select?: alertsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the alerts
|
|
*/
|
|
omit?: alertsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: alertsInclude<ExtArgs> | null
|
|
where?: alertsWhereInput
|
|
orderBy?: alertsOrderByWithRelationInput | alertsOrderByWithRelationInput[]
|
|
cursor?: alertsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AlertsScalarFieldEnum | AlertsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incidents.incident_updates
|
|
*/
|
|
export type incidents$incident_updatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incident_updates
|
|
*/
|
|
select?: incident_updatesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incident_updates
|
|
*/
|
|
omit?: incident_updatesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incident_updatesInclude<ExtArgs> | null
|
|
where?: incident_updatesWhereInput
|
|
orderBy?: incident_updatesOrderByWithRelationInput | incident_updatesOrderByWithRelationInput[]
|
|
cursor?: incident_updatesWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Incident_updatesScalarFieldEnum | Incident_updatesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* incidents.team_members_incidents_reported_byToteam_members
|
|
*/
|
|
export type incidents$team_members_incidents_reported_byToteam_membersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
where?: team_membersWhereInput
|
|
}
|
|
|
|
/**
|
|
* incidents.team_members_incidents_assigned_toToteam_members
|
|
*/
|
|
export type incidents$team_members_incidents_assigned_toToteam_membersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
where?: team_membersWhereInput
|
|
}
|
|
|
|
/**
|
|
* incidents.geofences
|
|
*/
|
|
export type incidents$geofencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
where?: geofencesWhereInput
|
|
}
|
|
|
|
/**
|
|
* incidents without action
|
|
*/
|
|
export type incidentsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model ktp_validation_audit
|
|
*/
|
|
|
|
export type AggregateKtp_validation_audit = {
|
|
_count: Ktp_validation_auditCountAggregateOutputType | null
|
|
_min: Ktp_validation_auditMinAggregateOutputType | null
|
|
_max: Ktp_validation_auditMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Ktp_validation_auditMinAggregateOutputType = {
|
|
id: string | null
|
|
ktp_data_id: string | null
|
|
action: $Enums.ktp_validation_audit_action | null
|
|
performed_by: string | null
|
|
ip_address: string | null
|
|
user_agent: string | null
|
|
reason: string | null
|
|
created_at: Date | null
|
|
}
|
|
|
|
export type Ktp_validation_auditMaxAggregateOutputType = {
|
|
id: string | null
|
|
ktp_data_id: string | null
|
|
action: $Enums.ktp_validation_audit_action | null
|
|
performed_by: string | null
|
|
ip_address: string | null
|
|
user_agent: string | null
|
|
reason: string | null
|
|
created_at: Date | null
|
|
}
|
|
|
|
export type Ktp_validation_auditCountAggregateOutputType = {
|
|
id: number
|
|
ktp_data_id: number
|
|
action: number
|
|
old_values: number
|
|
new_values: number
|
|
performed_by: number
|
|
ip_address: number
|
|
user_agent: number
|
|
reason: number
|
|
created_at: number
|
|
metadata: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Ktp_validation_auditMinAggregateInputType = {
|
|
id?: true
|
|
ktp_data_id?: true
|
|
action?: true
|
|
performed_by?: true
|
|
ip_address?: true
|
|
user_agent?: true
|
|
reason?: true
|
|
created_at?: true
|
|
}
|
|
|
|
export type Ktp_validation_auditMaxAggregateInputType = {
|
|
id?: true
|
|
ktp_data_id?: true
|
|
action?: true
|
|
performed_by?: true
|
|
ip_address?: true
|
|
user_agent?: true
|
|
reason?: true
|
|
created_at?: true
|
|
}
|
|
|
|
export type Ktp_validation_auditCountAggregateInputType = {
|
|
id?: true
|
|
ktp_data_id?: true
|
|
action?: true
|
|
old_values?: true
|
|
new_values?: true
|
|
performed_by?: true
|
|
ip_address?: true
|
|
user_agent?: true
|
|
reason?: true
|
|
created_at?: true
|
|
metadata?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Ktp_validation_auditAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ktp_validation_audit to aggregate.
|
|
*/
|
|
where?: ktp_validation_auditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ktp_validation_audits to fetch.
|
|
*/
|
|
orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: ktp_validation_auditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ktp_validation_audits from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ktp_validation_audits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ktp_validation_audits
|
|
**/
|
|
_count?: true | Ktp_validation_auditCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Ktp_validation_auditMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Ktp_validation_auditMaxAggregateInputType
|
|
}
|
|
|
|
export type GetKtp_validation_auditAggregateType<T extends Ktp_validation_auditAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateKtp_validation_audit]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateKtp_validation_audit[P]>
|
|
: GetScalarType<T[P], AggregateKtp_validation_audit[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ktp_validation_auditGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ktp_validation_auditWhereInput
|
|
orderBy?: ktp_validation_auditOrderByWithAggregationInput | ktp_validation_auditOrderByWithAggregationInput[]
|
|
by: Ktp_validation_auditScalarFieldEnum[] | Ktp_validation_auditScalarFieldEnum
|
|
having?: ktp_validation_auditScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Ktp_validation_auditCountAggregateInputType | true
|
|
_min?: Ktp_validation_auditMinAggregateInputType
|
|
_max?: Ktp_validation_auditMaxAggregateInputType
|
|
}
|
|
|
|
export type Ktp_validation_auditGroupByOutputType = {
|
|
id: string
|
|
ktp_data_id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values: JsonValue | null
|
|
new_values: JsonValue | null
|
|
performed_by: string
|
|
ip_address: string | null
|
|
user_agent: string | null
|
|
reason: string | null
|
|
created_at: Date
|
|
metadata: JsonValue | null
|
|
_count: Ktp_validation_auditCountAggregateOutputType | null
|
|
_min: Ktp_validation_auditMinAggregateOutputType | null
|
|
_max: Ktp_validation_auditMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetKtp_validation_auditGroupByPayload<T extends ktp_validation_auditGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Ktp_validation_auditGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Ktp_validation_auditGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Ktp_validation_auditGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Ktp_validation_auditGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ktp_validation_auditSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
ktp_data_id?: boolean
|
|
action?: boolean
|
|
old_values?: boolean
|
|
new_values?: boolean
|
|
performed_by?: boolean
|
|
ip_address?: boolean
|
|
user_agent?: boolean
|
|
reason?: boolean
|
|
created_at?: boolean
|
|
metadata?: boolean
|
|
visitor_ktp_data?: boolean | visitor_ktp_dataDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["ktp_validation_audit"]>
|
|
|
|
|
|
|
|
export type ktp_validation_auditSelectScalar = {
|
|
id?: boolean
|
|
ktp_data_id?: boolean
|
|
action?: boolean
|
|
old_values?: boolean
|
|
new_values?: boolean
|
|
performed_by?: boolean
|
|
ip_address?: boolean
|
|
user_agent?: boolean
|
|
reason?: boolean
|
|
created_at?: boolean
|
|
metadata?: boolean
|
|
}
|
|
|
|
export type ktp_validation_auditOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ktp_data_id" | "action" | "old_values" | "new_values" | "performed_by" | "ip_address" | "user_agent" | "reason" | "created_at" | "metadata", ExtArgs["result"]["ktp_validation_audit"]>
|
|
export type ktp_validation_auditInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
visitor_ktp_data?: boolean | visitor_ktp_dataDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ktp_validation_auditPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ktp_validation_audit"
|
|
objects: {
|
|
visitor_ktp_data: Prisma.$visitor_ktp_dataPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
ktp_data_id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values: Prisma.JsonValue | null
|
|
new_values: Prisma.JsonValue | null
|
|
performed_by: string
|
|
ip_address: string | null
|
|
user_agent: string | null
|
|
reason: string | null
|
|
created_at: Date
|
|
metadata: Prisma.JsonValue | null
|
|
}, ExtArgs["result"]["ktp_validation_audit"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ktp_validation_auditGetPayload<S extends boolean | null | undefined | ktp_validation_auditDefaultArgs> = $Result.GetResult<Prisma.$ktp_validation_auditPayload, S>
|
|
|
|
type ktp_validation_auditCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ktp_validation_auditFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Ktp_validation_auditCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ktp_validation_auditDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ktp_validation_audit'], meta: { name: 'ktp_validation_audit' } }
|
|
/**
|
|
* Find zero or one Ktp_validation_audit that matches the filter.
|
|
* @param {ktp_validation_auditFindUniqueArgs} args - Arguments to find a Ktp_validation_audit
|
|
* @example
|
|
* // Get one Ktp_validation_audit
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ktp_validation_auditFindUniqueArgs>(args: SelectSubset<T, ktp_validation_auditFindUniqueArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Ktp_validation_audit that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ktp_validation_auditFindUniqueOrThrowArgs} args - Arguments to find a Ktp_validation_audit
|
|
* @example
|
|
* // Get one Ktp_validation_audit
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ktp_validation_auditFindUniqueOrThrowArgs>(args: SelectSubset<T, ktp_validation_auditFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Ktp_validation_audit that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ktp_validation_auditFindFirstArgs} args - Arguments to find a Ktp_validation_audit
|
|
* @example
|
|
* // Get one Ktp_validation_audit
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ktp_validation_auditFindFirstArgs>(args?: SelectSubset<T, ktp_validation_auditFindFirstArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Ktp_validation_audit that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ktp_validation_auditFindFirstOrThrowArgs} args - Arguments to find a Ktp_validation_audit
|
|
* @example
|
|
* // Get one Ktp_validation_audit
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ktp_validation_auditFindFirstOrThrowArgs>(args?: SelectSubset<T, ktp_validation_auditFindFirstOrThrowArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Ktp_validation_audits that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ktp_validation_auditFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Ktp_validation_audits
|
|
* const ktp_validation_audits = await prisma.ktp_validation_audit.findMany()
|
|
*
|
|
* // Get first 10 Ktp_validation_audits
|
|
* const ktp_validation_audits = await prisma.ktp_validation_audit.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const ktp_validation_auditWithIdOnly = await prisma.ktp_validation_audit.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ktp_validation_auditFindManyArgs>(args?: SelectSubset<T, ktp_validation_auditFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Ktp_validation_audit.
|
|
* @param {ktp_validation_auditCreateArgs} args - Arguments to create a Ktp_validation_audit.
|
|
* @example
|
|
* // Create one Ktp_validation_audit
|
|
* const Ktp_validation_audit = await prisma.ktp_validation_audit.create({
|
|
* data: {
|
|
* // ... data to create a Ktp_validation_audit
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ktp_validation_auditCreateArgs>(args: SelectSubset<T, ktp_validation_auditCreateArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Ktp_validation_audits.
|
|
* @param {ktp_validation_auditCreateManyArgs} args - Arguments to create many Ktp_validation_audits.
|
|
* @example
|
|
* // Create many Ktp_validation_audits
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ktp_validation_auditCreateManyArgs>(args?: SelectSubset<T, ktp_validation_auditCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Ktp_validation_audit.
|
|
* @param {ktp_validation_auditDeleteArgs} args - Arguments to delete one Ktp_validation_audit.
|
|
* @example
|
|
* // Delete one Ktp_validation_audit
|
|
* const Ktp_validation_audit = await prisma.ktp_validation_audit.delete({
|
|
* where: {
|
|
* // ... filter to delete one Ktp_validation_audit
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ktp_validation_auditDeleteArgs>(args: SelectSubset<T, ktp_validation_auditDeleteArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Ktp_validation_audit.
|
|
* @param {ktp_validation_auditUpdateArgs} args - Arguments to update one Ktp_validation_audit.
|
|
* @example
|
|
* // Update one Ktp_validation_audit
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ktp_validation_auditUpdateArgs>(args: SelectSubset<T, ktp_validation_auditUpdateArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Ktp_validation_audits.
|
|
* @param {ktp_validation_auditDeleteManyArgs} args - Arguments to filter Ktp_validation_audits to delete.
|
|
* @example
|
|
* // Delete a few Ktp_validation_audits
|
|
* const { count } = await prisma.ktp_validation_audit.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ktp_validation_auditDeleteManyArgs>(args?: SelectSubset<T, ktp_validation_auditDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Ktp_validation_audits.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ktp_validation_auditUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Ktp_validation_audits
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ktp_validation_auditUpdateManyArgs>(args: SelectSubset<T, ktp_validation_auditUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Ktp_validation_audit.
|
|
* @param {ktp_validation_auditUpsertArgs} args - Arguments to update or create a Ktp_validation_audit.
|
|
* @example
|
|
* // Update or create a Ktp_validation_audit
|
|
* const ktp_validation_audit = await prisma.ktp_validation_audit.upsert({
|
|
* create: {
|
|
* // ... data to create a Ktp_validation_audit
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Ktp_validation_audit we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ktp_validation_auditUpsertArgs>(args: SelectSubset<T, ktp_validation_auditUpsertArgs<ExtArgs>>): Prisma__ktp_validation_auditClient<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Ktp_validation_audits.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ktp_validation_auditCountArgs} args - Arguments to filter Ktp_validation_audits to count.
|
|
* @example
|
|
* // Count the number of Ktp_validation_audits
|
|
* const count = await prisma.ktp_validation_audit.count({
|
|
* where: {
|
|
* // ... the filter for the Ktp_validation_audits we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ktp_validation_auditCountArgs>(
|
|
args?: Subset<T, ktp_validation_auditCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Ktp_validation_auditCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Ktp_validation_audit.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Ktp_validation_auditAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Ktp_validation_auditAggregateArgs>(args: Subset<T, Ktp_validation_auditAggregateArgs>): Prisma.PrismaPromise<GetKtp_validation_auditAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Ktp_validation_audit.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ktp_validation_auditGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ktp_validation_auditGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ktp_validation_auditGroupByArgs['orderBy'] }
|
|
: { orderBy?: ktp_validation_auditGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ktp_validation_auditGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKtp_validation_auditGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ktp_validation_audit model
|
|
*/
|
|
readonly fields: ktp_validation_auditFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ktp_validation_audit.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ktp_validation_auditClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
visitor_ktp_data<T extends visitor_ktp_dataDefaultArgs<ExtArgs> = {}>(args?: Subset<T, visitor_ktp_dataDefaultArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ktp_validation_audit model
|
|
*/
|
|
interface ktp_validation_auditFieldRefs {
|
|
readonly id: FieldRef<"ktp_validation_audit", 'String'>
|
|
readonly ktp_data_id: FieldRef<"ktp_validation_audit", 'String'>
|
|
readonly action: FieldRef<"ktp_validation_audit", 'ktp_validation_audit_action'>
|
|
readonly old_values: FieldRef<"ktp_validation_audit", 'Json'>
|
|
readonly new_values: FieldRef<"ktp_validation_audit", 'Json'>
|
|
readonly performed_by: FieldRef<"ktp_validation_audit", 'String'>
|
|
readonly ip_address: FieldRef<"ktp_validation_audit", 'String'>
|
|
readonly user_agent: FieldRef<"ktp_validation_audit", 'String'>
|
|
readonly reason: FieldRef<"ktp_validation_audit", 'String'>
|
|
readonly created_at: FieldRef<"ktp_validation_audit", 'DateTime'>
|
|
readonly metadata: FieldRef<"ktp_validation_audit", 'Json'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ktp_validation_audit findUnique
|
|
*/
|
|
export type ktp_validation_auditFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ktp_validation_audit to fetch.
|
|
*/
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit findUniqueOrThrow
|
|
*/
|
|
export type ktp_validation_auditFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ktp_validation_audit to fetch.
|
|
*/
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit findFirst
|
|
*/
|
|
export type ktp_validation_auditFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ktp_validation_audit to fetch.
|
|
*/
|
|
where?: ktp_validation_auditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ktp_validation_audits to fetch.
|
|
*/
|
|
orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ktp_validation_audits.
|
|
*/
|
|
cursor?: ktp_validation_auditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ktp_validation_audits from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ktp_validation_audits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ktp_validation_audits.
|
|
*/
|
|
distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit findFirstOrThrow
|
|
*/
|
|
export type ktp_validation_auditFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ktp_validation_audit to fetch.
|
|
*/
|
|
where?: ktp_validation_auditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ktp_validation_audits to fetch.
|
|
*/
|
|
orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ktp_validation_audits.
|
|
*/
|
|
cursor?: ktp_validation_auditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ktp_validation_audits from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ktp_validation_audits.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ktp_validation_audits.
|
|
*/
|
|
distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit findMany
|
|
*/
|
|
export type ktp_validation_auditFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ktp_validation_audits to fetch.
|
|
*/
|
|
where?: ktp_validation_auditWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ktp_validation_audits to fetch.
|
|
*/
|
|
orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ktp_validation_audits.
|
|
*/
|
|
cursor?: ktp_validation_auditWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ktp_validation_audits from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ktp_validation_audits.
|
|
*/
|
|
skip?: number
|
|
distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit create
|
|
*/
|
|
export type ktp_validation_auditCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ktp_validation_audit.
|
|
*/
|
|
data: XOR<ktp_validation_auditCreateInput, ktp_validation_auditUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit createMany
|
|
*/
|
|
export type ktp_validation_auditCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ktp_validation_audits.
|
|
*/
|
|
data: ktp_validation_auditCreateManyInput | ktp_validation_auditCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit update
|
|
*/
|
|
export type ktp_validation_auditUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ktp_validation_audit.
|
|
*/
|
|
data: XOR<ktp_validation_auditUpdateInput, ktp_validation_auditUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ktp_validation_audit to update.
|
|
*/
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit updateMany
|
|
*/
|
|
export type ktp_validation_auditUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ktp_validation_audits.
|
|
*/
|
|
data: XOR<ktp_validation_auditUpdateManyMutationInput, ktp_validation_auditUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ktp_validation_audits to update
|
|
*/
|
|
where?: ktp_validation_auditWhereInput
|
|
/**
|
|
* Limit how many ktp_validation_audits to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit upsert
|
|
*/
|
|
export type ktp_validation_auditUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ktp_validation_audit to update in case it exists.
|
|
*/
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
/**
|
|
* In case the ktp_validation_audit found by the `where` argument doesn't exist, create a new ktp_validation_audit with this data.
|
|
*/
|
|
create: XOR<ktp_validation_auditCreateInput, ktp_validation_auditUncheckedCreateInput>
|
|
/**
|
|
* In case the ktp_validation_audit was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ktp_validation_auditUpdateInput, ktp_validation_auditUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit delete
|
|
*/
|
|
export type ktp_validation_auditDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ktp_validation_audit to delete.
|
|
*/
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit deleteMany
|
|
*/
|
|
export type ktp_validation_auditDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ktp_validation_audits to delete
|
|
*/
|
|
where?: ktp_validation_auditWhereInput
|
|
/**
|
|
* Limit how many ktp_validation_audits to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ktp_validation_audit without action
|
|
*/
|
|
export type ktp_validation_auditDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model map_pins
|
|
*/
|
|
|
|
export type AggregateMap_pins = {
|
|
_count: Map_pinsCountAggregateOutputType | null
|
|
_min: Map_pinsMinAggregateOutputType | null
|
|
_max: Map_pinsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Map_pinsMinAggregateOutputType = {
|
|
id: string | null
|
|
type: string | null
|
|
title: string | null
|
|
description: string | null
|
|
status: string | null
|
|
priority: string | null
|
|
icon_type: string | null
|
|
icon_color: string | null
|
|
size: string | null
|
|
is_visible: boolean | null
|
|
is_clickable: boolean | null
|
|
alert_id: string | null
|
|
incident_id: string | null
|
|
team_member_id: string | null
|
|
camera_id: string | null
|
|
geofence_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}
|
|
|
|
export type Map_pinsMaxAggregateOutputType = {
|
|
id: string | null
|
|
type: string | null
|
|
title: string | null
|
|
description: string | null
|
|
status: string | null
|
|
priority: string | null
|
|
icon_type: string | null
|
|
icon_color: string | null
|
|
size: string | null
|
|
is_visible: boolean | null
|
|
is_clickable: boolean | null
|
|
alert_id: string | null
|
|
incident_id: string | null
|
|
team_member_id: string | null
|
|
camera_id: string | null
|
|
geofence_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}
|
|
|
|
export type Map_pinsCountAggregateOutputType = {
|
|
id: number
|
|
type: number
|
|
coordinates: number
|
|
title: number
|
|
description: number
|
|
status: number
|
|
priority: number
|
|
icon_type: number
|
|
icon_color: number
|
|
size: number
|
|
is_visible: number
|
|
is_clickable: number
|
|
metadata: number
|
|
alert_id: number
|
|
incident_id: number
|
|
team_member_id: number
|
|
camera_id: number
|
|
geofence_id: number
|
|
created_at: number
|
|
updated_at: number
|
|
created_by: number
|
|
updated_by: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Map_pinsMinAggregateInputType = {
|
|
id?: true
|
|
type?: true
|
|
title?: true
|
|
description?: true
|
|
status?: true
|
|
priority?: true
|
|
icon_type?: true
|
|
icon_color?: true
|
|
size?: true
|
|
is_visible?: true
|
|
is_clickable?: true
|
|
alert_id?: true
|
|
incident_id?: true
|
|
team_member_id?: true
|
|
camera_id?: true
|
|
geofence_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
}
|
|
|
|
export type Map_pinsMaxAggregateInputType = {
|
|
id?: true
|
|
type?: true
|
|
title?: true
|
|
description?: true
|
|
status?: true
|
|
priority?: true
|
|
icon_type?: true
|
|
icon_color?: true
|
|
size?: true
|
|
is_visible?: true
|
|
is_clickable?: true
|
|
alert_id?: true
|
|
incident_id?: true
|
|
team_member_id?: true
|
|
camera_id?: true
|
|
geofence_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
}
|
|
|
|
export type Map_pinsCountAggregateInputType = {
|
|
id?: true
|
|
type?: true
|
|
coordinates?: true
|
|
title?: true
|
|
description?: true
|
|
status?: true
|
|
priority?: true
|
|
icon_type?: true
|
|
icon_color?: true
|
|
size?: true
|
|
is_visible?: true
|
|
is_clickable?: true
|
|
metadata?: true
|
|
alert_id?: true
|
|
incident_id?: true
|
|
team_member_id?: true
|
|
camera_id?: true
|
|
geofence_id?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Map_pinsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which map_pins to aggregate.
|
|
*/
|
|
where?: map_pinsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of map_pins to fetch.
|
|
*/
|
|
orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: map_pinsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` map_pins from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` map_pins.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned map_pins
|
|
**/
|
|
_count?: true | Map_pinsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Map_pinsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Map_pinsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMap_pinsAggregateType<T extends Map_pinsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMap_pins]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateMap_pins[P]>
|
|
: GetScalarType<T[P], AggregateMap_pins[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type map_pinsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: map_pinsWhereInput
|
|
orderBy?: map_pinsOrderByWithAggregationInput | map_pinsOrderByWithAggregationInput[]
|
|
by: Map_pinsScalarFieldEnum[] | Map_pinsScalarFieldEnum
|
|
having?: map_pinsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Map_pinsCountAggregateInputType | true
|
|
_min?: Map_pinsMinAggregateInputType
|
|
_max?: Map_pinsMaxAggregateInputType
|
|
}
|
|
|
|
export type Map_pinsGroupByOutputType = {
|
|
id: string
|
|
type: string
|
|
coordinates: JsonValue | null
|
|
title: string
|
|
description: string | null
|
|
status: string | null
|
|
priority: string | null
|
|
icon_type: string | null
|
|
icon_color: string | null
|
|
size: string | null
|
|
is_visible: boolean | null
|
|
is_clickable: boolean | null
|
|
metadata: JsonValue | null
|
|
alert_id: string | null
|
|
incident_id: string | null
|
|
team_member_id: string | null
|
|
camera_id: string | null
|
|
geofence_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
_count: Map_pinsCountAggregateOutputType | null
|
|
_min: Map_pinsMinAggregateOutputType | null
|
|
_max: Map_pinsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMap_pinsGroupByPayload<T extends map_pinsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Map_pinsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Map_pinsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Map_pinsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Map_pinsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type map_pinsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
type?: boolean
|
|
coordinates?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
priority?: boolean
|
|
icon_type?: boolean
|
|
icon_color?: boolean
|
|
size?: boolean
|
|
is_visible?: boolean
|
|
is_clickable?: boolean
|
|
metadata?: boolean
|
|
alert_id?: boolean
|
|
incident_id?: boolean
|
|
team_member_id?: boolean
|
|
camera_id?: boolean
|
|
geofence_id?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
geofences?: boolean | map_pins$geofencesArgs<ExtArgs>
|
|
}, ExtArgs["result"]["map_pins"]>
|
|
|
|
|
|
|
|
export type map_pinsSelectScalar = {
|
|
id?: boolean
|
|
type?: boolean
|
|
coordinates?: boolean
|
|
title?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
priority?: boolean
|
|
icon_type?: boolean
|
|
icon_color?: boolean
|
|
size?: boolean
|
|
is_visible?: boolean
|
|
is_clickable?: boolean
|
|
metadata?: boolean
|
|
alert_id?: boolean
|
|
incident_id?: boolean
|
|
team_member_id?: boolean
|
|
camera_id?: boolean
|
|
geofence_id?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
}
|
|
|
|
export type map_pinsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "type" | "coordinates" | "title" | "description" | "status" | "priority" | "icon_type" | "icon_color" | "size" | "is_visible" | "is_clickable" | "metadata" | "alert_id" | "incident_id" | "team_member_id" | "camera_id" | "geofence_id" | "created_at" | "updated_at" | "created_by" | "updated_by", ExtArgs["result"]["map_pins"]>
|
|
export type map_pinsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
geofences?: boolean | map_pins$geofencesArgs<ExtArgs>
|
|
}
|
|
|
|
export type $map_pinsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "map_pins"
|
|
objects: {
|
|
geofences: Prisma.$geofencesPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
type: string
|
|
coordinates: Prisma.JsonValue | null
|
|
title: string
|
|
description: string | null
|
|
status: string | null
|
|
priority: string | null
|
|
icon_type: string | null
|
|
icon_color: string | null
|
|
size: string | null
|
|
is_visible: boolean | null
|
|
is_clickable: boolean | null
|
|
metadata: Prisma.JsonValue | null
|
|
alert_id: string | null
|
|
incident_id: string | null
|
|
team_member_id: string | null
|
|
camera_id: string | null
|
|
geofence_id: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
}, ExtArgs["result"]["map_pins"]>
|
|
composites: {}
|
|
}
|
|
|
|
type map_pinsGetPayload<S extends boolean | null | undefined | map_pinsDefaultArgs> = $Result.GetResult<Prisma.$map_pinsPayload, S>
|
|
|
|
type map_pinsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<map_pinsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Map_pinsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface map_pinsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['map_pins'], meta: { name: 'map_pins' } }
|
|
/**
|
|
* Find zero or one Map_pins that matches the filter.
|
|
* @param {map_pinsFindUniqueArgs} args - Arguments to find a Map_pins
|
|
* @example
|
|
* // Get one Map_pins
|
|
* const map_pins = await prisma.map_pins.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends map_pinsFindUniqueArgs>(args: SelectSubset<T, map_pinsFindUniqueArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Map_pins that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {map_pinsFindUniqueOrThrowArgs} args - Arguments to find a Map_pins
|
|
* @example
|
|
* // Get one Map_pins
|
|
* const map_pins = await prisma.map_pins.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends map_pinsFindUniqueOrThrowArgs>(args: SelectSubset<T, map_pinsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Map_pins that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {map_pinsFindFirstArgs} args - Arguments to find a Map_pins
|
|
* @example
|
|
* // Get one Map_pins
|
|
* const map_pins = await prisma.map_pins.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends map_pinsFindFirstArgs>(args?: SelectSubset<T, map_pinsFindFirstArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Map_pins that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {map_pinsFindFirstOrThrowArgs} args - Arguments to find a Map_pins
|
|
* @example
|
|
* // Get one Map_pins
|
|
* const map_pins = await prisma.map_pins.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends map_pinsFindFirstOrThrowArgs>(args?: SelectSubset<T, map_pinsFindFirstOrThrowArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Map_pins that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {map_pinsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Map_pins
|
|
* const map_pins = await prisma.map_pins.findMany()
|
|
*
|
|
* // Get first 10 Map_pins
|
|
* const map_pins = await prisma.map_pins.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const map_pinsWithIdOnly = await prisma.map_pins.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends map_pinsFindManyArgs>(args?: SelectSubset<T, map_pinsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Map_pins.
|
|
* @param {map_pinsCreateArgs} args - Arguments to create a Map_pins.
|
|
* @example
|
|
* // Create one Map_pins
|
|
* const Map_pins = await prisma.map_pins.create({
|
|
* data: {
|
|
* // ... data to create a Map_pins
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends map_pinsCreateArgs>(args: SelectSubset<T, map_pinsCreateArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Map_pins.
|
|
* @param {map_pinsCreateManyArgs} args - Arguments to create many Map_pins.
|
|
* @example
|
|
* // Create many Map_pins
|
|
* const map_pins = await prisma.map_pins.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends map_pinsCreateManyArgs>(args?: SelectSubset<T, map_pinsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Map_pins.
|
|
* @param {map_pinsDeleteArgs} args - Arguments to delete one Map_pins.
|
|
* @example
|
|
* // Delete one Map_pins
|
|
* const Map_pins = await prisma.map_pins.delete({
|
|
* where: {
|
|
* // ... filter to delete one Map_pins
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends map_pinsDeleteArgs>(args: SelectSubset<T, map_pinsDeleteArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Map_pins.
|
|
* @param {map_pinsUpdateArgs} args - Arguments to update one Map_pins.
|
|
* @example
|
|
* // Update one Map_pins
|
|
* const map_pins = await prisma.map_pins.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends map_pinsUpdateArgs>(args: SelectSubset<T, map_pinsUpdateArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Map_pins.
|
|
* @param {map_pinsDeleteManyArgs} args - Arguments to filter Map_pins to delete.
|
|
* @example
|
|
* // Delete a few Map_pins
|
|
* const { count } = await prisma.map_pins.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends map_pinsDeleteManyArgs>(args?: SelectSubset<T, map_pinsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Map_pins.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {map_pinsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Map_pins
|
|
* const map_pins = await prisma.map_pins.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends map_pinsUpdateManyArgs>(args: SelectSubset<T, map_pinsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Map_pins.
|
|
* @param {map_pinsUpsertArgs} args - Arguments to update or create a Map_pins.
|
|
* @example
|
|
* // Update or create a Map_pins
|
|
* const map_pins = await prisma.map_pins.upsert({
|
|
* create: {
|
|
* // ... data to create a Map_pins
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Map_pins we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends map_pinsUpsertArgs>(args: SelectSubset<T, map_pinsUpsertArgs<ExtArgs>>): Prisma__map_pinsClient<$Result.GetResult<Prisma.$map_pinsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Map_pins.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {map_pinsCountArgs} args - Arguments to filter Map_pins to count.
|
|
* @example
|
|
* // Count the number of Map_pins
|
|
* const count = await prisma.map_pins.count({
|
|
* where: {
|
|
* // ... the filter for the Map_pins we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends map_pinsCountArgs>(
|
|
args?: Subset<T, map_pinsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Map_pinsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Map_pins.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Map_pinsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Map_pinsAggregateArgs>(args: Subset<T, Map_pinsAggregateArgs>): Prisma.PrismaPromise<GetMap_pinsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Map_pins.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {map_pinsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends map_pinsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: map_pinsGroupByArgs['orderBy'] }
|
|
: { orderBy?: map_pinsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, map_pinsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMap_pinsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the map_pins model
|
|
*/
|
|
readonly fields: map_pinsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for map_pins.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__map_pinsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
geofences<T extends map_pins$geofencesArgs<ExtArgs> = {}>(args?: Subset<T, map_pins$geofencesArgs<ExtArgs>>): Prisma__geofencesClient<$Result.GetResult<Prisma.$geofencesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the map_pins model
|
|
*/
|
|
interface map_pinsFieldRefs {
|
|
readonly id: FieldRef<"map_pins", 'String'>
|
|
readonly type: FieldRef<"map_pins", 'String'>
|
|
readonly coordinates: FieldRef<"map_pins", 'Json'>
|
|
readonly title: FieldRef<"map_pins", 'String'>
|
|
readonly description: FieldRef<"map_pins", 'String'>
|
|
readonly status: FieldRef<"map_pins", 'String'>
|
|
readonly priority: FieldRef<"map_pins", 'String'>
|
|
readonly icon_type: FieldRef<"map_pins", 'String'>
|
|
readonly icon_color: FieldRef<"map_pins", 'String'>
|
|
readonly size: FieldRef<"map_pins", 'String'>
|
|
readonly is_visible: FieldRef<"map_pins", 'Boolean'>
|
|
readonly is_clickable: FieldRef<"map_pins", 'Boolean'>
|
|
readonly metadata: FieldRef<"map_pins", 'Json'>
|
|
readonly alert_id: FieldRef<"map_pins", 'String'>
|
|
readonly incident_id: FieldRef<"map_pins", 'String'>
|
|
readonly team_member_id: FieldRef<"map_pins", 'String'>
|
|
readonly camera_id: FieldRef<"map_pins", 'String'>
|
|
readonly geofence_id: FieldRef<"map_pins", 'String'>
|
|
readonly created_at: FieldRef<"map_pins", 'DateTime'>
|
|
readonly updated_at: FieldRef<"map_pins", 'DateTime'>
|
|
readonly created_by: FieldRef<"map_pins", 'String'>
|
|
readonly updated_by: FieldRef<"map_pins", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* map_pins findUnique
|
|
*/
|
|
export type map_pinsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which map_pins to fetch.
|
|
*/
|
|
where: map_pinsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* map_pins findUniqueOrThrow
|
|
*/
|
|
export type map_pinsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which map_pins to fetch.
|
|
*/
|
|
where: map_pinsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* map_pins findFirst
|
|
*/
|
|
export type map_pinsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which map_pins to fetch.
|
|
*/
|
|
where?: map_pinsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of map_pins to fetch.
|
|
*/
|
|
orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for map_pins.
|
|
*/
|
|
cursor?: map_pinsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` map_pins from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` map_pins.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of map_pins.
|
|
*/
|
|
distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* map_pins findFirstOrThrow
|
|
*/
|
|
export type map_pinsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which map_pins to fetch.
|
|
*/
|
|
where?: map_pinsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of map_pins to fetch.
|
|
*/
|
|
orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for map_pins.
|
|
*/
|
|
cursor?: map_pinsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` map_pins from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` map_pins.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of map_pins.
|
|
*/
|
|
distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* map_pins findMany
|
|
*/
|
|
export type map_pinsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which map_pins to fetch.
|
|
*/
|
|
where?: map_pinsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of map_pins to fetch.
|
|
*/
|
|
orderBy?: map_pinsOrderByWithRelationInput | map_pinsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing map_pins.
|
|
*/
|
|
cursor?: map_pinsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` map_pins from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` map_pins.
|
|
*/
|
|
skip?: number
|
|
distinct?: Map_pinsScalarFieldEnum | Map_pinsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* map_pins create
|
|
*/
|
|
export type map_pinsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a map_pins.
|
|
*/
|
|
data: XOR<map_pinsCreateInput, map_pinsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* map_pins createMany
|
|
*/
|
|
export type map_pinsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many map_pins.
|
|
*/
|
|
data: map_pinsCreateManyInput | map_pinsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* map_pins update
|
|
*/
|
|
export type map_pinsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a map_pins.
|
|
*/
|
|
data: XOR<map_pinsUpdateInput, map_pinsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which map_pins to update.
|
|
*/
|
|
where: map_pinsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* map_pins updateMany
|
|
*/
|
|
export type map_pinsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update map_pins.
|
|
*/
|
|
data: XOR<map_pinsUpdateManyMutationInput, map_pinsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which map_pins to update
|
|
*/
|
|
where?: map_pinsWhereInput
|
|
/**
|
|
* Limit how many map_pins to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* map_pins upsert
|
|
*/
|
|
export type map_pinsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the map_pins to update in case it exists.
|
|
*/
|
|
where: map_pinsWhereUniqueInput
|
|
/**
|
|
* In case the map_pins found by the `where` argument doesn't exist, create a new map_pins with this data.
|
|
*/
|
|
create: XOR<map_pinsCreateInput, map_pinsUncheckedCreateInput>
|
|
/**
|
|
* In case the map_pins was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<map_pinsUpdateInput, map_pinsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* map_pins delete
|
|
*/
|
|
export type map_pinsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which map_pins to delete.
|
|
*/
|
|
where: map_pinsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* map_pins deleteMany
|
|
*/
|
|
export type map_pinsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which map_pins to delete
|
|
*/
|
|
where?: map_pinsWhereInput
|
|
/**
|
|
* Limit how many map_pins to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* map_pins.geofences
|
|
*/
|
|
export type map_pins$geofencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the geofences
|
|
*/
|
|
select?: geofencesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the geofences
|
|
*/
|
|
omit?: geofencesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: geofencesInclude<ExtArgs> | null
|
|
where?: geofencesWhereInput
|
|
}
|
|
|
|
/**
|
|
* map_pins without action
|
|
*/
|
|
export type map_pinsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the map_pins
|
|
*/
|
|
select?: map_pinsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the map_pins
|
|
*/
|
|
omit?: map_pinsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: map_pinsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model perumahan_facilities
|
|
*/
|
|
|
|
export type AggregatePerumahan_facilities = {
|
|
_count: Perumahan_facilitiesCountAggregateOutputType | null
|
|
_avg: Perumahan_facilitiesAvgAggregateOutputType | null
|
|
_sum: Perumahan_facilitiesSumAggregateOutputType | null
|
|
_min: Perumahan_facilitiesMinAggregateOutputType | null
|
|
_max: Perumahan_facilitiesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Perumahan_facilitiesAvgAggregateOutputType = {
|
|
id: number | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
}
|
|
|
|
export type Perumahan_facilitiesSumAggregateOutputType = {
|
|
id: number | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
}
|
|
|
|
export type Perumahan_facilitiesMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
type: string | null
|
|
description: string | null
|
|
location: string | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
status: $Enums.perumahan_facilities_status | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Perumahan_facilitiesMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
type: string | null
|
|
description: string | null
|
|
location: string | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
status: $Enums.perumahan_facilities_status | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Perumahan_facilitiesCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
type: number
|
|
description: number
|
|
location: number
|
|
lat: number
|
|
lng: number
|
|
status: number
|
|
operating_hours: number
|
|
contact_info: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Perumahan_facilitiesAvgAggregateInputType = {
|
|
id?: true
|
|
lat?: true
|
|
lng?: true
|
|
}
|
|
|
|
export type Perumahan_facilitiesSumAggregateInputType = {
|
|
id?: true
|
|
lat?: true
|
|
lng?: true
|
|
}
|
|
|
|
export type Perumahan_facilitiesMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
description?: true
|
|
location?: true
|
|
lat?: true
|
|
lng?: true
|
|
status?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Perumahan_facilitiesMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
description?: true
|
|
location?: true
|
|
lat?: true
|
|
lng?: true
|
|
status?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Perumahan_facilitiesCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
type?: true
|
|
description?: true
|
|
location?: true
|
|
lat?: true
|
|
lng?: true
|
|
status?: true
|
|
operating_hours?: true
|
|
contact_info?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Perumahan_facilitiesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which perumahan_facilities to aggregate.
|
|
*/
|
|
where?: perumahan_facilitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_facilities to fetch.
|
|
*/
|
|
orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: perumahan_facilitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_facilities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_facilities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned perumahan_facilities
|
|
**/
|
|
_count?: true | Perumahan_facilitiesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Perumahan_facilitiesAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Perumahan_facilitiesSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Perumahan_facilitiesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Perumahan_facilitiesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPerumahan_facilitiesAggregateType<T extends Perumahan_facilitiesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePerumahan_facilities]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePerumahan_facilities[P]>
|
|
: GetScalarType<T[P], AggregatePerumahan_facilities[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type perumahan_facilitiesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: perumahan_facilitiesWhereInput
|
|
orderBy?: perumahan_facilitiesOrderByWithAggregationInput | perumahan_facilitiesOrderByWithAggregationInput[]
|
|
by: Perumahan_facilitiesScalarFieldEnum[] | Perumahan_facilitiesScalarFieldEnum
|
|
having?: perumahan_facilitiesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Perumahan_facilitiesCountAggregateInputType | true
|
|
_avg?: Perumahan_facilitiesAvgAggregateInputType
|
|
_sum?: Perumahan_facilitiesSumAggregateInputType
|
|
_min?: Perumahan_facilitiesMinAggregateInputType
|
|
_max?: Perumahan_facilitiesMaxAggregateInputType
|
|
}
|
|
|
|
export type Perumahan_facilitiesGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
type: string
|
|
description: string | null
|
|
location: string
|
|
lat: Decimal
|
|
lng: Decimal
|
|
status: $Enums.perumahan_facilities_status | null
|
|
operating_hours: JsonValue | null
|
|
contact_info: JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: Perumahan_facilitiesCountAggregateOutputType | null
|
|
_avg: Perumahan_facilitiesAvgAggregateOutputType | null
|
|
_sum: Perumahan_facilitiesSumAggregateOutputType | null
|
|
_min: Perumahan_facilitiesMinAggregateOutputType | null
|
|
_max: Perumahan_facilitiesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPerumahan_facilitiesGroupByPayload<T extends perumahan_facilitiesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Perumahan_facilitiesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Perumahan_facilitiesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Perumahan_facilitiesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Perumahan_facilitiesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type perumahan_facilitiesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
type?: boolean
|
|
description?: boolean
|
|
location?: boolean
|
|
lat?: boolean
|
|
lng?: boolean
|
|
status?: boolean
|
|
operating_hours?: boolean
|
|
contact_info?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}, ExtArgs["result"]["perumahan_facilities"]>
|
|
|
|
|
|
|
|
export type perumahan_facilitiesSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
type?: boolean
|
|
description?: boolean
|
|
location?: boolean
|
|
lat?: boolean
|
|
lng?: boolean
|
|
status?: boolean
|
|
operating_hours?: boolean
|
|
contact_info?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type perumahan_facilitiesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "description" | "location" | "lat" | "lng" | "status" | "operating_hours" | "contact_info" | "created_at" | "updated_at", ExtArgs["result"]["perumahan_facilities"]>
|
|
|
|
export type $perumahan_facilitiesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "perumahan_facilities"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
type: string
|
|
description: string | null
|
|
location: string
|
|
lat: Prisma.Decimal
|
|
lng: Prisma.Decimal
|
|
status: $Enums.perumahan_facilities_status | null
|
|
operating_hours: Prisma.JsonValue | null
|
|
contact_info: Prisma.JsonValue | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["perumahan_facilities"]>
|
|
composites: {}
|
|
}
|
|
|
|
type perumahan_facilitiesGetPayload<S extends boolean | null | undefined | perumahan_facilitiesDefaultArgs> = $Result.GetResult<Prisma.$perumahan_facilitiesPayload, S>
|
|
|
|
type perumahan_facilitiesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<perumahan_facilitiesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Perumahan_facilitiesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface perumahan_facilitiesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['perumahan_facilities'], meta: { name: 'perumahan_facilities' } }
|
|
/**
|
|
* Find zero or one Perumahan_facilities that matches the filter.
|
|
* @param {perumahan_facilitiesFindUniqueArgs} args - Arguments to find a Perumahan_facilities
|
|
* @example
|
|
* // Get one Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends perumahan_facilitiesFindUniqueArgs>(args: SelectSubset<T, perumahan_facilitiesFindUniqueArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Perumahan_facilities that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {perumahan_facilitiesFindUniqueOrThrowArgs} args - Arguments to find a Perumahan_facilities
|
|
* @example
|
|
* // Get one Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends perumahan_facilitiesFindUniqueOrThrowArgs>(args: SelectSubset<T, perumahan_facilitiesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Perumahan_facilities that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_facilitiesFindFirstArgs} args - Arguments to find a Perumahan_facilities
|
|
* @example
|
|
* // Get one Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends perumahan_facilitiesFindFirstArgs>(args?: SelectSubset<T, perumahan_facilitiesFindFirstArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Perumahan_facilities that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_facilitiesFindFirstOrThrowArgs} args - Arguments to find a Perumahan_facilities
|
|
* @example
|
|
* // Get one Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends perumahan_facilitiesFindFirstOrThrowArgs>(args?: SelectSubset<T, perumahan_facilitiesFindFirstOrThrowArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Perumahan_facilities that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_facilitiesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findMany()
|
|
*
|
|
* // Get first 10 Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const perumahan_facilitiesWithIdOnly = await prisma.perumahan_facilities.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends perumahan_facilitiesFindManyArgs>(args?: SelectSubset<T, perumahan_facilitiesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Perumahan_facilities.
|
|
* @param {perumahan_facilitiesCreateArgs} args - Arguments to create a Perumahan_facilities.
|
|
* @example
|
|
* // Create one Perumahan_facilities
|
|
* const Perumahan_facilities = await prisma.perumahan_facilities.create({
|
|
* data: {
|
|
* // ... data to create a Perumahan_facilities
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends perumahan_facilitiesCreateArgs>(args: SelectSubset<T, perumahan_facilitiesCreateArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Perumahan_facilities.
|
|
* @param {perumahan_facilitiesCreateManyArgs} args - Arguments to create many Perumahan_facilities.
|
|
* @example
|
|
* // Create many Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends perumahan_facilitiesCreateManyArgs>(args?: SelectSubset<T, perumahan_facilitiesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Perumahan_facilities.
|
|
* @param {perumahan_facilitiesDeleteArgs} args - Arguments to delete one Perumahan_facilities.
|
|
* @example
|
|
* // Delete one Perumahan_facilities
|
|
* const Perumahan_facilities = await prisma.perumahan_facilities.delete({
|
|
* where: {
|
|
* // ... filter to delete one Perumahan_facilities
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends perumahan_facilitiesDeleteArgs>(args: SelectSubset<T, perumahan_facilitiesDeleteArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Perumahan_facilities.
|
|
* @param {perumahan_facilitiesUpdateArgs} args - Arguments to update one Perumahan_facilities.
|
|
* @example
|
|
* // Update one Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends perumahan_facilitiesUpdateArgs>(args: SelectSubset<T, perumahan_facilitiesUpdateArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Perumahan_facilities.
|
|
* @param {perumahan_facilitiesDeleteManyArgs} args - Arguments to filter Perumahan_facilities to delete.
|
|
* @example
|
|
* // Delete a few Perumahan_facilities
|
|
* const { count } = await prisma.perumahan_facilities.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends perumahan_facilitiesDeleteManyArgs>(args?: SelectSubset<T, perumahan_facilitiesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Perumahan_facilities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_facilitiesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends perumahan_facilitiesUpdateManyArgs>(args: SelectSubset<T, perumahan_facilitiesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Perumahan_facilities.
|
|
* @param {perumahan_facilitiesUpsertArgs} args - Arguments to update or create a Perumahan_facilities.
|
|
* @example
|
|
* // Update or create a Perumahan_facilities
|
|
* const perumahan_facilities = await prisma.perumahan_facilities.upsert({
|
|
* create: {
|
|
* // ... data to create a Perumahan_facilities
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Perumahan_facilities we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends perumahan_facilitiesUpsertArgs>(args: SelectSubset<T, perumahan_facilitiesUpsertArgs<ExtArgs>>): Prisma__perumahan_facilitiesClient<$Result.GetResult<Prisma.$perumahan_facilitiesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Perumahan_facilities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_facilitiesCountArgs} args - Arguments to filter Perumahan_facilities to count.
|
|
* @example
|
|
* // Count the number of Perumahan_facilities
|
|
* const count = await prisma.perumahan_facilities.count({
|
|
* where: {
|
|
* // ... the filter for the Perumahan_facilities we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends perumahan_facilitiesCountArgs>(
|
|
args?: Subset<T, perumahan_facilitiesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Perumahan_facilitiesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Perumahan_facilities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Perumahan_facilitiesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Perumahan_facilitiesAggregateArgs>(args: Subset<T, Perumahan_facilitiesAggregateArgs>): Prisma.PrismaPromise<GetPerumahan_facilitiesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Perumahan_facilities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_facilitiesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends perumahan_facilitiesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: perumahan_facilitiesGroupByArgs['orderBy'] }
|
|
: { orderBy?: perumahan_facilitiesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, perumahan_facilitiesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPerumahan_facilitiesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the perumahan_facilities model
|
|
*/
|
|
readonly fields: perumahan_facilitiesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for perumahan_facilities.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__perumahan_facilitiesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the perumahan_facilities model
|
|
*/
|
|
interface perumahan_facilitiesFieldRefs {
|
|
readonly id: FieldRef<"perumahan_facilities", 'Int'>
|
|
readonly name: FieldRef<"perumahan_facilities", 'String'>
|
|
readonly type: FieldRef<"perumahan_facilities", 'String'>
|
|
readonly description: FieldRef<"perumahan_facilities", 'String'>
|
|
readonly location: FieldRef<"perumahan_facilities", 'String'>
|
|
readonly lat: FieldRef<"perumahan_facilities", 'Decimal'>
|
|
readonly lng: FieldRef<"perumahan_facilities", 'Decimal'>
|
|
readonly status: FieldRef<"perumahan_facilities", 'perumahan_facilities_status'>
|
|
readonly operating_hours: FieldRef<"perumahan_facilities", 'Json'>
|
|
readonly contact_info: FieldRef<"perumahan_facilities", 'Json'>
|
|
readonly created_at: FieldRef<"perumahan_facilities", 'DateTime'>
|
|
readonly updated_at: FieldRef<"perumahan_facilities", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* perumahan_facilities findUnique
|
|
*/
|
|
export type perumahan_facilitiesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_facilities to fetch.
|
|
*/
|
|
where: perumahan_facilitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities findUniqueOrThrow
|
|
*/
|
|
export type perumahan_facilitiesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_facilities to fetch.
|
|
*/
|
|
where: perumahan_facilitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities findFirst
|
|
*/
|
|
export type perumahan_facilitiesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_facilities to fetch.
|
|
*/
|
|
where?: perumahan_facilitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_facilities to fetch.
|
|
*/
|
|
orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for perumahan_facilities.
|
|
*/
|
|
cursor?: perumahan_facilitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_facilities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_facilities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of perumahan_facilities.
|
|
*/
|
|
distinct?: Perumahan_facilitiesScalarFieldEnum | Perumahan_facilitiesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities findFirstOrThrow
|
|
*/
|
|
export type perumahan_facilitiesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_facilities to fetch.
|
|
*/
|
|
where?: perumahan_facilitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_facilities to fetch.
|
|
*/
|
|
orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for perumahan_facilities.
|
|
*/
|
|
cursor?: perumahan_facilitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_facilities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_facilities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of perumahan_facilities.
|
|
*/
|
|
distinct?: Perumahan_facilitiesScalarFieldEnum | Perumahan_facilitiesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities findMany
|
|
*/
|
|
export type perumahan_facilitiesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_facilities to fetch.
|
|
*/
|
|
where?: perumahan_facilitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_facilities to fetch.
|
|
*/
|
|
orderBy?: perumahan_facilitiesOrderByWithRelationInput | perumahan_facilitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing perumahan_facilities.
|
|
*/
|
|
cursor?: perumahan_facilitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_facilities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_facilities.
|
|
*/
|
|
skip?: number
|
|
distinct?: Perumahan_facilitiesScalarFieldEnum | Perumahan_facilitiesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities create
|
|
*/
|
|
export type perumahan_facilitiesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a perumahan_facilities.
|
|
*/
|
|
data: XOR<perumahan_facilitiesCreateInput, perumahan_facilitiesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities createMany
|
|
*/
|
|
export type perumahan_facilitiesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many perumahan_facilities.
|
|
*/
|
|
data: perumahan_facilitiesCreateManyInput | perumahan_facilitiesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities update
|
|
*/
|
|
export type perumahan_facilitiesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a perumahan_facilities.
|
|
*/
|
|
data: XOR<perumahan_facilitiesUpdateInput, perumahan_facilitiesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which perumahan_facilities to update.
|
|
*/
|
|
where: perumahan_facilitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities updateMany
|
|
*/
|
|
export type perumahan_facilitiesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update perumahan_facilities.
|
|
*/
|
|
data: XOR<perumahan_facilitiesUpdateManyMutationInput, perumahan_facilitiesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which perumahan_facilities to update
|
|
*/
|
|
where?: perumahan_facilitiesWhereInput
|
|
/**
|
|
* Limit how many perumahan_facilities to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities upsert
|
|
*/
|
|
export type perumahan_facilitiesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the perumahan_facilities to update in case it exists.
|
|
*/
|
|
where: perumahan_facilitiesWhereUniqueInput
|
|
/**
|
|
* In case the perumahan_facilities found by the `where` argument doesn't exist, create a new perumahan_facilities with this data.
|
|
*/
|
|
create: XOR<perumahan_facilitiesCreateInput, perumahan_facilitiesUncheckedCreateInput>
|
|
/**
|
|
* In case the perumahan_facilities was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<perumahan_facilitiesUpdateInput, perumahan_facilitiesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities delete
|
|
*/
|
|
export type perumahan_facilitiesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which perumahan_facilities to delete.
|
|
*/
|
|
where: perumahan_facilitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities deleteMany
|
|
*/
|
|
export type perumahan_facilitiesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which perumahan_facilities to delete
|
|
*/
|
|
where?: perumahan_facilitiesWhereInput
|
|
/**
|
|
* Limit how many perumahan_facilities to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* perumahan_facilities without action
|
|
*/
|
|
export type perumahan_facilitiesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_facilities
|
|
*/
|
|
select?: perumahan_facilitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_facilities
|
|
*/
|
|
omit?: perumahan_facilitiesOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model perumahan_info
|
|
*/
|
|
|
|
export type AggregatePerumahan_info = {
|
|
_count: Perumahan_infoCountAggregateOutputType | null
|
|
_avg: Perumahan_infoAvgAggregateOutputType | null
|
|
_sum: Perumahan_infoSumAggregateOutputType | null
|
|
_min: Perumahan_infoMinAggregateOutputType | null
|
|
_max: Perumahan_infoMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Perumahan_infoAvgAggregateOutputType = {
|
|
id: number | null
|
|
total_units: number | null
|
|
}
|
|
|
|
export type Perumahan_infoSumAggregateOutputType = {
|
|
id: number | null
|
|
total_units: number | null
|
|
}
|
|
|
|
export type Perumahan_infoMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
total_units: number | null
|
|
address: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Perumahan_infoMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
total_units: number | null
|
|
address: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Perumahan_infoCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
total_units: number
|
|
clusters: number
|
|
address: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Perumahan_infoAvgAggregateInputType = {
|
|
id?: true
|
|
total_units?: true
|
|
}
|
|
|
|
export type Perumahan_infoSumAggregateInputType = {
|
|
id?: true
|
|
total_units?: true
|
|
}
|
|
|
|
export type Perumahan_infoMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
total_units?: true
|
|
address?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Perumahan_infoMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
total_units?: true
|
|
address?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Perumahan_infoCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
total_units?: true
|
|
clusters?: true
|
|
address?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Perumahan_infoAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which perumahan_info to aggregate.
|
|
*/
|
|
where?: perumahan_infoWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_infos to fetch.
|
|
*/
|
|
orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: perumahan_infoWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_infos from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_infos.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned perumahan_infos
|
|
**/
|
|
_count?: true | Perumahan_infoCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Perumahan_infoAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Perumahan_infoSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Perumahan_infoMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Perumahan_infoMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPerumahan_infoAggregateType<T extends Perumahan_infoAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePerumahan_info]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePerumahan_info[P]>
|
|
: GetScalarType<T[P], AggregatePerumahan_info[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type perumahan_infoGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: perumahan_infoWhereInput
|
|
orderBy?: perumahan_infoOrderByWithAggregationInput | perumahan_infoOrderByWithAggregationInput[]
|
|
by: Perumahan_infoScalarFieldEnum[] | Perumahan_infoScalarFieldEnum
|
|
having?: perumahan_infoScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Perumahan_infoCountAggregateInputType | true
|
|
_avg?: Perumahan_infoAvgAggregateInputType
|
|
_sum?: Perumahan_infoSumAggregateInputType
|
|
_min?: Perumahan_infoMinAggregateInputType
|
|
_max?: Perumahan_infoMaxAggregateInputType
|
|
}
|
|
|
|
export type Perumahan_infoGroupByOutputType = {
|
|
id: number
|
|
name: string
|
|
total_units: number
|
|
clusters: JsonValue
|
|
address: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: Perumahan_infoCountAggregateOutputType | null
|
|
_avg: Perumahan_infoAvgAggregateOutputType | null
|
|
_sum: Perumahan_infoSumAggregateOutputType | null
|
|
_min: Perumahan_infoMinAggregateOutputType | null
|
|
_max: Perumahan_infoMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPerumahan_infoGroupByPayload<T extends perumahan_infoGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Perumahan_infoGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Perumahan_infoGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Perumahan_infoGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Perumahan_infoGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type perumahan_infoSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
total_units?: boolean
|
|
clusters?: boolean
|
|
address?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}, ExtArgs["result"]["perumahan_info"]>
|
|
|
|
|
|
|
|
export type perumahan_infoSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
total_units?: boolean
|
|
clusters?: boolean
|
|
address?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type perumahan_infoOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "total_units" | "clusters" | "address" | "created_at" | "updated_at", ExtArgs["result"]["perumahan_info"]>
|
|
|
|
export type $perumahan_infoPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "perumahan_info"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string
|
|
total_units: number
|
|
clusters: Prisma.JsonValue
|
|
address: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["perumahan_info"]>
|
|
composites: {}
|
|
}
|
|
|
|
type perumahan_infoGetPayload<S extends boolean | null | undefined | perumahan_infoDefaultArgs> = $Result.GetResult<Prisma.$perumahan_infoPayload, S>
|
|
|
|
type perumahan_infoCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<perumahan_infoFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Perumahan_infoCountAggregateInputType | true
|
|
}
|
|
|
|
export interface perumahan_infoDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['perumahan_info'], meta: { name: 'perumahan_info' } }
|
|
/**
|
|
* Find zero or one Perumahan_info that matches the filter.
|
|
* @param {perumahan_infoFindUniqueArgs} args - Arguments to find a Perumahan_info
|
|
* @example
|
|
* // Get one Perumahan_info
|
|
* const perumahan_info = await prisma.perumahan_info.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends perumahan_infoFindUniqueArgs>(args: SelectSubset<T, perumahan_infoFindUniqueArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Perumahan_info that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {perumahan_infoFindUniqueOrThrowArgs} args - Arguments to find a Perumahan_info
|
|
* @example
|
|
* // Get one Perumahan_info
|
|
* const perumahan_info = await prisma.perumahan_info.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends perumahan_infoFindUniqueOrThrowArgs>(args: SelectSubset<T, perumahan_infoFindUniqueOrThrowArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Perumahan_info that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_infoFindFirstArgs} args - Arguments to find a Perumahan_info
|
|
* @example
|
|
* // Get one Perumahan_info
|
|
* const perumahan_info = await prisma.perumahan_info.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends perumahan_infoFindFirstArgs>(args?: SelectSubset<T, perumahan_infoFindFirstArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Perumahan_info that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_infoFindFirstOrThrowArgs} args - Arguments to find a Perumahan_info
|
|
* @example
|
|
* // Get one Perumahan_info
|
|
* const perumahan_info = await prisma.perumahan_info.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends perumahan_infoFindFirstOrThrowArgs>(args?: SelectSubset<T, perumahan_infoFindFirstOrThrowArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Perumahan_infos that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_infoFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Perumahan_infos
|
|
* const perumahan_infos = await prisma.perumahan_info.findMany()
|
|
*
|
|
* // Get first 10 Perumahan_infos
|
|
* const perumahan_infos = await prisma.perumahan_info.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const perumahan_infoWithIdOnly = await prisma.perumahan_info.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends perumahan_infoFindManyArgs>(args?: SelectSubset<T, perumahan_infoFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Perumahan_info.
|
|
* @param {perumahan_infoCreateArgs} args - Arguments to create a Perumahan_info.
|
|
* @example
|
|
* // Create one Perumahan_info
|
|
* const Perumahan_info = await prisma.perumahan_info.create({
|
|
* data: {
|
|
* // ... data to create a Perumahan_info
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends perumahan_infoCreateArgs>(args: SelectSubset<T, perumahan_infoCreateArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Perumahan_infos.
|
|
* @param {perumahan_infoCreateManyArgs} args - Arguments to create many Perumahan_infos.
|
|
* @example
|
|
* // Create many Perumahan_infos
|
|
* const perumahan_info = await prisma.perumahan_info.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends perumahan_infoCreateManyArgs>(args?: SelectSubset<T, perumahan_infoCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Perumahan_info.
|
|
* @param {perumahan_infoDeleteArgs} args - Arguments to delete one Perumahan_info.
|
|
* @example
|
|
* // Delete one Perumahan_info
|
|
* const Perumahan_info = await prisma.perumahan_info.delete({
|
|
* where: {
|
|
* // ... filter to delete one Perumahan_info
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends perumahan_infoDeleteArgs>(args: SelectSubset<T, perumahan_infoDeleteArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Perumahan_info.
|
|
* @param {perumahan_infoUpdateArgs} args - Arguments to update one Perumahan_info.
|
|
* @example
|
|
* // Update one Perumahan_info
|
|
* const perumahan_info = await prisma.perumahan_info.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends perumahan_infoUpdateArgs>(args: SelectSubset<T, perumahan_infoUpdateArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Perumahan_infos.
|
|
* @param {perumahan_infoDeleteManyArgs} args - Arguments to filter Perumahan_infos to delete.
|
|
* @example
|
|
* // Delete a few Perumahan_infos
|
|
* const { count } = await prisma.perumahan_info.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends perumahan_infoDeleteManyArgs>(args?: SelectSubset<T, perumahan_infoDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Perumahan_infos.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_infoUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Perumahan_infos
|
|
* const perumahan_info = await prisma.perumahan_info.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends perumahan_infoUpdateManyArgs>(args: SelectSubset<T, perumahan_infoUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Perumahan_info.
|
|
* @param {perumahan_infoUpsertArgs} args - Arguments to update or create a Perumahan_info.
|
|
* @example
|
|
* // Update or create a Perumahan_info
|
|
* const perumahan_info = await prisma.perumahan_info.upsert({
|
|
* create: {
|
|
* // ... data to create a Perumahan_info
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Perumahan_info we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends perumahan_infoUpsertArgs>(args: SelectSubset<T, perumahan_infoUpsertArgs<ExtArgs>>): Prisma__perumahan_infoClient<$Result.GetResult<Prisma.$perumahan_infoPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Perumahan_infos.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_infoCountArgs} args - Arguments to filter Perumahan_infos to count.
|
|
* @example
|
|
* // Count the number of Perumahan_infos
|
|
* const count = await prisma.perumahan_info.count({
|
|
* where: {
|
|
* // ... the filter for the Perumahan_infos we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends perumahan_infoCountArgs>(
|
|
args?: Subset<T, perumahan_infoCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Perumahan_infoCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Perumahan_info.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Perumahan_infoAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Perumahan_infoAggregateArgs>(args: Subset<T, Perumahan_infoAggregateArgs>): Prisma.PrismaPromise<GetPerumahan_infoAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Perumahan_info.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {perumahan_infoGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends perumahan_infoGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: perumahan_infoGroupByArgs['orderBy'] }
|
|
: { orderBy?: perumahan_infoGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, perumahan_infoGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPerumahan_infoGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the perumahan_info model
|
|
*/
|
|
readonly fields: perumahan_infoFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for perumahan_info.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__perumahan_infoClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the perumahan_info model
|
|
*/
|
|
interface perumahan_infoFieldRefs {
|
|
readonly id: FieldRef<"perumahan_info", 'Int'>
|
|
readonly name: FieldRef<"perumahan_info", 'String'>
|
|
readonly total_units: FieldRef<"perumahan_info", 'Int'>
|
|
readonly clusters: FieldRef<"perumahan_info", 'Json'>
|
|
readonly address: FieldRef<"perumahan_info", 'String'>
|
|
readonly created_at: FieldRef<"perumahan_info", 'DateTime'>
|
|
readonly updated_at: FieldRef<"perumahan_info", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* perumahan_info findUnique
|
|
*/
|
|
export type perumahan_infoFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_info to fetch.
|
|
*/
|
|
where: perumahan_infoWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_info findUniqueOrThrow
|
|
*/
|
|
export type perumahan_infoFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_info to fetch.
|
|
*/
|
|
where: perumahan_infoWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_info findFirst
|
|
*/
|
|
export type perumahan_infoFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_info to fetch.
|
|
*/
|
|
where?: perumahan_infoWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_infos to fetch.
|
|
*/
|
|
orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for perumahan_infos.
|
|
*/
|
|
cursor?: perumahan_infoWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_infos from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_infos.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of perumahan_infos.
|
|
*/
|
|
distinct?: Perumahan_infoScalarFieldEnum | Perumahan_infoScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* perumahan_info findFirstOrThrow
|
|
*/
|
|
export type perumahan_infoFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_info to fetch.
|
|
*/
|
|
where?: perumahan_infoWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_infos to fetch.
|
|
*/
|
|
orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for perumahan_infos.
|
|
*/
|
|
cursor?: perumahan_infoWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_infos from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_infos.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of perumahan_infos.
|
|
*/
|
|
distinct?: Perumahan_infoScalarFieldEnum | Perumahan_infoScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* perumahan_info findMany
|
|
*/
|
|
export type perumahan_infoFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which perumahan_infos to fetch.
|
|
*/
|
|
where?: perumahan_infoWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of perumahan_infos to fetch.
|
|
*/
|
|
orderBy?: perumahan_infoOrderByWithRelationInput | perumahan_infoOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing perumahan_infos.
|
|
*/
|
|
cursor?: perumahan_infoWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` perumahan_infos from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` perumahan_infos.
|
|
*/
|
|
skip?: number
|
|
distinct?: Perumahan_infoScalarFieldEnum | Perumahan_infoScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* perumahan_info create
|
|
*/
|
|
export type perumahan_infoCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a perumahan_info.
|
|
*/
|
|
data: XOR<perumahan_infoCreateInput, perumahan_infoUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* perumahan_info createMany
|
|
*/
|
|
export type perumahan_infoCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many perumahan_infos.
|
|
*/
|
|
data: perumahan_infoCreateManyInput | perumahan_infoCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* perumahan_info update
|
|
*/
|
|
export type perumahan_infoUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a perumahan_info.
|
|
*/
|
|
data: XOR<perumahan_infoUpdateInput, perumahan_infoUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which perumahan_info to update.
|
|
*/
|
|
where: perumahan_infoWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_info updateMany
|
|
*/
|
|
export type perumahan_infoUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update perumahan_infos.
|
|
*/
|
|
data: XOR<perumahan_infoUpdateManyMutationInput, perumahan_infoUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which perumahan_infos to update
|
|
*/
|
|
where?: perumahan_infoWhereInput
|
|
/**
|
|
* Limit how many perumahan_infos to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* perumahan_info upsert
|
|
*/
|
|
export type perumahan_infoUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the perumahan_info to update in case it exists.
|
|
*/
|
|
where: perumahan_infoWhereUniqueInput
|
|
/**
|
|
* In case the perumahan_info found by the `where` argument doesn't exist, create a new perumahan_info with this data.
|
|
*/
|
|
create: XOR<perumahan_infoCreateInput, perumahan_infoUncheckedCreateInput>
|
|
/**
|
|
* In case the perumahan_info was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<perumahan_infoUpdateInput, perumahan_infoUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* perumahan_info delete
|
|
*/
|
|
export type perumahan_infoDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which perumahan_info to delete.
|
|
*/
|
|
where: perumahan_infoWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* perumahan_info deleteMany
|
|
*/
|
|
export type perumahan_infoDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which perumahan_infos to delete
|
|
*/
|
|
where?: perumahan_infoWhereInput
|
|
/**
|
|
* Limit how many perumahan_infos to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* perumahan_info without action
|
|
*/
|
|
export type perumahan_infoDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the perumahan_info
|
|
*/
|
|
select?: perumahan_infoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the perumahan_info
|
|
*/
|
|
omit?: perumahan_infoOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model qr_codes
|
|
*/
|
|
|
|
export type AggregateQr_codes = {
|
|
_count: Qr_codesCountAggregateOutputType | null
|
|
_avg: Qr_codesAvgAggregateOutputType | null
|
|
_sum: Qr_codesSumAggregateOutputType | null
|
|
_min: Qr_codesMinAggregateOutputType | null
|
|
_max: Qr_codesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Qr_codesAvgAggregateOutputType = {
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
geofence_radius: number | null
|
|
max_daily_registrations: number | null
|
|
usage_count: number | null
|
|
}
|
|
|
|
export type Qr_codesSumAggregateOutputType = {
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
geofence_radius: number | null
|
|
max_daily_registrations: number | null
|
|
usage_count: number | null
|
|
}
|
|
|
|
export type Qr_codesMinAggregateOutputType = {
|
|
id: string | null
|
|
entry_point: string | null
|
|
qr_data: string | null
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
geofence_radius: number | null
|
|
is_active: boolean | null
|
|
description: string | null
|
|
max_daily_registrations: number | null
|
|
security_level: $Enums.qr_codes_security_level | null
|
|
requires_approval: boolean | null
|
|
last_used_at: Date | null
|
|
usage_count: number | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Qr_codesMaxAggregateOutputType = {
|
|
id: string | null
|
|
entry_point: string | null
|
|
qr_data: string | null
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
geofence_radius: number | null
|
|
is_active: boolean | null
|
|
description: string | null
|
|
max_daily_registrations: number | null
|
|
security_level: $Enums.qr_codes_security_level | null
|
|
requires_approval: boolean | null
|
|
last_used_at: Date | null
|
|
usage_count: number | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Qr_codesCountAggregateOutputType = {
|
|
id: number
|
|
entry_point: number
|
|
qr_data: number
|
|
location_lat: number
|
|
location_lng: number
|
|
geofence_radius: number
|
|
is_active: number
|
|
description: number
|
|
max_daily_registrations: number
|
|
operating_hours: number
|
|
security_level: number
|
|
requires_approval: number
|
|
auto_approve_roles: number
|
|
metadata: number
|
|
last_used_at: number
|
|
usage_count: number
|
|
created_by: number
|
|
updated_by: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Qr_codesAvgAggregateInputType = {
|
|
location_lat?: true
|
|
location_lng?: true
|
|
geofence_radius?: true
|
|
max_daily_registrations?: true
|
|
usage_count?: true
|
|
}
|
|
|
|
export type Qr_codesSumAggregateInputType = {
|
|
location_lat?: true
|
|
location_lng?: true
|
|
geofence_radius?: true
|
|
max_daily_registrations?: true
|
|
usage_count?: true
|
|
}
|
|
|
|
export type Qr_codesMinAggregateInputType = {
|
|
id?: true
|
|
entry_point?: true
|
|
qr_data?: true
|
|
location_lat?: true
|
|
location_lng?: true
|
|
geofence_radius?: true
|
|
is_active?: true
|
|
description?: true
|
|
max_daily_registrations?: true
|
|
security_level?: true
|
|
requires_approval?: true
|
|
last_used_at?: true
|
|
usage_count?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Qr_codesMaxAggregateInputType = {
|
|
id?: true
|
|
entry_point?: true
|
|
qr_data?: true
|
|
location_lat?: true
|
|
location_lng?: true
|
|
geofence_radius?: true
|
|
is_active?: true
|
|
description?: true
|
|
max_daily_registrations?: true
|
|
security_level?: true
|
|
requires_approval?: true
|
|
last_used_at?: true
|
|
usage_count?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Qr_codesCountAggregateInputType = {
|
|
id?: true
|
|
entry_point?: true
|
|
qr_data?: true
|
|
location_lat?: true
|
|
location_lng?: true
|
|
geofence_radius?: true
|
|
is_active?: true
|
|
description?: true
|
|
max_daily_registrations?: true
|
|
operating_hours?: true
|
|
security_level?: true
|
|
requires_approval?: true
|
|
auto_approve_roles?: true
|
|
metadata?: true
|
|
last_used_at?: true
|
|
usage_count?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Qr_codesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which qr_codes to aggregate.
|
|
*/
|
|
where?: qr_codesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of qr_codes to fetch.
|
|
*/
|
|
orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: qr_codesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` qr_codes from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` qr_codes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned qr_codes
|
|
**/
|
|
_count?: true | Qr_codesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Qr_codesAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Qr_codesSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Qr_codesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Qr_codesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetQr_codesAggregateType<T extends Qr_codesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateQr_codes]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateQr_codes[P]>
|
|
: GetScalarType<T[P], AggregateQr_codes[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type qr_codesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: qr_codesWhereInput
|
|
orderBy?: qr_codesOrderByWithAggregationInput | qr_codesOrderByWithAggregationInput[]
|
|
by: Qr_codesScalarFieldEnum[] | Qr_codesScalarFieldEnum
|
|
having?: qr_codesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Qr_codesCountAggregateInputType | true
|
|
_avg?: Qr_codesAvgAggregateInputType
|
|
_sum?: Qr_codesSumAggregateInputType
|
|
_min?: Qr_codesMinAggregateInputType
|
|
_max?: Qr_codesMaxAggregateInputType
|
|
}
|
|
|
|
export type Qr_codesGroupByOutputType = {
|
|
id: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Decimal
|
|
location_lng: Decimal
|
|
geofence_radius: number
|
|
is_active: boolean
|
|
description: string | null
|
|
max_daily_registrations: number | null
|
|
operating_hours: JsonValue | null
|
|
security_level: $Enums.qr_codes_security_level
|
|
requires_approval: boolean
|
|
auto_approve_roles: JsonValue | null
|
|
metadata: JsonValue | null
|
|
last_used_at: Date | null
|
|
usage_count: number
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
_count: Qr_codesCountAggregateOutputType | null
|
|
_avg: Qr_codesAvgAggregateOutputType | null
|
|
_sum: Qr_codesSumAggregateOutputType | null
|
|
_min: Qr_codesMinAggregateOutputType | null
|
|
_max: Qr_codesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetQr_codesGroupByPayload<T extends qr_codesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Qr_codesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Qr_codesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Qr_codesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Qr_codesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type qr_codesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
entry_point?: boolean
|
|
qr_data?: boolean
|
|
location_lat?: boolean
|
|
location_lng?: boolean
|
|
geofence_radius?: boolean
|
|
is_active?: boolean
|
|
description?: boolean
|
|
max_daily_registrations?: boolean
|
|
operating_hours?: boolean
|
|
security_level?: boolean
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: boolean
|
|
metadata?: boolean
|
|
last_used_at?: boolean
|
|
usage_count?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
visitor_registrations?: boolean | qr_codes$visitor_registrationsArgs<ExtArgs>
|
|
_count?: boolean | Qr_codesCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["qr_codes"]>
|
|
|
|
|
|
|
|
export type qr_codesSelectScalar = {
|
|
id?: boolean
|
|
entry_point?: boolean
|
|
qr_data?: boolean
|
|
location_lat?: boolean
|
|
location_lng?: boolean
|
|
geofence_radius?: boolean
|
|
is_active?: boolean
|
|
description?: boolean
|
|
max_daily_registrations?: boolean
|
|
operating_hours?: boolean
|
|
security_level?: boolean
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: boolean
|
|
metadata?: boolean
|
|
last_used_at?: boolean
|
|
usage_count?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type qr_codesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "entry_point" | "qr_data" | "location_lat" | "location_lng" | "geofence_radius" | "is_active" | "description" | "max_daily_registrations" | "operating_hours" | "security_level" | "requires_approval" | "auto_approve_roles" | "metadata" | "last_used_at" | "usage_count" | "created_by" | "updated_by" | "created_at" | "updated_at", ExtArgs["result"]["qr_codes"]>
|
|
export type qr_codesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
visitor_registrations?: boolean | qr_codes$visitor_registrationsArgs<ExtArgs>
|
|
_count?: boolean | Qr_codesCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $qr_codesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "qr_codes"
|
|
objects: {
|
|
visitor_registrations: Prisma.$visitor_registrationsPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Prisma.Decimal
|
|
location_lng: Prisma.Decimal
|
|
geofence_radius: number
|
|
is_active: boolean
|
|
description: string | null
|
|
max_daily_registrations: number | null
|
|
operating_hours: Prisma.JsonValue | null
|
|
security_level: $Enums.qr_codes_security_level
|
|
requires_approval: boolean
|
|
auto_approve_roles: Prisma.JsonValue | null
|
|
metadata: Prisma.JsonValue | null
|
|
last_used_at: Date | null
|
|
usage_count: number
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
}, ExtArgs["result"]["qr_codes"]>
|
|
composites: {}
|
|
}
|
|
|
|
type qr_codesGetPayload<S extends boolean | null | undefined | qr_codesDefaultArgs> = $Result.GetResult<Prisma.$qr_codesPayload, S>
|
|
|
|
type qr_codesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<qr_codesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Qr_codesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface qr_codesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['qr_codes'], meta: { name: 'qr_codes' } }
|
|
/**
|
|
* Find zero or one Qr_codes that matches the filter.
|
|
* @param {qr_codesFindUniqueArgs} args - Arguments to find a Qr_codes
|
|
* @example
|
|
* // Get one Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends qr_codesFindUniqueArgs>(args: SelectSubset<T, qr_codesFindUniqueArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Qr_codes that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {qr_codesFindUniqueOrThrowArgs} args - Arguments to find a Qr_codes
|
|
* @example
|
|
* // Get one Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends qr_codesFindUniqueOrThrowArgs>(args: SelectSubset<T, qr_codesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Qr_codes that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {qr_codesFindFirstArgs} args - Arguments to find a Qr_codes
|
|
* @example
|
|
* // Get one Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends qr_codesFindFirstArgs>(args?: SelectSubset<T, qr_codesFindFirstArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Qr_codes that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {qr_codesFindFirstOrThrowArgs} args - Arguments to find a Qr_codes
|
|
* @example
|
|
* // Get one Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends qr_codesFindFirstOrThrowArgs>(args?: SelectSubset<T, qr_codesFindFirstOrThrowArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Qr_codes that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {qr_codesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findMany()
|
|
*
|
|
* // Get first 10 Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const qr_codesWithIdOnly = await prisma.qr_codes.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends qr_codesFindManyArgs>(args?: SelectSubset<T, qr_codesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Qr_codes.
|
|
* @param {qr_codesCreateArgs} args - Arguments to create a Qr_codes.
|
|
* @example
|
|
* // Create one Qr_codes
|
|
* const Qr_codes = await prisma.qr_codes.create({
|
|
* data: {
|
|
* // ... data to create a Qr_codes
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends qr_codesCreateArgs>(args: SelectSubset<T, qr_codesCreateArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Qr_codes.
|
|
* @param {qr_codesCreateManyArgs} args - Arguments to create many Qr_codes.
|
|
* @example
|
|
* // Create many Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends qr_codesCreateManyArgs>(args?: SelectSubset<T, qr_codesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Qr_codes.
|
|
* @param {qr_codesDeleteArgs} args - Arguments to delete one Qr_codes.
|
|
* @example
|
|
* // Delete one Qr_codes
|
|
* const Qr_codes = await prisma.qr_codes.delete({
|
|
* where: {
|
|
* // ... filter to delete one Qr_codes
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends qr_codesDeleteArgs>(args: SelectSubset<T, qr_codesDeleteArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Qr_codes.
|
|
* @param {qr_codesUpdateArgs} args - Arguments to update one Qr_codes.
|
|
* @example
|
|
* // Update one Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends qr_codesUpdateArgs>(args: SelectSubset<T, qr_codesUpdateArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Qr_codes.
|
|
* @param {qr_codesDeleteManyArgs} args - Arguments to filter Qr_codes to delete.
|
|
* @example
|
|
* // Delete a few Qr_codes
|
|
* const { count } = await prisma.qr_codes.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends qr_codesDeleteManyArgs>(args?: SelectSubset<T, qr_codesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Qr_codes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {qr_codesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends qr_codesUpdateManyArgs>(args: SelectSubset<T, qr_codesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Qr_codes.
|
|
* @param {qr_codesUpsertArgs} args - Arguments to update or create a Qr_codes.
|
|
* @example
|
|
* // Update or create a Qr_codes
|
|
* const qr_codes = await prisma.qr_codes.upsert({
|
|
* create: {
|
|
* // ... data to create a Qr_codes
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Qr_codes we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends qr_codesUpsertArgs>(args: SelectSubset<T, qr_codesUpsertArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Qr_codes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {qr_codesCountArgs} args - Arguments to filter Qr_codes to count.
|
|
* @example
|
|
* // Count the number of Qr_codes
|
|
* const count = await prisma.qr_codes.count({
|
|
* where: {
|
|
* // ... the filter for the Qr_codes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends qr_codesCountArgs>(
|
|
args?: Subset<T, qr_codesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Qr_codesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Qr_codes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Qr_codesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Qr_codesAggregateArgs>(args: Subset<T, Qr_codesAggregateArgs>): Prisma.PrismaPromise<GetQr_codesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Qr_codes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {qr_codesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends qr_codesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: qr_codesGroupByArgs['orderBy'] }
|
|
: { orderBy?: qr_codesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, qr_codesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQr_codesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the qr_codes model
|
|
*/
|
|
readonly fields: qr_codesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for qr_codes.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__qr_codesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
visitor_registrations<T extends qr_codes$visitor_registrationsArgs<ExtArgs> = {}>(args?: Subset<T, qr_codes$visitor_registrationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the qr_codes model
|
|
*/
|
|
interface qr_codesFieldRefs {
|
|
readonly id: FieldRef<"qr_codes", 'String'>
|
|
readonly entry_point: FieldRef<"qr_codes", 'String'>
|
|
readonly qr_data: FieldRef<"qr_codes", 'String'>
|
|
readonly location_lat: FieldRef<"qr_codes", 'Decimal'>
|
|
readonly location_lng: FieldRef<"qr_codes", 'Decimal'>
|
|
readonly geofence_radius: FieldRef<"qr_codes", 'Int'>
|
|
readonly is_active: FieldRef<"qr_codes", 'Boolean'>
|
|
readonly description: FieldRef<"qr_codes", 'String'>
|
|
readonly max_daily_registrations: FieldRef<"qr_codes", 'Int'>
|
|
readonly operating_hours: FieldRef<"qr_codes", 'Json'>
|
|
readonly security_level: FieldRef<"qr_codes", 'qr_codes_security_level'>
|
|
readonly requires_approval: FieldRef<"qr_codes", 'Boolean'>
|
|
readonly auto_approve_roles: FieldRef<"qr_codes", 'Json'>
|
|
readonly metadata: FieldRef<"qr_codes", 'Json'>
|
|
readonly last_used_at: FieldRef<"qr_codes", 'DateTime'>
|
|
readonly usage_count: FieldRef<"qr_codes", 'Int'>
|
|
readonly created_by: FieldRef<"qr_codes", 'String'>
|
|
readonly updated_by: FieldRef<"qr_codes", 'String'>
|
|
readonly created_at: FieldRef<"qr_codes", 'DateTime'>
|
|
readonly updated_at: FieldRef<"qr_codes", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* qr_codes findUnique
|
|
*/
|
|
export type qr_codesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which qr_codes to fetch.
|
|
*/
|
|
where: qr_codesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* qr_codes findUniqueOrThrow
|
|
*/
|
|
export type qr_codesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which qr_codes to fetch.
|
|
*/
|
|
where: qr_codesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* qr_codes findFirst
|
|
*/
|
|
export type qr_codesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which qr_codes to fetch.
|
|
*/
|
|
where?: qr_codesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of qr_codes to fetch.
|
|
*/
|
|
orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for qr_codes.
|
|
*/
|
|
cursor?: qr_codesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` qr_codes from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` qr_codes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of qr_codes.
|
|
*/
|
|
distinct?: Qr_codesScalarFieldEnum | Qr_codesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* qr_codes findFirstOrThrow
|
|
*/
|
|
export type qr_codesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which qr_codes to fetch.
|
|
*/
|
|
where?: qr_codesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of qr_codes to fetch.
|
|
*/
|
|
orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for qr_codes.
|
|
*/
|
|
cursor?: qr_codesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` qr_codes from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` qr_codes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of qr_codes.
|
|
*/
|
|
distinct?: Qr_codesScalarFieldEnum | Qr_codesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* qr_codes findMany
|
|
*/
|
|
export type qr_codesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which qr_codes to fetch.
|
|
*/
|
|
where?: qr_codesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of qr_codes to fetch.
|
|
*/
|
|
orderBy?: qr_codesOrderByWithRelationInput | qr_codesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing qr_codes.
|
|
*/
|
|
cursor?: qr_codesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` qr_codes from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` qr_codes.
|
|
*/
|
|
skip?: number
|
|
distinct?: Qr_codesScalarFieldEnum | Qr_codesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* qr_codes create
|
|
*/
|
|
export type qr_codesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a qr_codes.
|
|
*/
|
|
data: XOR<qr_codesCreateInput, qr_codesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* qr_codes createMany
|
|
*/
|
|
export type qr_codesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many qr_codes.
|
|
*/
|
|
data: qr_codesCreateManyInput | qr_codesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* qr_codes update
|
|
*/
|
|
export type qr_codesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a qr_codes.
|
|
*/
|
|
data: XOR<qr_codesUpdateInput, qr_codesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which qr_codes to update.
|
|
*/
|
|
where: qr_codesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* qr_codes updateMany
|
|
*/
|
|
export type qr_codesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update qr_codes.
|
|
*/
|
|
data: XOR<qr_codesUpdateManyMutationInput, qr_codesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which qr_codes to update
|
|
*/
|
|
where?: qr_codesWhereInput
|
|
/**
|
|
* Limit how many qr_codes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* qr_codes upsert
|
|
*/
|
|
export type qr_codesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the qr_codes to update in case it exists.
|
|
*/
|
|
where: qr_codesWhereUniqueInput
|
|
/**
|
|
* In case the qr_codes found by the `where` argument doesn't exist, create a new qr_codes with this data.
|
|
*/
|
|
create: XOR<qr_codesCreateInput, qr_codesUncheckedCreateInput>
|
|
/**
|
|
* In case the qr_codes was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<qr_codesUpdateInput, qr_codesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* qr_codes delete
|
|
*/
|
|
export type qr_codesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which qr_codes to delete.
|
|
*/
|
|
where: qr_codesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* qr_codes deleteMany
|
|
*/
|
|
export type qr_codesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which qr_codes to delete
|
|
*/
|
|
where?: qr_codesWhereInput
|
|
/**
|
|
* Limit how many qr_codes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* qr_codes.visitor_registrations
|
|
*/
|
|
export type qr_codes$visitor_registrationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
where?: visitor_registrationsWhereInput
|
|
orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[]
|
|
cursor?: visitor_registrationsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* qr_codes without action
|
|
*/
|
|
export type qr_codesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model security_activities
|
|
*/
|
|
|
|
export type AggregateSecurity_activities = {
|
|
_count: Security_activitiesCountAggregateOutputType | null
|
|
_avg: Security_activitiesAvgAggregateOutputType | null
|
|
_sum: Security_activitiesSumAggregateOutputType | null
|
|
_min: Security_activitiesMinAggregateOutputType | null
|
|
_max: Security_activitiesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Security_activitiesAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type Security_activitiesSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type Security_activitiesMinAggregateOutputType = {
|
|
id: number | null
|
|
type: string | null
|
|
ref_id: string | null
|
|
actor: string | null
|
|
note: string | null
|
|
severity: $Enums.security_activities_severity | null
|
|
timestamp: Date | null
|
|
source: string | null
|
|
}
|
|
|
|
export type Security_activitiesMaxAggregateOutputType = {
|
|
id: number | null
|
|
type: string | null
|
|
ref_id: string | null
|
|
actor: string | null
|
|
note: string | null
|
|
severity: $Enums.security_activities_severity | null
|
|
timestamp: Date | null
|
|
source: string | null
|
|
}
|
|
|
|
export type Security_activitiesCountAggregateOutputType = {
|
|
id: number
|
|
type: number
|
|
ref_id: number
|
|
actor: number
|
|
note: number
|
|
severity: number
|
|
timestamp: number
|
|
metadata: number
|
|
source: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Security_activitiesAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type Security_activitiesSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type Security_activitiesMinAggregateInputType = {
|
|
id?: true
|
|
type?: true
|
|
ref_id?: true
|
|
actor?: true
|
|
note?: true
|
|
severity?: true
|
|
timestamp?: true
|
|
source?: true
|
|
}
|
|
|
|
export type Security_activitiesMaxAggregateInputType = {
|
|
id?: true
|
|
type?: true
|
|
ref_id?: true
|
|
actor?: true
|
|
note?: true
|
|
severity?: true
|
|
timestamp?: true
|
|
source?: true
|
|
}
|
|
|
|
export type Security_activitiesCountAggregateInputType = {
|
|
id?: true
|
|
type?: true
|
|
ref_id?: true
|
|
actor?: true
|
|
note?: true
|
|
severity?: true
|
|
timestamp?: true
|
|
metadata?: true
|
|
source?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Security_activitiesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which security_activities to aggregate.
|
|
*/
|
|
where?: security_activitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of security_activities to fetch.
|
|
*/
|
|
orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: security_activitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` security_activities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` security_activities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned security_activities
|
|
**/
|
|
_count?: true | Security_activitiesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Security_activitiesAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Security_activitiesSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Security_activitiesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Security_activitiesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSecurity_activitiesAggregateType<T extends Security_activitiesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSecurity_activities]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSecurity_activities[P]>
|
|
: GetScalarType<T[P], AggregateSecurity_activities[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type security_activitiesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: security_activitiesWhereInput
|
|
orderBy?: security_activitiesOrderByWithAggregationInput | security_activitiesOrderByWithAggregationInput[]
|
|
by: Security_activitiesScalarFieldEnum[] | Security_activitiesScalarFieldEnum
|
|
having?: security_activitiesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Security_activitiesCountAggregateInputType | true
|
|
_avg?: Security_activitiesAvgAggregateInputType
|
|
_sum?: Security_activitiesSumAggregateInputType
|
|
_min?: Security_activitiesMinAggregateInputType
|
|
_max?: Security_activitiesMaxAggregateInputType
|
|
}
|
|
|
|
export type Security_activitiesGroupByOutputType = {
|
|
id: number
|
|
type: string
|
|
ref_id: string | null
|
|
actor: string
|
|
note: string
|
|
severity: $Enums.security_activities_severity | null
|
|
timestamp: Date | null
|
|
metadata: JsonValue | null
|
|
source: string | null
|
|
_count: Security_activitiesCountAggregateOutputType | null
|
|
_avg: Security_activitiesAvgAggregateOutputType | null
|
|
_sum: Security_activitiesSumAggregateOutputType | null
|
|
_min: Security_activitiesMinAggregateOutputType | null
|
|
_max: Security_activitiesMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSecurity_activitiesGroupByPayload<T extends security_activitiesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Security_activitiesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Security_activitiesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Security_activitiesGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Security_activitiesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type security_activitiesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
type?: boolean
|
|
ref_id?: boolean
|
|
actor?: boolean
|
|
note?: boolean
|
|
severity?: boolean
|
|
timestamp?: boolean
|
|
metadata?: boolean
|
|
source?: boolean
|
|
}, ExtArgs["result"]["security_activities"]>
|
|
|
|
|
|
|
|
export type security_activitiesSelectScalar = {
|
|
id?: boolean
|
|
type?: boolean
|
|
ref_id?: boolean
|
|
actor?: boolean
|
|
note?: boolean
|
|
severity?: boolean
|
|
timestamp?: boolean
|
|
metadata?: boolean
|
|
source?: boolean
|
|
}
|
|
|
|
export type security_activitiesOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "type" | "ref_id" | "actor" | "note" | "severity" | "timestamp" | "metadata" | "source", ExtArgs["result"]["security_activities"]>
|
|
|
|
export type $security_activitiesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "security_activities"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
type: string
|
|
ref_id: string | null
|
|
actor: string
|
|
note: string
|
|
severity: $Enums.security_activities_severity | null
|
|
timestamp: Date | null
|
|
metadata: Prisma.JsonValue | null
|
|
source: string | null
|
|
}, ExtArgs["result"]["security_activities"]>
|
|
composites: {}
|
|
}
|
|
|
|
type security_activitiesGetPayload<S extends boolean | null | undefined | security_activitiesDefaultArgs> = $Result.GetResult<Prisma.$security_activitiesPayload, S>
|
|
|
|
type security_activitiesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<security_activitiesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Security_activitiesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface security_activitiesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['security_activities'], meta: { name: 'security_activities' } }
|
|
/**
|
|
* Find zero or one Security_activities that matches the filter.
|
|
* @param {security_activitiesFindUniqueArgs} args - Arguments to find a Security_activities
|
|
* @example
|
|
* // Get one Security_activities
|
|
* const security_activities = await prisma.security_activities.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends security_activitiesFindUniqueArgs>(args: SelectSubset<T, security_activitiesFindUniqueArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Security_activities that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {security_activitiesFindUniqueOrThrowArgs} args - Arguments to find a Security_activities
|
|
* @example
|
|
* // Get one Security_activities
|
|
* const security_activities = await prisma.security_activities.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends security_activitiesFindUniqueOrThrowArgs>(args: SelectSubset<T, security_activitiesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Security_activities that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {security_activitiesFindFirstArgs} args - Arguments to find a Security_activities
|
|
* @example
|
|
* // Get one Security_activities
|
|
* const security_activities = await prisma.security_activities.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends security_activitiesFindFirstArgs>(args?: SelectSubset<T, security_activitiesFindFirstArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Security_activities that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {security_activitiesFindFirstOrThrowArgs} args - Arguments to find a Security_activities
|
|
* @example
|
|
* // Get one Security_activities
|
|
* const security_activities = await prisma.security_activities.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends security_activitiesFindFirstOrThrowArgs>(args?: SelectSubset<T, security_activitiesFindFirstOrThrowArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Security_activities that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {security_activitiesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Security_activities
|
|
* const security_activities = await prisma.security_activities.findMany()
|
|
*
|
|
* // Get first 10 Security_activities
|
|
* const security_activities = await prisma.security_activities.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const security_activitiesWithIdOnly = await prisma.security_activities.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends security_activitiesFindManyArgs>(args?: SelectSubset<T, security_activitiesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Security_activities.
|
|
* @param {security_activitiesCreateArgs} args - Arguments to create a Security_activities.
|
|
* @example
|
|
* // Create one Security_activities
|
|
* const Security_activities = await prisma.security_activities.create({
|
|
* data: {
|
|
* // ... data to create a Security_activities
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends security_activitiesCreateArgs>(args: SelectSubset<T, security_activitiesCreateArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Security_activities.
|
|
* @param {security_activitiesCreateManyArgs} args - Arguments to create many Security_activities.
|
|
* @example
|
|
* // Create many Security_activities
|
|
* const security_activities = await prisma.security_activities.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends security_activitiesCreateManyArgs>(args?: SelectSubset<T, security_activitiesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Security_activities.
|
|
* @param {security_activitiesDeleteArgs} args - Arguments to delete one Security_activities.
|
|
* @example
|
|
* // Delete one Security_activities
|
|
* const Security_activities = await prisma.security_activities.delete({
|
|
* where: {
|
|
* // ... filter to delete one Security_activities
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends security_activitiesDeleteArgs>(args: SelectSubset<T, security_activitiesDeleteArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Security_activities.
|
|
* @param {security_activitiesUpdateArgs} args - Arguments to update one Security_activities.
|
|
* @example
|
|
* // Update one Security_activities
|
|
* const security_activities = await prisma.security_activities.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends security_activitiesUpdateArgs>(args: SelectSubset<T, security_activitiesUpdateArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Security_activities.
|
|
* @param {security_activitiesDeleteManyArgs} args - Arguments to filter Security_activities to delete.
|
|
* @example
|
|
* // Delete a few Security_activities
|
|
* const { count } = await prisma.security_activities.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends security_activitiesDeleteManyArgs>(args?: SelectSubset<T, security_activitiesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Security_activities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {security_activitiesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Security_activities
|
|
* const security_activities = await prisma.security_activities.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends security_activitiesUpdateManyArgs>(args: SelectSubset<T, security_activitiesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Security_activities.
|
|
* @param {security_activitiesUpsertArgs} args - Arguments to update or create a Security_activities.
|
|
* @example
|
|
* // Update or create a Security_activities
|
|
* const security_activities = await prisma.security_activities.upsert({
|
|
* create: {
|
|
* // ... data to create a Security_activities
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Security_activities we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends security_activitiesUpsertArgs>(args: SelectSubset<T, security_activitiesUpsertArgs<ExtArgs>>): Prisma__security_activitiesClient<$Result.GetResult<Prisma.$security_activitiesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Security_activities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {security_activitiesCountArgs} args - Arguments to filter Security_activities to count.
|
|
* @example
|
|
* // Count the number of Security_activities
|
|
* const count = await prisma.security_activities.count({
|
|
* where: {
|
|
* // ... the filter for the Security_activities we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends security_activitiesCountArgs>(
|
|
args?: Subset<T, security_activitiesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Security_activitiesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Security_activities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Security_activitiesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Security_activitiesAggregateArgs>(args: Subset<T, Security_activitiesAggregateArgs>): Prisma.PrismaPromise<GetSecurity_activitiesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Security_activities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {security_activitiesGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends security_activitiesGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: security_activitiesGroupByArgs['orderBy'] }
|
|
: { orderBy?: security_activitiesGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, security_activitiesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSecurity_activitiesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the security_activities model
|
|
*/
|
|
readonly fields: security_activitiesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for security_activities.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__security_activitiesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the security_activities model
|
|
*/
|
|
interface security_activitiesFieldRefs {
|
|
readonly id: FieldRef<"security_activities", 'Int'>
|
|
readonly type: FieldRef<"security_activities", 'String'>
|
|
readonly ref_id: FieldRef<"security_activities", 'String'>
|
|
readonly actor: FieldRef<"security_activities", 'String'>
|
|
readonly note: FieldRef<"security_activities", 'String'>
|
|
readonly severity: FieldRef<"security_activities", 'security_activities_severity'>
|
|
readonly timestamp: FieldRef<"security_activities", 'DateTime'>
|
|
readonly metadata: FieldRef<"security_activities", 'Json'>
|
|
readonly source: FieldRef<"security_activities", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* security_activities findUnique
|
|
*/
|
|
export type security_activitiesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which security_activities to fetch.
|
|
*/
|
|
where: security_activitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* security_activities findUniqueOrThrow
|
|
*/
|
|
export type security_activitiesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which security_activities to fetch.
|
|
*/
|
|
where: security_activitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* security_activities findFirst
|
|
*/
|
|
export type security_activitiesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which security_activities to fetch.
|
|
*/
|
|
where?: security_activitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of security_activities to fetch.
|
|
*/
|
|
orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for security_activities.
|
|
*/
|
|
cursor?: security_activitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` security_activities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` security_activities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of security_activities.
|
|
*/
|
|
distinct?: Security_activitiesScalarFieldEnum | Security_activitiesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* security_activities findFirstOrThrow
|
|
*/
|
|
export type security_activitiesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which security_activities to fetch.
|
|
*/
|
|
where?: security_activitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of security_activities to fetch.
|
|
*/
|
|
orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for security_activities.
|
|
*/
|
|
cursor?: security_activitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` security_activities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` security_activities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of security_activities.
|
|
*/
|
|
distinct?: Security_activitiesScalarFieldEnum | Security_activitiesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* security_activities findMany
|
|
*/
|
|
export type security_activitiesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which security_activities to fetch.
|
|
*/
|
|
where?: security_activitiesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of security_activities to fetch.
|
|
*/
|
|
orderBy?: security_activitiesOrderByWithRelationInput | security_activitiesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing security_activities.
|
|
*/
|
|
cursor?: security_activitiesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` security_activities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` security_activities.
|
|
*/
|
|
skip?: number
|
|
distinct?: Security_activitiesScalarFieldEnum | Security_activitiesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* security_activities create
|
|
*/
|
|
export type security_activitiesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a security_activities.
|
|
*/
|
|
data: XOR<security_activitiesCreateInput, security_activitiesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* security_activities createMany
|
|
*/
|
|
export type security_activitiesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many security_activities.
|
|
*/
|
|
data: security_activitiesCreateManyInput | security_activitiesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* security_activities update
|
|
*/
|
|
export type security_activitiesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a security_activities.
|
|
*/
|
|
data: XOR<security_activitiesUpdateInput, security_activitiesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which security_activities to update.
|
|
*/
|
|
where: security_activitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* security_activities updateMany
|
|
*/
|
|
export type security_activitiesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update security_activities.
|
|
*/
|
|
data: XOR<security_activitiesUpdateManyMutationInput, security_activitiesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which security_activities to update
|
|
*/
|
|
where?: security_activitiesWhereInput
|
|
/**
|
|
* Limit how many security_activities to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* security_activities upsert
|
|
*/
|
|
export type security_activitiesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the security_activities to update in case it exists.
|
|
*/
|
|
where: security_activitiesWhereUniqueInput
|
|
/**
|
|
* In case the security_activities found by the `where` argument doesn't exist, create a new security_activities with this data.
|
|
*/
|
|
create: XOR<security_activitiesCreateInput, security_activitiesUncheckedCreateInput>
|
|
/**
|
|
* In case the security_activities was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<security_activitiesUpdateInput, security_activitiesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* security_activities delete
|
|
*/
|
|
export type security_activitiesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which security_activities to delete.
|
|
*/
|
|
where: security_activitiesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* security_activities deleteMany
|
|
*/
|
|
export type security_activitiesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which security_activities to delete
|
|
*/
|
|
where?: security_activitiesWhereInput
|
|
/**
|
|
* Limit how many security_activities to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* security_activities without action
|
|
*/
|
|
export type security_activitiesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the security_activities
|
|
*/
|
|
select?: security_activitiesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the security_activities
|
|
*/
|
|
omit?: security_activitiesOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model sequelizemeta
|
|
*/
|
|
|
|
export type AggregateSequelizemeta = {
|
|
_count: SequelizemetaCountAggregateOutputType | null
|
|
_min: SequelizemetaMinAggregateOutputType | null
|
|
_max: SequelizemetaMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SequelizemetaMinAggregateOutputType = {
|
|
name: string | null
|
|
}
|
|
|
|
export type SequelizemetaMaxAggregateOutputType = {
|
|
name: string | null
|
|
}
|
|
|
|
export type SequelizemetaCountAggregateOutputType = {
|
|
name: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SequelizemetaMinAggregateInputType = {
|
|
name?: true
|
|
}
|
|
|
|
export type SequelizemetaMaxAggregateInputType = {
|
|
name?: true
|
|
}
|
|
|
|
export type SequelizemetaCountAggregateInputType = {
|
|
name?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SequelizemetaAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which sequelizemeta to aggregate.
|
|
*/
|
|
where?: sequelizemetaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of sequelizemetas to fetch.
|
|
*/
|
|
orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: sequelizemetaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` sequelizemetas from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` sequelizemetas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned sequelizemetas
|
|
**/
|
|
_count?: true | SequelizemetaCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SequelizemetaMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SequelizemetaMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSequelizemetaAggregateType<T extends SequelizemetaAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSequelizemeta]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSequelizemeta[P]>
|
|
: GetScalarType<T[P], AggregateSequelizemeta[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type sequelizemetaGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: sequelizemetaWhereInput
|
|
orderBy?: sequelizemetaOrderByWithAggregationInput | sequelizemetaOrderByWithAggregationInput[]
|
|
by: SequelizemetaScalarFieldEnum[] | SequelizemetaScalarFieldEnum
|
|
having?: sequelizemetaScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SequelizemetaCountAggregateInputType | true
|
|
_min?: SequelizemetaMinAggregateInputType
|
|
_max?: SequelizemetaMaxAggregateInputType
|
|
}
|
|
|
|
export type SequelizemetaGroupByOutputType = {
|
|
name: string
|
|
_count: SequelizemetaCountAggregateOutputType | null
|
|
_min: SequelizemetaMinAggregateOutputType | null
|
|
_max: SequelizemetaMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSequelizemetaGroupByPayload<T extends sequelizemetaGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SequelizemetaGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SequelizemetaGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SequelizemetaGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SequelizemetaGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type sequelizemetaSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
name?: boolean
|
|
}, ExtArgs["result"]["sequelizemeta"]>
|
|
|
|
|
|
|
|
export type sequelizemetaSelectScalar = {
|
|
name?: boolean
|
|
}
|
|
|
|
export type sequelizemetaOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"name", ExtArgs["result"]["sequelizemeta"]>
|
|
|
|
export type $sequelizemetaPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "sequelizemeta"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
name: string
|
|
}, ExtArgs["result"]["sequelizemeta"]>
|
|
composites: {}
|
|
}
|
|
|
|
type sequelizemetaGetPayload<S extends boolean | null | undefined | sequelizemetaDefaultArgs> = $Result.GetResult<Prisma.$sequelizemetaPayload, S>
|
|
|
|
type sequelizemetaCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<sequelizemetaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SequelizemetaCountAggregateInputType | true
|
|
}
|
|
|
|
export interface sequelizemetaDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['sequelizemeta'], meta: { name: 'sequelizemeta' } }
|
|
/**
|
|
* Find zero or one Sequelizemeta that matches the filter.
|
|
* @param {sequelizemetaFindUniqueArgs} args - Arguments to find a Sequelizemeta
|
|
* @example
|
|
* // Get one Sequelizemeta
|
|
* const sequelizemeta = await prisma.sequelizemeta.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends sequelizemetaFindUniqueArgs>(args: SelectSubset<T, sequelizemetaFindUniqueArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Sequelizemeta that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {sequelizemetaFindUniqueOrThrowArgs} args - Arguments to find a Sequelizemeta
|
|
* @example
|
|
* // Get one Sequelizemeta
|
|
* const sequelizemeta = await prisma.sequelizemeta.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends sequelizemetaFindUniqueOrThrowArgs>(args: SelectSubset<T, sequelizemetaFindUniqueOrThrowArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Sequelizemeta that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {sequelizemetaFindFirstArgs} args - Arguments to find a Sequelizemeta
|
|
* @example
|
|
* // Get one Sequelizemeta
|
|
* const sequelizemeta = await prisma.sequelizemeta.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends sequelizemetaFindFirstArgs>(args?: SelectSubset<T, sequelizemetaFindFirstArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Sequelizemeta that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {sequelizemetaFindFirstOrThrowArgs} args - Arguments to find a Sequelizemeta
|
|
* @example
|
|
* // Get one Sequelizemeta
|
|
* const sequelizemeta = await prisma.sequelizemeta.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends sequelizemetaFindFirstOrThrowArgs>(args?: SelectSubset<T, sequelizemetaFindFirstOrThrowArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Sequelizemetas that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {sequelizemetaFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Sequelizemetas
|
|
* const sequelizemetas = await prisma.sequelizemeta.findMany()
|
|
*
|
|
* // Get first 10 Sequelizemetas
|
|
* const sequelizemetas = await prisma.sequelizemeta.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `name`
|
|
* const sequelizemetaWithNameOnly = await prisma.sequelizemeta.findMany({ select: { name: true } })
|
|
*
|
|
*/
|
|
findMany<T extends sequelizemetaFindManyArgs>(args?: SelectSubset<T, sequelizemetaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Sequelizemeta.
|
|
* @param {sequelizemetaCreateArgs} args - Arguments to create a Sequelizemeta.
|
|
* @example
|
|
* // Create one Sequelizemeta
|
|
* const Sequelizemeta = await prisma.sequelizemeta.create({
|
|
* data: {
|
|
* // ... data to create a Sequelizemeta
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends sequelizemetaCreateArgs>(args: SelectSubset<T, sequelizemetaCreateArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Sequelizemetas.
|
|
* @param {sequelizemetaCreateManyArgs} args - Arguments to create many Sequelizemetas.
|
|
* @example
|
|
* // Create many Sequelizemetas
|
|
* const sequelizemeta = await prisma.sequelizemeta.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends sequelizemetaCreateManyArgs>(args?: SelectSubset<T, sequelizemetaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Sequelizemeta.
|
|
* @param {sequelizemetaDeleteArgs} args - Arguments to delete one Sequelizemeta.
|
|
* @example
|
|
* // Delete one Sequelizemeta
|
|
* const Sequelizemeta = await prisma.sequelizemeta.delete({
|
|
* where: {
|
|
* // ... filter to delete one Sequelizemeta
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends sequelizemetaDeleteArgs>(args: SelectSubset<T, sequelizemetaDeleteArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Sequelizemeta.
|
|
* @param {sequelizemetaUpdateArgs} args - Arguments to update one Sequelizemeta.
|
|
* @example
|
|
* // Update one Sequelizemeta
|
|
* const sequelizemeta = await prisma.sequelizemeta.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends sequelizemetaUpdateArgs>(args: SelectSubset<T, sequelizemetaUpdateArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Sequelizemetas.
|
|
* @param {sequelizemetaDeleteManyArgs} args - Arguments to filter Sequelizemetas to delete.
|
|
* @example
|
|
* // Delete a few Sequelizemetas
|
|
* const { count } = await prisma.sequelizemeta.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends sequelizemetaDeleteManyArgs>(args?: SelectSubset<T, sequelizemetaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sequelizemetas.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {sequelizemetaUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Sequelizemetas
|
|
* const sequelizemeta = await prisma.sequelizemeta.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends sequelizemetaUpdateManyArgs>(args: SelectSubset<T, sequelizemetaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Sequelizemeta.
|
|
* @param {sequelizemetaUpsertArgs} args - Arguments to update or create a Sequelizemeta.
|
|
* @example
|
|
* // Update or create a Sequelizemeta
|
|
* const sequelizemeta = await prisma.sequelizemeta.upsert({
|
|
* create: {
|
|
* // ... data to create a Sequelizemeta
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Sequelizemeta we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends sequelizemetaUpsertArgs>(args: SelectSubset<T, sequelizemetaUpsertArgs<ExtArgs>>): Prisma__sequelizemetaClient<$Result.GetResult<Prisma.$sequelizemetaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Sequelizemetas.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {sequelizemetaCountArgs} args - Arguments to filter Sequelizemetas to count.
|
|
* @example
|
|
* // Count the number of Sequelizemetas
|
|
* const count = await prisma.sequelizemeta.count({
|
|
* where: {
|
|
* // ... the filter for the Sequelizemetas we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends sequelizemetaCountArgs>(
|
|
args?: Subset<T, sequelizemetaCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SequelizemetaCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Sequelizemeta.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SequelizemetaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends SequelizemetaAggregateArgs>(args: Subset<T, SequelizemetaAggregateArgs>): Prisma.PrismaPromise<GetSequelizemetaAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Sequelizemeta.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {sequelizemetaGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends sequelizemetaGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: sequelizemetaGroupByArgs['orderBy'] }
|
|
: { orderBy?: sequelizemetaGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, sequelizemetaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSequelizemetaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the sequelizemeta model
|
|
*/
|
|
readonly fields: sequelizemetaFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for sequelizemeta.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__sequelizemetaClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the sequelizemeta model
|
|
*/
|
|
interface sequelizemetaFieldRefs {
|
|
readonly name: FieldRef<"sequelizemeta", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* sequelizemeta findUnique
|
|
*/
|
|
export type sequelizemetaFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which sequelizemeta to fetch.
|
|
*/
|
|
where: sequelizemetaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta findUniqueOrThrow
|
|
*/
|
|
export type sequelizemetaFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which sequelizemeta to fetch.
|
|
*/
|
|
where: sequelizemetaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta findFirst
|
|
*/
|
|
export type sequelizemetaFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which sequelizemeta to fetch.
|
|
*/
|
|
where?: sequelizemetaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of sequelizemetas to fetch.
|
|
*/
|
|
orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for sequelizemetas.
|
|
*/
|
|
cursor?: sequelizemetaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` sequelizemetas from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` sequelizemetas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of sequelizemetas.
|
|
*/
|
|
distinct?: SequelizemetaScalarFieldEnum | SequelizemetaScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta findFirstOrThrow
|
|
*/
|
|
export type sequelizemetaFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which sequelizemeta to fetch.
|
|
*/
|
|
where?: sequelizemetaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of sequelizemetas to fetch.
|
|
*/
|
|
orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for sequelizemetas.
|
|
*/
|
|
cursor?: sequelizemetaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` sequelizemetas from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` sequelizemetas.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of sequelizemetas.
|
|
*/
|
|
distinct?: SequelizemetaScalarFieldEnum | SequelizemetaScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta findMany
|
|
*/
|
|
export type sequelizemetaFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which sequelizemetas to fetch.
|
|
*/
|
|
where?: sequelizemetaWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of sequelizemetas to fetch.
|
|
*/
|
|
orderBy?: sequelizemetaOrderByWithRelationInput | sequelizemetaOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing sequelizemetas.
|
|
*/
|
|
cursor?: sequelizemetaWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` sequelizemetas from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` sequelizemetas.
|
|
*/
|
|
skip?: number
|
|
distinct?: SequelizemetaScalarFieldEnum | SequelizemetaScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta create
|
|
*/
|
|
export type sequelizemetaCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a sequelizemeta.
|
|
*/
|
|
data: XOR<sequelizemetaCreateInput, sequelizemetaUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta createMany
|
|
*/
|
|
export type sequelizemetaCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many sequelizemetas.
|
|
*/
|
|
data: sequelizemetaCreateManyInput | sequelizemetaCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta update
|
|
*/
|
|
export type sequelizemetaUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a sequelizemeta.
|
|
*/
|
|
data: XOR<sequelizemetaUpdateInput, sequelizemetaUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which sequelizemeta to update.
|
|
*/
|
|
where: sequelizemetaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta updateMany
|
|
*/
|
|
export type sequelizemetaUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update sequelizemetas.
|
|
*/
|
|
data: XOR<sequelizemetaUpdateManyMutationInput, sequelizemetaUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which sequelizemetas to update
|
|
*/
|
|
where?: sequelizemetaWhereInput
|
|
/**
|
|
* Limit how many sequelizemetas to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta upsert
|
|
*/
|
|
export type sequelizemetaUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the sequelizemeta to update in case it exists.
|
|
*/
|
|
where: sequelizemetaWhereUniqueInput
|
|
/**
|
|
* In case the sequelizemeta found by the `where` argument doesn't exist, create a new sequelizemeta with this data.
|
|
*/
|
|
create: XOR<sequelizemetaCreateInput, sequelizemetaUncheckedCreateInput>
|
|
/**
|
|
* In case the sequelizemeta was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<sequelizemetaUpdateInput, sequelizemetaUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta delete
|
|
*/
|
|
export type sequelizemetaDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which sequelizemeta to delete.
|
|
*/
|
|
where: sequelizemetaWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta deleteMany
|
|
*/
|
|
export type sequelizemetaDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which sequelizemetas to delete
|
|
*/
|
|
where?: sequelizemetaWhereInput
|
|
/**
|
|
* Limit how many sequelizemetas to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* sequelizemeta without action
|
|
*/
|
|
export type sequelizemetaDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the sequelizemeta
|
|
*/
|
|
select?: sequelizemetaSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the sequelizemeta
|
|
*/
|
|
omit?: sequelizemetaOmit<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model team_location_history
|
|
*/
|
|
|
|
export type AggregateTeam_location_history = {
|
|
_count: Team_location_historyCountAggregateOutputType | null
|
|
_avg: Team_location_historyAvgAggregateOutputType | null
|
|
_sum: Team_location_historySumAggregateOutputType | null
|
|
_min: Team_location_historyMinAggregateOutputType | null
|
|
_max: Team_location_historyMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Team_location_historyAvgAggregateOutputType = {
|
|
id: number | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
}
|
|
|
|
export type Team_location_historySumAggregateOutputType = {
|
|
id: number | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
}
|
|
|
|
export type Team_location_historyMinAggregateOutputType = {
|
|
id: number | null
|
|
member_id: string | null
|
|
location: string | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
activity_type: string | null
|
|
timestamp: Date | null
|
|
}
|
|
|
|
export type Team_location_historyMaxAggregateOutputType = {
|
|
id: number | null
|
|
member_id: string | null
|
|
location: string | null
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
activity_type: string | null
|
|
timestamp: Date | null
|
|
}
|
|
|
|
export type Team_location_historyCountAggregateOutputType = {
|
|
id: number
|
|
member_id: number
|
|
location: number
|
|
lat: number
|
|
lng: number
|
|
activity_type: number
|
|
timestamp: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Team_location_historyAvgAggregateInputType = {
|
|
id?: true
|
|
lat?: true
|
|
lng?: true
|
|
}
|
|
|
|
export type Team_location_historySumAggregateInputType = {
|
|
id?: true
|
|
lat?: true
|
|
lng?: true
|
|
}
|
|
|
|
export type Team_location_historyMinAggregateInputType = {
|
|
id?: true
|
|
member_id?: true
|
|
location?: true
|
|
lat?: true
|
|
lng?: true
|
|
activity_type?: true
|
|
timestamp?: true
|
|
}
|
|
|
|
export type Team_location_historyMaxAggregateInputType = {
|
|
id?: true
|
|
member_id?: true
|
|
location?: true
|
|
lat?: true
|
|
lng?: true
|
|
activity_type?: true
|
|
timestamp?: true
|
|
}
|
|
|
|
export type Team_location_historyCountAggregateInputType = {
|
|
id?: true
|
|
member_id?: true
|
|
location?: true
|
|
lat?: true
|
|
lng?: true
|
|
activity_type?: true
|
|
timestamp?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Team_location_historyAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which team_location_history to aggregate.
|
|
*/
|
|
where?: team_location_historyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_location_histories to fetch.
|
|
*/
|
|
orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: team_location_historyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_location_histories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_location_histories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned team_location_histories
|
|
**/
|
|
_count?: true | Team_location_historyCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Team_location_historyAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Team_location_historySumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Team_location_historyMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Team_location_historyMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTeam_location_historyAggregateType<T extends Team_location_historyAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeam_location_history]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateTeam_location_history[P]>
|
|
: GetScalarType<T[P], AggregateTeam_location_history[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type team_location_historyGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: team_location_historyWhereInput
|
|
orderBy?: team_location_historyOrderByWithAggregationInput | team_location_historyOrderByWithAggregationInput[]
|
|
by: Team_location_historyScalarFieldEnum[] | Team_location_historyScalarFieldEnum
|
|
having?: team_location_historyScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Team_location_historyCountAggregateInputType | true
|
|
_avg?: Team_location_historyAvgAggregateInputType
|
|
_sum?: Team_location_historySumAggregateInputType
|
|
_min?: Team_location_historyMinAggregateInputType
|
|
_max?: Team_location_historyMaxAggregateInputType
|
|
}
|
|
|
|
export type Team_location_historyGroupByOutputType = {
|
|
id: number
|
|
member_id: string
|
|
location: string
|
|
lat: Decimal | null
|
|
lng: Decimal | null
|
|
activity_type: string | null
|
|
timestamp: Date | null
|
|
_count: Team_location_historyCountAggregateOutputType | null
|
|
_avg: Team_location_historyAvgAggregateOutputType | null
|
|
_sum: Team_location_historySumAggregateOutputType | null
|
|
_min: Team_location_historyMinAggregateOutputType | null
|
|
_max: Team_location_historyMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTeam_location_historyGroupByPayload<T extends team_location_historyGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Team_location_historyGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Team_location_historyGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Team_location_historyGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Team_location_historyGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type team_location_historySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
member_id?: boolean
|
|
location?: boolean
|
|
lat?: boolean
|
|
lng?: boolean
|
|
activity_type?: boolean
|
|
timestamp?: boolean
|
|
team_members?: boolean | team_membersDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["team_location_history"]>
|
|
|
|
|
|
|
|
export type team_location_historySelectScalar = {
|
|
id?: boolean
|
|
member_id?: boolean
|
|
location?: boolean
|
|
lat?: boolean
|
|
lng?: boolean
|
|
activity_type?: boolean
|
|
timestamp?: boolean
|
|
}
|
|
|
|
export type team_location_historyOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "member_id" | "location" | "lat" | "lng" | "activity_type" | "timestamp", ExtArgs["result"]["team_location_history"]>
|
|
export type team_location_historyInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
team_members?: boolean | team_membersDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $team_location_historyPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "team_location_history"
|
|
objects: {
|
|
team_members: Prisma.$team_membersPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: number
|
|
member_id: string
|
|
location: string
|
|
lat: Prisma.Decimal | null
|
|
lng: Prisma.Decimal | null
|
|
activity_type: string | null
|
|
timestamp: Date | null
|
|
}, ExtArgs["result"]["team_location_history"]>
|
|
composites: {}
|
|
}
|
|
|
|
type team_location_historyGetPayload<S extends boolean | null | undefined | team_location_historyDefaultArgs> = $Result.GetResult<Prisma.$team_location_historyPayload, S>
|
|
|
|
type team_location_historyCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<team_location_historyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Team_location_historyCountAggregateInputType | true
|
|
}
|
|
|
|
export interface team_location_historyDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['team_location_history'], meta: { name: 'team_location_history' } }
|
|
/**
|
|
* Find zero or one Team_location_history that matches the filter.
|
|
* @param {team_location_historyFindUniqueArgs} args - Arguments to find a Team_location_history
|
|
* @example
|
|
* // Get one Team_location_history
|
|
* const team_location_history = await prisma.team_location_history.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends team_location_historyFindUniqueArgs>(args: SelectSubset<T, team_location_historyFindUniqueArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Team_location_history that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {team_location_historyFindUniqueOrThrowArgs} args - Arguments to find a Team_location_history
|
|
* @example
|
|
* // Get one Team_location_history
|
|
* const team_location_history = await prisma.team_location_history.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends team_location_historyFindUniqueOrThrowArgs>(args: SelectSubset<T, team_location_historyFindUniqueOrThrowArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Team_location_history that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_location_historyFindFirstArgs} args - Arguments to find a Team_location_history
|
|
* @example
|
|
* // Get one Team_location_history
|
|
* const team_location_history = await prisma.team_location_history.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends team_location_historyFindFirstArgs>(args?: SelectSubset<T, team_location_historyFindFirstArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Team_location_history that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_location_historyFindFirstOrThrowArgs} args - Arguments to find a Team_location_history
|
|
* @example
|
|
* // Get one Team_location_history
|
|
* const team_location_history = await prisma.team_location_history.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends team_location_historyFindFirstOrThrowArgs>(args?: SelectSubset<T, team_location_historyFindFirstOrThrowArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Team_location_histories that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_location_historyFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Team_location_histories
|
|
* const team_location_histories = await prisma.team_location_history.findMany()
|
|
*
|
|
* // Get first 10 Team_location_histories
|
|
* const team_location_histories = await prisma.team_location_history.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const team_location_historyWithIdOnly = await prisma.team_location_history.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends team_location_historyFindManyArgs>(args?: SelectSubset<T, team_location_historyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Team_location_history.
|
|
* @param {team_location_historyCreateArgs} args - Arguments to create a Team_location_history.
|
|
* @example
|
|
* // Create one Team_location_history
|
|
* const Team_location_history = await prisma.team_location_history.create({
|
|
* data: {
|
|
* // ... data to create a Team_location_history
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends team_location_historyCreateArgs>(args: SelectSubset<T, team_location_historyCreateArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Team_location_histories.
|
|
* @param {team_location_historyCreateManyArgs} args - Arguments to create many Team_location_histories.
|
|
* @example
|
|
* // Create many Team_location_histories
|
|
* const team_location_history = await prisma.team_location_history.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends team_location_historyCreateManyArgs>(args?: SelectSubset<T, team_location_historyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Team_location_history.
|
|
* @param {team_location_historyDeleteArgs} args - Arguments to delete one Team_location_history.
|
|
* @example
|
|
* // Delete one Team_location_history
|
|
* const Team_location_history = await prisma.team_location_history.delete({
|
|
* where: {
|
|
* // ... filter to delete one Team_location_history
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends team_location_historyDeleteArgs>(args: SelectSubset<T, team_location_historyDeleteArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Team_location_history.
|
|
* @param {team_location_historyUpdateArgs} args - Arguments to update one Team_location_history.
|
|
* @example
|
|
* // Update one Team_location_history
|
|
* const team_location_history = await prisma.team_location_history.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends team_location_historyUpdateArgs>(args: SelectSubset<T, team_location_historyUpdateArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Team_location_histories.
|
|
* @param {team_location_historyDeleteManyArgs} args - Arguments to filter Team_location_histories to delete.
|
|
* @example
|
|
* // Delete a few Team_location_histories
|
|
* const { count } = await prisma.team_location_history.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends team_location_historyDeleteManyArgs>(args?: SelectSubset<T, team_location_historyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Team_location_histories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_location_historyUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Team_location_histories
|
|
* const team_location_history = await prisma.team_location_history.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends team_location_historyUpdateManyArgs>(args: SelectSubset<T, team_location_historyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Team_location_history.
|
|
* @param {team_location_historyUpsertArgs} args - Arguments to update or create a Team_location_history.
|
|
* @example
|
|
* // Update or create a Team_location_history
|
|
* const team_location_history = await prisma.team_location_history.upsert({
|
|
* create: {
|
|
* // ... data to create a Team_location_history
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Team_location_history we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends team_location_historyUpsertArgs>(args: SelectSubset<T, team_location_historyUpsertArgs<ExtArgs>>): Prisma__team_location_historyClient<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Team_location_histories.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_location_historyCountArgs} args - Arguments to filter Team_location_histories to count.
|
|
* @example
|
|
* // Count the number of Team_location_histories
|
|
* const count = await prisma.team_location_history.count({
|
|
* where: {
|
|
* // ... the filter for the Team_location_histories we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends team_location_historyCountArgs>(
|
|
args?: Subset<T, team_location_historyCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Team_location_historyCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Team_location_history.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Team_location_historyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Team_location_historyAggregateArgs>(args: Subset<T, Team_location_historyAggregateArgs>): Prisma.PrismaPromise<GetTeam_location_historyAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Team_location_history.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_location_historyGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends team_location_historyGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: team_location_historyGroupByArgs['orderBy'] }
|
|
: { orderBy?: team_location_historyGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, team_location_historyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeam_location_historyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the team_location_history model
|
|
*/
|
|
readonly fields: team_location_historyFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for team_location_history.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__team_location_historyClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
team_members<T extends team_membersDefaultArgs<ExtArgs> = {}>(args?: Subset<T, team_membersDefaultArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the team_location_history model
|
|
*/
|
|
interface team_location_historyFieldRefs {
|
|
readonly id: FieldRef<"team_location_history", 'Int'>
|
|
readonly member_id: FieldRef<"team_location_history", 'String'>
|
|
readonly location: FieldRef<"team_location_history", 'String'>
|
|
readonly lat: FieldRef<"team_location_history", 'Decimal'>
|
|
readonly lng: FieldRef<"team_location_history", 'Decimal'>
|
|
readonly activity_type: FieldRef<"team_location_history", 'String'>
|
|
readonly timestamp: FieldRef<"team_location_history", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* team_location_history findUnique
|
|
*/
|
|
export type team_location_historyFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_location_history to fetch.
|
|
*/
|
|
where: team_location_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_location_history findUniqueOrThrow
|
|
*/
|
|
export type team_location_historyFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_location_history to fetch.
|
|
*/
|
|
where: team_location_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_location_history findFirst
|
|
*/
|
|
export type team_location_historyFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_location_history to fetch.
|
|
*/
|
|
where?: team_location_historyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_location_histories to fetch.
|
|
*/
|
|
orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for team_location_histories.
|
|
*/
|
|
cursor?: team_location_historyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_location_histories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_location_histories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of team_location_histories.
|
|
*/
|
|
distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_location_history findFirstOrThrow
|
|
*/
|
|
export type team_location_historyFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_location_history to fetch.
|
|
*/
|
|
where?: team_location_historyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_location_histories to fetch.
|
|
*/
|
|
orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for team_location_histories.
|
|
*/
|
|
cursor?: team_location_historyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_location_histories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_location_histories.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of team_location_histories.
|
|
*/
|
|
distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_location_history findMany
|
|
*/
|
|
export type team_location_historyFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_location_histories to fetch.
|
|
*/
|
|
where?: team_location_historyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_location_histories to fetch.
|
|
*/
|
|
orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing team_location_histories.
|
|
*/
|
|
cursor?: team_location_historyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_location_histories from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_location_histories.
|
|
*/
|
|
skip?: number
|
|
distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_location_history create
|
|
*/
|
|
export type team_location_historyCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a team_location_history.
|
|
*/
|
|
data: XOR<team_location_historyCreateInput, team_location_historyUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* team_location_history createMany
|
|
*/
|
|
export type team_location_historyCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many team_location_histories.
|
|
*/
|
|
data: team_location_historyCreateManyInput | team_location_historyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* team_location_history update
|
|
*/
|
|
export type team_location_historyUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a team_location_history.
|
|
*/
|
|
data: XOR<team_location_historyUpdateInput, team_location_historyUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which team_location_history to update.
|
|
*/
|
|
where: team_location_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_location_history updateMany
|
|
*/
|
|
export type team_location_historyUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update team_location_histories.
|
|
*/
|
|
data: XOR<team_location_historyUpdateManyMutationInput, team_location_historyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which team_location_histories to update
|
|
*/
|
|
where?: team_location_historyWhereInput
|
|
/**
|
|
* Limit how many team_location_histories to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* team_location_history upsert
|
|
*/
|
|
export type team_location_historyUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the team_location_history to update in case it exists.
|
|
*/
|
|
where: team_location_historyWhereUniqueInput
|
|
/**
|
|
* In case the team_location_history found by the `where` argument doesn't exist, create a new team_location_history with this data.
|
|
*/
|
|
create: XOR<team_location_historyCreateInput, team_location_historyUncheckedCreateInput>
|
|
/**
|
|
* In case the team_location_history was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<team_location_historyUpdateInput, team_location_historyUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* team_location_history delete
|
|
*/
|
|
export type team_location_historyDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which team_location_history to delete.
|
|
*/
|
|
where: team_location_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_location_history deleteMany
|
|
*/
|
|
export type team_location_historyDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which team_location_histories to delete
|
|
*/
|
|
where?: team_location_historyWhereInput
|
|
/**
|
|
* Limit how many team_location_histories to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* team_location_history without action
|
|
*/
|
|
export type team_location_historyDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model team_members
|
|
*/
|
|
|
|
export type AggregateTeam_members = {
|
|
_count: Team_membersCountAggregateOutputType | null
|
|
_min: Team_membersMinAggregateOutputType | null
|
|
_max: Team_membersMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Team_membersMinAggregateOutputType = {
|
|
id: string | null
|
|
nama: string | null
|
|
role: string | null
|
|
status: $Enums.team_members_status | null
|
|
phone: string | null
|
|
email: string | null
|
|
current_location: string | null
|
|
last_update: Date | null
|
|
shift_start: Date | null
|
|
shift_end: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Team_membersMaxAggregateOutputType = {
|
|
id: string | null
|
|
nama: string | null
|
|
role: string | null
|
|
status: $Enums.team_members_status | null
|
|
phone: string | null
|
|
email: string | null
|
|
current_location: string | null
|
|
last_update: Date | null
|
|
shift_start: Date | null
|
|
shift_end: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Team_membersCountAggregateOutputType = {
|
|
id: number
|
|
nama: number
|
|
role: number
|
|
status: number
|
|
phone: number
|
|
email: number
|
|
current_location: number
|
|
last_update: number
|
|
shift_start: number
|
|
shift_end: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Team_membersMinAggregateInputType = {
|
|
id?: true
|
|
nama?: true
|
|
role?: true
|
|
status?: true
|
|
phone?: true
|
|
email?: true
|
|
current_location?: true
|
|
last_update?: true
|
|
shift_start?: true
|
|
shift_end?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Team_membersMaxAggregateInputType = {
|
|
id?: true
|
|
nama?: true
|
|
role?: true
|
|
status?: true
|
|
phone?: true
|
|
email?: true
|
|
current_location?: true
|
|
last_update?: true
|
|
shift_start?: true
|
|
shift_end?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Team_membersCountAggregateInputType = {
|
|
id?: true
|
|
nama?: true
|
|
role?: true
|
|
status?: true
|
|
phone?: true
|
|
email?: true
|
|
current_location?: true
|
|
last_update?: true
|
|
shift_start?: true
|
|
shift_end?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Team_membersAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which team_members to aggregate.
|
|
*/
|
|
where?: team_membersWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_members to fetch.
|
|
*/
|
|
orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: team_membersWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_members from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_members.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned team_members
|
|
**/
|
|
_count?: true | Team_membersCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Team_membersMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Team_membersMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTeam_membersAggregateType<T extends Team_membersAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeam_members]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateTeam_members[P]>
|
|
: GetScalarType<T[P], AggregateTeam_members[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type team_membersGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: team_membersWhereInput
|
|
orderBy?: team_membersOrderByWithAggregationInput | team_membersOrderByWithAggregationInput[]
|
|
by: Team_membersScalarFieldEnum[] | Team_membersScalarFieldEnum
|
|
having?: team_membersScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Team_membersCountAggregateInputType | true
|
|
_min?: Team_membersMinAggregateInputType
|
|
_max?: Team_membersMaxAggregateInputType
|
|
}
|
|
|
|
export type Team_membersGroupByOutputType = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status: $Enums.team_members_status | null
|
|
phone: string
|
|
email: string | null
|
|
current_location: string | null
|
|
last_update: Date | null
|
|
shift_start: Date | null
|
|
shift_end: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
_count: Team_membersCountAggregateOutputType | null
|
|
_min: Team_membersMinAggregateOutputType | null
|
|
_max: Team_membersMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTeam_membersGroupByPayload<T extends team_membersGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Team_membersGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Team_membersGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Team_membersGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Team_membersGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type team_membersSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
nama?: boolean
|
|
role?: boolean
|
|
status?: boolean
|
|
phone?: boolean
|
|
email?: boolean
|
|
current_location?: boolean
|
|
last_update?: boolean
|
|
shift_start?: boolean
|
|
shift_end?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
incidents_incidents_reported_byToteam_members?: boolean | team_members$incidents_incidents_reported_byToteam_membersArgs<ExtArgs>
|
|
incidents_incidents_assigned_toToteam_members?: boolean | team_members$incidents_incidents_assigned_toToteam_membersArgs<ExtArgs>
|
|
team_location_history?: boolean | team_members$team_location_historyArgs<ExtArgs>
|
|
_count?: boolean | Team_membersCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["team_members"]>
|
|
|
|
|
|
|
|
export type team_membersSelectScalar = {
|
|
id?: boolean
|
|
nama?: boolean
|
|
role?: boolean
|
|
status?: boolean
|
|
phone?: boolean
|
|
email?: boolean
|
|
current_location?: boolean
|
|
last_update?: boolean
|
|
shift_start?: boolean
|
|
shift_end?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type team_membersOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "nama" | "role" | "status" | "phone" | "email" | "current_location" | "last_update" | "shift_start" | "shift_end" | "created_at" | "updated_at", ExtArgs["result"]["team_members"]>
|
|
export type team_membersInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
incidents_incidents_reported_byToteam_members?: boolean | team_members$incidents_incidents_reported_byToteam_membersArgs<ExtArgs>
|
|
incidents_incidents_assigned_toToteam_members?: boolean | team_members$incidents_incidents_assigned_toToteam_membersArgs<ExtArgs>
|
|
team_location_history?: boolean | team_members$team_location_historyArgs<ExtArgs>
|
|
_count?: boolean | Team_membersCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $team_membersPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "team_members"
|
|
objects: {
|
|
incidents_incidents_reported_byToteam_members: Prisma.$incidentsPayload<ExtArgs>[]
|
|
incidents_incidents_assigned_toToteam_members: Prisma.$incidentsPayload<ExtArgs>[]
|
|
team_location_history: Prisma.$team_location_historyPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status: $Enums.team_members_status | null
|
|
phone: string
|
|
email: string | null
|
|
current_location: string | null
|
|
last_update: Date | null
|
|
shift_start: Date | null
|
|
shift_end: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}, ExtArgs["result"]["team_members"]>
|
|
composites: {}
|
|
}
|
|
|
|
type team_membersGetPayload<S extends boolean | null | undefined | team_membersDefaultArgs> = $Result.GetResult<Prisma.$team_membersPayload, S>
|
|
|
|
type team_membersCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<team_membersFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Team_membersCountAggregateInputType | true
|
|
}
|
|
|
|
export interface team_membersDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['team_members'], meta: { name: 'team_members' } }
|
|
/**
|
|
* Find zero or one Team_members that matches the filter.
|
|
* @param {team_membersFindUniqueArgs} args - Arguments to find a Team_members
|
|
* @example
|
|
* // Get one Team_members
|
|
* const team_members = await prisma.team_members.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends team_membersFindUniqueArgs>(args: SelectSubset<T, team_membersFindUniqueArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Team_members that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {team_membersFindUniqueOrThrowArgs} args - Arguments to find a Team_members
|
|
* @example
|
|
* // Get one Team_members
|
|
* const team_members = await prisma.team_members.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends team_membersFindUniqueOrThrowArgs>(args: SelectSubset<T, team_membersFindUniqueOrThrowArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Team_members that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_membersFindFirstArgs} args - Arguments to find a Team_members
|
|
* @example
|
|
* // Get one Team_members
|
|
* const team_members = await prisma.team_members.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends team_membersFindFirstArgs>(args?: SelectSubset<T, team_membersFindFirstArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Team_members that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_membersFindFirstOrThrowArgs} args - Arguments to find a Team_members
|
|
* @example
|
|
* // Get one Team_members
|
|
* const team_members = await prisma.team_members.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends team_membersFindFirstOrThrowArgs>(args?: SelectSubset<T, team_membersFindFirstOrThrowArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Team_members that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_membersFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Team_members
|
|
* const team_members = await prisma.team_members.findMany()
|
|
*
|
|
* // Get first 10 Team_members
|
|
* const team_members = await prisma.team_members.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const team_membersWithIdOnly = await prisma.team_members.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends team_membersFindManyArgs>(args?: SelectSubset<T, team_membersFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Team_members.
|
|
* @param {team_membersCreateArgs} args - Arguments to create a Team_members.
|
|
* @example
|
|
* // Create one Team_members
|
|
* const Team_members = await prisma.team_members.create({
|
|
* data: {
|
|
* // ... data to create a Team_members
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends team_membersCreateArgs>(args: SelectSubset<T, team_membersCreateArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Team_members.
|
|
* @param {team_membersCreateManyArgs} args - Arguments to create many Team_members.
|
|
* @example
|
|
* // Create many Team_members
|
|
* const team_members = await prisma.team_members.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends team_membersCreateManyArgs>(args?: SelectSubset<T, team_membersCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Team_members.
|
|
* @param {team_membersDeleteArgs} args - Arguments to delete one Team_members.
|
|
* @example
|
|
* // Delete one Team_members
|
|
* const Team_members = await prisma.team_members.delete({
|
|
* where: {
|
|
* // ... filter to delete one Team_members
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends team_membersDeleteArgs>(args: SelectSubset<T, team_membersDeleteArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Team_members.
|
|
* @param {team_membersUpdateArgs} args - Arguments to update one Team_members.
|
|
* @example
|
|
* // Update one Team_members
|
|
* const team_members = await prisma.team_members.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends team_membersUpdateArgs>(args: SelectSubset<T, team_membersUpdateArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Team_members.
|
|
* @param {team_membersDeleteManyArgs} args - Arguments to filter Team_members to delete.
|
|
* @example
|
|
* // Delete a few Team_members
|
|
* const { count } = await prisma.team_members.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends team_membersDeleteManyArgs>(args?: SelectSubset<T, team_membersDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Team_members.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_membersUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Team_members
|
|
* const team_members = await prisma.team_members.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends team_membersUpdateManyArgs>(args: SelectSubset<T, team_membersUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Team_members.
|
|
* @param {team_membersUpsertArgs} args - Arguments to update or create a Team_members.
|
|
* @example
|
|
* // Update or create a Team_members
|
|
* const team_members = await prisma.team_members.upsert({
|
|
* create: {
|
|
* // ... data to create a Team_members
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Team_members we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends team_membersUpsertArgs>(args: SelectSubset<T, team_membersUpsertArgs<ExtArgs>>): Prisma__team_membersClient<$Result.GetResult<Prisma.$team_membersPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Team_members.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_membersCountArgs} args - Arguments to filter Team_members to count.
|
|
* @example
|
|
* // Count the number of Team_members
|
|
* const count = await prisma.team_members.count({
|
|
* where: {
|
|
* // ... the filter for the Team_members we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends team_membersCountArgs>(
|
|
args?: Subset<T, team_membersCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Team_membersCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Team_members.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Team_membersAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Team_membersAggregateArgs>(args: Subset<T, Team_membersAggregateArgs>): Prisma.PrismaPromise<GetTeam_membersAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Team_members.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {team_membersGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends team_membersGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: team_membersGroupByArgs['orderBy'] }
|
|
: { orderBy?: team_membersGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, team_membersGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeam_membersGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the team_members model
|
|
*/
|
|
readonly fields: team_membersFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for team_members.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__team_membersClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
incidents_incidents_reported_byToteam_members<T extends team_members$incidents_incidents_reported_byToteam_membersArgs<ExtArgs> = {}>(args?: Subset<T, team_members$incidents_incidents_reported_byToteam_membersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
incidents_incidents_assigned_toToteam_members<T extends team_members$incidents_incidents_assigned_toToteam_membersArgs<ExtArgs> = {}>(args?: Subset<T, team_members$incidents_incidents_assigned_toToteam_membersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$incidentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
team_location_history<T extends team_members$team_location_historyArgs<ExtArgs> = {}>(args?: Subset<T, team_members$team_location_historyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$team_location_historyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the team_members model
|
|
*/
|
|
interface team_membersFieldRefs {
|
|
readonly id: FieldRef<"team_members", 'String'>
|
|
readonly nama: FieldRef<"team_members", 'String'>
|
|
readonly role: FieldRef<"team_members", 'String'>
|
|
readonly status: FieldRef<"team_members", 'team_members_status'>
|
|
readonly phone: FieldRef<"team_members", 'String'>
|
|
readonly email: FieldRef<"team_members", 'String'>
|
|
readonly current_location: FieldRef<"team_members", 'String'>
|
|
readonly last_update: FieldRef<"team_members", 'DateTime'>
|
|
readonly shift_start: FieldRef<"team_members", 'DateTime'>
|
|
readonly shift_end: FieldRef<"team_members", 'DateTime'>
|
|
readonly created_at: FieldRef<"team_members", 'DateTime'>
|
|
readonly updated_at: FieldRef<"team_members", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* team_members findUnique
|
|
*/
|
|
export type team_membersFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_members to fetch.
|
|
*/
|
|
where: team_membersWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_members findUniqueOrThrow
|
|
*/
|
|
export type team_membersFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_members to fetch.
|
|
*/
|
|
where: team_membersWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_members findFirst
|
|
*/
|
|
export type team_membersFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_members to fetch.
|
|
*/
|
|
where?: team_membersWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_members to fetch.
|
|
*/
|
|
orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for team_members.
|
|
*/
|
|
cursor?: team_membersWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_members from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_members.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of team_members.
|
|
*/
|
|
distinct?: Team_membersScalarFieldEnum | Team_membersScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_members findFirstOrThrow
|
|
*/
|
|
export type team_membersFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_members to fetch.
|
|
*/
|
|
where?: team_membersWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_members to fetch.
|
|
*/
|
|
orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for team_members.
|
|
*/
|
|
cursor?: team_membersWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_members from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_members.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of team_members.
|
|
*/
|
|
distinct?: Team_membersScalarFieldEnum | Team_membersScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_members findMany
|
|
*/
|
|
export type team_membersFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which team_members to fetch.
|
|
*/
|
|
where?: team_membersWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of team_members to fetch.
|
|
*/
|
|
orderBy?: team_membersOrderByWithRelationInput | team_membersOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing team_members.
|
|
*/
|
|
cursor?: team_membersWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` team_members from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` team_members.
|
|
*/
|
|
skip?: number
|
|
distinct?: Team_membersScalarFieldEnum | Team_membersScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_members create
|
|
*/
|
|
export type team_membersCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a team_members.
|
|
*/
|
|
data: XOR<team_membersCreateInput, team_membersUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* team_members createMany
|
|
*/
|
|
export type team_membersCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many team_members.
|
|
*/
|
|
data: team_membersCreateManyInput | team_membersCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* team_members update
|
|
*/
|
|
export type team_membersUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a team_members.
|
|
*/
|
|
data: XOR<team_membersUpdateInput, team_membersUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which team_members to update.
|
|
*/
|
|
where: team_membersWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_members updateMany
|
|
*/
|
|
export type team_membersUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update team_members.
|
|
*/
|
|
data: XOR<team_membersUpdateManyMutationInput, team_membersUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which team_members to update
|
|
*/
|
|
where?: team_membersWhereInput
|
|
/**
|
|
* Limit how many team_members to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* team_members upsert
|
|
*/
|
|
export type team_membersUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the team_members to update in case it exists.
|
|
*/
|
|
where: team_membersWhereUniqueInput
|
|
/**
|
|
* In case the team_members found by the `where` argument doesn't exist, create a new team_members with this data.
|
|
*/
|
|
create: XOR<team_membersCreateInput, team_membersUncheckedCreateInput>
|
|
/**
|
|
* In case the team_members was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<team_membersUpdateInput, team_membersUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* team_members delete
|
|
*/
|
|
export type team_membersDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which team_members to delete.
|
|
*/
|
|
where: team_membersWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* team_members deleteMany
|
|
*/
|
|
export type team_membersDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which team_members to delete
|
|
*/
|
|
where?: team_membersWhereInput
|
|
/**
|
|
* Limit how many team_members to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* team_members.incidents_incidents_reported_byToteam_members
|
|
*/
|
|
export type team_members$incidents_incidents_reported_byToteam_membersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
where?: incidentsWhereInput
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
cursor?: incidentsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_members.incidents_incidents_assigned_toToteam_members
|
|
*/
|
|
export type team_members$incidents_incidents_assigned_toToteam_membersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the incidents
|
|
*/
|
|
select?: incidentsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the incidents
|
|
*/
|
|
omit?: incidentsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: incidentsInclude<ExtArgs> | null
|
|
where?: incidentsWhereInput
|
|
orderBy?: incidentsOrderByWithRelationInput | incidentsOrderByWithRelationInput[]
|
|
cursor?: incidentsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: IncidentsScalarFieldEnum | IncidentsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_members.team_location_history
|
|
*/
|
|
export type team_members$team_location_historyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_location_history
|
|
*/
|
|
select?: team_location_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_location_history
|
|
*/
|
|
omit?: team_location_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_location_historyInclude<ExtArgs> | null
|
|
where?: team_location_historyWhereInput
|
|
orderBy?: team_location_historyOrderByWithRelationInput | team_location_historyOrderByWithRelationInput[]
|
|
cursor?: team_location_historyWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Team_location_historyScalarFieldEnum | Team_location_historyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* team_members without action
|
|
*/
|
|
export type team_membersDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the team_members
|
|
*/
|
|
select?: team_membersSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the team_members
|
|
*/
|
|
omit?: team_membersOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: team_membersInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model visitor_ktp_data
|
|
*/
|
|
|
|
export type AggregateVisitor_ktp_data = {
|
|
_count: Visitor_ktp_dataCountAggregateOutputType | null
|
|
_avg: Visitor_ktp_dataAvgAggregateOutputType | null
|
|
_sum: Visitor_ktp_dataSumAggregateOutputType | null
|
|
_min: Visitor_ktp_dataMinAggregateOutputType | null
|
|
_max: Visitor_ktp_dataMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Visitor_ktp_dataAvgAggregateOutputType = {
|
|
validation_confidence: Decimal | null
|
|
}
|
|
|
|
export type Visitor_ktp_dataSumAggregateOutputType = {
|
|
validation_confidence: Decimal | null
|
|
}
|
|
|
|
export type Visitor_ktp_dataMinAggregateOutputType = {
|
|
id: string | null
|
|
visitor_registration_id: string | null
|
|
ktp_number: string | null
|
|
full_name: string | null
|
|
birth_date: Date | null
|
|
birth_place: string | null
|
|
gender: $Enums.visitor_ktp_data_gender | null
|
|
address: string | null
|
|
rt_rw: string | null
|
|
kelurahan: string | null
|
|
kecamatan: string | null
|
|
religion: string | null
|
|
marital_status: string | null
|
|
occupation: string | null
|
|
nationality: string | null
|
|
ktp_photo_url: string | null
|
|
ktp_photo_hash: string | null
|
|
validation_status: $Enums.visitor_ktp_data_validation_status | null
|
|
validation_confidence: Decimal | null
|
|
validation_notes: string | null
|
|
validated_by: string | null
|
|
validated_at: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Visitor_ktp_dataMaxAggregateOutputType = {
|
|
id: string | null
|
|
visitor_registration_id: string | null
|
|
ktp_number: string | null
|
|
full_name: string | null
|
|
birth_date: Date | null
|
|
birth_place: string | null
|
|
gender: $Enums.visitor_ktp_data_gender | null
|
|
address: string | null
|
|
rt_rw: string | null
|
|
kelurahan: string | null
|
|
kecamatan: string | null
|
|
religion: string | null
|
|
marital_status: string | null
|
|
occupation: string | null
|
|
nationality: string | null
|
|
ktp_photo_url: string | null
|
|
ktp_photo_hash: string | null
|
|
validation_status: $Enums.visitor_ktp_data_validation_status | null
|
|
validation_confidence: Decimal | null
|
|
validation_notes: string | null
|
|
validated_by: string | null
|
|
validated_at: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
}
|
|
|
|
export type Visitor_ktp_dataCountAggregateOutputType = {
|
|
id: number
|
|
visitor_registration_id: number
|
|
ktp_number: number
|
|
full_name: number
|
|
birth_date: number
|
|
birth_place: number
|
|
gender: number
|
|
address: number
|
|
rt_rw: number
|
|
kelurahan: number
|
|
kecamatan: number
|
|
religion: number
|
|
marital_status: number
|
|
occupation: number
|
|
nationality: number
|
|
ktp_photo_url: number
|
|
ktp_photo_hash: number
|
|
validation_status: number
|
|
validation_confidence: number
|
|
validation_notes: number
|
|
validated_by: number
|
|
validated_at: number
|
|
ocr_raw_data: number
|
|
manual_corrections: number
|
|
created_at: number
|
|
updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Visitor_ktp_dataAvgAggregateInputType = {
|
|
validation_confidence?: true
|
|
}
|
|
|
|
export type Visitor_ktp_dataSumAggregateInputType = {
|
|
validation_confidence?: true
|
|
}
|
|
|
|
export type Visitor_ktp_dataMinAggregateInputType = {
|
|
id?: true
|
|
visitor_registration_id?: true
|
|
ktp_number?: true
|
|
full_name?: true
|
|
birth_date?: true
|
|
birth_place?: true
|
|
gender?: true
|
|
address?: true
|
|
rt_rw?: true
|
|
kelurahan?: true
|
|
kecamatan?: true
|
|
religion?: true
|
|
marital_status?: true
|
|
occupation?: true
|
|
nationality?: true
|
|
ktp_photo_url?: true
|
|
ktp_photo_hash?: true
|
|
validation_status?: true
|
|
validation_confidence?: true
|
|
validation_notes?: true
|
|
validated_by?: true
|
|
validated_at?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Visitor_ktp_dataMaxAggregateInputType = {
|
|
id?: true
|
|
visitor_registration_id?: true
|
|
ktp_number?: true
|
|
full_name?: true
|
|
birth_date?: true
|
|
birth_place?: true
|
|
gender?: true
|
|
address?: true
|
|
rt_rw?: true
|
|
kelurahan?: true
|
|
kecamatan?: true
|
|
religion?: true
|
|
marital_status?: true
|
|
occupation?: true
|
|
nationality?: true
|
|
ktp_photo_url?: true
|
|
ktp_photo_hash?: true
|
|
validation_status?: true
|
|
validation_confidence?: true
|
|
validation_notes?: true
|
|
validated_by?: true
|
|
validated_at?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Visitor_ktp_dataCountAggregateInputType = {
|
|
id?: true
|
|
visitor_registration_id?: true
|
|
ktp_number?: true
|
|
full_name?: true
|
|
birth_date?: true
|
|
birth_place?: true
|
|
gender?: true
|
|
address?: true
|
|
rt_rw?: true
|
|
kelurahan?: true
|
|
kecamatan?: true
|
|
religion?: true
|
|
marital_status?: true
|
|
occupation?: true
|
|
nationality?: true
|
|
ktp_photo_url?: true
|
|
ktp_photo_hash?: true
|
|
validation_status?: true
|
|
validation_confidence?: true
|
|
validation_notes?: true
|
|
validated_by?: true
|
|
validated_at?: true
|
|
ocr_raw_data?: true
|
|
manual_corrections?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Visitor_ktp_dataAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which visitor_ktp_data to aggregate.
|
|
*/
|
|
where?: visitor_ktp_dataWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_ktp_data to fetch.
|
|
*/
|
|
orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: visitor_ktp_dataWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_ktp_data from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_ktp_data.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned visitor_ktp_data
|
|
**/
|
|
_count?: true | Visitor_ktp_dataCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Visitor_ktp_dataAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Visitor_ktp_dataSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Visitor_ktp_dataMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Visitor_ktp_dataMaxAggregateInputType
|
|
}
|
|
|
|
export type GetVisitor_ktp_dataAggregateType<T extends Visitor_ktp_dataAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateVisitor_ktp_data]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateVisitor_ktp_data[P]>
|
|
: GetScalarType<T[P], AggregateVisitor_ktp_data[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type visitor_ktp_dataGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: visitor_ktp_dataWhereInput
|
|
orderBy?: visitor_ktp_dataOrderByWithAggregationInput | visitor_ktp_dataOrderByWithAggregationInput[]
|
|
by: Visitor_ktp_dataScalarFieldEnum[] | Visitor_ktp_dataScalarFieldEnum
|
|
having?: visitor_ktp_dataScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Visitor_ktp_dataCountAggregateInputType | true
|
|
_avg?: Visitor_ktp_dataAvgAggregateInputType
|
|
_sum?: Visitor_ktp_dataSumAggregateInputType
|
|
_min?: Visitor_ktp_dataMinAggregateInputType
|
|
_max?: Visitor_ktp_dataMaxAggregateInputType
|
|
}
|
|
|
|
export type Visitor_ktp_dataGroupByOutputType = {
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number: string | null
|
|
full_name: string | null
|
|
birth_date: Date | null
|
|
birth_place: string | null
|
|
gender: $Enums.visitor_ktp_data_gender | null
|
|
address: string | null
|
|
rt_rw: string | null
|
|
kelurahan: string | null
|
|
kecamatan: string | null
|
|
religion: string | null
|
|
marital_status: string | null
|
|
occupation: string | null
|
|
nationality: string | null
|
|
ktp_photo_url: string | null
|
|
ktp_photo_hash: string | null
|
|
validation_status: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence: Decimal | null
|
|
validation_notes: string | null
|
|
validated_by: string | null
|
|
validated_at: Date | null
|
|
ocr_raw_data: JsonValue | null
|
|
manual_corrections: JsonValue | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
_count: Visitor_ktp_dataCountAggregateOutputType | null
|
|
_avg: Visitor_ktp_dataAvgAggregateOutputType | null
|
|
_sum: Visitor_ktp_dataSumAggregateOutputType | null
|
|
_min: Visitor_ktp_dataMinAggregateOutputType | null
|
|
_max: Visitor_ktp_dataMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetVisitor_ktp_dataGroupByPayload<T extends visitor_ktp_dataGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Visitor_ktp_dataGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Visitor_ktp_dataGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Visitor_ktp_dataGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Visitor_ktp_dataGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type visitor_ktp_dataSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
visitor_registration_id?: boolean
|
|
ktp_number?: boolean
|
|
full_name?: boolean
|
|
birth_date?: boolean
|
|
birth_place?: boolean
|
|
gender?: boolean
|
|
address?: boolean
|
|
rt_rw?: boolean
|
|
kelurahan?: boolean
|
|
kecamatan?: boolean
|
|
religion?: boolean
|
|
marital_status?: boolean
|
|
occupation?: boolean
|
|
nationality?: boolean
|
|
ktp_photo_url?: boolean
|
|
ktp_photo_hash?: boolean
|
|
validation_status?: boolean
|
|
validation_confidence?: boolean
|
|
validation_notes?: boolean
|
|
validated_by?: boolean
|
|
validated_at?: boolean
|
|
ocr_raw_data?: boolean
|
|
manual_corrections?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
ktp_validation_audit?: boolean | visitor_ktp_data$ktp_validation_auditArgs<ExtArgs>
|
|
_count?: boolean | Visitor_ktp_dataCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["visitor_ktp_data"]>
|
|
|
|
|
|
|
|
export type visitor_ktp_dataSelectScalar = {
|
|
id?: boolean
|
|
visitor_registration_id?: boolean
|
|
ktp_number?: boolean
|
|
full_name?: boolean
|
|
birth_date?: boolean
|
|
birth_place?: boolean
|
|
gender?: boolean
|
|
address?: boolean
|
|
rt_rw?: boolean
|
|
kelurahan?: boolean
|
|
kecamatan?: boolean
|
|
religion?: boolean
|
|
marital_status?: boolean
|
|
occupation?: boolean
|
|
nationality?: boolean
|
|
ktp_photo_url?: boolean
|
|
ktp_photo_hash?: boolean
|
|
validation_status?: boolean
|
|
validation_confidence?: boolean
|
|
validation_notes?: boolean
|
|
validated_by?: boolean
|
|
validated_at?: boolean
|
|
ocr_raw_data?: boolean
|
|
manual_corrections?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
}
|
|
|
|
export type visitor_ktp_dataOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "visitor_registration_id" | "ktp_number" | "full_name" | "birth_date" | "birth_place" | "gender" | "address" | "rt_rw" | "kelurahan" | "kecamatan" | "religion" | "marital_status" | "occupation" | "nationality" | "ktp_photo_url" | "ktp_photo_hash" | "validation_status" | "validation_confidence" | "validation_notes" | "validated_by" | "validated_at" | "ocr_raw_data" | "manual_corrections" | "created_at" | "updated_at", ExtArgs["result"]["visitor_ktp_data"]>
|
|
export type visitor_ktp_dataInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
ktp_validation_audit?: boolean | visitor_ktp_data$ktp_validation_auditArgs<ExtArgs>
|
|
_count?: boolean | Visitor_ktp_dataCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $visitor_ktp_dataPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "visitor_ktp_data"
|
|
objects: {
|
|
ktp_validation_audit: Prisma.$ktp_validation_auditPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number: string | null
|
|
full_name: string | null
|
|
birth_date: Date | null
|
|
birth_place: string | null
|
|
gender: $Enums.visitor_ktp_data_gender | null
|
|
address: string | null
|
|
rt_rw: string | null
|
|
kelurahan: string | null
|
|
kecamatan: string | null
|
|
religion: string | null
|
|
marital_status: string | null
|
|
occupation: string | null
|
|
nationality: string | null
|
|
ktp_photo_url: string | null
|
|
ktp_photo_hash: string | null
|
|
validation_status: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence: Prisma.Decimal | null
|
|
validation_notes: string | null
|
|
validated_by: string | null
|
|
validated_at: Date | null
|
|
ocr_raw_data: Prisma.JsonValue | null
|
|
manual_corrections: Prisma.JsonValue | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
}, ExtArgs["result"]["visitor_ktp_data"]>
|
|
composites: {}
|
|
}
|
|
|
|
type visitor_ktp_dataGetPayload<S extends boolean | null | undefined | visitor_ktp_dataDefaultArgs> = $Result.GetResult<Prisma.$visitor_ktp_dataPayload, S>
|
|
|
|
type visitor_ktp_dataCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<visitor_ktp_dataFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Visitor_ktp_dataCountAggregateInputType | true
|
|
}
|
|
|
|
export interface visitor_ktp_dataDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['visitor_ktp_data'], meta: { name: 'visitor_ktp_data' } }
|
|
/**
|
|
* Find zero or one Visitor_ktp_data that matches the filter.
|
|
* @param {visitor_ktp_dataFindUniqueArgs} args - Arguments to find a Visitor_ktp_data
|
|
* @example
|
|
* // Get one Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends visitor_ktp_dataFindUniqueArgs>(args: SelectSubset<T, visitor_ktp_dataFindUniqueArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Visitor_ktp_data that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {visitor_ktp_dataFindUniqueOrThrowArgs} args - Arguments to find a Visitor_ktp_data
|
|
* @example
|
|
* // Get one Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends visitor_ktp_dataFindUniqueOrThrowArgs>(args: SelectSubset<T, visitor_ktp_dataFindUniqueOrThrowArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Visitor_ktp_data that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_ktp_dataFindFirstArgs} args - Arguments to find a Visitor_ktp_data
|
|
* @example
|
|
* // Get one Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends visitor_ktp_dataFindFirstArgs>(args?: SelectSubset<T, visitor_ktp_dataFindFirstArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Visitor_ktp_data that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_ktp_dataFindFirstOrThrowArgs} args - Arguments to find a Visitor_ktp_data
|
|
* @example
|
|
* // Get one Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends visitor_ktp_dataFindFirstOrThrowArgs>(args?: SelectSubset<T, visitor_ktp_dataFindFirstOrThrowArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Visitor_ktp_data that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_ktp_dataFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findMany()
|
|
*
|
|
* // Get first 10 Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const visitor_ktp_dataWithIdOnly = await prisma.visitor_ktp_data.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends visitor_ktp_dataFindManyArgs>(args?: SelectSubset<T, visitor_ktp_dataFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Visitor_ktp_data.
|
|
* @param {visitor_ktp_dataCreateArgs} args - Arguments to create a Visitor_ktp_data.
|
|
* @example
|
|
* // Create one Visitor_ktp_data
|
|
* const Visitor_ktp_data = await prisma.visitor_ktp_data.create({
|
|
* data: {
|
|
* // ... data to create a Visitor_ktp_data
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends visitor_ktp_dataCreateArgs>(args: SelectSubset<T, visitor_ktp_dataCreateArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Visitor_ktp_data.
|
|
* @param {visitor_ktp_dataCreateManyArgs} args - Arguments to create many Visitor_ktp_data.
|
|
* @example
|
|
* // Create many Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends visitor_ktp_dataCreateManyArgs>(args?: SelectSubset<T, visitor_ktp_dataCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Visitor_ktp_data.
|
|
* @param {visitor_ktp_dataDeleteArgs} args - Arguments to delete one Visitor_ktp_data.
|
|
* @example
|
|
* // Delete one Visitor_ktp_data
|
|
* const Visitor_ktp_data = await prisma.visitor_ktp_data.delete({
|
|
* where: {
|
|
* // ... filter to delete one Visitor_ktp_data
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends visitor_ktp_dataDeleteArgs>(args: SelectSubset<T, visitor_ktp_dataDeleteArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Visitor_ktp_data.
|
|
* @param {visitor_ktp_dataUpdateArgs} args - Arguments to update one Visitor_ktp_data.
|
|
* @example
|
|
* // Update one Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends visitor_ktp_dataUpdateArgs>(args: SelectSubset<T, visitor_ktp_dataUpdateArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Visitor_ktp_data.
|
|
* @param {visitor_ktp_dataDeleteManyArgs} args - Arguments to filter Visitor_ktp_data to delete.
|
|
* @example
|
|
* // Delete a few Visitor_ktp_data
|
|
* const { count } = await prisma.visitor_ktp_data.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends visitor_ktp_dataDeleteManyArgs>(args?: SelectSubset<T, visitor_ktp_dataDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Visitor_ktp_data.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_ktp_dataUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends visitor_ktp_dataUpdateManyArgs>(args: SelectSubset<T, visitor_ktp_dataUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Visitor_ktp_data.
|
|
* @param {visitor_ktp_dataUpsertArgs} args - Arguments to update or create a Visitor_ktp_data.
|
|
* @example
|
|
* // Update or create a Visitor_ktp_data
|
|
* const visitor_ktp_data = await prisma.visitor_ktp_data.upsert({
|
|
* create: {
|
|
* // ... data to create a Visitor_ktp_data
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Visitor_ktp_data we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends visitor_ktp_dataUpsertArgs>(args: SelectSubset<T, visitor_ktp_dataUpsertArgs<ExtArgs>>): Prisma__visitor_ktp_dataClient<$Result.GetResult<Prisma.$visitor_ktp_dataPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Visitor_ktp_data.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_ktp_dataCountArgs} args - Arguments to filter Visitor_ktp_data to count.
|
|
* @example
|
|
* // Count the number of Visitor_ktp_data
|
|
* const count = await prisma.visitor_ktp_data.count({
|
|
* where: {
|
|
* // ... the filter for the Visitor_ktp_data we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends visitor_ktp_dataCountArgs>(
|
|
args?: Subset<T, visitor_ktp_dataCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Visitor_ktp_dataCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Visitor_ktp_data.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Visitor_ktp_dataAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Visitor_ktp_dataAggregateArgs>(args: Subset<T, Visitor_ktp_dataAggregateArgs>): Prisma.PrismaPromise<GetVisitor_ktp_dataAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Visitor_ktp_data.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_ktp_dataGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends visitor_ktp_dataGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: visitor_ktp_dataGroupByArgs['orderBy'] }
|
|
: { orderBy?: visitor_ktp_dataGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, visitor_ktp_dataGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVisitor_ktp_dataGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the visitor_ktp_data model
|
|
*/
|
|
readonly fields: visitor_ktp_dataFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for visitor_ktp_data.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__visitor_ktp_dataClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
ktp_validation_audit<T extends visitor_ktp_data$ktp_validation_auditArgs<ExtArgs> = {}>(args?: Subset<T, visitor_ktp_data$ktp_validation_auditArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ktp_validation_auditPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the visitor_ktp_data model
|
|
*/
|
|
interface visitor_ktp_dataFieldRefs {
|
|
readonly id: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly visitor_registration_id: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly ktp_number: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly full_name: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly birth_date: FieldRef<"visitor_ktp_data", 'DateTime'>
|
|
readonly birth_place: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly gender: FieldRef<"visitor_ktp_data", 'visitor_ktp_data_gender'>
|
|
readonly address: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly rt_rw: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly kelurahan: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly kecamatan: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly religion: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly marital_status: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly occupation: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly nationality: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly ktp_photo_url: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly ktp_photo_hash: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly validation_status: FieldRef<"visitor_ktp_data", 'visitor_ktp_data_validation_status'>
|
|
readonly validation_confidence: FieldRef<"visitor_ktp_data", 'Decimal'>
|
|
readonly validation_notes: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly validated_by: FieldRef<"visitor_ktp_data", 'String'>
|
|
readonly validated_at: FieldRef<"visitor_ktp_data", 'DateTime'>
|
|
readonly ocr_raw_data: FieldRef<"visitor_ktp_data", 'Json'>
|
|
readonly manual_corrections: FieldRef<"visitor_ktp_data", 'Json'>
|
|
readonly created_at: FieldRef<"visitor_ktp_data", 'DateTime'>
|
|
readonly updated_at: FieldRef<"visitor_ktp_data", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* visitor_ktp_data findUnique
|
|
*/
|
|
export type visitor_ktp_dataFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_ktp_data to fetch.
|
|
*/
|
|
where: visitor_ktp_dataWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data findUniqueOrThrow
|
|
*/
|
|
export type visitor_ktp_dataFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_ktp_data to fetch.
|
|
*/
|
|
where: visitor_ktp_dataWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data findFirst
|
|
*/
|
|
export type visitor_ktp_dataFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_ktp_data to fetch.
|
|
*/
|
|
where?: visitor_ktp_dataWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_ktp_data to fetch.
|
|
*/
|
|
orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for visitor_ktp_data.
|
|
*/
|
|
cursor?: visitor_ktp_dataWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_ktp_data from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_ktp_data.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of visitor_ktp_data.
|
|
*/
|
|
distinct?: Visitor_ktp_dataScalarFieldEnum | Visitor_ktp_dataScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data findFirstOrThrow
|
|
*/
|
|
export type visitor_ktp_dataFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_ktp_data to fetch.
|
|
*/
|
|
where?: visitor_ktp_dataWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_ktp_data to fetch.
|
|
*/
|
|
orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for visitor_ktp_data.
|
|
*/
|
|
cursor?: visitor_ktp_dataWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_ktp_data from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_ktp_data.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of visitor_ktp_data.
|
|
*/
|
|
distinct?: Visitor_ktp_dataScalarFieldEnum | Visitor_ktp_dataScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data findMany
|
|
*/
|
|
export type visitor_ktp_dataFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_ktp_data to fetch.
|
|
*/
|
|
where?: visitor_ktp_dataWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_ktp_data to fetch.
|
|
*/
|
|
orderBy?: visitor_ktp_dataOrderByWithRelationInput | visitor_ktp_dataOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing visitor_ktp_data.
|
|
*/
|
|
cursor?: visitor_ktp_dataWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_ktp_data from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_ktp_data.
|
|
*/
|
|
skip?: number
|
|
distinct?: Visitor_ktp_dataScalarFieldEnum | Visitor_ktp_dataScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data create
|
|
*/
|
|
export type visitor_ktp_dataCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a visitor_ktp_data.
|
|
*/
|
|
data: XOR<visitor_ktp_dataCreateInput, visitor_ktp_dataUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data createMany
|
|
*/
|
|
export type visitor_ktp_dataCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many visitor_ktp_data.
|
|
*/
|
|
data: visitor_ktp_dataCreateManyInput | visitor_ktp_dataCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data update
|
|
*/
|
|
export type visitor_ktp_dataUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a visitor_ktp_data.
|
|
*/
|
|
data: XOR<visitor_ktp_dataUpdateInput, visitor_ktp_dataUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which visitor_ktp_data to update.
|
|
*/
|
|
where: visitor_ktp_dataWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data updateMany
|
|
*/
|
|
export type visitor_ktp_dataUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update visitor_ktp_data.
|
|
*/
|
|
data: XOR<visitor_ktp_dataUpdateManyMutationInput, visitor_ktp_dataUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which visitor_ktp_data to update
|
|
*/
|
|
where?: visitor_ktp_dataWhereInput
|
|
/**
|
|
* Limit how many visitor_ktp_data to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data upsert
|
|
*/
|
|
export type visitor_ktp_dataUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the visitor_ktp_data to update in case it exists.
|
|
*/
|
|
where: visitor_ktp_dataWhereUniqueInput
|
|
/**
|
|
* In case the visitor_ktp_data found by the `where` argument doesn't exist, create a new visitor_ktp_data with this data.
|
|
*/
|
|
create: XOR<visitor_ktp_dataCreateInput, visitor_ktp_dataUncheckedCreateInput>
|
|
/**
|
|
* In case the visitor_ktp_data was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<visitor_ktp_dataUpdateInput, visitor_ktp_dataUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data delete
|
|
*/
|
|
export type visitor_ktp_dataDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which visitor_ktp_data to delete.
|
|
*/
|
|
where: visitor_ktp_dataWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data deleteMany
|
|
*/
|
|
export type visitor_ktp_dataDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which visitor_ktp_data to delete
|
|
*/
|
|
where?: visitor_ktp_dataWhereInput
|
|
/**
|
|
* Limit how many visitor_ktp_data to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data.ktp_validation_audit
|
|
*/
|
|
export type visitor_ktp_data$ktp_validation_auditArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ktp_validation_audit
|
|
*/
|
|
select?: ktp_validation_auditSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ktp_validation_audit
|
|
*/
|
|
omit?: ktp_validation_auditOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ktp_validation_auditInclude<ExtArgs> | null
|
|
where?: ktp_validation_auditWhereInput
|
|
orderBy?: ktp_validation_auditOrderByWithRelationInput | ktp_validation_auditOrderByWithRelationInput[]
|
|
cursor?: ktp_validation_auditWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Ktp_validation_auditScalarFieldEnum | Ktp_validation_auditScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_ktp_data without action
|
|
*/
|
|
export type visitor_ktp_dataDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_ktp_data
|
|
*/
|
|
select?: visitor_ktp_dataSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_ktp_data
|
|
*/
|
|
omit?: visitor_ktp_dataOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_ktp_dataInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model visitor_registrations
|
|
*/
|
|
|
|
export type AggregateVisitor_registrations = {
|
|
_count: Visitor_registrationsCountAggregateOutputType | null
|
|
_avg: Visitor_registrationsAvgAggregateOutputType | null
|
|
_sum: Visitor_registrationsSumAggregateOutputType | null
|
|
_min: Visitor_registrationsMinAggregateOutputType | null
|
|
_max: Visitor_registrationsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Visitor_registrationsAvgAggregateOutputType = {
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
}
|
|
|
|
export type Visitor_registrationsSumAggregateOutputType = {
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
}
|
|
|
|
export type Visitor_registrationsMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
phone: string | null
|
|
photo_url: string | null
|
|
purpose: string | null
|
|
entry_point: string | null
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
qr_code_id: string | null
|
|
status: $Enums.visitor_registrations_status | null
|
|
approved_by: string | null
|
|
approved_at: Date | null
|
|
rejected_by: string | null
|
|
rejected_at: Date | null
|
|
rejection_reason: string | null
|
|
expires_at: Date | null
|
|
checked_in_at: Date | null
|
|
checked_out_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
location_address: string | null
|
|
location_updated_at: Date | null
|
|
}
|
|
|
|
export type Visitor_registrationsMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
phone: string | null
|
|
photo_url: string | null
|
|
purpose: string | null
|
|
entry_point: string | null
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
qr_code_id: string | null
|
|
status: $Enums.visitor_registrations_status | null
|
|
approved_by: string | null
|
|
approved_at: Date | null
|
|
rejected_by: string | null
|
|
rejected_at: Date | null
|
|
rejection_reason: string | null
|
|
expires_at: Date | null
|
|
checked_in_at: Date | null
|
|
checked_out_at: Date | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
location_address: string | null
|
|
location_updated_at: Date | null
|
|
}
|
|
|
|
export type Visitor_registrationsCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
phone: number
|
|
photo_url: number
|
|
purpose: number
|
|
entry_point: number
|
|
location_lat: number
|
|
location_lng: number
|
|
qr_code_id: number
|
|
status: number
|
|
approved_by: number
|
|
approved_at: number
|
|
rejected_by: number
|
|
rejected_at: number
|
|
rejection_reason: number
|
|
expires_at: number
|
|
checked_in_at: number
|
|
checked_out_at: number
|
|
metadata: number
|
|
created_by: number
|
|
updated_by: number
|
|
created_at: number
|
|
updated_at: number
|
|
location_address: number
|
|
location_updated_at: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Visitor_registrationsAvgAggregateInputType = {
|
|
location_lat?: true
|
|
location_lng?: true
|
|
}
|
|
|
|
export type Visitor_registrationsSumAggregateInputType = {
|
|
location_lat?: true
|
|
location_lng?: true
|
|
}
|
|
|
|
export type Visitor_registrationsMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
phone?: true
|
|
photo_url?: true
|
|
purpose?: true
|
|
entry_point?: true
|
|
location_lat?: true
|
|
location_lng?: true
|
|
qr_code_id?: true
|
|
status?: true
|
|
approved_by?: true
|
|
approved_at?: true
|
|
rejected_by?: true
|
|
rejected_at?: true
|
|
rejection_reason?: true
|
|
expires_at?: true
|
|
checked_in_at?: true
|
|
checked_out_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
location_address?: true
|
|
location_updated_at?: true
|
|
}
|
|
|
|
export type Visitor_registrationsMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
phone?: true
|
|
photo_url?: true
|
|
purpose?: true
|
|
entry_point?: true
|
|
location_lat?: true
|
|
location_lng?: true
|
|
qr_code_id?: true
|
|
status?: true
|
|
approved_by?: true
|
|
approved_at?: true
|
|
rejected_by?: true
|
|
rejected_at?: true
|
|
rejection_reason?: true
|
|
expires_at?: true
|
|
checked_in_at?: true
|
|
checked_out_at?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
location_address?: true
|
|
location_updated_at?: true
|
|
}
|
|
|
|
export type Visitor_registrationsCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
phone?: true
|
|
photo_url?: true
|
|
purpose?: true
|
|
entry_point?: true
|
|
location_lat?: true
|
|
location_lng?: true
|
|
qr_code_id?: true
|
|
status?: true
|
|
approved_by?: true
|
|
approved_at?: true
|
|
rejected_by?: true
|
|
rejected_at?: true
|
|
rejection_reason?: true
|
|
expires_at?: true
|
|
checked_in_at?: true
|
|
checked_out_at?: true
|
|
metadata?: true
|
|
created_by?: true
|
|
updated_by?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
location_address?: true
|
|
location_updated_at?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Visitor_registrationsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which visitor_registrations to aggregate.
|
|
*/
|
|
where?: visitor_registrationsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_registrations to fetch.
|
|
*/
|
|
orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: visitor_registrationsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_registrations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_registrations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned visitor_registrations
|
|
**/
|
|
_count?: true | Visitor_registrationsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Visitor_registrationsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Visitor_registrationsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Visitor_registrationsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Visitor_registrationsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetVisitor_registrationsAggregateType<T extends Visitor_registrationsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateVisitor_registrations]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateVisitor_registrations[P]>
|
|
: GetScalarType<T[P], AggregateVisitor_registrations[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type visitor_registrationsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: visitor_registrationsWhereInput
|
|
orderBy?: visitor_registrationsOrderByWithAggregationInput | visitor_registrationsOrderByWithAggregationInput[]
|
|
by: Visitor_registrationsScalarFieldEnum[] | Visitor_registrationsScalarFieldEnum
|
|
having?: visitor_registrationsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Visitor_registrationsCountAggregateInputType | true
|
|
_avg?: Visitor_registrationsAvgAggregateInputType
|
|
_sum?: Visitor_registrationsSumAggregateInputType
|
|
_min?: Visitor_registrationsMinAggregateInputType
|
|
_max?: Visitor_registrationsMaxAggregateInputType
|
|
}
|
|
|
|
export type Visitor_registrationsGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
phone: string
|
|
photo_url: string | null
|
|
purpose: string | null
|
|
entry_point: string
|
|
location_lat: Decimal | null
|
|
location_lng: Decimal | null
|
|
qr_code_id: string | null
|
|
status: $Enums.visitor_registrations_status
|
|
approved_by: string | null
|
|
approved_at: Date | null
|
|
rejected_by: string | null
|
|
rejected_at: Date | null
|
|
rejection_reason: string | null
|
|
expires_at: Date | null
|
|
checked_in_at: Date | null
|
|
checked_out_at: Date | null
|
|
metadata: JsonValue | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
location_address: string | null
|
|
location_updated_at: Date | null
|
|
_count: Visitor_registrationsCountAggregateOutputType | null
|
|
_avg: Visitor_registrationsAvgAggregateOutputType | null
|
|
_sum: Visitor_registrationsSumAggregateOutputType | null
|
|
_min: Visitor_registrationsMinAggregateOutputType | null
|
|
_max: Visitor_registrationsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetVisitor_registrationsGroupByPayload<T extends visitor_registrationsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<Visitor_registrationsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Visitor_registrationsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], Visitor_registrationsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], Visitor_registrationsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type visitor_registrationsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
phone?: boolean
|
|
photo_url?: boolean
|
|
purpose?: boolean
|
|
entry_point?: boolean
|
|
location_lat?: boolean
|
|
location_lng?: boolean
|
|
qr_code_id?: boolean
|
|
status?: boolean
|
|
approved_by?: boolean
|
|
approved_at?: boolean
|
|
rejected_by?: boolean
|
|
rejected_at?: boolean
|
|
rejection_reason?: boolean
|
|
expires_at?: boolean
|
|
checked_in_at?: boolean
|
|
checked_out_at?: boolean
|
|
metadata?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
location_address?: boolean
|
|
location_updated_at?: boolean
|
|
qr_codes?: boolean | visitor_registrations$qr_codesArgs<ExtArgs>
|
|
}, ExtArgs["result"]["visitor_registrations"]>
|
|
|
|
|
|
|
|
export type visitor_registrationsSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
phone?: boolean
|
|
photo_url?: boolean
|
|
purpose?: boolean
|
|
entry_point?: boolean
|
|
location_lat?: boolean
|
|
location_lng?: boolean
|
|
qr_code_id?: boolean
|
|
status?: boolean
|
|
approved_by?: boolean
|
|
approved_at?: boolean
|
|
rejected_by?: boolean
|
|
rejected_at?: boolean
|
|
rejection_reason?: boolean
|
|
expires_at?: boolean
|
|
checked_in_at?: boolean
|
|
checked_out_at?: boolean
|
|
metadata?: boolean
|
|
created_by?: boolean
|
|
updated_by?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
location_address?: boolean
|
|
location_updated_at?: boolean
|
|
}
|
|
|
|
export type visitor_registrationsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "phone" | "photo_url" | "purpose" | "entry_point" | "location_lat" | "location_lng" | "qr_code_id" | "status" | "approved_by" | "approved_at" | "rejected_by" | "rejected_at" | "rejection_reason" | "expires_at" | "checked_in_at" | "checked_out_at" | "metadata" | "created_by" | "updated_by" | "created_at" | "updated_at" | "location_address" | "location_updated_at", ExtArgs["result"]["visitor_registrations"]>
|
|
export type visitor_registrationsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
qr_codes?: boolean | visitor_registrations$qr_codesArgs<ExtArgs>
|
|
}
|
|
|
|
export type $visitor_registrationsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "visitor_registrations"
|
|
objects: {
|
|
qr_codes: Prisma.$qr_codesPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
phone: string
|
|
photo_url: string | null
|
|
purpose: string | null
|
|
entry_point: string
|
|
location_lat: Prisma.Decimal | null
|
|
location_lng: Prisma.Decimal | null
|
|
qr_code_id: string | null
|
|
status: $Enums.visitor_registrations_status
|
|
approved_by: string | null
|
|
approved_at: Date | null
|
|
rejected_by: string | null
|
|
rejected_at: Date | null
|
|
rejection_reason: string | null
|
|
expires_at: Date | null
|
|
checked_in_at: Date | null
|
|
checked_out_at: Date | null
|
|
metadata: Prisma.JsonValue | null
|
|
created_by: string | null
|
|
updated_by: string | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
location_address: string | null
|
|
location_updated_at: Date | null
|
|
}, ExtArgs["result"]["visitor_registrations"]>
|
|
composites: {}
|
|
}
|
|
|
|
type visitor_registrationsGetPayload<S extends boolean | null | undefined | visitor_registrationsDefaultArgs> = $Result.GetResult<Prisma.$visitor_registrationsPayload, S>
|
|
|
|
type visitor_registrationsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<visitor_registrationsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Visitor_registrationsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface visitor_registrationsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['visitor_registrations'], meta: { name: 'visitor_registrations' } }
|
|
/**
|
|
* Find zero or one Visitor_registrations that matches the filter.
|
|
* @param {visitor_registrationsFindUniqueArgs} args - Arguments to find a Visitor_registrations
|
|
* @example
|
|
* // Get one Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends visitor_registrationsFindUniqueArgs>(args: SelectSubset<T, visitor_registrationsFindUniqueArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Visitor_registrations that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {visitor_registrationsFindUniqueOrThrowArgs} args - Arguments to find a Visitor_registrations
|
|
* @example
|
|
* // Get one Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends visitor_registrationsFindUniqueOrThrowArgs>(args: SelectSubset<T, visitor_registrationsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Visitor_registrations that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_registrationsFindFirstArgs} args - Arguments to find a Visitor_registrations
|
|
* @example
|
|
* // Get one Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends visitor_registrationsFindFirstArgs>(args?: SelectSubset<T, visitor_registrationsFindFirstArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Visitor_registrations that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_registrationsFindFirstOrThrowArgs} args - Arguments to find a Visitor_registrations
|
|
* @example
|
|
* // Get one Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends visitor_registrationsFindFirstOrThrowArgs>(args?: SelectSubset<T, visitor_registrationsFindFirstOrThrowArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Visitor_registrations that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_registrationsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findMany()
|
|
*
|
|
* // Get first 10 Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const visitor_registrationsWithIdOnly = await prisma.visitor_registrations.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends visitor_registrationsFindManyArgs>(args?: SelectSubset<T, visitor_registrationsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Visitor_registrations.
|
|
* @param {visitor_registrationsCreateArgs} args - Arguments to create a Visitor_registrations.
|
|
* @example
|
|
* // Create one Visitor_registrations
|
|
* const Visitor_registrations = await prisma.visitor_registrations.create({
|
|
* data: {
|
|
* // ... data to create a Visitor_registrations
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends visitor_registrationsCreateArgs>(args: SelectSubset<T, visitor_registrationsCreateArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Visitor_registrations.
|
|
* @param {visitor_registrationsCreateManyArgs} args - Arguments to create many Visitor_registrations.
|
|
* @example
|
|
* // Create many Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends visitor_registrationsCreateManyArgs>(args?: SelectSubset<T, visitor_registrationsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Delete a Visitor_registrations.
|
|
* @param {visitor_registrationsDeleteArgs} args - Arguments to delete one Visitor_registrations.
|
|
* @example
|
|
* // Delete one Visitor_registrations
|
|
* const Visitor_registrations = await prisma.visitor_registrations.delete({
|
|
* where: {
|
|
* // ... filter to delete one Visitor_registrations
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends visitor_registrationsDeleteArgs>(args: SelectSubset<T, visitor_registrationsDeleteArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Visitor_registrations.
|
|
* @param {visitor_registrationsUpdateArgs} args - Arguments to update one Visitor_registrations.
|
|
* @example
|
|
* // Update one Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends visitor_registrationsUpdateArgs>(args: SelectSubset<T, visitor_registrationsUpdateArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Visitor_registrations.
|
|
* @param {visitor_registrationsDeleteManyArgs} args - Arguments to filter Visitor_registrations to delete.
|
|
* @example
|
|
* // Delete a few Visitor_registrations
|
|
* const { count } = await prisma.visitor_registrations.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends visitor_registrationsDeleteManyArgs>(args?: SelectSubset<T, visitor_registrationsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Visitor_registrations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_registrationsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends visitor_registrationsUpdateManyArgs>(args: SelectSubset<T, visitor_registrationsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Visitor_registrations.
|
|
* @param {visitor_registrationsUpsertArgs} args - Arguments to update or create a Visitor_registrations.
|
|
* @example
|
|
* // Update or create a Visitor_registrations
|
|
* const visitor_registrations = await prisma.visitor_registrations.upsert({
|
|
* create: {
|
|
* // ... data to create a Visitor_registrations
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Visitor_registrations we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends visitor_registrationsUpsertArgs>(args: SelectSubset<T, visitor_registrationsUpsertArgs<ExtArgs>>): Prisma__visitor_registrationsClient<$Result.GetResult<Prisma.$visitor_registrationsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Visitor_registrations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_registrationsCountArgs} args - Arguments to filter Visitor_registrations to count.
|
|
* @example
|
|
* // Count the number of Visitor_registrations
|
|
* const count = await prisma.visitor_registrations.count({
|
|
* where: {
|
|
* // ... the filter for the Visitor_registrations we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends visitor_registrationsCountArgs>(
|
|
args?: Subset<T, visitor_registrationsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], Visitor_registrationsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Visitor_registrations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Visitor_registrationsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Visitor_registrationsAggregateArgs>(args: Subset<T, Visitor_registrationsAggregateArgs>): Prisma.PrismaPromise<GetVisitor_registrationsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Visitor_registrations.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {visitor_registrationsGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends visitor_registrationsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: visitor_registrationsGroupByArgs['orderBy'] }
|
|
: { orderBy?: visitor_registrationsGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, visitor_registrationsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVisitor_registrationsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the visitor_registrations model
|
|
*/
|
|
readonly fields: visitor_registrationsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for visitor_registrations.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__visitor_registrationsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
qr_codes<T extends visitor_registrations$qr_codesArgs<ExtArgs> = {}>(args?: Subset<T, visitor_registrations$qr_codesArgs<ExtArgs>>): Prisma__qr_codesClient<$Result.GetResult<Prisma.$qr_codesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the visitor_registrations model
|
|
*/
|
|
interface visitor_registrationsFieldRefs {
|
|
readonly id: FieldRef<"visitor_registrations", 'String'>
|
|
readonly name: FieldRef<"visitor_registrations", 'String'>
|
|
readonly phone: FieldRef<"visitor_registrations", 'String'>
|
|
readonly photo_url: FieldRef<"visitor_registrations", 'String'>
|
|
readonly purpose: FieldRef<"visitor_registrations", 'String'>
|
|
readonly entry_point: FieldRef<"visitor_registrations", 'String'>
|
|
readonly location_lat: FieldRef<"visitor_registrations", 'Decimal'>
|
|
readonly location_lng: FieldRef<"visitor_registrations", 'Decimal'>
|
|
readonly qr_code_id: FieldRef<"visitor_registrations", 'String'>
|
|
readonly status: FieldRef<"visitor_registrations", 'visitor_registrations_status'>
|
|
readonly approved_by: FieldRef<"visitor_registrations", 'String'>
|
|
readonly approved_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly rejected_by: FieldRef<"visitor_registrations", 'String'>
|
|
readonly rejected_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly rejection_reason: FieldRef<"visitor_registrations", 'String'>
|
|
readonly expires_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly checked_in_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly checked_out_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly metadata: FieldRef<"visitor_registrations", 'Json'>
|
|
readonly created_by: FieldRef<"visitor_registrations", 'String'>
|
|
readonly updated_by: FieldRef<"visitor_registrations", 'String'>
|
|
readonly created_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly updated_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
readonly location_address: FieldRef<"visitor_registrations", 'String'>
|
|
readonly location_updated_at: FieldRef<"visitor_registrations", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* visitor_registrations findUnique
|
|
*/
|
|
export type visitor_registrationsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_registrations to fetch.
|
|
*/
|
|
where: visitor_registrationsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations findUniqueOrThrow
|
|
*/
|
|
export type visitor_registrationsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_registrations to fetch.
|
|
*/
|
|
where: visitor_registrationsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations findFirst
|
|
*/
|
|
export type visitor_registrationsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_registrations to fetch.
|
|
*/
|
|
where?: visitor_registrationsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_registrations to fetch.
|
|
*/
|
|
orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for visitor_registrations.
|
|
*/
|
|
cursor?: visitor_registrationsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_registrations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_registrations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of visitor_registrations.
|
|
*/
|
|
distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations findFirstOrThrow
|
|
*/
|
|
export type visitor_registrationsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_registrations to fetch.
|
|
*/
|
|
where?: visitor_registrationsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_registrations to fetch.
|
|
*/
|
|
orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for visitor_registrations.
|
|
*/
|
|
cursor?: visitor_registrationsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_registrations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_registrations.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of visitor_registrations.
|
|
*/
|
|
distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations findMany
|
|
*/
|
|
export type visitor_registrationsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which visitor_registrations to fetch.
|
|
*/
|
|
where?: visitor_registrationsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of visitor_registrations to fetch.
|
|
*/
|
|
orderBy?: visitor_registrationsOrderByWithRelationInput | visitor_registrationsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing visitor_registrations.
|
|
*/
|
|
cursor?: visitor_registrationsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` visitor_registrations from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` visitor_registrations.
|
|
*/
|
|
skip?: number
|
|
distinct?: Visitor_registrationsScalarFieldEnum | Visitor_registrationsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations create
|
|
*/
|
|
export type visitor_registrationsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a visitor_registrations.
|
|
*/
|
|
data: XOR<visitor_registrationsCreateInput, visitor_registrationsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations createMany
|
|
*/
|
|
export type visitor_registrationsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many visitor_registrations.
|
|
*/
|
|
data: visitor_registrationsCreateManyInput | visitor_registrationsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations update
|
|
*/
|
|
export type visitor_registrationsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a visitor_registrations.
|
|
*/
|
|
data: XOR<visitor_registrationsUpdateInput, visitor_registrationsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which visitor_registrations to update.
|
|
*/
|
|
where: visitor_registrationsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations updateMany
|
|
*/
|
|
export type visitor_registrationsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update visitor_registrations.
|
|
*/
|
|
data: XOR<visitor_registrationsUpdateManyMutationInput, visitor_registrationsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which visitor_registrations to update
|
|
*/
|
|
where?: visitor_registrationsWhereInput
|
|
/**
|
|
* Limit how many visitor_registrations to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations upsert
|
|
*/
|
|
export type visitor_registrationsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the visitor_registrations to update in case it exists.
|
|
*/
|
|
where: visitor_registrationsWhereUniqueInput
|
|
/**
|
|
* In case the visitor_registrations found by the `where` argument doesn't exist, create a new visitor_registrations with this data.
|
|
*/
|
|
create: XOR<visitor_registrationsCreateInput, visitor_registrationsUncheckedCreateInput>
|
|
/**
|
|
* In case the visitor_registrations was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<visitor_registrationsUpdateInput, visitor_registrationsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations delete
|
|
*/
|
|
export type visitor_registrationsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which visitor_registrations to delete.
|
|
*/
|
|
where: visitor_registrationsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations deleteMany
|
|
*/
|
|
export type visitor_registrationsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which visitor_registrations to delete
|
|
*/
|
|
where?: visitor_registrationsWhereInput
|
|
/**
|
|
* Limit how many visitor_registrations to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations.qr_codes
|
|
*/
|
|
export type visitor_registrations$qr_codesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the qr_codes
|
|
*/
|
|
select?: qr_codesSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the qr_codes
|
|
*/
|
|
omit?: qr_codesOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: qr_codesInclude<ExtArgs> | null
|
|
where?: qr_codesWhereInput
|
|
}
|
|
|
|
/**
|
|
* visitor_registrations without action
|
|
*/
|
|
export type visitor_registrationsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the visitor_registrations
|
|
*/
|
|
select?: visitor_registrationsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the visitor_registrations
|
|
*/
|
|
omit?: visitor_registrationsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: visitor_registrationsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel: {
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
};
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Alert_recipientsScalarFieldEnum = (typeof Alert_recipientsScalarFieldEnum)[keyof typeof Alert_recipientsScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type AlertsScalarFieldEnum = (typeof AlertsScalarFieldEnum)[keyof typeof AlertsScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Basemap_configsScalarFieldEnum = (typeof Basemap_configsScalarFieldEnum)[keyof typeof Basemap_configsScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Camera_health_logScalarFieldEnum = (typeof Camera_health_logScalarFieldEnum)[keyof typeof Camera_health_logScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type CamerasScalarFieldEnum = (typeof CamerasScalarFieldEnum)[keyof typeof CamerasScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Feature_flagsScalarFieldEnum = (typeof Feature_flagsScalarFieldEnum)[keyof typeof Feature_flagsScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Geofence_breachesScalarFieldEnum = (typeof Geofence_breachesScalarFieldEnum)[keyof typeof Geofence_breachesScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type GeofencesScalarFieldEnum = (typeof GeofencesScalarFieldEnum)[keyof typeof GeofencesScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type HousesScalarFieldEnum = (typeof HousesScalarFieldEnum)[keyof typeof HousesScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Incident_updatesScalarFieldEnum = (typeof Incident_updatesScalarFieldEnum)[keyof typeof Incident_updatesScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type IncidentsScalarFieldEnum = (typeof IncidentsScalarFieldEnum)[keyof typeof IncidentsScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Ktp_validation_auditScalarFieldEnum = (typeof Ktp_validation_auditScalarFieldEnum)[keyof typeof Ktp_validation_auditScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Map_pinsScalarFieldEnum = (typeof Map_pinsScalarFieldEnum)[keyof typeof Map_pinsScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Perumahan_facilitiesScalarFieldEnum = (typeof Perumahan_facilitiesScalarFieldEnum)[keyof typeof Perumahan_facilitiesScalarFieldEnum]
|
|
|
|
|
|
export const Perumahan_infoScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
total_units: 'total_units',
|
|
clusters: 'clusters',
|
|
address: 'address',
|
|
created_at: 'created_at',
|
|
updated_at: 'updated_at'
|
|
};
|
|
|
|
export type Perumahan_infoScalarFieldEnum = (typeof Perumahan_infoScalarFieldEnum)[keyof typeof Perumahan_infoScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Qr_codesScalarFieldEnum = (typeof Qr_codesScalarFieldEnum)[keyof typeof Qr_codesScalarFieldEnum]
|
|
|
|
|
|
export const Security_activitiesScalarFieldEnum: {
|
|
id: 'id',
|
|
type: 'type',
|
|
ref_id: 'ref_id',
|
|
actor: 'actor',
|
|
note: 'note',
|
|
severity: 'severity',
|
|
timestamp: 'timestamp',
|
|
metadata: 'metadata',
|
|
source: 'source'
|
|
};
|
|
|
|
export type Security_activitiesScalarFieldEnum = (typeof Security_activitiesScalarFieldEnum)[keyof typeof Security_activitiesScalarFieldEnum]
|
|
|
|
|
|
export const SequelizemetaScalarFieldEnum: {
|
|
name: 'name'
|
|
};
|
|
|
|
export type SequelizemetaScalarFieldEnum = (typeof SequelizemetaScalarFieldEnum)[keyof typeof SequelizemetaScalarFieldEnum]
|
|
|
|
|
|
export const Team_location_historyScalarFieldEnum: {
|
|
id: 'id',
|
|
member_id: 'member_id',
|
|
location: 'location',
|
|
lat: 'lat',
|
|
lng: 'lng',
|
|
activity_type: 'activity_type',
|
|
timestamp: 'timestamp'
|
|
};
|
|
|
|
export type Team_location_historyScalarFieldEnum = (typeof Team_location_historyScalarFieldEnum)[keyof typeof Team_location_historyScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Team_membersScalarFieldEnum = (typeof Team_membersScalarFieldEnum)[keyof typeof Team_membersScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Visitor_ktp_dataScalarFieldEnum = (typeof Visitor_ktp_dataScalarFieldEnum)[keyof typeof Visitor_ktp_dataScalarFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type Visitor_registrationsScalarFieldEnum = (typeof Visitor_registrationsScalarFieldEnum)[keyof typeof Visitor_registrationsScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder: {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const NullableJsonNullValueInput: {
|
|
DbNull: typeof DbNull,
|
|
JsonNull: typeof JsonNull
|
|
};
|
|
|
|
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
|
|
|
|
|
export const JsonNullValueInput: {
|
|
JsonNull: typeof JsonNull
|
|
};
|
|
|
|
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
|
|
|
|
export const JsonNullValueFilter: {
|
|
DbNull: typeof DbNull,
|
|
JsonNull: typeof JsonNull,
|
|
AnyNull: typeof AnyNull
|
|
};
|
|
|
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
|
|
|
|
export const QueryMode: {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
};
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
export const NullsOrder: {
|
|
first: 'first',
|
|
last: 'last'
|
|
};
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type alert_recipientsOrderByRelevanceFieldEnum = (typeof alert_recipientsOrderByRelevanceFieldEnum)[keyof typeof alert_recipientsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type alertsOrderByRelevanceFieldEnum = (typeof alertsOrderByRelevanceFieldEnum)[keyof typeof alertsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const basemap_configsOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
svg_data: 'svg_data',
|
|
checksum: 'checksum',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
export type basemap_configsOrderByRelevanceFieldEnum = (typeof basemap_configsOrderByRelevanceFieldEnum)[keyof typeof basemap_configsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const camera_health_logOrderByRelevanceFieldEnum: {
|
|
camera_id: 'camera_id',
|
|
status: 'status',
|
|
error_message: 'error_message'
|
|
};
|
|
|
|
export type camera_health_logOrderByRelevanceFieldEnum = (typeof camera_health_logOrderByRelevanceFieldEnum)[keyof typeof camera_health_logOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const camerasOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
label: 'label',
|
|
area: 'area',
|
|
stream_url: 'stream_url',
|
|
error_message: 'error_message'
|
|
};
|
|
|
|
export type camerasOrderByRelevanceFieldEnum = (typeof camerasOrderByRelevanceFieldEnum)[keyof typeof camerasOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const feature_flagsOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
key: 'key',
|
|
name: 'name',
|
|
description: 'description',
|
|
type: 'type',
|
|
environment: 'environment',
|
|
category: 'category',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
export type feature_flagsOrderByRelevanceFieldEnum = (typeof feature_flagsOrderByRelevanceFieldEnum)[keyof typeof feature_flagsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type geofence_breachesOrderByRelevanceFieldEnum = (typeof geofence_breachesOrderByRelevanceFieldEnum)[keyof typeof geofence_breachesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const geofencesOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
type: 'type',
|
|
description: 'description',
|
|
priority: 'priority',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
export type geofencesOrderByRelevanceFieldEnum = (typeof geofencesOrderByRelevanceFieldEnum)[keyof typeof geofencesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const housesOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
house_number: 'house_number',
|
|
block: 'block',
|
|
street: 'street',
|
|
owner_name: 'owner_name',
|
|
owner_phone: 'owner_phone',
|
|
perumahan_id: 'perumahan_id'
|
|
};
|
|
|
|
export type housesOrderByRelevanceFieldEnum = (typeof housesOrderByRelevanceFieldEnum)[keyof typeof housesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const incident_updatesOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
incident_id: 'incident_id',
|
|
update_type: 'update_type',
|
|
title: 'title',
|
|
description: 'description',
|
|
created_by: 'created_by',
|
|
notification_status: 'notification_status'
|
|
};
|
|
|
|
export type incident_updatesOrderByRelevanceFieldEnum = (typeof incident_updatesOrderByRelevanceFieldEnum)[keyof typeof incident_updatesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type incidentsOrderByRelevanceFieldEnum = (typeof incidentsOrderByRelevanceFieldEnum)[keyof typeof incidentsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type ktp_validation_auditOrderByRelevanceFieldEnum = (typeof ktp_validation_auditOrderByRelevanceFieldEnum)[keyof typeof ktp_validation_auditOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type map_pinsOrderByRelevanceFieldEnum = (typeof map_pinsOrderByRelevanceFieldEnum)[keyof typeof map_pinsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const perumahan_facilitiesOrderByRelevanceFieldEnum: {
|
|
name: 'name',
|
|
type: 'type',
|
|
description: 'description',
|
|
location: 'location'
|
|
};
|
|
|
|
export type perumahan_facilitiesOrderByRelevanceFieldEnum = (typeof perumahan_facilitiesOrderByRelevanceFieldEnum)[keyof typeof perumahan_facilitiesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const perumahan_infoOrderByRelevanceFieldEnum: {
|
|
name: 'name',
|
|
address: 'address'
|
|
};
|
|
|
|
export type perumahan_infoOrderByRelevanceFieldEnum = (typeof perumahan_infoOrderByRelevanceFieldEnum)[keyof typeof perumahan_infoOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const qr_codesOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
entry_point: 'entry_point',
|
|
qr_data: 'qr_data',
|
|
description: 'description',
|
|
created_by: 'created_by',
|
|
updated_by: 'updated_by'
|
|
};
|
|
|
|
export type qr_codesOrderByRelevanceFieldEnum = (typeof qr_codesOrderByRelevanceFieldEnum)[keyof typeof qr_codesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const security_activitiesOrderByRelevanceFieldEnum: {
|
|
type: 'type',
|
|
ref_id: 'ref_id',
|
|
actor: 'actor',
|
|
note: 'note',
|
|
source: 'source'
|
|
};
|
|
|
|
export type security_activitiesOrderByRelevanceFieldEnum = (typeof security_activitiesOrderByRelevanceFieldEnum)[keyof typeof security_activitiesOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const sequelizemetaOrderByRelevanceFieldEnum: {
|
|
name: 'name'
|
|
};
|
|
|
|
export type sequelizemetaOrderByRelevanceFieldEnum = (typeof sequelizemetaOrderByRelevanceFieldEnum)[keyof typeof sequelizemetaOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const team_location_historyOrderByRelevanceFieldEnum: {
|
|
member_id: 'member_id',
|
|
location: 'location',
|
|
activity_type: 'activity_type'
|
|
};
|
|
|
|
export type team_location_historyOrderByRelevanceFieldEnum = (typeof team_location_historyOrderByRelevanceFieldEnum)[keyof typeof team_location_historyOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const team_membersOrderByRelevanceFieldEnum: {
|
|
id: 'id',
|
|
nama: 'nama',
|
|
role: 'role',
|
|
phone: 'phone',
|
|
email: 'email',
|
|
current_location: 'current_location'
|
|
};
|
|
|
|
export type team_membersOrderByRelevanceFieldEnum = (typeof team_membersOrderByRelevanceFieldEnum)[keyof typeof team_membersOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type visitor_ktp_dataOrderByRelevanceFieldEnum = (typeof visitor_ktp_dataOrderByRelevanceFieldEnum)[keyof typeof visitor_ktp_dataOrderByRelevanceFieldEnum]
|
|
|
|
|
|
export const 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'
|
|
};
|
|
|
|
export type visitor_registrationsOrderByRelevanceFieldEnum = (typeof visitor_registrationsOrderByRelevanceFieldEnum)[keyof typeof visitor_registrationsOrderByRelevanceFieldEnum]
|
|
|
|
|
|
/**
|
|
* Field references
|
|
*/
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'String'
|
|
*/
|
|
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Json'
|
|
*/
|
|
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'QueryMode'
|
|
*/
|
|
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'DateTime'
|
|
*/
|
|
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Int'
|
|
*/
|
|
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Boolean'
|
|
*/
|
|
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Decimal'
|
|
*/
|
|
export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'cameras_status'
|
|
*/
|
|
export type Enumcameras_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'cameras_status'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'BigInt'
|
|
*/
|
|
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'houses_status'
|
|
*/
|
|
export type Enumhouses_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'houses_status'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'ktp_validation_audit_action'
|
|
*/
|
|
export type Enumktp_validation_audit_actionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ktp_validation_audit_action'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'perumahan_facilities_status'
|
|
*/
|
|
export type Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'perumahan_facilities_status'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'qr_codes_security_level'
|
|
*/
|
|
export type Enumqr_codes_security_levelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'qr_codes_security_level'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'security_activities_severity'
|
|
*/
|
|
export type Enumsecurity_activities_severityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'security_activities_severity'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'team_members_status'
|
|
*/
|
|
export type Enumteam_members_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'team_members_status'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'visitor_ktp_data_gender'
|
|
*/
|
|
export type Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'visitor_ktp_data_gender'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'visitor_ktp_data_validation_status'
|
|
*/
|
|
export type Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'visitor_ktp_data_validation_status'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'visitor_registrations_status'
|
|
*/
|
|
export type Enumvisitor_registrations_statusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'visitor_registrations_status'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Float'
|
|
*/
|
|
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
|
|
|
/**
|
|
* Deep Input Types
|
|
*/
|
|
|
|
|
|
export type alert_recipientsWhereInput = {
|
|
AND?: alert_recipientsWhereInput | alert_recipientsWhereInput[]
|
|
OR?: alert_recipientsWhereInput[]
|
|
NOT?: alert_recipientsWhereInput | alert_recipientsWhereInput[]
|
|
id?: StringFilter<"alert_recipients"> | string
|
|
alert_id?: StringFilter<"alert_recipients"> | string
|
|
recipient_type?: StringFilter<"alert_recipients"> | string
|
|
recipient_id?: StringNullableFilter<"alert_recipients"> | string | null
|
|
recipient_name?: StringNullableFilter<"alert_recipients"> | string | null
|
|
recipient_contact?: JsonNullableFilter<"alert_recipients">
|
|
channel?: StringFilter<"alert_recipients"> | string
|
|
delivery_status?: StringNullableFilter<"alert_recipients"> | string | null
|
|
sent_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
delivered_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
failed_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
delivery_attempts?: IntNullableFilter<"alert_recipients"> | number | null
|
|
last_attempt_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
failure_reason?: StringNullableFilter<"alert_recipients"> | string | null
|
|
delivery_metadata?: JsonNullableFilter<"alert_recipients">
|
|
response_data?: JsonNullableFilter<"alert_recipients">
|
|
response_time?: IntNullableFilter<"alert_recipients"> | number | null
|
|
created_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
alerts?: XOR<AlertsScalarRelationFilter, alertsWhereInput>
|
|
}
|
|
|
|
export type alert_recipientsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
recipient_type?: SortOrder
|
|
recipient_id?: SortOrderInput | SortOrder
|
|
recipient_name?: SortOrderInput | SortOrder
|
|
recipient_contact?: SortOrderInput | SortOrder
|
|
channel?: SortOrder
|
|
delivery_status?: SortOrderInput | SortOrder
|
|
sent_at?: SortOrderInput | SortOrder
|
|
delivered_at?: SortOrderInput | SortOrder
|
|
acknowledged_at?: SortOrderInput | SortOrder
|
|
failed_at?: SortOrderInput | SortOrder
|
|
delivery_attempts?: SortOrderInput | SortOrder
|
|
last_attempt_at?: SortOrderInput | SortOrder
|
|
failure_reason?: SortOrderInput | SortOrder
|
|
delivery_metadata?: SortOrderInput | SortOrder
|
|
response_data?: SortOrderInput | SortOrder
|
|
response_time?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
alerts?: alertsOrderByWithRelationInput
|
|
_relevance?: alert_recipientsOrderByRelevanceInput
|
|
}
|
|
|
|
export type alert_recipientsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: alert_recipientsWhereInput | alert_recipientsWhereInput[]
|
|
OR?: alert_recipientsWhereInput[]
|
|
NOT?: alert_recipientsWhereInput | alert_recipientsWhereInput[]
|
|
alert_id?: StringFilter<"alert_recipients"> | string
|
|
recipient_type?: StringFilter<"alert_recipients"> | string
|
|
recipient_id?: StringNullableFilter<"alert_recipients"> | string | null
|
|
recipient_name?: StringNullableFilter<"alert_recipients"> | string | null
|
|
recipient_contact?: JsonNullableFilter<"alert_recipients">
|
|
channel?: StringFilter<"alert_recipients"> | string
|
|
delivery_status?: StringNullableFilter<"alert_recipients"> | string | null
|
|
sent_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
delivered_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
failed_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
delivery_attempts?: IntNullableFilter<"alert_recipients"> | number | null
|
|
last_attempt_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
failure_reason?: StringNullableFilter<"alert_recipients"> | string | null
|
|
delivery_metadata?: JsonNullableFilter<"alert_recipients">
|
|
response_data?: JsonNullableFilter<"alert_recipients">
|
|
response_time?: IntNullableFilter<"alert_recipients"> | number | null
|
|
created_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
alerts?: XOR<AlertsScalarRelationFilter, alertsWhereInput>
|
|
}, "id">
|
|
|
|
export type alert_recipientsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
recipient_type?: SortOrder
|
|
recipient_id?: SortOrderInput | SortOrder
|
|
recipient_name?: SortOrderInput | SortOrder
|
|
recipient_contact?: SortOrderInput | SortOrder
|
|
channel?: SortOrder
|
|
delivery_status?: SortOrderInput | SortOrder
|
|
sent_at?: SortOrderInput | SortOrder
|
|
delivered_at?: SortOrderInput | SortOrder
|
|
acknowledged_at?: SortOrderInput | SortOrder
|
|
failed_at?: SortOrderInput | SortOrder
|
|
delivery_attempts?: SortOrderInput | SortOrder
|
|
last_attempt_at?: SortOrderInput | SortOrder
|
|
failure_reason?: SortOrderInput | SortOrder
|
|
delivery_metadata?: SortOrderInput | SortOrder
|
|
response_data?: SortOrderInput | SortOrder
|
|
response_time?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: alert_recipientsCountOrderByAggregateInput
|
|
_avg?: alert_recipientsAvgOrderByAggregateInput
|
|
_max?: alert_recipientsMaxOrderByAggregateInput
|
|
_min?: alert_recipientsMinOrderByAggregateInput
|
|
_sum?: alert_recipientsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type alert_recipientsScalarWhereWithAggregatesInput = {
|
|
AND?: alert_recipientsScalarWhereWithAggregatesInput | alert_recipientsScalarWhereWithAggregatesInput[]
|
|
OR?: alert_recipientsScalarWhereWithAggregatesInput[]
|
|
NOT?: alert_recipientsScalarWhereWithAggregatesInput | alert_recipientsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"alert_recipients"> | string
|
|
alert_id?: StringWithAggregatesFilter<"alert_recipients"> | string
|
|
recipient_type?: StringWithAggregatesFilter<"alert_recipients"> | string
|
|
recipient_id?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null
|
|
recipient_name?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null
|
|
recipient_contact?: JsonNullableWithAggregatesFilter<"alert_recipients">
|
|
channel?: StringWithAggregatesFilter<"alert_recipients"> | string
|
|
delivery_status?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null
|
|
sent_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
delivered_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
failed_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
delivery_attempts?: IntNullableWithAggregatesFilter<"alert_recipients"> | number | null
|
|
last_attempt_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
failure_reason?: StringNullableWithAggregatesFilter<"alert_recipients"> | string | null
|
|
delivery_metadata?: JsonNullableWithAggregatesFilter<"alert_recipients">
|
|
response_data?: JsonNullableWithAggregatesFilter<"alert_recipients">
|
|
response_time?: IntNullableWithAggregatesFilter<"alert_recipients"> | number | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"alert_recipients"> | Date | string | null
|
|
}
|
|
|
|
export type alertsWhereInput = {
|
|
AND?: alertsWhereInput | alertsWhereInput[]
|
|
OR?: alertsWhereInput[]
|
|
NOT?: alertsWhereInput | alertsWhereInput[]
|
|
id?: StringFilter<"alerts"> | string
|
|
alert_id?: StringFilter<"alerts"> | string
|
|
title?: StringFilter<"alerts"> | string
|
|
message?: StringFilter<"alerts"> | string
|
|
type?: StringFilter<"alerts"> | string
|
|
category?: StringNullableFilter<"alerts"> | string | null
|
|
severity?: StringFilter<"alerts"> | string
|
|
priority?: StringFilter<"alerts"> | string
|
|
status?: StringFilter<"alerts"> | string
|
|
is_emergency?: BoolNullableFilter<"alerts"> | boolean | null
|
|
is_broadcast?: BoolNullableFilter<"alerts"> | boolean | null
|
|
is_recurring?: BoolNullableFilter<"alerts"> | boolean | null
|
|
location?: JsonNullableFilter<"alerts">
|
|
coordinates_lat?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: JsonNullableFilter<"alerts">
|
|
target_buildings?: JsonNullableFilter<"alerts">
|
|
target_roles?: JsonNullableFilter<"alerts">
|
|
target_teams?: JsonNullableFilter<"alerts">
|
|
target_users?: JsonNullableFilter<"alerts">
|
|
geofence_ids?: JsonNullableFilter<"alerts">
|
|
scheduled_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
starts_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
ends_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
expires_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
resolved_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
recurrence_pattern?: JsonNullableFilter<"alerts">
|
|
next_occurrence?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
content?: JsonNullableFilter<"alerts">
|
|
attachments?: JsonNullableFilter<"alerts">
|
|
media_urls?: JsonNullableFilter<"alerts">
|
|
action_buttons?: JsonNullableFilter<"alerts">
|
|
channels?: JsonNullableFilter<"alerts">
|
|
delivery_config?: JsonNullableFilter<"alerts">
|
|
source?: StringNullableFilter<"alerts"> | string | null
|
|
source_id?: StringNullableFilter<"alerts"> | string | null
|
|
context?: JsonNullableFilter<"alerts">
|
|
incident_id?: StringNullableFilter<"alerts"> | string | null
|
|
camera_ids?: JsonNullableFilter<"alerts">
|
|
related_alerts?: JsonNullableFilter<"alerts">
|
|
total_recipients?: IntNullableFilter<"alerts"> | number | null
|
|
delivered_count?: IntNullableFilter<"alerts"> | number | null
|
|
acknowledged_count?: IntNullableFilter<"alerts"> | number | null
|
|
failed_count?: IntNullableFilter<"alerts"> | number | null
|
|
tags?: JsonNullableFilter<"alerts">
|
|
metadata?: JsonNullableFilter<"alerts">
|
|
custom_fields?: JsonNullableFilter<"alerts">
|
|
created_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
created_by?: StringNullableFilter<"alerts"> | string | null
|
|
updated_by?: StringNullableFilter<"alerts"> | string | null
|
|
deleted_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
deleted_by?: StringNullableFilter<"alerts"> | string | null
|
|
alert_recipients?: Alert_recipientsListRelationFilter
|
|
incidents?: XOR<IncidentsNullableScalarRelationFilter, incidentsWhereInput> | null
|
|
}
|
|
|
|
export type alertsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
title?: SortOrder
|
|
message?: SortOrder
|
|
type?: SortOrder
|
|
category?: SortOrderInput | SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
is_emergency?: SortOrderInput | SortOrder
|
|
is_broadcast?: SortOrderInput | SortOrder
|
|
is_recurring?: SortOrderInput | SortOrder
|
|
location?: SortOrderInput | SortOrder
|
|
coordinates_lat?: SortOrderInput | SortOrder
|
|
coordinates_lng?: SortOrderInput | SortOrder
|
|
target_zones?: SortOrderInput | SortOrder
|
|
target_buildings?: SortOrderInput | SortOrder
|
|
target_roles?: SortOrderInput | SortOrder
|
|
target_teams?: SortOrderInput | SortOrder
|
|
target_users?: SortOrderInput | SortOrder
|
|
geofence_ids?: SortOrderInput | SortOrder
|
|
scheduled_at?: SortOrderInput | SortOrder
|
|
starts_at?: SortOrderInput | SortOrder
|
|
ends_at?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
acknowledged_at?: SortOrderInput | SortOrder
|
|
resolved_at?: SortOrderInput | SortOrder
|
|
recurrence_pattern?: SortOrderInput | SortOrder
|
|
next_occurrence?: SortOrderInput | SortOrder
|
|
content?: SortOrderInput | SortOrder
|
|
attachments?: SortOrderInput | SortOrder
|
|
media_urls?: SortOrderInput | SortOrder
|
|
action_buttons?: SortOrderInput | SortOrder
|
|
channels?: SortOrderInput | SortOrder
|
|
delivery_config?: SortOrderInput | SortOrder
|
|
source?: SortOrderInput | SortOrder
|
|
source_id?: SortOrderInput | SortOrder
|
|
context?: SortOrderInput | SortOrder
|
|
incident_id?: SortOrderInput | SortOrder
|
|
camera_ids?: SortOrderInput | SortOrder
|
|
related_alerts?: SortOrderInput | SortOrder
|
|
total_recipients?: SortOrderInput | SortOrder
|
|
delivered_count?: SortOrderInput | SortOrder
|
|
acknowledged_count?: SortOrderInput | SortOrder
|
|
failed_count?: SortOrderInput | SortOrder
|
|
tags?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
custom_fields?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
deleted_at?: SortOrderInput | SortOrder
|
|
deleted_by?: SortOrderInput | SortOrder
|
|
alert_recipients?: alert_recipientsOrderByRelationAggregateInput
|
|
incidents?: incidentsOrderByWithRelationInput
|
|
_relevance?: alertsOrderByRelevanceInput
|
|
}
|
|
|
|
export type alertsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
alert_id?: string
|
|
AND?: alertsWhereInput | alertsWhereInput[]
|
|
OR?: alertsWhereInput[]
|
|
NOT?: alertsWhereInput | alertsWhereInput[]
|
|
title?: StringFilter<"alerts"> | string
|
|
message?: StringFilter<"alerts"> | string
|
|
type?: StringFilter<"alerts"> | string
|
|
category?: StringNullableFilter<"alerts"> | string | null
|
|
severity?: StringFilter<"alerts"> | string
|
|
priority?: StringFilter<"alerts"> | string
|
|
status?: StringFilter<"alerts"> | string
|
|
is_emergency?: BoolNullableFilter<"alerts"> | boolean | null
|
|
is_broadcast?: BoolNullableFilter<"alerts"> | boolean | null
|
|
is_recurring?: BoolNullableFilter<"alerts"> | boolean | null
|
|
location?: JsonNullableFilter<"alerts">
|
|
coordinates_lat?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: JsonNullableFilter<"alerts">
|
|
target_buildings?: JsonNullableFilter<"alerts">
|
|
target_roles?: JsonNullableFilter<"alerts">
|
|
target_teams?: JsonNullableFilter<"alerts">
|
|
target_users?: JsonNullableFilter<"alerts">
|
|
geofence_ids?: JsonNullableFilter<"alerts">
|
|
scheduled_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
starts_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
ends_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
expires_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
resolved_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
recurrence_pattern?: JsonNullableFilter<"alerts">
|
|
next_occurrence?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
content?: JsonNullableFilter<"alerts">
|
|
attachments?: JsonNullableFilter<"alerts">
|
|
media_urls?: JsonNullableFilter<"alerts">
|
|
action_buttons?: JsonNullableFilter<"alerts">
|
|
channels?: JsonNullableFilter<"alerts">
|
|
delivery_config?: JsonNullableFilter<"alerts">
|
|
source?: StringNullableFilter<"alerts"> | string | null
|
|
source_id?: StringNullableFilter<"alerts"> | string | null
|
|
context?: JsonNullableFilter<"alerts">
|
|
incident_id?: StringNullableFilter<"alerts"> | string | null
|
|
camera_ids?: JsonNullableFilter<"alerts">
|
|
related_alerts?: JsonNullableFilter<"alerts">
|
|
total_recipients?: IntNullableFilter<"alerts"> | number | null
|
|
delivered_count?: IntNullableFilter<"alerts"> | number | null
|
|
acknowledged_count?: IntNullableFilter<"alerts"> | number | null
|
|
failed_count?: IntNullableFilter<"alerts"> | number | null
|
|
tags?: JsonNullableFilter<"alerts">
|
|
metadata?: JsonNullableFilter<"alerts">
|
|
custom_fields?: JsonNullableFilter<"alerts">
|
|
created_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
created_by?: StringNullableFilter<"alerts"> | string | null
|
|
updated_by?: StringNullableFilter<"alerts"> | string | null
|
|
deleted_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
deleted_by?: StringNullableFilter<"alerts"> | string | null
|
|
alert_recipients?: Alert_recipientsListRelationFilter
|
|
incidents?: XOR<IncidentsNullableScalarRelationFilter, incidentsWhereInput> | null
|
|
}, "id" | "alert_id">
|
|
|
|
export type alertsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
title?: SortOrder
|
|
message?: SortOrder
|
|
type?: SortOrder
|
|
category?: SortOrderInput | SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
is_emergency?: SortOrderInput | SortOrder
|
|
is_broadcast?: SortOrderInput | SortOrder
|
|
is_recurring?: SortOrderInput | SortOrder
|
|
location?: SortOrderInput | SortOrder
|
|
coordinates_lat?: SortOrderInput | SortOrder
|
|
coordinates_lng?: SortOrderInput | SortOrder
|
|
target_zones?: SortOrderInput | SortOrder
|
|
target_buildings?: SortOrderInput | SortOrder
|
|
target_roles?: SortOrderInput | SortOrder
|
|
target_teams?: SortOrderInput | SortOrder
|
|
target_users?: SortOrderInput | SortOrder
|
|
geofence_ids?: SortOrderInput | SortOrder
|
|
scheduled_at?: SortOrderInput | SortOrder
|
|
starts_at?: SortOrderInput | SortOrder
|
|
ends_at?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
acknowledged_at?: SortOrderInput | SortOrder
|
|
resolved_at?: SortOrderInput | SortOrder
|
|
recurrence_pattern?: SortOrderInput | SortOrder
|
|
next_occurrence?: SortOrderInput | SortOrder
|
|
content?: SortOrderInput | SortOrder
|
|
attachments?: SortOrderInput | SortOrder
|
|
media_urls?: SortOrderInput | SortOrder
|
|
action_buttons?: SortOrderInput | SortOrder
|
|
channels?: SortOrderInput | SortOrder
|
|
delivery_config?: SortOrderInput | SortOrder
|
|
source?: SortOrderInput | SortOrder
|
|
source_id?: SortOrderInput | SortOrder
|
|
context?: SortOrderInput | SortOrder
|
|
incident_id?: SortOrderInput | SortOrder
|
|
camera_ids?: SortOrderInput | SortOrder
|
|
related_alerts?: SortOrderInput | SortOrder
|
|
total_recipients?: SortOrderInput | SortOrder
|
|
delivered_count?: SortOrderInput | SortOrder
|
|
acknowledged_count?: SortOrderInput | SortOrder
|
|
failed_count?: SortOrderInput | SortOrder
|
|
tags?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
custom_fields?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
deleted_at?: SortOrderInput | SortOrder
|
|
deleted_by?: SortOrderInput | SortOrder
|
|
_count?: alertsCountOrderByAggregateInput
|
|
_avg?: alertsAvgOrderByAggregateInput
|
|
_max?: alertsMaxOrderByAggregateInput
|
|
_min?: alertsMinOrderByAggregateInput
|
|
_sum?: alertsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type alertsScalarWhereWithAggregatesInput = {
|
|
AND?: alertsScalarWhereWithAggregatesInput | alertsScalarWhereWithAggregatesInput[]
|
|
OR?: alertsScalarWhereWithAggregatesInput[]
|
|
NOT?: alertsScalarWhereWithAggregatesInput | alertsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"alerts"> | string
|
|
alert_id?: StringWithAggregatesFilter<"alerts"> | string
|
|
title?: StringWithAggregatesFilter<"alerts"> | string
|
|
message?: StringWithAggregatesFilter<"alerts"> | string
|
|
type?: StringWithAggregatesFilter<"alerts"> | string
|
|
category?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
severity?: StringWithAggregatesFilter<"alerts"> | string
|
|
priority?: StringWithAggregatesFilter<"alerts"> | string
|
|
status?: StringWithAggregatesFilter<"alerts"> | string
|
|
is_emergency?: BoolNullableWithAggregatesFilter<"alerts"> | boolean | null
|
|
is_broadcast?: BoolNullableWithAggregatesFilter<"alerts"> | boolean | null
|
|
is_recurring?: BoolNullableWithAggregatesFilter<"alerts"> | boolean | null
|
|
location?: JsonNullableWithAggregatesFilter<"alerts">
|
|
coordinates_lat?: DecimalNullableWithAggregatesFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableWithAggregatesFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: JsonNullableWithAggregatesFilter<"alerts">
|
|
target_buildings?: JsonNullableWithAggregatesFilter<"alerts">
|
|
target_roles?: JsonNullableWithAggregatesFilter<"alerts">
|
|
target_teams?: JsonNullableWithAggregatesFilter<"alerts">
|
|
target_users?: JsonNullableWithAggregatesFilter<"alerts">
|
|
geofence_ids?: JsonNullableWithAggregatesFilter<"alerts">
|
|
scheduled_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
starts_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
ends_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
expires_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
resolved_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
recurrence_pattern?: JsonNullableWithAggregatesFilter<"alerts">
|
|
next_occurrence?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
content?: JsonNullableWithAggregatesFilter<"alerts">
|
|
attachments?: JsonNullableWithAggregatesFilter<"alerts">
|
|
media_urls?: JsonNullableWithAggregatesFilter<"alerts">
|
|
action_buttons?: JsonNullableWithAggregatesFilter<"alerts">
|
|
channels?: JsonNullableWithAggregatesFilter<"alerts">
|
|
delivery_config?: JsonNullableWithAggregatesFilter<"alerts">
|
|
source?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
source_id?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
context?: JsonNullableWithAggregatesFilter<"alerts">
|
|
incident_id?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
camera_ids?: JsonNullableWithAggregatesFilter<"alerts">
|
|
related_alerts?: JsonNullableWithAggregatesFilter<"alerts">
|
|
total_recipients?: IntNullableWithAggregatesFilter<"alerts"> | number | null
|
|
delivered_count?: IntNullableWithAggregatesFilter<"alerts"> | number | null
|
|
acknowledged_count?: IntNullableWithAggregatesFilter<"alerts"> | number | null
|
|
failed_count?: IntNullableWithAggregatesFilter<"alerts"> | number | null
|
|
tags?: JsonNullableWithAggregatesFilter<"alerts">
|
|
metadata?: JsonNullableWithAggregatesFilter<"alerts">
|
|
custom_fields?: JsonNullableWithAggregatesFilter<"alerts">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
created_by?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
deleted_at?: DateTimeNullableWithAggregatesFilter<"alerts"> | Date | string | null
|
|
deleted_by?: StringNullableWithAggregatesFilter<"alerts"> | string | null
|
|
}
|
|
|
|
export type basemap_configsWhereInput = {
|
|
AND?: basemap_configsWhereInput | basemap_configsWhereInput[]
|
|
OR?: basemap_configsWhereInput[]
|
|
NOT?: basemap_configsWhereInput | basemap_configsWhereInput[]
|
|
id?: StringFilter<"basemap_configs"> | string
|
|
name?: StringFilter<"basemap_configs"> | string
|
|
description?: StringNullableFilter<"basemap_configs"> | string | null
|
|
svg_data?: StringFilter<"basemap_configs"> | string
|
|
calibration?: JsonFilter<"basemap_configs">
|
|
dimensions?: JsonFilter<"basemap_configs">
|
|
is_active?: BoolNullableFilter<"basemap_configs"> | boolean | null
|
|
is_default?: BoolNullableFilter<"basemap_configs"> | boolean | null
|
|
version?: IntNullableFilter<"basemap_configs"> | number | null
|
|
settings?: JsonNullableFilter<"basemap_configs">
|
|
metadata?: JsonNullableFilter<"basemap_configs">
|
|
file_size?: IntNullableFilter<"basemap_configs"> | number | null
|
|
checksum?: StringNullableFilter<"basemap_configs"> | string | null
|
|
created_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null
|
|
created_by?: StringNullableFilter<"basemap_configs"> | string | null
|
|
updated_by?: StringNullableFilter<"basemap_configs"> | string | null
|
|
}
|
|
|
|
export type basemap_configsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
svg_data?: SortOrder
|
|
calibration?: SortOrder
|
|
dimensions?: SortOrder
|
|
is_active?: SortOrderInput | SortOrder
|
|
is_default?: SortOrderInput | SortOrder
|
|
version?: SortOrderInput | SortOrder
|
|
settings?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
file_size?: SortOrderInput | SortOrder
|
|
checksum?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
_relevance?: basemap_configsOrderByRelevanceInput
|
|
}
|
|
|
|
export type basemap_configsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
name?: string
|
|
name_version?: basemap_configsNameVersionCompoundUniqueInput
|
|
AND?: basemap_configsWhereInput | basemap_configsWhereInput[]
|
|
OR?: basemap_configsWhereInput[]
|
|
NOT?: basemap_configsWhereInput | basemap_configsWhereInput[]
|
|
description?: StringNullableFilter<"basemap_configs"> | string | null
|
|
svg_data?: StringFilter<"basemap_configs"> | string
|
|
calibration?: JsonFilter<"basemap_configs">
|
|
dimensions?: JsonFilter<"basemap_configs">
|
|
is_active?: BoolNullableFilter<"basemap_configs"> | boolean | null
|
|
is_default?: BoolNullableFilter<"basemap_configs"> | boolean | null
|
|
version?: IntNullableFilter<"basemap_configs"> | number | null
|
|
settings?: JsonNullableFilter<"basemap_configs">
|
|
metadata?: JsonNullableFilter<"basemap_configs">
|
|
file_size?: IntNullableFilter<"basemap_configs"> | number | null
|
|
checksum?: StringNullableFilter<"basemap_configs"> | string | null
|
|
created_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"basemap_configs"> | Date | string | null
|
|
created_by?: StringNullableFilter<"basemap_configs"> | string | null
|
|
updated_by?: StringNullableFilter<"basemap_configs"> | string | null
|
|
}, "id" | "name" | "name_version">
|
|
|
|
export type basemap_configsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
svg_data?: SortOrder
|
|
calibration?: SortOrder
|
|
dimensions?: SortOrder
|
|
is_active?: SortOrderInput | SortOrder
|
|
is_default?: SortOrderInput | SortOrder
|
|
version?: SortOrderInput | SortOrder
|
|
settings?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
file_size?: SortOrderInput | SortOrder
|
|
checksum?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
_count?: basemap_configsCountOrderByAggregateInput
|
|
_avg?: basemap_configsAvgOrderByAggregateInput
|
|
_max?: basemap_configsMaxOrderByAggregateInput
|
|
_min?: basemap_configsMinOrderByAggregateInput
|
|
_sum?: basemap_configsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type basemap_configsScalarWhereWithAggregatesInput = {
|
|
AND?: basemap_configsScalarWhereWithAggregatesInput | basemap_configsScalarWhereWithAggregatesInput[]
|
|
OR?: basemap_configsScalarWhereWithAggregatesInput[]
|
|
NOT?: basemap_configsScalarWhereWithAggregatesInput | basemap_configsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"basemap_configs"> | string
|
|
name?: StringWithAggregatesFilter<"basemap_configs"> | string
|
|
description?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null
|
|
svg_data?: StringWithAggregatesFilter<"basemap_configs"> | string
|
|
calibration?: JsonWithAggregatesFilter<"basemap_configs">
|
|
dimensions?: JsonWithAggregatesFilter<"basemap_configs">
|
|
is_active?: BoolNullableWithAggregatesFilter<"basemap_configs"> | boolean | null
|
|
is_default?: BoolNullableWithAggregatesFilter<"basemap_configs"> | boolean | null
|
|
version?: IntNullableWithAggregatesFilter<"basemap_configs"> | number | null
|
|
settings?: JsonNullableWithAggregatesFilter<"basemap_configs">
|
|
metadata?: JsonNullableWithAggregatesFilter<"basemap_configs">
|
|
file_size?: IntNullableWithAggregatesFilter<"basemap_configs"> | number | null
|
|
checksum?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"basemap_configs"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"basemap_configs"> | Date | string | null
|
|
created_by?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"basemap_configs"> | string | null
|
|
}
|
|
|
|
export type camera_health_logWhereInput = {
|
|
AND?: camera_health_logWhereInput | camera_health_logWhereInput[]
|
|
OR?: camera_health_logWhereInput[]
|
|
NOT?: camera_health_logWhereInput | camera_health_logWhereInput[]
|
|
id?: IntFilter<"camera_health_log"> | number
|
|
camera_id?: StringFilter<"camera_health_log"> | string
|
|
status?: StringFilter<"camera_health_log"> | string
|
|
response_time?: IntFilter<"camera_health_log"> | number
|
|
health_score?: IntFilter<"camera_health_log"> | number
|
|
error_message?: StringNullableFilter<"camera_health_log"> | string | null
|
|
stream_accessible?: BoolNullableFilter<"camera_health_log"> | boolean | null
|
|
timestamp?: DateTimeNullableFilter<"camera_health_log"> | Date | string | null
|
|
cameras?: XOR<CamerasScalarRelationFilter, camerasWhereInput>
|
|
}
|
|
|
|
export type camera_health_logOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
camera_id?: SortOrder
|
|
status?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrderInput | SortOrder
|
|
stream_accessible?: SortOrderInput | SortOrder
|
|
timestamp?: SortOrderInput | SortOrder
|
|
cameras?: camerasOrderByWithRelationInput
|
|
_relevance?: camera_health_logOrderByRelevanceInput
|
|
}
|
|
|
|
export type camera_health_logWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: camera_health_logWhereInput | camera_health_logWhereInput[]
|
|
OR?: camera_health_logWhereInput[]
|
|
NOT?: camera_health_logWhereInput | camera_health_logWhereInput[]
|
|
camera_id?: StringFilter<"camera_health_log"> | string
|
|
status?: StringFilter<"camera_health_log"> | string
|
|
response_time?: IntFilter<"camera_health_log"> | number
|
|
health_score?: IntFilter<"camera_health_log"> | number
|
|
error_message?: StringNullableFilter<"camera_health_log"> | string | null
|
|
stream_accessible?: BoolNullableFilter<"camera_health_log"> | boolean | null
|
|
timestamp?: DateTimeNullableFilter<"camera_health_log"> | Date | string | null
|
|
cameras?: XOR<CamerasScalarRelationFilter, camerasWhereInput>
|
|
}, "id">
|
|
|
|
export type camera_health_logOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
camera_id?: SortOrder
|
|
status?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrderInput | SortOrder
|
|
stream_accessible?: SortOrderInput | SortOrder
|
|
timestamp?: SortOrderInput | SortOrder
|
|
_count?: camera_health_logCountOrderByAggregateInput
|
|
_avg?: camera_health_logAvgOrderByAggregateInput
|
|
_max?: camera_health_logMaxOrderByAggregateInput
|
|
_min?: camera_health_logMinOrderByAggregateInput
|
|
_sum?: camera_health_logSumOrderByAggregateInput
|
|
}
|
|
|
|
export type camera_health_logScalarWhereWithAggregatesInput = {
|
|
AND?: camera_health_logScalarWhereWithAggregatesInput | camera_health_logScalarWhereWithAggregatesInput[]
|
|
OR?: camera_health_logScalarWhereWithAggregatesInput[]
|
|
NOT?: camera_health_logScalarWhereWithAggregatesInput | camera_health_logScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"camera_health_log"> | number
|
|
camera_id?: StringWithAggregatesFilter<"camera_health_log"> | string
|
|
status?: StringWithAggregatesFilter<"camera_health_log"> | string
|
|
response_time?: IntWithAggregatesFilter<"camera_health_log"> | number
|
|
health_score?: IntWithAggregatesFilter<"camera_health_log"> | number
|
|
error_message?: StringNullableWithAggregatesFilter<"camera_health_log"> | string | null
|
|
stream_accessible?: BoolNullableWithAggregatesFilter<"camera_health_log"> | boolean | null
|
|
timestamp?: DateTimeNullableWithAggregatesFilter<"camera_health_log"> | Date | string | null
|
|
}
|
|
|
|
export type camerasWhereInput = {
|
|
AND?: camerasWhereInput | camerasWhereInput[]
|
|
OR?: camerasWhereInput[]
|
|
NOT?: camerasWhereInput | camerasWhereInput[]
|
|
id?: StringFilter<"cameras"> | string
|
|
label?: StringFilter<"cameras"> | string
|
|
area?: StringFilter<"cameras"> | string
|
|
lat?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFilter<"cameras"> | string
|
|
status?: Enumcameras_statusNullableFilter<"cameras"> | $Enums.cameras_status | null
|
|
last_heartbeat?: DateTimeNullableFilter<"cameras"> | Date | string | null
|
|
response_time?: IntNullableFilter<"cameras"> | number | null
|
|
health_score?: IntNullableFilter<"cameras"> | number | null
|
|
error_message?: StringNullableFilter<"cameras"> | string | null
|
|
created_at?: DateTimeNullableFilter<"cameras"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"cameras"> | Date | string | null
|
|
camera_health_log?: Camera_health_logListRelationFilter
|
|
}
|
|
|
|
export type camerasOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
label?: SortOrder
|
|
area?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
stream_url?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
last_heartbeat?: SortOrderInput | SortOrder
|
|
response_time?: SortOrderInput | SortOrder
|
|
health_score?: SortOrderInput | SortOrder
|
|
error_message?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
camera_health_log?: camera_health_logOrderByRelationAggregateInput
|
|
_relevance?: camerasOrderByRelevanceInput
|
|
}
|
|
|
|
export type camerasWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: camerasWhereInput | camerasWhereInput[]
|
|
OR?: camerasWhereInput[]
|
|
NOT?: camerasWhereInput | camerasWhereInput[]
|
|
label?: StringFilter<"cameras"> | string
|
|
area?: StringFilter<"cameras"> | string
|
|
lat?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFilter<"cameras"> | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFilter<"cameras"> | string
|
|
status?: Enumcameras_statusNullableFilter<"cameras"> | $Enums.cameras_status | null
|
|
last_heartbeat?: DateTimeNullableFilter<"cameras"> | Date | string | null
|
|
response_time?: IntNullableFilter<"cameras"> | number | null
|
|
health_score?: IntNullableFilter<"cameras"> | number | null
|
|
error_message?: StringNullableFilter<"cameras"> | string | null
|
|
created_at?: DateTimeNullableFilter<"cameras"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"cameras"> | Date | string | null
|
|
camera_health_log?: Camera_health_logListRelationFilter
|
|
}, "id">
|
|
|
|
export type camerasOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
label?: SortOrder
|
|
area?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
stream_url?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
last_heartbeat?: SortOrderInput | SortOrder
|
|
response_time?: SortOrderInput | SortOrder
|
|
health_score?: SortOrderInput | SortOrder
|
|
error_message?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: camerasCountOrderByAggregateInput
|
|
_avg?: camerasAvgOrderByAggregateInput
|
|
_max?: camerasMaxOrderByAggregateInput
|
|
_min?: camerasMinOrderByAggregateInput
|
|
_sum?: camerasSumOrderByAggregateInput
|
|
}
|
|
|
|
export type camerasScalarWhereWithAggregatesInput = {
|
|
AND?: camerasScalarWhereWithAggregatesInput | camerasScalarWhereWithAggregatesInput[]
|
|
OR?: camerasScalarWhereWithAggregatesInput[]
|
|
NOT?: camerasScalarWhereWithAggregatesInput | camerasScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"cameras"> | string
|
|
label?: StringWithAggregatesFilter<"cameras"> | string
|
|
area?: StringWithAggregatesFilter<"cameras"> | string
|
|
lat?: DecimalWithAggregatesFilter<"cameras"> | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalWithAggregatesFilter<"cameras"> | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringWithAggregatesFilter<"cameras"> | string
|
|
status?: Enumcameras_statusNullableWithAggregatesFilter<"cameras"> | $Enums.cameras_status | null
|
|
last_heartbeat?: DateTimeNullableWithAggregatesFilter<"cameras"> | Date | string | null
|
|
response_time?: IntNullableWithAggregatesFilter<"cameras"> | number | null
|
|
health_score?: IntNullableWithAggregatesFilter<"cameras"> | number | null
|
|
error_message?: StringNullableWithAggregatesFilter<"cameras"> | string | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"cameras"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"cameras"> | Date | string | null
|
|
}
|
|
|
|
export type feature_flagsWhereInput = {
|
|
AND?: feature_flagsWhereInput | feature_flagsWhereInput[]
|
|
OR?: feature_flagsWhereInput[]
|
|
NOT?: feature_flagsWhereInput | feature_flagsWhereInput[]
|
|
id?: StringFilter<"feature_flags"> | string
|
|
key?: StringFilter<"feature_flags"> | string
|
|
name?: StringFilter<"feature_flags"> | string
|
|
description?: StringNullableFilter<"feature_flags"> | string | null
|
|
is_enabled?: BoolNullableFilter<"feature_flags"> | boolean | null
|
|
type?: StringFilter<"feature_flags"> | string
|
|
value?: JsonNullableFilter<"feature_flags">
|
|
default_value?: JsonNullableFilter<"feature_flags">
|
|
environment?: StringNullableFilter<"feature_flags"> | string | null
|
|
category?: StringNullableFilter<"feature_flags"> | string | null
|
|
tags?: JsonNullableFilter<"feature_flags">
|
|
conditions?: JsonNullableFilter<"feature_flags">
|
|
rollout_percentage?: DecimalNullableFilter<"feature_flags"> | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: JsonNullableFilter<"feature_flags">
|
|
is_archived?: BoolNullableFilter<"feature_flags"> | boolean | null
|
|
is_permanent?: BoolNullableFilter<"feature_flags"> | boolean | null
|
|
expires_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
last_evaluated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
evaluation_count?: BigIntNullableFilter<"feature_flags"> | bigint | number | null
|
|
metadata?: JsonNullableFilter<"feature_flags">
|
|
created_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
created_by?: StringNullableFilter<"feature_flags"> | string | null
|
|
updated_by?: StringNullableFilter<"feature_flags"> | string | null
|
|
enabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
disabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
}
|
|
|
|
export type feature_flagsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
is_enabled?: SortOrderInput | SortOrder
|
|
type?: SortOrder
|
|
value?: SortOrderInput | SortOrder
|
|
default_value?: SortOrderInput | SortOrder
|
|
environment?: SortOrderInput | SortOrder
|
|
category?: SortOrderInput | SortOrder
|
|
tags?: SortOrderInput | SortOrder
|
|
conditions?: SortOrderInput | SortOrder
|
|
rollout_percentage?: SortOrderInput | SortOrder
|
|
user_segments?: SortOrderInput | SortOrder
|
|
is_archived?: SortOrderInput | SortOrder
|
|
is_permanent?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
last_evaluated_at?: SortOrderInput | SortOrder
|
|
evaluation_count?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
enabled_at?: SortOrderInput | SortOrder
|
|
disabled_at?: SortOrderInput | SortOrder
|
|
_relevance?: feature_flagsOrderByRelevanceInput
|
|
}
|
|
|
|
export type feature_flagsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
key?: string
|
|
AND?: feature_flagsWhereInput | feature_flagsWhereInput[]
|
|
OR?: feature_flagsWhereInput[]
|
|
NOT?: feature_flagsWhereInput | feature_flagsWhereInput[]
|
|
name?: StringFilter<"feature_flags"> | string
|
|
description?: StringNullableFilter<"feature_flags"> | string | null
|
|
is_enabled?: BoolNullableFilter<"feature_flags"> | boolean | null
|
|
type?: StringFilter<"feature_flags"> | string
|
|
value?: JsonNullableFilter<"feature_flags">
|
|
default_value?: JsonNullableFilter<"feature_flags">
|
|
environment?: StringNullableFilter<"feature_flags"> | string | null
|
|
category?: StringNullableFilter<"feature_flags"> | string | null
|
|
tags?: JsonNullableFilter<"feature_flags">
|
|
conditions?: JsonNullableFilter<"feature_flags">
|
|
rollout_percentage?: DecimalNullableFilter<"feature_flags"> | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: JsonNullableFilter<"feature_flags">
|
|
is_archived?: BoolNullableFilter<"feature_flags"> | boolean | null
|
|
is_permanent?: BoolNullableFilter<"feature_flags"> | boolean | null
|
|
expires_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
last_evaluated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
evaluation_count?: BigIntNullableFilter<"feature_flags"> | bigint | number | null
|
|
metadata?: JsonNullableFilter<"feature_flags">
|
|
created_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
created_by?: StringNullableFilter<"feature_flags"> | string | null
|
|
updated_by?: StringNullableFilter<"feature_flags"> | string | null
|
|
enabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
disabled_at?: DateTimeNullableFilter<"feature_flags"> | Date | string | null
|
|
}, "id" | "key">
|
|
|
|
export type feature_flagsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
is_enabled?: SortOrderInput | SortOrder
|
|
type?: SortOrder
|
|
value?: SortOrderInput | SortOrder
|
|
default_value?: SortOrderInput | SortOrder
|
|
environment?: SortOrderInput | SortOrder
|
|
category?: SortOrderInput | SortOrder
|
|
tags?: SortOrderInput | SortOrder
|
|
conditions?: SortOrderInput | SortOrder
|
|
rollout_percentage?: SortOrderInput | SortOrder
|
|
user_segments?: SortOrderInput | SortOrder
|
|
is_archived?: SortOrderInput | SortOrder
|
|
is_permanent?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
last_evaluated_at?: SortOrderInput | SortOrder
|
|
evaluation_count?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
enabled_at?: SortOrderInput | SortOrder
|
|
disabled_at?: SortOrderInput | SortOrder
|
|
_count?: feature_flagsCountOrderByAggregateInput
|
|
_avg?: feature_flagsAvgOrderByAggregateInput
|
|
_max?: feature_flagsMaxOrderByAggregateInput
|
|
_min?: feature_flagsMinOrderByAggregateInput
|
|
_sum?: feature_flagsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type feature_flagsScalarWhereWithAggregatesInput = {
|
|
AND?: feature_flagsScalarWhereWithAggregatesInput | feature_flagsScalarWhereWithAggregatesInput[]
|
|
OR?: feature_flagsScalarWhereWithAggregatesInput[]
|
|
NOT?: feature_flagsScalarWhereWithAggregatesInput | feature_flagsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"feature_flags"> | string
|
|
key?: StringWithAggregatesFilter<"feature_flags"> | string
|
|
name?: StringWithAggregatesFilter<"feature_flags"> | string
|
|
description?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null
|
|
is_enabled?: BoolNullableWithAggregatesFilter<"feature_flags"> | boolean | null
|
|
type?: StringWithAggregatesFilter<"feature_flags"> | string
|
|
value?: JsonNullableWithAggregatesFilter<"feature_flags">
|
|
default_value?: JsonNullableWithAggregatesFilter<"feature_flags">
|
|
environment?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null
|
|
category?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null
|
|
tags?: JsonNullableWithAggregatesFilter<"feature_flags">
|
|
conditions?: JsonNullableWithAggregatesFilter<"feature_flags">
|
|
rollout_percentage?: DecimalNullableWithAggregatesFilter<"feature_flags"> | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: JsonNullableWithAggregatesFilter<"feature_flags">
|
|
is_archived?: BoolNullableWithAggregatesFilter<"feature_flags"> | boolean | null
|
|
is_permanent?: BoolNullableWithAggregatesFilter<"feature_flags"> | boolean | null
|
|
expires_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null
|
|
last_evaluated_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null
|
|
evaluation_count?: BigIntNullableWithAggregatesFilter<"feature_flags"> | bigint | number | null
|
|
metadata?: JsonNullableWithAggregatesFilter<"feature_flags">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null
|
|
created_by?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"feature_flags"> | string | null
|
|
enabled_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null
|
|
disabled_at?: DateTimeNullableWithAggregatesFilter<"feature_flags"> | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesWhereInput = {
|
|
AND?: geofence_breachesWhereInput | geofence_breachesWhereInput[]
|
|
OR?: geofence_breachesWhereInput[]
|
|
NOT?: geofence_breachesWhereInput | geofence_breachesWhereInput[]
|
|
id?: StringFilter<"geofence_breaches"> | string
|
|
geofence_id?: StringFilter<"geofence_breaches"> | string
|
|
team_member_id?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
breach_type?: StringFilter<"geofence_breaches"> | string
|
|
location?: JsonFilter<"geofence_breaches">
|
|
severity?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
is_resolved?: BoolNullableFilter<"geofence_breaches"> | boolean | null
|
|
resolved_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
resolved_by?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
notes?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
metadata?: JsonNullableFilter<"geofence_breaches">
|
|
created_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
geofences?: XOR<GeofencesScalarRelationFilter, geofencesWhereInput>
|
|
}
|
|
|
|
export type geofence_breachesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
team_member_id?: SortOrderInput | SortOrder
|
|
breach_type?: SortOrder
|
|
location?: SortOrder
|
|
severity?: SortOrderInput | SortOrder
|
|
is_resolved?: SortOrderInput | SortOrder
|
|
resolved_at?: SortOrderInput | SortOrder
|
|
resolved_by?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
geofences?: geofencesOrderByWithRelationInput
|
|
_relevance?: geofence_breachesOrderByRelevanceInput
|
|
}
|
|
|
|
export type geofence_breachesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: geofence_breachesWhereInput | geofence_breachesWhereInput[]
|
|
OR?: geofence_breachesWhereInput[]
|
|
NOT?: geofence_breachesWhereInput | geofence_breachesWhereInput[]
|
|
geofence_id?: StringFilter<"geofence_breaches"> | string
|
|
team_member_id?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
breach_type?: StringFilter<"geofence_breaches"> | string
|
|
location?: JsonFilter<"geofence_breaches">
|
|
severity?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
is_resolved?: BoolNullableFilter<"geofence_breaches"> | boolean | null
|
|
resolved_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
resolved_by?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
notes?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
metadata?: JsonNullableFilter<"geofence_breaches">
|
|
created_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
geofences?: XOR<GeofencesScalarRelationFilter, geofencesWhereInput>
|
|
}, "id">
|
|
|
|
export type geofence_breachesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
team_member_id?: SortOrderInput | SortOrder
|
|
breach_type?: SortOrder
|
|
location?: SortOrder
|
|
severity?: SortOrderInput | SortOrder
|
|
is_resolved?: SortOrderInput | SortOrder
|
|
resolved_at?: SortOrderInput | SortOrder
|
|
resolved_by?: SortOrderInput | SortOrder
|
|
notes?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: geofence_breachesCountOrderByAggregateInput
|
|
_max?: geofence_breachesMaxOrderByAggregateInput
|
|
_min?: geofence_breachesMinOrderByAggregateInput
|
|
}
|
|
|
|
export type geofence_breachesScalarWhereWithAggregatesInput = {
|
|
AND?: geofence_breachesScalarWhereWithAggregatesInput | geofence_breachesScalarWhereWithAggregatesInput[]
|
|
OR?: geofence_breachesScalarWhereWithAggregatesInput[]
|
|
NOT?: geofence_breachesScalarWhereWithAggregatesInput | geofence_breachesScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"geofence_breaches"> | string
|
|
geofence_id?: StringWithAggregatesFilter<"geofence_breaches"> | string
|
|
team_member_id?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null
|
|
breach_type?: StringWithAggregatesFilter<"geofence_breaches"> | string
|
|
location?: JsonWithAggregatesFilter<"geofence_breaches">
|
|
severity?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null
|
|
is_resolved?: BoolNullableWithAggregatesFilter<"geofence_breaches"> | boolean | null
|
|
resolved_at?: DateTimeNullableWithAggregatesFilter<"geofence_breaches"> | Date | string | null
|
|
resolved_by?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null
|
|
notes?: StringNullableWithAggregatesFilter<"geofence_breaches"> | string | null
|
|
metadata?: JsonNullableWithAggregatesFilter<"geofence_breaches">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"geofence_breaches"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"geofence_breaches"> | Date | string | null
|
|
}
|
|
|
|
export type geofencesWhereInput = {
|
|
AND?: geofencesWhereInput | geofencesWhereInput[]
|
|
OR?: geofencesWhereInput[]
|
|
NOT?: geofencesWhereInput | geofencesWhereInput[]
|
|
id?: StringFilter<"geofences"> | string
|
|
name?: StringFilter<"geofences"> | string
|
|
type?: StringFilter<"geofences"> | string
|
|
coordinates?: JsonFilter<"geofences">
|
|
description?: StringNullableFilter<"geofences"> | string | null
|
|
is_active?: BoolNullableFilter<"geofences"> | boolean | null
|
|
priority?: StringNullableFilter<"geofences"> | string | null
|
|
notification_settings?: JsonNullableFilter<"geofences">
|
|
metadata?: JsonNullableFilter<"geofences">
|
|
created_at?: DateTimeNullableFilter<"geofences"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"geofences"> | Date | string | null
|
|
created_by?: StringNullableFilter<"geofences"> | string | null
|
|
updated_by?: StringNullableFilter<"geofences"> | string | null
|
|
geofence_breaches?: Geofence_breachesListRelationFilter
|
|
incidents?: IncidentsListRelationFilter
|
|
map_pins?: Map_pinsListRelationFilter
|
|
}
|
|
|
|
export type geofencesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
coordinates?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
is_active?: SortOrderInput | SortOrder
|
|
priority?: SortOrderInput | SortOrder
|
|
notification_settings?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
geofence_breaches?: geofence_breachesOrderByRelationAggregateInput
|
|
incidents?: incidentsOrderByRelationAggregateInput
|
|
map_pins?: map_pinsOrderByRelationAggregateInput
|
|
_relevance?: geofencesOrderByRelevanceInput
|
|
}
|
|
|
|
export type geofencesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: geofencesWhereInput | geofencesWhereInput[]
|
|
OR?: geofencesWhereInput[]
|
|
NOT?: geofencesWhereInput | geofencesWhereInput[]
|
|
name?: StringFilter<"geofences"> | string
|
|
type?: StringFilter<"geofences"> | string
|
|
coordinates?: JsonFilter<"geofences">
|
|
description?: StringNullableFilter<"geofences"> | string | null
|
|
is_active?: BoolNullableFilter<"geofences"> | boolean | null
|
|
priority?: StringNullableFilter<"geofences"> | string | null
|
|
notification_settings?: JsonNullableFilter<"geofences">
|
|
metadata?: JsonNullableFilter<"geofences">
|
|
created_at?: DateTimeNullableFilter<"geofences"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"geofences"> | Date | string | null
|
|
created_by?: StringNullableFilter<"geofences"> | string | null
|
|
updated_by?: StringNullableFilter<"geofences"> | string | null
|
|
geofence_breaches?: Geofence_breachesListRelationFilter
|
|
incidents?: IncidentsListRelationFilter
|
|
map_pins?: Map_pinsListRelationFilter
|
|
}, "id">
|
|
|
|
export type geofencesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
coordinates?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
is_active?: SortOrderInput | SortOrder
|
|
priority?: SortOrderInput | SortOrder
|
|
notification_settings?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
_count?: geofencesCountOrderByAggregateInput
|
|
_max?: geofencesMaxOrderByAggregateInput
|
|
_min?: geofencesMinOrderByAggregateInput
|
|
}
|
|
|
|
export type geofencesScalarWhereWithAggregatesInput = {
|
|
AND?: geofencesScalarWhereWithAggregatesInput | geofencesScalarWhereWithAggregatesInput[]
|
|
OR?: geofencesScalarWhereWithAggregatesInput[]
|
|
NOT?: geofencesScalarWhereWithAggregatesInput | geofencesScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"geofences"> | string
|
|
name?: StringWithAggregatesFilter<"geofences"> | string
|
|
type?: StringWithAggregatesFilter<"geofences"> | string
|
|
coordinates?: JsonWithAggregatesFilter<"geofences">
|
|
description?: StringNullableWithAggregatesFilter<"geofences"> | string | null
|
|
is_active?: BoolNullableWithAggregatesFilter<"geofences"> | boolean | null
|
|
priority?: StringNullableWithAggregatesFilter<"geofences"> | string | null
|
|
notification_settings?: JsonNullableWithAggregatesFilter<"geofences">
|
|
metadata?: JsonNullableWithAggregatesFilter<"geofences">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"geofences"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"geofences"> | Date | string | null
|
|
created_by?: StringNullableWithAggregatesFilter<"geofences"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"geofences"> | string | null
|
|
}
|
|
|
|
export type housesWhereInput = {
|
|
AND?: housesWhereInput | housesWhereInput[]
|
|
OR?: housesWhereInput[]
|
|
NOT?: housesWhereInput | housesWhereInput[]
|
|
id?: StringFilter<"houses"> | string
|
|
house_number?: StringFilter<"houses"> | string
|
|
block?: StringFilter<"houses"> | string
|
|
street?: StringFilter<"houses"> | string
|
|
owner_name?: StringFilter<"houses"> | string
|
|
owner_phone?: StringFilter<"houses"> | string
|
|
status?: Enumhouses_statusNullableFilter<"houses"> | $Enums.houses_status | null
|
|
perumahan_id?: StringNullableFilter<"houses"> | string | null
|
|
created_at?: DateTimeNullableFilter<"houses"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"houses"> | Date | string | null
|
|
}
|
|
|
|
export type housesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
house_number?: SortOrder
|
|
block?: SortOrder
|
|
street?: SortOrder
|
|
owner_name?: SortOrder
|
|
owner_phone?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
perumahan_id?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_relevance?: housesOrderByRelevanceInput
|
|
}
|
|
|
|
export type housesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
house_number_block?: housesHouse_numberBlockCompoundUniqueInput
|
|
AND?: housesWhereInput | housesWhereInput[]
|
|
OR?: housesWhereInput[]
|
|
NOT?: housesWhereInput | housesWhereInput[]
|
|
house_number?: StringFilter<"houses"> | string
|
|
block?: StringFilter<"houses"> | string
|
|
street?: StringFilter<"houses"> | string
|
|
owner_name?: StringFilter<"houses"> | string
|
|
owner_phone?: StringFilter<"houses"> | string
|
|
status?: Enumhouses_statusNullableFilter<"houses"> | $Enums.houses_status | null
|
|
perumahan_id?: StringNullableFilter<"houses"> | string | null
|
|
created_at?: DateTimeNullableFilter<"houses"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"houses"> | Date | string | null
|
|
}, "id" | "house_number_block">
|
|
|
|
export type housesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
house_number?: SortOrder
|
|
block?: SortOrder
|
|
street?: SortOrder
|
|
owner_name?: SortOrder
|
|
owner_phone?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
perumahan_id?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: housesCountOrderByAggregateInput
|
|
_max?: housesMaxOrderByAggregateInput
|
|
_min?: housesMinOrderByAggregateInput
|
|
}
|
|
|
|
export type housesScalarWhereWithAggregatesInput = {
|
|
AND?: housesScalarWhereWithAggregatesInput | housesScalarWhereWithAggregatesInput[]
|
|
OR?: housesScalarWhereWithAggregatesInput[]
|
|
NOT?: housesScalarWhereWithAggregatesInput | housesScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"houses"> | string
|
|
house_number?: StringWithAggregatesFilter<"houses"> | string
|
|
block?: StringWithAggregatesFilter<"houses"> | string
|
|
street?: StringWithAggregatesFilter<"houses"> | string
|
|
owner_name?: StringWithAggregatesFilter<"houses"> | string
|
|
owner_phone?: StringWithAggregatesFilter<"houses"> | string
|
|
status?: Enumhouses_statusNullableWithAggregatesFilter<"houses"> | $Enums.houses_status | null
|
|
perumahan_id?: StringNullableWithAggregatesFilter<"houses"> | string | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"houses"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"houses"> | Date | string | null
|
|
}
|
|
|
|
export type incident_updatesWhereInput = {
|
|
AND?: incident_updatesWhereInput | incident_updatesWhereInput[]
|
|
OR?: incident_updatesWhereInput[]
|
|
NOT?: incident_updatesWhereInput | incident_updatesWhereInput[]
|
|
id?: StringFilter<"incident_updates"> | string
|
|
incident_id?: StringFilter<"incident_updates"> | string
|
|
update_type?: StringFilter<"incident_updates"> | string
|
|
title?: StringNullableFilter<"incident_updates"> | string | null
|
|
description?: StringNullableFilter<"incident_updates"> | string | null
|
|
old_values?: JsonNullableFilter<"incident_updates">
|
|
new_values?: JsonNullableFilter<"incident_updates">
|
|
changed_fields?: JsonNullableFilter<"incident_updates">
|
|
is_internal?: BoolNullableFilter<"incident_updates"> | boolean | null
|
|
is_system_generated?: BoolNullableFilter<"incident_updates"> | boolean | null
|
|
attachments?: JsonNullableFilter<"incident_updates">
|
|
created_at?: DateTimeNullableFilter<"incident_updates"> | Date | string | null
|
|
created_by?: StringFilter<"incident_updates"> | string
|
|
notifications_sent?: JsonNullableFilter<"incident_updates">
|
|
notification_status?: StringNullableFilter<"incident_updates"> | string | null
|
|
incidents?: XOR<IncidentsScalarRelationFilter, incidentsWhereInput>
|
|
}
|
|
|
|
export type incident_updatesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
incident_id?: SortOrder
|
|
update_type?: SortOrder
|
|
title?: SortOrderInput | SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
old_values?: SortOrderInput | SortOrder
|
|
new_values?: SortOrderInput | SortOrder
|
|
changed_fields?: SortOrderInput | SortOrder
|
|
is_internal?: SortOrderInput | SortOrder
|
|
is_system_generated?: SortOrderInput | SortOrder
|
|
attachments?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrder
|
|
notifications_sent?: SortOrderInput | SortOrder
|
|
notification_status?: SortOrderInput | SortOrder
|
|
incidents?: incidentsOrderByWithRelationInput
|
|
_relevance?: incident_updatesOrderByRelevanceInput
|
|
}
|
|
|
|
export type incident_updatesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: incident_updatesWhereInput | incident_updatesWhereInput[]
|
|
OR?: incident_updatesWhereInput[]
|
|
NOT?: incident_updatesWhereInput | incident_updatesWhereInput[]
|
|
incident_id?: StringFilter<"incident_updates"> | string
|
|
update_type?: StringFilter<"incident_updates"> | string
|
|
title?: StringNullableFilter<"incident_updates"> | string | null
|
|
description?: StringNullableFilter<"incident_updates"> | string | null
|
|
old_values?: JsonNullableFilter<"incident_updates">
|
|
new_values?: JsonNullableFilter<"incident_updates">
|
|
changed_fields?: JsonNullableFilter<"incident_updates">
|
|
is_internal?: BoolNullableFilter<"incident_updates"> | boolean | null
|
|
is_system_generated?: BoolNullableFilter<"incident_updates"> | boolean | null
|
|
attachments?: JsonNullableFilter<"incident_updates">
|
|
created_at?: DateTimeNullableFilter<"incident_updates"> | Date | string | null
|
|
created_by?: StringFilter<"incident_updates"> | string
|
|
notifications_sent?: JsonNullableFilter<"incident_updates">
|
|
notification_status?: StringNullableFilter<"incident_updates"> | string | null
|
|
incidents?: XOR<IncidentsScalarRelationFilter, incidentsWhereInput>
|
|
}, "id">
|
|
|
|
export type incident_updatesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
incident_id?: SortOrder
|
|
update_type?: SortOrder
|
|
title?: SortOrderInput | SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
old_values?: SortOrderInput | SortOrder
|
|
new_values?: SortOrderInput | SortOrder
|
|
changed_fields?: SortOrderInput | SortOrder
|
|
is_internal?: SortOrderInput | SortOrder
|
|
is_system_generated?: SortOrderInput | SortOrder
|
|
attachments?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrder
|
|
notifications_sent?: SortOrderInput | SortOrder
|
|
notification_status?: SortOrderInput | SortOrder
|
|
_count?: incident_updatesCountOrderByAggregateInput
|
|
_max?: incident_updatesMaxOrderByAggregateInput
|
|
_min?: incident_updatesMinOrderByAggregateInput
|
|
}
|
|
|
|
export type incident_updatesScalarWhereWithAggregatesInput = {
|
|
AND?: incident_updatesScalarWhereWithAggregatesInput | incident_updatesScalarWhereWithAggregatesInput[]
|
|
OR?: incident_updatesScalarWhereWithAggregatesInput[]
|
|
NOT?: incident_updatesScalarWhereWithAggregatesInput | incident_updatesScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"incident_updates"> | string
|
|
incident_id?: StringWithAggregatesFilter<"incident_updates"> | string
|
|
update_type?: StringWithAggregatesFilter<"incident_updates"> | string
|
|
title?: StringNullableWithAggregatesFilter<"incident_updates"> | string | null
|
|
description?: StringNullableWithAggregatesFilter<"incident_updates"> | string | null
|
|
old_values?: JsonNullableWithAggregatesFilter<"incident_updates">
|
|
new_values?: JsonNullableWithAggregatesFilter<"incident_updates">
|
|
changed_fields?: JsonNullableWithAggregatesFilter<"incident_updates">
|
|
is_internal?: BoolNullableWithAggregatesFilter<"incident_updates"> | boolean | null
|
|
is_system_generated?: BoolNullableWithAggregatesFilter<"incident_updates"> | boolean | null
|
|
attachments?: JsonNullableWithAggregatesFilter<"incident_updates">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"incident_updates"> | Date | string | null
|
|
created_by?: StringWithAggregatesFilter<"incident_updates"> | string
|
|
notifications_sent?: JsonNullableWithAggregatesFilter<"incident_updates">
|
|
notification_status?: StringNullableWithAggregatesFilter<"incident_updates"> | string | null
|
|
}
|
|
|
|
export type incidentsWhereInput = {
|
|
AND?: incidentsWhereInput | incidentsWhereInput[]
|
|
OR?: incidentsWhereInput[]
|
|
NOT?: incidentsWhereInput | incidentsWhereInput[]
|
|
id?: StringFilter<"incidents"> | string
|
|
incident_number?: StringFilter<"incidents"> | string
|
|
title?: StringFilter<"incidents"> | string
|
|
description?: StringNullableFilter<"incidents"> | string | null
|
|
type?: StringFilter<"incidents"> | string
|
|
severity?: StringFilter<"incidents"> | string
|
|
priority?: StringFilter<"incidents"> | string
|
|
status?: StringFilter<"incidents"> | string
|
|
location?: JsonFilter<"incidents">
|
|
coordinates_lat?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
address?: StringNullableFilter<"incidents"> | string | null
|
|
zone?: StringNullableFilter<"incidents"> | string | null
|
|
building?: StringNullableFilter<"incidents"> | string | null
|
|
floor?: StringNullableFilter<"incidents"> | string | null
|
|
room?: StringNullableFilter<"incidents"> | string | null
|
|
reported_by?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_name?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_contact?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_type?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_to?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_team?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
occurred_at?: DateTimeFilter<"incidents"> | Date | string
|
|
reported_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
resolved_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
closed_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
due_date?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
tags?: JsonNullableFilter<"incidents">
|
|
attachments?: JsonNullableFilter<"incidents">
|
|
evidence?: JsonNullableFilter<"incidents">
|
|
witnesses?: JsonNullableFilter<"incidents">
|
|
related_incidents?: JsonNullableFilter<"incidents">
|
|
camera_ids?: JsonNullableFilter<"incidents">
|
|
geofence_id?: StringNullableFilter<"incidents"> | string | null
|
|
alert_id?: StringNullableFilter<"incidents"> | string | null
|
|
metadata?: JsonNullableFilter<"incidents">
|
|
custom_fields?: JsonNullableFilter<"incidents">
|
|
created_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
created_by?: StringNullableFilter<"incidents"> | string | null
|
|
updated_by?: StringNullableFilter<"incidents"> | string | null
|
|
deleted_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
deleted_by?: StringNullableFilter<"incidents"> | string | null
|
|
alerts?: AlertsListRelationFilter
|
|
incident_updates?: Incident_updatesListRelationFilter
|
|
team_members_incidents_reported_byToteam_members?: XOR<Team_membersNullableScalarRelationFilter, team_membersWhereInput> | null
|
|
team_members_incidents_assigned_toToteam_members?: XOR<Team_membersNullableScalarRelationFilter, team_membersWhereInput> | null
|
|
geofences?: XOR<GeofencesNullableScalarRelationFilter, geofencesWhereInput> | null
|
|
}
|
|
|
|
export type incidentsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
incident_number?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
type?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
location?: SortOrder
|
|
coordinates_lat?: SortOrderInput | SortOrder
|
|
coordinates_lng?: SortOrderInput | SortOrder
|
|
address?: SortOrderInput | SortOrder
|
|
zone?: SortOrderInput | SortOrder
|
|
building?: SortOrderInput | SortOrder
|
|
floor?: SortOrderInput | SortOrder
|
|
room?: SortOrderInput | SortOrder
|
|
reported_by?: SortOrderInput | SortOrder
|
|
reporter_name?: SortOrderInput | SortOrder
|
|
reporter_contact?: SortOrderInput | SortOrder
|
|
reporter_type?: SortOrderInput | SortOrder
|
|
assigned_to?: SortOrderInput | SortOrder
|
|
assigned_team?: SortOrderInput | SortOrder
|
|
assigned_at?: SortOrderInput | SortOrder
|
|
occurred_at?: SortOrder
|
|
reported_at?: SortOrderInput | SortOrder
|
|
acknowledged_at?: SortOrderInput | SortOrder
|
|
resolved_at?: SortOrderInput | SortOrder
|
|
closed_at?: SortOrderInput | SortOrder
|
|
due_date?: SortOrderInput | SortOrder
|
|
tags?: SortOrderInput | SortOrder
|
|
attachments?: SortOrderInput | SortOrder
|
|
evidence?: SortOrderInput | SortOrder
|
|
witnesses?: SortOrderInput | SortOrder
|
|
related_incidents?: SortOrderInput | SortOrder
|
|
camera_ids?: SortOrderInput | SortOrder
|
|
geofence_id?: SortOrderInput | SortOrder
|
|
alert_id?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
custom_fields?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
deleted_at?: SortOrderInput | SortOrder
|
|
deleted_by?: SortOrderInput | SortOrder
|
|
alerts?: alertsOrderByRelationAggregateInput
|
|
incident_updates?: incident_updatesOrderByRelationAggregateInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersOrderByWithRelationInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersOrderByWithRelationInput
|
|
geofences?: geofencesOrderByWithRelationInput
|
|
_relevance?: incidentsOrderByRelevanceInput
|
|
}
|
|
|
|
export type incidentsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
incident_number?: string
|
|
AND?: incidentsWhereInput | incidentsWhereInput[]
|
|
OR?: incidentsWhereInput[]
|
|
NOT?: incidentsWhereInput | incidentsWhereInput[]
|
|
title?: StringFilter<"incidents"> | string
|
|
description?: StringNullableFilter<"incidents"> | string | null
|
|
type?: StringFilter<"incidents"> | string
|
|
severity?: StringFilter<"incidents"> | string
|
|
priority?: StringFilter<"incidents"> | string
|
|
status?: StringFilter<"incidents"> | string
|
|
location?: JsonFilter<"incidents">
|
|
coordinates_lat?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
address?: StringNullableFilter<"incidents"> | string | null
|
|
zone?: StringNullableFilter<"incidents"> | string | null
|
|
building?: StringNullableFilter<"incidents"> | string | null
|
|
floor?: StringNullableFilter<"incidents"> | string | null
|
|
room?: StringNullableFilter<"incidents"> | string | null
|
|
reported_by?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_name?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_contact?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_type?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_to?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_team?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
occurred_at?: DateTimeFilter<"incidents"> | Date | string
|
|
reported_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
resolved_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
closed_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
due_date?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
tags?: JsonNullableFilter<"incidents">
|
|
attachments?: JsonNullableFilter<"incidents">
|
|
evidence?: JsonNullableFilter<"incidents">
|
|
witnesses?: JsonNullableFilter<"incidents">
|
|
related_incidents?: JsonNullableFilter<"incidents">
|
|
camera_ids?: JsonNullableFilter<"incidents">
|
|
geofence_id?: StringNullableFilter<"incidents"> | string | null
|
|
alert_id?: StringNullableFilter<"incidents"> | string | null
|
|
metadata?: JsonNullableFilter<"incidents">
|
|
custom_fields?: JsonNullableFilter<"incidents">
|
|
created_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
created_by?: StringNullableFilter<"incidents"> | string | null
|
|
updated_by?: StringNullableFilter<"incidents"> | string | null
|
|
deleted_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
deleted_by?: StringNullableFilter<"incidents"> | string | null
|
|
alerts?: AlertsListRelationFilter
|
|
incident_updates?: Incident_updatesListRelationFilter
|
|
team_members_incidents_reported_byToteam_members?: XOR<Team_membersNullableScalarRelationFilter, team_membersWhereInput> | null
|
|
team_members_incidents_assigned_toToteam_members?: XOR<Team_membersNullableScalarRelationFilter, team_membersWhereInput> | null
|
|
geofences?: XOR<GeofencesNullableScalarRelationFilter, geofencesWhereInput> | null
|
|
}, "id" | "incident_number">
|
|
|
|
export type incidentsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
incident_number?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
type?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
location?: SortOrder
|
|
coordinates_lat?: SortOrderInput | SortOrder
|
|
coordinates_lng?: SortOrderInput | SortOrder
|
|
address?: SortOrderInput | SortOrder
|
|
zone?: SortOrderInput | SortOrder
|
|
building?: SortOrderInput | SortOrder
|
|
floor?: SortOrderInput | SortOrder
|
|
room?: SortOrderInput | SortOrder
|
|
reported_by?: SortOrderInput | SortOrder
|
|
reporter_name?: SortOrderInput | SortOrder
|
|
reporter_contact?: SortOrderInput | SortOrder
|
|
reporter_type?: SortOrderInput | SortOrder
|
|
assigned_to?: SortOrderInput | SortOrder
|
|
assigned_team?: SortOrderInput | SortOrder
|
|
assigned_at?: SortOrderInput | SortOrder
|
|
occurred_at?: SortOrder
|
|
reported_at?: SortOrderInput | SortOrder
|
|
acknowledged_at?: SortOrderInput | SortOrder
|
|
resolved_at?: SortOrderInput | SortOrder
|
|
closed_at?: SortOrderInput | SortOrder
|
|
due_date?: SortOrderInput | SortOrder
|
|
tags?: SortOrderInput | SortOrder
|
|
attachments?: SortOrderInput | SortOrder
|
|
evidence?: SortOrderInput | SortOrder
|
|
witnesses?: SortOrderInput | SortOrder
|
|
related_incidents?: SortOrderInput | SortOrder
|
|
camera_ids?: SortOrderInput | SortOrder
|
|
geofence_id?: SortOrderInput | SortOrder
|
|
alert_id?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
custom_fields?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
deleted_at?: SortOrderInput | SortOrder
|
|
deleted_by?: SortOrderInput | SortOrder
|
|
_count?: incidentsCountOrderByAggregateInput
|
|
_avg?: incidentsAvgOrderByAggregateInput
|
|
_max?: incidentsMaxOrderByAggregateInput
|
|
_min?: incidentsMinOrderByAggregateInput
|
|
_sum?: incidentsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type incidentsScalarWhereWithAggregatesInput = {
|
|
AND?: incidentsScalarWhereWithAggregatesInput | incidentsScalarWhereWithAggregatesInput[]
|
|
OR?: incidentsScalarWhereWithAggregatesInput[]
|
|
NOT?: incidentsScalarWhereWithAggregatesInput | incidentsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"incidents"> | string
|
|
incident_number?: StringWithAggregatesFilter<"incidents"> | string
|
|
title?: StringWithAggregatesFilter<"incidents"> | string
|
|
description?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
type?: StringWithAggregatesFilter<"incidents"> | string
|
|
severity?: StringWithAggregatesFilter<"incidents"> | string
|
|
priority?: StringWithAggregatesFilter<"incidents"> | string
|
|
status?: StringWithAggregatesFilter<"incidents"> | string
|
|
location?: JsonWithAggregatesFilter<"incidents">
|
|
coordinates_lat?: DecimalNullableWithAggregatesFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableWithAggregatesFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
address?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
zone?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
building?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
floor?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
room?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
reported_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
reporter_name?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
reporter_contact?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
reporter_type?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
assigned_to?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
assigned_team?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
assigned_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
occurred_at?: DateTimeWithAggregatesFilter<"incidents"> | Date | string
|
|
reported_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
resolved_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
closed_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
due_date?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
tags?: JsonNullableWithAggregatesFilter<"incidents">
|
|
attachments?: JsonNullableWithAggregatesFilter<"incidents">
|
|
evidence?: JsonNullableWithAggregatesFilter<"incidents">
|
|
witnesses?: JsonNullableWithAggregatesFilter<"incidents">
|
|
related_incidents?: JsonNullableWithAggregatesFilter<"incidents">
|
|
camera_ids?: JsonNullableWithAggregatesFilter<"incidents">
|
|
geofence_id?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
alert_id?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
metadata?: JsonNullableWithAggregatesFilter<"incidents">
|
|
custom_fields?: JsonNullableWithAggregatesFilter<"incidents">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
created_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
deleted_at?: DateTimeNullableWithAggregatesFilter<"incidents"> | Date | string | null
|
|
deleted_by?: StringNullableWithAggregatesFilter<"incidents"> | string | null
|
|
}
|
|
|
|
export type ktp_validation_auditWhereInput = {
|
|
AND?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[]
|
|
OR?: ktp_validation_auditWhereInput[]
|
|
NOT?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[]
|
|
id?: StringFilter<"ktp_validation_audit"> | string
|
|
ktp_data_id?: StringFilter<"ktp_validation_audit"> | string
|
|
action?: Enumktp_validation_audit_actionFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action
|
|
old_values?: JsonNullableFilter<"ktp_validation_audit">
|
|
new_values?: JsonNullableFilter<"ktp_validation_audit">
|
|
performed_by?: StringFilter<"ktp_validation_audit"> | string
|
|
ip_address?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
user_agent?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
reason?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
created_at?: DateTimeFilter<"ktp_validation_audit"> | Date | string
|
|
metadata?: JsonNullableFilter<"ktp_validation_audit">
|
|
visitor_ktp_data?: XOR<Visitor_ktp_dataScalarRelationFilter, visitor_ktp_dataWhereInput>
|
|
}
|
|
|
|
export type ktp_validation_auditOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
ktp_data_id?: SortOrder
|
|
action?: SortOrder
|
|
old_values?: SortOrderInput | SortOrder
|
|
new_values?: SortOrderInput | SortOrder
|
|
performed_by?: SortOrder
|
|
ip_address?: SortOrderInput | SortOrder
|
|
user_agent?: SortOrderInput | SortOrder
|
|
reason?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
visitor_ktp_data?: visitor_ktp_dataOrderByWithRelationInput
|
|
_relevance?: ktp_validation_auditOrderByRelevanceInput
|
|
}
|
|
|
|
export type ktp_validation_auditWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[]
|
|
OR?: ktp_validation_auditWhereInput[]
|
|
NOT?: ktp_validation_auditWhereInput | ktp_validation_auditWhereInput[]
|
|
ktp_data_id?: StringFilter<"ktp_validation_audit"> | string
|
|
action?: Enumktp_validation_audit_actionFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action
|
|
old_values?: JsonNullableFilter<"ktp_validation_audit">
|
|
new_values?: JsonNullableFilter<"ktp_validation_audit">
|
|
performed_by?: StringFilter<"ktp_validation_audit"> | string
|
|
ip_address?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
user_agent?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
reason?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
created_at?: DateTimeFilter<"ktp_validation_audit"> | Date | string
|
|
metadata?: JsonNullableFilter<"ktp_validation_audit">
|
|
visitor_ktp_data?: XOR<Visitor_ktp_dataScalarRelationFilter, visitor_ktp_dataWhereInput>
|
|
}, "id">
|
|
|
|
export type ktp_validation_auditOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
ktp_data_id?: SortOrder
|
|
action?: SortOrder
|
|
old_values?: SortOrderInput | SortOrder
|
|
new_values?: SortOrderInput | SortOrder
|
|
performed_by?: SortOrder
|
|
ip_address?: SortOrderInput | SortOrder
|
|
user_agent?: SortOrderInput | SortOrder
|
|
reason?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
_count?: ktp_validation_auditCountOrderByAggregateInput
|
|
_max?: ktp_validation_auditMaxOrderByAggregateInput
|
|
_min?: ktp_validation_auditMinOrderByAggregateInput
|
|
}
|
|
|
|
export type ktp_validation_auditScalarWhereWithAggregatesInput = {
|
|
AND?: ktp_validation_auditScalarWhereWithAggregatesInput | ktp_validation_auditScalarWhereWithAggregatesInput[]
|
|
OR?: ktp_validation_auditScalarWhereWithAggregatesInput[]
|
|
NOT?: ktp_validation_auditScalarWhereWithAggregatesInput | ktp_validation_auditScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"ktp_validation_audit"> | string
|
|
ktp_data_id?: StringWithAggregatesFilter<"ktp_validation_audit"> | string
|
|
action?: Enumktp_validation_audit_actionWithAggregatesFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action
|
|
old_values?: JsonNullableWithAggregatesFilter<"ktp_validation_audit">
|
|
new_values?: JsonNullableWithAggregatesFilter<"ktp_validation_audit">
|
|
performed_by?: StringWithAggregatesFilter<"ktp_validation_audit"> | string
|
|
ip_address?: StringNullableWithAggregatesFilter<"ktp_validation_audit"> | string | null
|
|
user_agent?: StringNullableWithAggregatesFilter<"ktp_validation_audit"> | string | null
|
|
reason?: StringNullableWithAggregatesFilter<"ktp_validation_audit"> | string | null
|
|
created_at?: DateTimeWithAggregatesFilter<"ktp_validation_audit"> | Date | string
|
|
metadata?: JsonNullableWithAggregatesFilter<"ktp_validation_audit">
|
|
}
|
|
|
|
export type map_pinsWhereInput = {
|
|
AND?: map_pinsWhereInput | map_pinsWhereInput[]
|
|
OR?: map_pinsWhereInput[]
|
|
NOT?: map_pinsWhereInput | map_pinsWhereInput[]
|
|
id?: StringFilter<"map_pins"> | string
|
|
type?: StringFilter<"map_pins"> | string
|
|
coordinates?: JsonNullableFilter<"map_pins">
|
|
title?: StringFilter<"map_pins"> | string
|
|
description?: StringNullableFilter<"map_pins"> | string | null
|
|
status?: StringNullableFilter<"map_pins"> | string | null
|
|
priority?: StringNullableFilter<"map_pins"> | string | null
|
|
icon_type?: StringNullableFilter<"map_pins"> | string | null
|
|
icon_color?: StringNullableFilter<"map_pins"> | string | null
|
|
size?: StringNullableFilter<"map_pins"> | string | null
|
|
is_visible?: BoolNullableFilter<"map_pins"> | boolean | null
|
|
is_clickable?: BoolNullableFilter<"map_pins"> | boolean | null
|
|
metadata?: JsonNullableFilter<"map_pins">
|
|
alert_id?: StringNullableFilter<"map_pins"> | string | null
|
|
incident_id?: StringNullableFilter<"map_pins"> | string | null
|
|
team_member_id?: StringNullableFilter<"map_pins"> | string | null
|
|
camera_id?: StringNullableFilter<"map_pins"> | string | null
|
|
geofence_id?: StringNullableFilter<"map_pins"> | string | null
|
|
created_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null
|
|
created_by?: StringNullableFilter<"map_pins"> | string | null
|
|
updated_by?: StringNullableFilter<"map_pins"> | string | null
|
|
geofences?: XOR<GeofencesNullableScalarRelationFilter, geofencesWhereInput> | null
|
|
}
|
|
|
|
export type map_pinsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
coordinates?: SortOrderInput | SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
priority?: SortOrderInput | SortOrder
|
|
icon_type?: SortOrderInput | SortOrder
|
|
icon_color?: SortOrderInput | SortOrder
|
|
size?: SortOrderInput | SortOrder
|
|
is_visible?: SortOrderInput | SortOrder
|
|
is_clickable?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
alert_id?: SortOrderInput | SortOrder
|
|
incident_id?: SortOrderInput | SortOrder
|
|
team_member_id?: SortOrderInput | SortOrder
|
|
camera_id?: SortOrderInput | SortOrder
|
|
geofence_id?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
geofences?: geofencesOrderByWithRelationInput
|
|
_relevance?: map_pinsOrderByRelevanceInput
|
|
}
|
|
|
|
export type map_pinsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: map_pinsWhereInput | map_pinsWhereInput[]
|
|
OR?: map_pinsWhereInput[]
|
|
NOT?: map_pinsWhereInput | map_pinsWhereInput[]
|
|
type?: StringFilter<"map_pins"> | string
|
|
coordinates?: JsonNullableFilter<"map_pins">
|
|
title?: StringFilter<"map_pins"> | string
|
|
description?: StringNullableFilter<"map_pins"> | string | null
|
|
status?: StringNullableFilter<"map_pins"> | string | null
|
|
priority?: StringNullableFilter<"map_pins"> | string | null
|
|
icon_type?: StringNullableFilter<"map_pins"> | string | null
|
|
icon_color?: StringNullableFilter<"map_pins"> | string | null
|
|
size?: StringNullableFilter<"map_pins"> | string | null
|
|
is_visible?: BoolNullableFilter<"map_pins"> | boolean | null
|
|
is_clickable?: BoolNullableFilter<"map_pins"> | boolean | null
|
|
metadata?: JsonNullableFilter<"map_pins">
|
|
alert_id?: StringNullableFilter<"map_pins"> | string | null
|
|
incident_id?: StringNullableFilter<"map_pins"> | string | null
|
|
team_member_id?: StringNullableFilter<"map_pins"> | string | null
|
|
camera_id?: StringNullableFilter<"map_pins"> | string | null
|
|
geofence_id?: StringNullableFilter<"map_pins"> | string | null
|
|
created_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null
|
|
created_by?: StringNullableFilter<"map_pins"> | string | null
|
|
updated_by?: StringNullableFilter<"map_pins"> | string | null
|
|
geofences?: XOR<GeofencesNullableScalarRelationFilter, geofencesWhereInput> | null
|
|
}, "id">
|
|
|
|
export type map_pinsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
coordinates?: SortOrderInput | SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
priority?: SortOrderInput | SortOrder
|
|
icon_type?: SortOrderInput | SortOrder
|
|
icon_color?: SortOrderInput | SortOrder
|
|
size?: SortOrderInput | SortOrder
|
|
is_visible?: SortOrderInput | SortOrder
|
|
is_clickable?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
alert_id?: SortOrderInput | SortOrder
|
|
incident_id?: SortOrderInput | SortOrder
|
|
team_member_id?: SortOrderInput | SortOrder
|
|
camera_id?: SortOrderInput | SortOrder
|
|
geofence_id?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
_count?: map_pinsCountOrderByAggregateInput
|
|
_max?: map_pinsMaxOrderByAggregateInput
|
|
_min?: map_pinsMinOrderByAggregateInput
|
|
}
|
|
|
|
export type map_pinsScalarWhereWithAggregatesInput = {
|
|
AND?: map_pinsScalarWhereWithAggregatesInput | map_pinsScalarWhereWithAggregatesInput[]
|
|
OR?: map_pinsScalarWhereWithAggregatesInput[]
|
|
NOT?: map_pinsScalarWhereWithAggregatesInput | map_pinsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"map_pins"> | string
|
|
type?: StringWithAggregatesFilter<"map_pins"> | string
|
|
coordinates?: JsonNullableWithAggregatesFilter<"map_pins">
|
|
title?: StringWithAggregatesFilter<"map_pins"> | string
|
|
description?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
status?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
priority?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
icon_type?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
icon_color?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
size?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
is_visible?: BoolNullableWithAggregatesFilter<"map_pins"> | boolean | null
|
|
is_clickable?: BoolNullableWithAggregatesFilter<"map_pins"> | boolean | null
|
|
metadata?: JsonNullableWithAggregatesFilter<"map_pins">
|
|
alert_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
incident_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
team_member_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
camera_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
geofence_id?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"map_pins"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"map_pins"> | Date | string | null
|
|
created_by?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"map_pins"> | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesWhereInput = {
|
|
AND?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[]
|
|
OR?: perumahan_facilitiesWhereInput[]
|
|
NOT?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[]
|
|
id?: IntFilter<"perumahan_facilities"> | number
|
|
name?: StringFilter<"perumahan_facilities"> | string
|
|
type?: StringFilter<"perumahan_facilities"> | string
|
|
description?: StringNullableFilter<"perumahan_facilities"> | string | null
|
|
location?: StringFilter<"perumahan_facilities"> | string
|
|
lat?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string
|
|
status?: Enumperumahan_facilities_statusNullableFilter<"perumahan_facilities"> | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: JsonNullableFilter<"perumahan_facilities">
|
|
contact_info?: JsonNullableFilter<"perumahan_facilities">
|
|
created_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
operating_hours?: SortOrderInput | SortOrder
|
|
contact_info?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_relevance?: perumahan_facilitiesOrderByRelevanceInput
|
|
}
|
|
|
|
export type perumahan_facilitiesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[]
|
|
OR?: perumahan_facilitiesWhereInput[]
|
|
NOT?: perumahan_facilitiesWhereInput | perumahan_facilitiesWhereInput[]
|
|
name?: StringFilter<"perumahan_facilities"> | string
|
|
type?: StringFilter<"perumahan_facilities"> | string
|
|
description?: StringNullableFilter<"perumahan_facilities"> | string | null
|
|
location?: StringFilter<"perumahan_facilities"> | string
|
|
lat?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string
|
|
status?: Enumperumahan_facilities_statusNullableFilter<"perumahan_facilities"> | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: JsonNullableFilter<"perumahan_facilities">
|
|
contact_info?: JsonNullableFilter<"perumahan_facilities">
|
|
created_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"perumahan_facilities"> | Date | string | null
|
|
}, "id">
|
|
|
|
export type perumahan_facilitiesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
operating_hours?: SortOrderInput | SortOrder
|
|
contact_info?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: perumahan_facilitiesCountOrderByAggregateInput
|
|
_avg?: perumahan_facilitiesAvgOrderByAggregateInput
|
|
_max?: perumahan_facilitiesMaxOrderByAggregateInput
|
|
_min?: perumahan_facilitiesMinOrderByAggregateInput
|
|
_sum?: perumahan_facilitiesSumOrderByAggregateInput
|
|
}
|
|
|
|
export type perumahan_facilitiesScalarWhereWithAggregatesInput = {
|
|
AND?: perumahan_facilitiesScalarWhereWithAggregatesInput | perumahan_facilitiesScalarWhereWithAggregatesInput[]
|
|
OR?: perumahan_facilitiesScalarWhereWithAggregatesInput[]
|
|
NOT?: perumahan_facilitiesScalarWhereWithAggregatesInput | perumahan_facilitiesScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"perumahan_facilities"> | number
|
|
name?: StringWithAggregatesFilter<"perumahan_facilities"> | string
|
|
type?: StringWithAggregatesFilter<"perumahan_facilities"> | string
|
|
description?: StringNullableWithAggregatesFilter<"perumahan_facilities"> | string | null
|
|
location?: StringWithAggregatesFilter<"perumahan_facilities"> | string
|
|
lat?: DecimalWithAggregatesFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalWithAggregatesFilter<"perumahan_facilities"> | Decimal | DecimalJsLike | number | string
|
|
status?: Enumperumahan_facilities_statusNullableWithAggregatesFilter<"perumahan_facilities"> | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: JsonNullableWithAggregatesFilter<"perumahan_facilities">
|
|
contact_info?: JsonNullableWithAggregatesFilter<"perumahan_facilities">
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"perumahan_facilities"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"perumahan_facilities"> | Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoWhereInput = {
|
|
AND?: perumahan_infoWhereInput | perumahan_infoWhereInput[]
|
|
OR?: perumahan_infoWhereInput[]
|
|
NOT?: perumahan_infoWhereInput | perumahan_infoWhereInput[]
|
|
id?: IntFilter<"perumahan_info"> | number
|
|
name?: StringFilter<"perumahan_info"> | string
|
|
total_units?: IntFilter<"perumahan_info"> | number
|
|
clusters?: JsonFilter<"perumahan_info">
|
|
address?: StringNullableFilter<"perumahan_info"> | string | null
|
|
created_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
total_units?: SortOrder
|
|
clusters?: SortOrder
|
|
address?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_relevance?: perumahan_infoOrderByRelevanceInput
|
|
}
|
|
|
|
export type perumahan_infoWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: perumahan_infoWhereInput | perumahan_infoWhereInput[]
|
|
OR?: perumahan_infoWhereInput[]
|
|
NOT?: perumahan_infoWhereInput | perumahan_infoWhereInput[]
|
|
name?: StringFilter<"perumahan_info"> | string
|
|
total_units?: IntFilter<"perumahan_info"> | number
|
|
clusters?: JsonFilter<"perumahan_info">
|
|
address?: StringNullableFilter<"perumahan_info"> | string | null
|
|
created_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"perumahan_info"> | Date | string | null
|
|
}, "id">
|
|
|
|
export type perumahan_infoOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
total_units?: SortOrder
|
|
clusters?: SortOrder
|
|
address?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: perumahan_infoCountOrderByAggregateInput
|
|
_avg?: perumahan_infoAvgOrderByAggregateInput
|
|
_max?: perumahan_infoMaxOrderByAggregateInput
|
|
_min?: perumahan_infoMinOrderByAggregateInput
|
|
_sum?: perumahan_infoSumOrderByAggregateInput
|
|
}
|
|
|
|
export type perumahan_infoScalarWhereWithAggregatesInput = {
|
|
AND?: perumahan_infoScalarWhereWithAggregatesInput | perumahan_infoScalarWhereWithAggregatesInput[]
|
|
OR?: perumahan_infoScalarWhereWithAggregatesInput[]
|
|
NOT?: perumahan_infoScalarWhereWithAggregatesInput | perumahan_infoScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"perumahan_info"> | number
|
|
name?: StringWithAggregatesFilter<"perumahan_info"> | string
|
|
total_units?: IntWithAggregatesFilter<"perumahan_info"> | number
|
|
clusters?: JsonWithAggregatesFilter<"perumahan_info">
|
|
address?: StringNullableWithAggregatesFilter<"perumahan_info"> | string | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"perumahan_info"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"perumahan_info"> | Date | string | null
|
|
}
|
|
|
|
export type qr_codesWhereInput = {
|
|
AND?: qr_codesWhereInput | qr_codesWhereInput[]
|
|
OR?: qr_codesWhereInput[]
|
|
NOT?: qr_codesWhereInput | qr_codesWhereInput[]
|
|
id?: StringFilter<"qr_codes"> | string
|
|
entry_point?: StringFilter<"qr_codes"> | string
|
|
qr_data?: StringFilter<"qr_codes"> | string
|
|
location_lat?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFilter<"qr_codes"> | number
|
|
is_active?: BoolFilter<"qr_codes"> | boolean
|
|
description?: StringNullableFilter<"qr_codes"> | string | null
|
|
max_daily_registrations?: IntNullableFilter<"qr_codes"> | number | null
|
|
operating_hours?: JsonNullableFilter<"qr_codes">
|
|
security_level?: Enumqr_codes_security_levelFilter<"qr_codes"> | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFilter<"qr_codes"> | boolean
|
|
auto_approve_roles?: JsonNullableFilter<"qr_codes">
|
|
metadata?: JsonNullableFilter<"qr_codes">
|
|
last_used_at?: DateTimeNullableFilter<"qr_codes"> | Date | string | null
|
|
usage_count?: IntFilter<"qr_codes"> | number
|
|
created_by?: StringNullableFilter<"qr_codes"> | string | null
|
|
updated_by?: StringNullableFilter<"qr_codes"> | string | null
|
|
created_at?: DateTimeFilter<"qr_codes"> | Date | string
|
|
updated_at?: DateTimeFilter<"qr_codes"> | Date | string
|
|
visitor_registrations?: Visitor_registrationsListRelationFilter
|
|
}
|
|
|
|
export type qr_codesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
entry_point?: SortOrder
|
|
qr_data?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
is_active?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
max_daily_registrations?: SortOrderInput | SortOrder
|
|
operating_hours?: SortOrderInput | SortOrder
|
|
security_level?: SortOrder
|
|
requires_approval?: SortOrder
|
|
auto_approve_roles?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
last_used_at?: SortOrderInput | SortOrder
|
|
usage_count?: SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
visitor_registrations?: visitor_registrationsOrderByRelationAggregateInput
|
|
_relevance?: qr_codesOrderByRelevanceInput
|
|
}
|
|
|
|
export type qr_codesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
qr_data?: string
|
|
AND?: qr_codesWhereInput | qr_codesWhereInput[]
|
|
OR?: qr_codesWhereInput[]
|
|
NOT?: qr_codesWhereInput | qr_codesWhereInput[]
|
|
entry_point?: StringFilter<"qr_codes"> | string
|
|
location_lat?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFilter<"qr_codes"> | number
|
|
is_active?: BoolFilter<"qr_codes"> | boolean
|
|
description?: StringNullableFilter<"qr_codes"> | string | null
|
|
max_daily_registrations?: IntNullableFilter<"qr_codes"> | number | null
|
|
operating_hours?: JsonNullableFilter<"qr_codes">
|
|
security_level?: Enumqr_codes_security_levelFilter<"qr_codes"> | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFilter<"qr_codes"> | boolean
|
|
auto_approve_roles?: JsonNullableFilter<"qr_codes">
|
|
metadata?: JsonNullableFilter<"qr_codes">
|
|
last_used_at?: DateTimeNullableFilter<"qr_codes"> | Date | string | null
|
|
usage_count?: IntFilter<"qr_codes"> | number
|
|
created_by?: StringNullableFilter<"qr_codes"> | string | null
|
|
updated_by?: StringNullableFilter<"qr_codes"> | string | null
|
|
created_at?: DateTimeFilter<"qr_codes"> | Date | string
|
|
updated_at?: DateTimeFilter<"qr_codes"> | Date | string
|
|
visitor_registrations?: Visitor_registrationsListRelationFilter
|
|
}, "id" | "qr_data">
|
|
|
|
export type qr_codesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
entry_point?: SortOrder
|
|
qr_data?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
is_active?: SortOrder
|
|
description?: SortOrderInput | SortOrder
|
|
max_daily_registrations?: SortOrderInput | SortOrder
|
|
operating_hours?: SortOrderInput | SortOrder
|
|
security_level?: SortOrder
|
|
requires_approval?: SortOrder
|
|
auto_approve_roles?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
last_used_at?: SortOrderInput | SortOrder
|
|
usage_count?: SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
_count?: qr_codesCountOrderByAggregateInput
|
|
_avg?: qr_codesAvgOrderByAggregateInput
|
|
_max?: qr_codesMaxOrderByAggregateInput
|
|
_min?: qr_codesMinOrderByAggregateInput
|
|
_sum?: qr_codesSumOrderByAggregateInput
|
|
}
|
|
|
|
export type qr_codesScalarWhereWithAggregatesInput = {
|
|
AND?: qr_codesScalarWhereWithAggregatesInput | qr_codesScalarWhereWithAggregatesInput[]
|
|
OR?: qr_codesScalarWhereWithAggregatesInput[]
|
|
NOT?: qr_codesScalarWhereWithAggregatesInput | qr_codesScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"qr_codes"> | string
|
|
entry_point?: StringWithAggregatesFilter<"qr_codes"> | string
|
|
qr_data?: StringWithAggregatesFilter<"qr_codes"> | string
|
|
location_lat?: DecimalWithAggregatesFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalWithAggregatesFilter<"qr_codes"> | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntWithAggregatesFilter<"qr_codes"> | number
|
|
is_active?: BoolWithAggregatesFilter<"qr_codes"> | boolean
|
|
description?: StringNullableWithAggregatesFilter<"qr_codes"> | string | null
|
|
max_daily_registrations?: IntNullableWithAggregatesFilter<"qr_codes"> | number | null
|
|
operating_hours?: JsonNullableWithAggregatesFilter<"qr_codes">
|
|
security_level?: Enumqr_codes_security_levelWithAggregatesFilter<"qr_codes"> | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolWithAggregatesFilter<"qr_codes"> | boolean
|
|
auto_approve_roles?: JsonNullableWithAggregatesFilter<"qr_codes">
|
|
metadata?: JsonNullableWithAggregatesFilter<"qr_codes">
|
|
last_used_at?: DateTimeNullableWithAggregatesFilter<"qr_codes"> | Date | string | null
|
|
usage_count?: IntWithAggregatesFilter<"qr_codes"> | number
|
|
created_by?: StringNullableWithAggregatesFilter<"qr_codes"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"qr_codes"> | string | null
|
|
created_at?: DateTimeWithAggregatesFilter<"qr_codes"> | Date | string
|
|
updated_at?: DateTimeWithAggregatesFilter<"qr_codes"> | Date | string
|
|
}
|
|
|
|
export type security_activitiesWhereInput = {
|
|
AND?: security_activitiesWhereInput | security_activitiesWhereInput[]
|
|
OR?: security_activitiesWhereInput[]
|
|
NOT?: security_activitiesWhereInput | security_activitiesWhereInput[]
|
|
id?: IntFilter<"security_activities"> | number
|
|
type?: StringFilter<"security_activities"> | string
|
|
ref_id?: StringNullableFilter<"security_activities"> | string | null
|
|
actor?: StringFilter<"security_activities"> | string
|
|
note?: StringFilter<"security_activities"> | string
|
|
severity?: Enumsecurity_activities_severityNullableFilter<"security_activities"> | $Enums.security_activities_severity | null
|
|
timestamp?: DateTimeNullableFilter<"security_activities"> | Date | string | null
|
|
metadata?: JsonNullableFilter<"security_activities">
|
|
source?: StringNullableFilter<"security_activities"> | string | null
|
|
}
|
|
|
|
export type security_activitiesOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
ref_id?: SortOrderInput | SortOrder
|
|
actor?: SortOrder
|
|
note?: SortOrder
|
|
severity?: SortOrderInput | SortOrder
|
|
timestamp?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
source?: SortOrderInput | SortOrder
|
|
_relevance?: security_activitiesOrderByRelevanceInput
|
|
}
|
|
|
|
export type security_activitiesWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: security_activitiesWhereInput | security_activitiesWhereInput[]
|
|
OR?: security_activitiesWhereInput[]
|
|
NOT?: security_activitiesWhereInput | security_activitiesWhereInput[]
|
|
type?: StringFilter<"security_activities"> | string
|
|
ref_id?: StringNullableFilter<"security_activities"> | string | null
|
|
actor?: StringFilter<"security_activities"> | string
|
|
note?: StringFilter<"security_activities"> | string
|
|
severity?: Enumsecurity_activities_severityNullableFilter<"security_activities"> | $Enums.security_activities_severity | null
|
|
timestamp?: DateTimeNullableFilter<"security_activities"> | Date | string | null
|
|
metadata?: JsonNullableFilter<"security_activities">
|
|
source?: StringNullableFilter<"security_activities"> | string | null
|
|
}, "id">
|
|
|
|
export type security_activitiesOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
ref_id?: SortOrderInput | SortOrder
|
|
actor?: SortOrder
|
|
note?: SortOrder
|
|
severity?: SortOrderInput | SortOrder
|
|
timestamp?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
source?: SortOrderInput | SortOrder
|
|
_count?: security_activitiesCountOrderByAggregateInput
|
|
_avg?: security_activitiesAvgOrderByAggregateInput
|
|
_max?: security_activitiesMaxOrderByAggregateInput
|
|
_min?: security_activitiesMinOrderByAggregateInput
|
|
_sum?: security_activitiesSumOrderByAggregateInput
|
|
}
|
|
|
|
export type security_activitiesScalarWhereWithAggregatesInput = {
|
|
AND?: security_activitiesScalarWhereWithAggregatesInput | security_activitiesScalarWhereWithAggregatesInput[]
|
|
OR?: security_activitiesScalarWhereWithAggregatesInput[]
|
|
NOT?: security_activitiesScalarWhereWithAggregatesInput | security_activitiesScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"security_activities"> | number
|
|
type?: StringWithAggregatesFilter<"security_activities"> | string
|
|
ref_id?: StringNullableWithAggregatesFilter<"security_activities"> | string | null
|
|
actor?: StringWithAggregatesFilter<"security_activities"> | string
|
|
note?: StringWithAggregatesFilter<"security_activities"> | string
|
|
severity?: Enumsecurity_activities_severityNullableWithAggregatesFilter<"security_activities"> | $Enums.security_activities_severity | null
|
|
timestamp?: DateTimeNullableWithAggregatesFilter<"security_activities"> | Date | string | null
|
|
metadata?: JsonNullableWithAggregatesFilter<"security_activities">
|
|
source?: StringNullableWithAggregatesFilter<"security_activities"> | string | null
|
|
}
|
|
|
|
export type sequelizemetaWhereInput = {
|
|
AND?: sequelizemetaWhereInput | sequelizemetaWhereInput[]
|
|
OR?: sequelizemetaWhereInput[]
|
|
NOT?: sequelizemetaWhereInput | sequelizemetaWhereInput[]
|
|
name?: StringFilter<"sequelizemeta"> | string
|
|
}
|
|
|
|
export type sequelizemetaOrderByWithRelationInput = {
|
|
name?: SortOrder
|
|
_relevance?: sequelizemetaOrderByRelevanceInput
|
|
}
|
|
|
|
export type sequelizemetaWhereUniqueInput = Prisma.AtLeast<{
|
|
name?: string
|
|
AND?: sequelizemetaWhereInput | sequelizemetaWhereInput[]
|
|
OR?: sequelizemetaWhereInput[]
|
|
NOT?: sequelizemetaWhereInput | sequelizemetaWhereInput[]
|
|
}, "name" | "name">
|
|
|
|
export type sequelizemetaOrderByWithAggregationInput = {
|
|
name?: SortOrder
|
|
_count?: sequelizemetaCountOrderByAggregateInput
|
|
_max?: sequelizemetaMaxOrderByAggregateInput
|
|
_min?: sequelizemetaMinOrderByAggregateInput
|
|
}
|
|
|
|
export type sequelizemetaScalarWhereWithAggregatesInput = {
|
|
AND?: sequelizemetaScalarWhereWithAggregatesInput | sequelizemetaScalarWhereWithAggregatesInput[]
|
|
OR?: sequelizemetaScalarWhereWithAggregatesInput[]
|
|
NOT?: sequelizemetaScalarWhereWithAggregatesInput | sequelizemetaScalarWhereWithAggregatesInput[]
|
|
name?: StringWithAggregatesFilter<"sequelizemeta"> | string
|
|
}
|
|
|
|
export type team_location_historyWhereInput = {
|
|
AND?: team_location_historyWhereInput | team_location_historyWhereInput[]
|
|
OR?: team_location_historyWhereInput[]
|
|
NOT?: team_location_historyWhereInput | team_location_historyWhereInput[]
|
|
id?: IntFilter<"team_location_history"> | number
|
|
member_id?: StringFilter<"team_location_history"> | string
|
|
location?: StringFilter<"team_location_history"> | string
|
|
lat?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
lng?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: StringNullableFilter<"team_location_history"> | string | null
|
|
timestamp?: DateTimeNullableFilter<"team_location_history"> | Date | string | null
|
|
team_members?: XOR<Team_membersScalarRelationFilter, team_membersWhereInput>
|
|
}
|
|
|
|
export type team_location_historyOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
member_id?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrderInput | SortOrder
|
|
lng?: SortOrderInput | SortOrder
|
|
activity_type?: SortOrderInput | SortOrder
|
|
timestamp?: SortOrderInput | SortOrder
|
|
team_members?: team_membersOrderByWithRelationInput
|
|
_relevance?: team_location_historyOrderByRelevanceInput
|
|
}
|
|
|
|
export type team_location_historyWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: team_location_historyWhereInput | team_location_historyWhereInput[]
|
|
OR?: team_location_historyWhereInput[]
|
|
NOT?: team_location_historyWhereInput | team_location_historyWhereInput[]
|
|
member_id?: StringFilter<"team_location_history"> | string
|
|
location?: StringFilter<"team_location_history"> | string
|
|
lat?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
lng?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: StringNullableFilter<"team_location_history"> | string | null
|
|
timestamp?: DateTimeNullableFilter<"team_location_history"> | Date | string | null
|
|
team_members?: XOR<Team_membersScalarRelationFilter, team_membersWhereInput>
|
|
}, "id">
|
|
|
|
export type team_location_historyOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
member_id?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrderInput | SortOrder
|
|
lng?: SortOrderInput | SortOrder
|
|
activity_type?: SortOrderInput | SortOrder
|
|
timestamp?: SortOrderInput | SortOrder
|
|
_count?: team_location_historyCountOrderByAggregateInput
|
|
_avg?: team_location_historyAvgOrderByAggregateInput
|
|
_max?: team_location_historyMaxOrderByAggregateInput
|
|
_min?: team_location_historyMinOrderByAggregateInput
|
|
_sum?: team_location_historySumOrderByAggregateInput
|
|
}
|
|
|
|
export type team_location_historyScalarWhereWithAggregatesInput = {
|
|
AND?: team_location_historyScalarWhereWithAggregatesInput | team_location_historyScalarWhereWithAggregatesInput[]
|
|
OR?: team_location_historyScalarWhereWithAggregatesInput[]
|
|
NOT?: team_location_historyScalarWhereWithAggregatesInput | team_location_historyScalarWhereWithAggregatesInput[]
|
|
id?: IntWithAggregatesFilter<"team_location_history"> | number
|
|
member_id?: StringWithAggregatesFilter<"team_location_history"> | string
|
|
location?: StringWithAggregatesFilter<"team_location_history"> | string
|
|
lat?: DecimalNullableWithAggregatesFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
lng?: DecimalNullableWithAggregatesFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: StringNullableWithAggregatesFilter<"team_location_history"> | string | null
|
|
timestamp?: DateTimeNullableWithAggregatesFilter<"team_location_history"> | Date | string | null
|
|
}
|
|
|
|
export type team_membersWhereInput = {
|
|
AND?: team_membersWhereInput | team_membersWhereInput[]
|
|
OR?: team_membersWhereInput[]
|
|
NOT?: team_membersWhereInput | team_membersWhereInput[]
|
|
id?: StringFilter<"team_members"> | string
|
|
nama?: StringFilter<"team_members"> | string
|
|
role?: StringFilter<"team_members"> | string
|
|
status?: Enumteam_members_statusNullableFilter<"team_members"> | $Enums.team_members_status | null
|
|
phone?: StringFilter<"team_members"> | string
|
|
email?: StringNullableFilter<"team_members"> | string | null
|
|
current_location?: StringNullableFilter<"team_members"> | string | null
|
|
last_update?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
shift_start?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
shift_end?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
created_at?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: IncidentsListRelationFilter
|
|
incidents_incidents_assigned_toToteam_members?: IncidentsListRelationFilter
|
|
team_location_history?: Team_location_historyListRelationFilter
|
|
}
|
|
|
|
export type team_membersOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
nama?: SortOrder
|
|
role?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
phone?: SortOrder
|
|
email?: SortOrderInput | SortOrder
|
|
current_location?: SortOrderInput | SortOrder
|
|
last_update?: SortOrderInput | SortOrder
|
|
shift_start?: SortOrderInput | SortOrder
|
|
shift_end?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
incidents_incidents_reported_byToteam_members?: incidentsOrderByRelationAggregateInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsOrderByRelationAggregateInput
|
|
team_location_history?: team_location_historyOrderByRelationAggregateInput
|
|
_relevance?: team_membersOrderByRelevanceInput
|
|
}
|
|
|
|
export type team_membersWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: team_membersWhereInput | team_membersWhereInput[]
|
|
OR?: team_membersWhereInput[]
|
|
NOT?: team_membersWhereInput | team_membersWhereInput[]
|
|
nama?: StringFilter<"team_members"> | string
|
|
role?: StringFilter<"team_members"> | string
|
|
status?: Enumteam_members_statusNullableFilter<"team_members"> | $Enums.team_members_status | null
|
|
phone?: StringFilter<"team_members"> | string
|
|
email?: StringNullableFilter<"team_members"> | string | null
|
|
current_location?: StringNullableFilter<"team_members"> | string | null
|
|
last_update?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
shift_start?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
shift_end?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
created_at?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"team_members"> | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: IncidentsListRelationFilter
|
|
incidents_incidents_assigned_toToteam_members?: IncidentsListRelationFilter
|
|
team_location_history?: Team_location_historyListRelationFilter
|
|
}, "id">
|
|
|
|
export type team_membersOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
nama?: SortOrder
|
|
role?: SortOrder
|
|
status?: SortOrderInput | SortOrder
|
|
phone?: SortOrder
|
|
email?: SortOrderInput | SortOrder
|
|
current_location?: SortOrderInput | SortOrder
|
|
last_update?: SortOrderInput | SortOrder
|
|
shift_start?: SortOrderInput | SortOrder
|
|
shift_end?: SortOrderInput | SortOrder
|
|
created_at?: SortOrderInput | SortOrder
|
|
updated_at?: SortOrderInput | SortOrder
|
|
_count?: team_membersCountOrderByAggregateInput
|
|
_max?: team_membersMaxOrderByAggregateInput
|
|
_min?: team_membersMinOrderByAggregateInput
|
|
}
|
|
|
|
export type team_membersScalarWhereWithAggregatesInput = {
|
|
AND?: team_membersScalarWhereWithAggregatesInput | team_membersScalarWhereWithAggregatesInput[]
|
|
OR?: team_membersScalarWhereWithAggregatesInput[]
|
|
NOT?: team_membersScalarWhereWithAggregatesInput | team_membersScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"team_members"> | string
|
|
nama?: StringWithAggregatesFilter<"team_members"> | string
|
|
role?: StringWithAggregatesFilter<"team_members"> | string
|
|
status?: Enumteam_members_statusNullableWithAggregatesFilter<"team_members"> | $Enums.team_members_status | null
|
|
phone?: StringWithAggregatesFilter<"team_members"> | string
|
|
email?: StringNullableWithAggregatesFilter<"team_members"> | string | null
|
|
current_location?: StringNullableWithAggregatesFilter<"team_members"> | string | null
|
|
last_update?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null
|
|
shift_start?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null
|
|
shift_end?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null
|
|
created_at?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null
|
|
updated_at?: DateTimeNullableWithAggregatesFilter<"team_members"> | Date | string | null
|
|
}
|
|
|
|
export type visitor_ktp_dataWhereInput = {
|
|
AND?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[]
|
|
OR?: visitor_ktp_dataWhereInput[]
|
|
NOT?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[]
|
|
id?: StringFilter<"visitor_ktp_data"> | string
|
|
visitor_registration_id?: StringFilter<"visitor_ktp_data"> | string
|
|
ktp_number?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
full_name?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
birth_date?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null
|
|
birth_place?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
gender?: Enumvisitor_ktp_data_genderNullableFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_gender | null
|
|
address?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
rt_rw?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
kelurahan?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
kecamatan?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
religion?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
marital_status?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
occupation?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
nationality?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
ktp_photo_url?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
ktp_photo_hash?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: DecimalNullableFilter<"visitor_ktp_data"> | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
validated_by?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
validated_at?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null
|
|
ocr_raw_data?: JsonNullableFilter<"visitor_ktp_data">
|
|
manual_corrections?: JsonNullableFilter<"visitor_ktp_data">
|
|
created_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string
|
|
updated_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string
|
|
ktp_validation_audit?: Ktp_validation_auditListRelationFilter
|
|
}
|
|
|
|
export type visitor_ktp_dataOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
visitor_registration_id?: SortOrder
|
|
ktp_number?: SortOrderInput | SortOrder
|
|
full_name?: SortOrderInput | SortOrder
|
|
birth_date?: SortOrderInput | SortOrder
|
|
birth_place?: SortOrderInput | SortOrder
|
|
gender?: SortOrderInput | SortOrder
|
|
address?: SortOrderInput | SortOrder
|
|
rt_rw?: SortOrderInput | SortOrder
|
|
kelurahan?: SortOrderInput | SortOrder
|
|
kecamatan?: SortOrderInput | SortOrder
|
|
religion?: SortOrderInput | SortOrder
|
|
marital_status?: SortOrderInput | SortOrder
|
|
occupation?: SortOrderInput | SortOrder
|
|
nationality?: SortOrderInput | SortOrder
|
|
ktp_photo_url?: SortOrderInput | SortOrder
|
|
ktp_photo_hash?: SortOrderInput | SortOrder
|
|
validation_status?: SortOrder
|
|
validation_confidence?: SortOrderInput | SortOrder
|
|
validation_notes?: SortOrderInput | SortOrder
|
|
validated_by?: SortOrderInput | SortOrder
|
|
validated_at?: SortOrderInput | SortOrder
|
|
ocr_raw_data?: SortOrderInput | SortOrder
|
|
manual_corrections?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
ktp_validation_audit?: ktp_validation_auditOrderByRelationAggregateInput
|
|
_relevance?: visitor_ktp_dataOrderByRelevanceInput
|
|
}
|
|
|
|
export type visitor_ktp_dataWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
ktp_number?: string
|
|
AND?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[]
|
|
OR?: visitor_ktp_dataWhereInput[]
|
|
NOT?: visitor_ktp_dataWhereInput | visitor_ktp_dataWhereInput[]
|
|
visitor_registration_id?: StringFilter<"visitor_ktp_data"> | string
|
|
full_name?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
birth_date?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null
|
|
birth_place?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
gender?: Enumvisitor_ktp_data_genderNullableFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_gender | null
|
|
address?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
rt_rw?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
kelurahan?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
kecamatan?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
religion?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
marital_status?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
occupation?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
nationality?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
ktp_photo_url?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
ktp_photo_hash?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: DecimalNullableFilter<"visitor_ktp_data"> | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
validated_by?: StringNullableFilter<"visitor_ktp_data"> | string | null
|
|
validated_at?: DateTimeNullableFilter<"visitor_ktp_data"> | Date | string | null
|
|
ocr_raw_data?: JsonNullableFilter<"visitor_ktp_data">
|
|
manual_corrections?: JsonNullableFilter<"visitor_ktp_data">
|
|
created_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string
|
|
updated_at?: DateTimeFilter<"visitor_ktp_data"> | Date | string
|
|
ktp_validation_audit?: Ktp_validation_auditListRelationFilter
|
|
}, "id" | "ktp_number">
|
|
|
|
export type visitor_ktp_dataOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
visitor_registration_id?: SortOrder
|
|
ktp_number?: SortOrderInput | SortOrder
|
|
full_name?: SortOrderInput | SortOrder
|
|
birth_date?: SortOrderInput | SortOrder
|
|
birth_place?: SortOrderInput | SortOrder
|
|
gender?: SortOrderInput | SortOrder
|
|
address?: SortOrderInput | SortOrder
|
|
rt_rw?: SortOrderInput | SortOrder
|
|
kelurahan?: SortOrderInput | SortOrder
|
|
kecamatan?: SortOrderInput | SortOrder
|
|
religion?: SortOrderInput | SortOrder
|
|
marital_status?: SortOrderInput | SortOrder
|
|
occupation?: SortOrderInput | SortOrder
|
|
nationality?: SortOrderInput | SortOrder
|
|
ktp_photo_url?: SortOrderInput | SortOrder
|
|
ktp_photo_hash?: SortOrderInput | SortOrder
|
|
validation_status?: SortOrder
|
|
validation_confidence?: SortOrderInput | SortOrder
|
|
validation_notes?: SortOrderInput | SortOrder
|
|
validated_by?: SortOrderInput | SortOrder
|
|
validated_at?: SortOrderInput | SortOrder
|
|
ocr_raw_data?: SortOrderInput | SortOrder
|
|
manual_corrections?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
_count?: visitor_ktp_dataCountOrderByAggregateInput
|
|
_avg?: visitor_ktp_dataAvgOrderByAggregateInput
|
|
_max?: visitor_ktp_dataMaxOrderByAggregateInput
|
|
_min?: visitor_ktp_dataMinOrderByAggregateInput
|
|
_sum?: visitor_ktp_dataSumOrderByAggregateInput
|
|
}
|
|
|
|
export type visitor_ktp_dataScalarWhereWithAggregatesInput = {
|
|
AND?: visitor_ktp_dataScalarWhereWithAggregatesInput | visitor_ktp_dataScalarWhereWithAggregatesInput[]
|
|
OR?: visitor_ktp_dataScalarWhereWithAggregatesInput[]
|
|
NOT?: visitor_ktp_dataScalarWhereWithAggregatesInput | visitor_ktp_dataScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"visitor_ktp_data"> | string
|
|
visitor_registration_id?: StringWithAggregatesFilter<"visitor_ktp_data"> | string
|
|
ktp_number?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
full_name?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
birth_date?: DateTimeNullableWithAggregatesFilter<"visitor_ktp_data"> | Date | string | null
|
|
birth_place?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
gender?: Enumvisitor_ktp_data_genderNullableWithAggregatesFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_gender | null
|
|
address?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
rt_rw?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
kelurahan?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
kecamatan?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
religion?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
marital_status?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
occupation?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
nationality?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
ktp_photo_url?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
ktp_photo_hash?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusWithAggregatesFilter<"visitor_ktp_data"> | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: DecimalNullableWithAggregatesFilter<"visitor_ktp_data"> | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
validated_by?: StringNullableWithAggregatesFilter<"visitor_ktp_data"> | string | null
|
|
validated_at?: DateTimeNullableWithAggregatesFilter<"visitor_ktp_data"> | Date | string | null
|
|
ocr_raw_data?: JsonNullableWithAggregatesFilter<"visitor_ktp_data">
|
|
manual_corrections?: JsonNullableWithAggregatesFilter<"visitor_ktp_data">
|
|
created_at?: DateTimeWithAggregatesFilter<"visitor_ktp_data"> | Date | string
|
|
updated_at?: DateTimeWithAggregatesFilter<"visitor_ktp_data"> | Date | string
|
|
}
|
|
|
|
export type visitor_registrationsWhereInput = {
|
|
AND?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[]
|
|
OR?: visitor_registrationsWhereInput[]
|
|
NOT?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[]
|
|
id?: StringFilter<"visitor_registrations"> | string
|
|
name?: StringFilter<"visitor_registrations"> | string
|
|
phone?: StringFilter<"visitor_registrations"> | string
|
|
photo_url?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
purpose?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
entry_point?: StringFilter<"visitor_registrations"> | string
|
|
location_lat?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
status?: Enumvisitor_registrations_statusFilter<"visitor_registrations"> | $Enums.visitor_registrations_status
|
|
approved_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
approved_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
rejected_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
rejected_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
rejection_reason?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
expires_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
checked_in_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
checked_out_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
metadata?: JsonNullableFilter<"visitor_registrations">
|
|
created_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
updated_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
created_at?: DateTimeFilter<"visitor_registrations"> | Date | string
|
|
updated_at?: DateTimeFilter<"visitor_registrations"> | Date | string
|
|
location_address?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
location_updated_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
qr_codes?: XOR<Qr_codesNullableScalarRelationFilter, qr_codesWhereInput> | null
|
|
}
|
|
|
|
export type visitor_registrationsOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
phone?: SortOrder
|
|
photo_url?: SortOrderInput | SortOrder
|
|
purpose?: SortOrderInput | SortOrder
|
|
entry_point?: SortOrder
|
|
location_lat?: SortOrderInput | SortOrder
|
|
location_lng?: SortOrderInput | SortOrder
|
|
qr_code_id?: SortOrderInput | SortOrder
|
|
status?: SortOrder
|
|
approved_by?: SortOrderInput | SortOrder
|
|
approved_at?: SortOrderInput | SortOrder
|
|
rejected_by?: SortOrderInput | SortOrder
|
|
rejected_at?: SortOrderInput | SortOrder
|
|
rejection_reason?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
checked_in_at?: SortOrderInput | SortOrder
|
|
checked_out_at?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
location_address?: SortOrderInput | SortOrder
|
|
location_updated_at?: SortOrderInput | SortOrder
|
|
qr_codes?: qr_codesOrderByWithRelationInput
|
|
_relevance?: visitor_registrationsOrderByRelevanceInput
|
|
}
|
|
|
|
export type visitor_registrationsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[]
|
|
OR?: visitor_registrationsWhereInput[]
|
|
NOT?: visitor_registrationsWhereInput | visitor_registrationsWhereInput[]
|
|
name?: StringFilter<"visitor_registrations"> | string
|
|
phone?: StringFilter<"visitor_registrations"> | string
|
|
photo_url?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
purpose?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
entry_point?: StringFilter<"visitor_registrations"> | string
|
|
location_lat?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
status?: Enumvisitor_registrations_statusFilter<"visitor_registrations"> | $Enums.visitor_registrations_status
|
|
approved_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
approved_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
rejected_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
rejected_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
rejection_reason?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
expires_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
checked_in_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
checked_out_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
metadata?: JsonNullableFilter<"visitor_registrations">
|
|
created_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
updated_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
created_at?: DateTimeFilter<"visitor_registrations"> | Date | string
|
|
updated_at?: DateTimeFilter<"visitor_registrations"> | Date | string
|
|
location_address?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
location_updated_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
qr_codes?: XOR<Qr_codesNullableScalarRelationFilter, qr_codesWhereInput> | null
|
|
}, "id">
|
|
|
|
export type visitor_registrationsOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
phone?: SortOrder
|
|
photo_url?: SortOrderInput | SortOrder
|
|
purpose?: SortOrderInput | SortOrder
|
|
entry_point?: SortOrder
|
|
location_lat?: SortOrderInput | SortOrder
|
|
location_lng?: SortOrderInput | SortOrder
|
|
qr_code_id?: SortOrderInput | SortOrder
|
|
status?: SortOrder
|
|
approved_by?: SortOrderInput | SortOrder
|
|
approved_at?: SortOrderInput | SortOrder
|
|
rejected_by?: SortOrderInput | SortOrder
|
|
rejected_at?: SortOrderInput | SortOrder
|
|
rejection_reason?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
checked_in_at?: SortOrderInput | SortOrder
|
|
checked_out_at?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
created_by?: SortOrderInput | SortOrder
|
|
updated_by?: SortOrderInput | SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
location_address?: SortOrderInput | SortOrder
|
|
location_updated_at?: SortOrderInput | SortOrder
|
|
_count?: visitor_registrationsCountOrderByAggregateInput
|
|
_avg?: visitor_registrationsAvgOrderByAggregateInput
|
|
_max?: visitor_registrationsMaxOrderByAggregateInput
|
|
_min?: visitor_registrationsMinOrderByAggregateInput
|
|
_sum?: visitor_registrationsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type visitor_registrationsScalarWhereWithAggregatesInput = {
|
|
AND?: visitor_registrationsScalarWhereWithAggregatesInput | visitor_registrationsScalarWhereWithAggregatesInput[]
|
|
OR?: visitor_registrationsScalarWhereWithAggregatesInput[]
|
|
NOT?: visitor_registrationsScalarWhereWithAggregatesInput | visitor_registrationsScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"visitor_registrations"> | string
|
|
name?: StringWithAggregatesFilter<"visitor_registrations"> | string
|
|
phone?: StringWithAggregatesFilter<"visitor_registrations"> | string
|
|
photo_url?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
purpose?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
entry_point?: StringWithAggregatesFilter<"visitor_registrations"> | string
|
|
location_lat?: DecimalNullableWithAggregatesFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: DecimalNullableWithAggregatesFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
status?: Enumvisitor_registrations_statusWithAggregatesFilter<"visitor_registrations"> | $Enums.visitor_registrations_status
|
|
approved_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
approved_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null
|
|
rejected_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
rejected_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null
|
|
rejection_reason?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
expires_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null
|
|
checked_in_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null
|
|
checked_out_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null
|
|
metadata?: JsonNullableWithAggregatesFilter<"visitor_registrations">
|
|
created_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
updated_by?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
created_at?: DateTimeWithAggregatesFilter<"visitor_registrations"> | Date | string
|
|
updated_at?: DateTimeWithAggregatesFilter<"visitor_registrations"> | Date | string
|
|
location_address?: StringNullableWithAggregatesFilter<"visitor_registrations"> | string | null
|
|
location_updated_at?: DateTimeNullableWithAggregatesFilter<"visitor_registrations"> | Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsCreateInput = {
|
|
id?: string
|
|
recipient_type: string
|
|
recipient_id?: string | null
|
|
recipient_name?: string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel: string
|
|
delivery_status?: string | null
|
|
sent_at?: Date | string | null
|
|
delivered_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
failed_at?: Date | string | null
|
|
delivery_attempts?: number | null
|
|
last_attempt_at?: Date | string | null
|
|
failure_reason?: string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: number | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
alerts: alertsCreateNestedOneWithoutAlert_recipientsInput
|
|
}
|
|
|
|
export type alert_recipientsUncheckedCreateInput = {
|
|
id?: string
|
|
alert_id: string
|
|
recipient_type: string
|
|
recipient_id?: string | null
|
|
recipient_name?: string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel: string
|
|
delivery_status?: string | null
|
|
sent_at?: Date | string | null
|
|
delivered_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
failed_at?: Date | string | null
|
|
delivery_attempts?: number | null
|
|
last_attempt_at?: Date | string | null
|
|
failure_reason?: string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: number | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
alerts?: alertsUpdateOneRequiredWithoutAlert_recipientsNestedInput
|
|
}
|
|
|
|
export type alert_recipientsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsCreateManyInput = {
|
|
id?: string
|
|
alert_id: string
|
|
recipient_type: string
|
|
recipient_id?: string | null
|
|
recipient_name?: string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel: string
|
|
delivery_status?: string | null
|
|
sent_at?: Date | string | null
|
|
delivered_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
failed_at?: Date | string | null
|
|
delivery_attempts?: number | null
|
|
last_attempt_at?: Date | string | null
|
|
failure_reason?: string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: number | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type alertsCreateInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alert_recipients?: alert_recipientsCreateNestedManyWithoutAlertsInput
|
|
incidents?: incidentsCreateNestedOneWithoutAlertsInput
|
|
}
|
|
|
|
export type alertsUncheckedCreateInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
incident_id?: string | null
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alert_recipients?: alert_recipientsUncheckedCreateNestedManyWithoutAlertsInput
|
|
}
|
|
|
|
export type alertsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_recipients?: alert_recipientsUpdateManyWithoutAlertsNestedInput
|
|
incidents?: incidentsUpdateOneWithoutAlertsNestedInput
|
|
}
|
|
|
|
export type alertsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_recipients?: alert_recipientsUncheckedUpdateManyWithoutAlertsNestedInput
|
|
}
|
|
|
|
export type alertsCreateManyInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
incident_id?: string | null
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type alertsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type alertsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type basemap_configsCreateInput = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
svg_data: string
|
|
calibration: JsonNullValueInput | InputJsonValue
|
|
dimensions: JsonNullValueInput | InputJsonValue
|
|
is_active?: boolean | null
|
|
is_default?: boolean | null
|
|
version?: number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: number | null
|
|
checksum?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type basemap_configsUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
svg_data: string
|
|
calibration: JsonNullValueInput | InputJsonValue
|
|
dimensions: JsonNullValueInput | InputJsonValue
|
|
is_active?: boolean | null
|
|
is_default?: boolean | null
|
|
version?: number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: number | null
|
|
checksum?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type basemap_configsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
svg_data?: StringFieldUpdateOperationsInput | string
|
|
calibration?: JsonNullValueInput | InputJsonValue
|
|
dimensions?: JsonNullValueInput | InputJsonValue
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
version?: NullableIntFieldUpdateOperationsInput | number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: NullableIntFieldUpdateOperationsInput | number | null
|
|
checksum?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type basemap_configsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
svg_data?: StringFieldUpdateOperationsInput | string
|
|
calibration?: JsonNullValueInput | InputJsonValue
|
|
dimensions?: JsonNullValueInput | InputJsonValue
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
version?: NullableIntFieldUpdateOperationsInput | number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: NullableIntFieldUpdateOperationsInput | number | null
|
|
checksum?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type basemap_configsCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
svg_data: string
|
|
calibration: JsonNullValueInput | InputJsonValue
|
|
dimensions: JsonNullValueInput | InputJsonValue
|
|
is_active?: boolean | null
|
|
is_default?: boolean | null
|
|
version?: number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: number | null
|
|
checksum?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type basemap_configsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
svg_data?: StringFieldUpdateOperationsInput | string
|
|
calibration?: JsonNullValueInput | InputJsonValue
|
|
dimensions?: JsonNullValueInput | InputJsonValue
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
version?: NullableIntFieldUpdateOperationsInput | number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: NullableIntFieldUpdateOperationsInput | number | null
|
|
checksum?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type basemap_configsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
svg_data?: StringFieldUpdateOperationsInput | string
|
|
calibration?: JsonNullValueInput | InputJsonValue
|
|
dimensions?: JsonNullValueInput | InputJsonValue
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_default?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
version?: NullableIntFieldUpdateOperationsInput | number | null
|
|
settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
file_size?: NullableIntFieldUpdateOperationsInput | number | null
|
|
checksum?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type camera_health_logCreateInput = {
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message?: string | null
|
|
stream_accessible?: boolean | null
|
|
timestamp?: Date | string | null
|
|
cameras: camerasCreateNestedOneWithoutCamera_health_logInput
|
|
}
|
|
|
|
export type camera_health_logUncheckedCreateInput = {
|
|
id?: number
|
|
camera_id: string
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message?: string | null
|
|
stream_accessible?: boolean | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUpdateInput = {
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cameras?: camerasUpdateOneRequiredWithoutCamera_health_logNestedInput
|
|
}
|
|
|
|
export type camera_health_logUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
camera_id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camera_health_logCreateManyInput = {
|
|
id?: number
|
|
camera_id: string
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message?: string | null
|
|
stream_accessible?: boolean | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUpdateManyMutationInput = {
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
camera_id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camerasCreateInput = {
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
stream_url: string
|
|
status?: $Enums.cameras_status | null
|
|
last_heartbeat?: Date | string | null
|
|
response_time?: number | null
|
|
health_score?: number | null
|
|
error_message?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
camera_health_log?: camera_health_logCreateNestedManyWithoutCamerasInput
|
|
}
|
|
|
|
export type camerasUncheckedCreateInput = {
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
stream_url: string
|
|
status?: $Enums.cameras_status | null
|
|
last_heartbeat?: Date | string | null
|
|
response_time?: number | null
|
|
health_score?: number | null
|
|
error_message?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
camera_health_log?: camera_health_logUncheckedCreateNestedManyWithoutCamerasInput
|
|
}
|
|
|
|
export type camerasUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
label?: StringFieldUpdateOperationsInput | string
|
|
area?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null
|
|
last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
health_score?: NullableIntFieldUpdateOperationsInput | number | null
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
camera_health_log?: camera_health_logUpdateManyWithoutCamerasNestedInput
|
|
}
|
|
|
|
export type camerasUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
label?: StringFieldUpdateOperationsInput | string
|
|
area?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null
|
|
last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
health_score?: NullableIntFieldUpdateOperationsInput | number | null
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
camera_health_log?: camera_health_logUncheckedUpdateManyWithoutCamerasNestedInput
|
|
}
|
|
|
|
export type camerasCreateManyInput = {
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
stream_url: string
|
|
status?: $Enums.cameras_status | null
|
|
last_heartbeat?: Date | string | null
|
|
response_time?: number | null
|
|
health_score?: number | null
|
|
error_message?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type camerasUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
label?: StringFieldUpdateOperationsInput | string
|
|
area?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null
|
|
last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
health_score?: NullableIntFieldUpdateOperationsInput | number | null
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camerasUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
label?: StringFieldUpdateOperationsInput | string
|
|
area?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null
|
|
last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
health_score?: NullableIntFieldUpdateOperationsInput | number | null
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type feature_flagsCreateInput = {
|
|
id?: string
|
|
key: string
|
|
name: string
|
|
description?: string | null
|
|
is_enabled?: boolean | null
|
|
type?: string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: string | null
|
|
category?: string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: boolean | null
|
|
is_permanent?: boolean | null
|
|
expires_at?: Date | string | null
|
|
last_evaluated_at?: Date | string | null
|
|
evaluation_count?: bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
enabled_at?: Date | string | null
|
|
disabled_at?: Date | string | null
|
|
}
|
|
|
|
export type feature_flagsUncheckedCreateInput = {
|
|
id?: string
|
|
key: string
|
|
name: string
|
|
description?: string | null
|
|
is_enabled?: boolean | null
|
|
type?: string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: string | null
|
|
category?: string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: boolean | null
|
|
is_permanent?: boolean | null
|
|
expires_at?: Date | string | null
|
|
last_evaluated_at?: Date | string | null
|
|
evaluation_count?: bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
enabled_at?: Date | string | null
|
|
disabled_at?: Date | string | null
|
|
}
|
|
|
|
export type feature_flagsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type feature_flagsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type feature_flagsCreateManyInput = {
|
|
id?: string
|
|
key: string
|
|
name: string
|
|
description?: string | null
|
|
is_enabled?: boolean | null
|
|
type?: string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: string | null
|
|
category?: string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: boolean | null
|
|
is_permanent?: boolean | null
|
|
expires_at?: Date | string | null
|
|
last_evaluated_at?: Date | string | null
|
|
evaluation_count?: bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
enabled_at?: Date | string | null
|
|
disabled_at?: Date | string | null
|
|
}
|
|
|
|
export type feature_flagsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type feature_flagsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_enabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
value?: NullableJsonNullValueInput | InputJsonValue
|
|
default_value?: NullableJsonNullValueInput | InputJsonValue
|
|
environment?: NullableStringFieldUpdateOperationsInput | string | null
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
conditions?: NullableJsonNullValueInput | InputJsonValue
|
|
rollout_percentage?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
user_segments?: NullableJsonNullValueInput | InputJsonValue
|
|
is_archived?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_permanent?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
last_evaluated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
evaluation_count?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
enabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
disabled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesCreateInput = {
|
|
id?: string
|
|
team_member_id?: string | null
|
|
breach_type: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
severity?: string | null
|
|
is_resolved?: boolean | null
|
|
resolved_at?: Date | string | null
|
|
resolved_by?: string | null
|
|
notes?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
geofences: geofencesCreateNestedOneWithoutGeofence_breachesInput
|
|
}
|
|
|
|
export type geofence_breachesUncheckedCreateInput = {
|
|
id?: string
|
|
geofence_id: string
|
|
team_member_id?: string | null
|
|
breach_type: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
severity?: string | null
|
|
is_resolved?: boolean | null
|
|
resolved_at?: Date | string | null
|
|
resolved_by?: string | null
|
|
notes?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
geofences?: geofencesUpdateOneRequiredWithoutGeofence_breachesNestedInput
|
|
}
|
|
|
|
export type geofence_breachesUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
geofence_id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesCreateManyInput = {
|
|
id?: string
|
|
geofence_id: string
|
|
team_member_id?: string | null
|
|
breach_type: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
severity?: string | null
|
|
is_resolved?: boolean | null
|
|
resolved_at?: Date | string | null
|
|
resolved_by?: string | null
|
|
notes?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
geofence_id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofencesCreateInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofence_breaches?: geofence_breachesCreateNestedManyWithoutGeofencesInput
|
|
incidents?: incidentsCreateNestedManyWithoutGeofencesInput
|
|
map_pins?: map_pinsCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofence_breaches?: geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput
|
|
incidents?: incidentsUncheckedCreateNestedManyWithoutGeofencesInput
|
|
map_pins?: map_pinsUncheckedCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_breaches?: geofence_breachesUpdateManyWithoutGeofencesNestedInput
|
|
incidents?: incidentsUpdateManyWithoutGeofencesNestedInput
|
|
map_pins?: map_pinsUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type geofencesUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_breaches?: geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
incidents?: incidentsUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
map_pins?: map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type geofencesCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type geofencesUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type geofencesUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type housesCreateInput = {
|
|
id?: string
|
|
house_number: string
|
|
block: string
|
|
street: string
|
|
owner_name: string
|
|
owner_phone: string
|
|
status?: $Enums.houses_status | null
|
|
perumahan_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type housesUncheckedCreateInput = {
|
|
id?: string
|
|
house_number: string
|
|
block: string
|
|
street: string
|
|
owner_name: string
|
|
owner_phone: string
|
|
status?: $Enums.houses_status | null
|
|
perumahan_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type housesUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
house_number?: StringFieldUpdateOperationsInput | string
|
|
block?: StringFieldUpdateOperationsInput | string
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
owner_name?: StringFieldUpdateOperationsInput | string
|
|
owner_phone?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null
|
|
perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type housesUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
house_number?: StringFieldUpdateOperationsInput | string
|
|
block?: StringFieldUpdateOperationsInput | string
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
owner_name?: StringFieldUpdateOperationsInput | string
|
|
owner_phone?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null
|
|
perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type housesCreateManyInput = {
|
|
id?: string
|
|
house_number: string
|
|
block: string
|
|
street: string
|
|
owner_name: string
|
|
owner_phone: string
|
|
status?: $Enums.houses_status | null
|
|
perumahan_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type housesUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
house_number?: StringFieldUpdateOperationsInput | string
|
|
block?: StringFieldUpdateOperationsInput | string
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
owner_name?: StringFieldUpdateOperationsInput | string
|
|
owner_phone?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null
|
|
perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type housesUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
house_number?: StringFieldUpdateOperationsInput | string
|
|
block?: StringFieldUpdateOperationsInput | string
|
|
street?: StringFieldUpdateOperationsInput | string
|
|
owner_name?: StringFieldUpdateOperationsInput | string
|
|
owner_phone?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumhouses_statusFieldUpdateOperationsInput | $Enums.houses_status | null
|
|
perumahan_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type incident_updatesCreateInput = {
|
|
id?: string
|
|
update_type: string
|
|
title?: string | null
|
|
description?: string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: boolean | null
|
|
is_system_generated?: boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
created_by: string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: string | null
|
|
incidents: incidentsCreateNestedOneWithoutIncident_updatesInput
|
|
}
|
|
|
|
export type incident_updatesUncheckedCreateInput = {
|
|
id?: string
|
|
incident_id: string
|
|
update_type: string
|
|
title?: string | null
|
|
description?: string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: boolean | null
|
|
is_system_generated?: boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
created_by: string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: string | null
|
|
}
|
|
|
|
export type incident_updatesUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incidents?: incidentsUpdateOneRequiredWithoutIncident_updatesNestedInput
|
|
}
|
|
|
|
export type incident_updatesUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incident_updatesCreateManyInput = {
|
|
id?: string
|
|
incident_id: string
|
|
update_type: string
|
|
title?: string | null
|
|
description?: string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: boolean | null
|
|
is_system_generated?: boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
created_by: string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: string | null
|
|
}
|
|
|
|
export type incident_updatesUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incident_updatesUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incidentsCreateInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
geofences?: geofencesCreateNestedOneWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsUncheckedCreateInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput
|
|
geofences?: geofencesUpdateOneWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsCreateManyInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type incidentsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ktp_validation_auditCreateInput = {
|
|
id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by: string
|
|
ip_address?: string | null
|
|
user_agent?: string | null
|
|
reason?: string | null
|
|
created_at?: Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
visitor_ktp_data: visitor_ktp_dataCreateNestedOneWithoutKtp_validation_auditInput
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedCreateInput = {
|
|
id: string
|
|
ktp_data_id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by: string
|
|
ip_address?: string | null
|
|
user_agent?: string | null
|
|
reason?: string | null
|
|
created_at?: Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
visitor_ktp_data?: visitor_ktp_dataUpdateOneRequiredWithoutKtp_validation_auditNestedInput
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
ktp_data_id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditCreateManyInput = {
|
|
id: string
|
|
ktp_data_id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by: string
|
|
ip_address?: string | null
|
|
user_agent?: string | null
|
|
reason?: string | null
|
|
created_at?: Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
ktp_data_id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type map_pinsCreateInput = {
|
|
id?: string
|
|
type: string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title: string
|
|
description?: string | null
|
|
status?: string | null
|
|
priority?: string | null
|
|
icon_type?: string | null
|
|
icon_color?: string | null
|
|
size?: string | null
|
|
is_visible?: boolean | null
|
|
is_clickable?: boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
incident_id?: string | null
|
|
team_member_id?: string | null
|
|
camera_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofences?: geofencesCreateNestedOneWithoutMap_pinsInput
|
|
}
|
|
|
|
export type map_pinsUncheckedCreateInput = {
|
|
id?: string
|
|
type: string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title: string
|
|
description?: string | null
|
|
status?: string | null
|
|
priority?: string | null
|
|
icon_type?: string | null
|
|
icon_color?: string | null
|
|
size?: string | null
|
|
is_visible?: boolean | null
|
|
is_clickable?: boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
incident_id?: string | null
|
|
team_member_id?: string | null
|
|
camera_id?: string | null
|
|
geofence_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type map_pinsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofences?: geofencesUpdateOneWithoutMap_pinsNestedInput
|
|
}
|
|
|
|
export type map_pinsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type map_pinsCreateManyInput = {
|
|
id?: string
|
|
type: string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title: string
|
|
description?: string | null
|
|
status?: string | null
|
|
priority?: string | null
|
|
icon_type?: string | null
|
|
icon_color?: string | null
|
|
size?: string | null
|
|
is_visible?: boolean | null
|
|
is_clickable?: boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
incident_id?: string | null
|
|
team_member_id?: string | null
|
|
camera_id?: string | null
|
|
geofence_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type map_pinsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type map_pinsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesCreateInput = {
|
|
name: string
|
|
type: string
|
|
description?: string | null
|
|
location: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
status?: $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
type: string
|
|
description?: string | null
|
|
location: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
status?: $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
type: string
|
|
description?: string | null
|
|
location: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
status?: $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_facilitiesUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
status?: NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput | $Enums.perumahan_facilities_status | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
contact_info?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoCreateInput = {
|
|
name: string
|
|
total_units: number
|
|
clusters: JsonNullValueInput | InputJsonValue
|
|
address?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoUncheckedCreateInput = {
|
|
id?: number
|
|
name: string
|
|
total_units: number
|
|
clusters: JsonNullValueInput | InputJsonValue
|
|
address?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
total_units?: IntFieldUpdateOperationsInput | number
|
|
clusters?: JsonNullValueInput | InputJsonValue
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
total_units?: IntFieldUpdateOperationsInput | number
|
|
clusters?: JsonNullValueInput | InputJsonValue
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoCreateManyInput = {
|
|
id?: number
|
|
name: string
|
|
total_units: number
|
|
clusters: JsonNullValueInput | InputJsonValue
|
|
address?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
total_units?: IntFieldUpdateOperationsInput | number
|
|
clusters?: JsonNullValueInput | InputJsonValue
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type perumahan_infoUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
total_units?: IntFieldUpdateOperationsInput | number
|
|
clusters?: JsonNullValueInput | InputJsonValue
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type qr_codesCreateInput = {
|
|
id?: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Decimal | DecimalJsLike | number | string
|
|
location_lng: Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: number
|
|
is_active?: boolean
|
|
description?: string | null
|
|
max_daily_registrations?: number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: $Enums.qr_codes_security_level
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: Date | string | null
|
|
usage_count?: number
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
visitor_registrations?: visitor_registrationsCreateNestedManyWithoutQr_codesInput
|
|
}
|
|
|
|
export type qr_codesUncheckedCreateInput = {
|
|
id?: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Decimal | DecimalJsLike | number | string
|
|
location_lng: Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: number
|
|
is_active?: boolean
|
|
description?: string | null
|
|
max_daily_registrations?: number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: $Enums.qr_codes_security_level
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: Date | string | null
|
|
usage_count?: number
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
visitor_registrations?: visitor_registrationsUncheckedCreateNestedManyWithoutQr_codesInput
|
|
}
|
|
|
|
export type qr_codesUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
qr_data?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFieldUpdateOperationsInput | number
|
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFieldUpdateOperationsInput | boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
usage_count?: IntFieldUpdateOperationsInput | number
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
visitor_registrations?: visitor_registrationsUpdateManyWithoutQr_codesNestedInput
|
|
}
|
|
|
|
export type qr_codesUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
qr_data?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFieldUpdateOperationsInput | number
|
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFieldUpdateOperationsInput | boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
usage_count?: IntFieldUpdateOperationsInput | number
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
visitor_registrations?: visitor_registrationsUncheckedUpdateManyWithoutQr_codesNestedInput
|
|
}
|
|
|
|
export type qr_codesCreateManyInput = {
|
|
id?: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Decimal | DecimalJsLike | number | string
|
|
location_lng: Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: number
|
|
is_active?: boolean
|
|
description?: string | null
|
|
max_daily_registrations?: number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: $Enums.qr_codes_security_level
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: Date | string | null
|
|
usage_count?: number
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
}
|
|
|
|
export type qr_codesUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
qr_data?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFieldUpdateOperationsInput | number
|
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFieldUpdateOperationsInput | boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
usage_count?: IntFieldUpdateOperationsInput | number
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type qr_codesUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
qr_data?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFieldUpdateOperationsInput | number
|
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFieldUpdateOperationsInput | boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
usage_count?: IntFieldUpdateOperationsInput | number
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type security_activitiesCreateInput = {
|
|
type: string
|
|
ref_id?: string | null
|
|
actor: string
|
|
note: string
|
|
severity?: $Enums.security_activities_severity | null
|
|
timestamp?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
}
|
|
|
|
export type security_activitiesUncheckedCreateInput = {
|
|
id?: number
|
|
type: string
|
|
ref_id?: string | null
|
|
actor: string
|
|
note: string
|
|
severity?: $Enums.security_activities_severity | null
|
|
timestamp?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
}
|
|
|
|
export type security_activitiesUpdateInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
ref_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: StringFieldUpdateOperationsInput | string
|
|
note?: StringFieldUpdateOperationsInput | string
|
|
severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type security_activitiesUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
ref_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: StringFieldUpdateOperationsInput | string
|
|
note?: StringFieldUpdateOperationsInput | string
|
|
severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type security_activitiesCreateManyInput = {
|
|
id?: number
|
|
type: string
|
|
ref_id?: string | null
|
|
actor: string
|
|
note: string
|
|
severity?: $Enums.security_activities_severity | null
|
|
timestamp?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
}
|
|
|
|
export type security_activitiesUpdateManyMutationInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
ref_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: StringFieldUpdateOperationsInput | string
|
|
note?: StringFieldUpdateOperationsInput | string
|
|
severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type security_activitiesUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
ref_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
actor?: StringFieldUpdateOperationsInput | string
|
|
note?: StringFieldUpdateOperationsInput | string
|
|
severity?: NullableEnumsecurity_activities_severityFieldUpdateOperationsInput | $Enums.security_activities_severity | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type sequelizemetaCreateInput = {
|
|
name: string
|
|
}
|
|
|
|
export type sequelizemetaUncheckedCreateInput = {
|
|
name: string
|
|
}
|
|
|
|
export type sequelizemetaUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type sequelizemetaUncheckedUpdateInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type sequelizemetaCreateManyInput = {
|
|
name: string
|
|
}
|
|
|
|
export type sequelizemetaUpdateManyMutationInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type sequelizemetaUncheckedUpdateManyInput = {
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type team_location_historyCreateInput = {
|
|
location: string
|
|
lat?: Decimal | DecimalJsLike | number | string | null
|
|
lng?: Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: string | null
|
|
timestamp?: Date | string | null
|
|
team_members: team_membersCreateNestedOneWithoutTeam_location_historyInput
|
|
}
|
|
|
|
export type team_location_historyUncheckedCreateInput = {
|
|
id?: number
|
|
member_id: string
|
|
location: string
|
|
lat?: Decimal | DecimalJsLike | number | string | null
|
|
lng?: Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: string | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type team_location_historyUpdateInput = {
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
team_members?: team_membersUpdateOneRequiredWithoutTeam_location_historyNestedInput
|
|
}
|
|
|
|
export type team_location_historyUncheckedUpdateInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
member_id?: StringFieldUpdateOperationsInput | string
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type team_location_historyCreateManyInput = {
|
|
id?: number
|
|
member_id: string
|
|
location: string
|
|
lat?: Decimal | DecimalJsLike | number | string | null
|
|
lng?: Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: string | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type team_location_historyUpdateManyMutationInput = {
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type team_location_historyUncheckedUpdateManyInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
member_id?: StringFieldUpdateOperationsInput | string
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type team_membersCreateInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput
|
|
team_location_history?: team_location_historyCreateNestedManyWithoutTeam_membersInput
|
|
}
|
|
|
|
export type team_membersUncheckedCreateInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput
|
|
team_location_history?: team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput
|
|
}
|
|
|
|
export type team_membersUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput
|
|
team_location_history?: team_location_historyUpdateManyWithoutTeam_membersNestedInput
|
|
}
|
|
|
|
export type team_membersUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput
|
|
team_location_history?: team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput
|
|
}
|
|
|
|
export type team_membersCreateManyInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type team_membersUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type team_membersUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type visitor_ktp_dataCreateInput = {
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number?: string | null
|
|
full_name?: string | null
|
|
birth_date?: Date | string | null
|
|
birth_place?: string | null
|
|
gender?: $Enums.visitor_ktp_data_gender | null
|
|
address?: string | null
|
|
rt_rw?: string | null
|
|
kelurahan?: string | null
|
|
kecamatan?: string | null
|
|
religion?: string | null
|
|
marital_status?: string | null
|
|
occupation?: string | null
|
|
nationality?: string | null
|
|
ktp_photo_url?: string | null
|
|
ktp_photo_hash?: string | null
|
|
validation_status?: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: string | null
|
|
validated_by?: string | null
|
|
validated_at?: Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
ktp_validation_audit?: ktp_validation_auditCreateNestedManyWithoutVisitor_ktp_dataInput
|
|
}
|
|
|
|
export type visitor_ktp_dataUncheckedCreateInput = {
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number?: string | null
|
|
full_name?: string | null
|
|
birth_date?: Date | string | null
|
|
birth_place?: string | null
|
|
gender?: $Enums.visitor_ktp_data_gender | null
|
|
address?: string | null
|
|
rt_rw?: string | null
|
|
kelurahan?: string | null
|
|
kecamatan?: string | null
|
|
religion?: string | null
|
|
marital_status?: string | null
|
|
occupation?: string | null
|
|
nationality?: string | null
|
|
ktp_photo_url?: string | null
|
|
ktp_photo_hash?: string | null
|
|
validation_status?: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: string | null
|
|
validated_by?: string | null
|
|
validated_at?: Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
ktp_validation_audit?: ktp_validation_auditUncheckedCreateNestedManyWithoutVisitor_ktp_dataInput
|
|
}
|
|
|
|
export type visitor_ktp_dataUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
visitor_registration_id?: StringFieldUpdateOperationsInput | string
|
|
ktp_number?: NullableStringFieldUpdateOperationsInput | string | null
|
|
full_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birth_place?: NullableStringFieldUpdateOperationsInput | string | null
|
|
gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rt_rw?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kelurahan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kecamatan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
religion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
marital_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
occupation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
nationality?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
ktp_validation_audit?: ktp_validation_auditUpdateManyWithoutVisitor_ktp_dataNestedInput
|
|
}
|
|
|
|
export type visitor_ktp_dataUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
visitor_registration_id?: StringFieldUpdateOperationsInput | string
|
|
ktp_number?: NullableStringFieldUpdateOperationsInput | string | null
|
|
full_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birth_place?: NullableStringFieldUpdateOperationsInput | string | null
|
|
gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rt_rw?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kelurahan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kecamatan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
religion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
marital_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
occupation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
nationality?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
ktp_validation_audit?: ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataNestedInput
|
|
}
|
|
|
|
export type visitor_ktp_dataCreateManyInput = {
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number?: string | null
|
|
full_name?: string | null
|
|
birth_date?: Date | string | null
|
|
birth_place?: string | null
|
|
gender?: $Enums.visitor_ktp_data_gender | null
|
|
address?: string | null
|
|
rt_rw?: string | null
|
|
kelurahan?: string | null
|
|
kecamatan?: string | null
|
|
religion?: string | null
|
|
marital_status?: string | null
|
|
occupation?: string | null
|
|
nationality?: string | null
|
|
ktp_photo_url?: string | null
|
|
ktp_photo_hash?: string | null
|
|
validation_status?: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: string | null
|
|
validated_by?: string | null
|
|
validated_at?: Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
}
|
|
|
|
export type visitor_ktp_dataUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
visitor_registration_id?: StringFieldUpdateOperationsInput | string
|
|
ktp_number?: NullableStringFieldUpdateOperationsInput | string | null
|
|
full_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birth_place?: NullableStringFieldUpdateOperationsInput | string | null
|
|
gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rt_rw?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kelurahan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kecamatan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
religion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
marital_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
occupation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
nationality?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type visitor_ktp_dataUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
visitor_registration_id?: StringFieldUpdateOperationsInput | string
|
|
ktp_number?: NullableStringFieldUpdateOperationsInput | string | null
|
|
full_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birth_place?: NullableStringFieldUpdateOperationsInput | string | null
|
|
gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rt_rw?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kelurahan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kecamatan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
religion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
marital_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
occupation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
nationality?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type visitor_registrationsCreateInput = {
|
|
id?: string
|
|
name: string
|
|
phone: string
|
|
photo_url?: string | null
|
|
purpose?: string | null
|
|
entry_point: string
|
|
location_lat?: Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: Decimal | DecimalJsLike | number | string | null
|
|
status?: $Enums.visitor_registrations_status
|
|
approved_by?: string | null
|
|
approved_at?: Date | string | null
|
|
rejected_by?: string | null
|
|
rejected_at?: Date | string | null
|
|
rejection_reason?: string | null
|
|
expires_at?: Date | string | null
|
|
checked_in_at?: Date | string | null
|
|
checked_out_at?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
location_address?: string | null
|
|
location_updated_at?: Date | string | null
|
|
qr_codes?: qr_codesCreateNestedOneWithoutVisitor_registrationsInput
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
phone: string
|
|
photo_url?: string | null
|
|
purpose?: string | null
|
|
entry_point: string
|
|
location_lat?: Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: string | null
|
|
status?: $Enums.visitor_registrations_status
|
|
approved_by?: string | null
|
|
approved_at?: Date | string | null
|
|
rejected_by?: string | null
|
|
rejected_at?: Date | string | null
|
|
rejection_reason?: string | null
|
|
expires_at?: Date | string | null
|
|
checked_in_at?: Date | string | null
|
|
checked_out_at?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
location_address?: string | null
|
|
location_updated_at?: Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
qr_codes?: qr_codesUpdateOneWithoutVisitor_registrationsNestedInput
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
phone: string
|
|
photo_url?: string | null
|
|
purpose?: string | null
|
|
entry_point: string
|
|
location_lat?: Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: string | null
|
|
status?: $Enums.visitor_registrations_status
|
|
approved_by?: string | null
|
|
approved_at?: Date | string | null
|
|
rejected_by?: string | null
|
|
rejected_at?: Date | string | null
|
|
rejection_reason?: string | null
|
|
expires_at?: Date | string | null
|
|
checked_in_at?: Date | string | null
|
|
checked_out_at?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
location_address?: string | null
|
|
location_updated_at?: Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type StringFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringFilter<$PrismaModel> | string
|
|
}
|
|
|
|
export type StringNullableFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
}
|
|
export type JsonNullableFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonNullableFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
path?: string
|
|
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
lt?: InputJsonValue
|
|
lte?: InputJsonValue
|
|
gt?: InputJsonValue
|
|
gte?: InputJsonValue
|
|
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
}
|
|
|
|
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
}
|
|
|
|
export type IntNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type AlertsScalarRelationFilter = {
|
|
is?: alertsWhereInput
|
|
isNot?: alertsWhereInput
|
|
}
|
|
|
|
export type SortOrderInput = {
|
|
sort: SortOrder
|
|
nulls?: NullsOrder
|
|
}
|
|
|
|
export type alert_recipientsOrderByRelevanceInput = {
|
|
fields: alert_recipientsOrderByRelevanceFieldEnum | alert_recipientsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type alert_recipientsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
recipient_type?: SortOrder
|
|
recipient_id?: SortOrder
|
|
recipient_name?: SortOrder
|
|
recipient_contact?: SortOrder
|
|
channel?: SortOrder
|
|
delivery_status?: SortOrder
|
|
sent_at?: SortOrder
|
|
delivered_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
failed_at?: SortOrder
|
|
delivery_attempts?: SortOrder
|
|
last_attempt_at?: SortOrder
|
|
failure_reason?: SortOrder
|
|
delivery_metadata?: SortOrder
|
|
response_data?: SortOrder
|
|
response_time?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type alert_recipientsAvgOrderByAggregateInput = {
|
|
delivery_attempts?: SortOrder
|
|
response_time?: SortOrder
|
|
}
|
|
|
|
export type alert_recipientsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
recipient_type?: SortOrder
|
|
recipient_id?: SortOrder
|
|
recipient_name?: SortOrder
|
|
channel?: SortOrder
|
|
delivery_status?: SortOrder
|
|
sent_at?: SortOrder
|
|
delivered_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
failed_at?: SortOrder
|
|
delivery_attempts?: SortOrder
|
|
last_attempt_at?: SortOrder
|
|
failure_reason?: SortOrder
|
|
response_time?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type alert_recipientsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
recipient_type?: SortOrder
|
|
recipient_id?: SortOrder
|
|
recipient_name?: SortOrder
|
|
channel?: SortOrder
|
|
delivery_status?: SortOrder
|
|
sent_at?: SortOrder
|
|
delivered_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
failed_at?: SortOrder
|
|
delivery_attempts?: SortOrder
|
|
last_attempt_at?: SortOrder
|
|
failure_reason?: SortOrder
|
|
response_time?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type alert_recipientsSumOrderByAggregateInput = {
|
|
delivery_attempts?: SortOrder
|
|
response_time?: SortOrder
|
|
}
|
|
|
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedStringFilter<$PrismaModel>
|
|
_max?: NestedStringFilter<$PrismaModel>
|
|
}
|
|
|
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedStringNullableFilter<$PrismaModel>
|
|
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
}
|
|
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
path?: string
|
|
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
lt?: InputJsonValue
|
|
lte?: InputJsonValue
|
|
gt?: InputJsonValue
|
|
gte?: InputJsonValue
|
|
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedJsonNullableFilter<$PrismaModel>
|
|
_max?: NestedJsonNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type BoolNullableFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
|
}
|
|
|
|
export type DecimalNullableFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
|
|
}
|
|
|
|
export type Alert_recipientsListRelationFilter = {
|
|
every?: alert_recipientsWhereInput
|
|
some?: alert_recipientsWhereInput
|
|
none?: alert_recipientsWhereInput
|
|
}
|
|
|
|
export type IncidentsNullableScalarRelationFilter = {
|
|
is?: incidentsWhereInput | null
|
|
isNot?: incidentsWhereInput | null
|
|
}
|
|
|
|
export type alert_recipientsOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type alertsOrderByRelevanceInput = {
|
|
fields: alertsOrderByRelevanceFieldEnum | alertsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type alertsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
title?: SortOrder
|
|
message?: SortOrder
|
|
type?: SortOrder
|
|
category?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
is_emergency?: SortOrder
|
|
is_broadcast?: SortOrder
|
|
is_recurring?: SortOrder
|
|
location?: SortOrder
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
target_zones?: SortOrder
|
|
target_buildings?: SortOrder
|
|
target_roles?: SortOrder
|
|
target_teams?: SortOrder
|
|
target_users?: SortOrder
|
|
geofence_ids?: SortOrder
|
|
scheduled_at?: SortOrder
|
|
starts_at?: SortOrder
|
|
ends_at?: SortOrder
|
|
expires_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
resolved_at?: SortOrder
|
|
recurrence_pattern?: SortOrder
|
|
next_occurrence?: SortOrder
|
|
content?: SortOrder
|
|
attachments?: SortOrder
|
|
media_urls?: SortOrder
|
|
action_buttons?: SortOrder
|
|
channels?: SortOrder
|
|
delivery_config?: SortOrder
|
|
source?: SortOrder
|
|
source_id?: SortOrder
|
|
context?: SortOrder
|
|
incident_id?: SortOrder
|
|
camera_ids?: SortOrder
|
|
related_alerts?: SortOrder
|
|
total_recipients?: SortOrder
|
|
delivered_count?: SortOrder
|
|
acknowledged_count?: SortOrder
|
|
failed_count?: SortOrder
|
|
tags?: SortOrder
|
|
metadata?: SortOrder
|
|
custom_fields?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
deleted_at?: SortOrder
|
|
deleted_by?: SortOrder
|
|
}
|
|
|
|
export type alertsAvgOrderByAggregateInput = {
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
total_recipients?: SortOrder
|
|
delivered_count?: SortOrder
|
|
acknowledged_count?: SortOrder
|
|
failed_count?: SortOrder
|
|
}
|
|
|
|
export type alertsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
title?: SortOrder
|
|
message?: SortOrder
|
|
type?: SortOrder
|
|
category?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
is_emergency?: SortOrder
|
|
is_broadcast?: SortOrder
|
|
is_recurring?: SortOrder
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
scheduled_at?: SortOrder
|
|
starts_at?: SortOrder
|
|
ends_at?: SortOrder
|
|
expires_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
resolved_at?: SortOrder
|
|
next_occurrence?: SortOrder
|
|
source?: SortOrder
|
|
source_id?: SortOrder
|
|
incident_id?: SortOrder
|
|
total_recipients?: SortOrder
|
|
delivered_count?: SortOrder
|
|
acknowledged_count?: SortOrder
|
|
failed_count?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
deleted_at?: SortOrder
|
|
deleted_by?: SortOrder
|
|
}
|
|
|
|
export type alertsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
alert_id?: SortOrder
|
|
title?: SortOrder
|
|
message?: SortOrder
|
|
type?: SortOrder
|
|
category?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
is_emergency?: SortOrder
|
|
is_broadcast?: SortOrder
|
|
is_recurring?: SortOrder
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
scheduled_at?: SortOrder
|
|
starts_at?: SortOrder
|
|
ends_at?: SortOrder
|
|
expires_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
resolved_at?: SortOrder
|
|
next_occurrence?: SortOrder
|
|
source?: SortOrder
|
|
source_id?: SortOrder
|
|
incident_id?: SortOrder
|
|
total_recipients?: SortOrder
|
|
delivered_count?: SortOrder
|
|
acknowledged_count?: SortOrder
|
|
failed_count?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
deleted_at?: SortOrder
|
|
deleted_by?: SortOrder
|
|
}
|
|
|
|
export type alertsSumOrderByAggregateInput = {
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
total_recipients?: SortOrder
|
|
delivered_count?: SortOrder
|
|
acknowledged_count?: SortOrder
|
|
failed_count?: SortOrder
|
|
}
|
|
|
|
export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedBoolNullableFilter<$PrismaModel>
|
|
_max?: NestedBoolNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedDecimalNullableFilter<$PrismaModel>
|
|
_sum?: NestedDecimalNullableFilter<$PrismaModel>
|
|
_min?: NestedDecimalNullableFilter<$PrismaModel>
|
|
_max?: NestedDecimalNullableFilter<$PrismaModel>
|
|
}
|
|
export type JsonFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type JsonFilterBase<$PrismaModel = never> = {
|
|
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
path?: string
|
|
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
lt?: InputJsonValue
|
|
lte?: InputJsonValue
|
|
gt?: InputJsonValue
|
|
gte?: InputJsonValue
|
|
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
}
|
|
|
|
export type basemap_configsOrderByRelevanceInput = {
|
|
fields: basemap_configsOrderByRelevanceFieldEnum | basemap_configsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type basemap_configsNameVersionCompoundUniqueInput = {
|
|
name: string
|
|
version: number
|
|
}
|
|
|
|
export type basemap_configsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
svg_data?: SortOrder
|
|
calibration?: SortOrder
|
|
dimensions?: SortOrder
|
|
is_active?: SortOrder
|
|
is_default?: SortOrder
|
|
version?: SortOrder
|
|
settings?: SortOrder
|
|
metadata?: SortOrder
|
|
file_size?: SortOrder
|
|
checksum?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type basemap_configsAvgOrderByAggregateInput = {
|
|
version?: SortOrder
|
|
file_size?: SortOrder
|
|
}
|
|
|
|
export type basemap_configsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
svg_data?: SortOrder
|
|
is_active?: SortOrder
|
|
is_default?: SortOrder
|
|
version?: SortOrder
|
|
file_size?: SortOrder
|
|
checksum?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type basemap_configsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
svg_data?: SortOrder
|
|
is_active?: SortOrder
|
|
is_default?: SortOrder
|
|
version?: SortOrder
|
|
file_size?: SortOrder
|
|
checksum?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type basemap_configsSumOrderByAggregateInput = {
|
|
version?: SortOrder
|
|
file_size?: SortOrder
|
|
}
|
|
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
path?: string
|
|
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
lt?: InputJsonValue
|
|
lte?: InputJsonValue
|
|
gt?: InputJsonValue
|
|
gte?: InputJsonValue
|
|
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedJsonFilter<$PrismaModel>
|
|
_max?: NestedJsonFilter<$PrismaModel>
|
|
}
|
|
|
|
export type IntFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type CamerasScalarRelationFilter = {
|
|
is?: camerasWhereInput
|
|
isNot?: camerasWhereInput
|
|
}
|
|
|
|
export type camera_health_logOrderByRelevanceInput = {
|
|
fields: camera_health_logOrderByRelevanceFieldEnum | camera_health_logOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type camera_health_logCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
camera_id?: SortOrder
|
|
status?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrder
|
|
stream_accessible?: SortOrder
|
|
timestamp?: SortOrder
|
|
}
|
|
|
|
export type camera_health_logAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
}
|
|
|
|
export type camera_health_logMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
camera_id?: SortOrder
|
|
status?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrder
|
|
stream_accessible?: SortOrder
|
|
timestamp?: SortOrder
|
|
}
|
|
|
|
export type camera_health_logMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
camera_id?: SortOrder
|
|
status?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrder
|
|
stream_accessible?: SortOrder
|
|
timestamp?: SortOrder
|
|
}
|
|
|
|
export type camera_health_logSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
}
|
|
|
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type DecimalFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
|
|
}
|
|
|
|
export type Enumcameras_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.cameras_status[] | null
|
|
notIn?: $Enums.cameras_status[] | null
|
|
not?: NestedEnumcameras_statusNullableFilter<$PrismaModel> | $Enums.cameras_status | null
|
|
}
|
|
|
|
export type Camera_health_logListRelationFilter = {
|
|
every?: camera_health_logWhereInput
|
|
some?: camera_health_logWhereInput
|
|
none?: camera_health_logWhereInput
|
|
}
|
|
|
|
export type camera_health_logOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type camerasOrderByRelevanceInput = {
|
|
fields: camerasOrderByRelevanceFieldEnum | camerasOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type camerasCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
label?: SortOrder
|
|
area?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
stream_url?: SortOrder
|
|
status?: SortOrder
|
|
last_heartbeat?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type camerasAvgOrderByAggregateInput = {
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
}
|
|
|
|
export type camerasMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
label?: SortOrder
|
|
area?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
stream_url?: SortOrder
|
|
status?: SortOrder
|
|
last_heartbeat?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type camerasMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
label?: SortOrder
|
|
area?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
stream_url?: SortOrder
|
|
status?: SortOrder
|
|
last_heartbeat?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
error_message?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type camerasSumOrderByAggregateInput = {
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
response_time?: SortOrder
|
|
health_score?: SortOrder
|
|
}
|
|
|
|
export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedDecimalFilter<$PrismaModel>
|
|
_sum?: NestedDecimalFilter<$PrismaModel>
|
|
_min?: NestedDecimalFilter<$PrismaModel>
|
|
_max?: NestedDecimalFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumcameras_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.cameras_status[] | null
|
|
notIn?: $Enums.cameras_status[] | null
|
|
not?: NestedEnumcameras_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.cameras_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumcameras_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumcameras_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type BigIntNullableFilter<$PrismaModel = never> = {
|
|
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null
|
|
in?: bigint[] | number[] | null
|
|
notIn?: bigint[] | number[] | null
|
|
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null
|
|
}
|
|
|
|
export type feature_flagsOrderByRelevanceInput = {
|
|
fields: feature_flagsOrderByRelevanceFieldEnum | feature_flagsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type feature_flagsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
is_enabled?: SortOrder
|
|
type?: SortOrder
|
|
value?: SortOrder
|
|
default_value?: SortOrder
|
|
environment?: SortOrder
|
|
category?: SortOrder
|
|
tags?: SortOrder
|
|
conditions?: SortOrder
|
|
rollout_percentage?: SortOrder
|
|
user_segments?: SortOrder
|
|
is_archived?: SortOrder
|
|
is_permanent?: SortOrder
|
|
expires_at?: SortOrder
|
|
last_evaluated_at?: SortOrder
|
|
evaluation_count?: SortOrder
|
|
metadata?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
enabled_at?: SortOrder
|
|
disabled_at?: SortOrder
|
|
}
|
|
|
|
export type feature_flagsAvgOrderByAggregateInput = {
|
|
rollout_percentage?: SortOrder
|
|
evaluation_count?: SortOrder
|
|
}
|
|
|
|
export type feature_flagsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
is_enabled?: SortOrder
|
|
type?: SortOrder
|
|
environment?: SortOrder
|
|
category?: SortOrder
|
|
rollout_percentage?: SortOrder
|
|
is_archived?: SortOrder
|
|
is_permanent?: SortOrder
|
|
expires_at?: SortOrder
|
|
last_evaluated_at?: SortOrder
|
|
evaluation_count?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
enabled_at?: SortOrder
|
|
disabled_at?: SortOrder
|
|
}
|
|
|
|
export type feature_flagsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
key?: SortOrder
|
|
name?: SortOrder
|
|
description?: SortOrder
|
|
is_enabled?: SortOrder
|
|
type?: SortOrder
|
|
environment?: SortOrder
|
|
category?: SortOrder
|
|
rollout_percentage?: SortOrder
|
|
is_archived?: SortOrder
|
|
is_permanent?: SortOrder
|
|
expires_at?: SortOrder
|
|
last_evaluated_at?: SortOrder
|
|
evaluation_count?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
enabled_at?: SortOrder
|
|
disabled_at?: SortOrder
|
|
}
|
|
|
|
export type feature_flagsSumOrderByAggregateInput = {
|
|
rollout_percentage?: SortOrder
|
|
evaluation_count?: SortOrder
|
|
}
|
|
|
|
export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null
|
|
in?: bigint[] | number[] | null
|
|
notIn?: bigint[] | number[] | null
|
|
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedBigIntNullableFilter<$PrismaModel>
|
|
_min?: NestedBigIntNullableFilter<$PrismaModel>
|
|
_max?: NestedBigIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type GeofencesScalarRelationFilter = {
|
|
is?: geofencesWhereInput
|
|
isNot?: geofencesWhereInput
|
|
}
|
|
|
|
export type geofence_breachesOrderByRelevanceInput = {
|
|
fields: geofence_breachesOrderByRelevanceFieldEnum | geofence_breachesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type geofence_breachesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
team_member_id?: SortOrder
|
|
breach_type?: SortOrder
|
|
location?: SortOrder
|
|
severity?: SortOrder
|
|
is_resolved?: SortOrder
|
|
resolved_at?: SortOrder
|
|
resolved_by?: SortOrder
|
|
notes?: SortOrder
|
|
metadata?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type geofence_breachesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
team_member_id?: SortOrder
|
|
breach_type?: SortOrder
|
|
severity?: SortOrder
|
|
is_resolved?: SortOrder
|
|
resolved_at?: SortOrder
|
|
resolved_by?: SortOrder
|
|
notes?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type geofence_breachesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
team_member_id?: SortOrder
|
|
breach_type?: SortOrder
|
|
severity?: SortOrder
|
|
is_resolved?: SortOrder
|
|
resolved_at?: SortOrder
|
|
resolved_by?: SortOrder
|
|
notes?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type Geofence_breachesListRelationFilter = {
|
|
every?: geofence_breachesWhereInput
|
|
some?: geofence_breachesWhereInput
|
|
none?: geofence_breachesWhereInput
|
|
}
|
|
|
|
export type IncidentsListRelationFilter = {
|
|
every?: incidentsWhereInput
|
|
some?: incidentsWhereInput
|
|
none?: incidentsWhereInput
|
|
}
|
|
|
|
export type Map_pinsListRelationFilter = {
|
|
every?: map_pinsWhereInput
|
|
some?: map_pinsWhereInput
|
|
none?: map_pinsWhereInput
|
|
}
|
|
|
|
export type geofence_breachesOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type incidentsOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type map_pinsOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type geofencesOrderByRelevanceInput = {
|
|
fields: geofencesOrderByRelevanceFieldEnum | geofencesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type geofencesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
coordinates?: SortOrder
|
|
description?: SortOrder
|
|
is_active?: SortOrder
|
|
priority?: SortOrder
|
|
notification_settings?: SortOrder
|
|
metadata?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type geofencesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrder
|
|
is_active?: SortOrder
|
|
priority?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type geofencesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrder
|
|
is_active?: SortOrder
|
|
priority?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type Enumhouses_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.houses_status[] | null
|
|
notIn?: $Enums.houses_status[] | null
|
|
not?: NestedEnumhouses_statusNullableFilter<$PrismaModel> | $Enums.houses_status | null
|
|
}
|
|
|
|
export type housesOrderByRelevanceInput = {
|
|
fields: housesOrderByRelevanceFieldEnum | housesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type housesHouse_numberBlockCompoundUniqueInput = {
|
|
house_number: string
|
|
block: string
|
|
}
|
|
|
|
export type housesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
house_number?: SortOrder
|
|
block?: SortOrder
|
|
street?: SortOrder
|
|
owner_name?: SortOrder
|
|
owner_phone?: SortOrder
|
|
status?: SortOrder
|
|
perumahan_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type housesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
house_number?: SortOrder
|
|
block?: SortOrder
|
|
street?: SortOrder
|
|
owner_name?: SortOrder
|
|
owner_phone?: SortOrder
|
|
status?: SortOrder
|
|
perumahan_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type housesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
house_number?: SortOrder
|
|
block?: SortOrder
|
|
street?: SortOrder
|
|
owner_name?: SortOrder
|
|
owner_phone?: SortOrder
|
|
status?: SortOrder
|
|
perumahan_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type Enumhouses_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.houses_status[] | null
|
|
notIn?: $Enums.houses_status[] | null
|
|
not?: NestedEnumhouses_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.houses_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumhouses_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumhouses_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type IncidentsScalarRelationFilter = {
|
|
is?: incidentsWhereInput
|
|
isNot?: incidentsWhereInput
|
|
}
|
|
|
|
export type incident_updatesOrderByRelevanceInput = {
|
|
fields: incident_updatesOrderByRelevanceFieldEnum | incident_updatesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type incident_updatesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
incident_id?: SortOrder
|
|
update_type?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
old_values?: SortOrder
|
|
new_values?: SortOrder
|
|
changed_fields?: SortOrder
|
|
is_internal?: SortOrder
|
|
is_system_generated?: SortOrder
|
|
attachments?: SortOrder
|
|
created_at?: SortOrder
|
|
created_by?: SortOrder
|
|
notifications_sent?: SortOrder
|
|
notification_status?: SortOrder
|
|
}
|
|
|
|
export type incident_updatesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
incident_id?: SortOrder
|
|
update_type?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
is_internal?: SortOrder
|
|
is_system_generated?: SortOrder
|
|
created_at?: SortOrder
|
|
created_by?: SortOrder
|
|
notification_status?: SortOrder
|
|
}
|
|
|
|
export type incident_updatesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
incident_id?: SortOrder
|
|
update_type?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
is_internal?: SortOrder
|
|
is_system_generated?: SortOrder
|
|
created_at?: SortOrder
|
|
created_by?: SortOrder
|
|
notification_status?: SortOrder
|
|
}
|
|
|
|
export type DateTimeFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
}
|
|
|
|
export type AlertsListRelationFilter = {
|
|
every?: alertsWhereInput
|
|
some?: alertsWhereInput
|
|
none?: alertsWhereInput
|
|
}
|
|
|
|
export type Incident_updatesListRelationFilter = {
|
|
every?: incident_updatesWhereInput
|
|
some?: incident_updatesWhereInput
|
|
none?: incident_updatesWhereInput
|
|
}
|
|
|
|
export type Team_membersNullableScalarRelationFilter = {
|
|
is?: team_membersWhereInput | null
|
|
isNot?: team_membersWhereInput | null
|
|
}
|
|
|
|
export type GeofencesNullableScalarRelationFilter = {
|
|
is?: geofencesWhereInput | null
|
|
isNot?: geofencesWhereInput | null
|
|
}
|
|
|
|
export type alertsOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type incident_updatesOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type incidentsOrderByRelevanceInput = {
|
|
fields: incidentsOrderByRelevanceFieldEnum | incidentsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type incidentsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
incident_number?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
type?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
location?: SortOrder
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
address?: SortOrder
|
|
zone?: SortOrder
|
|
building?: SortOrder
|
|
floor?: SortOrder
|
|
room?: SortOrder
|
|
reported_by?: SortOrder
|
|
reporter_name?: SortOrder
|
|
reporter_contact?: SortOrder
|
|
reporter_type?: SortOrder
|
|
assigned_to?: SortOrder
|
|
assigned_team?: SortOrder
|
|
assigned_at?: SortOrder
|
|
occurred_at?: SortOrder
|
|
reported_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
resolved_at?: SortOrder
|
|
closed_at?: SortOrder
|
|
due_date?: SortOrder
|
|
tags?: SortOrder
|
|
attachments?: SortOrder
|
|
evidence?: SortOrder
|
|
witnesses?: SortOrder
|
|
related_incidents?: SortOrder
|
|
camera_ids?: SortOrder
|
|
geofence_id?: SortOrder
|
|
alert_id?: SortOrder
|
|
metadata?: SortOrder
|
|
custom_fields?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
deleted_at?: SortOrder
|
|
deleted_by?: SortOrder
|
|
}
|
|
|
|
export type incidentsAvgOrderByAggregateInput = {
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
}
|
|
|
|
export type incidentsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
incident_number?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
type?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
address?: SortOrder
|
|
zone?: SortOrder
|
|
building?: SortOrder
|
|
floor?: SortOrder
|
|
room?: SortOrder
|
|
reported_by?: SortOrder
|
|
reporter_name?: SortOrder
|
|
reporter_contact?: SortOrder
|
|
reporter_type?: SortOrder
|
|
assigned_to?: SortOrder
|
|
assigned_team?: SortOrder
|
|
assigned_at?: SortOrder
|
|
occurred_at?: SortOrder
|
|
reported_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
resolved_at?: SortOrder
|
|
closed_at?: SortOrder
|
|
due_date?: SortOrder
|
|
geofence_id?: SortOrder
|
|
alert_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
deleted_at?: SortOrder
|
|
deleted_by?: SortOrder
|
|
}
|
|
|
|
export type incidentsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
incident_number?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
type?: SortOrder
|
|
severity?: SortOrder
|
|
priority?: SortOrder
|
|
status?: SortOrder
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
address?: SortOrder
|
|
zone?: SortOrder
|
|
building?: SortOrder
|
|
floor?: SortOrder
|
|
room?: SortOrder
|
|
reported_by?: SortOrder
|
|
reporter_name?: SortOrder
|
|
reporter_contact?: SortOrder
|
|
reporter_type?: SortOrder
|
|
assigned_to?: SortOrder
|
|
assigned_team?: SortOrder
|
|
assigned_at?: SortOrder
|
|
occurred_at?: SortOrder
|
|
reported_at?: SortOrder
|
|
acknowledged_at?: SortOrder
|
|
resolved_at?: SortOrder
|
|
closed_at?: SortOrder
|
|
due_date?: SortOrder
|
|
geofence_id?: SortOrder
|
|
alert_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
deleted_at?: SortOrder
|
|
deleted_by?: SortOrder
|
|
}
|
|
|
|
export type incidentsSumOrderByAggregateInput = {
|
|
coordinates_lat?: SortOrder
|
|
coordinates_lng?: SortOrder
|
|
}
|
|
|
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedDateTimeFilter<$PrismaModel>
|
|
_max?: NestedDateTimeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumktp_validation_audit_actionFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ktp_validation_audit_action[]
|
|
notIn?: $Enums.ktp_validation_audit_action[]
|
|
not?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> | $Enums.ktp_validation_audit_action
|
|
}
|
|
|
|
export type Visitor_ktp_dataScalarRelationFilter = {
|
|
is?: visitor_ktp_dataWhereInput
|
|
isNot?: visitor_ktp_dataWhereInput
|
|
}
|
|
|
|
export type ktp_validation_auditOrderByRelevanceInput = {
|
|
fields: ktp_validation_auditOrderByRelevanceFieldEnum | ktp_validation_auditOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type ktp_validation_auditCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
ktp_data_id?: SortOrder
|
|
action?: SortOrder
|
|
old_values?: SortOrder
|
|
new_values?: SortOrder
|
|
performed_by?: SortOrder
|
|
ip_address?: SortOrder
|
|
user_agent?: SortOrder
|
|
reason?: SortOrder
|
|
created_at?: SortOrder
|
|
metadata?: SortOrder
|
|
}
|
|
|
|
export type ktp_validation_auditMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
ktp_data_id?: SortOrder
|
|
action?: SortOrder
|
|
performed_by?: SortOrder
|
|
ip_address?: SortOrder
|
|
user_agent?: SortOrder
|
|
reason?: SortOrder
|
|
created_at?: SortOrder
|
|
}
|
|
|
|
export type ktp_validation_auditMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
ktp_data_id?: SortOrder
|
|
action?: SortOrder
|
|
performed_by?: SortOrder
|
|
ip_address?: SortOrder
|
|
user_agent?: SortOrder
|
|
reason?: SortOrder
|
|
created_at?: SortOrder
|
|
}
|
|
|
|
export type Enumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ktp_validation_audit_action[]
|
|
notIn?: $Enums.ktp_validation_audit_action[]
|
|
not?: NestedEnumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel> | $Enums.ktp_validation_audit_action
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel>
|
|
_max?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel>
|
|
}
|
|
|
|
export type map_pinsOrderByRelevanceInput = {
|
|
fields: map_pinsOrderByRelevanceFieldEnum | map_pinsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type map_pinsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
coordinates?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
status?: SortOrder
|
|
priority?: SortOrder
|
|
icon_type?: SortOrder
|
|
icon_color?: SortOrder
|
|
size?: SortOrder
|
|
is_visible?: SortOrder
|
|
is_clickable?: SortOrder
|
|
metadata?: SortOrder
|
|
alert_id?: SortOrder
|
|
incident_id?: SortOrder
|
|
team_member_id?: SortOrder
|
|
camera_id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type map_pinsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
status?: SortOrder
|
|
priority?: SortOrder
|
|
icon_type?: SortOrder
|
|
icon_color?: SortOrder
|
|
size?: SortOrder
|
|
is_visible?: SortOrder
|
|
is_clickable?: SortOrder
|
|
alert_id?: SortOrder
|
|
incident_id?: SortOrder
|
|
team_member_id?: SortOrder
|
|
camera_id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type map_pinsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
title?: SortOrder
|
|
description?: SortOrder
|
|
status?: SortOrder
|
|
priority?: SortOrder
|
|
icon_type?: SortOrder
|
|
icon_color?: SortOrder
|
|
size?: SortOrder
|
|
is_visible?: SortOrder
|
|
is_clickable?: SortOrder
|
|
alert_id?: SortOrder
|
|
incident_id?: SortOrder
|
|
team_member_id?: SortOrder
|
|
camera_id?: SortOrder
|
|
geofence_id?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
}
|
|
|
|
export type Enumperumahan_facilities_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.perumahan_facilities_status[] | null
|
|
notIn?: $Enums.perumahan_facilities_status[] | null
|
|
not?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null
|
|
}
|
|
|
|
export type perumahan_facilitiesOrderByRelevanceInput = {
|
|
fields: perumahan_facilitiesOrderByRelevanceFieldEnum | perumahan_facilitiesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type perumahan_facilitiesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
status?: SortOrder
|
|
operating_hours?: SortOrder
|
|
contact_info?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type perumahan_facilitiesAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
}
|
|
|
|
export type perumahan_facilitiesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
status?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type perumahan_facilitiesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
type?: SortOrder
|
|
description?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
status?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type perumahan_facilitiesSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
}
|
|
|
|
export type Enumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.perumahan_facilities_status[] | null
|
|
notIn?: $Enums.perumahan_facilities_status[] | null
|
|
not?: NestedEnumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type perumahan_infoOrderByRelevanceInput = {
|
|
fields: perumahan_infoOrderByRelevanceFieldEnum | perumahan_infoOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type perumahan_infoCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
total_units?: SortOrder
|
|
clusters?: SortOrder
|
|
address?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type perumahan_infoAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
total_units?: SortOrder
|
|
}
|
|
|
|
export type perumahan_infoMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
total_units?: SortOrder
|
|
address?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type perumahan_infoMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
total_units?: SortOrder
|
|
address?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type perumahan_infoSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
total_units?: SortOrder
|
|
}
|
|
|
|
export type BoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
export type Enumqr_codes_security_levelFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel>
|
|
in?: $Enums.qr_codes_security_level[]
|
|
notIn?: $Enums.qr_codes_security_level[]
|
|
not?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> | $Enums.qr_codes_security_level
|
|
}
|
|
|
|
export type Visitor_registrationsListRelationFilter = {
|
|
every?: visitor_registrationsWhereInput
|
|
some?: visitor_registrationsWhereInput
|
|
none?: visitor_registrationsWhereInput
|
|
}
|
|
|
|
export type visitor_registrationsOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type qr_codesOrderByRelevanceInput = {
|
|
fields: qr_codesOrderByRelevanceFieldEnum | qr_codesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type qr_codesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
entry_point?: SortOrder
|
|
qr_data?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
is_active?: SortOrder
|
|
description?: SortOrder
|
|
max_daily_registrations?: SortOrder
|
|
operating_hours?: SortOrder
|
|
security_level?: SortOrder
|
|
requires_approval?: SortOrder
|
|
auto_approve_roles?: SortOrder
|
|
metadata?: SortOrder
|
|
last_used_at?: SortOrder
|
|
usage_count?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type qr_codesAvgOrderByAggregateInput = {
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
max_daily_registrations?: SortOrder
|
|
usage_count?: SortOrder
|
|
}
|
|
|
|
export type qr_codesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
entry_point?: SortOrder
|
|
qr_data?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
is_active?: SortOrder
|
|
description?: SortOrder
|
|
max_daily_registrations?: SortOrder
|
|
security_level?: SortOrder
|
|
requires_approval?: SortOrder
|
|
last_used_at?: SortOrder
|
|
usage_count?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type qr_codesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
entry_point?: SortOrder
|
|
qr_data?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
is_active?: SortOrder
|
|
description?: SortOrder
|
|
max_daily_registrations?: SortOrder
|
|
security_level?: SortOrder
|
|
requires_approval?: SortOrder
|
|
last_used_at?: SortOrder
|
|
usage_count?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type qr_codesSumOrderByAggregateInput = {
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
geofence_radius?: SortOrder
|
|
max_daily_registrations?: SortOrder
|
|
usage_count?: SortOrder
|
|
}
|
|
|
|
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumqr_codes_security_levelWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel>
|
|
in?: $Enums.qr_codes_security_level[]
|
|
notIn?: $Enums.qr_codes_security_level[]
|
|
not?: NestedEnumqr_codes_security_levelWithAggregatesFilter<$PrismaModel> | $Enums.qr_codes_security_level
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumqr_codes_security_levelFilter<$PrismaModel>
|
|
_max?: NestedEnumqr_codes_security_levelFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumsecurity_activities_severityNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.security_activities_severity[] | null
|
|
notIn?: $Enums.security_activities_severity[] | null
|
|
not?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> | $Enums.security_activities_severity | null
|
|
}
|
|
|
|
export type security_activitiesOrderByRelevanceInput = {
|
|
fields: security_activitiesOrderByRelevanceFieldEnum | security_activitiesOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type security_activitiesCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
ref_id?: SortOrder
|
|
actor?: SortOrder
|
|
note?: SortOrder
|
|
severity?: SortOrder
|
|
timestamp?: SortOrder
|
|
metadata?: SortOrder
|
|
source?: SortOrder
|
|
}
|
|
|
|
export type security_activitiesAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type security_activitiesMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
ref_id?: SortOrder
|
|
actor?: SortOrder
|
|
note?: SortOrder
|
|
severity?: SortOrder
|
|
timestamp?: SortOrder
|
|
source?: SortOrder
|
|
}
|
|
|
|
export type security_activitiesMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
type?: SortOrder
|
|
ref_id?: SortOrder
|
|
actor?: SortOrder
|
|
note?: SortOrder
|
|
severity?: SortOrder
|
|
timestamp?: SortOrder
|
|
source?: SortOrder
|
|
}
|
|
|
|
export type security_activitiesSumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
}
|
|
|
|
export type Enumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.security_activities_severity[] | null
|
|
notIn?: $Enums.security_activities_severity[] | null
|
|
not?: NestedEnumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel> | $Enums.security_activities_severity | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type sequelizemetaOrderByRelevanceInput = {
|
|
fields: sequelizemetaOrderByRelevanceFieldEnum | sequelizemetaOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type sequelizemetaCountOrderByAggregateInput = {
|
|
name?: SortOrder
|
|
}
|
|
|
|
export type sequelizemetaMaxOrderByAggregateInput = {
|
|
name?: SortOrder
|
|
}
|
|
|
|
export type sequelizemetaMinOrderByAggregateInput = {
|
|
name?: SortOrder
|
|
}
|
|
|
|
export type Team_membersScalarRelationFilter = {
|
|
is?: team_membersWhereInput
|
|
isNot?: team_membersWhereInput
|
|
}
|
|
|
|
export type team_location_historyOrderByRelevanceInput = {
|
|
fields: team_location_historyOrderByRelevanceFieldEnum | team_location_historyOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type team_location_historyCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
member_id?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
activity_type?: SortOrder
|
|
timestamp?: SortOrder
|
|
}
|
|
|
|
export type team_location_historyAvgOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
}
|
|
|
|
export type team_location_historyMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
member_id?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
activity_type?: SortOrder
|
|
timestamp?: SortOrder
|
|
}
|
|
|
|
export type team_location_historyMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
member_id?: SortOrder
|
|
location?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
activity_type?: SortOrder
|
|
timestamp?: SortOrder
|
|
}
|
|
|
|
export type team_location_historySumOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
lat?: SortOrder
|
|
lng?: SortOrder
|
|
}
|
|
|
|
export type Enumteam_members_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.team_members_status[] | null
|
|
notIn?: $Enums.team_members_status[] | null
|
|
not?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> | $Enums.team_members_status | null
|
|
}
|
|
|
|
export type Team_location_historyListRelationFilter = {
|
|
every?: team_location_historyWhereInput
|
|
some?: team_location_historyWhereInput
|
|
none?: team_location_historyWhereInput
|
|
}
|
|
|
|
export type team_location_historyOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type team_membersOrderByRelevanceInput = {
|
|
fields: team_membersOrderByRelevanceFieldEnum | team_membersOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type team_membersCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
nama?: SortOrder
|
|
role?: SortOrder
|
|
status?: SortOrder
|
|
phone?: SortOrder
|
|
email?: SortOrder
|
|
current_location?: SortOrder
|
|
last_update?: SortOrder
|
|
shift_start?: SortOrder
|
|
shift_end?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type team_membersMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
nama?: SortOrder
|
|
role?: SortOrder
|
|
status?: SortOrder
|
|
phone?: SortOrder
|
|
email?: SortOrder
|
|
current_location?: SortOrder
|
|
last_update?: SortOrder
|
|
shift_start?: SortOrder
|
|
shift_end?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type team_membersMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
nama?: SortOrder
|
|
role?: SortOrder
|
|
status?: SortOrder
|
|
phone?: SortOrder
|
|
email?: SortOrder
|
|
current_location?: SortOrder
|
|
last_update?: SortOrder
|
|
shift_start?: SortOrder
|
|
shift_end?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type Enumteam_members_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.team_members_status[] | null
|
|
notIn?: $Enums.team_members_status[] | null
|
|
not?: NestedEnumteam_members_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.team_members_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumteam_members_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumteam_members_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumvisitor_ktp_data_genderNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.visitor_ktp_data_gender[] | null
|
|
notIn?: $Enums.visitor_ktp_data_gender[] | null
|
|
not?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null
|
|
}
|
|
|
|
export type Enumvisitor_ktp_data_validation_statusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_ktp_data_validation_status[]
|
|
notIn?: $Enums.visitor_ktp_data_validation_status[]
|
|
not?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status
|
|
}
|
|
|
|
export type Ktp_validation_auditListRelationFilter = {
|
|
every?: ktp_validation_auditWhereInput
|
|
some?: ktp_validation_auditWhereInput
|
|
none?: ktp_validation_auditWhereInput
|
|
}
|
|
|
|
export type ktp_validation_auditOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type visitor_ktp_dataOrderByRelevanceInput = {
|
|
fields: visitor_ktp_dataOrderByRelevanceFieldEnum | visitor_ktp_dataOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type visitor_ktp_dataCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
visitor_registration_id?: SortOrder
|
|
ktp_number?: SortOrder
|
|
full_name?: SortOrder
|
|
birth_date?: SortOrder
|
|
birth_place?: SortOrder
|
|
gender?: SortOrder
|
|
address?: SortOrder
|
|
rt_rw?: SortOrder
|
|
kelurahan?: SortOrder
|
|
kecamatan?: SortOrder
|
|
religion?: SortOrder
|
|
marital_status?: SortOrder
|
|
occupation?: SortOrder
|
|
nationality?: SortOrder
|
|
ktp_photo_url?: SortOrder
|
|
ktp_photo_hash?: SortOrder
|
|
validation_status?: SortOrder
|
|
validation_confidence?: SortOrder
|
|
validation_notes?: SortOrder
|
|
validated_by?: SortOrder
|
|
validated_at?: SortOrder
|
|
ocr_raw_data?: SortOrder
|
|
manual_corrections?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type visitor_ktp_dataAvgOrderByAggregateInput = {
|
|
validation_confidence?: SortOrder
|
|
}
|
|
|
|
export type visitor_ktp_dataMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
visitor_registration_id?: SortOrder
|
|
ktp_number?: SortOrder
|
|
full_name?: SortOrder
|
|
birth_date?: SortOrder
|
|
birth_place?: SortOrder
|
|
gender?: SortOrder
|
|
address?: SortOrder
|
|
rt_rw?: SortOrder
|
|
kelurahan?: SortOrder
|
|
kecamatan?: SortOrder
|
|
religion?: SortOrder
|
|
marital_status?: SortOrder
|
|
occupation?: SortOrder
|
|
nationality?: SortOrder
|
|
ktp_photo_url?: SortOrder
|
|
ktp_photo_hash?: SortOrder
|
|
validation_status?: SortOrder
|
|
validation_confidence?: SortOrder
|
|
validation_notes?: SortOrder
|
|
validated_by?: SortOrder
|
|
validated_at?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type visitor_ktp_dataMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
visitor_registration_id?: SortOrder
|
|
ktp_number?: SortOrder
|
|
full_name?: SortOrder
|
|
birth_date?: SortOrder
|
|
birth_place?: SortOrder
|
|
gender?: SortOrder
|
|
address?: SortOrder
|
|
rt_rw?: SortOrder
|
|
kelurahan?: SortOrder
|
|
kecamatan?: SortOrder
|
|
religion?: SortOrder
|
|
marital_status?: SortOrder
|
|
occupation?: SortOrder
|
|
nationality?: SortOrder
|
|
ktp_photo_url?: SortOrder
|
|
ktp_photo_hash?: SortOrder
|
|
validation_status?: SortOrder
|
|
validation_confidence?: SortOrder
|
|
validation_notes?: SortOrder
|
|
validated_by?: SortOrder
|
|
validated_at?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
}
|
|
|
|
export type visitor_ktp_dataSumOrderByAggregateInput = {
|
|
validation_confidence?: SortOrder
|
|
}
|
|
|
|
export type Enumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.visitor_ktp_data_gender[] | null
|
|
notIn?: $Enums.visitor_ktp_data_gender[] | null
|
|
not?: NestedEnumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_ktp_data_validation_status[]
|
|
notIn?: $Enums.visitor_ktp_data_validation_status[]
|
|
not?: NestedEnumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel>
|
|
_max?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type Enumvisitor_registrations_statusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_registrations_status[]
|
|
notIn?: $Enums.visitor_registrations_status[]
|
|
not?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> | $Enums.visitor_registrations_status
|
|
}
|
|
|
|
export type Qr_codesNullableScalarRelationFilter = {
|
|
is?: qr_codesWhereInput | null
|
|
isNot?: qr_codesWhereInput | null
|
|
}
|
|
|
|
export type visitor_registrationsOrderByRelevanceInput = {
|
|
fields: visitor_registrationsOrderByRelevanceFieldEnum | visitor_registrationsOrderByRelevanceFieldEnum[]
|
|
sort: SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type visitor_registrationsCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
phone?: SortOrder
|
|
photo_url?: SortOrder
|
|
purpose?: SortOrder
|
|
entry_point?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
qr_code_id?: SortOrder
|
|
status?: SortOrder
|
|
approved_by?: SortOrder
|
|
approved_at?: SortOrder
|
|
rejected_by?: SortOrder
|
|
rejected_at?: SortOrder
|
|
rejection_reason?: SortOrder
|
|
expires_at?: SortOrder
|
|
checked_in_at?: SortOrder
|
|
checked_out_at?: SortOrder
|
|
metadata?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
location_address?: SortOrder
|
|
location_updated_at?: SortOrder
|
|
}
|
|
|
|
export type visitor_registrationsAvgOrderByAggregateInput = {
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
}
|
|
|
|
export type visitor_registrationsMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
phone?: SortOrder
|
|
photo_url?: SortOrder
|
|
purpose?: SortOrder
|
|
entry_point?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
qr_code_id?: SortOrder
|
|
status?: SortOrder
|
|
approved_by?: SortOrder
|
|
approved_at?: SortOrder
|
|
rejected_by?: SortOrder
|
|
rejected_at?: SortOrder
|
|
rejection_reason?: SortOrder
|
|
expires_at?: SortOrder
|
|
checked_in_at?: SortOrder
|
|
checked_out_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
location_address?: SortOrder
|
|
location_updated_at?: SortOrder
|
|
}
|
|
|
|
export type visitor_registrationsMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
phone?: SortOrder
|
|
photo_url?: SortOrder
|
|
purpose?: SortOrder
|
|
entry_point?: SortOrder
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
qr_code_id?: SortOrder
|
|
status?: SortOrder
|
|
approved_by?: SortOrder
|
|
approved_at?: SortOrder
|
|
rejected_by?: SortOrder
|
|
rejected_at?: SortOrder
|
|
rejection_reason?: SortOrder
|
|
expires_at?: SortOrder
|
|
checked_in_at?: SortOrder
|
|
checked_out_at?: SortOrder
|
|
created_by?: SortOrder
|
|
updated_by?: SortOrder
|
|
created_at?: SortOrder
|
|
updated_at?: SortOrder
|
|
location_address?: SortOrder
|
|
location_updated_at?: SortOrder
|
|
}
|
|
|
|
export type visitor_registrationsSumOrderByAggregateInput = {
|
|
location_lat?: SortOrder
|
|
location_lng?: SortOrder
|
|
}
|
|
|
|
export type Enumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_registrations_status[]
|
|
notIn?: $Enums.visitor_registrations_status[]
|
|
not?: NestedEnumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_registrations_status
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel>
|
|
_max?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type alertsCreateNestedOneWithoutAlert_recipientsInput = {
|
|
create?: XOR<alertsCreateWithoutAlert_recipientsInput, alertsUncheckedCreateWithoutAlert_recipientsInput>
|
|
connectOrCreate?: alertsCreateOrConnectWithoutAlert_recipientsInput
|
|
connect?: alertsWhereUniqueInput
|
|
}
|
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
set?: string
|
|
}
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
set?: string | null
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type alertsUpdateOneRequiredWithoutAlert_recipientsNestedInput = {
|
|
create?: XOR<alertsCreateWithoutAlert_recipientsInput, alertsUncheckedCreateWithoutAlert_recipientsInput>
|
|
connectOrCreate?: alertsCreateOrConnectWithoutAlert_recipientsInput
|
|
upsert?: alertsUpsertWithoutAlert_recipientsInput
|
|
connect?: alertsWhereUniqueInput
|
|
update?: XOR<XOR<alertsUpdateToOneWithWhereWithoutAlert_recipientsInput, alertsUpdateWithoutAlert_recipientsInput>, alertsUncheckedUpdateWithoutAlert_recipientsInput>
|
|
}
|
|
|
|
export type alert_recipientsCreateNestedManyWithoutAlertsInput = {
|
|
create?: XOR<alert_recipientsCreateWithoutAlertsInput, alert_recipientsUncheckedCreateWithoutAlertsInput> | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[]
|
|
connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[]
|
|
createMany?: alert_recipientsCreateManyAlertsInputEnvelope
|
|
connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
}
|
|
|
|
export type incidentsCreateNestedOneWithoutAlertsInput = {
|
|
create?: XOR<incidentsCreateWithoutAlertsInput, incidentsUncheckedCreateWithoutAlertsInput>
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutAlertsInput
|
|
connect?: incidentsWhereUniqueInput
|
|
}
|
|
|
|
export type alert_recipientsUncheckedCreateNestedManyWithoutAlertsInput = {
|
|
create?: XOR<alert_recipientsCreateWithoutAlertsInput, alert_recipientsUncheckedCreateWithoutAlertsInput> | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[]
|
|
connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[]
|
|
createMany?: alert_recipientsCreateManyAlertsInputEnvelope
|
|
connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
}
|
|
|
|
export type NullableBoolFieldUpdateOperationsInput = {
|
|
set?: boolean | null
|
|
}
|
|
|
|
export type NullableDecimalFieldUpdateOperationsInput = {
|
|
set?: Decimal | DecimalJsLike | number | string | null
|
|
increment?: Decimal | DecimalJsLike | number | string
|
|
decrement?: Decimal | DecimalJsLike | number | string
|
|
multiply?: Decimal | DecimalJsLike | number | string
|
|
divide?: Decimal | DecimalJsLike | number | string
|
|
}
|
|
|
|
export type alert_recipientsUpdateManyWithoutAlertsNestedInput = {
|
|
create?: XOR<alert_recipientsCreateWithoutAlertsInput, alert_recipientsUncheckedCreateWithoutAlertsInput> | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[]
|
|
connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[]
|
|
upsert?: alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput | alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput[]
|
|
createMany?: alert_recipientsCreateManyAlertsInputEnvelope
|
|
set?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
disconnect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
delete?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
update?: alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput | alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput[]
|
|
updateMany?: alert_recipientsUpdateManyWithWhereWithoutAlertsInput | alert_recipientsUpdateManyWithWhereWithoutAlertsInput[]
|
|
deleteMany?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[]
|
|
}
|
|
|
|
export type incidentsUpdateOneWithoutAlertsNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutAlertsInput, incidentsUncheckedCreateWithoutAlertsInput>
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutAlertsInput
|
|
upsert?: incidentsUpsertWithoutAlertsInput
|
|
disconnect?: incidentsWhereInput | boolean
|
|
delete?: incidentsWhereInput | boolean
|
|
connect?: incidentsWhereUniqueInput
|
|
update?: XOR<XOR<incidentsUpdateToOneWithWhereWithoutAlertsInput, incidentsUpdateWithoutAlertsInput>, incidentsUncheckedUpdateWithoutAlertsInput>
|
|
}
|
|
|
|
export type alert_recipientsUncheckedUpdateManyWithoutAlertsNestedInput = {
|
|
create?: XOR<alert_recipientsCreateWithoutAlertsInput, alert_recipientsUncheckedCreateWithoutAlertsInput> | alert_recipientsCreateWithoutAlertsInput[] | alert_recipientsUncheckedCreateWithoutAlertsInput[]
|
|
connectOrCreate?: alert_recipientsCreateOrConnectWithoutAlertsInput | alert_recipientsCreateOrConnectWithoutAlertsInput[]
|
|
upsert?: alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput | alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput[]
|
|
createMany?: alert_recipientsCreateManyAlertsInputEnvelope
|
|
set?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
disconnect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
delete?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
connect?: alert_recipientsWhereUniqueInput | alert_recipientsWhereUniqueInput[]
|
|
update?: alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput | alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput[]
|
|
updateMany?: alert_recipientsUpdateManyWithWhereWithoutAlertsInput | alert_recipientsUpdateManyWithWhereWithoutAlertsInput[]
|
|
deleteMany?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[]
|
|
}
|
|
|
|
export type camerasCreateNestedOneWithoutCamera_health_logInput = {
|
|
create?: XOR<camerasCreateWithoutCamera_health_logInput, camerasUncheckedCreateWithoutCamera_health_logInput>
|
|
connectOrCreate?: camerasCreateOrConnectWithoutCamera_health_logInput
|
|
connect?: camerasWhereUniqueInput
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type camerasUpdateOneRequiredWithoutCamera_health_logNestedInput = {
|
|
create?: XOR<camerasCreateWithoutCamera_health_logInput, camerasUncheckedCreateWithoutCamera_health_logInput>
|
|
connectOrCreate?: camerasCreateOrConnectWithoutCamera_health_logInput
|
|
upsert?: camerasUpsertWithoutCamera_health_logInput
|
|
connect?: camerasWhereUniqueInput
|
|
update?: XOR<XOR<camerasUpdateToOneWithWhereWithoutCamera_health_logInput, camerasUpdateWithoutCamera_health_logInput>, camerasUncheckedUpdateWithoutCamera_health_logInput>
|
|
}
|
|
|
|
export type camera_health_logCreateNestedManyWithoutCamerasInput = {
|
|
create?: XOR<camera_health_logCreateWithoutCamerasInput, camera_health_logUncheckedCreateWithoutCamerasInput> | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[]
|
|
connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[]
|
|
createMany?: camera_health_logCreateManyCamerasInputEnvelope
|
|
connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
}
|
|
|
|
export type camera_health_logUncheckedCreateNestedManyWithoutCamerasInput = {
|
|
create?: XOR<camera_health_logCreateWithoutCamerasInput, camera_health_logUncheckedCreateWithoutCamerasInput> | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[]
|
|
connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[]
|
|
createMany?: camera_health_logCreateManyCamerasInputEnvelope
|
|
connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
}
|
|
|
|
export type DecimalFieldUpdateOperationsInput = {
|
|
set?: Decimal | DecimalJsLike | number | string
|
|
increment?: Decimal | DecimalJsLike | number | string
|
|
decrement?: Decimal | DecimalJsLike | number | string
|
|
multiply?: Decimal | DecimalJsLike | number | string
|
|
divide?: Decimal | DecimalJsLike | number | string
|
|
}
|
|
|
|
export type NullableEnumcameras_statusFieldUpdateOperationsInput = {
|
|
set?: $Enums.cameras_status | null
|
|
}
|
|
|
|
export type camera_health_logUpdateManyWithoutCamerasNestedInput = {
|
|
create?: XOR<camera_health_logCreateWithoutCamerasInput, camera_health_logUncheckedCreateWithoutCamerasInput> | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[]
|
|
connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[]
|
|
upsert?: camera_health_logUpsertWithWhereUniqueWithoutCamerasInput | camera_health_logUpsertWithWhereUniqueWithoutCamerasInput[]
|
|
createMany?: camera_health_logCreateManyCamerasInputEnvelope
|
|
set?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
disconnect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
delete?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
update?: camera_health_logUpdateWithWhereUniqueWithoutCamerasInput | camera_health_logUpdateWithWhereUniqueWithoutCamerasInput[]
|
|
updateMany?: camera_health_logUpdateManyWithWhereWithoutCamerasInput | camera_health_logUpdateManyWithWhereWithoutCamerasInput[]
|
|
deleteMany?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[]
|
|
}
|
|
|
|
export type camera_health_logUncheckedUpdateManyWithoutCamerasNestedInput = {
|
|
create?: XOR<camera_health_logCreateWithoutCamerasInput, camera_health_logUncheckedCreateWithoutCamerasInput> | camera_health_logCreateWithoutCamerasInput[] | camera_health_logUncheckedCreateWithoutCamerasInput[]
|
|
connectOrCreate?: camera_health_logCreateOrConnectWithoutCamerasInput | camera_health_logCreateOrConnectWithoutCamerasInput[]
|
|
upsert?: camera_health_logUpsertWithWhereUniqueWithoutCamerasInput | camera_health_logUpsertWithWhereUniqueWithoutCamerasInput[]
|
|
createMany?: camera_health_logCreateManyCamerasInputEnvelope
|
|
set?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
disconnect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
delete?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
connect?: camera_health_logWhereUniqueInput | camera_health_logWhereUniqueInput[]
|
|
update?: camera_health_logUpdateWithWhereUniqueWithoutCamerasInput | camera_health_logUpdateWithWhereUniqueWithoutCamerasInput[]
|
|
updateMany?: camera_health_logUpdateManyWithWhereWithoutCamerasInput | camera_health_logUpdateManyWithWhereWithoutCamerasInput[]
|
|
deleteMany?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableBigIntFieldUpdateOperationsInput = {
|
|
set?: bigint | number | null
|
|
increment?: bigint | number
|
|
decrement?: bigint | number
|
|
multiply?: bigint | number
|
|
divide?: bigint | number
|
|
}
|
|
|
|
export type geofencesCreateNestedOneWithoutGeofence_breachesInput = {
|
|
create?: XOR<geofencesCreateWithoutGeofence_breachesInput, geofencesUncheckedCreateWithoutGeofence_breachesInput>
|
|
connectOrCreate?: geofencesCreateOrConnectWithoutGeofence_breachesInput
|
|
connect?: geofencesWhereUniqueInput
|
|
}
|
|
|
|
export type geofencesUpdateOneRequiredWithoutGeofence_breachesNestedInput = {
|
|
create?: XOR<geofencesCreateWithoutGeofence_breachesInput, geofencesUncheckedCreateWithoutGeofence_breachesInput>
|
|
connectOrCreate?: geofencesCreateOrConnectWithoutGeofence_breachesInput
|
|
upsert?: geofencesUpsertWithoutGeofence_breachesInput
|
|
connect?: geofencesWhereUniqueInput
|
|
update?: XOR<XOR<geofencesUpdateToOneWithWhereWithoutGeofence_breachesInput, geofencesUpdateWithoutGeofence_breachesInput>, geofencesUncheckedUpdateWithoutGeofence_breachesInput>
|
|
}
|
|
|
|
export type geofence_breachesCreateNestedManyWithoutGeofencesInput = {
|
|
create?: XOR<geofence_breachesCreateWithoutGeofencesInput, geofence_breachesUncheckedCreateWithoutGeofencesInput> | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[]
|
|
createMany?: geofence_breachesCreateManyGeofencesInputEnvelope
|
|
connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
}
|
|
|
|
export type incidentsCreateNestedManyWithoutGeofencesInput = {
|
|
create?: XOR<incidentsCreateWithoutGeofencesInput, incidentsUncheckedCreateWithoutGeofencesInput> | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[]
|
|
createMany?: incidentsCreateManyGeofencesInputEnvelope
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
}
|
|
|
|
export type map_pinsCreateNestedManyWithoutGeofencesInput = {
|
|
create?: XOR<map_pinsCreateWithoutGeofencesInput, map_pinsUncheckedCreateWithoutGeofencesInput> | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[]
|
|
createMany?: map_pinsCreateManyGeofencesInputEnvelope
|
|
connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
}
|
|
|
|
export type geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput = {
|
|
create?: XOR<geofence_breachesCreateWithoutGeofencesInput, geofence_breachesUncheckedCreateWithoutGeofencesInput> | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[]
|
|
createMany?: geofence_breachesCreateManyGeofencesInputEnvelope
|
|
connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
}
|
|
|
|
export type incidentsUncheckedCreateNestedManyWithoutGeofencesInput = {
|
|
create?: XOR<incidentsCreateWithoutGeofencesInput, incidentsUncheckedCreateWithoutGeofencesInput> | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[]
|
|
createMany?: incidentsCreateManyGeofencesInputEnvelope
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
}
|
|
|
|
export type map_pinsUncheckedCreateNestedManyWithoutGeofencesInput = {
|
|
create?: XOR<map_pinsCreateWithoutGeofencesInput, map_pinsUncheckedCreateWithoutGeofencesInput> | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[]
|
|
createMany?: map_pinsCreateManyGeofencesInputEnvelope
|
|
connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
}
|
|
|
|
export type geofence_breachesUpdateManyWithoutGeofencesNestedInput = {
|
|
create?: XOR<geofence_breachesCreateWithoutGeofencesInput, geofence_breachesUncheckedCreateWithoutGeofencesInput> | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[]
|
|
upsert?: geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput[]
|
|
createMany?: geofence_breachesCreateManyGeofencesInputEnvelope
|
|
set?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
disconnect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
delete?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
update?: geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput[]
|
|
updateMany?: geofence_breachesUpdateManyWithWhereWithoutGeofencesInput | geofence_breachesUpdateManyWithWhereWithoutGeofencesInput[]
|
|
deleteMany?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[]
|
|
}
|
|
|
|
export type incidentsUpdateManyWithoutGeofencesNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutGeofencesInput, incidentsUncheckedCreateWithoutGeofencesInput> | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[]
|
|
upsert?: incidentsUpsertWithWhereUniqueWithoutGeofencesInput | incidentsUpsertWithWhereUniqueWithoutGeofencesInput[]
|
|
createMany?: incidentsCreateManyGeofencesInputEnvelope
|
|
set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
update?: incidentsUpdateWithWhereUniqueWithoutGeofencesInput | incidentsUpdateWithWhereUniqueWithoutGeofencesInput[]
|
|
updateMany?: incidentsUpdateManyWithWhereWithoutGeofencesInput | incidentsUpdateManyWithWhereWithoutGeofencesInput[]
|
|
deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
}
|
|
|
|
export type map_pinsUpdateManyWithoutGeofencesNestedInput = {
|
|
create?: XOR<map_pinsCreateWithoutGeofencesInput, map_pinsUncheckedCreateWithoutGeofencesInput> | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[]
|
|
upsert?: map_pinsUpsertWithWhereUniqueWithoutGeofencesInput | map_pinsUpsertWithWhereUniqueWithoutGeofencesInput[]
|
|
createMany?: map_pinsCreateManyGeofencesInputEnvelope
|
|
set?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
disconnect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
delete?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
update?: map_pinsUpdateWithWhereUniqueWithoutGeofencesInput | map_pinsUpdateWithWhereUniqueWithoutGeofencesInput[]
|
|
updateMany?: map_pinsUpdateManyWithWhereWithoutGeofencesInput | map_pinsUpdateManyWithWhereWithoutGeofencesInput[]
|
|
deleteMany?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[]
|
|
}
|
|
|
|
export type geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput = {
|
|
create?: XOR<geofence_breachesCreateWithoutGeofencesInput, geofence_breachesUncheckedCreateWithoutGeofencesInput> | geofence_breachesCreateWithoutGeofencesInput[] | geofence_breachesUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: geofence_breachesCreateOrConnectWithoutGeofencesInput | geofence_breachesCreateOrConnectWithoutGeofencesInput[]
|
|
upsert?: geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput[]
|
|
createMany?: geofence_breachesCreateManyGeofencesInputEnvelope
|
|
set?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
disconnect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
delete?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
connect?: geofence_breachesWhereUniqueInput | geofence_breachesWhereUniqueInput[]
|
|
update?: geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput | geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput[]
|
|
updateMany?: geofence_breachesUpdateManyWithWhereWithoutGeofencesInput | geofence_breachesUpdateManyWithWhereWithoutGeofencesInput[]
|
|
deleteMany?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[]
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyWithoutGeofencesNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutGeofencesInput, incidentsUncheckedCreateWithoutGeofencesInput> | incidentsCreateWithoutGeofencesInput[] | incidentsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutGeofencesInput | incidentsCreateOrConnectWithoutGeofencesInput[]
|
|
upsert?: incidentsUpsertWithWhereUniqueWithoutGeofencesInput | incidentsUpsertWithWhereUniqueWithoutGeofencesInput[]
|
|
createMany?: incidentsCreateManyGeofencesInputEnvelope
|
|
set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
update?: incidentsUpdateWithWhereUniqueWithoutGeofencesInput | incidentsUpdateWithWhereUniqueWithoutGeofencesInput[]
|
|
updateMany?: incidentsUpdateManyWithWhereWithoutGeofencesInput | incidentsUpdateManyWithWhereWithoutGeofencesInput[]
|
|
deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
}
|
|
|
|
export type map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput = {
|
|
create?: XOR<map_pinsCreateWithoutGeofencesInput, map_pinsUncheckedCreateWithoutGeofencesInput> | map_pinsCreateWithoutGeofencesInput[] | map_pinsUncheckedCreateWithoutGeofencesInput[]
|
|
connectOrCreate?: map_pinsCreateOrConnectWithoutGeofencesInput | map_pinsCreateOrConnectWithoutGeofencesInput[]
|
|
upsert?: map_pinsUpsertWithWhereUniqueWithoutGeofencesInput | map_pinsUpsertWithWhereUniqueWithoutGeofencesInput[]
|
|
createMany?: map_pinsCreateManyGeofencesInputEnvelope
|
|
set?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
disconnect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
delete?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
connect?: map_pinsWhereUniqueInput | map_pinsWhereUniqueInput[]
|
|
update?: map_pinsUpdateWithWhereUniqueWithoutGeofencesInput | map_pinsUpdateWithWhereUniqueWithoutGeofencesInput[]
|
|
updateMany?: map_pinsUpdateManyWithWhereWithoutGeofencesInput | map_pinsUpdateManyWithWhereWithoutGeofencesInput[]
|
|
deleteMany?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableEnumhouses_statusFieldUpdateOperationsInput = {
|
|
set?: $Enums.houses_status | null
|
|
}
|
|
|
|
export type incidentsCreateNestedOneWithoutIncident_updatesInput = {
|
|
create?: XOR<incidentsCreateWithoutIncident_updatesInput, incidentsUncheckedCreateWithoutIncident_updatesInput>
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutIncident_updatesInput
|
|
connect?: incidentsWhereUniqueInput
|
|
}
|
|
|
|
export type incidentsUpdateOneRequiredWithoutIncident_updatesNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutIncident_updatesInput, incidentsUncheckedCreateWithoutIncident_updatesInput>
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutIncident_updatesInput
|
|
upsert?: incidentsUpsertWithoutIncident_updatesInput
|
|
connect?: incidentsWhereUniqueInput
|
|
update?: XOR<XOR<incidentsUpdateToOneWithWhereWithoutIncident_updatesInput, incidentsUpdateWithoutIncident_updatesInput>, incidentsUncheckedUpdateWithoutIncident_updatesInput>
|
|
}
|
|
|
|
export type alertsCreateNestedManyWithoutIncidentsInput = {
|
|
create?: XOR<alertsCreateWithoutIncidentsInput, alertsUncheckedCreateWithoutIncidentsInput> | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[]
|
|
createMany?: alertsCreateManyIncidentsInputEnvelope
|
|
connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
}
|
|
|
|
export type incident_updatesCreateNestedManyWithoutIncidentsInput = {
|
|
create?: XOR<incident_updatesCreateWithoutIncidentsInput, incident_updatesUncheckedCreateWithoutIncidentsInput> | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[]
|
|
createMany?: incident_updatesCreateManyIncidentsInputEnvelope
|
|
connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
}
|
|
|
|
export type team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
create?: XOR<team_membersCreateWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
connect?: team_membersWhereUniqueInput
|
|
}
|
|
|
|
export type team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
create?: XOR<team_membersCreateWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
connect?: team_membersWhereUniqueInput
|
|
}
|
|
|
|
export type geofencesCreateNestedOneWithoutIncidentsInput = {
|
|
create?: XOR<geofencesCreateWithoutIncidentsInput, geofencesUncheckedCreateWithoutIncidentsInput>
|
|
connectOrCreate?: geofencesCreateOrConnectWithoutIncidentsInput
|
|
connect?: geofencesWhereUniqueInput
|
|
}
|
|
|
|
export type alertsUncheckedCreateNestedManyWithoutIncidentsInput = {
|
|
create?: XOR<alertsCreateWithoutIncidentsInput, alertsUncheckedCreateWithoutIncidentsInput> | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[]
|
|
createMany?: alertsCreateManyIncidentsInputEnvelope
|
|
connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
}
|
|
|
|
export type incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput = {
|
|
create?: XOR<incident_updatesCreateWithoutIncidentsInput, incident_updatesUncheckedCreateWithoutIncidentsInput> | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[]
|
|
createMany?: incident_updatesCreateManyIncidentsInputEnvelope
|
|
connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type alertsUpdateManyWithoutIncidentsNestedInput = {
|
|
create?: XOR<alertsCreateWithoutIncidentsInput, alertsUncheckedCreateWithoutIncidentsInput> | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[]
|
|
upsert?: alertsUpsertWithWhereUniqueWithoutIncidentsInput | alertsUpsertWithWhereUniqueWithoutIncidentsInput[]
|
|
createMany?: alertsCreateManyIncidentsInputEnvelope
|
|
set?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
disconnect?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
delete?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
update?: alertsUpdateWithWhereUniqueWithoutIncidentsInput | alertsUpdateWithWhereUniqueWithoutIncidentsInput[]
|
|
updateMany?: alertsUpdateManyWithWhereWithoutIncidentsInput | alertsUpdateManyWithWhereWithoutIncidentsInput[]
|
|
deleteMany?: alertsScalarWhereInput | alertsScalarWhereInput[]
|
|
}
|
|
|
|
export type incident_updatesUpdateManyWithoutIncidentsNestedInput = {
|
|
create?: XOR<incident_updatesCreateWithoutIncidentsInput, incident_updatesUncheckedCreateWithoutIncidentsInput> | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[]
|
|
upsert?: incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput | incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput[]
|
|
createMany?: incident_updatesCreateManyIncidentsInputEnvelope
|
|
set?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
disconnect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
delete?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
update?: incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput | incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput[]
|
|
updateMany?: incident_updatesUpdateManyWithWhereWithoutIncidentsInput | incident_updatesUpdateManyWithWhereWithoutIncidentsInput[]
|
|
deleteMany?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[]
|
|
}
|
|
|
|
export type team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput = {
|
|
create?: XOR<team_membersCreateWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
upsert?: team_membersUpsertWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
disconnect?: team_membersWhereInput | boolean
|
|
delete?: team_membersWhereInput | boolean
|
|
connect?: team_membersWhereUniqueInput
|
|
update?: XOR<XOR<team_membersUpdateToOneWithWhereWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUpdateWithoutIncidents_incidents_reported_byToteam_membersInput>, team_membersUncheckedUpdateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput = {
|
|
create?: XOR<team_membersCreateWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
connectOrCreate?: team_membersCreateOrConnectWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
upsert?: team_membersUpsertWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
disconnect?: team_membersWhereInput | boolean
|
|
delete?: team_membersWhereInput | boolean
|
|
connect?: team_membersWhereUniqueInput
|
|
update?: XOR<XOR<team_membersUpdateToOneWithWhereWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput>, team_membersUncheckedUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type geofencesUpdateOneWithoutIncidentsNestedInput = {
|
|
create?: XOR<geofencesCreateWithoutIncidentsInput, geofencesUncheckedCreateWithoutIncidentsInput>
|
|
connectOrCreate?: geofencesCreateOrConnectWithoutIncidentsInput
|
|
upsert?: geofencesUpsertWithoutIncidentsInput
|
|
disconnect?: geofencesWhereInput | boolean
|
|
delete?: geofencesWhereInput | boolean
|
|
connect?: geofencesWhereUniqueInput
|
|
update?: XOR<XOR<geofencesUpdateToOneWithWhereWithoutIncidentsInput, geofencesUpdateWithoutIncidentsInput>, geofencesUncheckedUpdateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type alertsUncheckedUpdateManyWithoutIncidentsNestedInput = {
|
|
create?: XOR<alertsCreateWithoutIncidentsInput, alertsUncheckedCreateWithoutIncidentsInput> | alertsCreateWithoutIncidentsInput[] | alertsUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: alertsCreateOrConnectWithoutIncidentsInput | alertsCreateOrConnectWithoutIncidentsInput[]
|
|
upsert?: alertsUpsertWithWhereUniqueWithoutIncidentsInput | alertsUpsertWithWhereUniqueWithoutIncidentsInput[]
|
|
createMany?: alertsCreateManyIncidentsInputEnvelope
|
|
set?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
disconnect?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
delete?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
connect?: alertsWhereUniqueInput | alertsWhereUniqueInput[]
|
|
update?: alertsUpdateWithWhereUniqueWithoutIncidentsInput | alertsUpdateWithWhereUniqueWithoutIncidentsInput[]
|
|
updateMany?: alertsUpdateManyWithWhereWithoutIncidentsInput | alertsUpdateManyWithWhereWithoutIncidentsInput[]
|
|
deleteMany?: alertsScalarWhereInput | alertsScalarWhereInput[]
|
|
}
|
|
|
|
export type incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput = {
|
|
create?: XOR<incident_updatesCreateWithoutIncidentsInput, incident_updatesUncheckedCreateWithoutIncidentsInput> | incident_updatesCreateWithoutIncidentsInput[] | incident_updatesUncheckedCreateWithoutIncidentsInput[]
|
|
connectOrCreate?: incident_updatesCreateOrConnectWithoutIncidentsInput | incident_updatesCreateOrConnectWithoutIncidentsInput[]
|
|
upsert?: incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput | incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput[]
|
|
createMany?: incident_updatesCreateManyIncidentsInputEnvelope
|
|
set?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
disconnect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
delete?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
connect?: incident_updatesWhereUniqueInput | incident_updatesWhereUniqueInput[]
|
|
update?: incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput | incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput[]
|
|
updateMany?: incident_updatesUpdateManyWithWhereWithoutIncidentsInput | incident_updatesUpdateManyWithWhereWithoutIncidentsInput[]
|
|
deleteMany?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[]
|
|
}
|
|
|
|
export type visitor_ktp_dataCreateNestedOneWithoutKtp_validation_auditInput = {
|
|
create?: XOR<visitor_ktp_dataCreateWithoutKtp_validation_auditInput, visitor_ktp_dataUncheckedCreateWithoutKtp_validation_auditInput>
|
|
connectOrCreate?: visitor_ktp_dataCreateOrConnectWithoutKtp_validation_auditInput
|
|
connect?: visitor_ktp_dataWhereUniqueInput
|
|
}
|
|
|
|
export type Enumktp_validation_audit_actionFieldUpdateOperationsInput = {
|
|
set?: $Enums.ktp_validation_audit_action
|
|
}
|
|
|
|
export type visitor_ktp_dataUpdateOneRequiredWithoutKtp_validation_auditNestedInput = {
|
|
create?: XOR<visitor_ktp_dataCreateWithoutKtp_validation_auditInput, visitor_ktp_dataUncheckedCreateWithoutKtp_validation_auditInput>
|
|
connectOrCreate?: visitor_ktp_dataCreateOrConnectWithoutKtp_validation_auditInput
|
|
upsert?: visitor_ktp_dataUpsertWithoutKtp_validation_auditInput
|
|
connect?: visitor_ktp_dataWhereUniqueInput
|
|
update?: XOR<XOR<visitor_ktp_dataUpdateToOneWithWhereWithoutKtp_validation_auditInput, visitor_ktp_dataUpdateWithoutKtp_validation_auditInput>, visitor_ktp_dataUncheckedUpdateWithoutKtp_validation_auditInput>
|
|
}
|
|
|
|
export type geofencesCreateNestedOneWithoutMap_pinsInput = {
|
|
create?: XOR<geofencesCreateWithoutMap_pinsInput, geofencesUncheckedCreateWithoutMap_pinsInput>
|
|
connectOrCreate?: geofencesCreateOrConnectWithoutMap_pinsInput
|
|
connect?: geofencesWhereUniqueInput
|
|
}
|
|
|
|
export type geofencesUpdateOneWithoutMap_pinsNestedInput = {
|
|
create?: XOR<geofencesCreateWithoutMap_pinsInput, geofencesUncheckedCreateWithoutMap_pinsInput>
|
|
connectOrCreate?: geofencesCreateOrConnectWithoutMap_pinsInput
|
|
upsert?: geofencesUpsertWithoutMap_pinsInput
|
|
disconnect?: geofencesWhereInput | boolean
|
|
delete?: geofencesWhereInput | boolean
|
|
connect?: geofencesWhereUniqueInput
|
|
update?: XOR<XOR<geofencesUpdateToOneWithWhereWithoutMap_pinsInput, geofencesUpdateWithoutMap_pinsInput>, geofencesUncheckedUpdateWithoutMap_pinsInput>
|
|
}
|
|
|
|
export type NullableEnumperumahan_facilities_statusFieldUpdateOperationsInput = {
|
|
set?: $Enums.perumahan_facilities_status | null
|
|
}
|
|
|
|
export type visitor_registrationsCreateNestedManyWithoutQr_codesInput = {
|
|
create?: XOR<visitor_registrationsCreateWithoutQr_codesInput, visitor_registrationsUncheckedCreateWithoutQr_codesInput> | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[]
|
|
connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[]
|
|
createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope
|
|
connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedCreateNestedManyWithoutQr_codesInput = {
|
|
create?: XOR<visitor_registrationsCreateWithoutQr_codesInput, visitor_registrationsUncheckedCreateWithoutQr_codesInput> | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[]
|
|
connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[]
|
|
createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope
|
|
connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
}
|
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
set?: boolean
|
|
}
|
|
|
|
export type Enumqr_codes_security_levelFieldUpdateOperationsInput = {
|
|
set?: $Enums.qr_codes_security_level
|
|
}
|
|
|
|
export type visitor_registrationsUpdateManyWithoutQr_codesNestedInput = {
|
|
create?: XOR<visitor_registrationsCreateWithoutQr_codesInput, visitor_registrationsUncheckedCreateWithoutQr_codesInput> | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[]
|
|
connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[]
|
|
upsert?: visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput[]
|
|
createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope
|
|
set?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
disconnect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
delete?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
update?: visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput[]
|
|
updateMany?: visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput | visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput[]
|
|
deleteMany?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[]
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedUpdateManyWithoutQr_codesNestedInput = {
|
|
create?: XOR<visitor_registrationsCreateWithoutQr_codesInput, visitor_registrationsUncheckedCreateWithoutQr_codesInput> | visitor_registrationsCreateWithoutQr_codesInput[] | visitor_registrationsUncheckedCreateWithoutQr_codesInput[]
|
|
connectOrCreate?: visitor_registrationsCreateOrConnectWithoutQr_codesInput | visitor_registrationsCreateOrConnectWithoutQr_codesInput[]
|
|
upsert?: visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput[]
|
|
createMany?: visitor_registrationsCreateManyQr_codesInputEnvelope
|
|
set?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
disconnect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
delete?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
connect?: visitor_registrationsWhereUniqueInput | visitor_registrationsWhereUniqueInput[]
|
|
update?: visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput | visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput[]
|
|
updateMany?: visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput | visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput[]
|
|
deleteMany?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableEnumsecurity_activities_severityFieldUpdateOperationsInput = {
|
|
set?: $Enums.security_activities_severity | null
|
|
}
|
|
|
|
export type team_membersCreateNestedOneWithoutTeam_location_historyInput = {
|
|
create?: XOR<team_membersCreateWithoutTeam_location_historyInput, team_membersUncheckedCreateWithoutTeam_location_historyInput>
|
|
connectOrCreate?: team_membersCreateOrConnectWithoutTeam_location_historyInput
|
|
connect?: team_membersWhereUniqueInput
|
|
}
|
|
|
|
export type team_membersUpdateOneRequiredWithoutTeam_location_historyNestedInput = {
|
|
create?: XOR<team_membersCreateWithoutTeam_location_historyInput, team_membersUncheckedCreateWithoutTeam_location_historyInput>
|
|
connectOrCreate?: team_membersCreateOrConnectWithoutTeam_location_historyInput
|
|
upsert?: team_membersUpsertWithoutTeam_location_historyInput
|
|
connect?: team_membersWhereUniqueInput
|
|
update?: XOR<XOR<team_membersUpdateToOneWithWhereWithoutTeam_location_historyInput, team_membersUpdateWithoutTeam_location_historyInput>, team_membersUncheckedUpdateWithoutTeam_location_historyInput>
|
|
}
|
|
|
|
export type incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
}
|
|
|
|
export type incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
}
|
|
|
|
export type team_location_historyCreateNestedManyWithoutTeam_membersInput = {
|
|
create?: XOR<team_location_historyCreateWithoutTeam_membersInput, team_location_historyUncheckedCreateWithoutTeam_membersInput> | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[]
|
|
connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[]
|
|
createMany?: team_location_historyCreateManyTeam_membersInputEnvelope
|
|
connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
}
|
|
|
|
export type incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
}
|
|
|
|
export type incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
}
|
|
|
|
export type team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput = {
|
|
create?: XOR<team_location_historyCreateWithoutTeam_membersInput, team_location_historyUncheckedCreateWithoutTeam_membersInput> | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[]
|
|
connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[]
|
|
createMany?: team_location_historyCreateManyTeam_membersInputEnvelope
|
|
connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
}
|
|
|
|
export type NullableEnumteam_members_statusFieldUpdateOperationsInput = {
|
|
set?: $Enums.team_members_status | null
|
|
}
|
|
|
|
export type incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope
|
|
set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
}
|
|
|
|
export type incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope
|
|
set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
}
|
|
|
|
export type team_location_historyUpdateManyWithoutTeam_membersNestedInput = {
|
|
create?: XOR<team_location_historyCreateWithoutTeam_membersInput, team_location_historyUncheckedCreateWithoutTeam_membersInput> | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[]
|
|
connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[]
|
|
upsert?: team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput[]
|
|
createMany?: team_location_historyCreateManyTeam_membersInputEnvelope
|
|
set?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
disconnect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
delete?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
update?: team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput[]
|
|
updateMany?: team_location_historyUpdateManyWithWhereWithoutTeam_membersInput | team_location_historyUpdateManyWithWhereWithoutTeam_membersInput[]
|
|
deleteMany?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[]
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope
|
|
set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput[]
|
|
deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput = {
|
|
create?: XOR<incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput> | incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[] | incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
connectOrCreate?: incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
upsert?: incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
createMany?: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope
|
|
set?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
disconnect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
delete?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
connect?: incidentsWhereUniqueInput | incidentsWhereUniqueInput[]
|
|
update?: incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
updateMany?: incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput | incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
deleteMany?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
}
|
|
|
|
export type team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput = {
|
|
create?: XOR<team_location_historyCreateWithoutTeam_membersInput, team_location_historyUncheckedCreateWithoutTeam_membersInput> | team_location_historyCreateWithoutTeam_membersInput[] | team_location_historyUncheckedCreateWithoutTeam_membersInput[]
|
|
connectOrCreate?: team_location_historyCreateOrConnectWithoutTeam_membersInput | team_location_historyCreateOrConnectWithoutTeam_membersInput[]
|
|
upsert?: team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput[]
|
|
createMany?: team_location_historyCreateManyTeam_membersInputEnvelope
|
|
set?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
disconnect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
delete?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
connect?: team_location_historyWhereUniqueInput | team_location_historyWhereUniqueInput[]
|
|
update?: team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput | team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput[]
|
|
updateMany?: team_location_historyUpdateManyWithWhereWithoutTeam_membersInput | team_location_historyUpdateManyWithWhereWithoutTeam_membersInput[]
|
|
deleteMany?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[]
|
|
}
|
|
|
|
export type ktp_validation_auditCreateNestedManyWithoutVisitor_ktp_dataInput = {
|
|
create?: XOR<ktp_validation_auditCreateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput> | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[]
|
|
connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[]
|
|
createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope
|
|
connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedCreateNestedManyWithoutVisitor_ktp_dataInput = {
|
|
create?: XOR<ktp_validation_auditCreateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput> | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[]
|
|
connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[]
|
|
createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope
|
|
connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
}
|
|
|
|
export type NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput = {
|
|
set?: $Enums.visitor_ktp_data_gender | null
|
|
}
|
|
|
|
export type Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput = {
|
|
set?: $Enums.visitor_ktp_data_validation_status
|
|
}
|
|
|
|
export type ktp_validation_auditUpdateManyWithoutVisitor_ktp_dataNestedInput = {
|
|
create?: XOR<ktp_validation_auditCreateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput> | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[]
|
|
connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[]
|
|
upsert?: ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput[]
|
|
createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope
|
|
set?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
disconnect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
delete?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
update?: ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput[]
|
|
updateMany?: ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput[]
|
|
deleteMany?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[]
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataNestedInput = {
|
|
create?: XOR<ktp_validation_auditCreateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput> | ktp_validation_auditCreateWithoutVisitor_ktp_dataInput[] | ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput[]
|
|
connectOrCreate?: ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput | ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput[]
|
|
upsert?: ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput[]
|
|
createMany?: ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope
|
|
set?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
disconnect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
delete?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
connect?: ktp_validation_auditWhereUniqueInput | ktp_validation_auditWhereUniqueInput[]
|
|
update?: ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput[]
|
|
updateMany?: ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput | ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput[]
|
|
deleteMany?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[]
|
|
}
|
|
|
|
export type qr_codesCreateNestedOneWithoutVisitor_registrationsInput = {
|
|
create?: XOR<qr_codesCreateWithoutVisitor_registrationsInput, qr_codesUncheckedCreateWithoutVisitor_registrationsInput>
|
|
connectOrCreate?: qr_codesCreateOrConnectWithoutVisitor_registrationsInput
|
|
connect?: qr_codesWhereUniqueInput
|
|
}
|
|
|
|
export type Enumvisitor_registrations_statusFieldUpdateOperationsInput = {
|
|
set?: $Enums.visitor_registrations_status
|
|
}
|
|
|
|
export type qr_codesUpdateOneWithoutVisitor_registrationsNestedInput = {
|
|
create?: XOR<qr_codesCreateWithoutVisitor_registrationsInput, qr_codesUncheckedCreateWithoutVisitor_registrationsInput>
|
|
connectOrCreate?: qr_codesCreateOrConnectWithoutVisitor_registrationsInput
|
|
upsert?: qr_codesUpsertWithoutVisitor_registrationsInput
|
|
disconnect?: qr_codesWhereInput | boolean
|
|
delete?: qr_codesWhereInput | boolean
|
|
connect?: qr_codesWhereUniqueInput
|
|
update?: XOR<XOR<qr_codesUpdateToOneWithWhereWithoutVisitor_registrationsInput, qr_codesUpdateWithoutVisitor_registrationsInput>, qr_codesUncheckedUpdateWithoutVisitor_registrationsInput>
|
|
}
|
|
|
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringFilter<$PrismaModel> | string
|
|
}
|
|
|
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
|
}
|
|
|
|
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
}
|
|
|
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedStringFilter<$PrismaModel>
|
|
_max?: NestedStringFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedIntFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | null
|
|
lt?: string | StringFieldRefInput<$PrismaModel>
|
|
lte?: string | StringFieldRefInput<$PrismaModel>
|
|
gt?: string | StringFieldRefInput<$PrismaModel>
|
|
gte?: string | StringFieldRefInput<$PrismaModel>
|
|
contains?: string | StringFieldRefInput<$PrismaModel>
|
|
startsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
endsWith?: string | StringFieldRefInput<$PrismaModel>
|
|
search?: string
|
|
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedStringNullableFilter<$PrismaModel>
|
|
_max?: NestedStringNullableFilter<$PrismaModel>
|
|
}
|
|
export type NestedJsonNullableFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<NestedJsonNullableFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
path?: string
|
|
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
lt?: InputJsonValue
|
|
lte?: InputJsonValue
|
|
gt?: InputJsonValue
|
|
gte?: InputJsonValue
|
|
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
}
|
|
|
|
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
|
}
|
|
|
|
export type NestedDecimalNullableFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
|
|
}
|
|
|
|
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedBoolNullableFilter<$PrismaModel>
|
|
_max?: NestedBoolNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedDecimalNullableFilter<$PrismaModel>
|
|
_sum?: NestedDecimalNullableFilter<$PrismaModel>
|
|
_min?: NestedDecimalNullableFilter<$PrismaModel>
|
|
_max?: NestedDecimalNullableFilter<$PrismaModel>
|
|
}
|
|
export type NestedJsonFilter<$PrismaModel = never> =
|
|
| PatchUndefined<
|
|
Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<NestedJsonFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
|
|
|
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
path?: string
|
|
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
lt?: InputJsonValue
|
|
lte?: InputJsonValue
|
|
gt?: InputJsonValue
|
|
gte?: InputJsonValue
|
|
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
}
|
|
|
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NestedDecimalFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
|
|
}
|
|
|
|
export type NestedEnumcameras_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.cameras_status[] | null
|
|
notIn?: $Enums.cameras_status[] | null
|
|
not?: NestedEnumcameras_statusNullableFilter<$PrismaModel> | $Enums.cameras_status | null
|
|
}
|
|
|
|
export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
in?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
|
|
lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
|
|
not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedDecimalFilter<$PrismaModel>
|
|
_sum?: NestedDecimalFilter<$PrismaModel>
|
|
_min?: NestedDecimalFilter<$PrismaModel>
|
|
_max?: NestedDecimalFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumcameras_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.cameras_status | Enumcameras_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.cameras_status[] | null
|
|
notIn?: $Enums.cameras_status[] | null
|
|
not?: NestedEnumcameras_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.cameras_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumcameras_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumcameras_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedBigIntNullableFilter<$PrismaModel = never> = {
|
|
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null
|
|
in?: bigint[] | number[] | null
|
|
notIn?: bigint[] | number[] | null
|
|
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null
|
|
}
|
|
|
|
export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null
|
|
in?: bigint[] | number[] | null
|
|
notIn?: bigint[] | number[] | null
|
|
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedBigIntNullableFilter<$PrismaModel>
|
|
_min?: NestedBigIntNullableFilter<$PrismaModel>
|
|
_max?: NestedBigIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumhouses_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.houses_status[] | null
|
|
notIn?: $Enums.houses_status[] | null
|
|
not?: NestedEnumhouses_statusNullableFilter<$PrismaModel> | $Enums.houses_status | null
|
|
}
|
|
|
|
export type NestedEnumhouses_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.houses_status | Enumhouses_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.houses_status[] | null
|
|
notIn?: $Enums.houses_status[] | null
|
|
not?: NestedEnumhouses_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.houses_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumhouses_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumhouses_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
|
}
|
|
|
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedDateTimeFilter<$PrismaModel>
|
|
_max?: NestedDateTimeFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumktp_validation_audit_actionFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ktp_validation_audit_action[]
|
|
notIn?: $Enums.ktp_validation_audit_action[]
|
|
not?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel> | $Enums.ktp_validation_audit_action
|
|
}
|
|
|
|
export type NestedEnumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.ktp_validation_audit_action | Enumktp_validation_audit_actionFieldRefInput<$PrismaModel>
|
|
in?: $Enums.ktp_validation_audit_action[]
|
|
notIn?: $Enums.ktp_validation_audit_action[]
|
|
not?: NestedEnumktp_validation_audit_actionWithAggregatesFilter<$PrismaModel> | $Enums.ktp_validation_audit_action
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel>
|
|
_max?: NestedEnumktp_validation_audit_actionFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.perumahan_facilities_status[] | null
|
|
notIn?: $Enums.perumahan_facilities_status[] | null
|
|
not?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null
|
|
}
|
|
|
|
export type NestedEnumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.perumahan_facilities_status | Enumperumahan_facilities_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.perumahan_facilities_status[] | null
|
|
notIn?: $Enums.perumahan_facilities_status[] | null
|
|
not?: NestedEnumperumahan_facilities_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.perumahan_facilities_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumperumahan_facilities_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
export type NestedEnumqr_codes_security_levelFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel>
|
|
in?: $Enums.qr_codes_security_level[]
|
|
notIn?: $Enums.qr_codes_security_level[]
|
|
not?: NestedEnumqr_codes_security_levelFilter<$PrismaModel> | $Enums.qr_codes_security_level
|
|
}
|
|
|
|
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumqr_codes_security_levelWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.qr_codes_security_level | Enumqr_codes_security_levelFieldRefInput<$PrismaModel>
|
|
in?: $Enums.qr_codes_security_level[]
|
|
notIn?: $Enums.qr_codes_security_level[]
|
|
not?: NestedEnumqr_codes_security_levelWithAggregatesFilter<$PrismaModel> | $Enums.qr_codes_security_level
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumqr_codes_security_levelFilter<$PrismaModel>
|
|
_max?: NestedEnumqr_codes_security_levelFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.security_activities_severity[] | null
|
|
notIn?: $Enums.security_activities_severity[] | null
|
|
not?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel> | $Enums.security_activities_severity | null
|
|
}
|
|
|
|
export type NestedEnumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.security_activities_severity | Enumsecurity_activities_severityFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.security_activities_severity[] | null
|
|
notIn?: $Enums.security_activities_severity[] | null
|
|
not?: NestedEnumsecurity_activities_severityNullableWithAggregatesFilter<$PrismaModel> | $Enums.security_activities_severity | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumsecurity_activities_severityNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumteam_members_statusNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.team_members_status[] | null
|
|
notIn?: $Enums.team_members_status[] | null
|
|
not?: NestedEnumteam_members_statusNullableFilter<$PrismaModel> | $Enums.team_members_status | null
|
|
}
|
|
|
|
export type NestedEnumteam_members_statusNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.team_members_status | Enumteam_members_statusFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.team_members_status[] | null
|
|
notIn?: $Enums.team_members_status[] | null
|
|
not?: NestedEnumteam_members_statusNullableWithAggregatesFilter<$PrismaModel> | $Enums.team_members_status | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumteam_members_statusNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumteam_members_statusNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.visitor_ktp_data_gender[] | null
|
|
notIn?: $Enums.visitor_ktp_data_gender[] | null
|
|
not?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null
|
|
}
|
|
|
|
export type NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_ktp_data_validation_status[]
|
|
notIn?: $Enums.visitor_ktp_data_validation_status[]
|
|
not?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status
|
|
}
|
|
|
|
export type NestedEnumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_gender | Enumvisitor_ktp_data_genderFieldRefInput<$PrismaModel> | null
|
|
in?: $Enums.visitor_ktp_data_gender[] | null
|
|
notIn?: $Enums.visitor_ktp_data_gender[] | null
|
|
not?: NestedEnumvisitor_ktp_data_genderNullableWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_gender | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel>
|
|
_max?: NestedEnumvisitor_ktp_data_genderNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_ktp_data_validation_status | Enumvisitor_ktp_data_validation_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_ktp_data_validation_status[]
|
|
notIn?: $Enums.visitor_ktp_data_validation_status[]
|
|
not?: NestedEnumvisitor_ktp_data_validation_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_ktp_data_validation_status
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel>
|
|
_max?: NestedEnumvisitor_ktp_data_validation_statusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedEnumvisitor_registrations_statusFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_registrations_status[]
|
|
notIn?: $Enums.visitor_registrations_status[]
|
|
not?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel> | $Enums.visitor_registrations_status
|
|
}
|
|
|
|
export type NestedEnumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: $Enums.visitor_registrations_status | Enumvisitor_registrations_statusFieldRefInput<$PrismaModel>
|
|
in?: $Enums.visitor_registrations_status[]
|
|
notIn?: $Enums.visitor_registrations_status[]
|
|
not?: NestedEnumvisitor_registrations_statusWithAggregatesFilter<$PrismaModel> | $Enums.visitor_registrations_status
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel>
|
|
_max?: NestedEnumvisitor_registrations_statusFilter<$PrismaModel>
|
|
}
|
|
|
|
export type alertsCreateWithoutAlert_recipientsInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
incidents?: incidentsCreateNestedOneWithoutAlertsInput
|
|
}
|
|
|
|
export type alertsUncheckedCreateWithoutAlert_recipientsInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
incident_id?: string | null
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type alertsCreateOrConnectWithoutAlert_recipientsInput = {
|
|
where: alertsWhereUniqueInput
|
|
create: XOR<alertsCreateWithoutAlert_recipientsInput, alertsUncheckedCreateWithoutAlert_recipientsInput>
|
|
}
|
|
|
|
export type alertsUpsertWithoutAlert_recipientsInput = {
|
|
update: XOR<alertsUpdateWithoutAlert_recipientsInput, alertsUncheckedUpdateWithoutAlert_recipientsInput>
|
|
create: XOR<alertsCreateWithoutAlert_recipientsInput, alertsUncheckedCreateWithoutAlert_recipientsInput>
|
|
where?: alertsWhereInput
|
|
}
|
|
|
|
export type alertsUpdateToOneWithWhereWithoutAlert_recipientsInput = {
|
|
where?: alertsWhereInput
|
|
data: XOR<alertsUpdateWithoutAlert_recipientsInput, alertsUncheckedUpdateWithoutAlert_recipientsInput>
|
|
}
|
|
|
|
export type alertsUpdateWithoutAlert_recipientsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incidents?: incidentsUpdateOneWithoutAlertsNestedInput
|
|
}
|
|
|
|
export type alertsUncheckedUpdateWithoutAlert_recipientsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type alert_recipientsCreateWithoutAlertsInput = {
|
|
id?: string
|
|
recipient_type: string
|
|
recipient_id?: string | null
|
|
recipient_name?: string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel: string
|
|
delivery_status?: string | null
|
|
sent_at?: Date | string | null
|
|
delivered_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
failed_at?: Date | string | null
|
|
delivery_attempts?: number | null
|
|
last_attempt_at?: Date | string | null
|
|
failure_reason?: string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: number | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUncheckedCreateWithoutAlertsInput = {
|
|
id?: string
|
|
recipient_type: string
|
|
recipient_id?: string | null
|
|
recipient_name?: string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel: string
|
|
delivery_status?: string | null
|
|
sent_at?: Date | string | null
|
|
delivered_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
failed_at?: Date | string | null
|
|
delivery_attempts?: number | null
|
|
last_attempt_at?: Date | string | null
|
|
failure_reason?: string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: number | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsCreateOrConnectWithoutAlertsInput = {
|
|
where: alert_recipientsWhereUniqueInput
|
|
create: XOR<alert_recipientsCreateWithoutAlertsInput, alert_recipientsUncheckedCreateWithoutAlertsInput>
|
|
}
|
|
|
|
export type alert_recipientsCreateManyAlertsInputEnvelope = {
|
|
data: alert_recipientsCreateManyAlertsInput | alert_recipientsCreateManyAlertsInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type incidentsCreateWithoutAlertsInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
geofences?: geofencesCreateNestedOneWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsUncheckedCreateWithoutAlertsInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsCreateOrConnectWithoutAlertsInput = {
|
|
where: incidentsWhereUniqueInput
|
|
create: XOR<incidentsCreateWithoutAlertsInput, incidentsUncheckedCreateWithoutAlertsInput>
|
|
}
|
|
|
|
export type alert_recipientsUpsertWithWhereUniqueWithoutAlertsInput = {
|
|
where: alert_recipientsWhereUniqueInput
|
|
update: XOR<alert_recipientsUpdateWithoutAlertsInput, alert_recipientsUncheckedUpdateWithoutAlertsInput>
|
|
create: XOR<alert_recipientsCreateWithoutAlertsInput, alert_recipientsUncheckedCreateWithoutAlertsInput>
|
|
}
|
|
|
|
export type alert_recipientsUpdateWithWhereUniqueWithoutAlertsInput = {
|
|
where: alert_recipientsWhereUniqueInput
|
|
data: XOR<alert_recipientsUpdateWithoutAlertsInput, alert_recipientsUncheckedUpdateWithoutAlertsInput>
|
|
}
|
|
|
|
export type alert_recipientsUpdateManyWithWhereWithoutAlertsInput = {
|
|
where: alert_recipientsScalarWhereInput
|
|
data: XOR<alert_recipientsUpdateManyMutationInput, alert_recipientsUncheckedUpdateManyWithoutAlertsInput>
|
|
}
|
|
|
|
export type alert_recipientsScalarWhereInput = {
|
|
AND?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[]
|
|
OR?: alert_recipientsScalarWhereInput[]
|
|
NOT?: alert_recipientsScalarWhereInput | alert_recipientsScalarWhereInput[]
|
|
id?: StringFilter<"alert_recipients"> | string
|
|
alert_id?: StringFilter<"alert_recipients"> | string
|
|
recipient_type?: StringFilter<"alert_recipients"> | string
|
|
recipient_id?: StringNullableFilter<"alert_recipients"> | string | null
|
|
recipient_name?: StringNullableFilter<"alert_recipients"> | string | null
|
|
recipient_contact?: JsonNullableFilter<"alert_recipients">
|
|
channel?: StringFilter<"alert_recipients"> | string
|
|
delivery_status?: StringNullableFilter<"alert_recipients"> | string | null
|
|
sent_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
delivered_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
failed_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
delivery_attempts?: IntNullableFilter<"alert_recipients"> | number | null
|
|
last_attempt_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
failure_reason?: StringNullableFilter<"alert_recipients"> | string | null
|
|
delivery_metadata?: JsonNullableFilter<"alert_recipients">
|
|
response_data?: JsonNullableFilter<"alert_recipients">
|
|
response_time?: IntNullableFilter<"alert_recipients"> | number | null
|
|
created_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"alert_recipients"> | Date | string | null
|
|
}
|
|
|
|
export type incidentsUpsertWithoutAlertsInput = {
|
|
update: XOR<incidentsUpdateWithoutAlertsInput, incidentsUncheckedUpdateWithoutAlertsInput>
|
|
create: XOR<incidentsCreateWithoutAlertsInput, incidentsUncheckedCreateWithoutAlertsInput>
|
|
where?: incidentsWhereInput
|
|
}
|
|
|
|
export type incidentsUpdateToOneWithWhereWithoutAlertsInput = {
|
|
where?: incidentsWhereInput
|
|
data: XOR<incidentsUpdateWithoutAlertsInput, incidentsUncheckedUpdateWithoutAlertsInput>
|
|
}
|
|
|
|
export type incidentsUpdateWithoutAlertsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput
|
|
geofences?: geofencesUpdateOneWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateWithoutAlertsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type camerasCreateWithoutCamera_health_logInput = {
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
stream_url: string
|
|
status?: $Enums.cameras_status | null
|
|
last_heartbeat?: Date | string | null
|
|
response_time?: number | null
|
|
health_score?: number | null
|
|
error_message?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type camerasUncheckedCreateWithoutCamera_health_logInput = {
|
|
id: string
|
|
label: string
|
|
area: string
|
|
lat: Decimal | DecimalJsLike | number | string
|
|
lng: Decimal | DecimalJsLike | number | string
|
|
stream_url: string
|
|
status?: $Enums.cameras_status | null
|
|
last_heartbeat?: Date | string | null
|
|
response_time?: number | null
|
|
health_score?: number | null
|
|
error_message?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type camerasCreateOrConnectWithoutCamera_health_logInput = {
|
|
where: camerasWhereUniqueInput
|
|
create: XOR<camerasCreateWithoutCamera_health_logInput, camerasUncheckedCreateWithoutCamera_health_logInput>
|
|
}
|
|
|
|
export type camerasUpsertWithoutCamera_health_logInput = {
|
|
update: XOR<camerasUpdateWithoutCamera_health_logInput, camerasUncheckedUpdateWithoutCamera_health_logInput>
|
|
create: XOR<camerasCreateWithoutCamera_health_logInput, camerasUncheckedCreateWithoutCamera_health_logInput>
|
|
where?: camerasWhereInput
|
|
}
|
|
|
|
export type camerasUpdateToOneWithWhereWithoutCamera_health_logInput = {
|
|
where?: camerasWhereInput
|
|
data: XOR<camerasUpdateWithoutCamera_health_logInput, camerasUncheckedUpdateWithoutCamera_health_logInput>
|
|
}
|
|
|
|
export type camerasUpdateWithoutCamera_health_logInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
label?: StringFieldUpdateOperationsInput | string
|
|
area?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null
|
|
last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
health_score?: NullableIntFieldUpdateOperationsInput | number | null
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camerasUncheckedUpdateWithoutCamera_health_logInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
label?: StringFieldUpdateOperationsInput | string
|
|
area?: StringFieldUpdateOperationsInput | string
|
|
lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
stream_url?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumcameras_statusFieldUpdateOperationsInput | $Enums.cameras_status | null
|
|
last_heartbeat?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
health_score?: NullableIntFieldUpdateOperationsInput | number | null
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camera_health_logCreateWithoutCamerasInput = {
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message?: string | null
|
|
stream_accessible?: boolean | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUncheckedCreateWithoutCamerasInput = {
|
|
id?: number
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message?: string | null
|
|
stream_accessible?: boolean | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type camera_health_logCreateOrConnectWithoutCamerasInput = {
|
|
where: camera_health_logWhereUniqueInput
|
|
create: XOR<camera_health_logCreateWithoutCamerasInput, camera_health_logUncheckedCreateWithoutCamerasInput>
|
|
}
|
|
|
|
export type camera_health_logCreateManyCamerasInputEnvelope = {
|
|
data: camera_health_logCreateManyCamerasInput | camera_health_logCreateManyCamerasInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type camera_health_logUpsertWithWhereUniqueWithoutCamerasInput = {
|
|
where: camera_health_logWhereUniqueInput
|
|
update: XOR<camera_health_logUpdateWithoutCamerasInput, camera_health_logUncheckedUpdateWithoutCamerasInput>
|
|
create: XOR<camera_health_logCreateWithoutCamerasInput, camera_health_logUncheckedCreateWithoutCamerasInput>
|
|
}
|
|
|
|
export type camera_health_logUpdateWithWhereUniqueWithoutCamerasInput = {
|
|
where: camera_health_logWhereUniqueInput
|
|
data: XOR<camera_health_logUpdateWithoutCamerasInput, camera_health_logUncheckedUpdateWithoutCamerasInput>
|
|
}
|
|
|
|
export type camera_health_logUpdateManyWithWhereWithoutCamerasInput = {
|
|
where: camera_health_logScalarWhereInput
|
|
data: XOR<camera_health_logUpdateManyMutationInput, camera_health_logUncheckedUpdateManyWithoutCamerasInput>
|
|
}
|
|
|
|
export type camera_health_logScalarWhereInput = {
|
|
AND?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[]
|
|
OR?: camera_health_logScalarWhereInput[]
|
|
NOT?: camera_health_logScalarWhereInput | camera_health_logScalarWhereInput[]
|
|
id?: IntFilter<"camera_health_log"> | number
|
|
camera_id?: StringFilter<"camera_health_log"> | string
|
|
status?: StringFilter<"camera_health_log"> | string
|
|
response_time?: IntFilter<"camera_health_log"> | number
|
|
health_score?: IntFilter<"camera_health_log"> | number
|
|
error_message?: StringNullableFilter<"camera_health_log"> | string | null
|
|
stream_accessible?: BoolNullableFilter<"camera_health_log"> | boolean | null
|
|
timestamp?: DateTimeNullableFilter<"camera_health_log"> | Date | string | null
|
|
}
|
|
|
|
export type geofencesCreateWithoutGeofence_breachesInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
incidents?: incidentsCreateNestedManyWithoutGeofencesInput
|
|
map_pins?: map_pinsCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesUncheckedCreateWithoutGeofence_breachesInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
incidents?: incidentsUncheckedCreateNestedManyWithoutGeofencesInput
|
|
map_pins?: map_pinsUncheckedCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesCreateOrConnectWithoutGeofence_breachesInput = {
|
|
where: geofencesWhereUniqueInput
|
|
create: XOR<geofencesCreateWithoutGeofence_breachesInput, geofencesUncheckedCreateWithoutGeofence_breachesInput>
|
|
}
|
|
|
|
export type geofencesUpsertWithoutGeofence_breachesInput = {
|
|
update: XOR<geofencesUpdateWithoutGeofence_breachesInput, geofencesUncheckedUpdateWithoutGeofence_breachesInput>
|
|
create: XOR<geofencesCreateWithoutGeofence_breachesInput, geofencesUncheckedCreateWithoutGeofence_breachesInput>
|
|
where?: geofencesWhereInput
|
|
}
|
|
|
|
export type geofencesUpdateToOneWithWhereWithoutGeofence_breachesInput = {
|
|
where?: geofencesWhereInput
|
|
data: XOR<geofencesUpdateWithoutGeofence_breachesInput, geofencesUncheckedUpdateWithoutGeofence_breachesInput>
|
|
}
|
|
|
|
export type geofencesUpdateWithoutGeofence_breachesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incidents?: incidentsUpdateManyWithoutGeofencesNestedInput
|
|
map_pins?: map_pinsUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type geofencesUncheckedUpdateWithoutGeofence_breachesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incidents?: incidentsUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
map_pins?: map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type geofence_breachesCreateWithoutGeofencesInput = {
|
|
id?: string
|
|
team_member_id?: string | null
|
|
breach_type: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
severity?: string | null
|
|
is_resolved?: boolean | null
|
|
resolved_at?: Date | string | null
|
|
resolved_by?: string | null
|
|
notes?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesUncheckedCreateWithoutGeofencesInput = {
|
|
id?: string
|
|
team_member_id?: string | null
|
|
breach_type: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
severity?: string | null
|
|
is_resolved?: boolean | null
|
|
resolved_at?: Date | string | null
|
|
resolved_by?: string | null
|
|
notes?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesCreateOrConnectWithoutGeofencesInput = {
|
|
where: geofence_breachesWhereUniqueInput
|
|
create: XOR<geofence_breachesCreateWithoutGeofencesInput, geofence_breachesUncheckedCreateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type geofence_breachesCreateManyGeofencesInputEnvelope = {
|
|
data: geofence_breachesCreateManyGeofencesInput | geofence_breachesCreateManyGeofencesInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type incidentsCreateWithoutGeofencesInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
}
|
|
|
|
export type incidentsUncheckedCreateWithoutGeofencesInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsCreateOrConnectWithoutGeofencesInput = {
|
|
where: incidentsWhereUniqueInput
|
|
create: XOR<incidentsCreateWithoutGeofencesInput, incidentsUncheckedCreateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type incidentsCreateManyGeofencesInputEnvelope = {
|
|
data: incidentsCreateManyGeofencesInput | incidentsCreateManyGeofencesInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type map_pinsCreateWithoutGeofencesInput = {
|
|
id?: string
|
|
type: string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title: string
|
|
description?: string | null
|
|
status?: string | null
|
|
priority?: string | null
|
|
icon_type?: string | null
|
|
icon_color?: string | null
|
|
size?: string | null
|
|
is_visible?: boolean | null
|
|
is_clickable?: boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
incident_id?: string | null
|
|
team_member_id?: string | null
|
|
camera_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type map_pinsUncheckedCreateWithoutGeofencesInput = {
|
|
id?: string
|
|
type: string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title: string
|
|
description?: string | null
|
|
status?: string | null
|
|
priority?: string | null
|
|
icon_type?: string | null
|
|
icon_color?: string | null
|
|
size?: string | null
|
|
is_visible?: boolean | null
|
|
is_clickable?: boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
incident_id?: string | null
|
|
team_member_id?: string | null
|
|
camera_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type map_pinsCreateOrConnectWithoutGeofencesInput = {
|
|
where: map_pinsWhereUniqueInput
|
|
create: XOR<map_pinsCreateWithoutGeofencesInput, map_pinsUncheckedCreateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type map_pinsCreateManyGeofencesInputEnvelope = {
|
|
data: map_pinsCreateManyGeofencesInput | map_pinsCreateManyGeofencesInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type geofence_breachesUpsertWithWhereUniqueWithoutGeofencesInput = {
|
|
where: geofence_breachesWhereUniqueInput
|
|
update: XOR<geofence_breachesUpdateWithoutGeofencesInput, geofence_breachesUncheckedUpdateWithoutGeofencesInput>
|
|
create: XOR<geofence_breachesCreateWithoutGeofencesInput, geofence_breachesUncheckedCreateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type geofence_breachesUpdateWithWhereUniqueWithoutGeofencesInput = {
|
|
where: geofence_breachesWhereUniqueInput
|
|
data: XOR<geofence_breachesUpdateWithoutGeofencesInput, geofence_breachesUncheckedUpdateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type geofence_breachesUpdateManyWithWhereWithoutGeofencesInput = {
|
|
where: geofence_breachesScalarWhereInput
|
|
data: XOR<geofence_breachesUpdateManyMutationInput, geofence_breachesUncheckedUpdateManyWithoutGeofencesInput>
|
|
}
|
|
|
|
export type geofence_breachesScalarWhereInput = {
|
|
AND?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[]
|
|
OR?: geofence_breachesScalarWhereInput[]
|
|
NOT?: geofence_breachesScalarWhereInput | geofence_breachesScalarWhereInput[]
|
|
id?: StringFilter<"geofence_breaches"> | string
|
|
geofence_id?: StringFilter<"geofence_breaches"> | string
|
|
team_member_id?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
breach_type?: StringFilter<"geofence_breaches"> | string
|
|
location?: JsonFilter<"geofence_breaches">
|
|
severity?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
is_resolved?: BoolNullableFilter<"geofence_breaches"> | boolean | null
|
|
resolved_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
resolved_by?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
notes?: StringNullableFilter<"geofence_breaches"> | string | null
|
|
metadata?: JsonNullableFilter<"geofence_breaches">
|
|
created_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"geofence_breaches"> | Date | string | null
|
|
}
|
|
|
|
export type incidentsUpsertWithWhereUniqueWithoutGeofencesInput = {
|
|
where: incidentsWhereUniqueInput
|
|
update: XOR<incidentsUpdateWithoutGeofencesInput, incidentsUncheckedUpdateWithoutGeofencesInput>
|
|
create: XOR<incidentsCreateWithoutGeofencesInput, incidentsUncheckedCreateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type incidentsUpdateWithWhereUniqueWithoutGeofencesInput = {
|
|
where: incidentsWhereUniqueInput
|
|
data: XOR<incidentsUpdateWithoutGeofencesInput, incidentsUncheckedUpdateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type incidentsUpdateManyWithWhereWithoutGeofencesInput = {
|
|
where: incidentsScalarWhereInput
|
|
data: XOR<incidentsUpdateManyMutationInput, incidentsUncheckedUpdateManyWithoutGeofencesInput>
|
|
}
|
|
|
|
export type incidentsScalarWhereInput = {
|
|
AND?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
OR?: incidentsScalarWhereInput[]
|
|
NOT?: incidentsScalarWhereInput | incidentsScalarWhereInput[]
|
|
id?: StringFilter<"incidents"> | string
|
|
incident_number?: StringFilter<"incidents"> | string
|
|
title?: StringFilter<"incidents"> | string
|
|
description?: StringNullableFilter<"incidents"> | string | null
|
|
type?: StringFilter<"incidents"> | string
|
|
severity?: StringFilter<"incidents"> | string
|
|
priority?: StringFilter<"incidents"> | string
|
|
status?: StringFilter<"incidents"> | string
|
|
location?: JsonFilter<"incidents">
|
|
coordinates_lat?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableFilter<"incidents"> | Decimal | DecimalJsLike | number | string | null
|
|
address?: StringNullableFilter<"incidents"> | string | null
|
|
zone?: StringNullableFilter<"incidents"> | string | null
|
|
building?: StringNullableFilter<"incidents"> | string | null
|
|
floor?: StringNullableFilter<"incidents"> | string | null
|
|
room?: StringNullableFilter<"incidents"> | string | null
|
|
reported_by?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_name?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_contact?: StringNullableFilter<"incidents"> | string | null
|
|
reporter_type?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_to?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_team?: StringNullableFilter<"incidents"> | string | null
|
|
assigned_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
occurred_at?: DateTimeFilter<"incidents"> | Date | string
|
|
reported_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
resolved_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
closed_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
due_date?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
tags?: JsonNullableFilter<"incidents">
|
|
attachments?: JsonNullableFilter<"incidents">
|
|
evidence?: JsonNullableFilter<"incidents">
|
|
witnesses?: JsonNullableFilter<"incidents">
|
|
related_incidents?: JsonNullableFilter<"incidents">
|
|
camera_ids?: JsonNullableFilter<"incidents">
|
|
geofence_id?: StringNullableFilter<"incidents"> | string | null
|
|
alert_id?: StringNullableFilter<"incidents"> | string | null
|
|
metadata?: JsonNullableFilter<"incidents">
|
|
custom_fields?: JsonNullableFilter<"incidents">
|
|
created_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
created_by?: StringNullableFilter<"incidents"> | string | null
|
|
updated_by?: StringNullableFilter<"incidents"> | string | null
|
|
deleted_at?: DateTimeNullableFilter<"incidents"> | Date | string | null
|
|
deleted_by?: StringNullableFilter<"incidents"> | string | null
|
|
}
|
|
|
|
export type map_pinsUpsertWithWhereUniqueWithoutGeofencesInput = {
|
|
where: map_pinsWhereUniqueInput
|
|
update: XOR<map_pinsUpdateWithoutGeofencesInput, map_pinsUncheckedUpdateWithoutGeofencesInput>
|
|
create: XOR<map_pinsCreateWithoutGeofencesInput, map_pinsUncheckedCreateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type map_pinsUpdateWithWhereUniqueWithoutGeofencesInput = {
|
|
where: map_pinsWhereUniqueInput
|
|
data: XOR<map_pinsUpdateWithoutGeofencesInput, map_pinsUncheckedUpdateWithoutGeofencesInput>
|
|
}
|
|
|
|
export type map_pinsUpdateManyWithWhereWithoutGeofencesInput = {
|
|
where: map_pinsScalarWhereInput
|
|
data: XOR<map_pinsUpdateManyMutationInput, map_pinsUncheckedUpdateManyWithoutGeofencesInput>
|
|
}
|
|
|
|
export type map_pinsScalarWhereInput = {
|
|
AND?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[]
|
|
OR?: map_pinsScalarWhereInput[]
|
|
NOT?: map_pinsScalarWhereInput | map_pinsScalarWhereInput[]
|
|
id?: StringFilter<"map_pins"> | string
|
|
type?: StringFilter<"map_pins"> | string
|
|
coordinates?: JsonNullableFilter<"map_pins">
|
|
title?: StringFilter<"map_pins"> | string
|
|
description?: StringNullableFilter<"map_pins"> | string | null
|
|
status?: StringNullableFilter<"map_pins"> | string | null
|
|
priority?: StringNullableFilter<"map_pins"> | string | null
|
|
icon_type?: StringNullableFilter<"map_pins"> | string | null
|
|
icon_color?: StringNullableFilter<"map_pins"> | string | null
|
|
size?: StringNullableFilter<"map_pins"> | string | null
|
|
is_visible?: BoolNullableFilter<"map_pins"> | boolean | null
|
|
is_clickable?: BoolNullableFilter<"map_pins"> | boolean | null
|
|
metadata?: JsonNullableFilter<"map_pins">
|
|
alert_id?: StringNullableFilter<"map_pins"> | string | null
|
|
incident_id?: StringNullableFilter<"map_pins"> | string | null
|
|
team_member_id?: StringNullableFilter<"map_pins"> | string | null
|
|
camera_id?: StringNullableFilter<"map_pins"> | string | null
|
|
geofence_id?: StringNullableFilter<"map_pins"> | string | null
|
|
created_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"map_pins"> | Date | string | null
|
|
created_by?: StringNullableFilter<"map_pins"> | string | null
|
|
updated_by?: StringNullableFilter<"map_pins"> | string | null
|
|
}
|
|
|
|
export type incidentsCreateWithoutIncident_updatesInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsCreateNestedManyWithoutIncidentsInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
geofences?: geofencesCreateNestedOneWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsUncheckedCreateWithoutIncident_updatesInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsCreateOrConnectWithoutIncident_updatesInput = {
|
|
where: incidentsWhereUniqueInput
|
|
create: XOR<incidentsCreateWithoutIncident_updatesInput, incidentsUncheckedCreateWithoutIncident_updatesInput>
|
|
}
|
|
|
|
export type incidentsUpsertWithoutIncident_updatesInput = {
|
|
update: XOR<incidentsUpdateWithoutIncident_updatesInput, incidentsUncheckedUpdateWithoutIncident_updatesInput>
|
|
create: XOR<incidentsCreateWithoutIncident_updatesInput, incidentsUncheckedCreateWithoutIncident_updatesInput>
|
|
where?: incidentsWhereInput
|
|
}
|
|
|
|
export type incidentsUpdateToOneWithWhereWithoutIncident_updatesInput = {
|
|
where?: incidentsWhereInput
|
|
data: XOR<incidentsUpdateWithoutIncident_updatesInput, incidentsUncheckedUpdateWithoutIncident_updatesInput>
|
|
}
|
|
|
|
export type incidentsUpdateWithoutIncident_updatesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUpdateManyWithoutIncidentsNestedInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput
|
|
geofences?: geofencesUpdateOneWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateWithoutIncident_updatesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type alertsCreateWithoutIncidentsInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alert_recipients?: alert_recipientsCreateNestedManyWithoutAlertsInput
|
|
}
|
|
|
|
export type alertsUncheckedCreateWithoutIncidentsInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alert_recipients?: alert_recipientsUncheckedCreateNestedManyWithoutAlertsInput
|
|
}
|
|
|
|
export type alertsCreateOrConnectWithoutIncidentsInput = {
|
|
where: alertsWhereUniqueInput
|
|
create: XOR<alertsCreateWithoutIncidentsInput, alertsUncheckedCreateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type alertsCreateManyIncidentsInputEnvelope = {
|
|
data: alertsCreateManyIncidentsInput | alertsCreateManyIncidentsInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type incident_updatesCreateWithoutIncidentsInput = {
|
|
id?: string
|
|
update_type: string
|
|
title?: string | null
|
|
description?: string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: boolean | null
|
|
is_system_generated?: boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
created_by: string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: string | null
|
|
}
|
|
|
|
export type incident_updatesUncheckedCreateWithoutIncidentsInput = {
|
|
id?: string
|
|
update_type: string
|
|
title?: string | null
|
|
description?: string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: boolean | null
|
|
is_system_generated?: boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
created_by: string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: string | null
|
|
}
|
|
|
|
export type incident_updatesCreateOrConnectWithoutIncidentsInput = {
|
|
where: incident_updatesWhereUniqueInput
|
|
create: XOR<incident_updatesCreateWithoutIncidentsInput, incident_updatesUncheckedCreateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type incident_updatesCreateManyIncidentsInputEnvelope = {
|
|
data: incident_updatesCreateManyIncidentsInput | incident_updatesCreateManyIncidentsInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type team_membersCreateWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_assigned_toToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput
|
|
team_location_history?: team_location_historyCreateNestedManyWithoutTeam_membersInput
|
|
}
|
|
|
|
export type team_membersUncheckedCreateWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput
|
|
team_location_history?: team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput
|
|
}
|
|
|
|
export type team_membersCreateOrConnectWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
where: team_membersWhereUniqueInput
|
|
create: XOR<team_membersCreateWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type team_membersCreateWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput
|
|
team_location_history?: team_location_historyCreateNestedManyWithoutTeam_membersInput
|
|
}
|
|
|
|
export type team_membersUncheckedCreateWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput
|
|
team_location_history?: team_location_historyUncheckedCreateNestedManyWithoutTeam_membersInput
|
|
}
|
|
|
|
export type team_membersCreateOrConnectWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
where: team_membersWhereUniqueInput
|
|
create: XOR<team_membersCreateWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type geofencesCreateWithoutIncidentsInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofence_breaches?: geofence_breachesCreateNestedManyWithoutGeofencesInput
|
|
map_pins?: map_pinsCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesUncheckedCreateWithoutIncidentsInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofence_breaches?: geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput
|
|
map_pins?: map_pinsUncheckedCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesCreateOrConnectWithoutIncidentsInput = {
|
|
where: geofencesWhereUniqueInput
|
|
create: XOR<geofencesCreateWithoutIncidentsInput, geofencesUncheckedCreateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type alertsUpsertWithWhereUniqueWithoutIncidentsInput = {
|
|
where: alertsWhereUniqueInput
|
|
update: XOR<alertsUpdateWithoutIncidentsInput, alertsUncheckedUpdateWithoutIncidentsInput>
|
|
create: XOR<alertsCreateWithoutIncidentsInput, alertsUncheckedCreateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type alertsUpdateWithWhereUniqueWithoutIncidentsInput = {
|
|
where: alertsWhereUniqueInput
|
|
data: XOR<alertsUpdateWithoutIncidentsInput, alertsUncheckedUpdateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type alertsUpdateManyWithWhereWithoutIncidentsInput = {
|
|
where: alertsScalarWhereInput
|
|
data: XOR<alertsUpdateManyMutationInput, alertsUncheckedUpdateManyWithoutIncidentsInput>
|
|
}
|
|
|
|
export type alertsScalarWhereInput = {
|
|
AND?: alertsScalarWhereInput | alertsScalarWhereInput[]
|
|
OR?: alertsScalarWhereInput[]
|
|
NOT?: alertsScalarWhereInput | alertsScalarWhereInput[]
|
|
id?: StringFilter<"alerts"> | string
|
|
alert_id?: StringFilter<"alerts"> | string
|
|
title?: StringFilter<"alerts"> | string
|
|
message?: StringFilter<"alerts"> | string
|
|
type?: StringFilter<"alerts"> | string
|
|
category?: StringNullableFilter<"alerts"> | string | null
|
|
severity?: StringFilter<"alerts"> | string
|
|
priority?: StringFilter<"alerts"> | string
|
|
status?: StringFilter<"alerts"> | string
|
|
is_emergency?: BoolNullableFilter<"alerts"> | boolean | null
|
|
is_broadcast?: BoolNullableFilter<"alerts"> | boolean | null
|
|
is_recurring?: BoolNullableFilter<"alerts"> | boolean | null
|
|
location?: JsonNullableFilter<"alerts">
|
|
coordinates_lat?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: DecimalNullableFilter<"alerts"> | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: JsonNullableFilter<"alerts">
|
|
target_buildings?: JsonNullableFilter<"alerts">
|
|
target_roles?: JsonNullableFilter<"alerts">
|
|
target_teams?: JsonNullableFilter<"alerts">
|
|
target_users?: JsonNullableFilter<"alerts">
|
|
geofence_ids?: JsonNullableFilter<"alerts">
|
|
scheduled_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
starts_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
ends_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
expires_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
acknowledged_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
resolved_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
recurrence_pattern?: JsonNullableFilter<"alerts">
|
|
next_occurrence?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
content?: JsonNullableFilter<"alerts">
|
|
attachments?: JsonNullableFilter<"alerts">
|
|
media_urls?: JsonNullableFilter<"alerts">
|
|
action_buttons?: JsonNullableFilter<"alerts">
|
|
channels?: JsonNullableFilter<"alerts">
|
|
delivery_config?: JsonNullableFilter<"alerts">
|
|
source?: StringNullableFilter<"alerts"> | string | null
|
|
source_id?: StringNullableFilter<"alerts"> | string | null
|
|
context?: JsonNullableFilter<"alerts">
|
|
incident_id?: StringNullableFilter<"alerts"> | string | null
|
|
camera_ids?: JsonNullableFilter<"alerts">
|
|
related_alerts?: JsonNullableFilter<"alerts">
|
|
total_recipients?: IntNullableFilter<"alerts"> | number | null
|
|
delivered_count?: IntNullableFilter<"alerts"> | number | null
|
|
acknowledged_count?: IntNullableFilter<"alerts"> | number | null
|
|
failed_count?: IntNullableFilter<"alerts"> | number | null
|
|
tags?: JsonNullableFilter<"alerts">
|
|
metadata?: JsonNullableFilter<"alerts">
|
|
custom_fields?: JsonNullableFilter<"alerts">
|
|
created_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
updated_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
created_by?: StringNullableFilter<"alerts"> | string | null
|
|
updated_by?: StringNullableFilter<"alerts"> | string | null
|
|
deleted_at?: DateTimeNullableFilter<"alerts"> | Date | string | null
|
|
deleted_by?: StringNullableFilter<"alerts"> | string | null
|
|
}
|
|
|
|
export type incident_updatesUpsertWithWhereUniqueWithoutIncidentsInput = {
|
|
where: incident_updatesWhereUniqueInput
|
|
update: XOR<incident_updatesUpdateWithoutIncidentsInput, incident_updatesUncheckedUpdateWithoutIncidentsInput>
|
|
create: XOR<incident_updatesCreateWithoutIncidentsInput, incident_updatesUncheckedCreateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type incident_updatesUpdateWithWhereUniqueWithoutIncidentsInput = {
|
|
where: incident_updatesWhereUniqueInput
|
|
data: XOR<incident_updatesUpdateWithoutIncidentsInput, incident_updatesUncheckedUpdateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type incident_updatesUpdateManyWithWhereWithoutIncidentsInput = {
|
|
where: incident_updatesScalarWhereInput
|
|
data: XOR<incident_updatesUpdateManyMutationInput, incident_updatesUncheckedUpdateManyWithoutIncidentsInput>
|
|
}
|
|
|
|
export type incident_updatesScalarWhereInput = {
|
|
AND?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[]
|
|
OR?: incident_updatesScalarWhereInput[]
|
|
NOT?: incident_updatesScalarWhereInput | incident_updatesScalarWhereInput[]
|
|
id?: StringFilter<"incident_updates"> | string
|
|
incident_id?: StringFilter<"incident_updates"> | string
|
|
update_type?: StringFilter<"incident_updates"> | string
|
|
title?: StringNullableFilter<"incident_updates"> | string | null
|
|
description?: StringNullableFilter<"incident_updates"> | string | null
|
|
old_values?: JsonNullableFilter<"incident_updates">
|
|
new_values?: JsonNullableFilter<"incident_updates">
|
|
changed_fields?: JsonNullableFilter<"incident_updates">
|
|
is_internal?: BoolNullableFilter<"incident_updates"> | boolean | null
|
|
is_system_generated?: BoolNullableFilter<"incident_updates"> | boolean | null
|
|
attachments?: JsonNullableFilter<"incident_updates">
|
|
created_at?: DateTimeNullableFilter<"incident_updates"> | Date | string | null
|
|
created_by?: StringFilter<"incident_updates"> | string
|
|
notifications_sent?: JsonNullableFilter<"incident_updates">
|
|
notification_status?: StringNullableFilter<"incident_updates"> | string | null
|
|
}
|
|
|
|
export type team_membersUpsertWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
update: XOR<team_membersUpdateWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUncheckedUpdateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
create: XOR<team_membersCreateWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
where?: team_membersWhereInput
|
|
}
|
|
|
|
export type team_membersUpdateToOneWithWhereWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
where?: team_membersWhereInput
|
|
data: XOR<team_membersUpdateWithoutIncidents_incidents_reported_byToteam_membersInput, team_membersUncheckedUpdateWithoutIncidents_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type team_membersUpdateWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput
|
|
team_location_history?: team_location_historyUpdateManyWithoutTeam_membersNestedInput
|
|
}
|
|
|
|
export type team_membersUncheckedUpdateWithoutIncidents_incidents_reported_byToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput
|
|
team_location_history?: team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput
|
|
}
|
|
|
|
export type team_membersUpsertWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
update: XOR<team_membersUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUncheckedUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
create: XOR<team_membersCreateWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUncheckedCreateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
where?: team_membersWhereInput
|
|
}
|
|
|
|
export type team_membersUpdateToOneWithWhereWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
where?: team_membersWhereInput
|
|
data: XOR<team_membersUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput, team_membersUncheckedUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type team_membersUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput
|
|
team_location_history?: team_location_historyUpdateManyWithoutTeam_membersNestedInput
|
|
}
|
|
|
|
export type team_membersUncheckedUpdateWithoutIncidents_incidents_assigned_toToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput
|
|
team_location_history?: team_location_historyUncheckedUpdateManyWithoutTeam_membersNestedInput
|
|
}
|
|
|
|
export type geofencesUpsertWithoutIncidentsInput = {
|
|
update: XOR<geofencesUpdateWithoutIncidentsInput, geofencesUncheckedUpdateWithoutIncidentsInput>
|
|
create: XOR<geofencesCreateWithoutIncidentsInput, geofencesUncheckedCreateWithoutIncidentsInput>
|
|
where?: geofencesWhereInput
|
|
}
|
|
|
|
export type geofencesUpdateToOneWithWhereWithoutIncidentsInput = {
|
|
where?: geofencesWhereInput
|
|
data: XOR<geofencesUpdateWithoutIncidentsInput, geofencesUncheckedUpdateWithoutIncidentsInput>
|
|
}
|
|
|
|
export type geofencesUpdateWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_breaches?: geofence_breachesUpdateManyWithoutGeofencesNestedInput
|
|
map_pins?: map_pinsUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type geofencesUncheckedUpdateWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_breaches?: geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
map_pins?: map_pinsUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type visitor_ktp_dataCreateWithoutKtp_validation_auditInput = {
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number?: string | null
|
|
full_name?: string | null
|
|
birth_date?: Date | string | null
|
|
birth_place?: string | null
|
|
gender?: $Enums.visitor_ktp_data_gender | null
|
|
address?: string | null
|
|
rt_rw?: string | null
|
|
kelurahan?: string | null
|
|
kecamatan?: string | null
|
|
religion?: string | null
|
|
marital_status?: string | null
|
|
occupation?: string | null
|
|
nationality?: string | null
|
|
ktp_photo_url?: string | null
|
|
ktp_photo_hash?: string | null
|
|
validation_status?: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: string | null
|
|
validated_by?: string | null
|
|
validated_at?: Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
}
|
|
|
|
export type visitor_ktp_dataUncheckedCreateWithoutKtp_validation_auditInput = {
|
|
id: string
|
|
visitor_registration_id: string
|
|
ktp_number?: string | null
|
|
full_name?: string | null
|
|
birth_date?: Date | string | null
|
|
birth_place?: string | null
|
|
gender?: $Enums.visitor_ktp_data_gender | null
|
|
address?: string | null
|
|
rt_rw?: string | null
|
|
kelurahan?: string | null
|
|
kecamatan?: string | null
|
|
religion?: string | null
|
|
marital_status?: string | null
|
|
occupation?: string | null
|
|
nationality?: string | null
|
|
ktp_photo_url?: string | null
|
|
ktp_photo_hash?: string | null
|
|
validation_status?: $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: string | null
|
|
validated_by?: string | null
|
|
validated_at?: Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
}
|
|
|
|
export type visitor_ktp_dataCreateOrConnectWithoutKtp_validation_auditInput = {
|
|
where: visitor_ktp_dataWhereUniqueInput
|
|
create: XOR<visitor_ktp_dataCreateWithoutKtp_validation_auditInput, visitor_ktp_dataUncheckedCreateWithoutKtp_validation_auditInput>
|
|
}
|
|
|
|
export type visitor_ktp_dataUpsertWithoutKtp_validation_auditInput = {
|
|
update: XOR<visitor_ktp_dataUpdateWithoutKtp_validation_auditInput, visitor_ktp_dataUncheckedUpdateWithoutKtp_validation_auditInput>
|
|
create: XOR<visitor_ktp_dataCreateWithoutKtp_validation_auditInput, visitor_ktp_dataUncheckedCreateWithoutKtp_validation_auditInput>
|
|
where?: visitor_ktp_dataWhereInput
|
|
}
|
|
|
|
export type visitor_ktp_dataUpdateToOneWithWhereWithoutKtp_validation_auditInput = {
|
|
where?: visitor_ktp_dataWhereInput
|
|
data: XOR<visitor_ktp_dataUpdateWithoutKtp_validation_auditInput, visitor_ktp_dataUncheckedUpdateWithoutKtp_validation_auditInput>
|
|
}
|
|
|
|
export type visitor_ktp_dataUpdateWithoutKtp_validation_auditInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
visitor_registration_id?: StringFieldUpdateOperationsInput | string
|
|
ktp_number?: NullableStringFieldUpdateOperationsInput | string | null
|
|
full_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birth_place?: NullableStringFieldUpdateOperationsInput | string | null
|
|
gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rt_rw?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kelurahan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kecamatan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
religion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
marital_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
occupation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
nationality?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type visitor_ktp_dataUncheckedUpdateWithoutKtp_validation_auditInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
visitor_registration_id?: StringFieldUpdateOperationsInput | string
|
|
ktp_number?: NullableStringFieldUpdateOperationsInput | string | null
|
|
full_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
birth_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
birth_place?: NullableStringFieldUpdateOperationsInput | string | null
|
|
gender?: NullableEnumvisitor_ktp_data_genderFieldUpdateOperationsInput | $Enums.visitor_ktp_data_gender | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rt_rw?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kelurahan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
kecamatan?: NullableStringFieldUpdateOperationsInput | string | null
|
|
religion?: NullableStringFieldUpdateOperationsInput | string | null
|
|
marital_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
occupation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
nationality?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
ktp_photo_hash?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validation_status?: Enumvisitor_ktp_data_validation_statusFieldUpdateOperationsInput | $Enums.visitor_ktp_data_validation_status
|
|
validation_confidence?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
validation_notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
validated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ocr_raw_data?: NullableJsonNullValueInput | InputJsonValue
|
|
manual_corrections?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type geofencesCreateWithoutMap_pinsInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofence_breaches?: geofence_breachesCreateNestedManyWithoutGeofencesInput
|
|
incidents?: incidentsCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesUncheckedCreateWithoutMap_pinsInput = {
|
|
id?: string
|
|
name: string
|
|
type: string
|
|
coordinates: JsonNullValueInput | InputJsonValue
|
|
description?: string | null
|
|
is_active?: boolean | null
|
|
priority?: string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
geofence_breaches?: geofence_breachesUncheckedCreateNestedManyWithoutGeofencesInput
|
|
incidents?: incidentsUncheckedCreateNestedManyWithoutGeofencesInput
|
|
}
|
|
|
|
export type geofencesCreateOrConnectWithoutMap_pinsInput = {
|
|
where: geofencesWhereUniqueInput
|
|
create: XOR<geofencesCreateWithoutMap_pinsInput, geofencesUncheckedCreateWithoutMap_pinsInput>
|
|
}
|
|
|
|
export type geofencesUpsertWithoutMap_pinsInput = {
|
|
update: XOR<geofencesUpdateWithoutMap_pinsInput, geofencesUncheckedUpdateWithoutMap_pinsInput>
|
|
create: XOR<geofencesCreateWithoutMap_pinsInput, geofencesUncheckedCreateWithoutMap_pinsInput>
|
|
where?: geofencesWhereInput
|
|
}
|
|
|
|
export type geofencesUpdateToOneWithWhereWithoutMap_pinsInput = {
|
|
where?: geofencesWhereInput
|
|
data: XOR<geofencesUpdateWithoutMap_pinsInput, geofencesUncheckedUpdateWithoutMap_pinsInput>
|
|
}
|
|
|
|
export type geofencesUpdateWithoutMap_pinsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_breaches?: geofence_breachesUpdateManyWithoutGeofencesNestedInput
|
|
incidents?: incidentsUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type geofencesUncheckedUpdateWithoutMap_pinsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: JsonNullValueInput | InputJsonValue
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_active?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notification_settings?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
geofence_breaches?: geofence_breachesUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
incidents?: incidentsUncheckedUpdateManyWithoutGeofencesNestedInput
|
|
}
|
|
|
|
export type visitor_registrationsCreateWithoutQr_codesInput = {
|
|
id?: string
|
|
name: string
|
|
phone: string
|
|
photo_url?: string | null
|
|
purpose?: string | null
|
|
entry_point: string
|
|
location_lat?: Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: Decimal | DecimalJsLike | number | string | null
|
|
status?: $Enums.visitor_registrations_status
|
|
approved_by?: string | null
|
|
approved_at?: Date | string | null
|
|
rejected_by?: string | null
|
|
rejected_at?: Date | string | null
|
|
rejection_reason?: string | null
|
|
expires_at?: Date | string | null
|
|
checked_in_at?: Date | string | null
|
|
checked_out_at?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
location_address?: string | null
|
|
location_updated_at?: Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedCreateWithoutQr_codesInput = {
|
|
id?: string
|
|
name: string
|
|
phone: string
|
|
photo_url?: string | null
|
|
purpose?: string | null
|
|
entry_point: string
|
|
location_lat?: Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: Decimal | DecimalJsLike | number | string | null
|
|
status?: $Enums.visitor_registrations_status
|
|
approved_by?: string | null
|
|
approved_at?: Date | string | null
|
|
rejected_by?: string | null
|
|
rejected_at?: Date | string | null
|
|
rejection_reason?: string | null
|
|
expires_at?: Date | string | null
|
|
checked_in_at?: Date | string | null
|
|
checked_out_at?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
location_address?: string | null
|
|
location_updated_at?: Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsCreateOrConnectWithoutQr_codesInput = {
|
|
where: visitor_registrationsWhereUniqueInput
|
|
create: XOR<visitor_registrationsCreateWithoutQr_codesInput, visitor_registrationsUncheckedCreateWithoutQr_codesInput>
|
|
}
|
|
|
|
export type visitor_registrationsCreateManyQr_codesInputEnvelope = {
|
|
data: visitor_registrationsCreateManyQr_codesInput | visitor_registrationsCreateManyQr_codesInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type visitor_registrationsUpsertWithWhereUniqueWithoutQr_codesInput = {
|
|
where: visitor_registrationsWhereUniqueInput
|
|
update: XOR<visitor_registrationsUpdateWithoutQr_codesInput, visitor_registrationsUncheckedUpdateWithoutQr_codesInput>
|
|
create: XOR<visitor_registrationsCreateWithoutQr_codesInput, visitor_registrationsUncheckedCreateWithoutQr_codesInput>
|
|
}
|
|
|
|
export type visitor_registrationsUpdateWithWhereUniqueWithoutQr_codesInput = {
|
|
where: visitor_registrationsWhereUniqueInput
|
|
data: XOR<visitor_registrationsUpdateWithoutQr_codesInput, visitor_registrationsUncheckedUpdateWithoutQr_codesInput>
|
|
}
|
|
|
|
export type visitor_registrationsUpdateManyWithWhereWithoutQr_codesInput = {
|
|
where: visitor_registrationsScalarWhereInput
|
|
data: XOR<visitor_registrationsUpdateManyMutationInput, visitor_registrationsUncheckedUpdateManyWithoutQr_codesInput>
|
|
}
|
|
|
|
export type visitor_registrationsScalarWhereInput = {
|
|
AND?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[]
|
|
OR?: visitor_registrationsScalarWhereInput[]
|
|
NOT?: visitor_registrationsScalarWhereInput | visitor_registrationsScalarWhereInput[]
|
|
id?: StringFilter<"visitor_registrations"> | string
|
|
name?: StringFilter<"visitor_registrations"> | string
|
|
phone?: StringFilter<"visitor_registrations"> | string
|
|
photo_url?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
purpose?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
entry_point?: StringFilter<"visitor_registrations"> | string
|
|
location_lat?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: DecimalNullableFilter<"visitor_registrations"> | Decimal | DecimalJsLike | number | string | null
|
|
qr_code_id?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
status?: Enumvisitor_registrations_statusFilter<"visitor_registrations"> | $Enums.visitor_registrations_status
|
|
approved_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
approved_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
rejected_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
rejected_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
rejection_reason?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
expires_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
checked_in_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
checked_out_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
metadata?: JsonNullableFilter<"visitor_registrations">
|
|
created_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
updated_by?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
created_at?: DateTimeFilter<"visitor_registrations"> | Date | string
|
|
updated_at?: DateTimeFilter<"visitor_registrations"> | Date | string
|
|
location_address?: StringNullableFilter<"visitor_registrations"> | string | null
|
|
location_updated_at?: DateTimeNullableFilter<"visitor_registrations"> | Date | string | null
|
|
}
|
|
|
|
export type team_membersCreateWithoutTeam_location_historyInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput
|
|
}
|
|
|
|
export type team_membersUncheckedCreateWithoutTeam_location_historyInput = {
|
|
id: string
|
|
nama: string
|
|
role: string
|
|
status?: $Enums.team_members_status | null
|
|
phone: string
|
|
email?: string | null
|
|
current_location?: string | null
|
|
last_update?: Date | string | null
|
|
shift_start?: Date | string | null
|
|
shift_end?: Date | string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_reported_byToteam_membersInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUncheckedCreateNestedManyWithoutTeam_members_incidents_assigned_toToteam_membersInput
|
|
}
|
|
|
|
export type team_membersCreateOrConnectWithoutTeam_location_historyInput = {
|
|
where: team_membersWhereUniqueInput
|
|
create: XOR<team_membersCreateWithoutTeam_location_historyInput, team_membersUncheckedCreateWithoutTeam_location_historyInput>
|
|
}
|
|
|
|
export type team_membersUpsertWithoutTeam_location_historyInput = {
|
|
update: XOR<team_membersUpdateWithoutTeam_location_historyInput, team_membersUncheckedUpdateWithoutTeam_location_historyInput>
|
|
create: XOR<team_membersCreateWithoutTeam_location_historyInput, team_membersUncheckedCreateWithoutTeam_location_historyInput>
|
|
where?: team_membersWhereInput
|
|
}
|
|
|
|
export type team_membersUpdateToOneWithWhereWithoutTeam_location_historyInput = {
|
|
where?: team_membersWhereInput
|
|
data: XOR<team_membersUpdateWithoutTeam_location_historyInput, team_membersUncheckedUpdateWithoutTeam_location_historyInput>
|
|
}
|
|
|
|
export type team_membersUpdateWithoutTeam_location_historyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput
|
|
}
|
|
|
|
export type team_membersUncheckedUpdateWithoutTeam_location_historyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
nama?: StringFieldUpdateOperationsInput | string
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
status?: NullableEnumteam_members_statusFieldUpdateOperationsInput | $Enums.team_members_status | null
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
email?: NullableStringFieldUpdateOperationsInput | string | null
|
|
current_location?: NullableStringFieldUpdateOperationsInput | string | null
|
|
last_update?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shift_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
incidents_incidents_reported_byToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersNestedInput
|
|
incidents_incidents_assigned_toToteam_members?: incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersNestedInput
|
|
}
|
|
|
|
export type incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_assigned_toToteam_membersInput
|
|
geofences?: geofencesCreateNestedOneWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsCreateOrConnectWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
where: incidentsWhereUniqueInput
|
|
create: XOR<incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInputEnvelope = {
|
|
data: incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInput | incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesCreateNestedManyWithoutIncidentsInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersCreateNestedOneWithoutIncidents_incidents_reported_byToteam_membersInput
|
|
geofences?: geofencesCreateNestedOneWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
alerts?: alertsUncheckedCreateNestedManyWithoutIncidentsInput
|
|
incident_updates?: incident_updatesUncheckedCreateNestedManyWithoutIncidentsInput
|
|
}
|
|
|
|
export type incidentsCreateOrConnectWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
where: incidentsWhereUniqueInput
|
|
create: XOR<incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInputEnvelope = {
|
|
data: incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInput | incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type team_location_historyCreateWithoutTeam_membersInput = {
|
|
location: string
|
|
lat?: Decimal | DecimalJsLike | number | string | null
|
|
lng?: Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: string | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type team_location_historyUncheckedCreateWithoutTeam_membersInput = {
|
|
id?: number
|
|
location: string
|
|
lat?: Decimal | DecimalJsLike | number | string | null
|
|
lng?: Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: string | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type team_location_historyCreateOrConnectWithoutTeam_membersInput = {
|
|
where: team_location_historyWhereUniqueInput
|
|
create: XOR<team_location_historyCreateWithoutTeam_membersInput, team_location_historyUncheckedCreateWithoutTeam_membersInput>
|
|
}
|
|
|
|
export type team_location_historyCreateManyTeam_membersInputEnvelope = {
|
|
data: team_location_historyCreateManyTeam_membersInput | team_location_historyCreateManyTeam_membersInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
where: incidentsWhereUniqueInput
|
|
update: XOR<incidentsUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput>
|
|
create: XOR<incidentsCreateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
where: incidentsWhereUniqueInput
|
|
data: XOR<incidentsUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput, incidentsUncheckedUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsUpdateManyWithWhereWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
where: incidentsScalarWhereInput
|
|
data: XOR<incidentsUpdateManyMutationInput, incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsUpsertWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
where: incidentsWhereUniqueInput
|
|
update: XOR<incidentsUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput>
|
|
create: XOR<incidentsCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedCreateWithoutTeam_members_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsUpdateWithWhereUniqueWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
where: incidentsWhereUniqueInput
|
|
data: XOR<incidentsUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput, incidentsUncheckedUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type incidentsUpdateManyWithWhereWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
where: incidentsScalarWhereInput
|
|
data: XOR<incidentsUpdateManyMutationInput, incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersInput>
|
|
}
|
|
|
|
export type team_location_historyUpsertWithWhereUniqueWithoutTeam_membersInput = {
|
|
where: team_location_historyWhereUniqueInput
|
|
update: XOR<team_location_historyUpdateWithoutTeam_membersInput, team_location_historyUncheckedUpdateWithoutTeam_membersInput>
|
|
create: XOR<team_location_historyCreateWithoutTeam_membersInput, team_location_historyUncheckedCreateWithoutTeam_membersInput>
|
|
}
|
|
|
|
export type team_location_historyUpdateWithWhereUniqueWithoutTeam_membersInput = {
|
|
where: team_location_historyWhereUniqueInput
|
|
data: XOR<team_location_historyUpdateWithoutTeam_membersInput, team_location_historyUncheckedUpdateWithoutTeam_membersInput>
|
|
}
|
|
|
|
export type team_location_historyUpdateManyWithWhereWithoutTeam_membersInput = {
|
|
where: team_location_historyScalarWhereInput
|
|
data: XOR<team_location_historyUpdateManyMutationInput, team_location_historyUncheckedUpdateManyWithoutTeam_membersInput>
|
|
}
|
|
|
|
export type team_location_historyScalarWhereInput = {
|
|
AND?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[]
|
|
OR?: team_location_historyScalarWhereInput[]
|
|
NOT?: team_location_historyScalarWhereInput | team_location_historyScalarWhereInput[]
|
|
id?: IntFilter<"team_location_history"> | number
|
|
member_id?: StringFilter<"team_location_history"> | string
|
|
location?: StringFilter<"team_location_history"> | string
|
|
lat?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
lng?: DecimalNullableFilter<"team_location_history"> | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: StringNullableFilter<"team_location_history"> | string | null
|
|
timestamp?: DateTimeNullableFilter<"team_location_history"> | Date | string | null
|
|
}
|
|
|
|
export type ktp_validation_auditCreateWithoutVisitor_ktp_dataInput = {
|
|
id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by: string
|
|
ip_address?: string | null
|
|
user_agent?: string | null
|
|
reason?: string | null
|
|
created_at?: Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput = {
|
|
id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by: string
|
|
ip_address?: string | null
|
|
user_agent?: string | null
|
|
reason?: string | null
|
|
created_at?: Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditCreateOrConnectWithoutVisitor_ktp_dataInput = {
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
create: XOR<ktp_validation_auditCreateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput>
|
|
}
|
|
|
|
export type ktp_validation_auditCreateManyVisitor_ktp_dataInputEnvelope = {
|
|
data: ktp_validation_auditCreateManyVisitor_ktp_dataInput | ktp_validation_auditCreateManyVisitor_ktp_dataInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ktp_validation_auditUpsertWithWhereUniqueWithoutVisitor_ktp_dataInput = {
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
update: XOR<ktp_validation_auditUpdateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedUpdateWithoutVisitor_ktp_dataInput>
|
|
create: XOR<ktp_validation_auditCreateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedCreateWithoutVisitor_ktp_dataInput>
|
|
}
|
|
|
|
export type ktp_validation_auditUpdateWithWhereUniqueWithoutVisitor_ktp_dataInput = {
|
|
where: ktp_validation_auditWhereUniqueInput
|
|
data: XOR<ktp_validation_auditUpdateWithoutVisitor_ktp_dataInput, ktp_validation_auditUncheckedUpdateWithoutVisitor_ktp_dataInput>
|
|
}
|
|
|
|
export type ktp_validation_auditUpdateManyWithWhereWithoutVisitor_ktp_dataInput = {
|
|
where: ktp_validation_auditScalarWhereInput
|
|
data: XOR<ktp_validation_auditUpdateManyMutationInput, ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataInput>
|
|
}
|
|
|
|
export type ktp_validation_auditScalarWhereInput = {
|
|
AND?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[]
|
|
OR?: ktp_validation_auditScalarWhereInput[]
|
|
NOT?: ktp_validation_auditScalarWhereInput | ktp_validation_auditScalarWhereInput[]
|
|
id?: StringFilter<"ktp_validation_audit"> | string
|
|
ktp_data_id?: StringFilter<"ktp_validation_audit"> | string
|
|
action?: Enumktp_validation_audit_actionFilter<"ktp_validation_audit"> | $Enums.ktp_validation_audit_action
|
|
old_values?: JsonNullableFilter<"ktp_validation_audit">
|
|
new_values?: JsonNullableFilter<"ktp_validation_audit">
|
|
performed_by?: StringFilter<"ktp_validation_audit"> | string
|
|
ip_address?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
user_agent?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
reason?: StringNullableFilter<"ktp_validation_audit"> | string | null
|
|
created_at?: DateTimeFilter<"ktp_validation_audit"> | Date | string
|
|
metadata?: JsonNullableFilter<"ktp_validation_audit">
|
|
}
|
|
|
|
export type qr_codesCreateWithoutVisitor_registrationsInput = {
|
|
id?: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Decimal | DecimalJsLike | number | string
|
|
location_lng: Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: number
|
|
is_active?: boolean
|
|
description?: string | null
|
|
max_daily_registrations?: number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: $Enums.qr_codes_security_level
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: Date | string | null
|
|
usage_count?: number
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
}
|
|
|
|
export type qr_codesUncheckedCreateWithoutVisitor_registrationsInput = {
|
|
id?: string
|
|
entry_point: string
|
|
qr_data: string
|
|
location_lat: Decimal | DecimalJsLike | number | string
|
|
location_lng: Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: number
|
|
is_active?: boolean
|
|
description?: string | null
|
|
max_daily_registrations?: number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: $Enums.qr_codes_security_level
|
|
requires_approval?: boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: Date | string | null
|
|
usage_count?: number
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
}
|
|
|
|
export type qr_codesCreateOrConnectWithoutVisitor_registrationsInput = {
|
|
where: qr_codesWhereUniqueInput
|
|
create: XOR<qr_codesCreateWithoutVisitor_registrationsInput, qr_codesUncheckedCreateWithoutVisitor_registrationsInput>
|
|
}
|
|
|
|
export type qr_codesUpsertWithoutVisitor_registrationsInput = {
|
|
update: XOR<qr_codesUpdateWithoutVisitor_registrationsInput, qr_codesUncheckedUpdateWithoutVisitor_registrationsInput>
|
|
create: XOR<qr_codesCreateWithoutVisitor_registrationsInput, qr_codesUncheckedCreateWithoutVisitor_registrationsInput>
|
|
where?: qr_codesWhereInput
|
|
}
|
|
|
|
export type qr_codesUpdateToOneWithWhereWithoutVisitor_registrationsInput = {
|
|
where?: qr_codesWhereInput
|
|
data: XOR<qr_codesUpdateWithoutVisitor_registrationsInput, qr_codesUncheckedUpdateWithoutVisitor_registrationsInput>
|
|
}
|
|
|
|
export type qr_codesUpdateWithoutVisitor_registrationsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
qr_data?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFieldUpdateOperationsInput | number
|
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFieldUpdateOperationsInput | boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
usage_count?: IntFieldUpdateOperationsInput | number
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type qr_codesUncheckedUpdateWithoutVisitor_registrationsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
qr_data?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
location_lng?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
|
|
geofence_radius?: IntFieldUpdateOperationsInput | number
|
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
max_daily_registrations?: NullableIntFieldUpdateOperationsInput | number | null
|
|
operating_hours?: NullableJsonNullValueInput | InputJsonValue
|
|
security_level?: Enumqr_codes_security_levelFieldUpdateOperationsInput | $Enums.qr_codes_security_level
|
|
requires_approval?: BoolFieldUpdateOperationsInput | boolean
|
|
auto_approve_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
last_used_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
usage_count?: IntFieldUpdateOperationsInput | number
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type alert_recipientsCreateManyAlertsInput = {
|
|
id?: string
|
|
recipient_type: string
|
|
recipient_id?: string | null
|
|
recipient_name?: string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel: string
|
|
delivery_status?: string | null
|
|
sent_at?: Date | string | null
|
|
delivered_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
failed_at?: Date | string | null
|
|
delivery_attempts?: number | null
|
|
last_attempt_at?: Date | string | null
|
|
failure_reason?: string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: number | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUpdateWithoutAlertsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUncheckedUpdateWithoutAlertsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type alert_recipientsUncheckedUpdateManyWithoutAlertsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
recipient_type?: StringFieldUpdateOperationsInput | string
|
|
recipient_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
recipient_contact?: NullableJsonNullValueInput | InputJsonValue
|
|
channel?: StringFieldUpdateOperationsInput | string
|
|
delivery_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivered_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
delivery_attempts?: NullableIntFieldUpdateOperationsInput | number | null
|
|
last_attempt_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
delivery_metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
response_data?: NullableJsonNullValueInput | InputJsonValue
|
|
response_time?: NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camera_health_logCreateManyCamerasInput = {
|
|
id?: number
|
|
status: string
|
|
response_time: number
|
|
health_score: number
|
|
error_message?: string | null
|
|
stream_accessible?: boolean | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUpdateWithoutCamerasInput = {
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUncheckedUpdateWithoutCamerasInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type camera_health_logUncheckedUpdateManyWithoutCamerasInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
response_time?: IntFieldUpdateOperationsInput | number
|
|
health_score?: IntFieldUpdateOperationsInput | number
|
|
error_message?: NullableStringFieldUpdateOperationsInput | string | null
|
|
stream_accessible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesCreateManyGeofencesInput = {
|
|
id?: string
|
|
team_member_id?: string | null
|
|
breach_type: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
severity?: string | null
|
|
is_resolved?: boolean | null
|
|
resolved_at?: Date | string | null
|
|
resolved_by?: string | null
|
|
notes?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
}
|
|
|
|
export type incidentsCreateManyGeofencesInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type map_pinsCreateManyGeofencesInput = {
|
|
id?: string
|
|
type: string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title: string
|
|
description?: string | null
|
|
status?: string | null
|
|
priority?: string | null
|
|
icon_type?: string | null
|
|
icon_color?: string | null
|
|
size?: string | null
|
|
is_visible?: boolean | null
|
|
is_clickable?: boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: string | null
|
|
incident_id?: string | null
|
|
team_member_id?: string | null
|
|
camera_id?: string | null
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
}
|
|
|
|
export type geofence_breachesUpdateWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesUncheckedUpdateWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type geofence_breachesUncheckedUpdateManyWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
breach_type?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
severity?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_resolved?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
notes?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type incidentsUpdateWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type map_pinsUpdateWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type map_pinsUncheckedUpdateWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type map_pinsUncheckedUpdateManyWithoutGeofencesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
coordinates?: NullableJsonNullValueInput | InputJsonValue
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
priority?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
icon_color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
size?: NullableStringFieldUpdateOperationsInput | string | null
|
|
is_visible?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_clickable?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
incident_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
team_member_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
camera_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type alertsCreateManyIncidentsInput = {
|
|
id?: string
|
|
alert_id: string
|
|
title: string
|
|
message: string
|
|
type: string
|
|
category?: string | null
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
is_emergency?: boolean | null
|
|
is_broadcast?: boolean | null
|
|
is_recurring?: boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: Date | string | null
|
|
starts_at?: Date | string | null
|
|
ends_at?: Date | string | null
|
|
expires_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: string | null
|
|
source_id?: string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: number | null
|
|
delivered_count?: number | null
|
|
acknowledged_count?: number | null
|
|
failed_count?: number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type incident_updatesCreateManyIncidentsInput = {
|
|
id?: string
|
|
update_type: string
|
|
title?: string | null
|
|
description?: string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: boolean | null
|
|
is_system_generated?: boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
created_by: string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: string | null
|
|
}
|
|
|
|
export type alertsUpdateWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_recipients?: alert_recipientsUpdateManyWithoutAlertsNestedInput
|
|
}
|
|
|
|
export type alertsUncheckedUpdateWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_recipients?: alert_recipientsUncheckedUpdateManyWithoutAlertsNestedInput
|
|
}
|
|
|
|
export type alertsUncheckedUpdateManyWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
alert_id?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
message?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
category?: NullableStringFieldUpdateOperationsInput | string | null
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
is_emergency?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_broadcast?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_recurring?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
location?: NullableJsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
target_zones?: NullableJsonNullValueInput | InputJsonValue
|
|
target_buildings?: NullableJsonNullValueInput | InputJsonValue
|
|
target_roles?: NullableJsonNullValueInput | InputJsonValue
|
|
target_teams?: NullableJsonNullValueInput | InputJsonValue
|
|
target_users?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
scheduled_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
starts_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
recurrence_pattern?: NullableJsonNullValueInput | InputJsonValue
|
|
next_occurrence?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
content?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
media_urls?: NullableJsonNullValueInput | InputJsonValue
|
|
action_buttons?: NullableJsonNullValueInput | InputJsonValue
|
|
channels?: NullableJsonNullValueInput | InputJsonValue
|
|
delivery_config?: NullableJsonNullValueInput | InputJsonValue
|
|
source?: NullableStringFieldUpdateOperationsInput | string | null
|
|
source_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
context?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
related_alerts?: NullableJsonNullValueInput | InputJsonValue
|
|
total_recipients?: NullableIntFieldUpdateOperationsInput | number | null
|
|
delivered_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
acknowledged_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
failed_count?: NullableIntFieldUpdateOperationsInput | number | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incident_updatesUpdateWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incident_updatesUncheckedUpdateWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incident_updatesUncheckedUpdateManyWithoutIncidentsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
update_type?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
changed_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
is_internal?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
is_system_generated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: StringFieldUpdateOperationsInput | string
|
|
notifications_sent?: NullableJsonNullValueInput | InputJsonValue
|
|
notification_status?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type visitor_registrationsCreateManyQr_codesInput = {
|
|
id?: string
|
|
name: string
|
|
phone: string
|
|
photo_url?: string | null
|
|
purpose?: string | null
|
|
entry_point: string
|
|
location_lat?: Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: Decimal | DecimalJsLike | number | string | null
|
|
status?: $Enums.visitor_registrations_status
|
|
approved_by?: string | null
|
|
approved_at?: Date | string | null
|
|
rejected_by?: string | null
|
|
rejected_at?: Date | string | null
|
|
rejection_reason?: string | null
|
|
expires_at?: Date | string | null
|
|
checked_in_at?: Date | string | null
|
|
checked_out_at?: Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
location_address?: string | null
|
|
location_updated_at?: Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUpdateWithoutQr_codesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedUpdateWithoutQr_codesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type visitor_registrationsUncheckedUpdateManyWithoutQr_codesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
phone?: StringFieldUpdateOperationsInput | string
|
|
photo_url?: NullableStringFieldUpdateOperationsInput | string | null
|
|
purpose?: NullableStringFieldUpdateOperationsInput | string | null
|
|
entry_point?: StringFieldUpdateOperationsInput | string
|
|
location_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
location_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
status?: Enumvisitor_registrations_statusFieldUpdateOperationsInput | $Enums.visitor_registrations_status
|
|
approved_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
approved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejected_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
rejected_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
rejection_reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_in_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
checked_out_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
location_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
location_updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type incidentsCreateManyTeam_members_incidents_reported_byToteam_membersInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_to?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type incidentsCreateManyTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
id?: string
|
|
incident_number: string
|
|
title: string
|
|
description?: string | null
|
|
type: string
|
|
severity?: string
|
|
priority?: string
|
|
status?: string
|
|
location: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: Decimal | DecimalJsLike | number | string | null
|
|
address?: string | null
|
|
zone?: string | null
|
|
building?: string | null
|
|
floor?: string | null
|
|
room?: string | null
|
|
reported_by?: string | null
|
|
reporter_name?: string | null
|
|
reporter_contact?: string | null
|
|
reporter_type?: string | null
|
|
assigned_team?: string | null
|
|
assigned_at?: Date | string | null
|
|
occurred_at: Date | string
|
|
reported_at?: Date | string | null
|
|
acknowledged_at?: Date | string | null
|
|
resolved_at?: Date | string | null
|
|
closed_at?: Date | string | null
|
|
due_date?: Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: string | null
|
|
alert_id?: string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: Date | string | null
|
|
updated_at?: Date | string | null
|
|
created_by?: string | null
|
|
updated_by?: string | null
|
|
deleted_at?: Date | string | null
|
|
deleted_by?: string | null
|
|
}
|
|
|
|
export type team_location_historyCreateManyTeam_membersInput = {
|
|
id?: number
|
|
location: string
|
|
lat?: Decimal | DecimalJsLike | number | string | null
|
|
lng?: Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: string | null
|
|
timestamp?: Date | string | null
|
|
}
|
|
|
|
export type incidentsUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput
|
|
team_members_incidents_assigned_toToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_assigned_toToteam_membersNestedInput
|
|
geofences?: geofencesUpdateOneWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_reported_byToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_to?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type incidentsUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUpdateManyWithoutIncidentsNestedInput
|
|
team_members_incidents_reported_byToteam_members?: team_membersUpdateOneWithoutIncidents_incidents_reported_byToteam_membersNestedInput
|
|
geofences?: geofencesUpdateOneWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alerts?: alertsUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
incident_updates?: incident_updatesUncheckedUpdateManyWithoutIncidentsNestedInput
|
|
}
|
|
|
|
export type incidentsUncheckedUpdateManyWithoutTeam_members_incidents_assigned_toToteam_membersInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
incident_number?: StringFieldUpdateOperationsInput | string
|
|
title?: StringFieldUpdateOperationsInput | string
|
|
description?: NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
severity?: StringFieldUpdateOperationsInput | string
|
|
priority?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
location?: JsonNullValueInput | InputJsonValue
|
|
coordinates_lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
coordinates_lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
zone?: NullableStringFieldUpdateOperationsInput | string | null
|
|
building?: NullableStringFieldUpdateOperationsInput | string | null
|
|
floor?: NullableStringFieldUpdateOperationsInput | string | null
|
|
room?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reported_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_contact?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reporter_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_team?: NullableStringFieldUpdateOperationsInput | string | null
|
|
assigned_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
occurred_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
reported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
acknowledged_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
resolved_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
closed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
due_date?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
tags?: NullableJsonNullValueInput | InputJsonValue
|
|
attachments?: NullableJsonNullValueInput | InputJsonValue
|
|
evidence?: NullableJsonNullValueInput | InputJsonValue
|
|
witnesses?: NullableJsonNullValueInput | InputJsonValue
|
|
related_incidents?: NullableJsonNullValueInput | InputJsonValue
|
|
camera_ids?: NullableJsonNullValueInput | InputJsonValue
|
|
geofence_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
alert_id?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
custom_fields?: NullableJsonNullValueInput | InputJsonValue
|
|
created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
updated_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
deleted_by?: NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type team_location_historyUpdateWithoutTeam_membersInput = {
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type team_location_historyUncheckedUpdateWithoutTeam_membersInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type team_location_historyUncheckedUpdateManyWithoutTeam_membersInput = {
|
|
id?: IntFieldUpdateOperationsInput | number
|
|
location?: StringFieldUpdateOperationsInput | string
|
|
lat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
lng?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
|
|
activity_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
timestamp?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type ktp_validation_auditCreateManyVisitor_ktp_dataInput = {
|
|
id: string
|
|
action: $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by: string
|
|
ip_address?: string | null
|
|
user_agent?: string | null
|
|
reason?: string | null
|
|
created_at?: Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUpdateWithoutVisitor_ktp_dataInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedUpdateWithoutVisitor_ktp_dataInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
export type ktp_validation_auditUncheckedUpdateManyWithoutVisitor_ktp_dataInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
action?: Enumktp_validation_audit_actionFieldUpdateOperationsInput | $Enums.ktp_validation_audit_action
|
|
old_values?: NullableJsonNullValueInput | InputJsonValue
|
|
new_values?: NullableJsonNullValueInput | InputJsonValue
|
|
performed_by?: StringFieldUpdateOperationsInput | string
|
|
ip_address?: NullableStringFieldUpdateOperationsInput | string | null
|
|
user_agent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: NullableStringFieldUpdateOperationsInput | string | null
|
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
metadata?: NullableJsonNullValueInput | InputJsonValue
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Batch Payload for updateMany & deleteMany & createMany
|
|
*/
|
|
|
|
export type BatchPayload = {
|
|
count: number
|
|
}
|
|
|
|
/**
|
|
* DMMF
|
|
*/
|
|
export const dmmf: runtime.BaseDMMF
|
|
} |