@tryvital/vital-node 3.1.254 → 3.1.255

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 (132) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.d.ts +12 -0
  3. package/api/resources/aggregate/client/Client.js +74 -2
  4. package/api/resources/aggregate/client/requests/AggregateGetTaskHistoryForContinuousQueryRequest.d.ts +11 -0
  5. package/api/resources/aggregate/client/requests/AggregateGetTaskHistoryForContinuousQueryRequest.js +5 -0
  6. package/api/resources/aggregate/client/requests/index.d.ts +1 -0
  7. package/api/resources/body/client/Client.js +2 -2
  8. package/api/resources/devices/client/Client.js +1 -1
  9. package/api/resources/electrocardiogram/client/Client.js +1 -1
  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 +44 -41
  13. package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
  14. package/api/resources/link/client/Client.js +19 -19
  15. package/api/resources/meal/client/Client.js +1 -1
  16. package/api/resources/menstrualCycle/client/Client.js +1 -1
  17. package/api/resources/order/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.js +4 -4
  21. package/api/resources/sleepCycle/client/Client.js +1 -1
  22. package/api/resources/team/client/Client.js +7 -7
  23. package/api/resources/testkit/client/Client.js +2 -2
  24. package/api/resources/user/client/Client.js +16 -16
  25. package/api/resources/vitals/client/Client.js +78 -78
  26. package/api/resources/workouts/client/Client.js +3 -3
  27. package/api/types/ClientFacingProviderWithStatus.d.ts +9 -0
  28. package/api/types/ContinuousQueryTaskHistoryEntry.d.ts +14 -0
  29. package/api/types/ContinuousQueryTaskHistoryEntry.js +5 -0
  30. package/api/types/ContinuousQueryTaskHistoryResponse.d.ts +8 -0
  31. package/api/types/ContinuousQueryTaskHistoryResponse.js +5 -0
  32. package/api/types/ContinuousQueryTaskStatus.d.ts +13 -0
  33. package/api/types/ContinuousQueryTaskStatus.js +12 -0
  34. package/api/types/HistoricalPullNonRetriableErrorDetails.d.ts +12 -0
  35. package/api/types/HistoricalPullNonRetriableErrorDetails.js +11 -0
  36. package/api/types/HistoricalPullRetriableErrorDetails.d.ts +13 -0
  37. package/api/types/HistoricalPullRetriableErrorDetails.js +12 -0
  38. package/api/types/ProviderConnectionCreated.d.ts +9 -0
  39. package/api/types/SingleHistoricalPullStatistics.d.ts +1 -0
  40. package/api/types/SingleHistoricalPullStatisticsErrorDetails.d.ts +5 -0
  41. package/api/types/SingleHistoricalPullStatisticsErrorDetails.js +5 -0
  42. package/api/types/index.d.ts +6 -0
  43. package/api/types/index.js +6 -0
  44. package/dist/api/resources/activity/client/Client.js +2 -2
  45. package/dist/api/resources/aggregate/client/Client.d.ts +12 -0
  46. package/dist/api/resources/aggregate/client/Client.js +74 -2
  47. package/dist/api/resources/aggregate/client/requests/AggregateGetTaskHistoryForContinuousQueryRequest.d.ts +11 -0
  48. package/dist/api/resources/aggregate/client/requests/AggregateGetTaskHistoryForContinuousQueryRequest.js +5 -0
  49. package/dist/api/resources/aggregate/client/requests/index.d.ts +1 -0
  50. package/dist/api/resources/body/client/Client.js +2 -2
  51. package/dist/api/resources/devices/client/Client.js +1 -1
  52. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  53. package/dist/api/resources/insurance/client/Client.js +3 -3
  54. package/dist/api/resources/introspect/client/Client.js +2 -2
  55. package/dist/api/resources/labTests/client/Client.js +44 -41
  56. package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
  57. package/dist/api/resources/link/client/Client.js +19 -19
  58. package/dist/api/resources/meal/client/Client.js +1 -1
  59. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  60. package/dist/api/resources/order/client/Client.js +1 -1
  61. package/dist/api/resources/profile/client/Client.js +2 -2
  62. package/dist/api/resources/providers/client/Client.js +1 -1
  63. package/dist/api/resources/sleep/client/Client.js +4 -4
  64. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  65. package/dist/api/resources/team/client/Client.js +7 -7
  66. package/dist/api/resources/testkit/client/Client.js +2 -2
  67. package/dist/api/resources/user/client/Client.js +16 -16
  68. package/dist/api/resources/vitals/client/Client.js +78 -78
  69. package/dist/api/resources/workouts/client/Client.js +3 -3
  70. package/dist/api/types/ClientFacingProviderWithStatus.d.ts +9 -0
  71. package/dist/api/types/ContinuousQueryTaskHistoryEntry.d.ts +14 -0
  72. package/dist/api/types/ContinuousQueryTaskHistoryEntry.js +5 -0
  73. package/dist/api/types/ContinuousQueryTaskHistoryResponse.d.ts +8 -0
  74. package/dist/api/types/ContinuousQueryTaskHistoryResponse.js +5 -0
  75. package/dist/api/types/ContinuousQueryTaskStatus.d.ts +13 -0
  76. package/dist/api/types/ContinuousQueryTaskStatus.js +12 -0
  77. package/dist/api/types/HistoricalPullNonRetriableErrorDetails.d.ts +12 -0
  78. package/dist/api/types/HistoricalPullNonRetriableErrorDetails.js +11 -0
  79. package/dist/api/types/HistoricalPullRetriableErrorDetails.d.ts +13 -0
  80. package/dist/api/types/HistoricalPullRetriableErrorDetails.js +12 -0
  81. package/dist/api/types/ProviderConnectionCreated.d.ts +9 -0
  82. package/dist/api/types/SingleHistoricalPullStatistics.d.ts +1 -0
  83. package/dist/api/types/SingleHistoricalPullStatisticsErrorDetails.d.ts +5 -0
  84. package/dist/api/types/SingleHistoricalPullStatisticsErrorDetails.js +5 -0
  85. package/dist/api/types/index.d.ts +6 -0
  86. package/dist/api/types/index.js +6 -0
  87. package/dist/serialization/types/ClientFacingProviderWithStatus.d.ts +1 -0
  88. package/dist/serialization/types/ClientFacingProviderWithStatus.js +1 -0
  89. package/dist/serialization/types/ContinuousQueryTaskHistoryEntry.d.ts +20 -0
  90. package/dist/serialization/types/ContinuousQueryTaskHistoryEntry.js +41 -0
  91. package/dist/serialization/types/ContinuousQueryTaskHistoryResponse.d.ts +14 -0
  92. package/dist/serialization/types/ContinuousQueryTaskHistoryResponse.js +35 -0
  93. package/dist/serialization/types/ContinuousQueryTaskStatus.d.ts +10 -0
  94. package/dist/serialization/types/ContinuousQueryTaskStatus.js +31 -0
  95. package/dist/serialization/types/HistoricalPullNonRetriableErrorDetails.d.ts +10 -0
  96. package/dist/serialization/types/HistoricalPullNonRetriableErrorDetails.js +31 -0
  97. package/dist/serialization/types/HistoricalPullRetriableErrorDetails.d.ts +10 -0
  98. package/dist/serialization/types/HistoricalPullRetriableErrorDetails.js +36 -0
  99. package/dist/serialization/types/ProviderConnectionCreated.d.ts +1 -0
  100. package/dist/serialization/types/ProviderConnectionCreated.js +1 -0
  101. package/dist/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -0
  102. package/dist/serialization/types/SingleHistoricalPullStatistics.js +2 -0
  103. package/dist/serialization/types/SingleHistoricalPullStatisticsErrorDetails.d.ts +12 -0
  104. package/dist/serialization/types/SingleHistoricalPullStatisticsErrorDetails.js +36 -0
  105. package/dist/serialization/types/index.d.ts +6 -0
  106. package/dist/serialization/types/index.js +6 -0
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +64 -0
  111. package/serialization/types/ClientFacingProviderWithStatus.d.ts +1 -0
  112. package/serialization/types/ClientFacingProviderWithStatus.js +1 -0
  113. package/serialization/types/ContinuousQueryTaskHistoryEntry.d.ts +20 -0
  114. package/serialization/types/ContinuousQueryTaskHistoryEntry.js +41 -0
  115. package/serialization/types/ContinuousQueryTaskHistoryResponse.d.ts +14 -0
  116. package/serialization/types/ContinuousQueryTaskHistoryResponse.js +35 -0
  117. package/serialization/types/ContinuousQueryTaskStatus.d.ts +10 -0
  118. package/serialization/types/ContinuousQueryTaskStatus.js +31 -0
  119. package/serialization/types/HistoricalPullNonRetriableErrorDetails.d.ts +10 -0
  120. package/serialization/types/HistoricalPullNonRetriableErrorDetails.js +31 -0
  121. package/serialization/types/HistoricalPullRetriableErrorDetails.d.ts +10 -0
  122. package/serialization/types/HistoricalPullRetriableErrorDetails.js +36 -0
  123. package/serialization/types/ProviderConnectionCreated.d.ts +1 -0
  124. package/serialization/types/ProviderConnectionCreated.js +1 -0
  125. package/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -0
  126. package/serialization/types/SingleHistoricalPullStatistics.js +2 -0
  127. package/serialization/types/SingleHistoricalPullStatisticsErrorDetails.d.ts +12 -0
  128. package/serialization/types/SingleHistoricalPullStatisticsErrorDetails.js +36 -0
  129. package/serialization/types/index.d.ts +6 -0
  130. package/serialization/types/index.js +6 -0
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
@@ -187,6 +187,9 @@ export * from "./ConnectionRecipe";
187
187
  export * from "./Consent";
