@tryvital/vital-node 3.1.178 → 3.1.180

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 (53) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.js +34 -34
  9. package/api/resources/link/client/Client.js +14 -14
  10. package/api/resources/meal/client/Client.js +1 -1
  11. package/api/resources/menstrualCycle/client/Client.js +1 -1
  12. package/api/resources/profile/client/Client.js +2 -2
  13. package/api/resources/providers/client/Client.js +1 -1
  14. package/api/resources/sleep/client/Client.js +4 -4
  15. package/api/resources/sleepCycle/client/Client.js +1 -1
  16. package/api/resources/team/client/Client.js +7 -7
  17. package/api/resources/testkit/client/Client.js +2 -2
  18. package/api/resources/user/client/Client.js +16 -16
  19. package/api/resources/vitals/client/Client.js +58 -58
  20. package/api/resources/workouts/client/Client.js +3 -3
  21. package/api/types/Region.d.ts +44 -5
  22. package/api/types/Region.js +43 -4
  23. package/dist/api/resources/activity/client/Client.js +2 -2
  24. package/dist/api/resources/aggregate/client/Client.js +1 -1
  25. package/dist/api/resources/body/client/Client.js +2 -2
  26. package/dist/api/resources/devices/client/Client.js +1 -1
  27. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  28. package/dist/api/resources/insurance/client/Client.js +3 -3
  29. package/dist/api/resources/introspect/client/Client.js +2 -2
  30. package/dist/api/resources/labTests/client/Client.js +34 -34
  31. package/dist/api/resources/link/client/Client.js +14 -14
  32. package/dist/api/resources/meal/client/Client.js +1 -1
  33. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  34. package/dist/api/resources/profile/client/Client.js +2 -2
  35. package/dist/api/resources/providers/client/Client.js +1 -1
  36. package/dist/api/resources/sleep/client/Client.js +4 -4
  37. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  38. package/dist/api/resources/team/client/Client.js +7 -7
  39. package/dist/api/resources/testkit/client/Client.js +2 -2
  40. package/dist/api/resources/user/client/Client.js +16 -16
  41. package/dist/api/resources/vitals/client/Client.js +58 -58
  42. package/dist/api/resources/workouts/client/Client.js +3 -3
  43. package/dist/api/types/Region.d.ts +44 -5
  44. package/dist/api/types/Region.js +43 -4
  45. package/dist/serialization/types/Region.d.ts +1 -1
  46. package/dist/serialization/types/Region.js +43 -4
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +1 -1
  50. package/serialization/types/Region.d.ts +1 -1
  51. package/serialization/types/Region.js +43 -4
  52. package/version.d.ts +1 -1
  53. package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.178", "User-Agent": "@tryvital/vital-node/3.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.180", "User-Agent": "@tryvital/vital-node/3.1.180", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Workouts {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.178", "User-Agent": "@tryvital/vital-node/3.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.180", "User-Agent": "@tryvital/vital-node/3.1.180", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.178", "User-Agent": "@tryvital/vital-node/3.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.180", "User-Agent": "@tryvital/vital-node/3.1.180", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,16 +1,55 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Region = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
4
+ export declare type Region = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
5
5
  export declare const Region: {
6
6
  readonly Us: "us";
7
7
  readonly Eu: "eu";
8
- readonly Sg: "sg";
9
8
  readonly De: "de";
10
- readonly Au: "au";
11
- readonly Br: "br";
12
- readonly Nl: "nl";
13
9
  readonly Fr: "fr";
14
10
  readonly Ca: "ca";
11
+ readonly Br: "br";
12
+ readonly Ar: "ar";
13
+ readonly Cl: "cl";
14
+ readonly Co: "co";
15
+ readonly Mx: "mx";
16
+ readonly Gb: "gb";
17
+ readonly Ie: "ie";
18
+ readonly Au: "au";
19
+ readonly Nz: "nz";
20
+ readonly Nl: "nl";
21
+ readonly At: "at";
22
+ readonly Be: "be";
23
+ readonly Bh: "bh";
24
+ readonly Ch: "ch";
25
+ readonly Cz: "cz";
26
+ readonly Dk: "dk";
27
+ readonly Eg: "eg";
28
+ readonly Es: "es";
29
+ readonly Fi: "fi";
30
+ readonly Gr: "gr";
31
+ readonly Hr: "hr";
32
+ readonly Il: "il";
33
+ readonly It: "it";
34
+ readonly Jo: "jo";
35
+ readonly Kw: "kw";
36
+ readonly Lb: "lb";
37
+ readonly Lu: "lu";
38
+ readonly No: "no";
39
+ readonly Om: "om";
40
+ readonly Pl: "pl";
41
+ readonly Pt: "pt";
42
+ readonly Qa: "qa";
43
+ readonly Sa: "sa";
44
+ readonly Se: "se";
45
+ readonly Si: "si";
46
+ readonly Sk: "sk";
47
+ readonly Tr: "tr";
48
+ readonly Za: "za";
15
49
  readonly In: "in";
50
+ readonly Sg: "sg";
51
+ readonly Hk: "hk";
52
+ readonly Kr: "kr";
53
+ readonly Ph: "ph";
54
+ readonly Tw: "tw";
16
55
  };
