@ossy/timesheets 3.8.0 → 3.9.0

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.
@@ -1,6 +1,8 @@
1
+ import { TimesheetRefs, TimesheetsSchema } from './schema-ids.js'
2
+
1
3
  export default {
2
4
  name: 'Timesheet',
3
- id: '@ossy/timesheets/schema/timesheet',
5
+ id: TimesheetsSchema.timesheet,
4
6
  categoryName: 'Timesheets',
5
7
  icon: 'calendar',
6
8
  fields: [
@@ -24,6 +26,18 @@ export default {
24
26
  type: 'text',
25
27
  description: 'ISO 3166-1 alpha-2 country used for workday/public-holiday prefill',
26
28
  },
29
+ {
30
+ name: 'employeeId',
31
+ type: 'reference',
32
+ of: TimesheetRefs.employee,
33
+ description: 'Optional employee this timesheet belongs to',
34
+ },
35
+ {
36
+ name: 'contractId',
37
+ type: 'reference',
38
+ of: TimesheetRefs.contract,
39
+ description: 'Optional contract this timesheet belongs to',
40
+ },
27
41
  // `lines` is stored in content (array of day rows) — same nested-content pattern as booking availability.
28
42
  ],
29
43
  }