@lilaquadrat/interfaces 1.55.0 → 1.56.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.
- package/CHANGELOG.md +7 -0
- package/lib/cjs/ShiftPlanSummary.d.ts +15 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/esm/ShiftPlanSummary.d.ts +15 -0
- package/lib/esm/ShiftPlanSummary.js +2 -0
- package/lib/esm/ShiftPlanSummary.js.map +1 -0
- package/lib/esm/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/ShiftPlanSummary.ts +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.56.0](https://github.com/lilaquadrat/interfaces/compare/v1.55.0...v1.56.0) (2026-10-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **Shift:** add shift plan summary interface ([f3f8d91](https://github.com/lilaquadrat/interfaces/commit/f3f8d91f7527239a0cb55cd463757ebfb5c4d9ec))
|
|
11
|
+
|
|
5
12
|
## [1.55.0](https://github.com/lilaquadrat/interfaces/compare/v1.54.0...v1.55.0) (2026-10-19)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ObjectId } from 'mongodb';
|
|
2
|
+
/** Lightweight plan row for lists and pickers; the plan detail endpoint returns the full ShiftPlanResponse. */
|
|
3
|
+
export interface ShiftPlanSummary {
|
|
4
|
+
_id?: ObjectId;
|
|
5
|
+
name: string;
|
|
6
|
+
/** Linked employee list identity, resolved to its name; null when the plan has no list. */
|
|
7
|
+
list: {
|
|
8
|
+
_id: ObjectId;
|
|
9
|
+
name: string;
|
|
10
|
+
} | null;
|
|
11
|
+
/** Total days of the plan; the list endpoint does not ship the day documents. */
|
|
12
|
+
dayCount: number;
|
|
13
|
+
/** Total shifts of the plan, independently of the list's date filter. */
|
|
14
|
+
shiftCount: number;
|
|
15
|
+
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export * from './ShiftPlanDay';
|
|
|
245
245
|
export * from './ShiftPlanDayInput';
|
|
246
246
|
export * from './ShiftPlanFilters';
|
|
247
247
|
export * from './ShiftPlanResponse';
|
|
248
|
+
export * from './ShiftPlanSummary';
|
|
248
249
|
export * from './ShiftPlanWorkArea';
|
|
249
250
|
export * from './ShiftPlanWorkHours';
|
|
250
251
|
export * from './ShiftPlanningCompanyOptions';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ObjectId } from 'mongodb';
|
|
2
|
+
/** Lightweight plan row for lists and pickers; the plan detail endpoint returns the full ShiftPlanResponse. */
|
|
3
|
+
export interface ShiftPlanSummary {
|
|
4
|
+
_id?: ObjectId;
|
|
5
|
+
name: string;
|
|
6
|
+
/** Linked employee list identity, resolved to its name; null when the plan has no list. */
|
|
7
|
+
list: {
|
|
8
|
+
_id: ObjectId;
|
|
9
|
+
name: string;
|
|
10
|
+
} | null;
|
|
11
|
+
/** Total days of the plan; the list endpoint does not ship the day documents. */
|
|
12
|
+
dayCount: number;
|
|
13
|
+
/** Total shifts of the plan, independently of the list's date filter. */
|
|
14
|
+
shiftCount: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShiftPlanSummary.js","sourceRoot":"","sources":["../../src/ShiftPlanSummary.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export * from './ShiftPlanDay';
|
|
|
245
245
|
export * from './ShiftPlanDayInput';
|
|
246
246
|
export * from './ShiftPlanFilters';
|
|
247
247
|
export * from './ShiftPlanResponse';
|
|
248
|
+
export * from './ShiftPlanSummary';
|
|
248
249
|
export * from './ShiftPlanWorkArea';
|
|
249
250
|
export * from './ShiftPlanWorkHours';
|
|
250
251
|
export * from './ShiftPlanningCompanyOptions';
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ObjectId } from 'mongodb';
|
|
2
|
+
|
|
3
|
+
/** Lightweight plan row for lists and pickers; the plan detail endpoint returns the full ShiftPlanResponse. */
|
|
4
|
+
export interface ShiftPlanSummary {
|
|
5
|
+
_id?: ObjectId;
|
|
6
|
+
name: string;
|
|
7
|
+
/** Linked employee list identity, resolved to its name; null when the plan has no list. */
|
|
8
|
+
list: { _id: ObjectId; name: string } | null;
|
|
9
|
+
/** Total days of the plan; the list endpoint does not ship the day documents. */
|
|
10
|
+
dayCount: number;
|
|
11
|
+
/** Total shifts of the plan, independently of the list's date filter. */
|
|
12
|
+
shiftCount: number;
|
|
13
|
+
}
|