@tryvital/vital-node 3.1.229 → 3.1.231
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 +2 -2
- 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 +37 -37
- package/api/resources/link/client/Client.d.ts +10 -0
- package/api/resources/link/client/Client.js +86 -19
- package/api/resources/link/client/requests/LinkListBulkOpsRequest.d.ts +10 -0
- package/api/resources/link/client/requests/LinkListBulkOpsRequest.js +5 -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/order/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 +75 -75
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/BulkOp.d.ts +13 -0
- package/api/types/BulkOp.js +5 -0
- package/api/types/BulkOpStatus.d.ts +10 -0
- package/api/types/BulkOpStatus.js +12 -0
- package/api/types/BulkOpType.d.ts +8 -0
- package/api/types/BulkOpType.js +10 -0
- package/api/types/BulkOpsResponse.d.ts +8 -0
- package/api/types/BulkOpsResponse.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/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/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 +37 -37
- package/dist/api/resources/link/client/Client.d.ts +10 -0
- package/dist/api/resources/link/client/Client.js +86 -19
- package/dist/api/resources/link/client/requests/LinkListBulkOpsRequest.d.ts +10 -0
- package/dist/api/resources/link/client/requests/LinkListBulkOpsRequest.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/order/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 +75 -75
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/BulkOp.d.ts +13 -0
- package/dist/api/types/BulkOp.js +5 -0
- package/dist/api/types/BulkOpStatus.d.ts +10 -0
- package/dist/api/types/BulkOpStatus.js +12 -0
- package/dist/api/types/BulkOpType.d.ts +8 -0
- package/dist/api/types/BulkOpType.js +10 -0
- package/dist/api/types/BulkOpsResponse.d.ts +8 -0
- package/dist/api/types/BulkOpsResponse.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/types/BulkOp.d.ts +21 -0
- package/dist/serialization/types/BulkOp.js +42 -0
- package/dist/serialization/types/BulkOpStatus.d.ts +10 -0
- package/dist/serialization/types/BulkOpStatus.js +31 -0
- package/dist/serialization/types/BulkOpType.d.ts +10 -0
- package/dist/serialization/types/BulkOpType.js +31 -0
- package/dist/serialization/types/BulkOpsResponse.d.ts +14 -0
- package/dist/serialization/types/BulkOpsResponse.js +35 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +48 -0
- package/serialization/types/BulkOp.d.ts +21 -0
- package/serialization/types/BulkOp.js +42 -0
- package/serialization/types/BulkOpStatus.d.ts +10 -0
- package/serialization/types/BulkOpStatus.js +31 -0
- package/serialization/types/BulkOpType.d.ts +10 -0
- package/serialization/types/BulkOpType.js +31 -0
- package/serialization/types/BulkOpsResponse.d.ts +14 -0
- package/serialization/types/BulkOpsResponse.js +35 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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,
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface BulkOp {
|
6
|
+
type: Vital.BulkOpType;
|
7
|
+
status: Vital.BulkOpStatus;
|
8
|
+
provider: Vital.Providers;
|
9
|
+
pending: number;
|
10
|
+
processed: number;
|
11
|
+
startedAt: Date;
|
12
|
+
endedAt?: Date;
|
13
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type BulkOpStatus = "in_progress" | "success" | "failure" | "aborted";
|
5
|
+
export declare const BulkOpStatus: {
|
6
|
+
readonly InProgress: "in_progress";
|
7
|
+
readonly Success: "success";
|
8
|
+
readonly Failure: "failure";
|
9
|
+
readonly Aborted: "aborted";
|
10
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.BulkOpStatus = void 0;
|
7
|
+
exports.BulkOpStatus = {
|
8
|
+
InProgress: "in_progress",
|
9
|
+
Success: "success",
|
10
|
+
Failure: "failure",
|
11
|
+
Aborted: "aborted",
|
12
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type BulkOpType = "link_bulk_import" | "link_bulk_historical_trigger";
|
5
|
+
export declare const BulkOpType: {
|
6
|
+
readonly LinkBulkImport: "link_bulk_import";
|
7
|
+
readonly LinkBulkHistoricalTrigger: "link_bulk_historical_trigger";
|
8
|
+
};
|
@@ -0,0 +1,10 @@
|
|
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.BulkOpType = void 0;
|
7
|
+
exports.BulkOpType = {
|
8
|
+
LinkBulkImport: "link_bulk_import",
|
9
|
+
LinkBulkHistoricalTrigger: "link_bulk_historical_trigger",
|
10
|
+
};
|
@@ -34,6 +34,10 @@ export * from "./BodyColumnExpr";
|
|
34
34
|
export * from "./BodyV2InDb";
|
35
35
|
export * from "./BulkExportConnectionsResponse";
|
36
36
|
export * from "./BulkImportConnectionsResponse";
|
37
|
+
export * from "./BulkOpType";
|
38
|
+
export * from "./BulkOpStatus";
|
39
|
+
export * from "./BulkOp";
|
40
|
+
export * from "./BulkOpsResponse";
|
37
41
|
export * from "./CervicalMucusEntryQuality";
|
38
42
|
export * from "./CervicalMucusEntry";
|
39
43
|
export * from "./ChronotypeValueMacroExpr";
|
package/dist/api/types/index.js
CHANGED
@@ -50,6 +50,10 @@ __exportStar(require("./BodyColumnExpr"), exports);
|
|
50
50
|
__exportStar(require("./BodyV2InDb"), exports);
|
51
51
|
__exportStar(require("./BulkExportConnectionsResponse"), exports);
|
52
52
|
__exportStar(require("./BulkImportConnectionsResponse"), exports);
|
53
|
+
__exportStar(require("./BulkOpType"), exports);
|
54
|
+
__exportStar(require("./BulkOpStatus"), exports);
|
55
|
+
__exportStar(require("./BulkOp"), exports);
|
56
|
+
__exportStar(require("./BulkOpsResponse"), exports);
|
53
57
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
54
58
|
__exportStar(require("./CervicalMucusEntry"), exports);
|
55
59
|
__exportStar(require("./ChronotypeValueMacroExpr"), exports);
|
@@ -0,0 +1,21 @@
|
|
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 { BulkOpType } from "./BulkOpType";
|
8
|
+
import { BulkOpStatus } from "./BulkOpStatus";
|
9
|
+
import { Providers } from "./Providers";
|
10
|
+
export declare const BulkOp: core.serialization.ObjectSchema<serializers.BulkOp.Raw, Vital.BulkOp>;
|
11
|
+
export declare namespace BulkOp {
|
12
|
+
interface Raw {
|
13
|
+
type: BulkOpType.Raw;
|
14
|
+
status: BulkOpStatus.Raw;
|
15
|
+
provider: Providers.Raw;
|
16
|
+
pending: number;
|
17
|
+
processed: number;
|
18
|
+
started_at: string;
|
19
|
+
ended_at?: string | null;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,42 @@
|
|
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.BulkOp = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const BulkOpType_1 = require("./BulkOpType");
|
32
|
+
const BulkOpStatus_1 = require("./BulkOpStatus");
|
33
|
+
const Providers_1 = require("./Providers");
|
34
|
+
exports.BulkOp = core.serialization.object({
|
35
|
+
type: BulkOpType_1.BulkOpType,
|
36
|
+
status: BulkOpStatus_1.BulkOpStatus,
|
37
|
+
provider: Providers_1.Providers,
|
38
|
+
pending: core.serialization.number(),
|
39
|
+
processed: core.serialization.number(),
|
40
|
+
startedAt: core.serialization.property("started_at", core.serialization.date()),
|
41
|
+
endedAt: core.serialization.property("ended_at", core.serialization.date().optional()),
|
42
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const BulkOpStatus: core.serialization.Schema<serializers.BulkOpStatus.Raw, Vital.BulkOpStatus>;
|
8
|
+
export declare namespace BulkOpStatus {
|
9
|
+
type Raw = "in_progress" | "success" | "failure" | "aborted";
|
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.BulkOpStatus = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.BulkOpStatus = core.serialization.enum_(["in_progress", "success", "failure", "aborted"]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const BulkOpType: core.serialization.Schema<serializers.BulkOpType.Raw, Vital.BulkOpType>;
|
8
|
+
export declare namespace BulkOpType {
|
9
|
+
type Raw = "link_bulk_import" | "link_bulk_historical_trigger";
|
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.BulkOpType = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.BulkOpType = core.serialization.enum_(["link_bulk_import", "link_bulk_historical_trigger"]);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { BulkOp } from "./BulkOp";
|
8
|
+
export declare const BulkOpsResponse: core.serialization.ObjectSchema<serializers.BulkOpsResponse.Raw, Vital.BulkOpsResponse>;
|
9
|
+
export declare namespace BulkOpsResponse {
|
10
|
+
interface Raw {
|
11
|
+
data: BulkOp.Raw[];
|
12
|
+
next_cursor?: string | null;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.BulkOpsResponse = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const BulkOp_1 = require("./BulkOp");
|
32
|
+
exports.BulkOpsResponse = core.serialization.object({
|
33
|
+
data: core.serialization.list(BulkOp_1.BulkOp),
|
34
|
+
nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
|
35
|
+
});
|
@@ -34,6 +34,10 @@ export * from "./BodyColumnExpr";
|
|
34
34
|
export * from "./BodyV2InDb";
|
35
35
|
export * from "./BulkExportConnectionsResponse";
|
36
36
|
export * from "./BulkImportConnectionsResponse";
|
37
|
+
export * from "./BulkOpType";
|
38
|
+
export * from "./BulkOpStatus";
|
39
|
+
export * from "./BulkOp";
|
40
|
+
export * from "./BulkOpsResponse";
|
37
41
|
export * from "./CervicalMucusEntryQuality";
|
38
42
|
export * from "./CervicalMucusEntry";
|
39
43
|
export * from "./ChronotypeValueMacroExpr";
|
@@ -50,6 +50,10 @@ __exportStar(require("./BodyColumnExpr"), exports);
|
|
50
50
|
__exportStar(require("./BodyV2InDb"), exports);
|
51
51
|
__exportStar(require("./BulkExportConnectionsResponse"), exports);
|
52
52
|
__exportStar(require("./BulkImportConnectionsResponse"), exports);
|
53
|
+
__exportStar(require("./BulkOpType"), exports);
|
54
|
+
__exportStar(require("./BulkOpStatus"), exports);
|
55
|
+
__exportStar(require("./BulkOp"), exports);
|
56
|
+
__exportStar(require("./BulkOpsResponse"), exports);
|
53
57
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
54
58
|
__exportStar(require("./CervicalMucusEntry"), exports);
|
55
59
|
__exportStar(require("./ChronotypeValueMacroExpr"), 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.231";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -2,6 +2,54 @@
|
|
2
2
|
|
3
3
|
## Link
|
4
4
|
|
5
|
+
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">listBulkOps</a>({ ...params }) -> Vital.BulkOpsResponse</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.listBulkOps();
|
19
|
+
```
|
20
|
+
|
21
|
+
</dd>
|
22
|
+
</dl>
|
23
|
+
</dd>
|
24
|
+
</dl>
|
25
|
+
|
26
|
+
#### ⚙️ Parameters
|
27
|
+
|
28
|
+
<dl>
|
29
|
+
<dd>
|
30
|
+
|
31
|
+
<dl>
|
32
|
+
<dd>
|
33
|
+
|
34
|
+
**request:** `Vital.LinkListBulkOpsRequest`
|
35
|
+
|
36
|
+
</dd>
|
37
|
+
</dl>
|
38
|
+
|
39
|
+
<dl>
|
40
|
+
<dd>
|
41
|
+
|
42
|
+
**requestOptions:** `Link.RequestOptions`
|
43
|
+
|
44
|
+
</dd>
|
45
|
+
</dl>
|
46
|
+
</dd>
|
47
|
+
</dl>
|
48
|
+
|
49
|
+
</dd>
|
50
|
+
</dl>
|
51
|
+
</details>
|
52
|
+
|
5
53
|
<details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">bulkImport</a>({ ...params }) -> Vital.BulkImportConnectionsResponse</code></summary>
|
6
54
|
<dl>
|
7
55
|
<dd>
|
@@ -0,0 +1,21 @@
|
|
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 { BulkOpType } from "./BulkOpType";
|
8
|
+
import { BulkOpStatus } from "./BulkOpStatus";
|
9
|
+
import { Providers } from "./Providers";
|
10
|
+
export declare const BulkOp: core.serialization.ObjectSchema<serializers.BulkOp.Raw, Vital.BulkOp>;
|
11
|
+
export declare namespace BulkOp {
|
12
|
+
interface Raw {
|
13
|
+
type: BulkOpType.Raw;
|
14
|
+
status: BulkOpStatus.Raw;
|
15
|
+
provider: Providers.Raw;
|
16
|
+
pending: number;
|
17
|
+
processed: number;
|
18
|
+
started_at: string;
|
19
|
+
ended_at?: string | null;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,42 @@
|
|
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.BulkOp = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const BulkOpType_1 = require("./BulkOpType");
|
32
|
+
const BulkOpStatus_1 = require("./BulkOpStatus");
|
33
|
+
const Providers_1 = require("./Providers");
|
34
|
+
exports.BulkOp = core.serialization.object({
|
35
|
+
type: BulkOpType_1.BulkOpType,
|
36
|
+
status: BulkOpStatus_1.BulkOpStatus,
|
37
|
+
provider: Providers_1.Providers,
|
38
|
+
pending: core.serialization.number(),
|
39
|
+
processed: core.serialization.number(),
|
40
|
+
startedAt: core.serialization.property("started_at", core.serialization.date()),
|
41
|
+
endedAt: core.serialization.property("ended_at", core.serialization.date().optional()),
|
42
|
+
});
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const BulkOpStatus: core.serialization.Schema<serializers.BulkOpStatus.Raw, Vital.BulkOpStatus>;
|
8
|
+
export declare namespace BulkOpStatus {
|
9
|
+
type Raw = "in_progress" | "success" | "failure" | "aborted";
|
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.BulkOpStatus = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.BulkOpStatus = core.serialization.enum_(["in_progress", "success", "failure", "aborted"]);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
export declare const BulkOpType: core.serialization.Schema<serializers.BulkOpType.Raw, Vital.BulkOpType>;
|
8
|
+
export declare namespace BulkOpType {
|
9
|
+
type Raw = "link_bulk_import" | "link_bulk_historical_trigger";
|
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.BulkOpType = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
exports.BulkOpType = core.serialization.enum_(["link_bulk_import", "link_bulk_historical_trigger"]);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as serializers from "../index";
|
5
|
+
import * as Vital from "../../api/index";
|
6
|
+
import * as core from "../../core";
|
7
|
+
import { BulkOp } from "./BulkOp";
|
8
|
+
export declare const BulkOpsResponse: core.serialization.ObjectSchema<serializers.BulkOpsResponse.Raw, Vital.BulkOpsResponse>;
|
9
|
+
export declare namespace BulkOpsResponse {
|
10
|
+
interface Raw {
|
11
|
+
data: BulkOp.Raw[];
|
12
|
+
next_cursor?: string | null;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.BulkOpsResponse = void 0;
|
30
|
+
const core = __importStar(require("../../core"));
|
31
|
+
const BulkOp_1 = require("./BulkOp");
|
32
|
+
exports.BulkOpsResponse = core.serialization.object({
|
33
|
+
data: core.serialization.list(BulkOp_1.BulkOp),
|
34
|
+
nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
|
35
|
+
});
|