@garmin/fitsdk 21.115.1 → 21.126.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/package.json +2 -3
- package/src/accumulator.js +2 -2
- package/src/bit-stream.js +2 -2
- package/src/crc-calculator.js +2 -2
- package/src/decoder.js +10 -6
- package/src/fit.js +2 -2
- package/src/index.js +2 -2
- package/src/profile.js +424 -4
- package/src/stream.js +6 -6
- package/src/utils-hr-mesg.js +2 -2
- package/src/utils-internal.js +2 -2
- package/src/utils.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@garmin/fitsdk",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.126.0",
|
|
4
4
|
"description": "FIT JavaScript SDK",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
"src/"
|
|
19
19
|
],
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"jest": "^28.1.2"
|
|
22
|
-
"jsdoc": "^3.6.11"
|
|
21
|
+
"jest": "^28.1.2"
|
|
23
22
|
},
|
|
24
23
|
"jest": {
|
|
25
24
|
"transform": {}
|
package/src/accumulator.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/bit-stream.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/crc-calculator.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/decoder.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
|
@@ -332,15 +332,15 @@ class Decoder {
|
|
|
332
332
|
if (fieldName != null && (field != null || this.#optIncludeUnknownData)) {
|
|
333
333
|
message[fieldName] = { rawFieldValue, fieldDefinitionNumber: fieldDefinition.fieldDefinitionNumber };
|
|
334
334
|
|
|
335
|
-
if (field
|
|
335
|
+
if (field?.subFields?.length > 0) {
|
|
336
336
|
this.#fieldsWithSubFields.push(fieldName);
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
if (field
|
|
339
|
+
if (field?.hasComponents) {
|
|
340
340
|
this.#fieldsToExpand.push(fieldName);
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
if (field
|
|
343
|
+
if (field?.isAccumulated) {
|
|
344
344
|
this.#accumulator.add(mesgNum, fieldDefinition.fieldDefinitionNumber, rawFieldValue);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -574,8 +574,12 @@ class Decoder {
|
|
|
574
574
|
mesg[targetField.name].fieldValue.push(null);
|
|
575
575
|
}
|
|
576
576
|
else {
|
|
577
|
-
|
|
578
577
|
value = value / field.scale[j] - field.offset[j];
|
|
578
|
+
|
|
579
|
+
if (this.#optConvertTypesToStrings) {
|
|
580
|
+
value = this.#convertTypeToString(mesg, targetField, value);
|
|
581
|
+
}
|
|
582
|
+
|
|
579
583
|
mesg[targetField.name].fieldValue.push(value);
|
|
580
584
|
}
|
|
581
585
|
|
package/src/fit.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/profile.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
const Profile = {
|
|
14
14
|
version: {
|
|
15
15
|
major: 21,
|
|
16
|
-
minor:
|
|
16
|
+
minor: 126,
|
|
17
17
|
patch: 0,
|
|
18
18
|
type: "Release"
|
|
19
19
|
},
|
|
@@ -1127,7 +1127,7 @@ const Profile = {
|
|
|
1127
1127
|
subFields: []
|
|
1128
1128
|
},
|
|
1129
1129
|
0: {
|
|
1130
|
-
num: 0,
|
|
1130
|
+
num: 0, // Used for Morning Report greeting
|
|
1131
1131
|
name: "friendlyName",
|
|
1132
1132
|
type: "string",
|
|
1133
1133
|
array: "true",
|
|
@@ -13314,6 +13314,20 @@ const Profile = {
|
|
|
13314
13314
|
name: "split",
|
|
13315
13315
|
messagesKey: "splitMesgs",
|
|
13316
13316
|
fields: {
|
|
13317
|
+
254: {
|
|
13318
|
+
num: 254,
|
|
13319
|
+
name: "messageIndex",
|
|
13320
|
+
type: "messageIndex",
|
|
13321
|
+
array: "false",
|
|
13322
|
+
scale: 1,
|
|
13323
|
+
offset: 0,
|
|
13324
|
+
units: "",
|
|
13325
|
+
bits: [],
|
|
13326
|
+
components: [],
|
|
13327
|
+
isAccumulated: false,
|
|
13328
|
+
hasComponents: false,
|
|
13329
|
+
subFields: []
|
|
13330
|
+
},
|
|
13317
13331
|
0: {
|
|
13318
13332
|
num: 0,
|
|
13319
13333
|
name: "splitType",
|
|
@@ -13370,6 +13384,20 @@ const Profile = {
|
|
|
13370
13384
|
hasComponents: false,
|
|
13371
13385
|
subFields: []
|
|
13372
13386
|
},
|
|
13387
|
+
4: {
|
|
13388
|
+
num: 4,
|
|
13389
|
+
name: "avgSpeed",
|
|
13390
|
+
type: "uint32",
|
|
13391
|
+
array: "false",
|
|
13392
|
+
scale: 1000,
|
|
13393
|
+
offset: 0,
|
|
13394
|
+
units: "m/s",
|
|
13395
|
+
bits: [],
|
|
13396
|
+
components: [],
|
|
13397
|
+
isAccumulated: false,
|
|
13398
|
+
hasComponents: false,
|
|
13399
|
+
subFields: []
|
|
13400
|
+
},
|
|
13373
13401
|
9: {
|
|
13374
13402
|
num: 9,
|
|
13375
13403
|
name: "startTime",
|
|
@@ -13384,6 +13412,377 @@ const Profile = {
|
|
|
13384
13412
|
hasComponents: false,
|
|
13385
13413
|
subFields: []
|
|
13386
13414
|
},
|
|
13415
|
+
13: {
|
|
13416
|
+
num: 13,
|
|
13417
|
+
name: "totalAscent",
|
|
13418
|
+
type: "uint16",
|
|
13419
|
+
array: "false",
|
|
13420
|
+
scale: 1,
|
|
13421
|
+
offset: 0,
|
|
13422
|
+
units: "m",
|
|
13423
|
+
bits: [],
|
|
13424
|
+
components: [],
|
|
13425
|
+
isAccumulated: false,
|
|
13426
|
+
hasComponents: false,
|
|
13427
|
+
subFields: []
|
|
13428
|
+
},
|
|
13429
|
+
14: {
|
|
13430
|
+
num: 14,
|
|
13431
|
+
name: "totalDescent",
|
|
13432
|
+
type: "uint16",
|
|
13433
|
+
array: "false",
|
|
13434
|
+
scale: 1,
|
|
13435
|
+
offset: 0,
|
|
13436
|
+
units: "m",
|
|
13437
|
+
bits: [],
|
|
13438
|
+
components: [],
|
|
13439
|
+
isAccumulated: false,
|
|
13440
|
+
hasComponents: false,
|
|
13441
|
+
subFields: []
|
|
13442
|
+
},
|
|
13443
|
+
21: {
|
|
13444
|
+
num: 21,
|
|
13445
|
+
name: "startPositionLat",
|
|
13446
|
+
type: "sint32",
|
|
13447
|
+
array: "false",
|
|
13448
|
+
scale: 1,
|
|
13449
|
+
offset: 0,
|
|
13450
|
+
units: "semicircles",
|
|
13451
|
+
bits: [],
|
|
13452
|
+
components: [],
|
|
13453
|
+
isAccumulated: false,
|
|
13454
|
+
hasComponents: false,
|
|
13455
|
+
subFields: []
|
|
13456
|
+
},
|
|
13457
|
+
22: {
|
|
13458
|
+
num: 22,
|
|
13459
|
+
name: "startPositionLong",
|
|
13460
|
+
type: "sint32",
|
|
13461
|
+
array: "false",
|
|
13462
|
+
scale: 1,
|
|
13463
|
+
offset: 0,
|
|
13464
|
+
units: "semicircles",
|
|
13465
|
+
bits: [],
|
|
13466
|
+
components: [],
|
|
13467
|
+
isAccumulated: false,
|
|
13468
|
+
hasComponents: false,
|
|
13469
|
+
subFields: []
|
|
13470
|
+
},
|
|
13471
|
+
23: {
|
|
13472
|
+
num: 23,
|
|
13473
|
+
name: "endPositionLat",
|
|
13474
|
+
type: "sint32",
|
|
13475
|
+
array: "false",
|
|
13476
|
+
scale: 1,
|
|
13477
|
+
offset: 0,
|
|
13478
|
+
units: "semicircles",
|
|
13479
|
+
bits: [],
|
|
13480
|
+
components: [],
|
|
13481
|
+
isAccumulated: false,
|
|
13482
|
+
hasComponents: false,
|
|
13483
|
+
subFields: []
|
|
13484
|
+
},
|
|
13485
|
+
24: {
|
|
13486
|
+
num: 24,
|
|
13487
|
+
name: "endPositionLong",
|
|
13488
|
+
type: "sint32",
|
|
13489
|
+
array: "false",
|
|
13490
|
+
scale: 1,
|
|
13491
|
+
offset: 0,
|
|
13492
|
+
units: "semicircles",
|
|
13493
|
+
bits: [],
|
|
13494
|
+
components: [],
|
|
13495
|
+
isAccumulated: false,
|
|
13496
|
+
hasComponents: false,
|
|
13497
|
+
subFields: []
|
|
13498
|
+
},
|
|
13499
|
+
25: {
|
|
13500
|
+
num: 25,
|
|
13501
|
+
name: "maxSpeed",
|
|
13502
|
+
type: "uint32",
|
|
13503
|
+
array: "false",
|
|
13504
|
+
scale: 1000,
|
|
13505
|
+
offset: 0,
|
|
13506
|
+
units: "m/s",
|
|
13507
|
+
bits: [],
|
|
13508
|
+
components: [],
|
|
13509
|
+
isAccumulated: false,
|
|
13510
|
+
hasComponents: false,
|
|
13511
|
+
subFields: []
|
|
13512
|
+
},
|
|
13513
|
+
26: {
|
|
13514
|
+
num: 26,
|
|
13515
|
+
name: "avgVertSpeed",
|
|
13516
|
+
type: "sint32",
|
|
13517
|
+
array: "false",
|
|
13518
|
+
scale: 1000,
|
|
13519
|
+
offset: 0,
|
|
13520
|
+
units: "m/s",
|
|
13521
|
+
bits: [],
|
|
13522
|
+
components: [],
|
|
13523
|
+
isAccumulated: false,
|
|
13524
|
+
hasComponents: false,
|
|
13525
|
+
subFields: []
|
|
13526
|
+
},
|
|
13527
|
+
27: {
|
|
13528
|
+
num: 27,
|
|
13529
|
+
name: "endTime",
|
|
13530
|
+
type: "dateTime",
|
|
13531
|
+
array: "false",
|
|
13532
|
+
scale: 1,
|
|
13533
|
+
offset: 0,
|
|
13534
|
+
units: "",
|
|
13535
|
+
bits: [],
|
|
13536
|
+
components: [],
|
|
13537
|
+
isAccumulated: false,
|
|
13538
|
+
hasComponents: false,
|
|
13539
|
+
subFields: []
|
|
13540
|
+
},
|
|
13541
|
+
28: {
|
|
13542
|
+
num: 28,
|
|
13543
|
+
name: "totalCalories",
|
|
13544
|
+
type: "uint32",
|
|
13545
|
+
array: "false",
|
|
13546
|
+
scale: 1,
|
|
13547
|
+
offset: 0,
|
|
13548
|
+
units: "kcal",
|
|
13549
|
+
bits: [],
|
|
13550
|
+
components: [],
|
|
13551
|
+
isAccumulated: false,
|
|
13552
|
+
hasComponents: false,
|
|
13553
|
+
subFields: []
|
|
13554
|
+
},
|
|
13555
|
+
74: {
|
|
13556
|
+
num: 74,
|
|
13557
|
+
name: "startElevation",
|
|
13558
|
+
type: "uint32",
|
|
13559
|
+
array: "false",
|
|
13560
|
+
scale: 5,
|
|
13561
|
+
offset: 500,
|
|
13562
|
+
units: "m",
|
|
13563
|
+
bits: [],
|
|
13564
|
+
components: [],
|
|
13565
|
+
isAccumulated: false,
|
|
13566
|
+
hasComponents: false,
|
|
13567
|
+
subFields: []
|
|
13568
|
+
},
|
|
13569
|
+
110: {
|
|
13570
|
+
num: 110,
|
|
13571
|
+
name: "totalMovingTime",
|
|
13572
|
+
type: "uint32",
|
|
13573
|
+
array: "false",
|
|
13574
|
+
scale: 1000,
|
|
13575
|
+
offset: 0,
|
|
13576
|
+
units: "s",
|
|
13577
|
+
bits: [],
|
|
13578
|
+
components: [],
|
|
13579
|
+
isAccumulated: false,
|
|
13580
|
+
hasComponents: false,
|
|
13581
|
+
subFields: []
|
|
13582
|
+
},
|
|
13583
|
+
},
|
|
13584
|
+
},
|
|
13585
|
+
313: {
|
|
13586
|
+
num: 313,
|
|
13587
|
+
name: "splitSummary",
|
|
13588
|
+
messagesKey: "splitSummaryMesgs",
|
|
13589
|
+
fields: {
|
|
13590
|
+
254: {
|
|
13591
|
+
num: 254,
|
|
13592
|
+
name: "messageIndex",
|
|
13593
|
+
type: "messageIndex",
|
|
13594
|
+
array: "false",
|
|
13595
|
+
scale: 1,
|
|
13596
|
+
offset: 0,
|
|
13597
|
+
units: "",
|
|
13598
|
+
bits: [],
|
|
13599
|
+
components: [],
|
|
13600
|
+
isAccumulated: false,
|
|
13601
|
+
hasComponents: false,
|
|
13602
|
+
subFields: []
|
|
13603
|
+
},
|
|
13604
|
+
0: {
|
|
13605
|
+
num: 0,
|
|
13606
|
+
name: "splitType",
|
|
13607
|
+
type: "splitType",
|
|
13608
|
+
array: "false",
|
|
13609
|
+
scale: 1,
|
|
13610
|
+
offset: 0,
|
|
13611
|
+
units: "",
|
|
13612
|
+
bits: [],
|
|
13613
|
+
components: [],
|
|
13614
|
+
isAccumulated: false,
|
|
13615
|
+
hasComponents: false,
|
|
13616
|
+
subFields: []
|
|
13617
|
+
},
|
|
13618
|
+
3: {
|
|
13619
|
+
num: 3,
|
|
13620
|
+
name: "numSplits",
|
|
13621
|
+
type: "uint16",
|
|
13622
|
+
array: "false",
|
|
13623
|
+
scale: 1,
|
|
13624
|
+
offset: 0,
|
|
13625
|
+
units: "",
|
|
13626
|
+
bits: [],
|
|
13627
|
+
components: [],
|
|
13628
|
+
isAccumulated: false,
|
|
13629
|
+
hasComponents: false,
|
|
13630
|
+
subFields: []
|
|
13631
|
+
},
|
|
13632
|
+
4: {
|
|
13633
|
+
num: 4,
|
|
13634
|
+
name: "totalTimerTime",
|
|
13635
|
+
type: "uint32",
|
|
13636
|
+
array: "false",
|
|
13637
|
+
scale: 1000,
|
|
13638
|
+
offset: 0,
|
|
13639
|
+
units: "s",
|
|
13640
|
+
bits: [],
|
|
13641
|
+
components: [],
|
|
13642
|
+
isAccumulated: false,
|
|
13643
|
+
hasComponents: false,
|
|
13644
|
+
subFields: []
|
|
13645
|
+
},
|
|
13646
|
+
5: {
|
|
13647
|
+
num: 5,
|
|
13648
|
+
name: "totalDistance",
|
|
13649
|
+
type: "uint32",
|
|
13650
|
+
array: "false",
|
|
13651
|
+
scale: 100,
|
|
13652
|
+
offset: 0,
|
|
13653
|
+
units: "m",
|
|
13654
|
+
bits: [],
|
|
13655
|
+
components: [],
|
|
13656
|
+
isAccumulated: false,
|
|
13657
|
+
hasComponents: false,
|
|
13658
|
+
subFields: []
|
|
13659
|
+
},
|
|
13660
|
+
6: {
|
|
13661
|
+
num: 6,
|
|
13662
|
+
name: "avgSpeed",
|
|
13663
|
+
type: "uint32",
|
|
13664
|
+
array: "false",
|
|
13665
|
+
scale: 1000,
|
|
13666
|
+
offset: 0,
|
|
13667
|
+
units: "m/s",
|
|
13668
|
+
bits: [],
|
|
13669
|
+
components: [],
|
|
13670
|
+
isAccumulated: false,
|
|
13671
|
+
hasComponents: false,
|
|
13672
|
+
subFields: []
|
|
13673
|
+
},
|
|
13674
|
+
7: {
|
|
13675
|
+
num: 7,
|
|
13676
|
+
name: "maxSpeed",
|
|
13677
|
+
type: "uint32",
|
|
13678
|
+
array: "false",
|
|
13679
|
+
scale: 1000,
|
|
13680
|
+
offset: 0,
|
|
13681
|
+
units: "m/s",
|
|
13682
|
+
bits: [],
|
|
13683
|
+
components: [],
|
|
13684
|
+
isAccumulated: false,
|
|
13685
|
+
hasComponents: false,
|
|
13686
|
+
subFields: []
|
|
13687
|
+
},
|
|
13688
|
+
8: {
|
|
13689
|
+
num: 8,
|
|
13690
|
+
name: "totalAscent",
|
|
13691
|
+
type: "uint16",
|
|
13692
|
+
array: "false",
|
|
13693
|
+
scale: 1,
|
|
13694
|
+
offset: 0,
|
|
13695
|
+
units: "m",
|
|
13696
|
+
bits: [],
|
|
13697
|
+
components: [],
|
|
13698
|
+
isAccumulated: false,
|
|
13699
|
+
hasComponents: false,
|
|
13700
|
+
subFields: []
|
|
13701
|
+
},
|
|
13702
|
+
9: {
|
|
13703
|
+
num: 9,
|
|
13704
|
+
name: "totalDescent",
|
|
13705
|
+
type: "uint16",
|
|
13706
|
+
array: "false",
|
|
13707
|
+
scale: 1,
|
|
13708
|
+
offset: 0,
|
|
13709
|
+
units: "m",
|
|
13710
|
+
bits: [],
|
|
13711
|
+
components: [],
|
|
13712
|
+
isAccumulated: false,
|
|
13713
|
+
hasComponents: false,
|
|
13714
|
+
subFields: []
|
|
13715
|
+
},
|
|
13716
|
+
10: {
|
|
13717
|
+
num: 10,
|
|
13718
|
+
name: "avgHeartRate",
|
|
13719
|
+
type: "uint8",
|
|
13720
|
+
array: "false",
|
|
13721
|
+
scale: 1,
|
|
13722
|
+
offset: 0,
|
|
13723
|
+
units: "bpm",
|
|
13724
|
+
bits: [],
|
|
13725
|
+
components: [],
|
|
13726
|
+
isAccumulated: false,
|
|
13727
|
+
hasComponents: false,
|
|
13728
|
+
subFields: []
|
|
13729
|
+
},
|
|
13730
|
+
11: {
|
|
13731
|
+
num: 11,
|
|
13732
|
+
name: "maxHeartRate",
|
|
13733
|
+
type: "uint8",
|
|
13734
|
+
array: "false",
|
|
13735
|
+
scale: 1,
|
|
13736
|
+
offset: 0,
|
|
13737
|
+
units: "bpm",
|
|
13738
|
+
bits: [],
|
|
13739
|
+
components: [],
|
|
13740
|
+
isAccumulated: false,
|
|
13741
|
+
hasComponents: false,
|
|
13742
|
+
subFields: []
|
|
13743
|
+
},
|
|
13744
|
+
12: {
|
|
13745
|
+
num: 12,
|
|
13746
|
+
name: "avgVertSpeed",
|
|
13747
|
+
type: "sint32",
|
|
13748
|
+
array: "false",
|
|
13749
|
+
scale: 1000,
|
|
13750
|
+
offset: 0,
|
|
13751
|
+
units: "m/s",
|
|
13752
|
+
bits: [],
|
|
13753
|
+
components: [],
|
|
13754
|
+
isAccumulated: false,
|
|
13755
|
+
hasComponents: false,
|
|
13756
|
+
subFields: []
|
|
13757
|
+
},
|
|
13758
|
+
13: {
|
|
13759
|
+
num: 13,
|
|
13760
|
+
name: "totalCalories",
|
|
13761
|
+
type: "uint32",
|
|
13762
|
+
array: "false",
|
|
13763
|
+
scale: 1,
|
|
13764
|
+
offset: 0,
|
|
13765
|
+
units: "kcal",
|
|
13766
|
+
bits: [],
|
|
13767
|
+
components: [],
|
|
13768
|
+
isAccumulated: false,
|
|
13769
|
+
hasComponents: false,
|
|
13770
|
+
subFields: []
|
|
13771
|
+
},
|
|
13772
|
+
77: {
|
|
13773
|
+
num: 77,
|
|
13774
|
+
name: "totalMovingTime",
|
|
13775
|
+
type: "uint32",
|
|
13776
|
+
array: "false",
|
|
13777
|
+
scale: 1000,
|
|
13778
|
+
offset: 0,
|
|
13779
|
+
units: "s",
|
|
13780
|
+
bits: [],
|
|
13781
|
+
components: [],
|
|
13782
|
+
isAccumulated: false,
|
|
13783
|
+
hasComponents: false,
|
|
13784
|
+
subFields: []
|
|
13785
|
+
},
|
|
13387
13786
|
},
|
|
13388
13787
|
},
|
|
13389
13788
|
317: {
|
|
@@ -20180,6 +20579,7 @@ types: {
|
|
|
20180
20579
|
290: "beatIntervals",
|
|
20181
20580
|
297: "respirationRate",
|
|
20182
20581
|
312: "split",
|
|
20582
|
+
313: "splitSummary",
|
|
20183
20583
|
317: "climbPro",
|
|
20184
20584
|
319: "tankUpdate",
|
|
20185
20585
|
323: "tankSummary",
|
|
@@ -20536,6 +20936,9 @@ types: {
|
|
|
20536
20936
|
53: "diving",
|
|
20537
20937
|
62: "hiit",
|
|
20538
20938
|
64: "racket",
|
|
20939
|
+
65: "wheelchairPushWalk",
|
|
20940
|
+
66: "wheelchairPushRun",
|
|
20941
|
+
67: "meditation",
|
|
20539
20942
|
76: "waterTubing",
|
|
20540
20943
|
77: "wakesurfing",
|
|
20541
20944
|
254: "all", // All is for goals only to include all sports.
|
|
@@ -20675,6 +21078,9 @@ types: {
|
|
|
20675
21078
|
75: "tabata", // HIIT
|
|
20676
21079
|
84: "pickleball", // Racket
|
|
20677
21080
|
85: "padel", // Racket
|
|
21081
|
+
86: "indoorWheelchairWalk",
|
|
21082
|
+
87: "indoorWheelchairRun",
|
|
21083
|
+
88: "indoorHandCycling",
|
|
20678
21084
|
110: "flyCanopy", // Flying
|
|
20679
21085
|
111: "flyParaglide", // Flying
|
|
20680
21086
|
112: "flyParamotor", // Flying
|
|
@@ -21136,6 +21542,8 @@ types: {
|
|
|
21136
21542
|
146: "blackbird",
|
|
21137
21543
|
147: "meilanByte",
|
|
21138
21544
|
148: "ezon",
|
|
21545
|
+
149: "laisi",
|
|
21546
|
+
150: "myzone",
|
|
21139
21547
|
255: "development",
|
|
21140
21548
|
257: "healthandlife",
|
|
21141
21549
|
258: "lezyne",
|
|
@@ -21205,6 +21613,9 @@ types: {
|
|
|
21205
21613
|
322: "shanyue",
|
|
21206
21614
|
323: "spinningMda",
|
|
21207
21615
|
324: "hilldating",
|
|
21616
|
+
325: "aeroSensor",
|
|
21617
|
+
326: "nike",
|
|
21618
|
+
327: "magicshine",
|
|
21208
21619
|
5759: "actigraphcorp",
|
|
21209
21620
|
},
|
|
21210
21621
|
garminProduct: {
|
|
@@ -21538,6 +21949,7 @@ types: {
|
|
|
21538
21949
|
3739: "marqGolfer",
|
|
21539
21950
|
3740: "venuDaimler",
|
|
21540
21951
|
3794: "fr745Asia",
|
|
21952
|
+
3808: "variaRct715",
|
|
21541
21953
|
3809: "lilyAsia",
|
|
21542
21954
|
3812: "edge1030PlusAsia",
|
|
21543
21955
|
3813: "edge130PlusAsia",
|
|
@@ -21594,6 +22006,8 @@ types: {
|
|
|
21594
22006
|
4233: "approachS70",
|
|
21595
22007
|
4257: "fr265Large",
|
|
21596
22008
|
4258: "fr265Small",
|
|
22009
|
+
4260: "venu3",
|
|
22010
|
+
4261: "venu3s",
|
|
21597
22011
|
4265: "tacxNeoSmart", // Neo Smart, Tacx
|
|
21598
22012
|
4266: "tacxNeo2Smart", // Neo 2 Smart, Tacx
|
|
21599
22013
|
4267: "tacxNeo2TSmart", // Neo 2T Smart, Tacx
|
|
@@ -21612,9 +22026,14 @@ types: {
|
|
|
21612
22026
|
4314: "epixGen2Pro51",
|
|
21613
22027
|
4315: "fr965",
|
|
21614
22028
|
4341: "enduro2",
|
|
22029
|
+
4374: "fenix7sProSolar",
|
|
21615
22030
|
4375: "fenix7ProSolar",
|
|
22031
|
+
4376: "fenix7xProSolar",
|
|
21616
22032
|
4394: "instinct2x",
|
|
22033
|
+
4426: "vivoactive5",
|
|
21617
22034
|
4442: "descentT2",
|
|
22035
|
+
4472: "marqGen2Commander",
|
|
22036
|
+
4556: "d2Mach1Pro",
|
|
21618
22037
|
10007: "sdm4", // SDM4 footpod
|
|
21619
22038
|
10014: "edgeRemote",
|
|
21620
22039
|
20533: "tacxTrainingAppWin",
|
|
@@ -24053,6 +24472,7 @@ MesgNum : {
|
|
|
24053
24472
|
SET: 225,
|
|
24054
24473
|
JUMP: 285,
|
|
24055
24474
|
SPLIT: 312,
|
|
24475
|
+
SPLIT_SUMMARY: 313,
|
|
24056
24476
|
CLIMB_PRO: 317,
|
|
24057
24477
|
FIELD_DESCRIPTION: 206,
|
|
24058
24478
|
DEVELOPER_DATA_ID: 207,
|
package/src/stream.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
|
@@ -120,12 +120,12 @@ class Stream {
|
|
|
120
120
|
return bytes;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
readUInt8() {
|
|
124
|
-
return this.readValue(FIT.BaseType.UINT8, 1);
|
|
123
|
+
readUInt8(opts) {
|
|
124
|
+
return this.readValue(FIT.BaseType.UINT8, 1, { convertInvalidToNull: false, ...opts });
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
readInt8() {
|
|
128
|
-
return this.readValue(FIT.BaseType.SINT8, 1);
|
|
127
|
+
readInt8(opts) {
|
|
128
|
+
return this.readValue(FIT.BaseType.SINT8, 1, { convertInvalidToNull: false, ...opts });
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
readUInt16(opts) {
|
package/src/utils-hr-mesg.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/utils-internal.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|
package/src/utils.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// Transfer (FIT) Protocol License.
|
|
6
6
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
7
7
|
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
|
|
8
|
-
// Profile Version = 21.
|
|
9
|
-
// Tag = production/release/21.
|
|
8
|
+
// Profile Version = 21.126.0Release
|
|
9
|
+
// Tag = production/release/21.126.0-0-g0576dfe
|
|
10
10
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
12
|
|