@iveri/contracts 0.53.0 → 0.55.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.
Files changed (119) hide show
  1. package/dist/api/gym/gym-booking-refusal.enum.d.ts +14 -0
  2. package/dist/api/gym/gym-booking-refusal.enum.js +15 -0
  3. package/dist/api/gym/gym-booking-status.enum.d.ts +9 -0
  4. package/dist/api/gym/gym-booking-status.enum.js +10 -0
  5. package/dist/api/gym/gym-branch.type.d.ts +47 -0
  6. package/dist/api/gym/gym-branch.type.js +1 -0
  7. package/dist/api/gym/gym-busy-level.enum.d.ts +5 -0
  8. package/dist/api/gym/gym-busy-level.enum.js +6 -0
  9. package/dist/api/gym/gym-check-in-outcome.enum.d.ts +6 -0
  10. package/dist/api/gym/gym-check-in-outcome.enum.js +7 -0
  11. package/dist/api/gym/gym-check-in-refusal.enum.d.ts +12 -0
  12. package/dist/api/gym/gym-check-in-refusal.enum.js +13 -0
  13. package/dist/api/gym/gym-class-access.enum.d.ts +6 -0
  14. package/dist/api/gym/gym-class-access.enum.js +7 -0
  15. package/dist/api/gym/gym-class-level.enum.d.ts +6 -0
  16. package/dist/api/gym/gym-class-level.enum.js +7 -0
  17. package/dist/api/gym/gym-class-type.type.d.ts +35 -0
  18. package/dist/api/gym/gym-class-type.type.js +1 -0
  19. package/dist/api/gym/gym-common.type.d.ts +14 -0
  20. package/dist/api/gym/gym-common.type.js +1 -0
  21. package/dist/api/gym/gym-door.type.d.ts +65 -0
  22. package/dist/api/gym/gym-door.type.js +1 -0
  23. package/dist/api/gym/gym-duration-unit.enum.d.ts +4 -0
  24. package/dist/api/gym/gym-duration-unit.enum.js +5 -0
  25. package/dist/api/gym/gym-entry-kind.enum.d.ts +6 -0
  26. package/dist/api/gym/gym-entry-kind.enum.js +7 -0
  27. package/dist/api/gym/gym-equipment.enum.d.ts +11 -0
  28. package/dist/api/gym/gym-equipment.enum.js +12 -0
  29. package/dist/api/gym/gym-exercise-category.enum.d.ts +5 -0
  30. package/dist/api/gym/gym-exercise-category.enum.js +6 -0
  31. package/dist/api/gym/gym-exercise-measure.enum.d.ts +7 -0
  32. package/dist/api/gym/gym-exercise-measure.enum.js +8 -0
  33. package/dist/api/gym/gym-gallery.type.d.ts +17 -0
  34. package/dist/api/gym/gym-gallery.type.js +1 -0
  35. package/dist/api/gym/gym-lead-kind.enum.d.ts +5 -0
  36. package/dist/api/gym/gym-lead-kind.enum.js +6 -0
  37. package/dist/api/gym/gym-lead-status.enum.d.ts +7 -0
  38. package/dist/api/gym/gym-lead-status.enum.js +8 -0
  39. package/dist/api/gym/gym-lead.type.d.ts +32 -0
  40. package/dist/api/gym/gym-lead.type.js +1 -0
  41. package/dist/api/gym/gym-me.type.d.ts +115 -0
  42. package/dist/api/gym/gym-me.type.js +1 -0
  43. package/dist/api/gym/gym-member.type.d.ts +55 -0
  44. package/dist/api/gym/gym-member.type.js +1 -0
  45. package/dist/api/gym/gym-membership-status.enum.d.ts +14 -0
  46. package/dist/api/gym/gym-membership-status.enum.js +15 -0
  47. package/dist/api/gym/gym-membership.type.d.ts +93 -0
  48. package/dist/api/gym/gym-membership.type.js +1 -0
  49. package/dist/api/gym/gym-muscle-group.enum.d.ts +13 -0
  50. package/dist/api/gym/gym-muscle-group.enum.js +14 -0
  51. package/dist/api/gym/gym-payment-kind.enum.d.ts +4 -0
  52. package/dist/api/gym/gym-payment-kind.enum.js +5 -0
  53. package/dist/api/gym/gym-payment-method.enum.d.ts +6 -0
  54. package/dist/api/gym/gym-payment-method.enum.js +7 -0
  55. package/dist/api/gym/gym-payment.type.d.ts +59 -0
  56. package/dist/api/gym/gym-payment.type.js +1 -0
  57. package/dist/api/gym/gym-plan-activation.enum.d.ts +5 -0
  58. package/dist/api/gym/gym-plan-activation.enum.js +6 -0
  59. package/dist/api/gym/gym-plan.type.d.ts +72 -0
  60. package/dist/api/gym/gym-plan.type.js +1 -0
  61. package/dist/api/gym/gym-profile.type.d.ts +65 -0
  62. package/dist/api/gym/gym-profile.type.js +1 -0
  63. package/dist/api/gym/gym-promo-code.type.d.ts +33 -0
  64. package/dist/api/gym/gym-promo-code.type.js +1 -0
  65. package/dist/api/gym/gym-public.type.d.ts +114 -0
  66. package/dist/api/gym/gym-public.type.js +1 -0
  67. package/dist/api/gym/gym-record-kind.enum.d.ts +7 -0
  68. package/dist/api/gym/gym-record-kind.enum.js +8 -0
  69. package/dist/api/gym/gym-report.type.d.ts +73 -0
  70. package/dist/api/gym/gym-report.type.js +1 -0
  71. package/dist/api/gym/gym-resource-status.enum.d.ts +5 -0
  72. package/dist/api/gym/gym-resource-status.enum.js +6 -0
  73. package/dist/api/gym/gym-room.type.d.ts +27 -0
  74. package/dist/api/gym/gym-room.type.js +1 -0
  75. package/dist/api/gym/gym-schedule.type.d.ts +122 -0
  76. package/dist/api/gym/gym-schedule.type.js +1 -0
  77. package/dist/api/gym/gym-session-kind.enum.d.ts +4 -0
  78. package/dist/api/gym/gym-session-kind.enum.js +5 -0
  79. package/dist/api/gym/gym-session-status.enum.d.ts +4 -0
  80. package/dist/api/gym/gym-session-status.enum.js +5 -0
  81. package/dist/api/gym/gym-signature-method.enum.d.ts +4 -0
  82. package/dist/api/gym/gym-signature-method.enum.js +5 -0
  83. package/dist/api/gym/gym-staff.type.d.ts +46 -0
  84. package/dist/api/gym/gym-staff.type.js +1 -0
  85. package/dist/api/gym/gym-training.type.d.ts +179 -0
  86. package/dist/api/gym/gym-training.type.js +1 -0
  87. package/dist/api/gym/gym-waiver.type.d.ts +32 -0
  88. package/dist/api/gym/gym-waiver.type.js +1 -0
  89. package/dist/api/gym/index.d.ts +44 -0
  90. package/dist/api/gym/index.js +44 -0
  91. package/dist/api/hr/hr-access-action.enum.d.ts +7 -0
  92. package/dist/api/hr/hr-access-action.enum.js +8 -0
  93. package/dist/api/hr/hr-employment-event-kind.enum.d.ts +8 -0
  94. package/dist/api/hr/hr-employment-event-kind.enum.js +9 -0
  95. package/dist/api/hr/hr-employment-status.enum.d.ts +13 -0
  96. package/dist/api/hr/hr-employment-status.enum.js +14 -0
  97. package/dist/api/hr/hr-employment-type.enum.d.ts +6 -0
  98. package/dist/api/hr/hr-employment-type.enum.js +7 -0
  99. package/dist/api/hr/hr-leave-accrual.enum.d.ts +7 -0
  100. package/dist/api/hr/hr-leave-accrual.enum.js +8 -0
  101. package/dist/api/hr/hr-leave-ledger-kind.enum.d.ts +9 -0
  102. package/dist/api/hr/hr-leave-ledger-kind.enum.js +10 -0
  103. package/dist/api/hr/hr-leave-request-status.enum.d.ts +6 -0
  104. package/dist/api/hr/hr-leave-request-status.enum.js +7 -0
  105. package/dist/api/hr/hr-pay-period.enum.d.ts +4 -0
  106. package/dist/api/hr/hr-pay-period.enum.js +5 -0
  107. package/dist/api/hr/hr-resource-status.enum.d.ts +5 -0
  108. package/dist/api/hr/hr-resource-status.enum.js +6 -0
  109. package/dist/api/hr/index.d.ts +10 -0
  110. package/dist/api/hr/index.js +10 -0
  111. package/dist/api/hr/localized-text.type.d.ts +7 -0
  112. package/dist/api/hr/localized-text.type.js +1 -0
  113. package/dist/api/realtime/realtime-event-type.enum.d.ts +3 -1
  114. package/dist/api/realtime/realtime-event-type.enum.js +2 -0
  115. package/dist/api/realtime/realtime-resource-type.enum.d.ts +2 -1
  116. package/dist/api/realtime/realtime-resource-type.enum.js +1 -0
  117. package/dist/enum/user-permission.enum.d.ts +87 -1
  118. package/dist/enum/user-permission.enum.js +87 -0
  119. package/package.json +9 -1
