@iveri/contracts 0.54.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.
- package/dist/api/gym/gym-booking-refusal.enum.d.ts +14 -0
- package/dist/api/gym/gym-booking-refusal.enum.js +15 -0
- package/dist/api/gym/gym-booking-status.enum.d.ts +9 -0
- package/dist/api/gym/gym-booking-status.enum.js +10 -0
- package/dist/api/gym/gym-branch.type.d.ts +47 -0
- package/dist/api/gym/gym-branch.type.js +1 -0
- package/dist/api/gym/gym-busy-level.enum.d.ts +5 -0
- package/dist/api/gym/gym-busy-level.enum.js +6 -0
- package/dist/api/gym/gym-check-in-outcome.enum.d.ts +6 -0
- package/dist/api/gym/gym-check-in-outcome.enum.js +7 -0
- package/dist/api/gym/gym-check-in-refusal.enum.d.ts +12 -0
- package/dist/api/gym/gym-check-in-refusal.enum.js +13 -0
- package/dist/api/gym/gym-class-access.enum.d.ts +6 -0
- package/dist/api/gym/gym-class-access.enum.js +7 -0
- package/dist/api/gym/gym-class-level.enum.d.ts +6 -0
- package/dist/api/gym/gym-class-level.enum.js +7 -0
- package/dist/api/gym/gym-class-type.type.d.ts +35 -0
- package/dist/api/gym/gym-class-type.type.js +1 -0
- package/dist/api/gym/gym-common.type.d.ts +14 -0
- package/dist/api/gym/gym-common.type.js +1 -0
- package/dist/api/gym/gym-door.type.d.ts +65 -0
- package/dist/api/gym/gym-door.type.js +1 -0
- package/dist/api/gym/gym-duration-unit.enum.d.ts +4 -0
- package/dist/api/gym/gym-duration-unit.enum.js +5 -0
- package/dist/api/gym/gym-entry-kind.enum.d.ts +6 -0
- package/dist/api/gym/gym-entry-kind.enum.js +7 -0
- package/dist/api/gym/gym-equipment.enum.d.ts +11 -0
- package/dist/api/gym/gym-equipment.enum.js +12 -0
- package/dist/api/gym/gym-exercise-category.enum.d.ts +5 -0
- package/dist/api/gym/gym-exercise-category.enum.js +6 -0
- package/dist/api/gym/gym-exercise-measure.enum.d.ts +7 -0
- package/dist/api/gym/gym-exercise-measure.enum.js +8 -0
- package/dist/api/gym/gym-gallery.type.d.ts +17 -0
- package/dist/api/gym/gym-gallery.type.js +1 -0
- package/dist/api/gym/gym-lead-kind.enum.d.ts +5 -0
- package/dist/api/gym/gym-lead-kind.enum.js +6 -0
- package/dist/api/gym/gym-lead-status.enum.d.ts +7 -0
- package/dist/api/gym/gym-lead-status.enum.js +8 -0
- package/dist/api/gym/gym-lead.type.d.ts +32 -0
- package/dist/api/gym/gym-lead.type.js +1 -0
- package/dist/api/gym/gym-me.type.d.ts +115 -0
- package/dist/api/gym/gym-me.type.js +1 -0
- package/dist/api/gym/gym-member.type.d.ts +55 -0
- package/dist/api/gym/gym-member.type.js +1 -0
- package/dist/api/gym/gym-membership-status.enum.d.ts +14 -0
- package/dist/api/gym/gym-membership-status.enum.js +15 -0
- package/dist/api/gym/gym-membership.type.d.ts +93 -0
- package/dist/api/gym/gym-membership.type.js +1 -0
- package/dist/api/gym/gym-muscle-group.enum.d.ts +13 -0
- package/dist/api/gym/gym-muscle-group.enum.js +14 -0
- package/dist/api/gym/gym-payment-kind.enum.d.ts +4 -0
- package/dist/api/gym/gym-payment-kind.enum.js +5 -0
- package/dist/api/gym/gym-payment-method.enum.d.ts +6 -0
- package/dist/api/gym/gym-payment-method.enum.js +7 -0
- package/dist/api/gym/gym-payment.type.d.ts +59 -0
- package/dist/api/gym/gym-payment.type.js +1 -0
- package/dist/api/gym/gym-plan-activation.enum.d.ts +5 -0
- package/dist/api/gym/gym-plan-activation.enum.js +6 -0
- package/dist/api/gym/gym-plan.type.d.ts +72 -0
- package/dist/api/gym/gym-plan.type.js +1 -0
- package/dist/api/gym/gym-profile.type.d.ts +65 -0
- package/dist/api/gym/gym-profile.type.js +1 -0
- package/dist/api/gym/gym-promo-code.type.d.ts +33 -0
- package/dist/api/gym/gym-promo-code.type.js +1 -0
- package/dist/api/gym/gym-public.type.d.ts +114 -0
- package/dist/api/gym/gym-public.type.js +1 -0
- package/dist/api/gym/gym-record-kind.enum.d.ts +7 -0
- package/dist/api/gym/gym-record-kind.enum.js +8 -0
- package/dist/api/gym/gym-report.type.d.ts +73 -0
- package/dist/api/gym/gym-report.type.js +1 -0
- package/dist/api/gym/gym-resource-status.enum.d.ts +5 -0
- package/dist/api/gym/gym-resource-status.enum.js +6 -0
- package/dist/api/gym/gym-room.type.d.ts +27 -0
- package/dist/api/gym/gym-room.type.js +1 -0
- package/dist/api/gym/gym-schedule.type.d.ts +122 -0
- package/dist/api/gym/gym-schedule.type.js +1 -0
- package/dist/api/gym/gym-session-kind.enum.d.ts +4 -0
- package/dist/api/gym/gym-session-kind.enum.js +5 -0
- package/dist/api/gym/gym-session-status.enum.d.ts +4 -0
- package/dist/api/gym/gym-session-status.enum.js +5 -0
- package/dist/api/gym/gym-signature-method.enum.d.ts +4 -0
- package/dist/api/gym/gym-signature-method.enum.js +5 -0
- package/dist/api/gym/gym-staff.type.d.ts +46 -0
- package/dist/api/gym/gym-staff.type.js +1 -0
- package/dist/api/gym/gym-training.type.d.ts +179 -0
- package/dist/api/gym/gym-training.type.js +1 -0
- package/dist/api/gym/gym-waiver.type.d.ts +32 -0
- package/dist/api/gym/gym-waiver.type.js +1 -0
- package/dist/api/gym/index.d.ts +44 -0
- package/dist/api/gym/index.js +44 -0
- package/dist/api/realtime/realtime-event-type.enum.d.ts +3 -1
- package/dist/api/realtime/realtime-event-type.enum.js +2 -0
- package/dist/api/realtime/realtime-resource-type.enum.d.ts +2 -1
- package/dist/api/realtime/realtime-resource-type.enum.js +1 -0
- package/dist/enum/user-permission.enum.d.ts +41 -1
- package/dist/enum/user-permission.enum.js +40 -0
- package/package.json +5 -1
|
@@ -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 = {}));
|
|
@@ -544,7 +544,47 @@ export declare enum UserPermission {
|
|
|
544
544
|
/** See goals and reviews across the company. A manager sees their own reports without this. */
|
|
545
545
|
HR_PERFORMANCE_READ = "hr:performance:read",
|
|
546
546
|
/** Run review cycles. */
|
|
547
|
-
HR_PERFORMANCE_MANAGE = "hr:performance:manage"
|
|
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"
|
|
548
588
|
}
|
|
549
589
|
/**
|
|
550
590
|
* Every member, for seeding the owner role and validating custom-role input.
|
|
@@ -609,6 +609,46 @@ export var UserPermission;
|
|
|
609
609
|
UserPermission["HR_PERFORMANCE_READ"] = "hr:performance:read";
|
|
610
610
|
/** Run review cycles. */
|
|
611
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";
|
|
612
652
|
})(UserPermission || (UserPermission = {}));
|
|
613
653
|
/**
|
|
614
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.
|
|
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": {
|
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
"types": "./dist/api/restaurant/index.d.ts",
|
|
61
61
|
"default": "./dist/api/restaurant/index.js"
|
|
62
62
|
},
|
|
63
|
+
"./gym": {
|
|
64
|
+
"types": "./dist/api/gym/index.d.ts",
|
|
65
|
+
"default": "./dist/api/gym/index.js"
|
|
66
|
+
},
|
|
63
67
|
"./mobility": {
|
|
64
68
|
"types": "./dist/api/mobility/index.d.ts",
|
|
65
69
|
"default": "./dist/api/mobility/index.js"
|