@iveri/contracts 0.52.0 → 0.54.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 (69) hide show
  1. package/dist/api/hr/hr-access-action.enum.d.ts +7 -0
  2. package/dist/api/hr/hr-access-action.enum.js +8 -0
  3. package/dist/api/hr/hr-employment-event-kind.enum.d.ts +8 -0
  4. package/dist/api/hr/hr-employment-event-kind.enum.js +9 -0
  5. package/dist/api/hr/hr-employment-status.enum.d.ts +13 -0
  6. package/dist/api/hr/hr-employment-status.enum.js +14 -0
  7. package/dist/api/hr/hr-employment-type.enum.d.ts +6 -0
  8. package/dist/api/hr/hr-employment-type.enum.js +7 -0
  9. package/dist/api/hr/hr-leave-accrual.enum.d.ts +7 -0
  10. package/dist/api/hr/hr-leave-accrual.enum.js +8 -0
  11. package/dist/api/hr/hr-leave-ledger-kind.enum.d.ts +9 -0
  12. package/dist/api/hr/hr-leave-ledger-kind.enum.js +10 -0
  13. package/dist/api/hr/hr-leave-request-status.enum.d.ts +6 -0
  14. package/dist/api/hr/hr-leave-request-status.enum.js +7 -0
  15. package/dist/api/hr/hr-pay-period.enum.d.ts +4 -0
  16. package/dist/api/hr/hr-pay-period.enum.js +5 -0
  17. package/dist/api/hr/hr-resource-status.enum.d.ts +5 -0
  18. package/dist/api/hr/hr-resource-status.enum.js +6 -0
  19. package/dist/api/hr/index.d.ts +10 -0
  20. package/dist/api/hr/index.js +10 -0
  21. package/dist/api/hr/localized-text.type.d.ts +7 -0
  22. package/dist/api/hr/localized-text.type.js +1 -0
  23. package/dist/api/realtime/realtime-event-type.enum.d.ts +8 -1
  24. package/dist/api/realtime/realtime-event-type.enum.js +7 -0
  25. package/dist/api/realtime/realtime-resource-type.enum.d.ts +3 -1
  26. package/dist/api/realtime/realtime-resource-type.enum.js +2 -0
  27. package/dist/api/restaurant/index.d.ts +19 -0
  28. package/dist/api/restaurant/index.js +19 -0
  29. package/dist/api/restaurant/restaurant-allergen.enum.d.ts +17 -0
  30. package/dist/api/restaurant/restaurant-allergen.enum.js +18 -0
  31. package/dist/api/restaurant/restaurant-bill-status.enum.d.ts +6 -0
  32. package/dist/api/restaurant/restaurant-bill-status.enum.js +7 -0
  33. package/dist/api/restaurant/restaurant-bill.type.d.ts +124 -0
  34. package/dist/api/restaurant/restaurant-bill.type.js +1 -0
  35. package/dist/api/restaurant/restaurant-branch.type.d.ts +69 -0
  36. package/dist/api/restaurant/restaurant-branch.type.js +1 -0
  37. package/dist/api/restaurant/restaurant-channel.enum.d.ts +6 -0
  38. package/dist/api/restaurant/restaurant-channel.enum.js +7 -0
  39. package/dist/api/restaurant/restaurant-dietary-tag.enum.d.ts +9 -0
  40. package/dist/api/restaurant/restaurant-dietary-tag.enum.js +10 -0
  41. package/dist/api/restaurant/restaurant-floor.type.d.ts +29 -0
  42. package/dist/api/restaurant/restaurant-floor.type.js +1 -0
  43. package/dist/api/restaurant/restaurant-kitchen.type.d.ts +48 -0
  44. package/dist/api/restaurant/restaurant-kitchen.type.js +1 -0
  45. package/dist/api/restaurant/restaurant-line-status.enum.d.ts +7 -0
  46. package/dist/api/restaurant/restaurant-line-status.enum.js +8 -0
  47. package/dist/api/restaurant/restaurant-menu.type.d.ts +141 -0
  48. package/dist/api/restaurant/restaurant-menu.type.js +1 -0
  49. package/dist/api/restaurant/restaurant-order-source.enum.d.ts +6 -0
  50. package/dist/api/restaurant/restaurant-order-source.enum.js +7 -0
  51. package/dist/api/restaurant/restaurant-order-status.enum.d.ts +16 -0
  52. package/dist/api/restaurant/restaurant-order-status.enum.js +17 -0
  53. package/dist/api/restaurant/restaurant-order.type.d.ts +81 -0
  54. package/dist/api/restaurant/restaurant-order.type.js +1 -0
  55. package/dist/api/restaurant/restaurant-payment-method.enum.d.ts +6 -0
  56. package/dist/api/restaurant/restaurant-payment-method.enum.js +7 -0
  57. package/dist/api/restaurant/restaurant-profile.type.d.ts +40 -0
  58. package/dist/api/restaurant/restaurant-profile.type.js +1 -0
  59. package/dist/api/restaurant/restaurant-public.type.d.ts +129 -0
  60. package/dist/api/restaurant/restaurant-public.type.js +1 -0
  61. package/dist/api/restaurant/restaurant-resource-status.enum.d.ts +5 -0
  62. package/dist/api/restaurant/restaurant-resource-status.enum.js +6 -0
  63. package/dist/api/restaurant/restaurant-service-request.type.d.ts +16 -0
  64. package/dist/api/restaurant/restaurant-service-request.type.js +5 -0
  65. package/dist/api/restaurant/restaurant-table.type.d.ts +51 -0
  66. package/dist/api/restaurant/restaurant-table.type.js +1 -0
  67. package/dist/enum/user-permission.enum.d.ts +83 -1
  68. package/dist/enum/user-permission.enum.js +84 -0
  69. package/package.json +9 -1
