- Backend insurance ID check now accepts letters + digits (BCBS IDs have a letter prefix), matching the frontend schema; create route validates the normalized body - Patient.state column (default "MA") with State select on the patient form; ADA claim form uses the patient's state instead of the office's - Rebuild stale packages/db compiled .js so the runtime schemas include new fields (state, office billing NPI fields, Telnyx settings) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
5.0 KiB
JavaScript
71 lines
5.0 KiB
JavaScript
"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.TelnyxSettingsFindFirstOrThrowZodSchema = exports.TelnyxSettingsFindFirstOrThrowSchema = exports.TelnyxSettingsFindFirstOrThrowSelectZodSchema = exports.TelnyxSettingsFindFirstOrThrowSelectSchema = void 0;
|
|
const z = __importStar(require("zod"));
|
|
const TelnyxSettingsInclude_schema_1 = require("./objects/TelnyxSettingsInclude.schema");
|
|
const TelnyxSettingsOrderByWithRelationInput_schema_1 = require("./objects/TelnyxSettingsOrderByWithRelationInput.schema");
|
|
const TelnyxSettingsWhereInput_schema_1 = require("./objects/TelnyxSettingsWhereInput.schema");
|
|
const TelnyxSettingsWhereUniqueInput_schema_1 = require("./objects/TelnyxSettingsWhereUniqueInput.schema");
|
|
const TelnyxSettingsScalarFieldEnum_schema_1 = require("./enums/TelnyxSettingsScalarFieldEnum.schema");
|
|
// Select schema needs to be in file to prevent circular imports
|
|
//------------------------------------------------------
|
|
exports.TelnyxSettingsFindFirstOrThrowSelectSchema = z.object({
|
|
id: z.boolean().optional(),
|
|
userId: z.boolean().optional(),
|
|
apiKey: z.boolean().optional(),
|
|
accountSid: z.boolean().optional(),
|
|
phoneNumber: z.boolean().optional(),
|
|
texmlApplicationId: z.boolean().optional(),
|
|
messagingProfileId: z.boolean().optional(),
|
|
webhookPublicKey: z.boolean().optional(),
|
|
greetingMessage: z.boolean().optional(),
|
|
user: z.boolean().optional()
|
|
}).strict();
|
|
exports.TelnyxSettingsFindFirstOrThrowSelectZodSchema = z.object({
|
|
id: z.boolean().optional(),
|
|
userId: z.boolean().optional(),
|
|
apiKey: z.boolean().optional(),
|
|
accountSid: z.boolean().optional(),
|
|
phoneNumber: z.boolean().optional(),
|
|
texmlApplicationId: z.boolean().optional(),
|
|
messagingProfileId: z.boolean().optional(),
|
|
webhookPublicKey: z.boolean().optional(),
|
|
greetingMessage: z.boolean().optional(),
|
|
user: z.boolean().optional()
|
|
}).strict();
|
|
exports.TelnyxSettingsFindFirstOrThrowSchema = z.object({ select: exports.TelnyxSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => TelnyxSettingsInclude_schema_1.TelnyxSettingsIncludeObjectSchema.optional()), orderBy: z.union([TelnyxSettingsOrderByWithRelationInput_schema_1.TelnyxSettingsOrderByWithRelationInputObjectSchema, TelnyxSettingsOrderByWithRelationInput_schema_1.TelnyxSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TelnyxSettingsWhereInput_schema_1.TelnyxSettingsWhereInputObjectSchema.optional(), cursor: TelnyxSettingsWhereUniqueInput_schema_1.TelnyxSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TelnyxSettingsScalarFieldEnum_schema_1.TelnyxSettingsScalarFieldEnumSchema, TelnyxSettingsScalarFieldEnum_schema_1.TelnyxSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
|
exports.TelnyxSettingsFindFirstOrThrowZodSchema = z.object({ select: exports.TelnyxSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => TelnyxSettingsInclude_schema_1.TelnyxSettingsIncludeObjectSchema.optional()), orderBy: z.union([TelnyxSettingsOrderByWithRelationInput_schema_1.TelnyxSettingsOrderByWithRelationInputObjectSchema, TelnyxSettingsOrderByWithRelationInput_schema_1.TelnyxSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TelnyxSettingsWhereInput_schema_1.TelnyxSettingsWhereInputObjectSchema.optional(), cursor: TelnyxSettingsWhereUniqueInput_schema_1.TelnyxSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TelnyxSettingsScalarFieldEnum_schema_1.TelnyxSettingsScalarFieldEnumSchema, TelnyxSettingsScalarFieldEnum_schema_1.TelnyxSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|