@tryvital/vital-node 3.1.173 → 3.1.174

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 (72) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.js +34 -34
  9. package/api/resources/link/client/Client.d.ts +3 -3
  10. package/api/resources/link/client/Client.js +17 -32
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/sleepCycle/client/Client.js +1 -1
  17. package/api/resources/team/client/Client.js +7 -7
  18. package/api/resources/testkit/client/Client.js +2 -2
  19. package/api/resources/user/client/Client.js +16 -16
  20. package/api/resources/vitals/client/Client.js +58 -58
  21. package/api/resources/workouts/client/Client.js +3 -3
  22. package/api/types/index.d.ts +0 -2
  23. package/api/types/index.js +0 -2
  24. package/dist/api/resources/activity/client/Client.js +2 -2
  25. package/dist/api/resources/aggregate/client/Client.js +1 -1
  26. package/dist/api/resources/body/client/Client.js +2 -2
  27. package/dist/api/resources/devices/client/Client.js +1 -1
  28. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  29. package/dist/api/resources/insurance/client/Client.js +3 -3
  30. package/dist/api/resources/introspect/client/Client.js +2 -2
  31. package/dist/api/resources/labTests/client/Client.js +34 -34
  32. package/dist/api/resources/link/client/Client.d.ts +3 -3
  33. package/dist/api/resources/link/client/Client.js +17 -32
  34. package/dist/api/resources/meal/client/Client.js +1 -1
  35. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  36. package/dist/api/resources/profile/client/Client.js +2 -2
  37. package/dist/api/resources/providers/client/Client.js +1 -1
  38. package/dist/api/resources/sleep/client/Client.js +4 -4
  39. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  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 +16 -16
  43. package/dist/api/resources/vitals/client/Client.js +58 -58
  44. package/dist/api/resources/workouts/client/Client.js +3 -3
  45. package/dist/api/types/index.d.ts +0 -2
  46. package/dist/api/types/index.js +0 -2
  47. package/dist/serialization/types/index.d.ts +0 -2
  48. package/dist/serialization/types/index.js +0 -2
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
  52. package/reference.md +3 -3
  53. package/serialization/types/index.d.ts +0 -2
  54. package/serialization/types/index.js +0 -2
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/api/types/ConnectionStatus.d.ts +0 -12
  58. package/api/types/ConnectionStatus.js +0 -5
  59. package/api/types/ConnectionStatusState.d.ts +0 -9
  60. package/api/types/ConnectionStatusState.js +0 -11
  61. package/dist/api/types/ConnectionStatus.d.ts +0 -12
  62. package/dist/api/types/ConnectionStatus.js +0 -5
  63. package/dist/api/types/ConnectionStatusState.d.ts +0 -9
  64. package/dist/api/types/ConnectionStatusState.js +0 -11
  65. package/dist/serialization/types/ConnectionStatus.d.ts +0 -19
  66. package/dist/serialization/types/ConnectionStatus.js +0 -40
  67. package/dist/serialization/types/ConnectionStatusState.d.ts +0 -10
  68. package/dist/serialization/types/ConnectionStatusState.js +0 -31
  69. package/serialization/types/ConnectionStatus.d.ts +0 -19
  70. package/serialization/types/ConnectionStatus.js +0 -40
  71. package/serialization/types/ConnectionStatusState.d.ts +0 -10
  72. package/serialization/types/ConnectionStatusState.js +0 -31
@@ -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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.174", "User-Agent": "@tryvital/vital-node/3.1.174", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.174", "User-Agent": "@tryvital/vital-node/3.1.174", "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.173", "User-Agent": "@tryvital/vital-node/3.1.173", "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.174", "User-Agent": "@tryvital/vital-node/3.1.174", "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,
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
172
172
  export * from "./CompanyDetails";
173
173
  export * from "./ConnectedSourceClientFacing";
174
174
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
175
  export * from "./Consent";
178
176
  export * from "./ConsentType";
179
177
  export * from "./ContraceptiveEntryType";
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
188
  __exportStar(require("./CompanyDetails"), exports);
189
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
190
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
191
  __exportStar(require("./Consent"), exports);
194
192
  __exportStar(require("./ConsentType"), exports);
