Skip to content

WorkoutWriteDto — @gj-kit/expo-workouts

A public interface from @gj-kit/expo-workouts/core. The signature below is taken directly from the 0.1.1 release declaration.

import { WorkoutWriteDto } from '@gj-kit/expo-workouts/core';
interface WorkoutWriteDto {
readonly clientId: string;
readonly version: number;
/** 이미 매핑된 플랫폼 정수 — `activity.ts`가 계산한다. */
readonly activityTypeRaw: number;
/** `undefined`면 키를 아예 쓰지 않는다(iOS). Android는 정수 선택에 이미 반영돼 있다. */
readonly indoor?: boolean | undefined;
readonly startMs: number;
readonly endMs: number;
readonly utcOffsetMin?: number | undefined;
readonly timeZoneId?: string | undefined;
readonly pauses: readonly PauseDto[];
readonly laps: readonly LapDto[];
readonly distanceM?: number | undefined;
readonly activeEnergyKcal?: number | undefined;
readonly elevationGainM?: number | undefined;
/** `<= 0`이면 `./core`가 이미 제거했다 — Health Connect가 0-count StepsRecord에 throw한다. */
readonly steps?: number | undefined;
readonly heartRate: readonly HeartRateDto[];
/** 이미 위생을 통과한 점들. 빈 배열은 "route 없음"을 뜻한다. */
readonly route: readonly RoutePointDto[];
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-workouts
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub