feat: Select Procedures flow, batch-column NPI provider fix, auto PDF save
- Add 'Select Procedures' right-click option on appointment page (separate from Claims/PreAuth) - Select Procedures form saves CDT codes + NPI provider to AppointmentProcedure storage - Remove Save button from insurance claim form; Claims/PreAuth opens for insurance submission only - Claims/PreAuth auto-prefills from saved procedures including NPI provider - Batch-column: procedures npiProviderId takes priority over stale claim npiProviderId - Batch-column: auto-save PDF to patient Documents after successful submission (no socket needed) - Add npiProviderId column to AppointmentProcedure table (prisma db push) - Fix 'invalid db creation invocation': guard staffId, npiProviderId, procedureDate as Date object, totalBilled NaN guard - Add full error logging to batch-column catch block Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
64
packages/db/shared/schemas/variants/pure/Appointment.pure.d.ts
vendored
Normal file
64
packages/db/shared/schemas/variants/pure/Appointment.pure.d.ts
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
import * as z from 'zod';
|
||||
export declare const AppointmentModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
patientId: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
staffId: z.ZodNumber;
|
||||
title: z.ZodString;
|
||||
date: z.ZodDate;
|
||||
startTime: z.ZodString;
|
||||
endTime: z.ZodString;
|
||||
type: z.ZodString;
|
||||
notes: z.ZodNullable<z.ZodString>;
|
||||
procedureCodeNotes: z.ZodNullable<z.ZodString>;
|
||||
status: z.ZodString;
|
||||
createdAt: z.ZodDate;
|
||||
eligibilityStatus: z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN", "PLAN_NOT_ACCEPTED"]>;
|
||||
patient: z.ZodUnknown;
|
||||
user: z.ZodUnknown;
|
||||
staff: z.ZodNullable<z.ZodUnknown>;
|
||||
procedures: z.ZodArray<z.ZodUnknown, "many">;
|
||||
claims: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
type: string;
|
||||
status: string;
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
date: Date;
|
||||
title: string;
|
||||
patientId: number;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
notes: string | null;
|
||||
procedureCodeNotes: string | null;
|
||||
eligibilityStatus: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
procedures: unknown[];
|
||||
staffId: number;
|
||||
claims: unknown[];
|
||||
user?: unknown;
|
||||
patient?: unknown;
|
||||
staff?: unknown;
|
||||
}, {
|
||||
type: string;
|
||||
status: string;
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
date: Date;
|
||||
title: string;
|
||||
patientId: number;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
notes: string | null;
|
||||
procedureCodeNotes: string | null;
|
||||
eligibilityStatus: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
procedures: unknown[];
|
||||
staffId: number;
|
||||
claims: unknown[];
|
||||
user?: unknown;
|
||||
patient?: unknown;
|
||||
staff?: unknown;
|
||||
}>;
|
||||
export type AppointmentPureType = z.infer<typeof AppointmentModelSchema>;
|
||||
//# sourceMappingURL=Appointment.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Appointment.pure.d.ts","sourceRoot":"","sources":["Appointment.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
||||
60
packages/db/shared/schemas/variants/pure/Appointment.pure.js
Normal file
60
packages/db/shared/schemas/variants/pure/Appointment.pure.js
Normal file
@@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AppointmentModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const PatientStatus_schema_1 = require("../../enums/PatientStatus.schema");
|
||||
// prettier-ignore
|
||||
exports.AppointmentModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
staffId: z.number().int(),
|
||||
title: z.string(),
|
||||
date: z.date(),
|
||||
startTime: z.string(),
|
||||
endTime: z.string(),
|
||||
type: z.string(),
|
||||
notes: z.string().nullable(),
|
||||
procedureCodeNotes: z.string().nullable(),
|
||||
status: z.string(),
|
||||
createdAt: z.date(),
|
||||
eligibilityStatus: PatientStatus_schema_1.PatientStatusSchema,
|
||||
patient: z.unknown(),
|
||||
user: z.unknown(),
|
||||
staff: z.unknown().nullable(),
|
||||
procedures: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown())
|
||||
}).strict();
|
||||
52
packages/db/shared/schemas/variants/pure/AppointmentProcedure.pure.d.ts
vendored
Normal file
52
packages/db/shared/schemas/variants/pure/AppointmentProcedure.pure.d.ts
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import * as z from 'zod';
|
||||
export declare const AppointmentProcedureModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
appointmentId: z.ZodNumber;
|
||||
patientId: z.ZodNumber;
|
||||
procedureCode: z.ZodString;
|
||||
procedureLabel: z.ZodNullable<z.ZodString>;
|
||||
fee: z.ZodNullable<z.ZodNumber>;
|
||||
category: z.ZodNullable<z.ZodString>;
|
||||
toothNumber: z.ZodNullable<z.ZodString>;
|
||||
toothSurface: z.ZodNullable<z.ZodString>;
|
||||
oralCavityArea: z.ZodNullable<z.ZodString>;
|
||||
source: z.ZodEnum<["COMBO", "MANUAL"]>;
|
||||
comboKey: z.ZodNullable<z.ZodString>;
|
||||
createdAt: z.ZodDate;
|
||||
appointment: z.ZodUnknown;
|
||||
patient: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
patientId: number;
|
||||
procedureCode: string;
|
||||
procedureLabel: string | null;
|
||||
fee: number | null;
|
||||
category: string | null;
|
||||
toothNumber: string | null;
|
||||
toothSurface: string | null;
|
||||
oralCavityArea: string | null;
|
||||
source: "COMBO" | "MANUAL";
|
||||
comboKey: string | null;
|
||||
appointmentId: number;
|
||||
patient?: unknown;
|
||||
appointment?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
patientId: number;
|
||||
procedureCode: string;
|
||||
procedureLabel: string | null;
|
||||
fee: number | null;
|
||||
category: string | null;
|
||||
toothNumber: string | null;
|
||||
toothSurface: string | null;
|
||||
oralCavityArea: string | null;
|
||||
source: "COMBO" | "MANUAL";
|
||||
comboKey: string | null;
|
||||
appointmentId: number;
|
||||
patient?: unknown;
|
||||
appointment?: unknown;
|
||||
}>;
|
||||
export type AppointmentProcedurePureType = z.infer<typeof AppointmentProcedureModelSchema>;
|
||||
//# sourceMappingURL=AppointmentProcedure.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AppointmentProcedure.pure.d.ts","sourceRoot":"","sources":["AppointmentProcedure.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBjC,CAAC;AAEZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
||||
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AppointmentProcedureModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const ProcedureSource_schema_1 = require("../../enums/ProcedureSource.schema");
|
||||
// prettier-ignore
|
||||
exports.AppointmentProcedureModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
appointmentId: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
procedureCode: z.string(),
|
||||
procedureLabel: z.string().nullable(),
|
||||
fee: z.number().nullable(),
|
||||
category: z.string().nullable(),
|
||||
toothNumber: z.string().nullable(),
|
||||
toothSurface: z.string().nullable(),
|
||||
oralCavityArea: z.string().nullable(),
|
||||
source: ProcedureSource_schema_1.ProcedureSourceSchema,
|
||||
comboKey: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
appointment: z.unknown(),
|
||||
patient: z.unknown()
|
||||
}).strict();
|
||||
@@ -5,6 +5,7 @@ export const AppointmentProcedureModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
appointmentId: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
npiProviderId: z.number().int().nullable(),
|
||||
procedureCode: z.string(),
|
||||
procedureLabel: z.string().nullable(),
|
||||
fee: z.number().nullable(),
|
||||
@@ -16,7 +17,8 @@ export const AppointmentProcedureModelSchema = z.object({
|
||||
comboKey: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
appointment: z.unknown(),
|
||||
patient: z.unknown()
|
||||
patient: z.unknown(),
|
||||
npiProvider: z.unknown().nullable()
|
||||
}).strict();
|
||||
|
||||
export type AppointmentProcedurePureType = z.infer<typeof AppointmentProcedureModelSchema>;
|
||||
|
||||
25
packages/db/shared/schemas/variants/pure/BackupDestination.pure.d.ts
vendored
Normal file
25
packages/db/shared/schemas/variants/pure/BackupDestination.pure.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as z from 'zod';
|
||||
export declare const BackupDestinationModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
path: z.ZodString;
|
||||
isActive: z.ZodBoolean;
|
||||
createdAt: z.ZodDate;
|
||||
user: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
path: string;
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
isActive: boolean;
|
||||
user?: unknown;
|
||||
}, {
|
||||
path: string;
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
isActive: boolean;
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type BackupDestinationPureType = z.infer<typeof BackupDestinationModelSchema>;
|
||||
//# sourceMappingURL=BackupDestination.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"BackupDestination.pure.d.ts","sourceRoot":"","sources":["BackupDestination.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BackupDestinationModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.BackupDestinationModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
path: z.string(),
|
||||
isActive: z.boolean(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
79
packages/db/shared/schemas/variants/pure/Claim.pure.d.ts
vendored
Normal file
79
packages/db/shared/schemas/variants/pure/Claim.pure.d.ts
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import * as z from 'zod';
|
||||
export declare const ClaimModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
patientId: z.ZodNumber;
|
||||
appointmentId: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
staffId: z.ZodNumber;
|
||||
patientName: z.ZodString;
|
||||
memberId: z.ZodString;
|
||||
dateOfBirth: z.ZodDate;
|
||||
remarks: z.ZodString;
|
||||
missingTeethStatus: z.ZodEnum<["No_missing", "endentulous", "Yes_missing"]>;
|
||||
missingTeeth: z.ZodNullable<z.ZodUnknown>;
|
||||
serviceDate: z.ZodDate;
|
||||
insuranceProvider: z.ZodString;
|
||||
createdAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
status: z.ZodEnum<["PENDING", "APPROVED", "CANCELLED", "REVIEW", "VOID"]>;
|
||||
claimNumber: z.ZodNullable<z.ZodString>;
|
||||
patient: z.ZodUnknown;
|
||||
appointment: z.ZodUnknown;
|
||||
user: z.ZodNullable<z.ZodUnknown>;
|
||||
staff: z.ZodNullable<z.ZodUnknown>;
|
||||
serviceLines: z.ZodArray<z.ZodUnknown, "many">;
|
||||
claimFiles: z.ZodArray<z.ZodUnknown, "many">;
|
||||
payment: z.ZodNullable<z.ZodUnknown>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "PENDING" | "APPROVED" | "CANCELLED" | "REVIEW" | "VOID";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
patientId: number;
|
||||
appointmentId: number;
|
||||
staffId: number;
|
||||
updatedAt: Date;
|
||||
serviceLines: unknown[];
|
||||
patientName: string;
|
||||
memberId: string;
|
||||
dateOfBirth: Date;
|
||||
remarks: string;
|
||||
missingTeethStatus: "No_missing" | "endentulous" | "Yes_missing";
|
||||
serviceDate: Date;
|
||||
insuranceProvider: string;
|
||||
claimNumber: string | null;
|
||||
claimFiles: unknown[];
|
||||
user?: unknown;
|
||||
patient?: unknown;
|
||||
appointment?: unknown;
|
||||
staff?: unknown;
|
||||
payment?: unknown;
|
||||
missingTeeth?: unknown;
|
||||
}, {
|
||||
status: "PENDING" | "APPROVED" | "CANCELLED" | "REVIEW" | "VOID";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
patientId: number;
|
||||
appointmentId: number;
|
||||
staffId: number;
|
||||
updatedAt: Date;
|
||||
serviceLines: unknown[];
|
||||
patientName: string;
|
||||
memberId: string;
|
||||
dateOfBirth: Date;
|
||||
remarks: string;
|
||||
missingTeethStatus: "No_missing" | "endentulous" | "Yes_missing";
|
||||
serviceDate: Date;
|
||||
insuranceProvider: string;
|
||||
claimNumber: string | null;
|
||||
claimFiles: unknown[];
|
||||
user?: unknown;
|
||||
patient?: unknown;
|
||||
appointment?: unknown;
|
||||
staff?: unknown;
|
||||
payment?: unknown;
|
||||
missingTeeth?: unknown;
|
||||
}>;
|
||||
export type ClaimPureType = z.infer<typeof ClaimModelSchema>;
|
||||
//# sourceMappingURL=Claim.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Claim.pure.d.ts","sourceRoot":"","sources":["Claim.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBlB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
||||
66
packages/db/shared/schemas/variants/pure/Claim.pure.js
Normal file
66
packages/db/shared/schemas/variants/pure/Claim.pure.js
Normal file
@@ -0,0 +1,66 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ClaimModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const MissingTeethStatus_schema_1 = require("../../enums/MissingTeethStatus.schema");
|
||||
const ClaimStatus_schema_1 = require("../../enums/ClaimStatus.schema");
|
||||
// prettier-ignore
|
||||
exports.ClaimModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
appointmentId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
staffId: z.number().int(),
|
||||
patientName: z.string(),
|
||||
memberId: z.string(),
|
||||
dateOfBirth: z.date(),
|
||||
remarks: z.string(),
|
||||
missingTeethStatus: MissingTeethStatus_schema_1.MissingTeethStatusSchema,
|
||||
missingTeeth: z.unknown().nullable(),
|
||||
serviceDate: z.date(),
|
||||
insuranceProvider: z.string(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
status: ClaimStatus_schema_1.ClaimStatusSchema,
|
||||
claimNumber: z.string().nullable(),
|
||||
patient: z.unknown(),
|
||||
appointment: z.unknown(),
|
||||
user: z.unknown().nullable(),
|
||||
staff: z.unknown().nullable(),
|
||||
serviceLines: z.array(z.unknown()),
|
||||
claimFiles: z.array(z.unknown()),
|
||||
payment: z.unknown().nullable()
|
||||
}).strict();
|
||||
@@ -20,10 +20,12 @@ export const ClaimModelSchema = z.object({
|
||||
updatedAt: z.date(),
|
||||
status: ClaimStatusSchema,
|
||||
claimNumber: z.string().nullable(),
|
||||
npiProviderId: z.number().int().nullable(),
|
||||
patient: z.unknown(),
|
||||
appointment: z.unknown(),
|
||||
user: z.unknown().nullable(),
|
||||
staff: z.unknown().nullable(),
|
||||
npiProvider: z.unknown().nullable(),
|
||||
serviceLines: z.array(z.unknown()),
|
||||
claimFiles: z.array(z.unknown()),
|
||||
payment: z.unknown().nullable()
|
||||
|
||||
22
packages/db/shared/schemas/variants/pure/ClaimFile.pure.d.ts
vendored
Normal file
22
packages/db/shared/schemas/variants/pure/ClaimFile.pure.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as z from 'zod';
|
||||
export declare const ClaimFileModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
claimId: z.ZodNumber;
|
||||
filename: z.ZodString;
|
||||
mimeType: z.ZodString;
|
||||
claim: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
id: number;
|
||||
filename: string;
|
||||
mimeType: string;
|
||||
claimId: number;
|
||||
claim?: unknown;
|
||||
}, {
|
||||
id: number;
|
||||
filename: string;
|
||||
mimeType: string;
|
||||
claimId: number;
|
||||
claim?: unknown;
|
||||
}>;
|
||||
export type ClaimFilePureType = z.infer<typeof ClaimFileModelSchema>;
|
||||
//# sourceMappingURL=ClaimFile.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ClaimFile.pure.d.ts","sourceRoot":"","sources":["ClaimFile.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAMtB,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
||||
45
packages/db/shared/schemas/variants/pure/ClaimFile.pure.js
Normal file
45
packages/db/shared/schemas/variants/pure/ClaimFile.pure.js
Normal file
@@ -0,0 +1,45 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ClaimFileModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.ClaimFileModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
claimId: z.number().int(),
|
||||
filename: z.string(),
|
||||
mimeType: z.string(),
|
||||
claim: z.unknown()
|
||||
}).strict();
|
||||
@@ -5,6 +5,7 @@ export const ClaimFileModelSchema = z.object({
|
||||
claimId: z.number().int(),
|
||||
filename: z.string(),
|
||||
mimeType: z.string(),
|
||||
filePath: z.string().nullable(),
|
||||
claim: z.unknown()
|
||||
}).strict();
|
||||
|
||||
|
||||
46
packages/db/shared/schemas/variants/pure/CloudFile.pure.d.ts
vendored
Normal file
46
packages/db/shared/schemas/variants/pure/CloudFile.pure.d.ts
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import * as z from 'zod';
|
||||
export declare const CloudFileModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
name: z.ZodString;
|
||||
mimeType: z.ZodNullable<z.ZodString>;
|
||||
fileSize: z.ZodBigInt;
|
||||
folderId: z.ZodNullable<z.ZodNumber>;
|
||||
isComplete: z.ZodBoolean;
|
||||
totalChunks: z.ZodNullable<z.ZodNumber>;
|
||||
createdAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
user: z.ZodUnknown;
|
||||
folder: z.ZodNullable<z.ZodUnknown>;
|
||||
chunks: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
name: string;
|
||||
mimeType: string | null;
|
||||
updatedAt: Date;
|
||||
fileSize: bigint;
|
||||
isComplete: boolean;
|
||||
totalChunks: number | null;
|
||||
chunks: unknown[];
|
||||
folderId: number | null;
|
||||
user?: unknown;
|
||||
folder?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
name: string;
|
||||
mimeType: string | null;
|
||||
updatedAt: Date;
|
||||
fileSize: bigint;
|
||||
isComplete: boolean;
|
||||
totalChunks: number | null;
|
||||
chunks: unknown[];
|
||||
folderId: number | null;
|
||||
user?: unknown;
|
||||
folder?: unknown;
|
||||
}>;
|
||||
export type CloudFilePureType = z.infer<typeof CloudFileModelSchema>;
|
||||
//# sourceMappingURL=CloudFile.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CloudFile.pure.d.ts","sourceRoot":"","sources":["CloudFile.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActB,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
||||
53
packages/db/shared/schemas/variants/pure/CloudFile.pure.js
Normal file
53
packages/db/shared/schemas/variants/pure/CloudFile.pure.js
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CloudFileModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.CloudFileModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
mimeType: z.string().nullable(),
|
||||
fileSize: z.bigint(),
|
||||
folderId: z.number().int().nullable(),
|
||||
isComplete: z.boolean(),
|
||||
totalChunks: z.number().int().nullable(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
user: z.unknown(),
|
||||
folder: z.unknown().nullable(),
|
||||
chunks: z.array(z.unknown())
|
||||
}).strict();
|
||||
@@ -9,6 +9,7 @@ export const CloudFileModelSchema = z.object({
|
||||
folderId: z.number().int().nullable(),
|
||||
isComplete: z.boolean(),
|
||||
totalChunks: z.number().int().nullable(),
|
||||
diskPath: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
user: z.unknown(),
|
||||
|
||||
25
packages/db/shared/schemas/variants/pure/CloudFileChunk.pure.d.ts
vendored
Normal file
25
packages/db/shared/schemas/variants/pure/CloudFileChunk.pure.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as z from 'zod';
|
||||
export declare const CloudFileChunkModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
fileId: z.ZodNumber;
|
||||
seq: z.ZodNumber;
|
||||
data: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
||||
createdAt: z.ZodDate;
|
||||
file: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
data: Uint8Array<ArrayBuffer>;
|
||||
seq: number;
|
||||
fileId: number;
|
||||
file?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
data: Uint8Array<ArrayBuffer>;
|
||||
seq: number;
|
||||
fileId: number;
|
||||
file?: unknown;
|
||||
}>;
|
||||
export type CloudFileChunkPureType = z.infer<typeof CloudFileChunkModelSchema>;
|
||||
//# sourceMappingURL=CloudFileChunk.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CloudFileChunk.pure.d.ts","sourceRoot":"","sources":["CloudFileChunk.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAC;AAEZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CloudFileChunkModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.CloudFileChunkModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
fileId: z.number().int(),
|
||||
seq: z.number().int(),
|
||||
data: z.instanceof(Uint8Array),
|
||||
createdAt: z.date(),
|
||||
file: z.unknown()
|
||||
}).strict();
|
||||
37
packages/db/shared/schemas/variants/pure/CloudFolder.pure.d.ts
vendored
Normal file
37
packages/db/shared/schemas/variants/pure/CloudFolder.pure.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import * as z from 'zod';
|
||||
export declare const CloudFolderModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
name: z.ZodString;
|
||||
parentId: z.ZodNullable<z.ZodNumber>;
|
||||
parent: z.ZodNullable<z.ZodUnknown>;
|
||||
children: z.ZodArray<z.ZodUnknown, "many">;
|
||||
user: z.ZodUnknown;
|
||||
files: z.ZodArray<z.ZodUnknown, "many">;
|
||||
createdAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
name: string;
|
||||
updatedAt: Date;
|
||||
children: unknown[];
|
||||
files: unknown[];
|
||||
parentId: number | null;
|
||||
user?: unknown;
|
||||
parent?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
name: string;
|
||||
updatedAt: Date;
|
||||
children: unknown[];
|
||||
files: unknown[];
|
||||
parentId: number | null;
|
||||
user?: unknown;
|
||||
parent?: unknown;
|
||||
}>;
|
||||
export type CloudFolderPureType = z.infer<typeof CloudFolderModelSchema>;
|
||||
//# sourceMappingURL=CloudFolder.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CloudFolder.pure.d.ts","sourceRoot":"","sources":["CloudFolder.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
||||
50
packages/db/shared/schemas/variants/pure/CloudFolder.pure.js
Normal file
50
packages/db/shared/schemas/variants/pure/CloudFolder.pure.js
Normal file
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CloudFolderModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.CloudFolderModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().nullable(),
|
||||
parent: z.unknown().nullable(),
|
||||
children: z.array(z.unknown()),
|
||||
user: z.unknown(),
|
||||
files: z.array(z.unknown()),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date()
|
||||
}).strict();
|
||||
43
packages/db/shared/schemas/variants/pure/Communication.pure.d.ts
vendored
Normal file
43
packages/db/shared/schemas/variants/pure/Communication.pure.d.ts
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import * as z from 'zod';
|
||||
export declare const CommunicationModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
patientId: z.ZodNumber;
|
||||
userId: z.ZodNullable<z.ZodNumber>;
|
||||
channel: z.ZodEnum<["sms", "voice"]>;
|
||||
direction: z.ZodEnum<["outbound", "inbound"]>;
|
||||
status: z.ZodEnum<["queued", "sent", "delivered", "failed", "completed", "busy", "no_answer"]>;
|
||||
body: z.ZodNullable<z.ZodString>;
|
||||
callDuration: z.ZodNullable<z.ZodNumber>;
|
||||
twilioSid: z.ZodNullable<z.ZodString>;
|
||||
createdAt: z.ZodDate;
|
||||
patient: z.ZodUnknown;
|
||||
user: z.ZodNullable<z.ZodUnknown>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "queued" | "sent" | "delivered" | "failed" | "completed" | "busy" | "no_answer";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number | null;
|
||||
patientId: number;
|
||||
channel: "sms" | "voice";
|
||||
direction: "outbound" | "inbound";
|
||||
body: string | null;
|
||||
callDuration: number | null;
|
||||
twilioSid: string | null;
|
||||
user?: unknown;
|
||||
patient?: unknown;
|
||||
}, {
|
||||
status: "queued" | "sent" | "delivered" | "failed" | "completed" | "busy" | "no_answer";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number | null;
|
||||
patientId: number;
|
||||
channel: "sms" | "voice";
|
||||
direction: "outbound" | "inbound";
|
||||
body: string | null;
|
||||
callDuration: number | null;
|
||||
twilioSid: string | null;
|
||||
user?: unknown;
|
||||
patient?: unknown;
|
||||
}>;
|
||||
export type CommunicationPureType = z.infer<typeof CommunicationModelSchema>;
|
||||
//# sourceMappingURL=Communication.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Communication.pure.d.ts","sourceRoot":"","sources":["Communication.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1B,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
||||
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CommunicationModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const CommunicationChannel_schema_1 = require("../../enums/CommunicationChannel.schema");
|
||||
const CommunicationDirection_schema_1 = require("../../enums/CommunicationDirection.schema");
|
||||
const CommunicationStatus_schema_1 = require("../../enums/CommunicationStatus.schema");
|
||||
// prettier-ignore
|
||||
exports.CommunicationModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int().nullable(),
|
||||
channel: CommunicationChannel_schema_1.CommunicationChannelSchema,
|
||||
direction: CommunicationDirection_schema_1.CommunicationDirectionSchema,
|
||||
status: CommunicationStatus_schema_1.CommunicationStatusSchema,
|
||||
body: z.string().nullable(),
|
||||
callDuration: z.number().int().nullable(),
|
||||
twilioSid: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
patient: z.unknown(),
|
||||
user: z.unknown().nullable()
|
||||
}).strict();
|
||||
28
packages/db/shared/schemas/variants/pure/CronJobLog.pure.d.ts
vendored
Normal file
28
packages/db/shared/schemas/variants/pure/CronJobLog.pure.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import * as z from 'zod';
|
||||
export declare const CronJobLogModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
jobName: z.ZodString;
|
||||
status: z.ZodString;
|
||||
startedAt: z.ZodDate;
|
||||
completedAt: z.ZodNullable<z.ZodDate>;
|
||||
durationMs: z.ZodNullable<z.ZodNumber>;
|
||||
errorMessage: z.ZodNullable<z.ZodString>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: string;
|
||||
id: number;
|
||||
jobName: string;
|
||||
startedAt: Date;
|
||||
completedAt: Date | null;
|
||||
durationMs: number | null;
|
||||
errorMessage: string | null;
|
||||
}, {
|
||||
status: string;
|
||||
id: number;
|
||||
jobName: string;
|
||||
startedAt: Date;
|
||||
completedAt: Date | null;
|
||||
durationMs: number | null;
|
||||
errorMessage: string | null;
|
||||
}>;
|
||||
export type CronJobLogPureType = z.infer<typeof CronJobLogModelSchema>;
|
||||
//# sourceMappingURL=CronJobLog.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CronJobLog.pure.d.ts","sourceRoot":"","sources":["CronJobLog.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
||||
47
packages/db/shared/schemas/variants/pure/CronJobLog.pure.js
Normal file
47
packages/db/shared/schemas/variants/pure/CronJobLog.pure.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CronJobLogModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.CronJobLogModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
jobName: z.string(),
|
||||
status: z.string(),
|
||||
startedAt: z.date(),
|
||||
completedAt: z.date().nullable(),
|
||||
durationMs: z.number().int().nullable(),
|
||||
errorMessage: z.string().nullable()
|
||||
}).strict();
|
||||
19
packages/db/shared/schemas/variants/pure/DatabaseBackup.pure.d.ts
vendored
Normal file
19
packages/db/shared/schemas/variants/pure/DatabaseBackup.pure.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import * as z from 'zod';
|
||||
export declare const DatabaseBackupModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
createdAt: z.ZodDate;
|
||||
user: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
user?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type DatabaseBackupPureType = z.infer<typeof DatabaseBackupModelSchema>;
|
||||
//# sourceMappingURL=DatabaseBackup.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"DatabaseBackup.pure.d.ts","sourceRoot":"","sources":["DatabaseBackup.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAK3B,CAAC;AAEZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
||||
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DatabaseBackupModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.DatabaseBackupModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
25
packages/db/shared/schemas/variants/pure/InsuranceCredential.pure.d.ts
vendored
Normal file
25
packages/db/shared/schemas/variants/pure/InsuranceCredential.pure.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as z from 'zod';
|
||||
export declare const InsuranceCredentialModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
siteKey: z.ZodString;
|
||||
username: z.ZodString;
|
||||
password: z.ZodString;
|
||||
user: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
id: number;
|
||||
userId: number;
|
||||
siteKey: string;
|
||||
username: string;
|
||||
password: string;
|
||||
user?: unknown;
|
||||
}, {
|
||||
id: number;
|
||||
userId: number;
|
||||
siteKey: string;
|
||||
username: string;
|
||||
password: string;
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type InsuranceCredentialPureType = z.infer<typeof InsuranceCredentialModelSchema>;
|
||||
//# sourceMappingURL=InsuranceCredential.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"InsuranceCredential.pure.d.ts","sourceRoot":"","sources":["InsuranceCredential.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAEZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
||||
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InsuranceCredentialModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.InsuranceCredentialModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
siteKey: z.string(),
|
||||
username: z.string(),
|
||||
password: z.string(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
28
packages/db/shared/schemas/variants/pure/Notification.pure.d.ts
vendored
Normal file
28
packages/db/shared/schemas/variants/pure/Notification.pure.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import * as z from 'zod';
|
||||
export declare const NotificationModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
type: z.ZodEnum<["BACKUP", "CLAIM", "PAYMENT", "ETC"]>;
|
||||
message: z.ZodString;
|
||||
createdAt: z.ZodDate;
|
||||
read: z.ZodBoolean;
|
||||
user: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
message: string;
|
||||
type: "BACKUP" | "CLAIM" | "PAYMENT" | "ETC";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
read: boolean;
|
||||
user?: unknown;
|
||||
}, {
|
||||
message: string;
|
||||
type: "BACKUP" | "CLAIM" | "PAYMENT" | "ETC";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
read: boolean;
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type NotificationPureType = z.infer<typeof NotificationModelSchema>;
|
||||
//# sourceMappingURL=Notification.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Notification.pure.d.ts","sourceRoot":"","sources":["Notification.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAQzB,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
||||
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NotificationModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const NotificationTypes_schema_1 = require("../../enums/NotificationTypes.schema");
|
||||
// prettier-ignore
|
||||
exports.NotificationModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
type: NotificationTypes_schema_1.NotificationTypesSchema,
|
||||
message: z.string(),
|
||||
createdAt: z.date(),
|
||||
read: z.boolean(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
25
packages/db/shared/schemas/variants/pure/NpiProvider.pure.d.ts
vendored
Normal file
25
packages/db/shared/schemas/variants/pure/NpiProvider.pure.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as z from 'zod';
|
||||
export declare const NpiProviderModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
npiNumber: z.ZodString;
|
||||
providerName: z.ZodString;
|
||||
createdAt: z.ZodDate;
|
||||
user: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
npiNumber: string;
|
||||
providerName: string;
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
user?: unknown;
|
||||
}, {
|
||||
npiNumber: string;
|
||||
providerName: string;
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type NpiProviderPureType = z.infer<typeof NpiProviderModelSchema>;
|
||||
//# sourceMappingURL=NpiProvider.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NpiProvider.pure.d.ts","sourceRoot":"","sources":["NpiProvider.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
||||
46
packages/db/shared/schemas/variants/pure/NpiProvider.pure.js
Normal file
46
packages/db/shared/schemas/variants/pure/NpiProvider.pure.js
Normal file
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NpiProviderModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.NpiProviderModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
npiNumber: z.string(),
|
||||
providerName: z.string(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown()
|
||||
}).strict();
|
||||
@@ -6,7 +6,9 @@ export const NpiProviderModelSchema = z.object({
|
||||
npiNumber: z.string(),
|
||||
providerName: z.string(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown()
|
||||
user: z.unknown(),
|
||||
claims: z.array(z.unknown()),
|
||||
appointmentProcedures: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
export type NpiProviderPureType = z.infer<typeof NpiProviderModelSchema>;
|
||||
|
||||
88
packages/db/shared/schemas/variants/pure/Patient.pure.d.ts
vendored
Normal file
88
packages/db/shared/schemas/variants/pure/Patient.pure.d.ts
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PatientModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
firstName: z.ZodString;
|
||||
lastName: z.ZodString;
|
||||
dateOfBirth: z.ZodNullable<z.ZodDate>;
|
||||
gender: z.ZodString;
|
||||
phone: z.ZodString;
|
||||
email: z.ZodNullable<z.ZodString>;
|
||||
address: z.ZodNullable<z.ZodString>;
|
||||
city: z.ZodNullable<z.ZodString>;
|
||||
zipCode: z.ZodNullable<z.ZodString>;
|
||||
insuranceProvider: z.ZodNullable<z.ZodString>;
|
||||
insuranceId: z.ZodNullable<z.ZodString>;
|
||||
groupNumber: z.ZodNullable<z.ZodString>;
|
||||
policyHolder: z.ZodNullable<z.ZodString>;
|
||||
allergies: z.ZodNullable<z.ZodString>;
|
||||
medicalConditions: z.ZodNullable<z.ZodString>;
|
||||
status: z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN", "PLAN_NOT_ACCEPTED"]>;
|
||||
userId: z.ZodNumber;
|
||||
createdAt: z.ZodDate;
|
||||
user: z.ZodUnknown;
|
||||
appointments: z.ZodArray<z.ZodUnknown, "many">;
|
||||
procedures: z.ZodArray<z.ZodUnknown, "many">;
|
||||
claims: z.ZodArray<z.ZodUnknown, "many">;
|
||||
groups: z.ZodArray<z.ZodUnknown, "many">;
|
||||
payment: z.ZodArray<z.ZodUnknown, "many">;
|
||||
communications: z.ZodArray<z.ZodUnknown, "many">;
|
||||
documents: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
procedures: unknown[];
|
||||
claims: unknown[];
|
||||
email: string | null;
|
||||
phone: string;
|
||||
appointments: unknown[];
|
||||
payment: unknown[];
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gender: string;
|
||||
address: string | null;
|
||||
city: string | null;
|
||||
zipCode: string | null;
|
||||
insuranceId: string | null;
|
||||
groupNumber: string | null;
|
||||
policyHolder: string | null;
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
groups: unknown[];
|
||||
documents: unknown[];
|
||||
communications: unknown[];
|
||||
user?: unknown;
|
||||
}, {
|
||||
status: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
procedures: unknown[];
|
||||
claims: unknown[];
|
||||
email: string | null;
|
||||
phone: string;
|
||||
appointments: unknown[];
|
||||
payment: unknown[];
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gender: string;
|
||||
address: string | null;
|
||||
city: string | null;
|
||||
zipCode: string | null;
|
||||
insuranceId: string | null;
|
||||
groupNumber: string | null;
|
||||
policyHolder: string | null;
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
groups: unknown[];
|
||||
documents: unknown[];
|
||||
communications: unknown[];
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type PatientPureType = z.infer<typeof PatientModelSchema>;
|
||||
//# sourceMappingURL=Patient.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Patient.pure.d.ts","sourceRoot":"","sources":["Patient.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BpB,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
||||
68
packages/db/shared/schemas/variants/pure/Patient.pure.js
Normal file
68
packages/db/shared/schemas/variants/pure/Patient.pure.js
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PatientModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const PatientStatus_schema_1 = require("../../enums/PatientStatus.schema");
|
||||
// prettier-ignore
|
||||
exports.PatientModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
firstName: z.string(),
|
||||
lastName: z.string(),
|
||||
dateOfBirth: z.date().nullable(),
|
||||
gender: z.string(),
|
||||
phone: z.string(),
|
||||
email: z.string().nullable(),
|
||||
address: z.string().nullable(),
|
||||
city: z.string().nullable(),
|
||||
zipCode: z.string().nullable(),
|
||||
insuranceProvider: z.string().nullable(),
|
||||
insuranceId: z.string().nullable(),
|
||||
groupNumber: z.string().nullable(),
|
||||
policyHolder: z.string().nullable(),
|
||||
allergies: z.string().nullable(),
|
||||
medicalConditions: z.string().nullable(),
|
||||
status: PatientStatus_schema_1.PatientStatusSchema,
|
||||
userId: z.number().int(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown(),
|
||||
appointments: z.array(z.unknown()),
|
||||
procedures: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown()),
|
||||
groups: z.array(z.unknown()),
|
||||
payment: z.array(z.unknown()),
|
||||
communications: z.array(z.unknown()),
|
||||
documents: z.array(z.unknown())
|
||||
}).strict();
|
||||
37
packages/db/shared/schemas/variants/pure/PatientDocument.pure.d.ts
vendored
Normal file
37
packages/db/shared/schemas/variants/pure/PatientDocument.pure.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PatientDocumentModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
patientId: z.ZodNumber;
|
||||
filename: z.ZodString;
|
||||
originalName: z.ZodString;
|
||||
mimeType: z.ZodString;
|
||||
fileSize: z.ZodBigInt;
|
||||
filePath: z.ZodString;
|
||||
uploadedAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
patient: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
id: number;
|
||||
filename: string;
|
||||
uploadedAt: Date;
|
||||
patientId: number;
|
||||
mimeType: string;
|
||||
updatedAt: Date;
|
||||
originalName: string;
|
||||
fileSize: bigint;
|
||||
filePath: string;
|
||||
patient?: unknown;
|
||||
}, {
|
||||
id: number;
|
||||
filename: string;
|
||||
uploadedAt: Date;
|
||||
patientId: number;
|
||||
mimeType: string;
|
||||
updatedAt: Date;
|
||||
originalName: string;
|
||||
fileSize: bigint;
|
||||
filePath: string;
|
||||
patient?: unknown;
|
||||
}>;
|
||||
export type PatientDocumentPureType = z.infer<typeof PatientDocumentModelSchema>;
|
||||
//# sourceMappingURL=PatientDocument.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PatientDocument.pure.d.ts","sourceRoot":"","sources":["PatientDocument.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
||||
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PatientDocumentModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.PatientDocumentModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
patientId: z.number().int(),
|
||||
filename: z.string(),
|
||||
originalName: z.string(),
|
||||
mimeType: z.string(),
|
||||
fileSize: z.bigint(),
|
||||
filePath: z.string(),
|
||||
uploadedAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
patient: z.unknown()
|
||||
}).strict();
|
||||
64
packages/db/shared/schemas/variants/pure/Payment.pure.d.ts
vendored
Normal file
64
packages/db/shared/schemas/variants/pure/Payment.pure.d.ts
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PaymentModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
claimId: z.ZodNullable<z.ZodNumber>;
|
||||
patientId: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
updatedById: z.ZodNullable<z.ZodNumber>;
|
||||
totalBilled: z.ZodNumber;
|
||||
totalPaid: z.ZodNumber;
|
||||
totalAdjusted: z.ZodNumber;
|
||||
totalDue: z.ZodNumber;
|
||||
status: z.ZodEnum<["PENDING", "PARTIALLY_PAID", "PAID", "OVERPAID", "DENIED", "VOID"]>;
|
||||
notes: z.ZodNullable<z.ZodString>;
|
||||
icn: z.ZodNullable<z.ZodString>;
|
||||
createdAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
claim: z.ZodNullable<z.ZodUnknown>;
|
||||
patient: z.ZodUnknown;
|
||||
updatedBy: z.ZodNullable<z.ZodUnknown>;
|
||||
serviceLineTransactions: z.ZodArray<z.ZodUnknown, "many">;
|
||||
serviceLines: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "PENDING" | "VOID" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
patientId: number;
|
||||
notes: string | null;
|
||||
claimId: number | null;
|
||||
totalBilled: number;
|
||||
totalPaid: number;
|
||||
totalAdjusted: number;
|
||||
totalDue: number;
|
||||
serviceLineTransactions: unknown[];
|
||||
icn: string | null;
|
||||
updatedAt: Date;
|
||||
serviceLines: unknown[];
|
||||
updatedById: number | null;
|
||||
patient?: unknown;
|
||||
claim?: unknown;
|
||||
updatedBy?: unknown;
|
||||
}, {
|
||||
status: "PENDING" | "VOID" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
patientId: number;
|
||||
notes: string | null;
|
||||
claimId: number | null;
|
||||
totalBilled: number;
|
||||
totalPaid: number;
|
||||
totalAdjusted: number;
|
||||
totalDue: number;
|
||||
serviceLineTransactions: unknown[];
|
||||
icn: string | null;
|
||||
updatedAt: Date;
|
||||
serviceLines: unknown[];
|
||||
updatedById: number | null;
|
||||
patient?: unknown;
|
||||
claim?: unknown;
|
||||
updatedBy?: unknown;
|
||||
}>;
|
||||
export type PaymentPureType = z.infer<typeof PaymentModelSchema>;
|
||||
//# sourceMappingURL=Payment.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Payment.pure.d.ts","sourceRoot":"","sources":["Payment.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBpB,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
||||
60
packages/db/shared/schemas/variants/pure/Payment.pure.js
Normal file
60
packages/db/shared/schemas/variants/pure/Payment.pure.js
Normal file
@@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PaymentModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const PaymentStatus_schema_1 = require("../../enums/PaymentStatus.schema");
|
||||
// prettier-ignore
|
||||
exports.PaymentModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
claimId: z.number().int().nullable(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
updatedById: z.number().int().nullable(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
totalDue: z.number(),
|
||||
status: PaymentStatus_schema_1.PaymentStatusSchema,
|
||||
notes: z.string().nullable(),
|
||||
icn: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
claim: z.unknown().nullable(),
|
||||
patient: z.unknown(),
|
||||
updatedBy: z.unknown().nullable(),
|
||||
serviceLineTransactions: z.array(z.unknown()),
|
||||
serviceLines: z.array(z.unknown())
|
||||
}).strict();
|
||||
25
packages/db/shared/schemas/variants/pure/PdfFile.pure.d.ts
vendored
Normal file
25
packages/db/shared/schemas/variants/pure/PdfFile.pure.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PdfFileModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
filename: z.ZodString;
|
||||
pdfData: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
||||
uploadedAt: z.ZodDate;
|
||||
groupId: z.ZodNumber;
|
||||
group: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
id: number;
|
||||
filename: string;
|
||||
pdfData: Uint8Array<ArrayBuffer>;
|
||||
uploadedAt: Date;
|
||||
groupId: number;
|
||||
group?: unknown;
|
||||
}, {
|
||||
id: number;
|
||||
filename: string;
|
||||
pdfData: Uint8Array<ArrayBuffer>;
|
||||
uploadedAt: Date;
|
||||
groupId: number;
|
||||
group?: unknown;
|
||||
}>;
|
||||
export type PdfFilePureType = z.infer<typeof PdfFileModelSchema>;
|
||||
//# sourceMappingURL=PdfFile.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PdfFile.pure.d.ts","sourceRoot":"","sources":["PdfFile.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAOpB,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
||||
46
packages/db/shared/schemas/variants/pure/PdfFile.pure.js
Normal file
46
packages/db/shared/schemas/variants/pure/PdfFile.pure.js
Normal file
@@ -0,0 +1,46 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PdfFileModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.PdfFileModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
filename: z.string(),
|
||||
pdfData: z.instanceof(Uint8Array),
|
||||
uploadedAt: z.date(),
|
||||
groupId: z.number().int(),
|
||||
group: z.unknown()
|
||||
}).strict();
|
||||
28
packages/db/shared/schemas/variants/pure/PdfGroup.pure.d.ts
vendored
Normal file
28
packages/db/shared/schemas/variants/pure/PdfGroup.pure.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PdfGroupModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
title: z.ZodString;
|
||||
titleKey: z.ZodEnum<["INSURANCE_CLAIM", "INSURANCE_CLAIM_PREAUTH", "ELIGIBILITY_STATUS", "CLAIM_STATUS", "OTHER"]>;
|
||||
createdAt: z.ZodDate;
|
||||
patientId: z.ZodNumber;
|
||||
patient: z.ZodUnknown;
|
||||
pdfs: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
title: string;
|
||||
titleKey: "INSURANCE_CLAIM" | "INSURANCE_CLAIM_PREAUTH" | "ELIGIBILITY_STATUS" | "CLAIM_STATUS" | "OTHER";
|
||||
pdfs: unknown[];
|
||||
patientId: number;
|
||||
patient?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
title: string;
|
||||
titleKey: "INSURANCE_CLAIM" | "INSURANCE_CLAIM_PREAUTH" | "ELIGIBILITY_STATUS" | "CLAIM_STATUS" | "OTHER";
|
||||
pdfs: unknown[];
|
||||
patientId: number;
|
||||
patient?: unknown;
|
||||
}>;
|
||||
export type PdfGroupPureType = z.infer<typeof PdfGroupModelSchema>;
|
||||
//# sourceMappingURL=PdfGroup.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PdfGroup.pure.d.ts","sourceRoot":"","sources":["PdfGroup.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
||||
48
packages/db/shared/schemas/variants/pure/PdfGroup.pure.js
Normal file
48
packages/db/shared/schemas/variants/pure/PdfGroup.pure.js
Normal file
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PdfGroupModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const PdfTitleKey_schema_1 = require("../../enums/PdfTitleKey.schema");
|
||||
// prettier-ignore
|
||||
exports.PdfGroupModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
title: z.string(),
|
||||
titleKey: PdfTitleKey_schema_1.PdfTitleKeySchema,
|
||||
createdAt: z.date(),
|
||||
patientId: z.number().int(),
|
||||
patient: z.unknown(),
|
||||
pdfs: z.array(z.unknown())
|
||||
}).strict();
|
||||
58
packages/db/shared/schemas/variants/pure/ServiceLine.pure.d.ts
vendored
Normal file
58
packages/db/shared/schemas/variants/pure/ServiceLine.pure.d.ts
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
import * as z from 'zod';
|
||||
export declare const ServiceLineModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
claimId: z.ZodNullable<z.ZodNumber>;
|
||||
paymentId: z.ZodNullable<z.ZodNumber>;
|
||||
procedureCode: z.ZodString;
|
||||
procedureDate: z.ZodDate;
|
||||
quad: z.ZodNullable<z.ZodString>;
|
||||
arch: z.ZodNullable<z.ZodString>;
|
||||
toothNumber: z.ZodNullable<z.ZodString>;
|
||||
toothSurface: z.ZodNullable<z.ZodString>;
|
||||
totalBilled: z.ZodNumber;
|
||||
totalPaid: z.ZodNumber;
|
||||
totalAdjusted: z.ZodNumber;
|
||||
totalDue: z.ZodNumber;
|
||||
status: z.ZodEnum<["PENDING", "PARTIALLY_PAID", "PAID", "UNPAID", "ADJUSTED", "OVERPAID", "DENIED"]>;
|
||||
claim: z.ZodNullable<z.ZodUnknown>;
|
||||
payment: z.ZodNullable<z.ZodUnknown>;
|
||||
serviceLineTransactions: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "PENDING" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED" | "UNPAID" | "ADJUSTED";
|
||||
id: number;
|
||||
procedureCode: string;
|
||||
toothNumber: string | null;
|
||||
toothSurface: string | null;
|
||||
claimId: number | null;
|
||||
paymentId: number | null;
|
||||
procedureDate: Date;
|
||||
quad: string | null;
|
||||
arch: string | null;
|
||||
totalBilled: number;
|
||||
totalPaid: number;
|
||||
totalAdjusted: number;
|
||||
totalDue: number;
|
||||
serviceLineTransactions: unknown[];
|
||||
claim?: unknown;
|
||||
payment?: unknown;
|
||||
}, {
|
||||
status: "PENDING" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED" | "UNPAID" | "ADJUSTED";
|
||||
id: number;
|
||||
procedureCode: string;
|
||||
toothNumber: string | null;
|
||||
toothSurface: string | null;
|
||||
claimId: number | null;
|
||||
paymentId: number | null;
|
||||
procedureDate: Date;
|
||||
quad: string | null;
|
||||
arch: string | null;
|
||||
totalBilled: number;
|
||||
totalPaid: number;
|
||||
totalAdjusted: number;
|
||||
totalDue: number;
|
||||
serviceLineTransactions: unknown[];
|
||||
claim?: unknown;
|
||||
payment?: unknown;
|
||||
}>;
|
||||
export type ServiceLinePureType = z.infer<typeof ServiceLineModelSchema>;
|
||||
//# sourceMappingURL=ServiceLine.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ServiceLine.pure.d.ts","sourceRoot":"","sources":["ServiceLine.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBxB,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
||||
58
packages/db/shared/schemas/variants/pure/ServiceLine.pure.js
Normal file
58
packages/db/shared/schemas/variants/pure/ServiceLine.pure.js
Normal file
@@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ServiceLineModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const ServiceLineStatus_schema_1 = require("../../enums/ServiceLineStatus.schema");
|
||||
// prettier-ignore
|
||||
exports.ServiceLineModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
claimId: z.number().int().nullable(),
|
||||
paymentId: z.number().int().nullable(),
|
||||
procedureCode: z.string(),
|
||||
procedureDate: z.date(),
|
||||
quad: z.string().nullable(),
|
||||
arch: z.string().nullable(),
|
||||
toothNumber: z.string().nullable(),
|
||||
toothSurface: z.string().nullable(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
totalDue: z.number(),
|
||||
status: ServiceLineStatus_schema_1.ServiceLineStatusSchema,
|
||||
claim: z.unknown().nullable(),
|
||||
payment: z.unknown().nullable(),
|
||||
serviceLineTransactions: z.array(z.unknown())
|
||||
}).strict();
|
||||
46
packages/db/shared/schemas/variants/pure/ServiceLineTransaction.pure.d.ts
vendored
Normal file
46
packages/db/shared/schemas/variants/pure/ServiceLineTransaction.pure.d.ts
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import * as z from 'zod';
|
||||
export declare const ServiceLineTransactionModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
paymentId: z.ZodNumber;
|
||||
serviceLineId: z.ZodNumber;
|
||||
transactionId: z.ZodNullable<z.ZodString>;
|
||||
paidAmount: z.ZodNumber;
|
||||
adjustedAmount: z.ZodNumber;
|
||||
method: z.ZodEnum<["EFT", "CHECK", "CASH", "CARD", "OTHER"]>;
|
||||
receivedDate: z.ZodDate;
|
||||
payerName: z.ZodNullable<z.ZodString>;
|
||||
notes: z.ZodNullable<z.ZodString>;
|
||||
createdAt: z.ZodDate;
|
||||
payment: z.ZodUnknown;
|
||||
serviceLine: z.ZodUnknown;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
notes: string | null;
|
||||
paymentId: number;
|
||||
transactionId: string | null;
|
||||
paidAmount: number;
|
||||
adjustedAmount: number;
|
||||
method: "OTHER" | "EFT" | "CHECK" | "CASH" | "CARD";
|
||||
receivedDate: Date;
|
||||
payerName: string | null;
|
||||
serviceLineId: number;
|
||||
payment?: unknown;
|
||||
serviceLine?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
notes: string | null;
|
||||
paymentId: number;
|
||||
transactionId: string | null;
|
||||
paidAmount: number;
|
||||
adjustedAmount: number;
|
||||
method: "OTHER" | "EFT" | "CHECK" | "CASH" | "CARD";
|
||||
receivedDate: Date;
|
||||
payerName: string | null;
|
||||
serviceLineId: number;
|
||||
payment?: unknown;
|
||||
serviceLine?: unknown;
|
||||
}>;
|
||||
export type ServiceLineTransactionPureType = z.infer<typeof ServiceLineTransactionModelSchema>;
|
||||
//# sourceMappingURL=ServiceLineTransaction.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ServiceLineTransaction.pure.d.ts","sourceRoot":"","sources":["ServiceLineTransaction.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcnC,CAAC;AAEZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
||||
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ServiceLineTransactionModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const PaymentMethod_schema_1 = require("../../enums/PaymentMethod.schema");
|
||||
// prettier-ignore
|
||||
exports.ServiceLineTransactionModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
paymentId: z.number().int(),
|
||||
serviceLineId: z.number().int(),
|
||||
transactionId: z.string().nullable(),
|
||||
paidAmount: z.number(),
|
||||
adjustedAmount: z.number(),
|
||||
method: PaymentMethod_schema_1.PaymentMethodSchema,
|
||||
receivedDate: z.date(),
|
||||
payerName: z.string().nullable(),
|
||||
notes: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
payment: z.unknown(),
|
||||
serviceLine: z.unknown()
|
||||
}).strict();
|
||||
37
packages/db/shared/schemas/variants/pure/Staff.pure.d.ts
vendored
Normal file
37
packages/db/shared/schemas/variants/pure/Staff.pure.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import * as z from 'zod';
|
||||
export declare const StaffModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
name: z.ZodString;
|
||||
email: z.ZodNullable<z.ZodString>;
|
||||
role: z.ZodString;
|
||||
phone: z.ZodNullable<z.ZodString>;
|
||||
createdAt: z.ZodDate;
|
||||
user: z.ZodNullable<z.ZodUnknown>;
|
||||
appointments: z.ZodArray<z.ZodUnknown, "many">;
|
||||
claims: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
claims: unknown[];
|
||||
name: string;
|
||||
email: string | null;
|
||||
role: string;
|
||||
phone: string | null;
|
||||
appointments: unknown[];
|
||||
user?: unknown;
|
||||
}, {
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
claims: unknown[];
|
||||
name: string;
|
||||
email: string | null;
|
||||
role: string;
|
||||
phone: string | null;
|
||||
appointments: unknown[];
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type StaffPureType = z.infer<typeof StaffModelSchema>;
|
||||
//# sourceMappingURL=Staff.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Staff.pure.d.ts","sourceRoot":"","sources":["Staff.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
||||
50
packages/db/shared/schemas/variants/pure/Staff.pure.js
Normal file
50
packages/db/shared/schemas/variants/pure/Staff.pure.js
Normal file
@@ -0,0 +1,50 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StaffModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.StaffModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
email: z.string().nullable(),
|
||||
role: z.string(),
|
||||
phone: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown().nullable(),
|
||||
appointments: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown())
|
||||
}).strict();
|
||||
61
packages/db/shared/schemas/variants/pure/User.pure.d.ts
vendored
Normal file
61
packages/db/shared/schemas/variants/pure/User.pure.d.ts
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
import * as z from 'zod';
|
||||
export declare const UserModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
username: z.ZodString;
|
||||
password: z.ZodString;
|
||||
autoBackupEnabled: z.ZodBoolean;
|
||||
usbBackupEnabled: z.ZodBoolean;
|
||||
patients: z.ZodArray<z.ZodUnknown, "many">;
|
||||
appointments: z.ZodArray<z.ZodUnknown, "many">;
|
||||
staff: z.ZodArray<z.ZodUnknown, "many">;
|
||||
npiProviders: z.ZodArray<z.ZodUnknown, "many">;
|
||||
claims: z.ZodArray<z.ZodUnknown, "many">;
|
||||
insuranceCredentials: z.ZodArray<z.ZodUnknown, "many">;
|
||||
updatedPayments: z.ZodArray<z.ZodUnknown, "many">;
|
||||
backups: z.ZodArray<z.ZodUnknown, "many">;
|
||||
backupDestinations: z.ZodArray<z.ZodUnknown, "many">;
|
||||
notifications: z.ZodArray<z.ZodUnknown, "many">;
|
||||
cloudFolders: z.ZodArray<z.ZodUnknown, "many">;
|
||||
cloudFiles: z.ZodArray<z.ZodUnknown, "many">;
|
||||
communications: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
id: number;
|
||||
staff: unknown[];
|
||||
claims: unknown[];
|
||||
appointments: unknown[];
|
||||
username: string;
|
||||
password: string;
|
||||
communications: unknown[];
|
||||
autoBackupEnabled: boolean;
|
||||
usbBackupEnabled: boolean;
|
||||
patients: unknown[];
|
||||
npiProviders: unknown[];
|
||||
insuranceCredentials: unknown[];
|
||||
updatedPayments: unknown[];
|
||||
backups: unknown[];
|
||||
backupDestinations: unknown[];
|
||||
notifications: unknown[];
|
||||
cloudFolders: unknown[];
|
||||
cloudFiles: unknown[];
|
||||
}, {
|
||||
id: number;
|
||||
staff: unknown[];
|
||||
claims: unknown[];
|
||||
appointments: unknown[];
|
||||
username: string;
|
||||
password: string;
|
||||
communications: unknown[];
|
||||
autoBackupEnabled: boolean;
|
||||
usbBackupEnabled: boolean;
|
||||
patients: unknown[];
|
||||
npiProviders: unknown[];
|
||||
insuranceCredentials: unknown[];
|
||||
updatedPayments: unknown[];
|
||||
backups: unknown[];
|
||||
backupDestinations: unknown[];
|
||||
notifications: unknown[];
|
||||
cloudFolders: unknown[];
|
||||
cloudFiles: unknown[];
|
||||
}>;
|
||||
export type UserPureType = z.infer<typeof UserModelSchema>;
|
||||
//# sourceMappingURL=User.pure.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"User.pure.d.ts","sourceRoot":"","sources":["User.pure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjB,CAAC;AAEZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
||||
58
packages/db/shared/schemas/variants/pure/User.pure.js
Normal file
58
packages/db/shared/schemas/variants/pure/User.pure.js
Normal file
@@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserModelSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
// prettier-ignore
|
||||
exports.UserModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
username: z.string(),
|
||||
password: z.string(),
|
||||
autoBackupEnabled: z.boolean(),
|
||||
usbBackupEnabled: z.boolean(),
|
||||
patients: z.array(z.unknown()),
|
||||
appointments: z.array(z.unknown()),
|
||||
staff: z.array(z.unknown()),
|
||||
npiProviders: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown()),
|
||||
insuranceCredentials: z.array(z.unknown()),
|
||||
updatedPayments: z.array(z.unknown()),
|
||||
backups: z.array(z.unknown()),
|
||||
backupDestinations: z.array(z.unknown()),
|
||||
notifications: z.array(z.unknown()),
|
||||
cloudFolders: z.array(z.unknown()),
|
||||
cloudFiles: z.array(z.unknown()),
|
||||
communications: z.array(z.unknown())
|
||||
}).strict();
|
||||
28
packages/db/shared/schemas/variants/pure/index.d.ts
vendored
Normal file
28
packages/db/shared/schemas/variants/pure/index.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Pure Variant Schemas
|
||||
* Auto-generated - do not edit manually
|
||||
*/
|
||||
export { UserModelSchema } from './User.pure';
|
||||
export { PatientModelSchema } from './Patient.pure';
|
||||
export { AppointmentModelSchema } from './Appointment.pure';
|
||||
export { StaffModelSchema } from './Staff.pure';
|
||||
export { NpiProviderModelSchema } from './NpiProvider.pure';
|
||||
export { AppointmentProcedureModelSchema } from './AppointmentProcedure.pure';
|
||||
export { ClaimModelSchema } from './Claim.pure';
|
||||
export { ServiceLineModelSchema } from './ServiceLine.pure';
|
||||
export { ClaimFileModelSchema } from './ClaimFile.pure';
|
||||
export { InsuranceCredentialModelSchema } from './InsuranceCredential.pure';
|
||||
export { PdfGroupModelSchema } from './PdfGroup.pure';
|
||||
export { PdfFileModelSchema } from './PdfFile.pure';
|
||||
export { PaymentModelSchema } from './Payment.pure';
|
||||
export { ServiceLineTransactionModelSchema } from './ServiceLineTransaction.pure';
|
||||
export { DatabaseBackupModelSchema } from './DatabaseBackup.pure';
|
||||
export { BackupDestinationModelSchema } from './BackupDestination.pure';
|
||||
export { NotificationModelSchema } from './Notification.pure';
|
||||
export { CronJobLogModelSchema } from './CronJobLog.pure';
|
||||
export { CloudFolderModelSchema } from './CloudFolder.pure';
|
||||
export { CloudFileModelSchema } from './CloudFile.pure';
|
||||
export { CloudFileChunkModelSchema } from './CloudFileChunk.pure';
|
||||
export { CommunicationModelSchema } from './Communication.pure';
|
||||
export { PatientDocumentModelSchema } from './PatientDocument.pure';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
packages/db/shared/schemas/variants/pure/index.d.ts.map
Normal file
1
packages/db/shared/schemas/variants/pure/index.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC"}
|
||||
53
packages/db/shared/schemas/variants/pure/index.js
Normal file
53
packages/db/shared/schemas/variants/pure/index.js
Normal file
@@ -0,0 +1,53 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Pure Variant Schemas
|
||||
* Auto-generated - do not edit manually
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PatientDocumentModelSchema = exports.CommunicationModelSchema = exports.CloudFileChunkModelSchema = exports.CloudFileModelSchema = exports.CloudFolderModelSchema = exports.CronJobLogModelSchema = exports.NotificationModelSchema = exports.BackupDestinationModelSchema = exports.DatabaseBackupModelSchema = exports.ServiceLineTransactionModelSchema = exports.PaymentModelSchema = exports.PdfFileModelSchema = exports.PdfGroupModelSchema = exports.InsuranceCredentialModelSchema = exports.ClaimFileModelSchema = exports.ServiceLineModelSchema = exports.ClaimModelSchema = exports.AppointmentProcedureModelSchema = exports.NpiProviderModelSchema = exports.StaffModelSchema = exports.AppointmentModelSchema = exports.PatientModelSchema = exports.UserModelSchema = void 0;
|
||||
var User_pure_1 = require("./User.pure");
|
||||
Object.defineProperty(exports, "UserModelSchema", { enumerable: true, get: function () { return User_pure_1.UserModelSchema; } });
|
||||
var Patient_pure_1 = require("./Patient.pure");
|
||||
Object.defineProperty(exports, "PatientModelSchema", { enumerable: true, get: function () { return Patient_pure_1.PatientModelSchema; } });
|
||||
var Appointment_pure_1 = require("./Appointment.pure");
|
||||
Object.defineProperty(exports, "AppointmentModelSchema", { enumerable: true, get: function () { return Appointment_pure_1.AppointmentModelSchema; } });
|
||||
var Staff_pure_1 = require("./Staff.pure");
|
||||
Object.defineProperty(exports, "StaffModelSchema", { enumerable: true, get: function () { return Staff_pure_1.StaffModelSchema; } });
|
||||
var NpiProvider_pure_1 = require("./NpiProvider.pure");
|
||||
Object.defineProperty(exports, "NpiProviderModelSchema", { enumerable: true, get: function () { return NpiProvider_pure_1.NpiProviderModelSchema; } });
|
||||
var AppointmentProcedure_pure_1 = require("./AppointmentProcedure.pure");
|
||||
Object.defineProperty(exports, "AppointmentProcedureModelSchema", { enumerable: true, get: function () { return AppointmentProcedure_pure_1.AppointmentProcedureModelSchema; } });
|
||||
var Claim_pure_1 = require("./Claim.pure");
|
||||
Object.defineProperty(exports, "ClaimModelSchema", { enumerable: true, get: function () { return Claim_pure_1.ClaimModelSchema; } });
|
||||
var ServiceLine_pure_1 = require("./ServiceLine.pure");
|
||||
Object.defineProperty(exports, "ServiceLineModelSchema", { enumerable: true, get: function () { return ServiceLine_pure_1.ServiceLineModelSchema; } });
|
||||
var ClaimFile_pure_1 = require("./ClaimFile.pure");
|
||||
Object.defineProperty(exports, "ClaimFileModelSchema", { enumerable: true, get: function () { return ClaimFile_pure_1.ClaimFileModelSchema; } });
|
||||
var InsuranceCredential_pure_1 = require("./InsuranceCredential.pure");
|
||||
Object.defineProperty(exports, "InsuranceCredentialModelSchema", { enumerable: true, get: function () { return InsuranceCredential_pure_1.InsuranceCredentialModelSchema; } });
|
||||
var PdfGroup_pure_1 = require("./PdfGroup.pure");
|
||||
Object.defineProperty(exports, "PdfGroupModelSchema", { enumerable: true, get: function () { return PdfGroup_pure_1.PdfGroupModelSchema; } });
|
||||
var PdfFile_pure_1 = require("./PdfFile.pure");
|
||||
Object.defineProperty(exports, "PdfFileModelSchema", { enumerable: true, get: function () { return PdfFile_pure_1.PdfFileModelSchema; } });
|
||||
var Payment_pure_1 = require("./Payment.pure");
|
||||
Object.defineProperty(exports, "PaymentModelSchema", { enumerable: true, get: function () { return Payment_pure_1.PaymentModelSchema; } });
|
||||
var ServiceLineTransaction_pure_1 = require("./ServiceLineTransaction.pure");
|
||||
Object.defineProperty(exports, "ServiceLineTransactionModelSchema", { enumerable: true, get: function () { return ServiceLineTransaction_pure_1.ServiceLineTransactionModelSchema; } });
|
||||
var DatabaseBackup_pure_1 = require("./DatabaseBackup.pure");
|
||||
Object.defineProperty(exports, "DatabaseBackupModelSchema", { enumerable: true, get: function () { return DatabaseBackup_pure_1.DatabaseBackupModelSchema; } });
|
||||
var BackupDestination_pure_1 = require("./BackupDestination.pure");
|
||||
Object.defineProperty(exports, "BackupDestinationModelSchema", { enumerable: true, get: function () { return BackupDestination_pure_1.BackupDestinationModelSchema; } });
|
||||
var Notification_pure_1 = require("./Notification.pure");
|
||||
Object.defineProperty(exports, "NotificationModelSchema", { enumerable: true, get: function () { return Notification_pure_1.NotificationModelSchema; } });
|
||||
var CronJobLog_pure_1 = require("./CronJobLog.pure");
|
||||
Object.defineProperty(exports, "CronJobLogModelSchema", { enumerable: true, get: function () { return CronJobLog_pure_1.CronJobLogModelSchema; } });
|
||||
var CloudFolder_pure_1 = require("./CloudFolder.pure");
|
||||
Object.defineProperty(exports, "CloudFolderModelSchema", { enumerable: true, get: function () { return CloudFolder_pure_1.CloudFolderModelSchema; } });
|
||||
var CloudFile_pure_1 = require("./CloudFile.pure");
|
||||
Object.defineProperty(exports, "CloudFileModelSchema", { enumerable: true, get: function () { return CloudFile_pure_1.CloudFileModelSchema; } });
|
||||
var CloudFileChunk_pure_1 = require("./CloudFileChunk.pure");
|
||||
Object.defineProperty(exports, "CloudFileChunkModelSchema", { enumerable: true, get: function () { return CloudFileChunk_pure_1.CloudFileChunkModelSchema; } });
|
||||
var Communication_pure_1 = require("./Communication.pure");
|
||||
Object.defineProperty(exports, "CommunicationModelSchema", { enumerable: true, get: function () { return Communication_pure_1.CommunicationModelSchema; } });
|
||||
var PatientDocument_pure_1 = require("./PatientDocument.pure");
|
||||
Object.defineProperty(exports, "PatientDocumentModelSchema", { enumerable: true, get: function () { return PatientDocument_pure_1.PatientDocumentModelSchema; } });
|
||||
Reference in New Issue
Block a user