195
193
  __exportStar(require("./ContraceptiveEntryType"), exports);
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
172
172
  export * from "./CompanyDetails";
173
173
  export * from "./ConnectedSourceClientFacing";
174
174
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
175
  export * from "./Consent";
178
176
  export * from "./ConsentType";
179
177
  export * from "./ContraceptiveEntryType";
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
188
  __exportStar(require("./CompanyDetails"), exports);
189
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
190
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
191
  __exportStar(require("./Consent"), exports);
194
192
  __exportStar(require("./ConsentType"), exports);
195
193
  __exportStar(require("./ContraceptiveEntryType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.173";
1
+ export declare const SDK_VERSION = "3.1.174";
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.173";
4
+ exports.SDK_VERSION = "3.1.174";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.173",
3
+ "version": "3.1.174",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -318,7 +318,7 @@ await client.link.tokenState();
318
318
  </dl>
319
319
  </details>
320
320
 
321
- <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) -> Vital.ConnectionStatus</code></summary>
321
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">emailAuth</a>({ ...params }) -> unknown</code></summary>
322
322
  <dl>
323
323
  <dd>
324
324
 
@@ -385,7 +385,7 @@ await client.link.emailAuth({
385
385
  </dl>
386
386
  </details>
387
387
 
388
- <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) -> Vital.ConnectionStatus</code></summary>
388
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">passwordAuth</a>({ ...params }) -> unknown</code></summary>
389
389
  <dl>
390
390
  <dd>
391
391
 
@@ -671,7 +671,7 @@ await client.link.completePasswordProviderMfa("whoop", {
671
671
  </dl>
672
672
  </details>
673
673
 
674
- <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) -> Vital.ConnectionStatus</code></summary>
674
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">connectEmailAuthProvider</a>(provider, { ...params }) -> unknown</code></summary>
675
675
  <dl>
676
676
  <dd>
677
677
 
@@ -172,8 +172,6 @@ export * from "./ClientWorkoutResponse";
172
172
  export * from "./CompanyDetails";
173
173
  export * from "./ConnectedSourceClientFacing";
174
174
  export * from "./ConnectionRecipe";
175
- export * from "./ConnectionStatusState";
176
- export * from "./ConnectionStatus";
177
175
  export * from "./Consent";
178
176
  export * from "./ConsentType";
179
177
  export * from "./ContraceptiveEntryType";
@@ -188,8 +188,6 @@ __exportStar(require("./ClientWorkoutResponse"), exports);
188
188
  __exportStar(require("./CompanyDetails"), exports);
189
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
190
  __exportStar(require("./ConnectionRecipe"), exports);
191
- __exportStar(require("./ConnectionStatusState"), exports);
192
- __exportStar(require("./ConnectionStatus"), exports);
193
191
  __exportStar(require("./Consent"), exports);
194
192
  __exportStar(require("./ConsentType"), exports);
195
193
  __exportStar(require("./ContraceptiveEntryType"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.173";
1
+ export declare const SDK_VERSION = "3.1.174";
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.173";
4
+ exports.SDK_VERSION = "3.1.174";
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export interface ConnectionStatus {
6
- state: Vital.ConnectionStatusState;
7
- redirectUrl?: string;
8
- errorType?: string;
9
- error?: string;
10
- providerMfa?: Vital.ProviderMfaRequest;
11
- success: boolean;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
5
- export declare const ConnectionStatusState: {
6
- readonly Success: "success";
7
- readonly Error: "error";
8
- readonly PendingProviderMfa: "pending_provider_mfa";
9
- };
@@ -1,11 +0,0 @@
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.ConnectionStatusState = void 0;
7
- exports.ConnectionStatusState = {
8
- Success: "success",
9
- Error: "error",
10
- PendingProviderMfa: "pending_provider_mfa",
11
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vital from "../index";
5
- export interface ConnectionStatus {
6
- state: Vital.ConnectionStatusState;
7
- redirectUrl?: string;
8
- errorType?: string;
9
- error?: string;
10
- providerMfa?: Vital.ProviderMfaRequest;
11
- success: boolean;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ConnectionStatusState = "success" | "error" | "pending_provider_mfa";
5
- export declare const ConnectionStatusState: {
6
- readonly Success: "success";
7
- readonly Error: "error";
8
- readonly PendingProviderMfa: "pending_provider_mfa";
9
- };
@@ -1,11 +0,0 @@
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.ConnectionStatusState = void 0;
7
- exports.ConnectionStatusState = {
8
- Success: "success",
9
- Error: "error",
10
- PendingProviderMfa: "pending_provider_mfa",
11
- };
@@ -1,19 +0,0 @@
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 { ConnectionStatusState } from "./ConnectionStatusState";
8
- import { ProviderMfaRequest } from "./ProviderMfaRequest";
9
- export declare const ConnectionStatus: core.serialization.ObjectSchema<serializers.ConnectionStatus.Raw, Vital.ConnectionStatus>;
10
- export declare namespace ConnectionStatus {
11
- interface Raw {
12
- state: ConnectionStatusState.Raw;
13
- redirect_url?: string | null;
14
- error_type?: string | null;
15
- error?: string | null;
16
- provider_mfa?: ProviderMfaRequest.Raw | null;
17
- success: boolean;
18
- }
19
- }
@@ -1,40 +0,0 @@
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.ConnectionStatus = void 0;
30
- const core = __importStar(require("../../core"));
31
- const ConnectionStatusState_1 = require("./ConnectionStatusState");
32
- const ProviderMfaRequest_1 = require("./ProviderMfaRequest");
33
- exports.ConnectionStatus = core.serialization.object({
34
- state: ConnectionStatusState_1.ConnectionStatusState,
35
- redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
36
- errorType: core.serialization.property("error_type", core.serialization.string().optional()),
37
- error: core.serialization.string().optional(),
38
- providerMfa: core.serialization.property("provider_mfa", ProviderMfaRequest_1.ProviderMfaRequest.optional()),
39
- success: core.serialization.boolean(),
40
- });
@@ -1,10 +0,0 @@
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 ConnectionStatusState: core.serialization.Schema<serializers.ConnectionStatusState.Raw, Vital.ConnectionStatusState>;
8
- export declare namespace ConnectionStatusState {
9
- type Raw = "success" | "error" | "pending_provider_mfa";
10
- }
@@ -1,31 +0,0 @@
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.ConnectionStatusState = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.ConnectionStatusState = core.serialization.enum_(["success", "error", "pending_provider_mfa"]);
@@ -1,19 +0,0 @@
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 { ConnectionStatusState } from "./ConnectionStatusState";
8
- import { ProviderMfaRequest } from "./ProviderMfaRequest";
9
- export declare const ConnectionStatus: core.serialization.ObjectSchema<serializers.ConnectionStatus.Raw, Vital.ConnectionStatus>;
10
- export declare namespace ConnectionStatus {
11
- interface Raw {
12
- state: ConnectionStatusState.Raw;
13
- redirect_url?: string | null;
14
- error_type?: string | null;
15
- error?: string | null;
16
- provider_mfa?: ProviderMfaRequest.Raw | null;
17
- success: boolean;
18
- }
19
- }
@@ -1,40 +0,0 @@
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.ConnectionStatus = void 0;
30
- const core = __importStar(require("../../core"));
31
- const ConnectionStatusState_1 = require("./ConnectionStatusState");
32
- const ProviderMfaRequest_1 = require("./ProviderMfaRequest");
33
- exports.ConnectionStatus = core.serialization.object({
34
- state: ConnectionStatusState_1.ConnectionStatusState,
35
- redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
36
- errorType: core.serialization.property("error_type", core.serialization.string().optional()),
37
- error: core.serialization.string().optional(),
38
- providerMfa: core.serialization.property("provider_mfa", ProviderMfaRequest_1.ProviderMfaRequest.optional()),
39
- success: core.serialization.boolean(),
40
- });
@@ -1,10 +0,0 @@
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 ConnectionStatusState: core.serialization.Schema<serializers.ConnectionStatusState.Raw, Vital.ConnectionStatusState>;
8
- export declare namespace ConnectionStatusState {
9
- type Raw = "success" | "error" | "pending_provider_mfa";
10
- }
@@ -1,31 +0,0 @@
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.ConnectionStatusState = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.ConnectionStatusState = core.serialization.enum_(["success", "error", "pending_provider_mfa"]);