188
188
  export * from "./ConsentType";
189
189
  export * from "./ContinuousQueryResultTableChanges";
190
+ export * from "./ContinuousQueryTaskHistoryEntry";
191
+ export * from "./ContinuousQueryTaskHistoryResponse";
192
+ export * from "./ContinuousQueryTaskStatus";
190
193
  export * from "./ContraceptiveEntryType";
191
194
  export * from "./ContraceptiveEntry";
192
195
  export * from "./DatePartExprArg";
@@ -224,6 +227,8 @@ export * from "./HealthInsuranceCreateRequestBackImage";
224
227
  export * from "./HealthInsuranceCreateRequestPatientSignatureImage";
225
228
  export * from "./HealthInsuranceCreateRequest";
226
229
  export * from "./HistoricalPullCompleted";
230
+ export * from "./HistoricalPullNonRetriableErrorDetails";
231
+ export * from "./HistoricalPullRetriableErrorDetails";
227
232
  export * from "./HistoricalPullStatus";
228
233
  export * from "./HistoricalPullTimeline";
229
234
  export * from "./HomePregnancyTestEntryTestResult";
@@ -329,6 +334,7 @@ export * from "./SexualActivityEntry";
329
334
  export * from "./SexualOrientation";
330
335
  export * from "./ShippingAddress";
