@iveri/contracts 0.131.0 → 0.133.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/README.md CHANGED
@@ -308,6 +308,10 @@ Conduit's outbox.
308
308
  - Version `0.131.0` adds `mobility:dispatch:create-any`, `mobility:dispatch:read-any`, `mobility:dispatch:operate-any`,
309
309
  `mobility:worker:read-any` and `mobility:worker:rating:submit-any`, so taxi's and delivery's operator-workspace keys
310
310
  dispatch, observe, release and rate in the company a request names.
311
+ - Version `0.133.0` adds `GymMyProfile.bookingPausedUntil`, `GymMember.bookingPausedUntil` and
312
+ `PublicGym.waitlistCutoffMinutes`, so a member is told before trying that no-shows have paused their booking.
313
+ - Version `0.132.0` adds `HrRefusal.WITHDRAWN` (`withdrawn`): a decision refused because the claim, letter or time off
314
+ was taken back before anybody decided it, so a client can tell that apart from `already-decided`.
311
315
  - Version `0.130.0` adds `profile:read-any`, so a product's operator-workspace key reads the public profile
312
316
  of somebody in the company a request names.
313
317
  - Version `0.128.0` adds `CommerceRefusal.ORDER_MOVED_ON` (`order-moved-on`), a stale order or shipment status change.
@@ -30,6 +30,11 @@ export interface GymMyProfile {
30
30
  isWaiverSigned: boolean;
31
31
  /** What still has to be signed, or null when nothing does. */
32
32
  waiverToSign: Nullable<GymWaiver>;
33
+ /**
34
+ * Until when booking a class or joining a waitlist is paused after repeated no-shows, or null when it is not.
35
+ * The same rule refuses a booking with `no-show-blocked`; the desk can still book them.
36
+ */
37
+ bookingPausedUntil: Nullable<IsoDateTime>;
33
38
  }
34
39
  export interface JoinGymRequest {
35
40
  firstName: string;
@@ -35,6 +35,8 @@ export interface GymMember extends GymMemberSummary {
35
35
  isEmailConfirmed: boolean;
36
36
  isWaiverSigned: boolean;
37
37
  status: GymResourceStatus;
38
+ /** Until when they cannot book for themselves after repeated no-shows, or null. The desk is not held to it. */
39
+ bookingPausedUntil: Nullable<IsoDateTime>;
38
40
  updatedAt: IsoDateTime;
39
41
  }
40
42
  export interface CreateGymMemberRequest {
@@ -29,6 +29,8 @@ export interface PublicGym {
29
29
  currency: string;
30
30
  bookingHorizonDays: number;
31
31
  cancelCutoffMinutes: number;
32
+ /** Within this many minutes of a class starting, a full class takes nobody onto its waitlist. */
33
+ waitlistCutoffMinutes: number;
32
34
  }
33
35
  export interface PublicGymBranch {
34
36
  id: UUID;
@@ -24,8 +24,13 @@ export declare enum HrRefusal {
24
24
  LEAVE_STARTED = "leave-started",
25
25
  /** The request can no longer be cancelled. */
26
26
  NOT_CANCELLABLE = "not-cancellable",
27
- /** Somebody has already decided it: a request, a correction, a letter or a probation. */
27
+ /** Somebody has already decided it: a request, a correction, a letter, a claim or a probation. */
28
28
  ALREADY_DECIDED = "already-decided",
29
+ /**
30
+ * It was taken back before anybody decided it, so there is nothing left to decide: a claim or a letter the person
31
+ * withdrew, or time off called off while it was waiting.
32
+ */
33
+ WITHDRAWN = "withdrawn",
29
34
  /** The person has left the company. */
30
35
  PERSON_LEFT = "person-left",
31
36
  /** Some of those days are already in a plan. */
@@ -26,8 +26,13 @@ export var HrRefusal;
26
26
  HrRefusal["LEAVE_STARTED"] = "leave-started";
27
27
  /** The request can no longer be cancelled. */
28
28
  HrRefusal["NOT_CANCELLABLE"] = "not-cancellable";
29
- /** Somebody has already decided it: a request, a correction, a letter or a probation. */
29
+ /** Somebody has already decided it: a request, a correction, a letter, a claim or a probation. */
30
30
  HrRefusal["ALREADY_DECIDED"] = "already-decided";
31
+ /**
32
+ * It was taken back before anybody decided it, so there is nothing left to decide: a claim or a letter the person
33
+ * withdrew, or time off called off while it was waiting.
34
+ */
35
+ HrRefusal["WITHDRAWN"] = "withdrawn";
31
36
  /** The person has left the company. */
32
37
  HrRefusal["PERSON_LEFT"] = "person-left";
33
38
  /** Some of those days are already in a plan. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.131.0",
3
+ "version": "0.133.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {