@tryvital/vital-node 3.1.9 → 3.1.11

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 (99) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/body/client/Client.js +2 -2
  3. package/api/resources/devices/client/Client.js +1 -1
  4. package/api/resources/insurance/client/Client.js +2 -2
  5. package/api/resources/introspect/client/Client.js +2 -2
  6. package/api/resources/labTests/client/Client.js +24 -24
  7. package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -0
  8. package/api/resources/link/client/Client.js +14 -14
  9. package/api/resources/meal/client/Client.js +1 -1
  10. package/api/resources/profile/client/Client.js +2 -2
  11. package/api/resources/providers/client/Client.js +1 -1
  12. package/api/resources/sleep/client/Client.js +4 -4
  13. package/api/resources/team/client/Client.js +7 -7
  14. package/api/resources/testkit/client/Client.js +2 -2
  15. package/api/resources/user/client/Client.js +12 -12
  16. package/api/resources/vitals/client/Client.js +50 -50
  17. package/api/resources/workouts/client/Client.js +3 -3
  18. package/api/types/Answer.d.ts +8 -0
  19. package/api/types/Answer.js +5 -0
  20. package/api/types/AoE.d.ts +7 -0
  21. package/api/types/AoE.js +5 -0
  22. package/api/types/AoEAnswer.d.ts +8 -0
  23. package/api/types/AoEAnswer.js +5 -0
  24. package/api/types/ClientFacingMarker.d.ts +1 -0
  25. package/api/types/ClientFacingMarkerComplete.d.ts +1 -0
  26. package/api/types/Question.d.ts +13 -0
  27. package/api/types/Question.js +5 -0
  28. package/api/types/QuestionType.d.ts +13 -0
  29. package/api/types/QuestionType.js +12 -0
  30. package/api/types/index.d.ts +5 -0
  31. package/api/types/index.js +5 -0
  32. package/dist/api/resources/activity/client/Client.js +2 -2
  33. package/dist/api/resources/body/client/Client.js +2 -2
  34. package/dist/api/resources/devices/client/Client.js +1 -1
  35. package/dist/api/resources/insurance/client/Client.js +2 -2
  36. package/dist/api/resources/introspect/client/Client.js +2 -2
  37. package/dist/api/resources/labTests/client/Client.js +24 -24
  38. package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -0
  39. package/dist/api/resources/link/client/Client.js +14 -14
  40. package/dist/api/resources/meal/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 +4 -4
  44. package/dist/api/resources/team/client/Client.js +7 -7
  45. package/dist/api/resources/testkit/client/Client.js +2 -2
  46. package/dist/api/resources/user/client/Client.js +12 -12
  47. package/dist/api/resources/vitals/client/Client.js +50 -50
  48. package/dist/api/resources/workouts/client/Client.js +3 -3
  49. package/dist/api/types/Answer.d.ts +8 -0
  50. package/dist/api/types/Answer.js +5 -0
  51. package/dist/api/types/AoE.d.ts +7 -0
  52. package/dist/api/types/AoE.js +5 -0
  53. package/dist/api/types/AoEAnswer.d.ts +8 -0
  54. package/dist/api/types/AoEAnswer.js +5 -0
  55. package/dist/api/types/ClientFacingMarker.d.ts +1 -0
  56. package/dist/api/types/ClientFacingMarkerComplete.d.ts +1 -0
  57. package/dist/api/types/Question.d.ts +13 -0
  58. package/dist/api/types/Question.js +5 -0
  59. package/dist/api/types/QuestionType.d.ts +13 -0
  60. package/dist/api/types/QuestionType.js +12 -0
  61. package/dist/api/types/index.d.ts +5 -0
  62. package/dist/api/types/index.js +5 -0
  63. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -0
  64. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -0
  65. package/dist/serialization/types/Answer.d.ts +14 -0
  66. package/dist/serialization/types/Answer.js +35 -0
  67. package/dist/serialization/types/AoE.d.ts +13 -0
  68. package/dist/serialization/types/AoE.js +34 -0
  69. package/dist/serialization/types/AoEAnswer.d.ts +14 -0
  70. package/dist/serialization/types/AoEAnswer.js +35 -0
  71. package/dist/serialization/types/ClientFacingMarker.d.ts +2 -0
  72. package/dist/serialization/types/ClientFacingMarker.js +2 -0
  73. package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
  74. package/dist/serialization/types/ClientFacingMarkerComplete.js +2 -0
  75. package/dist/serialization/types/Question.d.ts +20 -0
  76. package/dist/serialization/types/Question.js +41 -0
  77. package/dist/serialization/types/QuestionType.d.ts +10 -0
  78. package/dist/serialization/types/QuestionType.js +31 -0
  79. package/dist/serialization/types/index.d.ts +5 -0
  80. package/dist/serialization/types/index.js +5 -0
  81. package/package.json +1 -1
  82. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -0
  83. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -0
  84. package/serialization/types/Answer.d.ts +14 -0
  85. package/serialization/types/Answer.js +35 -0
  86. package/serialization/types/AoE.d.ts +13 -0
  87. package/serialization/types/AoE.js +34 -0
  88. package/serialization/types/AoEAnswer.d.ts +14 -0
  89. package/serialization/types/AoEAnswer.js +35 -0
  90. package/serialization/types/ClientFacingMarker.d.ts +2 -0
  91. package/serialization/types/ClientFacingMarker.js +2 -0
  92. package/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
  93. package/serialization/types/ClientFacingMarkerComplete.js +2 -0
  94. package/serialization/types/Question.d.ts +20 -0
  95. package/serialization/types/Question.js +41 -0
  96. package/serialization/types/QuestionType.d.ts +10 -0
  97. package/serialization/types/QuestionType.js +31 -0
  98. package/serialization/types/index.d.ts +5 -0
  99. package/serialization/types/index.js +5 -0
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.AoEAnswer = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.AoEAnswer = core.serialization.object({
32
+ markerId: core.serialization.property("marker_id", core.serialization.number()),
33
+ questionId: core.serialization.property("question_id", core.serialization.number()),
34
+ answer: core.serialization.string(),
35
+ });
@@ -5,6 +5,7 @@ import * as serializers from "..";
5
5
  import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  import { MarkerType } from "./MarkerType";