331
336
  export * from "./ShippingAddressWithValidation";
337
+ export * from "./SingleHistoricalPullStatisticsErrorDetails";
332
338
  export * from "./SingleHistoricalPullStatistics";
333
339
  export * from "./SingleProviderHistoricalPullResponse";
334
340
  export * from "./SingleResourceStatistics";
@@ -203,6 +203,9 @@ __exportStar(require("./ConnectionRecipe"), exports);
203
203
  __exportStar(require("./Consent"), exports);
204
204
  __exportStar(require("./ConsentType"), exports);
205
205
  __exportStar(require("./ContinuousQueryResultTableChanges"), exports);
206
+ __exportStar(require("./ContinuousQueryTaskHistoryEntry"), exports);
207
+ __exportStar(require("./ContinuousQueryTaskHistoryResponse"), exports);
208
+ __exportStar(require("./ContinuousQueryTaskStatus"), exports);
206
209
  __exportStar(require("./ContraceptiveEntryType"), exports);
207
210
  __exportStar(require("./ContraceptiveEntry"), exports);
208
211
  __exportStar(require("./DatePartExprArg"), exports);
@@ -240,6 +243,8 @@ __exportStar(require("./HealthInsuranceCreateRequestBackImage"), exports);
240
243
  __exportStar(require("./HealthInsuranceCreateRequestPatientSignatureImage"), exports);
241
244
  __exportStar(require("./HealthInsuranceCreateRequest"), exports);
242
245
  __exportStar(require("./HistoricalPullCompleted"), exports);
246
+ __exportStar(require("./HistoricalPullNonRetriableErrorDetails"), exports);
247
+ __exportStar(require("./HistoricalPullRetriableErrorDetails"), exports);
243
248
  __exportStar(require("./HistoricalPullStatus"), exports);
