hevy-shared 1.0.896 → 1.0.898

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/built/index.d.ts CHANGED
@@ -293,7 +293,6 @@ export interface BackofficeExistingUserResponse {
293
293
  public_api_key: string | null;
294
294
  limited_discovery: boolean;
295
295
  coach_trial_expire_date?: string;
296
- is_hevy_trainer_beta_enabled: boolean;
297
296
  hevy_trainer_program: HevyTrainerProgram | null;
298
297
  }
299
298
  export interface BackofficeDeletedUserResponse {
@@ -343,7 +342,6 @@ export interface BackofficeAccountUpdate {
343
342
  limited_discovery?: boolean;
344
343
  delete_profile_pic?: boolean;
345
344
  delete_link?: boolean;
346
- is_hevy_trainer_beta_enabled?: boolean;
347
345
  }
348
346
  export interface BackofficeSuggestedUsersResponse {
349
347
  users: SuggestedUser[];
@@ -1247,7 +1245,7 @@ export interface OutstandingInvitesForCoachTeamResponse {
1247
1245
  export interface HevyTrainerProgram {
1248
1246
  id: string;
1249
1247
  created_at: string;
1250
- updated_at: number;
1248
+ updated_at: string;
1251
1249
  title: string;
1252
1250
  level: TrainingLevel;
1253
1251
  goal: TrainingGoal;
@@ -33,29 +33,6 @@ export type Some<T> = {
33
33
  * ```
34
34
  */
35
35
  export declare const dangerousUncheckedTypeCast: <T = void, U extends T = T>(value: unknown) => U;
36
- /**
37
- * Wrapper for TypeScript's non-nullish assertion operator (`!`). Use this
38
- * instead of the operator directly so it's easier to spot. And, again, only
39
- * use this if you 100% know what you're doing. If you're not sure, then don't!
40
- */
41
- export declare const assertNonNullish: <T>(value: T) => T & {};
42
- /**
43
- * What it's not: "I don't know what type this value may be."
44
- * What it is: "I don't **CARE** about the type of this value."
45
- * What it is: "Disable the type system for this variable."
46
- *
47
- * Alias for `any` that makes it more clear what's going on. Avoid using this,
48
- * and absolutely avoid using `any` directly even harder! Instead, you may want
49
- * to use one of the following:
50
- *
51
- * - `unknown` // any value, can be nullish or not - need to use type guards
52
- * - `unknown[]` // same as above, but we know it's an array of these unknowns,
53
- * // so we allow array functions to be used on it
54
- * - `object` // any value where `typeof value === 'object'` - except `null`
55
- * - `{}` // any non-nullish value, object or not; ignore the lint error
56
- * - `never` // no value; not `undefined` or `null`, but _unreachable code_
57
- */
58
- export type UNSAFE_Untyped = any;
59
36
  /**
60
37
  * Safer alternative to `JSON.parse`. Returns `unknown` instead of `any`.
61
38
  *
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TODO = exports.typeSafeIndex = exports.parseJSON = exports.assertNonNullish = exports.dangerousUncheckedTypeCast = exports.exhaustiveTypeException = exports.exhaustiveTypeCheck = exports.isInArray = void 0;
3
+ exports.TODO = exports.typeSafeIndex = exports.parseJSON = exports.dangerousUncheckedTypeCast = exports.exhaustiveTypeException = exports.exhaustiveTypeCheck = exports.isInArray = void 0;
4
4
  const isInArray = (value, array) => array.includes(value);
5
5
  exports.isInArray = isInArray;
6
6
  const exhaustiveTypeCheck = (_) => void _;
@@ -30,13 +30,6 @@ exports.exhaustiveTypeException = exhaustiveTypeException;
30
30
  */
31
31
  const dangerousUncheckedTypeCast = (value) => value;
32
32
  exports.dangerousUncheckedTypeCast = dangerousUncheckedTypeCast;
33
- /**
34
- * Wrapper for TypeScript's non-nullish assertion operator (`!`). Use this
35
- * instead of the operator directly so it's easier to spot. And, again, only
36
- * use this if you 100% know what you're doing. If you're not sure, then don't!
37
- */
38
- const assertNonNullish = (value) => value;
39
- exports.assertNonNullish = assertNonNullish;
40
33
  /**
41
34
  * Safer alternative to `JSON.parse`. Returns `unknown` instead of `any`.
42
35
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.896",
3
+ "version": "1.0.898",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",