@tryvital/vital-node 3.0.3 → 3.0.5
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.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +1 -1
- package/api/resources/labTests/client/Client.js +31 -24
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
- package/api/resources/link/client/Client.d.ts +5 -10
- package/api/resources/link/client/Client.js +85 -85
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/index.d.ts +3 -1
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.d.ts +2 -1
- package/api/resources/team/client/Client.js +30 -13
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +6 -0
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
- package/api/resources/team/client/requests/index.d.ts +1 -0
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +11 -11
- package/api/resources/vitals/client/Client.js +23 -23
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/EventDestinationPreferences.d.ts +8 -0
- package/api/types/EventDestinationPreferences.js +5 -0
- package/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
- package/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
- package/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
- package/api/types/EventDestinationPreferencesPreferred.js +11 -0
- package/api/types/PatientAddressCompatible.d.ts +2 -2
- package/api/types/TeamConfig.d.ts +3 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +1 -1
- package/dist/api/resources/labTests/client/Client.js +31 -24
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -1
- package/dist/api/resources/link/client/Client.d.ts +5 -10
- package/dist/api/resources/link/client/Client.js +85 -85
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/index.d.ts +3 -1
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.d.ts +2 -1
- package/dist/api/resources/team/client/Client.js +30 -13
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +6 -0
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +1 -0
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +11 -11
- package/dist/api/resources/vitals/client/Client.js +23 -23
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/EventDestinationPreferences.d.ts +8 -0
- package/dist/api/types/EventDestinationPreferences.js +5 -0
- package/dist/api/types/EventDestinationPreferencesEnabledItem.d.ts +9 -0
- package/dist/api/types/EventDestinationPreferencesEnabledItem.js +11 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +9 -0
- package/dist/api/types/EventDestinationPreferencesPreferred.js +11 -0
- package/dist/api/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/api/types/TeamConfig.d.ts +3 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/link/client/index.d.ts +0 -1
- package/dist/serialization/resources/link/client/index.js +1 -2
- package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/dist/serialization/types/EventDestinationPreferences.d.ts +13 -0
- package/dist/serialization/types/EventDestinationPreferences.js +43 -0
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
- package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
- package/dist/serialization/{resources/link/client/connectOauthProvider.js → types/EventDestinationPreferencesPreferred.js} +3 -3
- package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/serialization/types/PatientAddressCompatible.js +2 -2
- package/dist/serialization/types/TeamConfig.d.ts +3 -0
- package/dist/serialization/types/TeamConfig.js +3 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/package.json +1 -1
- package/serialization/resources/link/client/index.d.ts +0 -1
- package/serialization/resources/link/client/index.js +1 -2
- package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/serialization/types/EventDestinationPreferences.d.ts +13 -0
- package/serialization/types/EventDestinationPreferences.js +43 -0
- package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +10 -0
- package/serialization/types/EventDestinationPreferencesEnabledItem.js +31 -0
- package/serialization/types/EventDestinationPreferencesPreferred.d.ts +10 -0
- package/serialization/{resources/link/client/connectOauthProvider.js → types/EventDestinationPreferencesPreferred.js} +3 -3
- package/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/serialization/types/PatientAddressCompatible.js +2 -2
- package/serialization/types/TeamConfig.d.ts +3 -0
- package/serialization/types/TeamConfig.js +3 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/api/resources/link/client/requests/LinkConnectOauthProviderRequest.d.ts +0 -6
- package/dist/api/resources/link/client/requests/LinkConnectOauthProviderRequest.d.ts +0 -6
- package/dist/serialization/resources/link/client/connectOauthProvider.d.ts +0 -9
- package/serialization/resources/link/client/connectOauthProvider.d.ts +0 -9
- /package/api/resources/link/client/requests/{LinkConnectOauthProviderRequest.js → LinkGenerateOauthLinkRequest.js} +0 -0
- /package/{dist/api/resources/link/client/requests/LinkConnectOauthProviderRequest.js → api/resources/link/client/requests/LinkGetAllProvidersRequest.js} +0 -0
@@ -73,7 +73,7 @@ class Workouts {
|
|
73
73
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
74
74
|
"X-Fern-Language": "JavaScript",
|
75
75
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
76
|
-
"X-Fern-SDK-Version": "3.0.
|
76
|
+
"X-Fern-SDK-Version": "3.0.5",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
@@ -141,7 +141,7 @@ class Workouts {
|
|
141
141
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
142
142
|
"X-Fern-Language": "JavaScript",
|
143
143
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
144
|
-
"X-Fern-SDK-Version": "3.0.
|
144
|
+
"X-Fern-SDK-Version": "3.0.5",
|
145
145
|
},
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
@@ -199,7 +199,7 @@ class Workouts {
|
|
199
199
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
200
200
|
"X-Fern-Language": "JavaScript",
|
201
201
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
202
|
-
"X-Fern-SDK-Version": "3.0.
|
202
|
+
"X-Fern-SDK-Version": "3.0.5",
|
203
203
|
},
|
204
204
|
contentType: "application/json",
|
205
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "..";
|
5
|
+
export interface EventDestinationPreferences {
|
6
|
+
preferred: Vital.EventDestinationPreferencesPreferred;
|
7
|
+
enabled: Vital.EventDestinationPreferencesEnabledItem[];
|
8
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type EventDestinationPreferencesEnabledItem = "cloud_pubsub" | "rabbitmq" | "svix";
|
5
|
+
export declare const EventDestinationPreferencesEnabledItem: {
|
6
|
+
readonly CloudPubsub: "cloud_pubsub";
|
7
|
+
readonly Rabbitmq: "rabbitmq";
|
8
|
+
readonly Svix: "svix";
|
9
|
+
};
|
@@ -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.EventDestinationPreferencesEnabledItem = void 0;
|
7
|
+
exports.EventDestinationPreferencesEnabledItem = {
|
8
|
+
CloudPubsub: "cloud_pubsub",
|
9
|
+
Rabbitmq: "rabbitmq",
|
10
|
+
Svix: "svix",
|
11
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type EventDestinationPreferencesPreferred = "cloud_pubsub" | "rabbitmq" | "svix";
|
5
|
+
export declare const EventDestinationPreferencesPreferred: {
|
6
|
+
readonly CloudPubsub: "cloud_pubsub";
|
7
|
+
readonly Rabbitmq: "rabbitmq";
|
8
|
+
readonly Svix: "svix";
|
9
|
+
};
|
@@ -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.EventDestinationPreferencesPreferred = void 0;
|
7
|
+
exports.EventDestinationPreferencesPreferred = {
|
8
|
+
CloudPubsub: "cloud_pubsub",
|
9
|
+
Rabbitmq: "rabbitmq",
|
10
|
+
Svix: "svix",
|
11
|
+
};
|
@@ -88,6 +88,9 @@ export * from "./DemoProviders";
|
|
88
88
|
export * from "./DeviceV2InDb";
|
89
89
|
export * from "./EmailProviders";
|
90
90
|
export * from "./Energy";
|
91
|
+
export * from "./EventDestinationPreferences";
|
92
|
+
export * from "./EventDestinationPreferencesPreferred";
|
93
|
+
export * from "./EventDestinationPreferencesEnabledItem";
|
91
94
|
export * from "./FallbackTimeZone";
|
92
95
|
export * from "./Fats";
|
93
96
|
export * from "./Gender";
|
package/dist/api/types/index.js
CHANGED
@@ -104,6 +104,9 @@ __exportStar(require("./DemoProviders"), exports);
|
|
104
104
|
__exportStar(require("./DeviceV2InDb"), exports);
|
105
105
|
__exportStar(require("./EmailProviders"), exports);
|
106
106
|
__exportStar(require("./Energy"), exports);
|
107
|
+
__exportStar(require("./EventDestinationPreferences"), exports);
|
108
|
+
__exportStar(require("./EventDestinationPreferencesPreferred"), exports);
|
109
|
+
__exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
|
107
110
|
__exportStar(require("./FallbackTimeZone"), exports);
|
108
111
|
__exportStar(require("./Fats"), exports);
|
109
112
|
__exportStar(require("./Gender"), exports);
|
@@ -26,9 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.connectManualProvider = exports.getAllProviders = exports.tokenState = exports.startConnect = exports.
|
29
|
+
exports.connectManualProvider = exports.getAllProviders = exports.tokenState = exports.startConnect = exports.isTokenValid = void 0;
|
30
30
|
exports.isTokenValid = __importStar(require("./isTokenValid"));
|
31
|
-
exports.connectOauthProvider = __importStar(require("./connectOauthProvider"));
|
32
31
|
exports.startConnect = __importStar(require("./startConnect"));
|
33
32
|
exports.tokenState = __importStar(require("./tokenState"));
|
34
33
|
exports.getAllProviders = __importStar(require("./getAllProviders"));
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const EmailAuthLink: core.serialization.Schema<serializers.EmailAuthLink.Raw, Vital.EmailAuthLink
|
7
|
+
export declare const EmailAuthLink: core.serialization.Schema<serializers.EmailAuthLink.Raw, Omit<Vital.EmailAuthLink, "vitalLinkToken">>;
|
8
8
|
export declare namespace EmailAuthLink {
|
9
9
|
interface Raw {
|
10
10
|
email: string;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const EmailProviderAuthLink: core.serialization.Schema<serializers.EmailProviderAuthLink.Raw, Vital.EmailProviderAuthLink
|
7
|
+
export declare const EmailProviderAuthLink: core.serialization.Schema<serializers.EmailProviderAuthLink.Raw, Omit<Vital.EmailProviderAuthLink, "vitalLinkToken">>;
|
8
8
|
export declare namespace EmailProviderAuthLink {
|
9
9
|
interface Raw {
|
10
10
|
email: string;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const IndividualProviderData: core.serialization.Schema<serializers.IndividualProviderData.Raw, Omit<Vital.IndividualProviderData, "vitalLinkClientRegion">>;
|
7
|
+
export declare const IndividualProviderData: core.serialization.Schema<serializers.IndividualProviderData.Raw, Omit<Vital.IndividualProviderData, "vitalLinkClientRegion" | "vitalLinkToken">>;
|
8
8
|
export declare namespace IndividualProviderData {
|
9
9
|
interface Raw {
|
10
10
|
username: string;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const PasswordAuthLink: core.serialization.Schema<serializers.PasswordAuthLink.Raw, Omit<Vital.PasswordAuthLink, "vitalLinkClientRegion">>;
|
7
|
+
export declare const PasswordAuthLink: core.serialization.Schema<serializers.PasswordAuthLink.Raw, Omit<Vital.PasswordAuthLink, "vitalLinkClientRegion" | "vitalLinkToken">>;
|
8
8
|
export declare namespace PasswordAuthLink {
|
9
9
|
interface Raw {
|
10
10
|
username: string;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const EventDestinationPreferences: core.serialization.ObjectSchema<serializers.EventDestinationPreferences.Raw, Vital.EventDestinationPreferences>;
|
8
|
+
export declare namespace EventDestinationPreferences {
|
9
|
+
interface Raw {
|
10
|
+
preferred: serializers.EventDestinationPreferencesPreferred.Raw;
|
11
|
+
enabled: serializers.EventDestinationPreferencesEnabledItem.Raw[];
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,43 @@
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
exports.EventDestinationPreferences = void 0;
|
39
|
+
const core = __importStar(require("../../core"));
|
40
|
+
exports.EventDestinationPreferences = core.serialization.object({
|
41
|
+
preferred: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferencesPreferred; })),
|
42
|
+
enabled: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferencesEnabledItem; }))),
|
43
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const EventDestinationPreferencesEnabledItem: core.serialization.Schema<serializers.EventDestinationPreferencesEnabledItem.Raw, Vital.EventDestinationPreferencesEnabledItem>;
|
8
|
+
export declare namespace EventDestinationPreferencesEnabledItem {
|
9
|
+
type Raw = "cloud_pubsub" | "rabbitmq" | "svix";
|
10
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.EventDestinationPreferencesEnabledItem = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.EventDestinationPreferencesEnabledItem = core.serialization.enum_(["cloud_pubsub", "rabbitmq", "svix"]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const EventDestinationPreferencesPreferred: core.serialization.Schema<serializers.EventDestinationPreferencesPreferred.Raw, Vital.EventDestinationPreferencesPreferred>;
|
8
|
+
export declare namespace EventDestinationPreferencesPreferred {
|
9
|
+
type Raw = "cloud_pubsub" | "rabbitmq" | "svix";
|
10
|
+
}
|
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
30
|
-
const core = __importStar(require("
|
31
|
-
exports.
|
29
|
+
exports.EventDestinationPreferencesPreferred = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.EventDestinationPreferencesPreferred = core.serialization.enum_(["cloud_pubsub", "rabbitmq", "svix"]);
|
@@ -8,8 +8,8 @@ export declare const PatientAddressCompatible: core.serialization.ObjectSchema<s
|
|
8
8
|
export declare namespace PatientAddressCompatible {
|
9
9
|
interface Raw {
|
10
10
|
receiver_name?: string | null;
|
11
|
-
|
12
|
-
|
11
|
+
first_line: string;
|
12
|
+
second_line?: string | null;
|
13
13
|
city: string;
|
14
14
|
state: string;
|
15
15
|
zip: string;
|
@@ -30,8 +30,8 @@ exports.PatientAddressCompatible = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
exports.PatientAddressCompatible = core.serialization.object({
|
32
32
|
receiverName: core.serialization.property("receiver_name", core.serialization.string().optional()),
|
33
|
-
|
34
|
-
|
33
|
+
firstLine: core.serialization.property("first_line", core.serialization.string()),
|
34
|
+
secondLine: core.serialization.property("second_line", core.serialization.string().optional()),
|
35
35
|
city: core.serialization.string(),
|
36
36
|
state: core.serialization.string(),
|
37
37
|
zip: core.serialization.string(),
|
@@ -9,5 +9,8 @@ export declare namespace TeamConfig {
|
|
9
9
|
interface Raw {
|
10
10
|
libreview: serializers.LibreConfig.Raw;
|
11
11
|
texts_enabled?: boolean | null;
|
12
|
+
push_historical_data?: boolean | null;
|
13
|
+
eds_preferences?: serializers.EventDestinationPreferences.Raw | null;
|
14
|
+
event_type_prefixes?: string[] | null;
|
12
15
|
}
|
13
16
|
}
|
@@ -40,4 +40,7 @@ const core = __importStar(require("../../core"));
|
|
40
40
|
exports.TeamConfig = core.serialization.object({
|
41
41
|
libreview: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).LibreConfig; })),
|
42
42
|
textsEnabled: core.serialization.property("texts_enabled", core.serialization.boolean().optional()),
|
43
|
+
pushHistoricalData: core.serialization.property("push_historical_data", core.serialization.boolean().optional()),
|
44
|
+
edsPreferences: core.serialization.property("eds_preferences", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferences; })).optional()),
|
45
|
+
eventTypePrefixes: core.serialization.property("event_type_prefixes", core.serialization.list(core.serialization.string()).optional()),
|
43
46
|
});
|
@@ -88,6 +88,9 @@ export * from "./DemoProviders";
|
|
88
88
|
export * from "./DeviceV2InDb";
|
89
89
|
export * from "./EmailProviders";
|
90
90
|
export * from "./Energy";
|
91
|
+
export * from "./EventDestinationPreferences";
|
92
|
+
export * from "./EventDestinationPreferencesPreferred";
|
93
|
+
export * from "./EventDestinationPreferencesEnabledItem";
|
91
94
|
export * from "./FallbackTimeZone";
|
92
95
|
export * from "./Fats";
|
93
96
|
export * from "./Gender";
|
@@ -104,6 +104,9 @@ __exportStar(require("./DemoProviders"), exports);
|
|
104
104
|
__exportStar(require("./DeviceV2InDb"), exports);
|
105
105
|
__exportStar(require("./EmailProviders"), exports);
|
106
106
|
__exportStar(require("./Energy"), exports);
|
107
|
+
__exportStar(require("./EventDestinationPreferences"), exports);
|
108
|
+
__exportStar(require("./EventDestinationPreferencesPreferred"), exports);
|
109
|
+
__exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
|
107
110
|
__exportStar(require("./FallbackTimeZone"), exports);
|
108
111
|
__exportStar(require("./Fats"), exports);
|
109
112
|
__exportStar(require("./Gender"), exports);
|
package/package.json
CHANGED
@@ -26,9 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.connectManualProvider = exports.getAllProviders = exports.tokenState = exports.startConnect = exports.
|
29
|
+
exports.connectManualProvider = exports.getAllProviders = exports.tokenState = exports.startConnect = exports.isTokenValid = void 0;
|
30
30
|
exports.isTokenValid = __importStar(require("./isTokenValid"));
|
31
|
-
exports.connectOauthProvider = __importStar(require("./connectOauthProvider"));
|
32
31
|
exports.startConnect = __importStar(require("./startConnect"));
|
33
32
|
exports.tokenState = __importStar(require("./tokenState"));
|
34
33
|
exports.getAllProviders = __importStar(require("./getAllProviders"));
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const EmailAuthLink: core.serialization.Schema<serializers.EmailAuthLink.Raw, Vital.EmailAuthLink
|
7
|
+
export declare const EmailAuthLink: core.serialization.Schema<serializers.EmailAuthLink.Raw, Omit<Vital.EmailAuthLink, "vitalLinkToken">>;
|
8
8
|
export declare namespace EmailAuthLink {
|
9
9
|
interface Raw {
|
10
10
|
email: string;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const EmailProviderAuthLink: core.serialization.Schema<serializers.EmailProviderAuthLink.Raw, Vital.EmailProviderAuthLink
|
7
|
+
export declare const EmailProviderAuthLink: core.serialization.Schema<serializers.EmailProviderAuthLink.Raw, Omit<Vital.EmailProviderAuthLink, "vitalLinkToken">>;
|
8
8
|
export declare namespace EmailProviderAuthLink {
|
9
9
|
interface Raw {
|
10
10
|
email: string;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const IndividualProviderData: core.serialization.Schema<serializers.IndividualProviderData.Raw, Omit<Vital.IndividualProviderData, "vitalLinkClientRegion">>;
|
7
|
+
export declare const IndividualProviderData: core.serialization.Schema<serializers.IndividualProviderData.Raw, Omit<Vital.IndividualProviderData, "vitalLinkClientRegion" | "vitalLinkToken">>;
|
8
8
|
export declare namespace IndividualProviderData {
|
9
9
|
interface Raw {
|
10
10
|
username: string;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
import * as serializers from "../../../..";
|
5
5
|
import * as Vital from "../../../../../api";
|
6
6
|
import * as core from "../../../../../core";
|
7
|
-
export declare const PasswordAuthLink: core.serialization.Schema<serializers.PasswordAuthLink.Raw, Omit<Vital.PasswordAuthLink, "vitalLinkClientRegion">>;
|
7
|
+
export declare const PasswordAuthLink: core.serialization.Schema<serializers.PasswordAuthLink.Raw, Omit<Vital.PasswordAuthLink, "vitalLinkClientRegion" | "vitalLinkToken">>;
|
8
8
|
export declare namespace PasswordAuthLink {
|
9
9
|
interface Raw {
|
10
10
|
username: string;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const EventDestinationPreferences: core.serialization.ObjectSchema<serializers.EventDestinationPreferences.Raw, Vital.EventDestinationPreferences>;
|
8
|
+
export declare namespace EventDestinationPreferences {
|
9
|
+
interface Raw {
|
10
|
+
preferred: serializers.EventDestinationPreferencesPreferred.Raw;
|
11
|
+
enabled: serializers.EventDestinationPreferencesEnabledItem.Raw[];
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,43 @@
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
38
|
+
exports.EventDestinationPreferences = void 0;
|
39
|
+
const core = __importStar(require("../../core"));
|
40
|
+
exports.EventDestinationPreferences = core.serialization.object({
|
41
|
+
preferred: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferencesPreferred; })),
|
42
|
+
enabled: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).EventDestinationPreferencesEnabledItem; }))),
|
43
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const EventDestinationPreferencesEnabledItem: core.serialization.Schema<serializers.EventDestinationPreferencesEnabledItem.Raw, Vital.EventDestinationPreferencesEnabledItem>;
|
8
|
+
export declare namespace EventDestinationPreferencesEnabledItem {
|
9
|
+
type Raw = "cloud_pubsub" | "rabbitmq" | "svix";
|
10
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.EventDestinationPreferencesEnabledItem = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.EventDestinationPreferencesEnabledItem = core.serialization.enum_(["cloud_pubsub", "rabbitmq", "svix"]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "..";
|
5
|
+
import * as Vital from "../../api";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const EventDestinationPreferencesPreferred: core.serialization.Schema<serializers.EventDestinationPreferencesPreferred.Raw, Vital.EventDestinationPreferencesPreferred>;
|
8
|
+
export declare namespace EventDestinationPreferencesPreferred {
|
9
|
+
type Raw = "cloud_pubsub" | "rabbitmq" | "svix";
|
10
|
+
}
|
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
26
|
return result;
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.
|
30
|
-
const core = __importStar(require("
|
31
|
-
exports.
|
29
|
+
exports.EventDestinationPreferencesPreferred = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.EventDestinationPreferencesPreferred = core.serialization.enum_(["cloud_pubsub", "rabbitmq", "svix"]);
|
@@ -8,8 +8,8 @@ export declare const PatientAddressCompatible: core.serialization.ObjectSchema<s
|
|
8
8
|
export declare namespace PatientAddressCompatible {
|
9
9
|
interface Raw {
|
10
10
|
receiver_name?: string | null;
|
11
|
-
|
12
|
-
|
11
|
+
first_line: string;
|
12
|
+
second_line?: string | null;
|
13
13
|
city: string;
|
14
14
|
state: string;
|
15
15
|
zip: string;
|
@@ -30,8 +30,8 @@ exports.PatientAddressCompatible = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
exports.PatientAddressCompatible = core.serialization.object({
|
32
32
|
receiverName: core.serialization.property("receiver_name", core.serialization.string().optional()),
|
33
|
-
|
34
|
-
|
33
|
+
firstLine: core.serialization.property("first_line", core.serialization.string()),
|
34
|
+
secondLine: core.serialization.property("second_line", core.serialization.string().optional()),
|
35
35
|
city: core.serialization.string(),
|
36
36
|
state: core.serialization.string(),
|
37
37
|
zip: core.serialization.string(),
|
@@ -9,5 +9,8 @@ export declare namespace TeamConfig {
|
|
9
9
|
interface Raw {
|
10
10
|
libreview: serializers.LibreConfig.Raw;
|
11
11
|
texts_enabled?: boolean | null;
|
12
|
+
push_historical_data?: boolean | null;
|
13
|
+
eds_preferences?: serializers.EventDestinationPreferences.Raw | null;
|
14
|
+
event_type_prefixes?: string[] | null;
|
12
15
|
}
|
13
16
|
}
|