@brite-future-schools-contracts/contracts 2.0.32 → 2.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-7AJ4LRST.js → chunk-E3VLQFEY.js} +5 -1
- package/dist/chunk-E3VLQFEY.js.map +1 -0
- package/dist/{chunk-2B5AQI2I.js → chunk-RV423CEB.js} +2 -2
- package/dist/contracts/index.cjs +4 -0
- package/dist/contracts/index.cjs.map +1 -1
- package/dist/contracts/index.d.cts +2 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +2 -2
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/schemas/index.cjs +4 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7AJ4LRST.js.map +0 -1
- /package/dist/{chunk-2B5AQI2I.js.map → chunk-RV423CEB.js.map} +0 -0
|
@@ -207,6 +207,7 @@ declare const createStaffContract: _orpc_contract.ContractProcedureBuilderWithIn
|
|
|
207
207
|
nationalId: z.ZodString;
|
|
208
208
|
roleName: z.ZodString;
|
|
209
209
|
isPrimaryRole: z.ZodDefault<z.ZodBoolean>;
|
|
210
|
+
branchId: z.ZodOptional<z.ZodUUID>;
|
|
210
211
|
departmentId: z.ZodOptional<z.ZodUUID>;
|
|
211
212
|
designation: z.ZodString;
|
|
212
213
|
employmentType: z.ZodEnum<{
|
|
@@ -339,6 +340,7 @@ declare const hrContract: {
|
|
|
339
340
|
nationalId: z.ZodString;
|
|
340
341
|
roleName: z.ZodString;
|
|
341
342
|
isPrimaryRole: z.ZodDefault<z.ZodBoolean>;
|
|
343
|
+
branchId: z.ZodOptional<z.ZodUUID>;
|
|
342
344
|
departmentId: z.ZodOptional<z.ZodUUID>;
|
|
343
345
|
designation: z.ZodString;
|
|
344
346
|
employmentType: z.ZodEnum<{
|
package/dist/contracts/index.js
CHANGED
|
@@ -78,8 +78,8 @@ import {
|
|
|
78
78
|
updateBankAccountContract,
|
|
79
79
|
updateCategoryContract,
|
|
80
80
|
updateStaffStatusContract
|
|
81
|
-
} from "../chunk-
|
|
82
|
-
import "../chunk-
|
|
81
|
+
} from "../chunk-RV423CEB.js";
|
|
82
|
+
import "../chunk-E3VLQFEY.js";
|
|
83
83
|
export {
|
|
84
84
|
acknowledgeContract,
|
|
85
85
|
acknowledgeDiaryEntryContract,
|
package/dist/index.cjs
CHANGED
|
@@ -407,6 +407,10 @@ var CreateStaffInputSchema = z3.object({
|
|
|
407
407
|
description: "Role code from the roles table \u2014 e.g. TEACHER, HEAD_TEACHER"
|
|
408
408
|
}),
|
|
409
409
|
isPrimaryRole: z3.boolean().default(true),
|
|
410
|
+
// Oversight-only override — Proprietor/Director/System Admin can
|
|
411
|
+
// target a branch other than their own active one. Ignored server-side
|
|
412
|
+
// for non-oversight callers, who are always scoped to their own branch.
|
|
413
|
+
branchId: UuidSchema.optional(),
|
|
410
414
|
// Employment details
|
|
411
415
|
departmentId: UuidSchema.optional(),
|
|
412
416
|
designation: z3.string().min(1).max(100).meta({
|