@tryvital/vital-node 3.1.180 → 3.1.182
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/aggregate/client/Client.js +1 -1
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +34 -34
- package/api/resources/link/client/Client.d.ts +19 -0
- package/api/resources/link/client/Client.js +85 -14
- package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +21 -0
- package/api/resources/link/client/requests/index.d.ts +1 -0
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/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/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +58 -58
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/BulkImportConnectionsResponse.d.ts +7 -0
- package/api/types/ConnectionRecipe.d.ts +15 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +1 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +34 -34
- package/dist/api/resources/link/client/Client.d.ts +19 -0
- package/dist/api/resources/link/client/Client.js +85 -14
- package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +21 -0
- package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.js +5 -0
- package/dist/api/resources/link/client/requests/index.d.ts +1 -0
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/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/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +58 -58
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/BulkImportConnectionsResponse.d.ts +7 -0
- package/dist/api/types/BulkImportConnectionsResponse.js +5 -0
- package/dist/api/types/ConnectionRecipe.d.ts +15 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +15 -0
- package/dist/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +3 -3
- package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/link/client/requests/index.js +3 -1
- package/dist/serialization/types/BulkImportConnectionsResponse.d.ts +13 -0
- package/dist/serialization/types/BulkImportConnectionsResponse.js +34 -0
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +59 -0
- package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +15 -0
- package/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +3 -3
- package/serialization/resources/link/client/requests/index.d.ts +1 -0
- package/serialization/resources/link/client/requests/index.js +3 -1
- package/serialization/types/BulkImportConnectionsResponse.d.ts +13 -0
- package/serialization/types/BulkImportConnectionsResponse.js +34 -0
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/BulkImportConnectionsBody.d.ts +0 -8
- package/dist/api/types/BulkImportConnectionsBody.d.ts +0 -8
- package/dist/serialization/types/BulkImportConnectionsBody.d.ts +0 -15
- package/serialization/types/BulkImportConnectionsBody.d.ts +0 -15
- /package/api/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +0 -0
- /package/{dist/api/types/BulkImportConnectionsBody.js → api/types/BulkImportConnectionsResponse.js} +0 -0
@@ -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.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.
|
219
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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,
|
@@ -2,10 +2,25 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
export interface ConnectionRecipe {
|
5
|
+
/** Vital User ID. The user must be created ahead of the bulk import operation. */
|
5
6
|
userId: string;
|
6
7
|
accessToken: string;
|
7
8
|
refreshToken: string;
|
9
|
+
/**
|
10
|
+
* User ID of the data provider.
|
11
|
+
*
|
12
|
+
* - Fitbit: 6-character Fitbit User ID
|
13
|
+
* - Garmin: 36-character Garmin User ID
|
14
|
+
*/
|
8
15
|
providerId: string;
|
16
|
+
/** Access token expiry date, in terms of UNIX epoch seconds. */
|
9
17
|
expiresAt: number;
|
18
|
+
/**
|
19
|
+
* OAuth scopes of the data provider. Specify `null` if you do not
|
20
|
+
* have any scopes on record.
|
21
|
+
*
|
22
|
+
* - Fitbit: Has scopes
|
23
|
+
* - Garmin: No scope
|
24
|
+
*/
|
10
25
|
oauthScopes?: string[];
|
11
26
|
}
|
@@ -34,7 +34,7 @@ export * from "./BodyColumnExpr";
|
|
34
34
|
export * from "./BodyV2InDb";
|
35
35
|
export * from "./BulkExportConnectionsBody";
|
36
36
|
export * from "./BulkExportConnectionsResponse";
|
37
|
-
export * from "./
|
37
|
+
export * from "./BulkImportConnectionsResponse";
|
38
38
|
export * from "./BulkPauseConnectionsBody";
|
39
39
|
export * from "./BulkTriggerHistoricalPullBody";
|
40
40
|
export * from "./CervicalMucusEntryQuality";
|
package/dist/api/types/index.js
CHANGED
@@ -50,7 +50,7 @@ __exportStar(require("./BodyColumnExpr"), exports);
|
|
50
50
|
__exportStar(require("./BodyV2InDb"), exports);
|
51
51
|
__exportStar(require("./BulkExportConnectionsBody"), exports);
|
52
52
|
__exportStar(require("./BulkExportConnectionsResponse"), exports);
|
53
|
-
__exportStar(require("./
|
53
|
+
__exportStar(require("./BulkImportConnectionsResponse"), exports);
|
54
54
|
__exportStar(require("./BulkPauseConnectionsBody"), exports);
|
55
55
|
__exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
|
56
56
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
@@ -0,0 +1,15 @@
|
|
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 { OAuthProviders } from "../../../../types/OAuthProviders";
|
8
|
+
import { ConnectionRecipe } from "../../../../types/ConnectionRecipe";
|
9
|
+
export declare const BulkImportConnectionsBody: core.serialization.Schema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
|
10
|
+
export declare namespace BulkImportConnectionsBody {
|
11
|
+
interface Raw {
|
12
|
+
provider: OAuthProviders.Raw;
|
13
|
+
connections: ConnectionRecipe.Raw[];
|
14
|
+
}
|
15
|
+
}
|
package/dist/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js
RENAMED
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.BulkImportConnectionsBody = void 0;
|
30
|
-
const core = __importStar(require("
|
31
|
-
const OAuthProviders_1 = require("
|
32
|
-
const ConnectionRecipe_1 = require("
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const OAuthProviders_1 = require("../../../../types/OAuthProviders");
|
32
|
+
const ConnectionRecipe_1 = require("../../../../types/ConnectionRecipe");
|
33
33
|
exports.BulkImportConnectionsBody = core.serialization.object({
|
34
34
|
provider: OAuthProviders_1.OAuthProviders,
|
35
35
|
connections: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export { BulkImportConnectionsBody } from "./BulkImportConnectionsBody";
|
1
2
|
export { LinkTokenExchange } from "./LinkTokenExchange";
|
2
3
|
export { LinkTokenValidationRequest } from "./LinkTokenValidationRequest";
|
3
4
|
export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = void 0;
|
3
|
+
exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = exports.BulkImportConnectionsBody = void 0;
|
4
|
+
var BulkImportConnectionsBody_1 = require("./BulkImportConnectionsBody");
|
5
|
+
Object.defineProperty(exports, "BulkImportConnectionsBody", { enumerable: true, get: function () { return BulkImportConnectionsBody_1.BulkImportConnectionsBody; } });
|
4
6
|
var LinkTokenExchange_1 = require("./LinkTokenExchange");
|
5
7
|
Object.defineProperty(exports, "LinkTokenExchange", { enumerable: true, get: function () { return LinkTokenExchange_1.LinkTokenExchange; } });
|
6
8
|
var LinkTokenValidationRequest_1 = require("./LinkTokenValidationRequest");
|
@@ -0,0 +1,13 @@
|
|
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 BulkImportConnectionsResponse: core.serialization.ObjectSchema<serializers.BulkImportConnectionsResponse.Raw, Vital.BulkImportConnectionsResponse>;
|
8
|
+
export declare namespace BulkImportConnectionsResponse {
|
9
|
+
interface Raw {
|
10
|
+
user_ids_imported: string[];
|
11
|
+
user_ids_failed: string[];
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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.BulkImportConnectionsResponse = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.BulkImportConnectionsResponse = core.serialization.object({
|
32
|
+
userIdsImported: core.serialization.property("user_ids_imported", core.serialization.list(core.serialization.string())),
|
33
|
+
userIdsFailed: core.serialization.property("user_ids_failed", core.serialization.list(core.serialization.string())),
|
34
|
+
});
|
@@ -34,7 +34,7 @@ export * from "./BodyColumnExpr";
|
|
34
34
|
export * from "./BodyV2InDb";
|
35
35
|
export * from "./BulkExportConnectionsBody";
|
36
36
|
export * from "./BulkExportConnectionsResponse";
|
37
|
-
export * from "./
|
37
|
+
export * from "./BulkImportConnectionsResponse";
|
38
38
|
export * from "./BulkPauseConnectionsBody";
|
39
39
|
export * from "./BulkTriggerHistoricalPullBody";
|
40
40
|
export * from "./CervicalMucusEntryQuality";
|
@@ -50,7 +50,7 @@ __exportStar(require("./BodyColumnExpr"), exports);
|
|
50
50
|
__exportStar(require("./BodyV2InDb"), exports);
|
51
51
|
__exportStar(require("./BulkExportConnectionsBody"), exports);
|
52
52
|
__exportStar(require("./BulkExportConnectionsResponse"), exports);
|
53
|
-
__exportStar(require("./
|
53
|
+
__exportStar(require("./BulkImportConnectionsResponse"), exports);
|
54
54
|
__exportStar(require("./BulkPauseConnectionsBody"), exports);
|
55
55
|
__exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
|
56
56
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.182";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -2,6 +2,65 @@
|
|
2
2
|
|
3
3
|
## Link
|
4
4
|
|
5
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">bulkImport</a>({ ...params }) -> Vital.BulkImportConnectionsResponse</code></summary>
|
6
|
+
<dl>
|
7
|
+
<dd>
|
8
|
+
|
9
|
+
#### 🔌 Usage
|
10
|
+
|
11
|
+
<dl>
|
12
|
+
<dd>
|
13
|
+
|
14
|
+
<dl>
|
15
|
+
<dd>
|
16
|
+
|
17
|
+
```typescript
|
18
|
+
await client.link.bulkImport({
|
19
|
+
provider: "oura",
|
20
|
+
connections: [
|
21
|
+
{
|
22
|
+
userId: "user_id",
|
23
|
+
accessToken: "access_token",
|
24
|
+
refreshToken: "refresh_token",
|
25
|
+
providerId: "provider_id",
|
26
|
+
expiresAt: 1,
|
27
|
+
},
|
28
|
+
],
|
29
|
+
});
|
30
|
+
```
|
31
|
+
|
32
|
+
</dd>
|
33
|
+
</dl>
|
34
|
+
</dd>
|
35
|
+
</dl>
|
36
|
+
|
37
|
+
#### ⚙️ Parameters
|
38
|
+
|
39
|
+
<dl>
|
40
|
+
<dd>
|
41
|
+
|
42
|
+
<dl>
|
43
|
+
<dd>
|
44
|
+
|
45
|
+
**request:** `Vital.BulkImportConnectionsBody`
|
46
|
+
|
47
|
+
</dd>
|
48
|
+
</dl>
|
49
|
+
|
50
|
+
<dl>
|
51
|
+
<dd>
|
52
|
+
|
53
|
+
**requestOptions:** `Link.RequestOptions`
|
54
|
+
|
55
|
+
</dd>
|
56
|
+
</dl>
|
57
|
+
</dd>
|
58
|
+
</dl>
|
59
|
+
|
60
|
+
</dd>
|
61
|
+
</dl>
|
62
|
+
</details>
|
63
|
+
|
5
64
|
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">token</a>({ ...params }) -> Vital.LinkTokenExchangeResponse</code></summary>
|
6
65
|
<dl>
|
7
66
|
<dd>
|
@@ -0,0 +1,15 @@
|
|
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 { OAuthProviders } from "../../../../types/OAuthProviders";
|
8
|
+
import { ConnectionRecipe } from "../../../../types/ConnectionRecipe";
|
9
|
+
export declare const BulkImportConnectionsBody: core.serialization.Schema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
|
10
|
+
export declare namespace BulkImportConnectionsBody {
|
11
|
+
interface Raw {
|
12
|
+
provider: OAuthProviders.Raw;
|
13
|
+
connections: ConnectionRecipe.Raw[];
|
14
|
+
}
|
15
|
+
}
|
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
29
|
exports.BulkImportConnectionsBody = void 0;
|
30
|
-
const core = __importStar(require("
|
31
|
-
const OAuthProviders_1 = require("
|
32
|
-
const ConnectionRecipe_1 = require("
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
31
|
+
const OAuthProviders_1 = require("../../../../types/OAuthProviders");
|
32
|
+
const ConnectionRecipe_1 = require("../../../../types/ConnectionRecipe");
|
33
33
|
exports.BulkImportConnectionsBody = core.serialization.object({
|
34
34
|
provider: OAuthProviders_1.OAuthProviders,
|
35
35
|
connections: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export { BulkImportConnectionsBody } from "./BulkImportConnectionsBody";
|
1
2
|
export { LinkTokenExchange } from "./LinkTokenExchange";
|
2
3
|
export { LinkTokenValidationRequest } from "./LinkTokenValidationRequest";
|
3
4
|
export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = void 0;
|
3
|
+
exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = exports.BulkImportConnectionsBody = void 0;
|
4
|
+
var BulkImportConnectionsBody_1 = require("./BulkImportConnectionsBody");
|
5
|
+
Object.defineProperty(exports, "BulkImportConnectionsBody", { enumerable: true, get: function () { return BulkImportConnectionsBody_1.BulkImportConnectionsBody; } });
|
4
6
|
var LinkTokenExchange_1 = require("./LinkTokenExchange");
|
5
7
|
Object.defineProperty(exports, "LinkTokenExchange", { enumerable: true, get: function () { return LinkTokenExchange_1.LinkTokenExchange; } });
|
6
8
|
var LinkTokenValidationRequest_1 = require("./LinkTokenValidationRequest");
|
@@ -0,0 +1,13 @@
|
|
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 BulkImportConnectionsResponse: core.serialization.ObjectSchema<serializers.BulkImportConnectionsResponse.Raw, Vital.BulkImportConnectionsResponse>;
|
8
|
+
export declare namespace BulkImportConnectionsResponse {
|
9
|
+
interface Raw {
|
10
|
+
user_ids_imported: string[];
|
11
|
+
user_ids_failed: string[];
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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.BulkImportConnectionsResponse = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.BulkImportConnectionsResponse = core.serialization.object({
|
32
|
+
userIdsImported: core.serialization.property("user_ids_imported", core.serialization.list(core.serialization.string())),
|
33
|
+
userIdsFailed: core.serialization.property("user_ids_failed", core.serialization.list(core.serialization.string())),
|
34
|
+
});
|
@@ -34,7 +34,7 @@ export * from "./BodyColumnExpr";
|
|
34
34
|
export * from "./BodyV2InDb";
|
35
35
|
export * from "./BulkExportConnectionsBody";
|
36
36
|
export * from "./BulkExportConnectionsResponse";
|
37
|
-
export * from "./
|
37
|
+
export * from "./BulkImportConnectionsResponse";
|
38
38
|
export * from "./BulkPauseConnectionsBody";
|
39
39
|
export * from "./BulkTriggerHistoricalPullBody";
|
40
40
|
export * from "./CervicalMucusEntryQuality";
|
@@ -50,7 +50,7 @@ __exportStar(require("./BodyColumnExpr"), exports);
|
|
50
50
|
__exportStar(require("./BodyV2InDb"), exports);
|
51
51
|
__exportStar(require("./BulkExportConnectionsBody"), exports);
|
52
52
|
__exportStar(require("./BulkExportConnectionsResponse"), exports);
|
53
|
-
__exportStar(require("./
|
53
|
+
__exportStar(require("./BulkImportConnectionsResponse"), exports);
|
54
54
|
__exportStar(require("./BulkPauseConnectionsBody"), exports);
|
55
55
|
__exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
|
56
56
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.182";
|
package/version.js
CHANGED
@@ -1,15 +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 { OAuthProviders } from "./OAuthProviders";
|
8
|
-
import { ConnectionRecipe } from "./ConnectionRecipe";
|
9
|
-
export declare const BulkImportConnectionsBody: core.serialization.ObjectSchema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
|
10
|
-
export declare namespace BulkImportConnectionsBody {
|
11
|
-
interface Raw {
|
12
|
-
provider: OAuthProviders.Raw;
|
13
|
-
connections: ConnectionRecipe.Raw[];
|
14
|
-
}
|
15
|
-
}
|
@@ -1,15 +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 { OAuthProviders } from "./OAuthProviders";
|
8
|
-
import { ConnectionRecipe } from "./ConnectionRecipe";
|
9
|
-
export declare const BulkImportConnectionsBody: core.serialization.ObjectSchema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
|
10
|
-
export declare namespace BulkImportConnectionsBody {
|
11
|
-
interface Raw {
|
12
|
-
provider: OAuthProviders.Raw;
|
13
|
-
connections: ConnectionRecipe.Raw[];
|
14
|
-
}
|
15
|
-
}
|
File without changes
|
/package/{dist/api/types/BulkImportConnectionsBody.js → api/types/BulkImportConnectionsResponse.js}
RENAMED
File without changes
|