hevy-shared 1.0.849 → 1.0.851

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.
@@ -1,4 +1,4 @@
1
1
  import { Lookup } from './typeUtils';
2
- export declare const AdminPermissions: readonly ["become_user", "ip_blacklists", "featured_users", "feature_flags", "hevy_trainer", "user_account_management", "import_strong_csv", "community_management"];
2
+ export declare const AdminPermissions: readonly ["become_user", "ip_blacklists", "featured_users", "feature_flags", "hevy_trainer", "user_account_management", "import_strong_csv", "community_management", "user_app_logs"];
3
3
  export type AdminPermission = Lookup<typeof AdminPermissions>;
4
4
  export declare const isAdminPermission: (permission?: any) => permission is AdminPermission;
@@ -10,6 +10,7 @@ exports.AdminPermissions = [
10
10
  'user_account_management',
11
11
  'import_strong_csv',
12
12
  'community_management',
13
+ 'user_app_logs',
13
14
  ];
14
15
  const isAdminPermission = (permission) => {
15
16
  if (!permission || typeof permission !== 'string') {
package/built/index.d.ts CHANGED
@@ -1755,6 +1755,21 @@ export interface PostAppLogRequest {
1755
1755
  version: 1;
1756
1756
  lines: AppLogLine[];
1757
1757
  }
1758
+ export interface BackofficeAppLogResponse {
1759
+ lines: AppLogLine[];
1760
+ }
1761
+ export interface BackofficeAppLogIndexResponse {
1762
+ username: string;
1763
+ entries: {
1764
+ id: string;
1765
+ timestamp: string;
1766
+ appPlatform: string | null;
1767
+ appVersion: string | null;
1768
+ appBuildNumber: string | null;
1769
+ linesLength: number;
1770
+ fileSizeBytes: number;
1771
+ }[];
1772
+ }
1758
1773
  declare const _suggestedUserSources: readonly ["popular", "local", "contact", "mutual_follows", "follows_you", "featured", "hyper_local"];
1759
1774
  export type SuggestedUserSource = Lookup<typeof _suggestedUserSources>;
1760
1775
  export declare const isSuggestedUserSource: (source: string) => source is SuggestedUserSource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hevy-shared",
3
- "version": "1.0.849",
3
+ "version": "1.0.851",
4
4
  "description": "",
5
5
  "main": "built/index.js",
6
6
  "types": "built/index.d.ts",