8
+ import { AoE } from "./AoE";
8
9
  export declare const ClientFacingMarker: core.serialization.ObjectSchema<serializers.ClientFacingMarker.Raw, Vital.ClientFacingMarker>;
9
10
  export declare namespace ClientFacingMarker {
10
11
  interface Raw {
@@ -17,5 +18,6 @@ export declare namespace ClientFacingMarker {
17
18
  type?: MarkerType.Raw | null;
18
19
  unit?: string | null;
19
20
  price?: string | null;
21
+ aoe?: AoE.Raw | null;
20
22
  }
21
23
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingMarker = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const MarkerType_1 = require("./MarkerType");
32
+ const AoE_1 = require("./AoE");
32
33
  exports.ClientFacingMarker = core.serialization.object({
33
34
  id: core.serialization.number(),
34
35
  name: core.serialization.string(),
@@ -39,4 +40,5 @@ exports.ClientFacingMarker = core.serialization.object({
39
40
  type: MarkerType_1.MarkerType.optional(),
40
41
  unit: core.serialization.string().optional(),
41
42
  price: core.serialization.string().optional(),
43
+ aoe: AoE_1.AoE.optional(),
42
44
  });
@@ -5,6 +5,7 @@ import * as serializers from "..";
5
5
  import * as Vital from "../../api";
6
6
  import * as core from "../../core";
7
7
  import { MarkerType } from "./MarkerType";
8
+ import { AoE } from "./AoE";
8
9
  import { ClientFacingResult } from "./ClientFacingResult";
9
10
  export declare const ClientFacingMarkerComplete: core.serialization.ObjectSchema<serializers.ClientFacingMarkerComplete.Raw, Vital.ClientFacingMarkerComplete>;
10
11
  export declare namespace ClientFacingMarkerComplete {
@@ -18,6 +19,7 @@ export declare namespace ClientFacingMarkerComplete {
18
19
  type?: MarkerType.Raw | null;
19
20
  unit?: string | null;
20
21
  price?: string | null;
22
+ aoe?: AoE.Raw | null;
21
23
  expected_results: ClientFacingResult.Raw[];
22
24
  }
23
25
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientFacingMarkerComplete = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const MarkerType_1 = require("./MarkerType");
32
+ const AoE_1 = require("./AoE");
32
33
  const ClientFacingResult_1 = require("./ClientFacingResult");
33
34
  exports.ClientFacingMarkerComplete = core.serialization.object({
34
35
  id: core.serialization.number(),
@@ -40,5 +41,6 @@ exports.ClientFacingMarkerComplete = core.serialization.object({
40
41
  type: MarkerType_1.MarkerType.optional(),
41
42
  unit: core.serialization.string().optional(),
42
43
  price: core.serialization.string().optional(),
44
+ aoe: AoE_1.AoE.optional(),
43
45
  expectedResults: core.serialization.property("expected_results", core.serialization.list(ClientFacingResult_1.ClientFacingResult)),
44
46
  });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ import { QuestionType } from "./QuestionType";
8
+ import { Answer } from "./Answer";
9
+ export declare const Question: core.serialization.ObjectSchema<serializers.Question.Raw, Vital.Question>;
10
+ export declare namespace Question {
11
+ interface Raw {
12
+ id: number;
13
+ required: boolean;
14
+ code: string;
15
+ value: string;
16
+ type: QuestionType.Raw;
17
+ sequence: number;
18
+ answers: Answer.Raw[];
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Question = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const QuestionType_1 = require("./QuestionType");
32
+ const Answer_1 = require("./Answer");
33
+ exports.Question = core.serialization.object({
34
+ id: core.serialization.number(),
35
+ required: core.serialization.boolean(),
36
+ code: core.serialization.string(),
37
+ value: core.serialization.string(),
38
+ type: QuestionType_1.QuestionType,
39
+ sequence: core.serialization.number(),
40
+ answers: core.serialization.list(Answer_1.Answer),
41
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vital from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const QuestionType: core.serialization.Schema<serializers.QuestionType.Raw, Vital.QuestionType>;
8
+ export declare namespace QuestionType {
9
+ type Raw = "choice" | "text" | "numeric" | "multi_choice";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.QuestionType = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.QuestionType = core.serialization.enum_(["choice", "text", "numeric", "multi_choice"]);
@@ -1,5 +1,8 @@
1
1
  export * from "./ActivityV2InDb";
2
2
  export * from "./Address";
3
+ export * from "./Answer";
4
+ export * from "./AoE";
5
+ export * from "./AoEAnswer";
3
6
  export * from "./AppointmentAvailabilitySlots";
4
7
  export * from "./AppointmentEventStatus";
5
8
  export * from "./AppointmentProvider";
@@ -194,6 +197,8 @@ export * from "./ProviderLinkResponse";
194
197
  export * from "./ProviderMfaRequestMethod";
195
198
  export * from "./ProviderMfaRequest";
196
199
  export * from "./Providers";
200
+ export * from "./Question";
201
+ export * from "./QuestionType";
197
202
  export * from "./RawActivity";
198
203
  export * from "./RawBody";
199
204
  export * from "./RawDevices";
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ActivityV2InDb"), exports);
18
18
  __exportStar(require("./Address"), exports);
19
+ __exportStar(require("./Answer"), exports);
20
+ __exportStar(require("./AoE"), exports);
21
+ __exportStar(require("./AoEAnswer"), exports);
19
22
  __exportStar(require("./AppointmentAvailabilitySlots"), exports);
20
23
  __exportStar(require("./AppointmentEventStatus"), exports);
21
24
  __exportStar(require("./AppointmentProvider"), exports);
@@ -210,6 +213,8 @@ __exportStar(require("./ProviderLinkResponse"), exports);
210
213
  __exportStar(require("./ProviderMfaRequestMethod"), exports);
211
214
  __exportStar(require("./ProviderMfaRequest"), exports);
212
215
  __exportStar(require("./Providers"), exports);
216
+ __exportStar(require("./Question"), exports);
217
+ __exportStar(require("./QuestionType"), exports);
213
218
  __exportStar(require("./RawActivity"), exports);
214
219
  __exportStar(require("./RawBody"), exports);
215
220
  __exportStar(require("./RawDevices"), exports);