244
249
  __exportStar(require("./HistoricalPullTimeline"), exports);
245
250
  __exportStar(require("./HomePregnancyTestEntryTestResult"), exports);
@@ -345,6 +350,7 @@ __exportStar(require("./SexualActivityEntry"), exports);
345
350
  __exportStar(require("./SexualOrientation"), exports);
346
351
  __exportStar(require("./ShippingAddress"), exports);
347
352
  __exportStar(require("./ShippingAddressWithValidation"), exports);
353
+ __exportStar(require("./SingleHistoricalPullStatisticsErrorDetails"), exports);
348
354
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
349
355
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
350
356
  __exportStar(require("./SingleResourceStatistics"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.254";
1
+ export declare const SDK_VERSION = "3.1.255";
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.254";
4
+ exports.SDK_VERSION = "3.1.255";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.254",
3
+ "version": "3.1.255",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -11105,3 +11105,67 @@ await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id_or_
11105
11105
  </dd>
11106
11106
  </dl>
11107
11107
  </details>
11108
+
11109
+ <details><summary><code>client.aggregate.<a href="/src/api/resources/aggregate/client/Client.ts">getTaskHistoryForContinuousQuery</a>(userId, queryIdOrSlug, { ...params }) -> Vital.ContinuousQueryTaskHistoryResponse</code></summary>
11110
+ <dl>
11111
+ <dd>
11112
+
11113
+ #### 🔌 Usage
11114
+
11115
+ <dl>
11116
+ <dd>
11117
+
11118
+ <dl>
11119
+ <dd>
11120
+
11121
+ ```typescript
11122
+ await client.aggregate.getTaskHistoryForContinuousQuery("user_id", "query_id_or_slug");
11123
+ ```
11124
+
11125
+ </dd>
11126
+ </dl>
11127
+ </dd>
11128
+ </dl>
11129
+
11130
+ #### ⚙️ Parameters
11131
+
11132
+ <dl>
11133
+ <dd>
11134
+
11135
+ <dl>
11136
+ <dd>
11137
+
11138
+ **userId:** `string`
11139
+
11140
+ </dd>
11141
+ </dl>
11142
+
11143
+ <dl>
11144
+ <dd>
11145
+
11146
+ **queryIdOrSlug:** `string`
11147
+
11148
+ </dd>
11149
+ </dl>
11150
+
11151
+ <dl>
11152
+ <dd>
11153
+
11154
+ **request:** `Vital.AggregateGetTaskHistoryForContinuousQueryRequest`
11155
+
11156
+ </dd>
11157
+ </dl>
11158
+
11159
+ <dl>
11160
+ <dd>
11161
+
11162
+ **requestOptions:** `Aggregate.RequestOptions`
11163
+
11164
+ </dd>
11165
+ </dl>
11166
+ </dd>
11167
+ </dl>
11168
+
11169
+ </dd>
11170
+ </dl>
11171
+ </details>
@@ -14,6 +14,7 @@ export declare namespace ClientFacingProviderWithStatus {
14
14
  logo: string;
15
15
  created_on: string;
16
16
  status: string;
17
+ external_user_id?: string | null;
17
18
  error_details?: ClientFacingConnectionErrorDetails.Raw | null;
18
19
  resource_availability: Record<string, ResourceAvailability.Raw>;
19
20
  }
@@ -36,6 +36,7 @@ exports.ClientFacingProviderWithStatus = core.serialization.object({
36
36
  logo: core.serialization.string(),
37
37
  createdOn: core.serialization.property("created_on", core.serialization.date()),
38
38
  status: core.serialization.string(),
39
+ externalUserId: core.serialization.property("external_user_id", core.serialization.string().optional()),
39
40
  errorDetails: core.serialization.property("error_details", ClientFacingConnectionErrorDetails_1.ClientFacingConnectionErrorDetails.optional()),
40
41
  resourceAvailability: core.serialization.property("resource_availability", core.serialization.record(core.serialization.string(), ResourceAvailability_1.ResourceAvailability)),
41
42
  });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ContinuousQueryTaskStatus } from "./ContinuousQueryTaskStatus";
8
+ export declare const ContinuousQueryTaskHistoryEntry: core.serialization.ObjectSchema<serializers.ContinuousQueryTaskHistoryEntry.Raw, Vital.ContinuousQueryTaskHistoryEntry>;
9
+ export declare namespace ContinuousQueryTaskHistoryEntry {
10
+ interface Raw {
11
+ tasker_todo_id: number;
12
+ query_id: string;
13
+ user_id: string;
14
+ status: ContinuousQueryTaskStatus.Raw;
15
+ scheduled_at: string;
16
+ started_at?: string | null;
17
+ ended_at?: string | null;
18
+ error_details?: string | null;
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.ContinuousQueryTaskHistoryEntry = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ContinuousQueryTaskStatus_1 = require("./ContinuousQueryTaskStatus");
32
+ exports.ContinuousQueryTaskHistoryEntry = core.serialization.object({
33
+ taskerTodoId: core.serialization.property("tasker_todo_id", core.serialization.number()),
34
+ queryId: core.serialization.property("query_id", core.serialization.string()),
35
+ userId: core.serialization.property("user_id", core.serialization.string()),
36
+ status: ContinuousQueryTaskStatus_1.ContinuousQueryTaskStatus,
37
+ scheduledAt: core.serialization.property("scheduled_at", core.serialization.date()),
38
+ startedAt: core.serialization.property("started_at", core.serialization.date().optional()),
39
+ endedAt: core.serialization.property("ended_at", core.serialization.date().optional()),
40
+ errorDetails: core.serialization.property("error_details", core.serialization.string().optional()),
41
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ContinuousQueryTaskHistoryEntry } from "./ContinuousQueryTaskHistoryEntry";
8
+ export declare const ContinuousQueryTaskHistoryResponse: core.serialization.ObjectSchema<serializers.ContinuousQueryTaskHistoryResponse.Raw, Vital.ContinuousQueryTaskHistoryResponse>;
9
+ export declare namespace ContinuousQueryTaskHistoryResponse {
10
+ interface Raw {
11
+ data: ContinuousQueryTaskHistoryEntry.Raw[];
12
+ next_cursor?: string | null;
13
+ }
14
+ }
@@ -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.ContinuousQueryTaskHistoryResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ContinuousQueryTaskHistoryEntry_1 = require("./ContinuousQueryTaskHistoryEntry");
32
+ exports.ContinuousQueryTaskHistoryResponse = core.serialization.object({
33
+ data: core.serialization.list(ContinuousQueryTaskHistoryEntry_1.ContinuousQueryTaskHistoryEntry),
34
+ nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
35
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ContinuousQueryTaskStatus: core.serialization.Schema<serializers.ContinuousQueryTaskStatus.Raw, Vital.ContinuousQueryTaskStatus>;
8
+ export declare namespace ContinuousQueryTaskStatus {
9
+ type Raw = "scheduled" | "started" | "completed" | "error";
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.ContinuousQueryTaskStatus = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ContinuousQueryTaskStatus = core.serialization.enum_(["scheduled", "started", "completed", "error"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const HistoricalPullNonRetriableErrorDetails: core.serialization.Schema<serializers.HistoricalPullNonRetriableErrorDetails.Raw, Vital.HistoricalPullNonRetriableErrorDetails>;
8
+ export declare namespace HistoricalPullNonRetriableErrorDetails {
9
+ type Raw = "non_retriable_error" | "unexpected_error" | "retry_quota_exhausted";
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.HistoricalPullNonRetriableErrorDetails = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.HistoricalPullNonRetriableErrorDetails = core.serialization.enum_(["non_retriable_error", "unexpected_error", "retry_quota_exhausted"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const HistoricalPullRetriableErrorDetails: core.serialization.Schema<serializers.HistoricalPullRetriableErrorDetails.Raw, Vital.HistoricalPullRetriableErrorDetails>;
8
+ export declare namespace HistoricalPullRetriableErrorDetails {
9
+ type Raw = "provider_rate_limit_exceeded" | "provider_unavailable" | "transport_failure" | "resource_contention";
10
+ }
@@ -0,0 +1,36 @@
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.HistoricalPullRetriableErrorDetails = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.HistoricalPullRetriableErrorDetails = core.serialization.enum_([
32
+ "provider_rate_limit_exceeded",
33
+ "provider_unavailable",
34
+ "transport_failure",
35
+ "resource_contention",
36
+ ]);
@@ -12,6 +12,7 @@ export declare namespace ProviderConnectionCreated {
12
12
  user_id: string;
13
13
  source: ClientFacingProvider.Raw;
14
14
  provider: ClientFacingProvider.Raw;
15
+ external_user_id?: string | null;
15
16
  resource_availability: Record<string, ResourceAvailability.Raw>;
16
17
  }
17
18
  }
@@ -34,5 +34,6 @@ exports.ProviderConnectionCreated = core.serialization.object({
34
34
  userId: core.serialization.property("user_id", core.serialization.string()),
35
35
  source: ClientFacingProvider_1.ClientFacingProvider,
36
36
  provider: ClientFacingProvider_1.ClientFacingProvider,
37
+ externalUserId: core.serialization.property("external_user_id", core.serialization.string().optional()),
37
38
  resourceAvailability: core.serialization.property("resource_availability", core.serialization.record(core.serialization.string(), ResourceAvailability_1.ResourceAvailability)),
38
39
  });
@@ -6,6 +6,7 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { HistoricalPullStatus } from "./HistoricalPullStatus";
8
8
  import { HistoricalPullTimeline } from "./HistoricalPullTimeline";
9
+ import { SingleHistoricalPullStatisticsErrorDetails } from "./SingleHistoricalPullStatisticsErrorDetails";
9
10
  export declare const SingleHistoricalPullStatistics: core.serialization.ObjectSchema<serializers.SingleHistoricalPullStatistics.Raw, Vital.SingleHistoricalPullStatistics>;
10
11
  export declare namespace SingleHistoricalPullStatistics {
11
12
  interface Raw {
@@ -16,5 +17,6 @@ export declare namespace SingleHistoricalPullStatistics {
16
17
  days_with_data?: number | null;
17
18
  release: string;
18
19
  trace_id?: string | null;
20
+ error_details?: SingleHistoricalPullStatisticsErrorDetails.Raw | null;
19
21
  }
20
22
  }
@@ -30,6 +30,7 @@ exports.SingleHistoricalPullStatistics = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const HistoricalPullStatus_1 = require("./HistoricalPullStatus");
32
32
  const HistoricalPullTimeline_1 = require("./HistoricalPullTimeline");
33
+ const SingleHistoricalPullStatisticsErrorDetails_1 = require("./SingleHistoricalPullStatisticsErrorDetails");
33
34
  exports.SingleHistoricalPullStatistics = core.serialization.object({
34
35
  status: HistoricalPullStatus_1.HistoricalPullStatus,
35
36
  rangeStart: core.serialization.property("range_start", core.serialization.date().optional()),
@@ -38,4 +39,5 @@ exports.SingleHistoricalPullStatistics = core.serialization.object({
38
39
  daysWithData: core.serialization.property("days_with_data", core.serialization.number().optional()),
39
40
  release: core.serialization.string(),
40
41
  traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
42
+ errorDetails: core.serialization.property("error_details", SingleHistoricalPullStatisticsErrorDetails_1.SingleHistoricalPullStatisticsErrorDetails.optional()),
41
43
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { HistoricalPullRetriableErrorDetails } from "./HistoricalPullRetriableErrorDetails";
8
+ import { HistoricalPullNonRetriableErrorDetails } from "./HistoricalPullNonRetriableErrorDetails";
9
+ export declare const SingleHistoricalPullStatisticsErrorDetails: core.serialization.Schema<serializers.SingleHistoricalPullStatisticsErrorDetails.Raw, Vital.SingleHistoricalPullStatisticsErrorDetails>;
10
+ export declare namespace SingleHistoricalPullStatisticsErrorDetails {
11
+ type Raw = HistoricalPullRetriableErrorDetails.Raw | HistoricalPullNonRetriableErrorDetails.Raw;
12
+ }
@@ -0,0 +1,36 @@
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.SingleHistoricalPullStatisticsErrorDetails = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const HistoricalPullRetriableErrorDetails_1 = require("./HistoricalPullRetriableErrorDetails");
32
+ const HistoricalPullNonRetriableErrorDetails_1 = require("./HistoricalPullNonRetriableErrorDetails");
33
+ exports.SingleHistoricalPullStatisticsErrorDetails = core.serialization.undiscriminatedUnion([
34
+ HistoricalPullRetriableErrorDetails_1.HistoricalPullRetriableErrorDetails,
35
+ HistoricalPullNonRetriableErrorDetails_1.HistoricalPullNonRetriableErrorDetails,
36
+ ]);
@@ -187,6 +187,9 @@ export * from "./ConnectionRecipe";
187
187
  export * from "./Consent";
188
188
  export * from "./ConsentType";
189
189
  export * from "./ContinuousQueryResultTableChanges";
190
+ export * from "./ContinuousQueryTaskHistoryEntry";
191
+ export * from "./ContinuousQueryTaskHistoryResponse";
192
+ export * from "./ContinuousQueryTaskStatus";
190
193
  export * from "./ContraceptiveEntryType";
191
194
  export * from "./ContraceptiveEntry";
192
195
  export * from "./DatePartExprArg";
@@ -224,6 +227,8 @@ export * from "./HealthInsuranceCreateRequestBackImage";
224
227
  export * from "./HealthInsuranceCreateRequestPatientSignatureImage";
225
228
  export * from "./HealthInsuranceCreateRequest";
226
229
  export * from "./HistoricalPullCompleted";
230
+ export * from "./HistoricalPullNonRetriableErrorDetails";
231
+ export * from "./HistoricalPullRetriableErrorDetails";
227
232
  export * from "./HistoricalPullStatus";
228
233
  export * from "./HistoricalPullTimeline";
229
234
  export * from "./HomePregnancyTestEntryTestResult";
@@ -329,6 +334,7 @@ export * from "./SexualActivityEntry";
329
334
  export * from "./SexualOrientation";
330
335
  export * from "./ShippingAddress";
331
336
  export * from "./ShippingAddressWithValidation";
337
+ export * from "./SingleHistoricalPullStatisticsErrorDetails";
332
338
  export * from "./SingleHistoricalPullStatistics";
333
339
  export * from "./SingleProviderHistoricalPullResponse";
334
340
  export * from "./SingleResourceStatistics";
@@ -203,6 +203,9 @@ __exportStar(require("./ConnectionRecipe"), exports);
203
203
  __exportStar(require("./Consent"), exports);
204
204
  __exportStar(require("./ConsentType"), exports);
205
205
  __exportStar(require("./ContinuousQueryResultTableChanges"), exports);
206
+ __exportStar(require("./ContinuousQueryTaskHistoryEntry"), exports);
207
+ __exportStar(require("./ContinuousQueryTaskHistoryResponse"), exports);
208
+ __exportStar(require("./ContinuousQueryTaskStatus"), exports);
206
209
  __exportStar(require("./ContraceptiveEntryType"), exports);
207
210
  __exportStar(require("./ContraceptiveEntry"), exports);
208
211
  __exportStar(require("./DatePartExprArg"), exports);
@@ -240,6 +243,8 @@ __exportStar(require("./HealthInsuranceCreateRequestBackImage"), exports);
240
243
  __exportStar(require("./HealthInsuranceCreateRequestPatientSignatureImage"), exports);
241
244
  __exportStar(require("./HealthInsuranceCreateRequest"), exports);
242
245
  __exportStar(require("./HistoricalPullCompleted"), exports);
246
+ __exportStar(require("./HistoricalPullNonRetriableErrorDetails"), exports);
247
+ __exportStar(require("./HistoricalPullRetriableErrorDetails"), exports);
243
248
  __exportStar(require("./HistoricalPullStatus"), exports);
244
249
  __exportStar(require("./HistoricalPullTimeline"), exports);
245
250
  __exportStar(require("./HomePregnancyTestEntryTestResult"), exports);
@@ -345,6 +350,7 @@ __exportStar(require("./SexualActivityEntry"), exports);
345
350
  __exportStar(require("./SexualOrientation"), exports);
346
351
  __exportStar(require("./ShippingAddress"), exports);
347
352
  __exportStar(require("./ShippingAddressWithValidation"), exports);
353
+ __exportStar(require("./SingleHistoricalPullStatisticsErrorDetails"), exports);
348
354
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
349
355
  __exportStar(require("./SingleProviderHistoricalPullResponse"), exports);
350
356
  __exportStar(require("./SingleResourceStatistics"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.254";
1
+ export declare const SDK_VERSION = "3.1.255";
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.254";
4
+ exports.SDK_VERSION = "3.1.255";