vairified 0.6.0 → 0.7.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
@@ -495,6 +495,7 @@ member.gender // 'MALE' | 'FEMALE' | 'OTHER' | 'UNKNOWN' | n
495
495
  member.age / city / state / zip / country
496
496
  member.status.isWheelchair // global status flags
497
497
  member.status.isAmbassador
498
+ member.status.isVairPlus // holds a PAID VAIR+ membership
498
499
  member.status.isConnected
499
500
  member.sport // MemberSportMap
500
501
  member.sports // readonly string[] of sport codes
@@ -528,7 +529,8 @@ for (const [key, split] of pb ?? []) { /* iterate */ }
528
529
  `isVairProStatus` moved off the member `status` object onto each per-sport
529
530
  entry — read them via `member.sport.get(code)?.isVairified` instead of
530
531
  `member.status.isVairified`. The `status` object keeps only the genuinely
531
- global flags (`isWheelchair`, `isAmbassador`, `isConnected`). This mirrors
532
+ global flags — at that release, `isWheelchair`, `isAmbassador` and
533
+ `isConnected`; `isVairPlus` joined them in 0.7.0. This mirrors
532
534
  the backend: a player can be VAIRified / a VAIR Pro in one sport but not
533
535
  another. Publish only after the backend #788 reaches production — against
534
536
  the old prod shape the per-sport flags default to `false`/`null`.
package/dist/index.d.cts CHANGED
@@ -138,6 +138,19 @@ type VairProStatus = 'PENDING' | 'ACTIVE' | null;
138
138
  interface MemberStatusWire {
139
139
  readonly isWheelchair: boolean;
140
140
  readonly isAmbassador: boolean;
141
+ /**
142
+ * Whether the player currently holds a **paid VAIR+ membership** — the field to check when a
143
+ * partner requires VAIR+ for entry.
144
+ *
145
+ * `false` covers both "never bought" and "bought once, no longer active", and is also `false`
146
+ * during the automatic 30-day trial every new VAIR account receives: a trial is not a paid
147
+ * membership.
148
+ *
149
+ * Not to be confused with the per-sport `isVairPro` / `isRater` on each
150
+ * {@link SportRatingWire} — that is the VAIR **Pro** certified-rater programme, a different
151
+ * product whose name differs by two characters.
152
+ */
153
+ readonly isVairPlus: boolean;
141
154
  readonly isConnected: boolean;
142
155
  }
143
156
  /**
package/dist/index.d.ts CHANGED
@@ -138,6 +138,19 @@ type VairProStatus = 'PENDING' | 'ACTIVE' | null;
138
138
  interface MemberStatusWire {
139
139
  readonly isWheelchair: boolean;
140
140
  readonly isAmbassador: boolean;
141
+ /**
142
+ * Whether the player currently holds a **paid VAIR+ membership** — the field to check when a
143
+ * partner requires VAIR+ for entry.
144
+ *
145
+ * `false` covers both "never bought" and "bought once, no longer active", and is also `false`
146
+ * during the automatic 30-day trial every new VAIR account receives: a trial is not a paid
147
+ * membership.
148
+ *
149
+ * Not to be confused with the per-sport `isVairPro` / `isRater` on each
150
+ * {@link SportRatingWire} — that is the VAIR **Pro** certified-rater programme, a different
151
+ * product whose name differs by two characters.
152
+ */
153
+ readonly isVairPlus: boolean;
141
154
  readonly isConnected: boolean;
142
155
  }
143
156
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vairified",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Official TypeScript/JavaScript SDK for the Vairified Partner API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",