@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
@@ -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.254", "User-Agent": "@tryvital/vital-node/3.1.254", "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.255", "User-Agent": "@tryvital/vital-node/3.1.255", "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.254", "User-Agent": "@tryvital/vital-node/3.1.254", "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.255", "User-Agent": "@tryvital/vital-node/3.1.255", "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",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
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`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.254", "User-Agent": "@tryvital/vital-node/3.1.254", "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.255", "User-Agent": "@tryvital/vital-node/3.1.255", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -12,6 +12,15 @@ export interface ClientFacingProviderWithStatus {
12
12
  createdOn: Date;
13
13
  /** Status of source, either error or connected */
14
14
  status: string;
15
+ /**
16
+ * The unique identifier of the associated external data provider user.
17
+ *
18
+ * * OAuth Providers: User unique identifier; provider-specific formats
19
+ * * Password Providers: Username
20
+ * * Email Providers: Email
21
+ * * Junction Mobile SDK Providers: `null` (not available)
22
+ */
23
+ externalUserId?: string;
15
24
  /** Details of the terminal connection error — populated only when the status is `error`. */
16
25
  errorDetails?: Vital.ClientFacingConnectionErrorDetails;
17
26
  resourceAvailability: Record<string, Vital.ResourceAvailability>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ContinuousQueryTaskHistoryEntry {
6
+ taskerTodoId: number;
7
+ queryId: string;
8
+ userId: string;
9
+ status: Vital.ContinuousQueryTaskStatus;
10
+ scheduledAt: Date;
11
+ startedAt?: Date;
12
+ endedAt?: Date;
13
+ errorDetails?: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ContinuousQueryTaskHistoryResponse {
6
+ data: Vital.ContinuousQueryTaskHistoryEntry[];
7
+ nextCursor?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * This has to match the `continuous_query_task_status` enum type in postgres. ℹ️ This enum is non-exhaustive.
6
+ */
7
+ export declare type ContinuousQueryTaskStatus = "scheduled" | "started" | "completed" | "error";
8
+ export declare const ContinuousQueryTaskStatus: {
9
+ readonly Scheduled: "scheduled";
10
+ readonly Started: "started";
11
+ readonly Completed: "completed";
12
+ readonly Error: "error";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ContinuousQueryTaskStatus = void 0;
7
+ exports.ContinuousQueryTaskStatus = {
8
+ Scheduled: "scheduled",
9
+ Started: "started",
10
+ Completed: "completed",
11
+ Error: "error",
12
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
7
+ export declare type HistoricalPullNonRetriableErrorDetails = "non_retriable_error" | "unexpected_error" | "retry_quota_exhausted";
8
+ export declare const HistoricalPullNonRetriableErrorDetails: {
9
+ readonly NonRetriableError: "non_retriable_error";
10
+ readonly UnexpectedError: "unexpected_error";
11
+ readonly RetryQuotaExhausted: "retry_quota_exhausted";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HistoricalPullNonRetriableErrorDetails = void 0;
7
+ exports.HistoricalPullNonRetriableErrorDetails = {
8
+ NonRetriableError: "non_retriable_error",
9
+ UnexpectedError: "unexpected_error",
10
+ RetryQuotaExhausted: "retry_quota_exhausted",
11
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
7
+ export declare type HistoricalPullRetriableErrorDetails = "provider_rate_limit_exceeded" | "provider_unavailable" | "transport_failure" | "resource_contention";
8
+ export declare const HistoricalPullRetriableErrorDetails: {
9
+ readonly ProviderRateLimitExceeded: "provider_rate_limit_exceeded";
10
+ readonly ProviderUnavailable: "provider_unavailable";
11
+ readonly TransportFailure: "transport_failure";
12
+ readonly ResourceContention: "resource_contention";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HistoricalPullRetriableErrorDetails = void 0;
7
+ exports.HistoricalPullRetriableErrorDetails = {
8
+ ProviderRateLimitExceeded: "provider_rate_limit_exceeded",
9
+ ProviderUnavailable: "provider_unavailable",
10
+ TransportFailure: "transport_failure",
11
+ ResourceContention: "resource_contention",
12
+ };
@@ -7,5 +7,14 @@ export interface ProviderConnectionCreated {
7
7
  /** Deprecated. Use `provider` instead. Subject to removal after 1 Jan 2024. */
8
8
  source: Vital.ClientFacingProvider;
9
9
  provider: Vital.ClientFacingProvider;
10
+ /**
11
+ * The unique identifier of the associated external data provider user.
12
+ *
13
+ * * OAuth Providers: User unique identifier; provider-specific formats
14
+ * * Password Providers: Username
15
+ * * Email Providers: Email
16
+ * * Junction Mobile SDK Providers: `null` (not available)
17
+ */
18
+ externalUserId?: string;
10
19
  resourceAvailability: Record<string, Vital.ResourceAvailability>;
11
20
  }
@@ -10,4 +10,5 @@ export interface SingleHistoricalPullStatistics {
10
10
  daysWithData?: number;
11
11
  release: string;
12
12
  traceId?: string;
13
+ errorDetails?: Vital.SingleHistoricalPullStatisticsErrorDetails;
13
14
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export declare type SingleHistoricalPullStatisticsErrorDetails = Vital.HistoricalPullRetriableErrorDetails | Vital.HistoricalPullNonRetriableErrorDetails;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -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
+ ]);