@valbuild/core 0.63.6 → 0.64.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/dist/declarations/src/index.d.ts +11 -89
- package/dist/declarations/src/initSchema.d.ts +2 -2
- package/dist/declarations/src/mimeType/all.d.ts +4 -0
- package/dist/declarations/src/mimeType/convertMimeType.d.ts +3 -0
- package/dist/declarations/src/mimeType/index.d.ts +2 -0
- package/dist/declarations/src/schema/array.d.ts +5 -5
- package/dist/declarations/src/schema/boolean.d.ts +2 -2
- package/dist/declarations/src/schema/date.d.ts +5 -5
- package/dist/declarations/src/schema/file.d.ts +5 -3
- package/dist/declarations/src/schema/image.d.ts +4 -3
- package/dist/declarations/src/schema/index.d.ts +44 -3
- package/dist/declarations/src/schema/keyOf.d.ts +5 -5
- package/dist/declarations/src/schema/literal.d.ts +3 -3
- package/dist/declarations/src/schema/number.d.ts +3 -3
- package/dist/declarations/src/schema/object.d.ts +5 -5
- package/dist/declarations/src/schema/record.d.ts +5 -5
- package/dist/declarations/src/schema/richtext.d.ts +5 -4
- package/dist/declarations/src/schema/string.d.ts +2 -2
- package/dist/declarations/src/schema/union.d.ts +5 -5
- package/dist/declarations/src/schema/validation/ValidationError.d.ts +2 -1
- package/dist/declarations/src/selector/SelectorProxy.d.ts +1 -0
- package/dist/declarations/src/source/richtext.d.ts +7 -0
- package/dist/declarations/src/val/index.d.ts +1 -1
- package/dist/{index-041f75bd.cjs.prod.js → index-41223963.cjs.prod.js} +1583 -815
- package/dist/{index-fccba617.esm.js → index-4240c6a6.esm.js} +1583 -815
- package/dist/{index-c67ed8f9.cjs.dev.js → index-d384ec25.cjs.dev.js} +1583 -815
- package/dist/valbuild-core.cjs.dev.js +2 -2
- package/dist/valbuild-core.cjs.prod.js +2 -2
- package/dist/valbuild-core.esm.js +1 -1
- package/expr/dist/valbuild-core-expr.cjs.dev.js +1 -1
- package/expr/dist/valbuild-core-expr.cjs.prod.js +1 -1
- package/expr/dist/valbuild-core-expr.esm.js +1 -1
- package/package.json +1 -1
- package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -1
- package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -1
- package/patch/dist/valbuild-core-patch.esm.js +2 -2
- package/dist/declarations/src/ValApi.d.ts +0 -54
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('./index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('./index-d384ec25.cjs.dev.js');
|
6
6
|
require('./result-48320acd.cjs.dev.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
@@ -19,6 +19,7 @@ exports.FileSchema = expr_dist_valbuildCoreExpr.FileSchema;
|
|
19
19
|
exports.GenericSelector = expr_dist_valbuildCoreExpr.GenericSelector;
|
20
20
|
exports.ImageSchema = expr_dist_valbuildCoreExpr.ImageSchema;
|
21
21
|
exports.Internal = expr_dist_valbuildCoreExpr.Internal;
|
22
|
+
exports.KeyOfSchema = expr_dist_valbuildCoreExpr.KeyOfSchema;
|
22
23
|
exports.LiteralSchema = expr_dist_valbuildCoreExpr.LiteralSchema;
|
23
24
|
exports.NumberSchema = expr_dist_valbuildCoreExpr.NumberSchema;
|
24
25
|
exports.ObjectSchema = expr_dist_valbuildCoreExpr.ObjectSchema;
|
@@ -29,7 +30,6 @@ exports.Schema = expr_dist_valbuildCoreExpr.Schema;
|
|
29
30
|
exports.StringSchema = expr_dist_valbuildCoreExpr.StringSchema;
|
30
31
|
exports.UnionSchema = expr_dist_valbuildCoreExpr.UnionSchema;
|
31
32
|
exports.VAL_EXTENSION = expr_dist_valbuildCoreExpr.VAL_EXTENSION;
|
32
|
-
exports.ValApi = expr_dist_valbuildCoreExpr.ValApi;
|
33
33
|
exports.derefPatch = expr_dist_valbuildCoreExpr.derefPatch;
|
34
34
|
exports.deserializeSchema = expr_dist_valbuildCoreExpr.deserializeSchema;
|
35
35
|
exports.expr = expr_dist_valbuildCoreExpr.index;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('./index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('./index-41223963.cjs.prod.js');
|
6
6
|
require('./result-26f67b40.cjs.prod.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
@@ -19,6 +19,7 @@ exports.FileSchema = expr_dist_valbuildCoreExpr.FileSchema;
|
|
19
19
|
exports.GenericSelector = expr_dist_valbuildCoreExpr.GenericSelector;
|
20
20
|
exports.ImageSchema = expr_dist_valbuildCoreExpr.ImageSchema;
|
21
21
|
exports.Internal = expr_dist_valbuildCoreExpr.Internal;
|
22
|
+
exports.KeyOfSchema = expr_dist_valbuildCoreExpr.KeyOfSchema;
|
22
23
|
exports.LiteralSchema = expr_dist_valbuildCoreExpr.LiteralSchema;
|
23
24
|
exports.NumberSchema = expr_dist_valbuildCoreExpr.NumberSchema;
|
24
25
|
exports.ObjectSchema = expr_dist_valbuildCoreExpr.ObjectSchema;
|
@@ -29,7 +30,6 @@ exports.Schema = expr_dist_valbuildCoreExpr.Schema;
|
|
29
30
|
exports.StringSchema = expr_dist_valbuildCoreExpr.StringSchema;
|
30
31
|
exports.UnionSchema = expr_dist_valbuildCoreExpr.UnionSchema;
|
31
32
|
exports.VAL_EXTENSION = expr_dist_valbuildCoreExpr.VAL_EXTENSION;
|
32
|
-
exports.ValApi = expr_dist_valbuildCoreExpr.ValApi;
|
33
33
|
exports.derefPatch = expr_dist_valbuildCoreExpr.derefPatch;
|
34
34
|
exports.deserializeSchema = expr_dist_valbuildCoreExpr.deserializeSchema;
|
35
35
|
exports.expr = expr_dist_valbuildCoreExpr.index;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { A as ArraySchema, B as BooleanSchema, D as DateSchema, F as FATAL_ERROR_TYPES, k as FILE_REF_PROP, l as FILE_REF_SUBTYPE_TAG, u as FileSchema, G as GenericSelector, t as ImageSchema, I as Internal, L as LiteralSchema, r as NumberSchema, O as ObjectSchema, R as RT_IMAGE_TAG, o as RecordSchema, v as RichTextSchema, j as Schema, q as StringSchema, U as UnionSchema, V as VAL_EXTENSION,
|
1
|
+
export { A as ArraySchema, B as BooleanSchema, D as DateSchema, F as FATAL_ERROR_TYPES, k as FILE_REF_PROP, l as FILE_REF_SUBTYPE_TAG, u as FileSchema, G as GenericSelector, t as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, r as NumberSchema, O as ObjectSchema, R as RT_IMAGE_TAG, o as RecordSchema, v as RichTextSchema, j as Schema, q as StringSchema, U as UnionSchema, V as VAL_EXTENSION, n as derefPatch, w as deserializeSchema, i as expr, h as initVal, m as modules } from './index-4240c6a6.esm.js';
|
2
2
|
import './result-a8316efa.esm.js';
|
3
3
|
import 'marked';
|
4
4
|
import '@valbuild/core';
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-d384ec25.cjs.dev.js');
|
6
6
|
require('../../dist/result-48320acd.cjs.dev.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-41223963.cjs.prod.js');
|
6
6
|
require('../../dist/result-26f67b40.cjs.prod.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { C as Call, E as Expr, N as NilSym, S as StringLiteral, e as StringTemplate, f as Sym, g as evaluate, p as parse } from '../../dist/index-
|
1
|
+
export { C as Call, E as Expr, N as NilSym, S as StringLiteral, e as StringTemplate, f as Sym, g as evaluate, p as parse } from '../../dist/index-4240c6a6.esm.js';
|
2
2
|
import '../../dist/result-a8316efa.esm.js';
|
3
3
|
import 'marked';
|
4
4
|
import '@valbuild/core';
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-d384ec25.cjs.dev.js');
|
6
6
|
var result = require('../../dist/result-48320acd.cjs.dev.js');
|
7
7
|
var util = require('../../dist/util-b213092b.cjs.dev.js');
|
8
8
|
require('marked');
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-41223963.cjs.prod.js');
|
6
6
|
var result = require('../../dist/result-26f67b40.cjs.prod.js');
|
7
7
|
var util = require('../../dist/util-030d8a1f.cjs.prod.js');
|
8
8
|
require('marked');
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-
|
2
|
-
export { P as PatchError } from '../../dist/index-
|
1
|
+
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-4240c6a6.esm.js';
|
2
|
+
export { P as PatchError } from '../../dist/index-4240c6a6.esm.js';
|
3
3
|
import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-a8316efa.esm.js';
|
4
4
|
import { p as pipe } from '../../dist/util-18613e99.esm.js';
|
5
5
|
import 'marked';
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { ApiCommitResponse, ApiGetPatchResponse, ApiPostValidationErrorResponse, ApiPostValidationResponse, ApiTreeResponse, Json, ApiSchemaResponse } from "./index.js";
|
2
|
-
import { result } from "./fp/index.js";
|
3
|
-
import { Patch } from "./patch/index.js";
|
4
|
-
import { ModuleFilePath, PatchId } from "./val/index.js";
|
5
|
-
type FetchError = {
|
6
|
-
message: string;
|
7
|
-
details?: unknown;
|
8
|
-
statusCode?: number;
|
9
|
-
};
|
10
|
-
export declare class ValApi {
|
11
|
-
host: string;
|
12
|
-
constructor(host: string);
|
13
|
-
getDisableUrl(redirectTo: string): string;
|
14
|
-
getLoginUrl(redirectTo: string): string;
|
15
|
-
getEnableUrl(redirectTo: string): string;
|
16
|
-
getPatches(filters?: {
|
17
|
-
patchIds?: string[];
|
18
|
-
authors?: string[];
|
19
|
-
moduleFilePaths?: string[];
|
20
|
-
omitPatches?: boolean;
|
21
|
-
}): Promise<result.Result<ApiGetPatchResponse, FetchError>>;
|
22
|
-
deletePatches(ids: string[], headers?: Record<string, string>): Promise<result.Result<Json, FetchError>>;
|
23
|
-
getEditUrl(): string;
|
24
|
-
getSession(): Promise<result.Result<{
|
25
|
-
mode: "proxy" | "local";
|
26
|
-
member_role: "owner" | "developer" | "editor";
|
27
|
-
}, FetchError> | result.Ok<{
|
28
|
-
mode: "proxy" | "local";
|
29
|
-
member_role: "owner" | "developer" | "editor";
|
30
|
-
}>>;
|
31
|
-
getSchema({ headers }: {
|
32
|
-
headers?: Record<string, string> | undefined;
|
33
|
-
}): Promise<result.Result<ApiSchemaResponse, FetchError>>;
|
34
|
-
putTree({ treePath, patchIds, addPatch, validateAll, validateSource, validateBinaryFiles, headers, }: {
|
35
|
-
treePath?: string;
|
36
|
-
patchIds?: PatchId[];
|
37
|
-
addPatch?: {
|
38
|
-
path: ModuleFilePath;
|
39
|
-
patch: Patch;
|
40
|
-
};
|
41
|
-
validateAll?: boolean;
|
42
|
-
validateSource?: boolean;
|
43
|
-
validateBinaryFiles?: boolean;
|
44
|
-
headers?: Record<string, string> | undefined;
|
45
|
-
}): Promise<result.Result<ApiTreeResponse, FetchError>>;
|
46
|
-
postSave({ patchIds, }: {
|
47
|
-
patchIds: PatchId[];
|
48
|
-
}): Promise<result.Result<ApiCommitResponse, FetchError | ApiPostValidationErrorResponse>>;
|
49
|
-
postValidate({ patches, headers, }: {
|
50
|
-
patches?: Record<ModuleFilePath, PatchId[]>;
|
51
|
-
headers?: Record<string, string> | undefined;
|
52
|
-
}): Promise<result.Result<ApiPostValidationResponse | ApiPostValidationErrorResponse, FetchError>>;
|
53
|
-
}
|
54
|
-
export {};
|