@@ -462,7 +462,89 @@ export declare enum UserPermission {
462
462
  /** Record money taken at the desk and sell prepaid courses. */
463
463
  CLINIC_PAYMENT_RECORD = "clinic:payment:record",
464
464
  /** Give money back. Its own permission, because reception taking money does not imply returning it. */
465
- CLINIC_PAYMENT_REFUND = "clinic:payment:refund"
465
+ CLINIC_PAYMENT_REFUND = "clinic:payment:refund",
466
+ /** Read a restaurant's profile, branches, tables and kitchen stations. */
467
+ RESTAURANT_SETUP_READ = "restaurant:setup:read",
468
+ /** Change them, including what each branch offers. */
469
+ RESTAURANT_SETUP_MANAGE = "restaurant:setup:manage",
470
+ /** Read the menu as staff see it, including what is hidden. */
471
+ RESTAURANT_MENU_READ = "restaurant:menu:read",
472
+ /** Change the menu: dishes, prices, modifiers, photographs. */
473
+ RESTAURANT_MENU_MANAGE = "restaurant:menu:manage",
474
+ /** Say a dish has run out. A cook can do this without being able to change a price. */
475
+ RESTAURANT_STOCK_MANAGE = "restaurant:stock:manage",
476
+ /** See orders, bills and the floor. */
477
+ RESTAURANT_ORDER_READ = "restaurant:order:read",
478
+ /** Take, accept, cancel and hand over orders, and answer a table's requests. */
479
+ RESTAURANT_ORDER_MANAGE = "restaurant:order:manage",
480
+ /** See the kitchen screen and move plates along it. */
481
+ RESTAURANT_KITCHEN_OPERATE = "restaurant:kitchen:operate",
482
+ /** See what has been paid and the day's takings. */
483
+ RESTAURANT_PAYMENT_READ = "restaurant:payment:read",
484
+ /** Record money taken at the table or till. */
485
+ RESTAURANT_PAYMENT_RECORD = "restaurant:payment:record",
486
+ /** Give money back. Its own permission, because taking money does not imply returning it. */
487
+ RESTAURANT_PAYMENT_REFUND = "restaurant:payment:refund",
488
+ /** See the booking book. */
489
+ RESTAURANT_RESERVATION_READ = "restaurant:reservation:read",
490
+ /** Take, seat and cancel bookings. */
491
+ RESTAURANT_RESERVATION_MANAGE = "restaurant:reservation:manage",
492
+ /** See a restaurant's diners. */
493
+ RESTAURANT_CUSTOMER_READ = "restaurant:customer:read",
494
+ /** Change what is held about them. */
495
+ RESTAURANT_CUSTOMER_MANAGE = "restaurant:customer:manage",
496
+ /** See promotions and reviews. */
497
+ RESTAURANT_MARKETING_READ = "restaurant:marketing:read",
498
+ /** Change promotions and moderate reviews. */
499
+ RESTAURANT_MARKETING_MANAGE = "restaurant:marketing:manage",
500
+ /** See sales reports. */
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"
466
548
  }
