@tryvital/vital-node 3.0.3 → 3.0.4

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 (79) 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 +1 -1
  6. package/api/resources/labTests/client/Client.js +31 -24
  7. package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
  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 +11 -11
  16. package/api/resources/vitals/client/Client.js +23 -23
  17. package/api/resources/workouts/client/Client.js +3 -3
  18. package/api/types/EventDestinationPreferences.d.ts +8 -0
  19. package/api/types/EventDestinationPreferences.js +5 -0
  20. package/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
  21. package/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
  22. package/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
  23. package/api/types/EventDestinationPreferencesPreferred.js +11 -0
  24. package/api/types/PatientAddressCompatible.d.ts +2 -2
  25. package/api/types/TeamConfig.d.ts +3 -0
  26. package/api/types/index.d.ts +3 -0
  27. package/api/types/index.js +3 -0
  28. package/dist/api/resources/activity/client/Client.js +2 -2
  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/insurance/client/Client.js +2 -2
  32. package/dist/api/resources/introspect/client/Client.js +1 -1
  33. package/dist/api/resources/labTests/client/Client.js +31 -24
  34. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
  35. package/dist/api/resources/link/client/Client.js +14 -14
  36. package/dist/api/resources/meal/client/Client.js +1 -1
  37. package/dist/api/resources/profile/client/Client.js +2 -2
  38. package/dist/api/resources/providers/client/Client.js +1 -1
  39. package/dist/api/resources/sleep/client/Client.js +4 -4
  40. package/dist/api/resources/team/client/Client.js +7 -7
  41. package/dist/api/resources/testkit/client/Client.js +2 -2
  42. package/dist/api/resources/user/client/Client.js +11 -11
  43. package/dist/api/resources/vitals/client/Client.js +23 -23
  44. package/dist/api/resources/workouts/client/Client.js +3 -3
  45. package/dist/api/types/EventDestinationPreferences.d.ts +8 -0
  46. package/dist/api/types/EventDestinationPreferences.js +5 -0
  47. package/dist/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
  48. package/dist/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
  49. package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
  50. package/dist/api/types/EventDestinationPreferencesPreferred.js +11 -0
  51. package/dist/api/types/PatientAddressCompatible.d.ts +2 -2
  52. package/dist/api/types/TeamConfig.d.ts +3 -0
  53. package/dist/api/types/index.d.ts +3 -0
  54. package/dist/api/types/index.js +3 -0
  55. package/dist/serialization/types/EventDestinationPreferences.d.ts +13 -0
  56. package/dist/serialization/types/EventDestinationPreferences.js +43 -0
  57. package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
  58. package/dist/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
  59. package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
  60. package/dist/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
  61. package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
  62. package/dist/serialization/types/PatientAddressCompatible.js +2 -2
  63. package/dist/serialization/types/TeamConfig.d.ts +3 -0
  64. package/dist/serialization/types/TeamConfig.js +3 -0
  65. package/dist/serialization/types/index.d.ts +3 -0
  66. package/dist/serialization/types/index.js +3 -0
  67. package/package.json +1 -1
  68. package/serialization/types/EventDestinationPreferences.d.ts +13 -0
  69. package/serialization/types/EventDestinationPreferences.js +43 -0
  70. package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
  71. package/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
  72. package/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
  73. package/serialization/types/EventDestinationPreferencesPreferred.js +31 -0
  74. package/serialization/types/PatientAddressCompatible.d.ts +2 -2
  75. package/serialization/types/PatientAddressCompatible.js +2 -2
  76. package/serialization/types/TeamConfig.d.ts +3 -0
  77. package/serialization/types/TeamConfig.js +3 -0
  78. package/serialization/types/index.d.ts +3 -0
  79. package/serialization/types/index.js +3 -0
