@brite-future-schools-contracts/contracts 2.0.30 → 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-WGPI4GGP.js → chunk-E3VLQFEY.js} +10 -2
- package/dist/chunk-E3VLQFEY.js.map +1 -0
- package/dist/{chunk-LIPNVYGK.js → chunk-RV423CEB.js} +2 -2
- package/dist/contracts/index.cjs +9 -1
- package/dist/contracts/index.cjs.map +1 -1
- package/dist/contracts/index.d.cts +2 -2
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +2 -2
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/schemas/index.cjs +9 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-WGPI4GGP.js.map +0 -1
- /package/dist/{chunk-LIPNVYGK.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<{
|
|
@@ -2322,7 +2324,6 @@ declare const createNotificationContract: _orpc_contract.ContractProcedureBuilde
|
|
|
2322
2324
|
email: "email";
|
|
2323
2325
|
in_app: "in_app";
|
|
2324
2326
|
sms: "sms";
|
|
2325
|
-
push: "push";
|
|
2326
2327
|
}>>>;
|
|
2327
2328
|
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
2328
2329
|
recurrence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2840,7 +2841,6 @@ declare const notificationsContract: {
|
|
|
2840
2841
|
email: "email";
|
|
2841
2842
|
in_app: "in_app";
|
|
2842
2843
|
sms: "sms";
|
|
2843
|
-
push: "push";
|
|
2844
2844
|
}>>>;
|
|
2845
2845
|
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
2846
2846
|
recurrence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -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<{
|
|
@@ -2322,7 +2324,6 @@ declare const createNotificationContract: _orpc_contract.ContractProcedureBuilde
|
|
|
2322
2324
|
email: "email";
|
|
2323
2325
|
in_app: "in_app";
|
|
2324
2326
|
sms: "sms";
|
|
2325
|
-
push: "push";
|
|
2326
2327
|
}>>>;
|
|
2327
2328
|
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
2328
2329
|
recurrence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2840,7 +2841,6 @@ declare const notificationsContract: {
|
|
|
2840
2841
|
email: "email";
|
|
2841
2842
|
in_app: "in_app";
|
|
2842
2843
|
sms: "sms";
|
|
2843
|
-
push: "push";
|
|
2844
2844
|
}>>>;
|
|
2845
2845
|
scheduledAt: z.ZodOptional<z.ZodString>;
|
|
2846
2846
|
recurrence: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
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({
|
|
@@ -872,7 +876,11 @@ var CreateNotificationInputSchema = z8.object({
|
|
|
872
876
|
redirectParams: z8.record(z8.string(), z8.string()).optional(),
|
|
873
877
|
requiresResponse: z8.boolean().optional(),
|
|
874
878
|
responseOptions: z8.array(z8.string()).optional(),
|
|
875
|
-
|
|
879
|
+
// Deliberately narrower than NotificationChannelSchema (excludes
|
|
880
|
+
// 'push') — matches the router's original inline restriction and
|
|
881
|
+
// NotificationsService's Channel type; 'push' exists in the DB enum
|
|
882
|
+
// but isn't yet wired end-to-end for template creation.
|
|
883
|
+
deliveryChannels: z8.array(z8.enum(["in_app", "sms", "email"])).optional(),
|
|
876
884
|
scheduledAt: z8.string().datetime().optional(),
|
|
877
885
|
recurrence: z8.record(z8.string(), z8.unknown()).optional(),
|
|
878
886
|
audience: z8.array(NotificationAudienceItemSchema)
|