scorecard-ai 0.1.12 → 0.2.0
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/LICENSE +201 -0
- package/api/resources/run/client/Client.d.ts +3 -3
- package/api/resources/run/client/Client.js +6 -6
- package/api/resources/score/client/Client.js +2 -2
- package/api/resources/testcase/client/Client.js +3 -3
- package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/api/resources/testrecord/client/Client.js +2 -2
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/api/resources/testset/client/Client.js +5 -5
- package/api/types/Grade.d.ts +4 -0
- package/api/types/JsonObject.d.ts +8 -0
- package/api/types/JsonObjectInputValue.d.ts +8 -0
- package/api/types/JsonObjectOutputValue.d.ts +8 -0
- package/api/types/JsonObjectOutputValue.js +5 -0
- package/api/types/{RunExternal.d.ts → Run.d.ts} +1 -1
- package/api/types/Run.js +5 -0
- package/api/types/ScoreStatus.d.ts +9 -0
- package/api/types/ScoreStatus.js +11 -0
- package/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/api/types/Testrecord.d.ts +1 -1
- package/api/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/api/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/api/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/api/types/index.d.ts +5 -1
- package/api/types/index.js +5 -1
- package/dist/api/resources/run/client/Client.d.ts +3 -3
- package/dist/api/resources/run/client/Client.js +6 -6
- package/dist/api/resources/score/client/Client.js +2 -2
- package/dist/api/resources/testcase/client/Client.js +3 -3
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/client/Client.js +2 -2
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/dist/api/resources/testset/client/Client.js +5 -5
- package/dist/api/types/Grade.d.ts +4 -0
- package/dist/api/types/JsonObject.d.ts +8 -0
- package/dist/api/types/JsonObject.js +5 -0
- package/dist/api/types/JsonObjectInputValue.d.ts +8 -0
- package/dist/api/types/JsonObjectInputValue.js +5 -0
- package/dist/api/types/JsonObjectOutputValue.d.ts +8 -0
- package/dist/api/types/JsonObjectOutputValue.js +5 -0
- package/dist/api/types/{RunExternal.d.ts → Run.d.ts} +1 -1
- package/dist/api/types/Run.js +5 -0
- package/dist/api/types/ScoreStatus.d.ts +9 -0
- package/dist/api/types/ScoreStatus.js +11 -0
- package/dist/api/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/Testrecord.d.ts +1 -1
- package/dist/api/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/dist/api/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/dist/api/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/index.js +5 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/dist/serialization/types/Grade.d.ts +3 -0
- package/dist/serialization/types/Grade.js +12 -0
- package/dist/serialization/types/JsonObject.d.ts +12 -0
- package/dist/serialization/types/JsonObject.js +42 -0
- package/dist/serialization/types/JsonObjectInputValue.d.ts +10 -0
- package/dist/serialization/types/JsonObjectInputValue.js +47 -0
- package/dist/serialization/types/JsonObjectOutputValue.d.ts +10 -0
- package/dist/serialization/types/JsonObjectOutputValue.js +47 -0
- package/dist/serialization/types/{RunExternal.d.ts → Run.d.ts} +2 -2
- package/dist/serialization/types/{RunExternal.js → Run.js} +2 -2
- package/dist/serialization/types/ScoreStatus.d.ts +10 -0
- package/dist/serialization/types/ScoreStatus.js +31 -0
- package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/dist/serialization/types/TestCaseCustomInputsValue.js +1 -1
- package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/types/TestCaseCustomLabelsValue.js +1 -1
- package/dist/serialization/types/Testrecord.d.ts +1 -1
- package/dist/serialization/types/Testrecord.js +1 -1
- package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/dist/serialization/types/TestrecordCustomInputsValue.js +1 -1
- package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/dist/serialization/types/TestrecordCustomLabelsValue.js +1 -1
- package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/dist/serialization/types/TestrecordCustomOutputsValue.js +1 -1
- package/dist/serialization/types/index.d.ts +5 -1
- package/dist/serialization/types/index.js +5 -1
- package/package.json +1 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +1 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +1 -1
- package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +1 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +1 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +2 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +1 -1
- package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +2 -1
- package/serialization/types/Grade.d.ts +3 -0
- package/serialization/types/Grade.js +12 -0
- package/serialization/types/JsonObject.d.ts +12 -0
- package/serialization/types/JsonObject.js +42 -0
- package/serialization/types/JsonObjectInputValue.d.ts +10 -0
- package/serialization/types/JsonObjectInputValue.js +47 -0
- package/serialization/types/JsonObjectOutputValue.d.ts +10 -0
- package/serialization/types/JsonObjectOutputValue.js +47 -0
- package/serialization/types/{RunExternal.d.ts → Run.d.ts} +2 -2
- package/serialization/types/{RunExternal.js → Run.js} +2 -2
- package/serialization/types/ScoreStatus.d.ts +10 -0
- package/serialization/types/ScoreStatus.js +31 -0
- package/serialization/types/TestCaseCustomInputsValue.d.ts +1 -1
- package/serialization/types/TestCaseCustomInputsValue.js +1 -1
- package/serialization/types/TestCaseCustomLabelsValue.d.ts +1 -1
- package/serialization/types/TestCaseCustomLabelsValue.js +1 -1
- package/serialization/types/Testrecord.d.ts +1 -1
- package/serialization/types/Testrecord.js +1 -1
- package/serialization/types/TestrecordCustomInputsValue.d.ts +1 -1
- package/serialization/types/TestrecordCustomInputsValue.js +1 -1
- package/serialization/types/TestrecordCustomLabelsValue.d.ts +1 -1
- package/serialization/types/TestrecordCustomLabelsValue.js +1 -1
- package/serialization/types/TestrecordCustomOutputsValue.d.ts +1 -1
- package/serialization/types/TestrecordCustomOutputsValue.js +1 -1
- package/serialization/types/index.d.ts +5 -1
- package/serialization/types/index.js +5 -1
- /package/api/types/{RunExternal.js → JsonObject.js} +0 -0
- /package/{dist/api/types/RunExternal.js → api/types/JsonObjectInputValue.js} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
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.JsonObjectInputValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.JsonObjectInputValue = core.serialization.undiscriminatedUnion([
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
42
|
+
core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
43
|
+
core.serialization.string(),
|
|
44
|
+
core.serialization.number(),
|
|
45
|
+
core.serialization.number(),
|
|
46
|
+
core.serialization.boolean(),
|
|
47
|
+
]);
|
|
@@ -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 Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObjectOutputValue: core.serialization.Schema<serializers.JsonObjectOutputValue.Raw, Scorecard.JsonObjectOutputValue>;
|
|
8
|
+
export declare namespace JsonObjectOutputValue {
|
|
9
|
+
type Raw = Record<string, serializers.JsonObject.Raw> | serializers.JsonObject.Raw[] | string | number | number | boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.JsonObjectOutputValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.JsonObjectOutputValue = core.serialization.undiscriminatedUnion([
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
42
|
+
core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
43
|
+
core.serialization.string(),
|
|
44
|
+
core.serialization.number(),
|
|
45
|
+
core.serialization.number(),
|
|
46
|
+
core.serialization.boolean(),
|
|
47
|
+
]);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Scorecard from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const Run: core.serialization.ObjectSchema<serializers.Run.Raw, Scorecard.Run>;
|
|
8
|
+
export declare namespace Run {
|
|
9
9
|
interface Raw {
|
|
10
10
|
id?: number | null;
|
|
11
11
|
created_at?: string | null;
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.Run = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.Run = core.serialization.object({
|
|
32
32
|
id: core.serialization.number().optional(),
|
|
33
33
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
34
34
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
@@ -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 Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ScoreStatus: core.serialization.Schema<serializers.ScoreStatus.Raw, Scorecard.ScoreStatus>;
|
|
8
|
+
export declare namespace ScoreStatus {
|
|
9
|
+
type Raw = "pending" | "error" | "completed";
|
|
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.ScoreStatus = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ScoreStatus = core.serialization.enum_(["pending", "error", "completed"]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestCaseCustomInputsValue: core.serialization.Schema<serializers.TestCaseCustomInputsValue.Raw, Scorecard.TestCaseCustomInputsValue>;
|
|
8
8
|
export declare namespace TestCaseCustomInputsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestCaseCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestCaseCustomLabelsValue: core.serialization.Schema<serializers.TestCaseCustomLabelsValue.Raw, Scorecard.TestCaseCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestCaseCustomLabelsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestCaseCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -40,7 +40,7 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.Testrecord = core.serialization.object({
|
|
41
41
|
id: core.serialization.number().optional(),
|
|
42
42
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
43
|
-
runId: core.serialization.property("run_id", core.serialization.number()),
|
|
43
|
+
runId: core.serialization.property("run_id", core.serialization.number().optional()),
|
|
44
44
|
testsetId: core.serialization.property("testset_id", core.serialization.number().optional()),
|
|
45
45
|
testcaseId: core.serialization.property("testcase_id", core.serialization.number().optional()),
|
|
46
46
|
userQuery: core.serialization.property("user_query", core.serialization.string().optional()),
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestrecordCustomInputsValue: core.serialization.Schema<serializers.TestrecordCustomInputsValue.Raw, Scorecard.TestrecordCustomInputsValue>;
|
|
8
8
|
export declare namespace TestrecordCustomInputsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestrecordCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestrecordCustomLabelsValue: core.serialization.Schema<serializers.TestrecordCustomLabelsValue.Raw, Scorecard.TestrecordCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestrecordCustomLabelsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestrecordCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TestrecordCustomOutputsValue: core.serialization.Schema<serializers.TestrecordCustomOutputsValue.Raw, Scorecard.TestrecordCustomOutputsValue>;
|
|
8
8
|
export declare namespace TestrecordCustomOutputsValue {
|
|
9
|
-
type Raw = string | serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -40,5 +40,5 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.TestrecordCustomOutputsValue = core.serialization.undiscriminatedUnion([
|
|
41
41
|
core.serialization.string(),
|
|
42
42
|
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FileUrl; })),
|
|
43
|
-
core.serialization.
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; })),
|
|
44
44
|
]);
|
|
@@ -5,11 +5,15 @@ export * from "./DataTypeEnum";
|
|
|
5
5
|
export * from "./FileUrl";
|
|
6
6
|
export * from "./Grade";
|
|
7
7
|
export * from "./HttpValidationError";
|
|
8
|
+
export * from "./JsonObjectInputValue";
|
|
9
|
+
export * from "./JsonObject";
|
|
10
|
+
export * from "./JsonObjectOutputValue";
|
|
8
11
|
export * from "./NotFoundErrorBody";
|
|
9
12
|
export * from "./PaginatedTestcaseResponse";
|
|
10
13
|
export * from "./RoleEnum";
|
|
11
|
-
export * from "./
|
|
14
|
+
export * from "./Run";
|
|
12
15
|
export * from "./RunStatus";
|
|
16
|
+
export * from "./ScoreStatus";
|
|
13
17
|
export * from "./TestCaseCustomInputsValue";
|
|
14
18
|
export * from "./TestCaseCustomLabelsValue";
|
|
15
19
|
export * from "./TestCase";
|
|
@@ -21,11 +21,15 @@ __exportStar(require("./DataTypeEnum"), exports);
|
|
|
21
21
|
__exportStar(require("./FileUrl"), exports);
|
|
22
22
|
__exportStar(require("./Grade"), exports);
|
|
23
23
|
__exportStar(require("./HttpValidationError"), exports);
|
|
24
|
+
__exportStar(require("./JsonObjectInputValue"), exports);
|
|
25
|
+
__exportStar(require("./JsonObject"), exports);
|
|
26
|
+
__exportStar(require("./JsonObjectOutputValue"), exports);
|
|
24
27
|
__exportStar(require("./NotFoundErrorBody"), exports);
|
|
25
28
|
__exportStar(require("./PaginatedTestcaseResponse"), exports);
|
|
26
29
|
__exportStar(require("./RoleEnum"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./Run"), exports);
|
|
28
31
|
__exportStar(require("./RunStatus"), exports);
|
|
32
|
+
__exportStar(require("./ScoreStatus"), exports);
|
|
29
33
|
__exportStar(require("./TestCaseCustomInputsValue"), exports);
|
|
30
34
|
__exportStar(require("./TestCaseCustomLabelsValue"), exports);
|
|
31
35
|
__exportStar(require("./TestCase"), exports);
|
package/package.json
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestcaseCreateParamsCustomInputsValue: core.serialization.Schema<serializers.TestcaseCreateParamsCustomInputsValue.Raw, Scorecard.TestcaseCreateParamsCustomInputsValue>;
|
|
8
8
|
export declare namespace TestcaseCreateParamsCustomInputsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestcaseCreateParamsCustomInputsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestcaseCreateParamsCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestcaseCreateParamsCustomLabelsValue: core.serialization.Schema<serializers.TestcaseCreateParamsCustomLabelsValue.Raw, Scorecard.TestcaseCreateParamsCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestcaseCreateParamsCustomLabelsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestcaseCreateParamsCustomLabelsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestcaseCreateParamsCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestrecordCreateParamsCustomInputsValue: core.serialization.Schema<serializers.TestrecordCreateParamsCustomInputsValue.Raw, Scorecard.TestrecordCreateParamsCustomInputsValue>;
|
|
8
8
|
export declare namespace TestrecordCreateParamsCustomInputsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParamsCustomInputsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParamsCustomInputsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestrecordCreateParamsCustomLabelsValue: core.serialization.Schema<serializers.TestrecordCreateParamsCustomLabelsValue.Raw, Scorecard.TestrecordCreateParamsCustomLabelsValue>;
|
|
8
8
|
export declare namespace TestrecordCreateParamsCustomLabelsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParamsCustomLabelsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParamsCustomLabelsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Scorecard from "../../../../api";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TestrecordCreateParamsCustomOutputsValue: core.serialization.Schema<serializers.TestrecordCreateParamsCustomOutputsValue.Raw, Scorecard.TestrecordCreateParamsCustomOutputsValue>;
|
|
8
8
|
export declare namespace TestrecordCreateParamsCustomOutputsValue {
|
|
9
|
-
type Raw = serializers.FileUrl.Raw |
|
|
9
|
+
type Raw = string | serializers.FileUrl.Raw | serializers.JsonObject.Raw;
|
|
10
10
|
}
|
package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js
CHANGED
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
38
|
exports.TestrecordCreateParamsCustomOutputsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../../../core"));
|
|
40
40
|
exports.TestrecordCreateParamsCustomOutputsValue = core.serialization.undiscriminatedUnion([
|
|
41
|
-
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
42
41
|
core.serialization.string(),
|
|
42
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).FileUrl; })),
|
|
43
|
+
core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../..")))).JsonObject; })),
|
|
43
44
|
]);
|
|
@@ -12,9 +12,12 @@ export declare namespace Grade {
|
|
|
12
12
|
testcase_id?: number | null;
|
|
13
13
|
testrecord_id?: number | null;
|
|
14
14
|
metric_id?: number | null;
|
|
15
|
+
user_id?: string | null;
|
|
15
16
|
binary_score?: boolean | null;
|
|
16
17
|
int_score?: number | null;
|
|
17
18
|
reasoning?: string | null;
|
|
18
19
|
human_eval?: boolean | null;
|
|
20
|
+
status?: serializers.ScoreStatus.Raw | null;
|
|
21
|
+
error_message?: string | null;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
@@ -25,6 +25,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
__setModuleDefault(result, mod);
|
|
26
26
|
return result;
|
|
27
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
|
+
};
|
|
28
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
38
|
exports.Grade = void 0;
|
|
30
39
|
const core = __importStar(require("../../core"));
|
|
@@ -34,8 +43,11 @@ exports.Grade = core.serialization.object({
|
|
|
34
43
|
testcaseId: core.serialization.property("testcase_id", core.serialization.number().optional()),
|
|
35
44
|
testrecordId: core.serialization.property("testrecord_id", core.serialization.number().optional()),
|
|
36
45
|
metricId: core.serialization.property("metric_id", core.serialization.number().optional()),
|
|
46
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
37
47
|
binaryScore: core.serialization.property("binary_score", core.serialization.boolean().optional()),
|
|
38
48
|
intScore: core.serialization.property("int_score", core.serialization.number().optional()),
|
|
39
49
|
reasoning: core.serialization.string().optional(),
|
|
40
50
|
humanEval: core.serialization.property("human_eval", core.serialization.boolean().optional()),
|
|
51
|
+
status: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ScoreStatus; })).optional(),
|
|
52
|
+
errorMessage: core.serialization.property("error_message", core.serialization.string().optional()),
|
|
41
53
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObject: core.serialization.ObjectSchema<serializers.JsonObject.Raw, Scorecard.JsonObject>;
|
|
8
|
+
export declare namespace JsonObject {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: serializers.JsonObjectOutputValue.Raw | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -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
|
+
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.JsonObject = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.JsonObject = core.serialization.object({
|
|
41
|
+
value: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObjectOutputValue; })).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 "..";
|
|
5
|
+
import * as Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObjectInputValue: core.serialization.Schema<serializers.JsonObjectInputValue.Raw, Scorecard.JsonObjectInputValue>;
|
|
8
|
+
export declare namespace JsonObjectInputValue {
|
|
9
|
+
type Raw = Record<string, serializers.JsonObject.Raw> | serializers.JsonObject.Raw[] | string | number | number | boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.JsonObjectInputValue = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.JsonObjectInputValue = core.serialization.undiscriminatedUnion([
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
42
|
+
core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonObject; }))),
|
|
43
|
+
core.serialization.string(),
|
|
44
|
+
core.serialization.number(),
|
|
45
|
+
core.serialization.number(),
|
|
46
|
+
core.serialization.boolean(),
|
|
47
|
+
]);
|
|
@@ -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 Scorecard from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const JsonObjectOutputValue: core.serialization.Schema<serializers.JsonObjectOutputValue.Raw, Scorecard.JsonObjectOutputValue>;
|
|
8
|
+
export declare namespace JsonObjectOutputValue {
|
|
9
|
+
type Raw = Record<string, serializers.JsonObject.Raw> | serializers.JsonObject.Raw[] | string | number | number | boolean;
|
|
10
|
+
}
|