@axiapps/axilog 0.3.5 → 0.3.6

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/types.d.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiapps/axilog",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Node bindings (napi-rs) for axilog's Rust GW2 arcdps WvW parsing core",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,11 +28,11 @@
28
28
  "node": ">= 18"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@axiapps/axilog-linux-x64-gnu": "0.3.5",
32
- "@axiapps/axilog-linux-arm64-gnu": "0.3.5",
33
- "@axiapps/axilog-win32-x64-msvc": "0.3.5",
34
- "@axiapps/axilog-darwin-x64": "0.3.5",
35
- "@axiapps/axilog-darwin-arm64": "0.3.5"
31
+ "@axiapps/axilog-linux-x64-gnu": "0.3.6",
32
+ "@axiapps/axilog-linux-arm64-gnu": "0.3.6",
33
+ "@axiapps/axilog-win32-x64-msvc": "0.3.6",
34
+ "@axiapps/axilog-darwin-x64": "0.3.6",
35
+ "@axiapps/axilog-darwin-arm64": "0.3.6"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "napi build --platform --release && node scripts/patch-dts.mjs",
package/types.d.ts CHANGED
@@ -857,6 +857,20 @@ export interface EncounterOutV1 {
857
857
  recorded_by?: number
858
858
  teams: TeamOut[]
859
859
  markers: MarkerAssignmentOutV1[]
860
+ /**
861
+ * The log's `t0` in arcdps **session-time** milliseconds -- the origin
862
+ * every other time in this document is already measured from.
863
+ *
864
+ * Exactly two fields here are NOT log-relative: `markers[].time_ms` and
865
+ * `entities[].commander.segments`. Both are raw event times, so without
866
+ * this value they cannot be compared against `duration_ms` or against
867
+ * anything else. Subtract this from either for an encounter-relative
868
+ * value -- the result may be negative (a tag held before the first
869
+ * event), which is why the rebase is left to you.
870
+ *
871
+ * Always present; `0` for a log with no events.
872
+ */
873
+ log_start_ms: number
860
874
  /** Carried verbatim from the legacy shape -- an objective belongs to the map, not to an entity, so unlike `markers` there is no join key to rekey. */
861
875
  objectives: ObjectiveOut[]
862
876
  tick_rate?: TickRateOut