@@ -0,0 +1,9 @@
1
+ export var HrEmploymentEventKind;
2
+ (function (HrEmploymentEventKind) {
3
+ HrEmploymentEventKind["HIRED"] = "hired";
4
+ /** Their department, job title, location, manager or employment type changed. */
5
+ HrEmploymentEventKind["JOB_CHANGED"] = "job-changed";
6
+ HrEmploymentEventKind["LEFT"] = "left";
7
+ /** A last day that was set has been withdrawn. */
8
+ HrEmploymentEventKind["STAYED"] = "stayed";
9
+ })(HrEmploymentEventKind || (HrEmploymentEventKind = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Where somebody is in their employment, worked out from their dates on every read.
3
+ *
4
+ * Never stored: a column would need a sweep to stay true, and would be wrong whenever the sweep was late.
5
+ */
6
+ export declare enum HrEmploymentStatus {
7
+ /** Their first day is still to come. */
8
+ UPCOMING = "upcoming",
9
+ ACTIVE = "active",
10
+ /** A last day is set and has not passed. */
11
+ LEAVING = "leaving",
12
+ FORMER = "former"
13
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Where somebody is in their employment, worked out from their dates on every read.
3
+ *
4
+ * Never stored: a column would need a sweep to stay true, and would be wrong whenever the sweep was late.
5
+ */
6
+ export var HrEmploymentStatus;
7
+ (function (HrEmploymentStatus) {
8
+ /** Their first day is still to come. */
9
+ HrEmploymentStatus["UPCOMING"] = "upcoming";
10
+ HrEmploymentStatus["ACTIVE"] = "active";
11
+ /** A last day is set and has not passed. */
12
+ HrEmploymentStatus["LEAVING"] = "leaving";
13
+ HrEmploymentStatus["FORMER"] = "former";
14
+ })(HrEmploymentStatus || (HrEmploymentStatus = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum HrEmploymentType {
2
+ FULL_TIME = "full-time",
3
+ PART_TIME = "part-time",
4
+ CONTRACTOR = "contractor",
5
+ INTERN = "intern"
6
+ }
@@ -0,0 +1,7 @@
1
+ export var HrEmploymentType;
2
+ (function (HrEmploymentType) {
3
+ HrEmploymentType["FULL_TIME"] = "full-time";
4
+ HrEmploymentType["PART_TIME"] = "part-time";
5
+ HrEmploymentType["CONTRACTOR"] = "contractor";
6
+ HrEmploymentType["INTERN"] = "intern";
7
+ })(HrEmploymentType || (HrEmploymentType = {}));
@@ -0,0 +1,7 @@
1
+ /** How a leave type's yearly allowance arrives. */
2
+ export declare enum HrLeaveAccrual {
3
+ /** All of it on the first day of the year. */
4
+ UPFRONT = "upfront",
5
+ /** A twelfth each month. */
6
+ MONTHLY = "monthly"
7
+ }
@@ -0,0 +1,8 @@
1
+ /** How a leave type's yearly allowance arrives. */
2
+ export var HrLeaveAccrual;
3
+ (function (HrLeaveAccrual) {
4
+ /** All of it on the first day of the year. */
5
+ HrLeaveAccrual["UPFRONT"] = "upfront";
6
+ /** A twelfth each month. */
7
+ HrLeaveAccrual["MONTHLY"] = "monthly";
8
+ })(HrLeaveAccrual || (HrLeaveAccrual = {}));
@@ -0,0 +1,9 @@
1
+ /** Why a leave balance moved. A balance is the sum of these and is never stored. */
2
+ export declare enum HrLeaveLedgerKind {
3
+ ALLOWANCE = "allowance",
4
+ ACCRUAL = "accrual",
5
+ CARRY_OVER = "carry-over",
6
+ ADJUSTMENT = "adjustment",
7
+ TAKEN = "taken",
8
+ RETURNED = "returned"
9
+ }
@@ -0,0 +1,10 @@
1
+ /** Why a leave balance moved. A balance is the sum of these and is never stored. */
2
+ export var HrLeaveLedgerKind;
3
+ (function (HrLeaveLedgerKind) {
4
+ HrLeaveLedgerKind["ALLOWANCE"] = "allowance";
5
+ HrLeaveLedgerKind["ACCRUAL"] = "accrual";
6
+ HrLeaveLedgerKind["CARRY_OVER"] = "carry-over";
7
+ HrLeaveLedgerKind["ADJUSTMENT"] = "adjustment";
8
+ HrLeaveLedgerKind["TAKEN"] = "taken";
9
+ HrLeaveLedgerKind["RETURNED"] = "returned";
10
+ })(HrLeaveLedgerKind || (HrLeaveLedgerKind = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum HrLeaveRequestStatus {
2
+ PENDING = "pending",
3
+ APPROVED = "approved",
4
+ REJECTED = "rejected",
5
+ CANCELLED = "cancelled"
6
+ }
@@ -0,0 +1,7 @@
1
+ export var HrLeaveRequestStatus;
2
+ (function (HrLeaveRequestStatus) {
3
+ HrLeaveRequestStatus["PENDING"] = "pending";
4
+ HrLeaveRequestStatus["APPROVED"] = "approved";
5
+ HrLeaveRequestStatus["REJECTED"] = "rejected";
6
+ HrLeaveRequestStatus["CANCELLED"] = "cancelled";
7
+ })(HrLeaveRequestStatus || (HrLeaveRequestStatus = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum HrPayPeriod {
2
+ MONTH = "month",
3
+ HOUR = "hour"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var HrPayPeriod;
2
+ (function (HrPayPeriod) {
3
+ HrPayPeriod["MONTH"] = "month";
4
+ HrPayPeriod["HOUR"] = "hour";
5
+ })(HrPayPeriod || (HrPayPeriod = {}));
@@ -0,0 +1,5 @@
1
+ /** Whether a location, department, job title or leave type is still offered. Records that name one keep it. */
2
+ export declare enum HrResourceStatus {
3
+ ACTIVE = "active",
4
+ INACTIVE = "inactive"
5
+ }
@@ -0,0 +1,6 @@
1
+ /** Whether a location, department, job title or leave type is still offered. Records that name one keep it. */
2
+ export var HrResourceStatus;
3
+ (function (HrResourceStatus) {
4
+ HrResourceStatus["ACTIVE"] = "active";
5
+ HrResourceStatus["INACTIVE"] = "inactive";
6
+ })(HrResourceStatus || (HrResourceStatus = {}));
@@ -0,0 +1,10 @@
1
+ export * from './hr-access-action.enum.js';
2
+ export * from './hr-employment-event-kind.enum.js';
3
+ export * from './hr-employment-status.enum.js';
4
+ export * from './hr-employment-type.enum.js';
5
+ export * from './hr-leave-accrual.enum.js';
6
+ export * from './hr-leave-ledger-kind.enum.js';
7
+ export * from './hr-leave-request-status.enum.js';
8
+ export * from './hr-pay-period.enum.js';
9
+ export * from './hr-resource-status.enum.js';
10
+ export * from './localized-text.type.js';
@@ -0,0 +1,10 @@
1
+ export * from './hr-access-action.enum.js';
2
+ export * from './hr-employment-event-kind.enum.js';
3
+ export * from './hr-employment-status.enum.js';
4
+ export * from './hr-employment-type.enum.js';
5
+ export * from './hr-leave-accrual.enum.js';
6
+ export * from './hr-leave-ledger-kind.enum.js';
7
+ export * from './hr-leave-request-status.enum.js';
8
+ export * from './hr-pay-period.enum.js';
9
+ export * from './hr-resource-status.enum.js';
10
+ export * from './localized-text.type.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Text written in each language it has been written in, keyed by locale.
3
+ *
4
+ * Used for what ships in three languages and a company may change, such as a leave type or a
5
+ * public holiday. What a company types for its own staff, such as a department, is plain text.
6
+ */
7
+ export type LocalizedText = Record<string, string>;
@@ -0,0 +1 @@
1
+ export {};
@@ -31,5 +31,7 @@ export declare enum RealtimeEventType {
31
31
  */
32
32
  RESTAURANT_BRANCH_UPDATED = "restaurant.branch.updated",
33
33
  /** One diner's order moved. */
34
- RESTAURANT_ORDER_UPDATED = "restaurant.order.updated"
34
+ RESTAURANT_ORDER_UPDATED = "restaurant.order.updated",
35
+ /** Somebody came through a branch's door or a class changed, so staff screens refetch. */
36
+ GYM_BRANCH_UPDATED = "gym.branch.updated"
35
37
  }
@@ -33,4 +33,6 @@ export var RealtimeEventType;
33
33
  RealtimeEventType["RESTAURANT_BRANCH_UPDATED"] = "restaurant.branch.updated";
34
34
  /** One diner's order moved. */
35
35
  RealtimeEventType["RESTAURANT_ORDER_UPDATED"] = "restaurant.order.updated";
36
+ /** Somebody came through a branch's door or a class changed, so staff screens refetch. */
37
+ RealtimeEventType["GYM_BRANCH_UPDATED"] = "gym.branch.updated";
36
38
  })(RealtimeEventType || (RealtimeEventType = {}));
@@ -10,5 +10,6 @@ export declare enum RealtimeResourceType {
10
10
  MOBILITY_WORKER = "mobility.worker",
11
11
  MOBILITY_DISPATCH = "mobility.dispatch",
12
12
  RESTAURANT_BRANCH = "restaurant.branch",
13
- RESTAURANT_ORDER = "restaurant.order"
13
+ RESTAURANT_ORDER = "restaurant.order",
14
+ GYM_BRANCH = "gym.branch"
14
15
  }
@@ -12,4 +12,5 @@ export var RealtimeResourceType;
12
12
  RealtimeResourceType["MOBILITY_DISPATCH"] = "mobility.dispatch";
13
13
  RealtimeResourceType["RESTAURANT_BRANCH"] = "restaurant.branch";
14
14
  RealtimeResourceType["RESTAURANT_ORDER"] = "restaurant.order";
15
+ RealtimeResourceType["GYM_BRANCH"] = "gym.branch";
15
16
  })(RealtimeResourceType || (RealtimeResourceType = {}));
@@ -498,7 +498,93 @@ export declare enum UserPermission {
498
498
  /** Change promotions and moderate reviews. */
499
499
  RESTAURANT_MARKETING_MANAGE = "restaurant:marketing:manage",
500
500
  /** See sales reports. */
501
- RESTAURANT_REPORT_READ = "restaurant:report:read"
501
+ RESTAURANT_REPORT_READ = "restaurant:report:read",
502
+ /** Read a company's HR settings, locations, departments and job titles. */
503
+ HR_ORG_READ = "hr:org:read",
504
+ /** Change them. */
505
+ HR_ORG_MANAGE = "hr:org:manage",
506
+ /** Read employee records, without pay or identity numbers. */
507
+ HR_EMPLOYEE_READ = "hr:employee:read",
508
+ /** Add and change employee records, record a job change, and end somebody's employment. */
509
+ HR_EMPLOYEE_MANAGE = "hr:employee:manage",
510
+ /** Read pay, identity numbers and bank details. Its own permission, because keeping a directory right does not need them. */
511
+ HR_COMPENSATION_READ = "hr:compensation:read",
512
+ /** Change them. */
513
+ HR_COMPENSATION_MANAGE = "hr:compensation:manage",
514
+ /** See who read or changed pay and identity numbers, which reading them does not show. */
515
+ HR_AUDIT_READ = "hr:audit:read",
516
+ /** See everybody's time off, balances and the holiday calendar. A manager sees their own reports without this. */
517
+ HR_TIME_OFF_READ = "hr:time-off:read",
518
+ /** Decide anybody's time off, adjust balances, and change leave types and holidays. */
519
+ HR_TIME_OFF_MANAGE = "hr:time-off:manage",
520
+ /** See everybody's attendance and timesheets. */
521
+ HR_ATTENDANCE_READ = "hr:attendance:read",
522
+ /** Change attendance and decide corrections. */
523
+ HR_ATTENDANCE_MANAGE = "hr:attendance:manage",
524
+ /** Read employee documents and company policies. */
525
+ HR_DOCUMENT_READ = "hr:document:read",
526
+ /** Upload, change and remove them. */
527
+ HR_DOCUMENT_MANAGE = "hr:document:manage",
528
+ /** See onboarding and offboarding checklists. */
529
+ HR_ONBOARDING_READ = "hr:onboarding:read",
530
+ /** Change the templates and start a checklist for somebody. */
531
+ HR_ONBOARDING_MANAGE = "hr:onboarding:manage",
532
+ /** Post and withdraw company announcements. */
533
+ HR_ANNOUNCEMENT_MANAGE = "hr:announcement:manage",
534
+ /** See payroll runs and payslips. */
535
+ HR_PAYROLL_READ = "hr:payroll:read",
536
+ /** Prepare a payroll run. */
537
+ HR_PAYROLL_MANAGE = "hr:payroll:manage",
538
+ /** Approve a payroll run, which freezes every payslip in it. Its own permission, so one person cannot both prepare and sign off. */
539
+ HR_PAYROLL_APPROVE = "hr:payroll:approve",
540
+ /** See job openings and applicants. */
541
+ HR_HIRING_READ = "hr:hiring:read",
542
+ /** Change job openings and move applicants through the pipeline. */
543
+ HR_HIRING_MANAGE = "hr:hiring:manage",
544
+ /** See goals and reviews across the company. A manager sees their own reports without this. */
545
+ HR_PERFORMANCE_READ = "hr:performance:read",
546
+ /** Run review cycles. */
547
+ HR_PERFORMANCE_MANAGE = "hr:performance:manage",
548
+ /** See how a gym is set up: its profile, branches, rooms, classes, staff and plans. */
549
+ GYM_SETUP_READ = "gym:setup:read",
550
+ /** Change how a gym is set up, including its prices and booking rules. */
551
+ GYM_SETUP_MANAGE = "gym:setup:manage",
552
+ /** See members, their memberships and their waivers. */
553
+ GYM_MEMBER_READ = "gym:member:read",
554
+ /** Add and change members, and sell, freeze and cancel memberships. */
555
+ GYM_MEMBER_MANAGE = "gym:member:manage",
556
+ /** See who has come through the door. */
557
+ GYM_DOOR_READ = "gym:door:read",
558
+ /** Scan people in. */
559
+ GYM_DOOR_OPERATE = "gym:door:operate",
560
+ /** Let somebody in whom the rules refused. Its own permission, and recorded with a reason. */
561
+ GYM_DOOR_OVERRIDE = "gym:door:override",
562
+ /** See the timetable and who is booked. */
563
+ GYM_SCHEDULE_READ = "gym:schedule:read",
564
+ /** Change the timetable: patterns, dates, trainers and cancellations. */
565
+ GYM_SCHEDULE_MANAGE = "gym:schedule:manage",
566
+ /** Book people into classes and mark who came. */
567
+ GYM_BOOKING_MANAGE = "gym:booking:manage",
568
+ /** See what has been paid, what is owing and the day's takings. */
569
+ GYM_PAYMENT_READ = "gym:payment:read",
570
+ /** Record money taken at the desk. */
571
+ GYM_PAYMENT_RECORD = "gym:payment:record",
572
+ /** Give money back. Its own permission, because taking money does not imply returning it. */
573
+ GYM_PAYMENT_REFUND = "gym:payment:refund",
574
+ /** Read a member's workouts and measurements. The front desk runs without this. */
575
+ GYM_TRAINING_READ = "gym:training:read",
576
+ /** Write routines, assign them and record measurements, and keep the exercise library. */
577
+ GYM_TRAINING_MANAGE = "gym:training:manage",
578
+ /** Read trial requests and questions sent from a gym's website or app. */
579
+ GYM_LEAD_READ = "gym:lead:read",
580
+ /** Work through them. */
581
+ GYM_LEAD_MANAGE = "gym:lead:manage",
582
+ /** See promo codes and the gallery. */
583
+ GYM_MARKETING_READ = "gym:marketing:read",
584
+ /** Change promo codes and the gallery. */
585
+ GYM_MARKETING_MANAGE = "gym:marketing:manage",
586
+ /** See the owner's reports. */
587
+ GYM_REPORT_READ = "gym:report:read"
502
588
  }
503
589
  /**
504
590
  * Every member, for seeding the owner role and validating custom-role input.
@@ -562,6 +562,93 @@ export var UserPermission;
562
562
  UserPermission["RESTAURANT_MARKETING_MANAGE"] = "restaurant:marketing:manage";
563
563
  /** See sales reports. */
564
564
  UserPermission["RESTAURANT_REPORT_READ"] = "restaurant:report:read";
565
+ // HR
566
+ /** Read a company's HR settings, locations, departments and job titles. */
567
+ UserPermission["HR_ORG_READ"] = "hr:org:read";
568
+ /** Change them. */
569
+ UserPermission["HR_ORG_MANAGE"] = "hr:org:manage";
570
+ /** Read employee records, without pay or identity numbers. */
571
+ UserPermission["HR_EMPLOYEE_READ"] = "hr:employee:read";
572
+ /** Add and change employee records, record a job change, and end somebody's employment. */
573
+ UserPermission["HR_EMPLOYEE_MANAGE"] = "hr:employee:manage";
574
+ /** Read pay, identity numbers and bank details. Its own permission, because keeping a directory right does not need them. */
575
+ UserPermission["HR_COMPENSATION_READ"] = "hr:compensation:read";
576
+ /** Change them. */
577
+ UserPermission["HR_COMPENSATION_MANAGE"] = "hr:compensation:manage";
578
+ /** See who read or changed pay and identity numbers, which reading them does not show. */
579
+ UserPermission["HR_AUDIT_READ"] = "hr:audit:read";
580
+ /** See everybody's time off, balances and the holiday calendar. A manager sees their own reports without this. */
581
+ UserPermission["HR_TIME_OFF_READ"] = "hr:time-off:read";
582
+ /** Decide anybody's time off, adjust balances, and change leave types and holidays. */
583
+ UserPermission["HR_TIME_OFF_MANAGE"] = "hr:time-off:manage";
584
+ /** See everybody's attendance and timesheets. */
585
+ UserPermission["HR_ATTENDANCE_READ"] = "hr:attendance:read";
586
+ /** Change attendance and decide corrections. */
587
+ UserPermission["HR_ATTENDANCE_MANAGE"] = "hr:attendance:manage";
588
+ /** Read employee documents and company policies. */
589
+ UserPermission["HR_DOCUMENT_READ"] = "hr:document:read";
590
+ /** Upload, change and remove them. */
591
+ UserPermission["HR_DOCUMENT_MANAGE"] = "hr:document:manage";
592
+ /** See onboarding and offboarding checklists. */
593
+ UserPermission["HR_ONBOARDING_READ"] = "hr:onboarding:read";
594
+ /** Change the templates and start a checklist for somebody. */
595
+ UserPermission["HR_ONBOARDING_MANAGE"] = "hr:onboarding:manage";
596
+ /** Post and withdraw company announcements. */
597
+ UserPermission["HR_ANNOUNCEMENT_MANAGE"] = "hr:announcement:manage";
598
+ /** See payroll runs and payslips. */
599
+ UserPermission["HR_PAYROLL_READ"] = "hr:payroll:read";
600
+ /** Prepare a payroll run. */
601
+ UserPermission["HR_PAYROLL_MANAGE"] = "hr:payroll:manage";
602
+ /** Approve a payroll run, which freezes every payslip in it. Its own permission, so one person cannot both prepare and sign off. */
603
+ UserPermission["HR_PAYROLL_APPROVE"] = "hr:payroll:approve";
604
+ /** See job openings and applicants. */
605
+ UserPermission["HR_HIRING_READ"] = "hr:hiring:read";
606
+ /** Change job openings and move applicants through the pipeline. */
607
+ UserPermission["HR_HIRING_MANAGE"] = "hr:hiring:manage";
608
+ /** See goals and reviews across the company. A manager sees their own reports without this. */
609
+ UserPermission["HR_PERFORMANCE_READ"] = "hr:performance:read";
610
+ /** Run review cycles. */
611
+ UserPermission["HR_PERFORMANCE_MANAGE"] = "hr:performance:manage";
612
+ /** See how a gym is set up: its profile, branches, rooms, classes, staff and plans. */
613
+ UserPermission["GYM_SETUP_READ"] = "gym:setup:read";
614
+ /** Change how a gym is set up, including its prices and booking rules. */
615
+ UserPermission["GYM_SETUP_MANAGE"] = "gym:setup:manage";
616
+ /** See members, their memberships and their waivers. */
617
+ UserPermission["GYM_MEMBER_READ"] = "gym:member:read";
618
+ /** Add and change members, and sell, freeze and cancel memberships. */
619
+ UserPermission["GYM_MEMBER_MANAGE"] = "gym:member:manage";
620
+ /** See who has come through the door. */
621
+ UserPermission["GYM_DOOR_READ"] = "gym:door:read";
622
+ /** Scan people in. */
623
+ UserPermission["GYM_DOOR_OPERATE"] = "gym:door:operate";
624
+ /** Let somebody in whom the rules refused. Its own permission, and recorded with a reason. */
625
+ UserPermission["GYM_DOOR_OVERRIDE"] = "gym:door:override";
626
+ /** See the timetable and who is booked. */
627
+ UserPermission["GYM_SCHEDULE_READ"] = "gym:schedule:read";
628
+ /** Change the timetable: patterns, dates, trainers and cancellations. */
629
+ UserPermission["GYM_SCHEDULE_MANAGE"] = "gym:schedule:manage";
630
+ /** Book people into classes and mark who came. */
631
+ UserPermission["GYM_BOOKING_MANAGE"] = "gym:booking:manage";
632
+ /** See what has been paid, what is owing and the day's takings. */
633
+ UserPermission["GYM_PAYMENT_READ"] = "gym:payment:read";
634
+ /** Record money taken at the desk. */
635
+ UserPermission["GYM_PAYMENT_RECORD"] = "gym:payment:record";
636
+ /** Give money back. Its own permission, because taking money does not imply returning it. */
637
+ UserPermission["GYM_PAYMENT_REFUND"] = "gym:payment:refund";
638
+ /** Read a member's workouts and measurements. The front desk runs without this. */
639
+ UserPermission["GYM_TRAINING_READ"] = "gym:training:read";
640
+ /** Write routines, assign them and record measurements, and keep the exercise library. */
641
+ UserPermission["GYM_TRAINING_MANAGE"] = "gym:training:manage";
642
+ /** Read trial requests and questions sent from a gym's website or app. */
643
+ UserPermission["GYM_LEAD_READ"] = "gym:lead:read";
644
+ /** Work through them. */
645
+ UserPermission["GYM_LEAD_MANAGE"] = "gym:lead:manage";
646
+ /** See promo codes and the gallery. */
647
+ UserPermission["GYM_MARKETING_READ"] = "gym:marketing:read";
648
+ /** Change promo codes and the gallery. */
649
+ UserPermission["GYM_MARKETING_MANAGE"] = "gym:marketing:manage";
650
+ /** See the owner's reports. */
651
+ UserPermission["GYM_REPORT_READ"] = "gym:report:read";
565
652
  })(UserPermission || (UserPermission = {}));
566
653
  /**
567
654
  * Every member, for seeding the owner role and validating custom-role input.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,10 +52,18 @@
52
52
  "types": "./dist/api/clinic/index.d.ts",
53
53
  "default": "./dist/api/clinic/index.js"
54
54
  },
55
+ "./hr": {
56
+ "types": "./dist/api/hr/index.d.ts",
57
+ "default": "./dist/api/hr/index.js"
58
+ },
55
59
  "./restaurant": {
56
60
  "types": "./dist/api/restaurant/index.d.ts",
57
61
  "default": "./dist/api/restaurant/index.js"
58
62
  },
63
+ "./gym": {
64
+ "types": "./dist/api/gym/index.d.ts",
65
+ "default": "./dist/api/gym/index.js"
66
+ },
59
67
  "./mobility": {
60
68
  "types": "./dist/api/mobility/index.d.ts",
61
69
  "default": "./dist/api/mobility/index.js"