@@ -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.EventDestinationPreferencesEnabledItem = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.EventDestinationPreferencesEnabledItem = core.serialization.enum_(["cloud_pubsub", "rabbitmq", "svix"]);
@@ -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 EventDestinationPreferencesPreferred: core.serialization.Schema<serializers.EventDestinationPreferencesPreferred.Raw, Vital.EventDestinationPreferencesPreferred>;
8
+ export declare namespace EventDestinationPreferencesPreferred {
9
+ type Raw = "cloud_pubsub" | "rabbitmq" | "svix";
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.EventDestinationPreferencesPreferred = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.EventDestinationPreferencesPreferred = core.serialization.enum_(["cloud_pubsub", "rabbitmq", "svix"]);
@@ -8,8 +8,8 @@ export declare const PatientAddressCompatible: core.serialization.ObjectSchema<s
8
8
  export declare namespace PatientAddressCompatible {
9
9
  interface Raw {
10
10
  receiver_name?: string | null;
11
- street: string;
12
- street_number?: string | null;
11
+ first_line: string;
12
+ second_line?: string | null;
13
13
  city: string;
14
14
  state: string;
15
15
  zip: string;
@@ -30,8 +30,8 @@ exports.PatientAddressCompatible = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.PatientAddressCompatible = core.serialization.object({
32
32
  receiverName: core.serialization.property("receiver_name", core.serialization.string().optional()),
33
- street: core.serialization.string(),
34
- streetNumber: core.serialization.property("street_number", core.serialization.string().optional()),
33
+ firstLine: core.serialization.property("first_line", core.serialization.string()),
34
+ secondLine: core.serialization.property("second_line", core.serialization.string().optional()),
35
35
  city: core.serialization.string(),
36
36
  state: core.serialization.string(),
37
37
  zip: core.serialization.string(),
@@ -9,5 +9,8 @@ export declare namespace TeamConfig {
9
9
  interface Raw {
10
10
  libreview: serializers.LibreConfig.Raw;
11
11
  texts_enabled?: boolean | null;
12
+ push_historical_data?: boolean | null;
13
+ eds_preferences?: serializers.EventDestinationPreferences.Raw | null;
14
+ event_type_prefixes?: string[] | null;
12
15
  }
13
16
  }
@@ -40,4 +40,7 @@ const core = __importStar(require("../../core"));
40
40
  exports.TeamConfig = core.serialization.object({
41
41
  libreview: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).LibreConfig; })),
42
42
  textsEnabled: core.serialization.property("texts_enabled", core.serialization.boolean().optional()),
43
+ pushHistoricalData: core.serialization.property("push_historical_data", core.serialization.boolean().optional()),
44
+ edsPreferences: core.serialization.property("eds_preferences", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferences; })).optional()),
45
+ eventTypePrefixes: core.serialization.property("event_type_prefixes", core.serialization.list(core.serialization.string()).optional()),
43
46
  });
@@ -88,6 +88,9 @@ export * from "./DemoProviders";
88
88
  export * from "./DeviceV2InDb";
89
89
  export * from "./EmailProviders";
90
90
  export * from "./Energy";
91
+ export * from "./EventDestinationPreferences";
92
+ export * from "./EventDestinationPreferencesPreferred";
93
+ export * from "./EventDestinationPreferencesEnabledItem";
91
94
  export * from "./FallbackTimeZone";
92
95
  export * from "./Fats";
93
96
  export * from "./Gender";
@@ -104,6 +104,9 @@ __exportStar(require("./DemoProviders"), exports);
104
104
  __exportStar(require("./DeviceV2InDb"), exports);
105
105
  __exportStar(require("./EmailProviders"), exports);
106
106
  __exportStar(require("./Energy"), exports);
107
+ __exportStar(require("./EventDestinationPreferences"), exports);
108
+ __exportStar(require("./EventDestinationPreferencesPreferred"), exports);
109
+ __exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
107
110
  __exportStar(require("./FallbackTimeZone"), exports);
108
111
  __exportStar(require("./Fats"), exports);
109
112
  __exportStar(require("./Gender"), exports);