@iveri/contracts 0.117.0 → 0.118.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.
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A gym refusal a person can act on, sent as `details.reason` so a client says it in the reader's language rather than
|
|
3
|
+
* showing the API's English. Booking a place and the door keep their own enums, `GymBookingRefusal` and
|
|
4
|
+
* `GymCheckInRefusal`; these are the rest, and no value is shared with either.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum GymRefusal {
|
|
7
|
+
/** The trainer has time off then. */
|
|
8
|
+
TRAINER_AWAY = "trainer-away",
|
|
9
|
+
/** Outside the trainer's working hours. */
|
|
10
|
+
TRAINER_NOT_WORKING = "trainer-not-working",
|
|
11
|
+
/** The trainer does not take personal sessions booked by members. */
|
|
12
|
+
TRAINER_NO_PERSONAL = "trainer-no-personal",
|
|
13
|
+
/** The trainer or the room already has a session at that time. */
|
|
14
|
+
TIME_TAKEN = "time-taken",
|
|
15
|
+
/** The trainer does not work at that branch. */
|
|
16
|
+
TRAINER_OTHER_BRANCH = "trainer-other-branch",
|
|
17
|
+
/** The session has started, so it, or a place in it, can no longer be given up. */
|
|
18
|
+
SESSION_STARTED = "session-started",
|
|
19
|
+
/** A session cannot be made smaller than the people already booked; `details.bookedCount` says how many. */
|
|
20
|
+
CAPACITY_BELOW_BOOKED = "capacity-below-booked",
|
|
21
|
+
/** The trainer already has time off overlapping those days. */
|
|
22
|
+
TIME_OFF_OVERLAP = "time-off-overlap",
|
|
23
|
+
/** The plan is no longer sold. */
|
|
24
|
+
PLAN_OFF_SALE = "plan-off-sale",
|
|
25
|
+
/** The member already has that plan on those days. */
|
|
26
|
+
PLAN_OVERLAP = "plan-overlap",
|
|
27
|
+
/** The member cannot freeze this membership themselves; the desk can. */
|
|
28
|
+
FREEZE_AT_DESK = "freeze-at-desk",
|
|
29
|
+
/** Only a current or upcoming membership can be frozen. */
|
|
30
|
+
FREEZE_NOT_CURRENT = "freeze-not-current",
|
|
31
|
+
/** More days than the membership has left to freeze; `details.freezeDaysLeft` says how many it has. */
|
|
32
|
+
FREEZE_DAYS_EXCEEDED = "freeze-days-exceeded",
|
|
33
|
+
/** Those days overlap another freeze or a renewal already paid for. */
|
|
34
|
+
FREEZE_OVERLAP = "freeze-overlap",
|
|
35
|
+
/** More than is left of the payment to give back. */
|
|
36
|
+
REFUND_EXCEEDS_PAYMENT = "refund-exceeds-payment",
|
|
37
|
+
/** The branch is closed, so nobody is let in there. */
|
|
38
|
+
BRANCH_CLOSED = "branch-closed",
|
|
39
|
+
/** The same code was scanned a moment ago. */
|
|
40
|
+
JUST_SCANNED = "just-scanned",
|
|
41
|
+
/** The promo code cannot be used. Which rule refused it is not said: a code is not an oracle for its limits. */
|
|
42
|
+
PROMO_INVALID = "promo-invalid",
|
|
43
|
+
/** The member already has an app account, so there is nothing to invite. */
|
|
44
|
+
MEMBER_HAS_ACCOUNT = "member-has-account",
|
|
45
|
+
/** This account already belongs to a member of this gym. */
|
|
46
|
+
ALREADY_A_MEMBER = "already-a-member",
|
|
47
|
+
/** The email confirmation link is too old; a new one is sent from the account. */
|
|
48
|
+
LINK_EXPIRED = "link-expired",
|
|
49
|
+
/** The member has already signed this version of the waiver. */
|
|
50
|
+
WAIVER_SIGNED = "waiver-signed"
|
|
51
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A gym refusal a person can act on, sent as `details.reason` so a client says it in the reader's language rather than
|
|
3
|
+
* showing the API's English. Booking a place and the door keep their own enums, `GymBookingRefusal` and
|
|
4
|
+
* `GymCheckInRefusal`; these are the rest, and no value is shared with either.
|
|
5
|
+
*/
|
|
6
|
+
export var GymRefusal;
|
|
7
|
+
(function (GymRefusal) {
|
|
8
|
+
/** The trainer has time off then. */
|
|
9
|
+
GymRefusal["TRAINER_AWAY"] = "trainer-away";
|
|
10
|
+
/** Outside the trainer's working hours. */
|
|
11
|
+
GymRefusal["TRAINER_NOT_WORKING"] = "trainer-not-working";
|
|
12
|
+
/** The trainer does not take personal sessions booked by members. */
|
|
13
|
+
GymRefusal["TRAINER_NO_PERSONAL"] = "trainer-no-personal";
|
|
14
|
+
/** The trainer or the room already has a session at that time. */
|
|
15
|
+
GymRefusal["TIME_TAKEN"] = "time-taken";
|
|
16
|
+
/** The trainer does not work at that branch. */
|
|
17
|
+
GymRefusal["TRAINER_OTHER_BRANCH"] = "trainer-other-branch";
|
|
18
|
+
/** The session has started, so it, or a place in it, can no longer be given up. */
|
|
19
|
+
GymRefusal["SESSION_STARTED"] = "session-started";
|
|
20
|
+
/** A session cannot be made smaller than the people already booked; `details.bookedCount` says how many. */
|
|
21
|
+
GymRefusal["CAPACITY_BELOW_BOOKED"] = "capacity-below-booked";
|
|
22
|
+
/** The trainer already has time off overlapping those days. */
|
|
23
|
+
GymRefusal["TIME_OFF_OVERLAP"] = "time-off-overlap";
|
|
24
|
+
/** The plan is no longer sold. */
|
|
25
|
+
GymRefusal["PLAN_OFF_SALE"] = "plan-off-sale";
|
|
26
|
+
/** The member already has that plan on those days. */
|
|
27
|
+
GymRefusal["PLAN_OVERLAP"] = "plan-overlap";
|
|
28
|
+
/** The member cannot freeze this membership themselves; the desk can. */
|
|
29
|
+
GymRefusal["FREEZE_AT_DESK"] = "freeze-at-desk";
|
|
30
|
+
/** Only a current or upcoming membership can be frozen. */
|
|
31
|
+
GymRefusal["FREEZE_NOT_CURRENT"] = "freeze-not-current";
|
|
32
|
+
/** More days than the membership has left to freeze; `details.freezeDaysLeft` says how many it has. */
|
|
33
|
+
GymRefusal["FREEZE_DAYS_EXCEEDED"] = "freeze-days-exceeded";
|
|
34
|
+
/** Those days overlap another freeze or a renewal already paid for. */
|
|
35
|
+
GymRefusal["FREEZE_OVERLAP"] = "freeze-overlap";
|
|
36
|
+
/** More than is left of the payment to give back. */
|
|
37
|
+
GymRefusal["REFUND_EXCEEDS_PAYMENT"] = "refund-exceeds-payment";
|
|
38
|
+
/** The branch is closed, so nobody is let in there. */
|
|
39
|
+
GymRefusal["BRANCH_CLOSED"] = "branch-closed";
|
|
40
|
+
/** The same code was scanned a moment ago. */
|
|
41
|
+
GymRefusal["JUST_SCANNED"] = "just-scanned";
|
|
42
|
+
/** The promo code cannot be used. Which rule refused it is not said: a code is not an oracle for its limits. */
|
|
43
|
+
GymRefusal["PROMO_INVALID"] = "promo-invalid";
|
|
44
|
+
/** The member already has an app account, so there is nothing to invite. */
|
|
45
|
+
GymRefusal["MEMBER_HAS_ACCOUNT"] = "member-has-account";
|
|
46
|
+
/** This account already belongs to a member of this gym. */
|
|
47
|
+
GymRefusal["ALREADY_A_MEMBER"] = "already-a-member";
|
|
48
|
+
/** The email confirmation link is too old; a new one is sent from the account. */
|
|
49
|
+
GymRefusal["LINK_EXPIRED"] = "link-expired";
|
|
50
|
+
/** The member has already signed this version of the waiver. */
|
|
51
|
+
GymRefusal["WAIVER_SIGNED"] = "waiver-signed";
|
|
52
|
+
})(GymRefusal || (GymRefusal = {}));
|
package/dist/api/gym/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './gym-profile.type.js';
|
|
|
32
32
|
export * from './gym-promo-code.type.js';
|
|
33
33
|
export * from './gym-public.type.js';
|
|
34
34
|
export * from './gym-record-kind.enum.js';
|
|
35
|
+
export * from './gym-refusal.enum.js';
|
|
35
36
|
export * from './gym-report.type.js';
|
|
36
37
|
export * from './gym-resource-status.enum.js';
|
|
37
38
|
export * from './gym-room.type.js';
|
package/dist/api/gym/index.js
CHANGED
|
@@ -32,6 +32,7 @@ export * from './gym-profile.type.js';
|
|
|
32
32
|
export * from './gym-promo-code.type.js';
|
|
33
33
|
export * from './gym-public.type.js';
|
|
34
34
|
export * from './gym-record-kind.enum.js';
|
|
35
|
+
export * from './gym-refusal.enum.js';
|
|
35
36
|
export * from './gym-report.type.js';
|
|
36
37
|
export * from './gym-resource-status.enum.js';
|
|
37
38
|
export * from './gym-room.type.js';
|