@happyvertical/smrt-timesheets 0.57.46 → 0.57.47

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/AGENTS.md CHANGED
@@ -58,6 +58,10 @@ Generated CRUD writes stay closed. `ServiceTimeEntryCollection` hosts the only
58
58
  generated writes, `record` / `submit` / `approve` (`POST
59
59
  /servicetimeentries/<action>`, body `{ entryId }` for submit/approve), on REST
60
60
  only; MCP and CLI stay read-only until per-operation MCP authorization (#4004).
61
+ A consumer that closes a model also closes its collection's generated CRUD;
62
+ `ServiceTimeEntryCollection`'s own `forWork` / `pendingApproval` stay open
63
+ until the collection class is closed with `registerOverride` too. Surface tests
64
+ match `<model>collection_` tool names as well as `<model>_` (#3468).
61
65
  `services/time-entry-actions.ts` delegates each to `ServiceEvidenceService`, so
62
66
  the trail and snapshots are set in one place. `services/action-principal.ts`
63
67
  takes identity from the tenancy ALS, then the smrt-users session ALS, never the
@@ -1,3 +1,3 @@
1
- import { a as AttendanceReplay, c as AttendanceSegmentCollection, i as AttendancePunchCollection, n as AttendanceBreakCollection, o as AttendanceReplayCollection, r as AttendancePunch, s as AttendanceSegment, t as AttendanceBreak } from "./chunks/models-9a8vBk3J.js";
2
- import { a as continueSegment, c as openSegment, d as validateAttendanceWork, f as ATTENDANCE_CORRECTION_KINDS, i as closeOpenSegment, l as replaceSegment, m as AttendanceCorrectionCollection, n as AttendanceService, o as endSegment, p as AttendanceCorrection, r as beginSegment, s as listSegments, t as AttendanceCorrectionService, u as AttendanceConflict } from "./chunks/attendance-PGuRvmev.js";
1
+ import { a as AttendanceReplay, c as AttendanceSegmentCollection, i as AttendancePunchCollection, n as AttendanceBreakCollection, o as AttendanceReplayCollection, r as AttendancePunch, s as AttendanceSegment, t as AttendanceBreak } from "./chunks/models-BPvzhbBk.js";
2
+ import { a as continueSegment, c as openSegment, d as validateAttendanceWork, f as ATTENDANCE_CORRECTION_KINDS, i as closeOpenSegment, l as replaceSegment, m as AttendanceCorrectionCollection, n as AttendanceService, o as endSegment, p as AttendanceCorrection, r as beginSegment, s as listSegments, t as AttendanceCorrectionService, u as AttendanceConflict } from "./chunks/attendance-Cff4qsKO.js";
3
3
  export { ATTENDANCE_CORRECTION_KINDS, AttendanceBreak, AttendanceBreakCollection, AttendanceConflict, AttendanceCorrection, AttendanceCorrectionCollection, AttendanceCorrectionService, AttendancePunch, AttendancePunchCollection, AttendanceReplay, AttendanceReplayCollection, AttendanceSegment, AttendanceSegmentCollection, AttendanceService, beginSegment, closeOpenSegment, continueSegment, endSegment, listSegments, openSegment, replaceSegment, validateAttendanceWork };
@@ -1,5 +1,5 @@
1
- import { i as ServiceTimeEntryCollection, o as parseTimesheetJson } from "./service-time-entry-DHhGUUqL.js";
2
- import { c as AttendanceSegmentCollection, d as persistAutoClose, f as persistCorrection, i as AttendancePunchCollection, l as deleteCorrection, n as AttendanceBreakCollection, o as AttendanceReplayCollection, r as AttendancePunch, s as AttendanceSegment, t as AttendanceBreak, u as isCorrectionWrite } from "./models-9a8vBk3J.js";
1
+ import { i as ServiceTimeEntryCollection, o as parseTimesheetJson } from "./service-time-entry-vfA38BNi.js";
2
+ import { c as AttendanceSegmentCollection, d as persistAutoClose, f as persistCorrection, i as AttendancePunchCollection, l as deleteCorrection, n as AttendanceBreakCollection, o as AttendanceReplayCollection, r as AttendancePunch, s as AttendanceSegment, t as AttendanceBreak, u as isCorrectionWrite } from "./models-BPvzhbBk.js";
3
3
  import { SmrtCollection, SmrtObject, crossPackageRef, field, foreignKey, isEmbeddedDatabase, isPostgresDatabase, smrt, withEmbeddedWriteTransaction } from "@happyvertical/smrt-core";
4
4
  import { TenantScoped, getTenantId, tenantId, withTenant } from "@happyvertical/smrt-tenancy";
5
5
  //#region src/attendance/correction-models.ts
@@ -1397,4 +1397,4 @@ var AttendanceCorrectionService = class {
1397
1397
  //#endregion
1398
1398
  export { continueSegment as a, openSegment as c, validateAttendanceWork as d, ATTENDANCE_CORRECTION_KINDS as f, closeOpenSegment as i, replaceSegment as l, AttendanceCorrectionCollection as m, AttendanceService as n, endSegment as o, AttendanceCorrection as p, beginSegment as r, listSegments as s, AttendanceCorrectionService as t, AttendanceConflict as u };
1399
1399
 
1400
- //# sourceMappingURL=attendance-PGuRvmev.js.map
1400
+ //# sourceMappingURL=attendance-Cff4qsKO.js.map