@tryvital/vital-node 3.1.393 → 3.1.394

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 (98) hide show
  1. package/Client.d.ts +15 -15
  2. package/Client.js +34 -34
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +3 -3
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/electrocardiogram/client/Client.js +1 -1
  8. package/api/resources/index.d.ts +10 -10
  9. package/api/resources/index.js +11 -11
  10. package/api/resources/insurance/client/Client.js +3 -3
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.js +41 -41
  13. package/api/resources/link/client/Client.js +19 -19
  14. package/api/resources/meal/client/Client.js +1 -1
  15. package/api/resources/menstrualCycle/client/Client.js +1 -1
  16. package/api/resources/order/client/Client.js +1 -1
  17. package/api/resources/payor/client/Client.js +1 -1
  18. package/api/resources/profile/client/Client.js +2 -2
  19. package/api/resources/providers/client/Client.js +1 -1
  20. package/api/resources/sleep/client/Client.d.ts +12 -12
  21. package/api/resources/sleep/client/Client.js +34 -34
  22. package/api/resources/sleepCycle/client/Client.js +1 -1
  23. package/api/resources/team/client/Client.js +7 -7
  24. package/api/resources/testkit/client/Client.js +2 -2
  25. package/api/resources/user/client/Client.js +18 -18
  26. package/api/resources/vitals/client/Client.js +78 -78
  27. package/api/resources/workouts/client/Client.d.ts +10 -10
  28. package/api/resources/workouts/client/Client.js +34 -34
  29. package/api/types/ClientFacingDeviceSourceType.d.ts +2 -1
  30. package/api/types/ClientFacingDeviceSourceType.js +1 -0
  31. package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +2 -1
  32. package/api/types/ClientFacingElectrocardiogramSourceType.js +1 -0
  33. package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +2 -1
  34. package/api/types/ClientFacingMenstrualCycleSourceType.js +1 -0
  35. package/api/types/ClientFacingSleepCycleSourceType.d.ts +2 -1
  36. package/api/types/ClientFacingSleepCycleSourceType.js +1 -0
  37. package/dist/Client.d.ts +15 -15
  38. package/dist/Client.js +34 -34
  39. package/dist/api/resources/activity/client/Client.js +2 -2
  40. package/dist/api/resources/aggregate/client/Client.js +3 -3
  41. package/dist/api/resources/body/client/Client.js +2 -2
  42. package/dist/api/resources/devices/client/Client.js +1 -1
  43. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  44. package/dist/api/resources/index.d.ts +10 -10
  45. package/dist/api/resources/index.js +11 -11
  46. package/dist/api/resources/insurance/client/Client.js +3 -3
  47. package/dist/api/resources/introspect/client/Client.js +2 -2
  48. package/dist/api/resources/labTests/client/Client.js +41 -41
  49. package/dist/api/resources/link/client/Client.js +19 -19
  50. package/dist/api/resources/meal/client/Client.js +1 -1
  51. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  52. package/dist/api/resources/order/client/Client.js +1 -1
  53. package/dist/api/resources/payor/client/Client.js +1 -1
  54. package/dist/api/resources/profile/client/Client.js +2 -2
  55. package/dist/api/resources/providers/client/Client.js +1 -1
  56. package/dist/api/resources/sleep/client/Client.d.ts +12 -12
  57. package/dist/api/resources/sleep/client/Client.js +34 -34
  58. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  59. package/dist/api/resources/team/client/Client.js +7 -7
  60. package/dist/api/resources/testkit/client/Client.js +2 -2
  61. package/dist/api/resources/user/client/Client.js +18 -18
  62. package/dist/api/resources/vitals/client/Client.js +78 -78
  63. package/dist/api/resources/workouts/client/Client.d.ts +10 -10
  64. package/dist/api/resources/workouts/client/Client.js +34 -34
  65. package/dist/api/types/ClientFacingDeviceSourceType.d.ts +2 -1
  66. package/dist/api/types/ClientFacingDeviceSourceType.js +1 -0
  67. package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +2 -1
  68. package/dist/api/types/ClientFacingElectrocardiogramSourceType.js +1 -0
  69. package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +2 -1
  70. package/dist/api/types/ClientFacingMenstrualCycleSourceType.js +1 -0
  71. package/dist/api/types/ClientFacingSleepCycleSourceType.d.ts +2 -1
  72. package/dist/api/types/ClientFacingSleepCycleSourceType.js +1 -0
  73. package/dist/serialization/resources/index.d.ts +3 -3
  74. package/dist/serialization/resources/index.js +4 -4
  75. package/dist/serialization/types/ClientFacingDeviceSourceType.d.ts +1 -1
  76. package/dist/serialization/types/ClientFacingDeviceSourceType.js +1 -0
  77. package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +1 -1
  78. package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.js +1 -0
  79. package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +1 -1
  80. package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.js +1 -0
  81. package/dist/serialization/types/ClientFacingSleepCycleSourceType.d.ts +1 -1
  82. package/dist/serialization/types/ClientFacingSleepCycleSourceType.js +1 -0
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +1153 -1153
  87. package/serialization/resources/index.d.ts +3 -3
  88. package/serialization/resources/index.js +4 -4
  89. package/serialization/types/ClientFacingDeviceSourceType.d.ts +1 -1
  90. package/serialization/types/ClientFacingDeviceSourceType.js +1 -0
  91. package/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +1 -1
  92. package/serialization/types/ClientFacingElectrocardiogramSourceType.js +1 -0
  93. package/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +1 -1
  94. package/serialization/types/ClientFacingMenstrualCycleSourceType.js +1 -0
  95. package/serialization/types/ClientFacingSleepCycleSourceType.d.ts +1 -1
  96. package/serialization/types/ClientFacingSleepCycleSourceType.js +1 -0
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
@@ -21,16 +21,6 @@ export declare namespace Workouts {
21
21
  export declare class Workouts {
22
22
  protected readonly _options: Workouts.Options;
23
23
  constructor(_options?: Workouts.Options);
24
- /**
25
- * @param {string} workoutId - The Vital ID for the workout
26
- * @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
27
- *
28
- * @throws {@link Vital.UnprocessableEntityError}
29
- *
30
- * @example
31
- * await client.workouts.getByWorkoutId("workout_id")
32
- */
33
- getByWorkoutId(workoutId: string, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientFacingStream>;
34
24
  /**
35
25
  * Get workout summary for user_id
36
26
  *
@@ -61,6 +51,16 @@ export declare class Workouts {
61
51
  * })
62
52
  */
63
53
  getRaw(userId: string, request: Vital.WorkoutsGetRawRequest, requestOptions?: Workouts.RequestOptions): Promise<Vital.RawWorkout>;
54
+ /**
55
+ * @param {string} workoutId - The Vital ID for the workout
56
+ * @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Vital.UnprocessableEntityError}
59
+ *
60
+ * @example
61
+ * await client.workouts.getByWorkoutId("workout_id")
62
+ */
63
+ getByWorkoutId(workoutId: string, requestOptions?: Workouts.RequestOptions): Promise<Vital.ClientFacingStream>;
64
64
  protected _getCustomAuthorizationHeaders(): Promise<{
65
65
  "x-vital-api-key": string | undefined;
66
66
  }>;
@@ -50,29 +50,44 @@ class Workouts {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
53
- * @param {string} workoutId - The Vital ID for the workout
53
+ * Get workout summary for user_id
54
+ *
55
+ * @param {string} userId
56
+ * @param {Vital.WorkoutsGetRequest} request
54
57
  * @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
55
58
  *
56
59
  * @throws {@link Vital.UnprocessableEntityError}
57
60
  *
58
61
  * @example
59
- * await client.workouts.getByWorkoutId("workout_id")
62
+ * await client.workouts.get("user_id", {
63
+ * startDate: "start_date"
64
+ * })
60
65
  */
61
- getByWorkoutId(workoutId, requestOptions) {
66
+ get(userId, request, requestOptions) {
62
67
  var _a;
63
68
  return __awaiter(this, void 0, void 0, function* () {
69
+ const { provider, startDate, endDate } = request;
70
+ const _queryParams = {};
71
+ if (provider != null) {
72
+ _queryParams["provider"] = provider;
73
+ }
74
+ _queryParams["start_date"] = startDate;
75
+ if (endDate != null) {
76
+ _queryParams["end_date"] = endDate;
77
+ }
64
78
  const _response = yield core.fetcher({
65
- 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`),
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)}`),
66
80
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.393", "User-Agent": "@tryvital/vital-node/3.1.393", "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.394", "User-Agent": "@tryvital/vital-node/3.1.394", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
82
  contentType: "application/json",
83
+ queryParameters: _queryParams,
69
84
  requestType: "json",
70
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
71
86
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
72
87
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
73
88
  });
74
89
  if (_response.ok) {
75
- return serializers.ClientFacingStream.parseOrThrow(_response.body, {
90
+ return serializers.ClientWorkoutResponse.parseOrThrow(_response.body, {
76
91
  unrecognizedObjectKeys: "passthrough",
77
92
  allowUnrecognizedUnionMembers: true,
78
93
  allowUnrecognizedEnumValues: true,
@@ -111,20 +126,20 @@ class Workouts {
111
126
  });
112
127
  }
113
128
  /**
114
- * Get workout summary for user_id
129
+ * Get raw workout summary for user_id
115
130
  *
116
131
  * @param {string} userId
117
- * @param {Vital.WorkoutsGetRequest} request
132
+ * @param {Vital.WorkoutsGetRawRequest} request
118
133
  * @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
119
134
  *
120
135
  * @throws {@link Vital.UnprocessableEntityError}
121
136
  *
122
137
  * @example
123
- * await client.workouts.get("user_id", {
138
+ * await client.workouts.getRaw("user_id", {
124
139
  * startDate: "start_date"
125
140
  * })
126
141
  */
127
- get(userId, request, requestOptions) {
142
+ getRaw(userId, request, requestOptions) {
128
143
  var _a;
129
144
  return __awaiter(this, void 0, void 0, function* () {
130
145
  const { provider, startDate, endDate } = request;
@@ -137,9 +152,9 @@ class Workouts {
137
152
  _queryParams["end_date"] = endDate;
138
153
  }
139
154
  const _response = yield core.fetcher({
140
- 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)}`),
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`),
141
156
  method: "GET",
142
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.393", "User-Agent": "@tryvital/vital-node/3.1.393", "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.394", "User-Agent": "@tryvital/vital-node/3.1.394", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
143
158
  contentType: "application/json",
144
159
  queryParameters: _queryParams,
145
160
  requestType: "json",
@@ -148,7 +163,7 @@ class Workouts {
148
163
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
149
164
  });
150
165
  if (_response.ok) {
151
- return serializers.ClientWorkoutResponse.parseOrThrow(_response.body, {
166
+ return serializers.RawWorkout.parseOrThrow(_response.body, {
152
167
  unrecognizedObjectKeys: "passthrough",
153
168
  allowUnrecognizedUnionMembers: true,
154
169
  allowUnrecognizedEnumValues: true,
@@ -187,44 +202,29 @@ class Workouts {
187
202
  });
188
203
  }
189
204
  /**
190
- * Get raw workout summary for user_id
191
- *
192
- * @param {string} userId
193
- * @param {Vital.WorkoutsGetRawRequest} request
205
+ * @param {string} workoutId - The Vital ID for the workout
194
206
  * @param {Workouts.RequestOptions} requestOptions - Request-specific configuration.
195
207
  *
196
208
  * @throws {@link Vital.UnprocessableEntityError}
197
209
  *
198
210
  * @example
199
- * await client.workouts.getRaw("user_id", {
200
- * startDate: "start_date"
201
- * })
211
+ * await client.workouts.getByWorkoutId("workout_id")
202
212
  */
203
- getRaw(userId, request, requestOptions) {
213
+ getByWorkoutId(workoutId, requestOptions) {
204
214
  var _a;
205
215
  return __awaiter(this, void 0, void 0, function* () {
206
- const { provider, startDate, endDate } = request;
207
- const _queryParams = {};
208
- if (provider != null) {
209
- _queryParams["provider"] = provider;
210
- }
211
- _queryParams["start_date"] = startDate;
212
- if (endDate != null) {
213
- _queryParams["end_date"] = endDate;
214
- }
215
216
  const _response = yield core.fetcher({
216
- 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`),
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`),
217
218
  method: "GET",
218
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.393", "User-Agent": "@tryvital/vital-node/3.1.393", "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.394", "User-Agent": "@tryvital/vital-node/3.1.394", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
220
  contentType: "application/json",
220
- queryParameters: _queryParams,
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
223
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
224
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
225
225
  });
226
226
  if (_response.ok) {
227
- return serializers.RawWorkout.parseOrThrow(_response.body, {
227
+ return serializers.ClientFacingStream.parseOrThrow(_response.body, {
228
228
  unrecognizedObjectKeys: "passthrough",
229
229
  allowUnrecognizedUnionMembers: true,
230
230
  allowUnrecognizedEnumValues: true,
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type ClientFacingDeviceSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
7
+ export declare type ClientFacingDeviceSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
8
8
  export declare const ClientFacingDeviceSourceType: {
9
9
  readonly Unknown: "unknown";
10
10
  readonly Phone: "phone";
@@ -20,4 +20,5 @@ export declare const ClientFacingDeviceSourceType: {
20
20
  readonly Ring: "ring";
21
21
  readonly Lab: "lab";
22
22
  readonly ExerciseMachine: "exercise_machine";
23
+ readonly Earphone: "earphone";
23
24
  };
@@ -19,4 +19,5 @@ exports.ClientFacingDeviceSourceType = {
19
19
  Ring: "ring",
20
20
  Lab: "lab",
21
21
  ExerciseMachine: "exercise_machine",
22
+ Earphone: "earphone",
22
23
  };
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type ClientFacingElectrocardiogramSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
7
+ export declare type ClientFacingElectrocardiogramSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
8
8
  export declare const ClientFacingElectrocardiogramSourceType: {
9
9
  readonly Unknown: "unknown";
10
10
  readonly Phone: "phone";
@@ -20,4 +20,5 @@ export declare const ClientFacingElectrocardiogramSourceType: {
20
20
  readonly Ring: "ring";
21
21
  readonly Lab: "lab";
22
22
  readonly ExerciseMachine: "exercise_machine";
23
+ readonly Earphone: "earphone";
23
24
  };
@@ -19,4 +19,5 @@ exports.ClientFacingElectrocardiogramSourceType = {
19
19
  Ring: "ring",
20
20
  Lab: "lab",
21
21
  ExerciseMachine: "exercise_machine",
22
+ Earphone: "earphone",
22
23
  };
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type ClientFacingMenstrualCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
7
+ export declare type ClientFacingMenstrualCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
8
8
  export declare const ClientFacingMenstrualCycleSourceType: {
9
9
  readonly Unknown: "unknown";
10
10
  readonly Phone: "phone";
@@ -20,4 +20,5 @@ export declare const ClientFacingMenstrualCycleSourceType: {
20
20
  readonly Ring: "ring";
21
21
  readonly Lab: "lab";
22
22
  readonly ExerciseMachine: "exercise_machine";
23
+ readonly Earphone: "earphone";
23
24
  };
@@ -19,4 +19,5 @@ exports.ClientFacingMenstrualCycleSourceType = {
19
19
  Ring: "ring",
20
20
  Lab: "lab",
21
21
  ExerciseMachine: "exercise_machine",
22
+ Earphone: "earphone",
22
23
  };
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type ClientFacingSleepCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
7
+ export declare type ClientFacingSleepCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
8
8
  export declare const ClientFacingSleepCycleSourceType: {
9
9
  readonly Unknown: "unknown";
10
10
  readonly Phone: "phone";
@@ -20,4 +20,5 @@ export declare const ClientFacingSleepCycleSourceType: {
20
20
  readonly Ring: "ring";
21
21
  readonly Lab: "lab";
22
22
  readonly ExerciseMachine: "exercise_machine";
23
+ readonly Earphone: "earphone";
23
24
  };
@@ -19,4 +19,5 @@ exports.ClientFacingSleepCycleSourceType = {
19
19
  Ring: "ring",
20
20
  Lab: "lab",
21
21
  ExerciseMachine: "exercise_machine",
22
+ Earphone: "earphone",
22
23
  };
@@ -4,13 +4,13 @@ export * as labTests from "./labTests";
4
4
  export * from "./labTests/types";
5
5
  export * as aggregate from "./aggregate";
6
6
  export * from "./aggregate/types";
7
- export * as providers from "./providers";
8
7
  export * as user from "./user";
9
- export * as vitals from "./vitals";
10
8
  export * as team from "./team";
9
+ export * as providers from "./providers";
10
+ export * as vitals from "./vitals";
11
11
  export * as insurance from "./insurance";
12
- export * from "./link/client/requests";
13
12
  export * from "./user/client/requests";
13
+ export * from "./link/client/requests";
14
14
  export * from "./labTests/client/requests";
15
15
  export * as testkit from "./testkit";
16
16
  export * from "./testkit/client/requests";
@@ -26,20 +26,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.payor = exports.order = exports.testkit = exports.insurance = exports.team = exports.vitals = exports.user = exports.providers = exports.aggregate = exports.labTests = exports.link = void 0;
29
+ exports.payor = exports.order = exports.testkit = exports.insurance = exports.vitals = exports.providers = exports.team = exports.user = exports.aggregate = exports.labTests = exports.link = void 0;
30
30
  exports.link = __importStar(require("./link"));
31
31
  __exportStar(require("./link/types"), exports);
32
32
  exports.labTests = __importStar(require("./labTests"));
33
33
  __exportStar(require("./labTests/types"), exports);
34
34
  exports.aggregate = __importStar(require("./aggregate"));
35
35
  __exportStar(require("./aggregate/types"), exports);
36
- exports.providers = __importStar(require("./providers"));
37
36
  exports.user = __importStar(require("./user"));
38
- exports.vitals = __importStar(require("./vitals"));
39
37
  exports.team = __importStar(require("./team"));
38
+ exports.providers = __importStar(require("./providers"));
39
+ exports.vitals = __importStar(require("./vitals"));
40
40
  exports.insurance = __importStar(require("./insurance"));
41
- __exportStar(require("./link/client/requests"), exports);
42
41
  __exportStar(require("./user/client/requests"), exports);
42
+ __exportStar(require("./link/client/requests"), exports);
43
43
  __exportStar(require("./labTests/client/requests"), exports);
44
44
  exports.testkit = __importStar(require("./testkit"));
45
45
  __exportStar(require("./testkit/client/requests"), exports);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingDeviceSourceType: core.serialization.Schema<serializers.ClientFacingDeviceSourceType.Raw, Vital.ClientFacingDeviceSourceType>;
8
8
  export declare namespace ClientFacingDeviceSourceType {
9
- type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
9
+ type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
10
10
  }
@@ -43,4 +43,5 @@ exports.ClientFacingDeviceSourceType = core.serialization.enum_([
43
43
  "ring",
44
44
  "lab",
45
45
  "exercise_machine",
46
+ "earphone",
46
47
  ]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingElectrocardiogramSourceType: core.serialization.Schema<serializers.ClientFacingElectrocardiogramSourceType.Raw, Vital.ClientFacingElectrocardiogramSourceType>;
8
8
  export declare namespace ClientFacingElectrocardiogramSourceType {
9
- type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
9
+ type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
10
10
  }
@@ -43,4 +43,5 @@ exports.ClientFacingElectrocardiogramSourceType = core.serialization.enum_([
43
43
  "ring",
44
44
  "lab",
45
45
  "exercise_machine",
46
+ "earphone",
46
47
  ]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingMenstrualCycleSourceType: core.serialization.Schema<serializers.ClientFacingMenstrualCycleSourceType.Raw, Vital.ClientFacingMenstrualCycleSourceType>;
8
8
  export declare namespace ClientFacingMenstrualCycleSourceType {
9
- type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
9
+ type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
10
10
  }
@@ -43,4 +43,5 @@ exports.ClientFacingMenstrualCycleSourceType = core.serialization.enum_([
43
43
  "ring",
44
44
  "lab",
45
45
  "exercise_machine",
46
+ "earphone",
46
47
  ]);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingSleepCycleSourceType: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceType.Raw, Vital.ClientFacingSleepCycleSourceType>;
8
8
  export declare namespace ClientFacingSleepCycleSourceType {
9
- type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine";
9
+ type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab" | "exercise_machine" | "earphone";
10
10
  }
@@ -43,4 +43,5 @@ exports.ClientFacingSleepCycleSourceType = core.serialization.enum_([
43
43
  "ring",
44
44
  "lab",
45
45
  "exercise_machine",
46
+ "earphone",
46
47
  ]);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.393";
1
+ export declare const SDK_VERSION = "3.1.394";
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.393";
4
+ exports.SDK_VERSION = "3.1.394";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.393",
3
+ "version": "3.1.394",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",