@tryvital/vital-node 3.1.528 → 3.1.529

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 (65) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +3 -3
  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/labReport/client/Client.js +2 -2
  9. package/api/resources/labTests/client/Client.js +42 -42
  10. package/api/resources/link/client/Client.js +19 -19
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/order/client/Client.js +1 -1
  14. package/api/resources/payor/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +3 -3
  18. package/api/resources/sleepCycle/client/Client.js +1 -1
  19. package/api/resources/team/client/Client.js +7 -7
  20. package/api/resources/testkit/client/Client.js +2 -2
  21. package/api/resources/user/client/Client.js +25 -19
  22. package/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  23. package/api/resources/user/client/requests/GetLatestInsuranceUserRequest.d.ts +1 -0
  24. package/api/resources/vitals/client/Client.js +78 -78
  25. package/api/resources/workouts/client/Client.js +3 -3
  26. package/api/types/ClientFacingInsurance.d.ts +1 -0
  27. package/dist/api/resources/activity/client/Client.js +2 -2
  28. package/dist/api/resources/aggregate/client/Client.js +3 -3
  29. package/dist/api/resources/body/client/Client.js +2 -2
  30. package/dist/api/resources/devices/client/Client.js +1 -1
  31. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  32. package/dist/api/resources/insurance/client/Client.js +3 -3
  33. package/dist/api/resources/introspect/client/Client.js +2 -2
  34. package/dist/api/resources/labReport/client/Client.js +2 -2
  35. package/dist/api/resources/labTests/client/Client.js +42 -42
  36. package/dist/api/resources/link/client/Client.js +19 -19
  37. package/dist/api/resources/meal/client/Client.js +1 -1
  38. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  39. package/dist/api/resources/order/client/Client.js +1 -1
  40. package/dist/api/resources/payor/client/Client.js +1 -1
  41. package/dist/api/resources/profile/client/Client.js +2 -2
  42. package/dist/api/resources/providers/client/Client.js +1 -1
  43. package/dist/api/resources/sleep/client/Client.js +3 -3
  44. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  45. package/dist/api/resources/team/client/Client.js +7 -7
  46. package/dist/api/resources/testkit/client/Client.js +2 -2
  47. package/dist/api/resources/user/client/Client.js +25 -19
  48. package/dist/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  49. package/dist/api/resources/user/client/requests/GetLatestInsuranceUserRequest.d.ts +1 -0
  50. package/dist/api/resources/vitals/client/Client.js +78 -78
  51. package/dist/api/resources/workouts/client/Client.js +3 -3
  52. package/dist/api/types/ClientFacingInsurance.d.ts +1 -0
  53. package/dist/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  54. package/dist/serialization/resources/user/client/requests/CreateInsuranceRequest.js +1 -0
  55. package/dist/serialization/types/ClientFacingInsurance.d.ts +1 -0
  56. package/dist/serialization/types/ClientFacingInsurance.js +1 -0
  57. package/dist/version.d.ts +1 -1
  58. package/dist/version.js +1 -1
  59. package/package.json +1 -1
  60. package/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  61. package/serialization/resources/user/client/requests/CreateInsuranceRequest.js +1 -0
  62. package/serialization/types/ClientFacingInsurance.d.ts +1 -0
  63. package/serialization/types/ClientFacingInsurance.js +1 -0
  64. package/version.d.ts +1 -1
  65. 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.528", "User-Agent": "@tryvital/vital-node/3.1.528", "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.529", "User-Agent": "@tryvital/vital-node/3.1.529", "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.528", "User-Agent": "@tryvital/vital-node/3.1.528", "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.529", "User-Agent": "@tryvital/vital-node/3.1.529", "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",
@@ -217,7 +217,7 @@ class Workouts {
217
217
  const _response = yield core.fetcher({
218
218
  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`),
219
219
  method: "GET",
220
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.528", "User-Agent": "@tryvital/vital-node/3.1.528", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
221
221
  contentType: "application/json",
222
222
  requestType: "json",
223
223
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -10,4 +10,5 @@ export interface ClientFacingInsurance {
10
10
  company: Vital.CompanyDetails;
11
11
  groupId?: string;
12
12
  guarantor?: Vital.GuarantorDetails;
13
+ isPrimary?: boolean;
13
14
  }
@@ -16,5 +16,6 @@ export declare namespace CreateInsuranceRequest {
16
16
  relationship: ResponsibleRelationship.Raw;
17
17
  insured: VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.Raw;
18
18
  guarantor?: GuarantorDetails.Raw | null;
19
+ is_primary?: boolean | null;
19
20
  }
20
21
  }
@@ -38,4 +38,5 @@ exports.CreateInsuranceRequest = core.serialization.object({
38
38
  relationship: ResponsibleRelationship_1.ResponsibleRelationship,
39
39
  insured: VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails_1.VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails,
40
40
  guarantor: GuarantorDetails_1.GuarantorDetails.optional(),
41
+ isPrimary: core.serialization.property("is_primary", core.serialization.boolean().optional()),
41
42
  });
@@ -18,5 +18,6 @@ export declare namespace ClientFacingInsurance {
18
18
  company: CompanyDetails.Raw;
19
19
  group_id?: string | null;
20
20
  guarantor?: GuarantorDetails.Raw | null;
21
+ is_primary?: boolean | null;
21
22
  }
22
23
  }
@@ -40,4 +40,5 @@ exports.ClientFacingInsurance = core.serialization.object({
40
40
  company: CompanyDetails_1.CompanyDetails,
41
41
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
42
42
  guarantor: GuarantorDetails_1.GuarantorDetails.optional(),
43
+ isPrimary: core.serialization.property("is_primary", core.serialization.boolean().optional()),
43
44
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.528";
1
+ export declare const SDK_VERSION = "3.1.529";
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.528";
4
+ exports.SDK_VERSION = "3.1.529";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.528",
3
+ "version": "3.1.529",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -16,5 +16,6 @@ export declare namespace CreateInsuranceRequest {
16
16
  relationship: ResponsibleRelationship.Raw;
17
17
  insured: VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.Raw;
18
18
  guarantor?: GuarantorDetails.Raw | null;
19
+ is_primary?: boolean | null;
19
20
  }
20
21
  }
@@ -38,4 +38,5 @@ exports.CreateInsuranceRequest = core.serialization.object({
38
38
  relationship: ResponsibleRelationship_1.ResponsibleRelationship,
39
39
  insured: VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails_1.VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails,
40
40
  guarantor: GuarantorDetails_1.GuarantorDetails.optional(),
41
+ isPrimary: core.serialization.property("is_primary", core.serialization.boolean().optional()),
41
42
  });
@@ -18,5 +18,6 @@ export declare namespace ClientFacingInsurance {
18
18
  company: CompanyDetails.Raw;
19
19
  group_id?: string | null;
20
20
  guarantor?: GuarantorDetails.Raw | null;
21
+ is_primary?: boolean | null;
21
22
  }
22
23
  }
@@ -40,4 +40,5 @@ exports.ClientFacingInsurance = core.serialization.object({
40
40
  company: CompanyDetails_1.CompanyDetails,
41
41
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
42
42
  guarantor: GuarantorDetails_1.GuarantorDetails.optional(),
43
+ isPrimary: core.serialization.property("is_primary", core.serialization.boolean().optional()),
43
44
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.528";
1
+ export declare const SDK_VERSION = "3.1.529";
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.528";
4
+ exports.SDK_VERSION = "3.1.529";