@composable-os/pack-rostering 0.1.0-beta.17 → 0.1.0-beta.19

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/index.d.ts CHANGED
@@ -16,6 +16,9 @@ declare const _default: import("@composable-os/sdk").Extension<{
16
16
  readonly titleField: "name";
17
17
  readonly description: string;
18
18
  readonly navigation: "settings";
19
+ readonly place: {
20
+ readonly key: "team";
21
+ };
19
22
  readonly fields: {
20
23
  readonly name: {
21
24
  readonly type: "text";
@@ -68,8 +71,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
68
71
  readonly from: readonly ["duty"];
69
72
  };
70
73
  readonly description: string;
71
- readonly navigation: "main";
72
- readonly navigationOrder: 41;
74
+ readonly place: {
75
+ readonly key: "team";
76
+ readonly order: 96;
77
+ };
73
78
  readonly fields: {
74
79
  readonly title: {
75
80
  readonly type: "text";
@@ -188,8 +193,10 @@ declare const _default: import("@composable-os/sdk").Extension<{
188
193
  readonly from: readonly ["duty"];
189
194
  };
190
195
  readonly description: string;
191
- readonly navigation: "main";
192
- readonly navigationOrder: 40;
196
+ readonly place: {
197
+ readonly key: "team";
198
+ readonly order: 95;
199
+ };
193
200
  readonly fields: {
194
201
  readonly title: {
195
202
  readonly type: "text";
@@ -306,6 +313,7 @@ declare const _default: import("@composable-os/sdk").Extension<{
306
313
  readonly columns: ["title", "duty", "weekdays", "time", "length", "staff", "firstDate", "state"];
307
314
  };
308
315
  };
316
+ readonly settingsPlace: "team";
309
317
  readonly settings: {
310
318
  readonly offerCutoffMinutes: {
311
319
  readonly type: "number";
@@ -385,6 +393,12 @@ declare const _default: import("@composable-os/sdk").Extension<{
385
393
  readonly permissions: readonly ["rostering:team"];
386
394
  readonly read: readonly [];
387
395
  };
396
+ readonly coach: {
397
+ readonly label: "Coach";
398
+ readonly description: string;
399
+ readonly permissions: readonly ["rostering:team"];
400
+ readonly read: readonly [];
401
+ };
388
402
  };
389
403
  readonly grantable: readonly ["rostering:roster", "rostering:manage", "rostering:pay"];
390
404
  readonly grantableLabels: {
@@ -1493,8 +1507,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1493
1507
  readonly label: "Roster";
1494
1508
  readonly block: "rostering-week";
1495
1509
  readonly export: "RosterWeek";
1496
- readonly nav: {
1497
- readonly group: "Rostering";
1510
+ readonly place: {
1511
+ readonly key: "team";
1498
1512
  readonly order: 10;
1499
1513
  };
1500
1514
  readonly opens: readonly ["week"];
@@ -1503,8 +1517,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1503
1517
  readonly label: "My shifts";
1504
1518
  readonly block: "rostering-checklist";
1505
1519
  readonly export: "MyShiftsWithChecklist";
1506
- readonly nav: {
1507
- readonly group: "Rostering";
1520
+ readonly place: {
1521
+ readonly key: "team";
1508
1522
  readonly order: 20;
1509
1523
  };
1510
1524
  readonly opens: readonly ["mine", "offer"];
@@ -1513,8 +1527,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1513
1527
  readonly label: "Offers";
1514
1528
  readonly block: "rostering-offers";
1515
1529
  readonly export: "OffersToMe";
1516
- readonly nav: {
1517
- readonly group: "Rostering";
1530
+ readonly place: {
1531
+ readonly key: "team";
1518
1532
  readonly order: 30;
1519
1533
  };
1520
1534
  readonly opens: readonly ["offers", "take"];
@@ -1523,8 +1537,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1523
1537
  readonly label: "My time off";
1524
1538
  readonly block: "rostering-my-availability";
1525
1539
  readonly export: "MyAvailability";
1526
- readonly nav: {
1527
- readonly group: "Rostering";
1540
+ readonly place: {
1541
+ readonly key: "team";
1528
1542
  readonly order: 40;
1529
1543
  };
1530
1544
  readonly opens: readonly ["myAway", "away"];
@@ -1533,8 +1547,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1533
1547
  readonly label: "My calendar";
1534
1548
  readonly block: "rostering-my-calendar";
1535
1549
  readonly export: "MyCalendar";
1536
- readonly nav: {
1537
- readonly group: "Rostering";
1550
+ readonly place: {
1551
+ readonly key: "team";
1538
1552
  readonly order: 50;
1539
1553
  };
1540
1554
  readonly opens: readonly ["feed", "feedRotate"];
@@ -1543,8 +1557,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1543
1557
  readonly label: "Patterns";
1544
1558
  readonly block: "rostering-patterns";
1545
1559
  readonly export: "Patterns";
1546
- readonly nav: {
1547
- readonly group: "Rostering";
1560
+ readonly place: {
1561
+ readonly key: "team";
1548
1562
  readonly order: 60;
1549
1563
  };
1550
1564
  readonly opens: readonly ["patterns", "setPattern"];
@@ -1553,8 +1567,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1553
1567
  readonly label: "Who may do what";
1554
1568
  readonly block: "rostering-qualifications";
1555
1569
  readonly export: "Qualifications";
1556
- readonly nav: {
1557
- readonly group: "Rostering";
1570
+ readonly place: {
1571
+ readonly key: "team";
1558
1572
  readonly order: 70;
1559
1573
  };
1560
1574
  readonly opens: readonly ["qualifications", "qualify"];
@@ -1563,8 +1577,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1563
1577
  readonly label: "Time off";
1564
1578
  readonly block: "rostering-away";
1565
1579
  readonly export: "TimeOff";
1566
- readonly nav: {
1567
- readonly group: "Rostering";
1580
+ readonly place: {
1581
+ readonly key: "team";
1568
1582
  readonly order: 80;
1569
1583
  };
1570
1584
  readonly opens: readonly ["awayList", "awayFor"];
@@ -1573,8 +1587,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1573
1587
  readonly label: "Pay";
1574
1588
  readonly block: "rostering-pay";
1575
1589
  readonly export: "Pay";
1576
- readonly nav: {
1577
- readonly group: "Rostering";
1590
+ readonly place: {
1591
+ readonly key: "team";
1578
1592
  readonly order: 90;
1579
1593
  };
1580
1594
  readonly opens: readonly ["periods", "lock"];
@@ -1583,8 +1597,8 @@ declare const _default: import("@composable-os/sdk").Extension<{
1583
1597
  readonly label: "Checklists";
1584
1598
  readonly block: "rostering-checklists";
1585
1599
  readonly export: "ChecklistRuns";
1586
- readonly nav: {
1587
- readonly group: "Rostering";
1600
+ readonly place: {
1601
+ readonly key: "team";
1588
1602
  readonly order: 85;
1589
1603
  };
1590
1604
  readonly opens: readonly ["checklistRuns", "checklistCorrect"];
package/dist/index.js CHANGED
@@ -117,6 +117,7 @@ export default defineExtension({
117
117
  description: "A kind of work that is not a class: cleaning, opening up. Its shifts are made by duty " +
118
118
  "series; who may do it is a qualification.",
119
119
  navigation: "settings",
120
+ place: { key: "team" },
120
121
  fields: {
121
122
  name: { type: "text", label: "Name", required: true },
122
123
  colour: { type: "select", label: "Colour", options: COLOURS },
@@ -149,8 +150,7 @@ export default defineExtension({
149
150
  titleDefault: { from: ["duty"] },
150
151
  description: "A duty on chosen weekdays at a local time, from a date, with its regular person. The " +
151
152
  "host makes its shifts ahead.",
152
- navigation: "main",
153
- navigationOrder: 41,
153
+ place: { key: "team", order: 96 },
154
154
  fields: {
155
155
  title: { type: "text", label: "Title" },
156
156
  duty: { type: "relation", label: "Duty", to: "rostering.duty", required: true },
@@ -223,8 +223,7 @@ export default defineExtension({
223
223
  titleDefault: { from: ["duty"] },
224
224
  description: "One dated duty shift: made by a duty series, or a one-off. Its person works it; nobody " +
225
225
  "is ever on two shifts at once.",
226
- navigation: "main",
227
- navigationOrder: 40,
226
+ place: { key: "team", order: 95 },
228
227
  fields: {
229
228
  title: { type: "text", label: "Title" },
230
229
  // Which duty, and so which checklist, a shift is: a person's to change (ADR 0650).
@@ -313,6 +312,7 @@ export default defineExtension({
313
312
  },
314
313
  },
315
314
  // The roster's numbers (decisions 17 and 21; the uncovered window a guess): a person's to change.
315
+ settingsPlace: "team",
316
316
  settings: {
317
317
  offerCutoffMinutes: {
318
318
  type: "number",
@@ -398,6 +398,15 @@ export default defineExtension({
398
398
  permissions: ["rostering:team"],
399
399
  read: [],
400
400
  },
401
+ // A coach's own shifts (stage 79 step 12, ADR 0990: one role with Bookings' and Programs'
402
+ // coach): what the rostered team gets, so every coach is rostered without a grant.
403
+ coach: {
404
+ label: "Coach",
405
+ description: "Shifts: sees the roster and their own shifts, offers and takes shifts, says when they " +
406
+ "are away, has their own calendar feed and sees their own hours for each pay period.",
407
+ permissions: ["rostering:team"],
408
+ read: [],
409
+ },
401
410
  },
402
411
  // The team's tools for an account with another role (a coach), and the rosterers' permission
403
412
  // (decision 16: the owner and admins hold it; it is granted to nobody at first).
@@ -469,7 +478,7 @@ export default defineExtension({
469
478
  label: "Roster",
470
479
  block: "rostering-week",
471
480
  export: "RosterWeek",
472
- nav: { group: "Rostering", order: 10 },
481
+ place: { key: "team", order: 10 },
473
482
  opens: ["week"],
474
483
  },
475
484
  myShifts: {
@@ -477,56 +486,56 @@ export default defineExtension({
477
486
  // My shifts with each duty's checklist under it (step 4b) and My hours.
478
487
  block: "rostering-checklist",
479
488
  export: "MyShiftsWithChecklist",
480
- nav: { group: "Rostering", order: 20 },
489
+ place: { key: "team", order: 20 },
481
490
  opens: ["mine", "offer"],
482
491
  },
483
492
  offers: {
484
493
  label: "Offers",
485
494
  block: "rostering-offers",
486
495
  export: "OffersToMe",
487
- nav: { group: "Rostering", order: 30 },
496
+ place: { key: "team", order: 30 },
488
497
  opens: ["offers", "take"],
489
498
  },
490
499
  myTimeOff: {
491
500
  label: "My time off",
492
501
  block: "rostering-my-availability",
493
502
  export: "MyAvailability",
494
- nav: { group: "Rostering", order: 40 },
503
+ place: { key: "team", order: 40 },
495
504
  opens: ["myAway", "away"],
496
505
  },
497
506
  myCalendar: {
498
507
  label: "My calendar",
499
508
  block: "rostering-my-calendar",
500
509
  export: "MyCalendar",
501
- nav: { group: "Rostering", order: 50 },
510
+ place: { key: "team", order: 50 },
502
511
  opens: ["feed", "feedRotate"],
503
512
  },
504
513
  patterns: {
505
514
  label: "Patterns",
506
515
  block: "rostering-patterns",
507
516
  export: "Patterns",
508
- nav: { group: "Rostering", order: 60 },
517
+ place: { key: "team", order: 60 },
509
518
  opens: ["patterns", "setPattern"],
510
519
  },
511
520
  qualifications: {
512
521
  label: "Who may do what",
513
522
  block: "rostering-qualifications",
514
523
  export: "Qualifications",
515
- nav: { group: "Rostering", order: 70 },
524
+ place: { key: "team", order: 70 },
516
525
  opens: ["qualifications", "qualify"],
517
526
  },
518
527
  timeOff: {
519
528
  label: "Time off",
520
529
  block: "rostering-away",
521
530
  export: "TimeOff",
522
- nav: { group: "Rostering", order: 80 },
531
+ place: { key: "team", order: 80 },
523
532
  opens: ["awayList", "awayFor"],
524
533
  },
525
534
  pay: {
526
535
  label: "Pay",
527
536
  block: "rostering-pay",
528
537
  export: "Pay",
529
- nav: { group: "Rostering", order: 90 },
538
+ place: { key: "team", order: 90 },
530
539
  opens: ["periods", "lock"],
531
540
  },
532
541
  // The duties' checklists by checklist and date (step 4b): the rosterers' (rostering:manage).
@@ -534,7 +543,7 @@ export default defineExtension({
534
543
  label: "Checklists",
535
544
  block: "rostering-checklists",
536
545
  export: "ChecklistRuns",
537
- nav: { group: "Rostering", order: 85 },
546
+ place: { key: "team", order: 85 },
538
547
  opens: ["checklistRuns", "checklistCorrect"],
539
548
  },
540
549
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composable-os/pack-rostering",
3
- "version": "0.1.0-beta.17",
3
+ "version": "0.1.0-beta.19",
4
4
  "license": "FSL-1.1-ALv2",
5
5
  "type": "module",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "description": "Who works when: duty shifts that repeat every week, the roster of every shift (classes too, with Bookings), staff offering and taking shifts, and saying when they are away."
33
33
  },
34
34
  "dependencies": {
35
- "@composable-os/client": "0.1.0-beta.17",
36
- "@composable-os/sdk": "0.1.0-beta.17"
35
+ "@composable-os/client": "0.1.0-beta.19",
36
+ "@composable-os/sdk": "0.1.0-beta.19"
37
37
  }
38
38
  }