@@ -7,12 +7,51 @@ exports.Region = void 0;
7
7
  exports.Region = {
8
8
  Us: "us",
9
9
  Eu: "eu",
10
- Sg: "sg",
11
10
  De: "de",
12
- Au: "au",
13
- Br: "br",
14
- Nl: "nl",
15
11
  Fr: "fr",
16
12
  Ca: "ca",
13
+ Br: "br",
14
+ Ar: "ar",
15
+ Cl: "cl",
16
+ Co: "co",
17
+ Mx: "mx",
18
+ Gb: "gb",
19
+ Ie: "ie",
20
+ Au: "au",
21
+ Nz: "nz",
22
+ Nl: "nl",
23
+ At: "at",
24
+ Be: "be",
25
+ Bh: "bh",
26
+ Ch: "ch",
27
+ Cz: "cz",
28
+ Dk: "dk",
29
+ Eg: "eg",
30
+ Es: "es",
31
+ Fi: "fi",
32
+ Gr: "gr",
33
+ Hr: "hr",
34
+ Il: "il",
35
+ It: "it",
36
+ Jo: "jo",
37
+ Kw: "kw",
38
+ Lb: "lb",
39
+ Lu: "lu",
40
+ No: "no",
41
+ Om: "om",
42
+ Pl: "pl",
43
+ Pt: "pt",
44
+ Qa: "qa",
45
+ Sa: "sa",
46
+ Se: "se",
47
+ Si: "si",
48
+ Sk: "sk",
49
+ Tr: "tr",
50
+ Za: "za",
17
51
  In: "in",
52
+ Sg: "sg",
53
+ Hk: "hk",
54
+ Kr: "kr",
55
+ Ph: "ph",
56
+ Tw: "tw",
18
57
  };
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Region: core.serialization.Schema<serializers.Region.Raw, Vital.Region>;
8
8
  export declare namespace Region {
9
- type Raw = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
9
+ type Raw = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
10
10
  }
@@ -31,12 +31,51 @@ const core = __importStar(require("../../core"));
31
31
  exports.Region = core.serialization.enum_([
32
32
  "us",
33
33
  "eu",
34
- "sg",
35
34
  "de",
36
- "au",
37
- "br",
38
- "nl",
39
35
  "fr",
40
36
  "ca",
37
+ "br",
38
+ "ar",
39
+ "cl",
40
+ "co",
41
+ "mx",
42
+ "gb",
43
+ "ie",
44
+ "au",
45
+ "nz",
46
+ "nl",
47
+ "at",
48
+ "be",
49
+ "bh",
50
+ "ch",
51
+ "cz",
52
+ "dk",
53
+ "eg",
54
+ "es",
55
+ "fi",
56
+ "gr",
57
+ "hr",
58
+ "il",
59
+ "it",
60
+ "jo",
61
+ "kw",
62
+ "lb",
63
+ "lu",
64
+ "no",
65
+ "om",
66
+ "pl",
67
+ "pt",
68
+ "qa",
69
+ "sa",
70
+ "se",
71
+ "si",
72
+ "sk",
73
+ "tr",
74
+ "za",
41
75
  "in",
76
+ "sg",
77
+ "hk",
78
+ "kr",
79
+ "ph",
80
+ "tw",
42
81
  ]);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.178";
1
+ export declare const SDK_VERSION = "3.1.180";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.178";
4
+ exports.SDK_VERSION = "3.1.180";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.178",
3
+ "version": "3.1.180",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Region: core.serialization.Schema<serializers.Region.Raw, Vital.Region>;
8
8
  export declare namespace Region {
9
- type Raw = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
9
+ type Raw = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
10
10
  }
@@ -31,12 +31,51 @@ const core = __importStar(require("../../core"));
31
31
  exports.Region = core.serialization.enum_([
32
32
  "us",
33
33
  "eu",
34
- "sg",
35
34
  "de",
36
- "au",
37
- "br",
38
- "nl",
39
35
  "fr",
40
36
  "ca",
37
+ "br",
38
+ "ar",
39
+ "cl",
40
+ "co",
41
+ "mx",
42
+ "gb",
43
+ "ie",
44
+ "au",
45
+ "nz",
46
+ "nl",
47
+ "at",
48
+ "be",
49
+ "bh",
50
+ "ch",
51
+ "cz",
52
+ "dk",
53
+ "eg",
54
+ "es",
55
+ "fi",
56
+ "gr",
57
+ "hr",
58
+ "il",
59
+ "it",
60
+ "jo",
61
+ "kw",
62
+ "lb",
63
+ "lu",
64
+ "no",
65
+ "om",
66
+ "pl",
67
+ "pt",
68
+ "qa",
69
+ "sa",
70
+ "se",
71
+ "si",
72
+ "sk",
73
+ "tr",
74
+ "za",
41
75
  "in",
76
+ "sg",
77
+ "hk",
78
+ "kr",
79
+ "ph",
80
+ "tw",
42
81
  ]);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.178";
1
+ export declare const SDK_VERSION = "3.1.180";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.178";
4
+ exports.SDK_VERSION = "3.1.180";