467
549
  /**
468
550
  * Every member, for seeding the owner role and validating custom-role input.
@@ -525,6 +525,90 @@ export var UserPermission;
525
525
  UserPermission["CLINIC_PAYMENT_RECORD"] = "clinic:payment:record";
526
526
  /** Give money back. Its own permission, because reception taking money does not imply returning it. */
527
527
  UserPermission["CLINIC_PAYMENT_REFUND"] = "clinic:payment:refund";
528
+ // Restaurant
529
+ /** Read a restaurant's profile, branches, tables and kitchen stations. */
530
+ UserPermission["RESTAURANT_SETUP_READ"] = "restaurant:setup:read";
531
+ /** Change them, including what each branch offers. */
532
+ UserPermission["RESTAURANT_SETUP_MANAGE"] = "restaurant:setup:manage";
533
+ /** Read the menu as staff see it, including what is hidden. */
534
+ UserPermission["RESTAURANT_MENU_READ"] = "restaurant:menu:read";
535
+ /** Change the menu: dishes, prices, modifiers, photographs. */
536
+ UserPermission["RESTAURANT_MENU_MANAGE"] = "restaurant:menu:manage";
537
+ /** Say a dish has run out. A cook can do this without being able to change a price. */
538
+ UserPermission["RESTAURANT_STOCK_MANAGE"] = "restaurant:stock:manage";
539
+ /** See orders, bills and the floor. */
540
+ UserPermission["RESTAURANT_ORDER_READ"] = "restaurant:order:read";
541
+ /** Take, accept, cancel and hand over orders, and answer a table's requests. */
542
+ UserPermission["RESTAURANT_ORDER_MANAGE"] = "restaurant:order:manage";
543
+ /** See the kitchen screen and move plates along it. */
544
+ UserPermission["RESTAURANT_KITCHEN_OPERATE"] = "restaurant:kitchen:operate";
545
+ /** See what has been paid and the day's takings. */
546
+ UserPermission["RESTAURANT_PAYMENT_READ"] = "restaurant:payment:read";
547
+ /** Record money taken at the table or till. */
548
+ UserPermission["RESTAURANT_PAYMENT_RECORD"] = "restaurant:payment:record";
549
+ /** Give money back. Its own permission, because taking money does not imply returning it. */
550
+ UserPermission["RESTAURANT_PAYMENT_REFUND"] = "restaurant:payment:refund";
551
+ /** See the booking book. */
552
+ UserPermission["RESTAURANT_RESERVATION_READ"] = "restaurant:reservation:read";
553
+ /** Take, seat and cancel bookings. */
554
+ UserPermission["RESTAURANT_RESERVATION_MANAGE"] = "restaurant:reservation:manage";
555
+ /** See a restaurant's diners. */
556
+ UserPermission["RESTAURANT_CUSTOMER_READ"] = "restaurant:customer:read";
557
+ /** Change what is held about them. */
558
+ UserPermission["RESTAURANT_CUSTOMER_MANAGE"] = "restaurant:customer:manage";
559
+ /** See promotions and reviews. */
560
+ UserPermission["RESTAURANT_MARKETING_READ"] = "restaurant:marketing:read";
561
+ /** Change promotions and moderate reviews. */
562
+ UserPermission["RESTAURANT_MARKETING_MANAGE"] = "restaurant:marketing:manage";
563
+ /** See sales reports. */
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";
528
612
  })(UserPermission || (UserPermission = {}));
529
613
  /**
530
614
  * 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.52.0",
3
+ "version": "0.54.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,6 +52,14 @@
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
+ },
59
+ "./restaurant": {
60
+ "types": "./dist/api/restaurant/index.d.ts",
61
+ "default": "./dist/api/restaurant/index.js"
62
+ },
55
63
  "./mobility": {
56
64
  "types": "./dist/api/mobility/index.d.ts",
57
65
  "default": "./dist/api/mobility/index.js"