@nxtedition/types 23.1.3 → 23.1.4
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/common/index.d.ts +2 -0
- package/dist/common/index.js +2 -0
- package/dist/common/json-schema.d.ts +95 -0
- package/dist/common/json-schema.js +1 -0
- package/dist/common/nxtpression.d.ts +1 -1
- package/dist/common/print.d.ts +30 -0
- package/dist/common/print.js +1 -0
- package/dist/common/render-scene.d.ts +1 -0
- package/dist/common/settings.d.ts +11 -2
- package/dist/nxtpression.d.ts +337 -42
- package/dist/records/domains/connection/file/smb.d.ts +2 -0
- package/dist/records/domains/event.d.ts +6 -0
- package/dist/records/domains/gallery.d.ts +8 -0
- package/dist/records/domains/gallery.js +1 -0
- package/dist/records/domains/index.d.ts +5 -1
- package/dist/records/domains/index.js +2 -0
- package/dist/records/domains/role.d.ts +8 -0
- package/dist/records/domains/storage.d.ts +87 -0
- package/dist/records/domains/storage.js +1 -0
- package/dist/records/domains/template.d.ts +32 -0
- package/dist/records/exact/index.d.ts +6 -0
- package/dist/records/exact/monitor.d.ts +1 -0
- package/dist/records/validate/assert-guard.js +1549 -433
- package/dist/records/validate/assert.js +1557 -433
- package/dist/records/validate/is.js +85 -25
- package/dist/records/validate/schemas.d.ts +3 -10
- package/dist/records/validate/schemas.js +1241 -240
- package/dist/records/validate/stringify.js +137 -49
- package/dist/records/validate/utils.js +2 -2
- package/dist/records/validate/validate-equals.js +2087 -457
- package/dist/records/validate/validate.js +1414 -382
- package/package.json +1 -1
package/dist/common/index.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ export * from './block.ts';
|
|
|
3
3
|
export * from './clone.ts';
|
|
4
4
|
export * from './date.ts';
|
|
5
5
|
export * from './file.ts';
|
|
6
|
+
export * from './json-schema.ts';
|
|
6
7
|
export * from './location.ts';
|
|
7
8
|
export * from './nxtpression.ts';
|
|
8
9
|
export * from './lock.ts';
|
|
9
10
|
export * from './media.ts';
|
|
10
11
|
export * from './panel-property.ts';
|
|
11
12
|
export * from './pipeline.ts';
|
|
13
|
+
export * from './print.ts';
|
|
12
14
|
export * from './promoted-tag.ts';
|
|
13
15
|
export * from './render-preset.ts';
|
|
14
16
|
export * from './render-profile.ts';
|
package/dist/common/index.js
CHANGED
|
@@ -3,12 +3,14 @@ export * from "./block.js";
|
|
|
3
3
|
export * from "./clone.js";
|
|
4
4
|
export * from "./date.js";
|
|
5
5
|
export * from "./file.js";
|
|
6
|
+
export * from "./json-schema.js";
|
|
6
7
|
export * from "./location.js";
|
|
7
8
|
export * from "./nxtpression.js";
|
|
8
9
|
export * from "./lock.js";
|
|
9
10
|
export * from "./media.js";
|
|
10
11
|
export * from "./panel-property.js";
|
|
11
12
|
export * from "./pipeline.js";
|
|
13
|
+
export * from "./print.js";
|
|
12
14
|
export * from "./promoted-tag.js";
|
|
13
15
|
export * from "./render-preset.js";
|
|
14
16
|
export * from "./render-profile.js";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { JsonValue } from 'type-fest';
|
|
2
|
+
declare const __jsonSchemaType: unique symbol;
|
|
3
|
+
export type TypedJsonSchema<T> = JsonSchema & {
|
|
4
|
+
[__jsonSchemaType]?: T;
|
|
5
|
+
};
|
|
6
|
+
export type JsonSchema = JsonSchemaBoolean | JsonSchemaNumber | JsonSchemaInteger | JsonSchemaString | JsonSchemaArray | JsonSchemaTuple | JsonSchemaObject | JsonSchemaReference | JsonSchemaOneOf | JsonSchemaAnyOf | JsonSchemaEnum | JsonSchemaConst | JsonSchemaNull | JsonSchemaUnknown;
|
|
7
|
+
export interface JsonSchemaBase {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Normal JSON schemas use either 'definitions' (older versions) or '$defs' (newer versions).
|
|
12
|
+
* However, OpenAPI and Typia instead uses 'components'. Since we use typia to generate JSON schemas,
|
|
13
|
+
* we use 'components' as well.
|
|
14
|
+
*
|
|
15
|
+
* In the case of OpenAPI and Typia the 'components' schemas are supplied outside the actual
|
|
16
|
+
* JSON schema. For better compatibility with other JSON schema tooling, we instead include it
|
|
17
|
+
* inside the JSON schema itself.
|
|
18
|
+
*/
|
|
19
|
+
components?: {
|
|
20
|
+
schemas?: Record<string, JsonSchema>;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface JsonSchemaBoolean extends JsonSchemaBase {
|
|
24
|
+
type: "boolean";
|
|
25
|
+
default?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface JsonSchemaInteger extends JsonSchemaBase {
|
|
28
|
+
type: "integer";
|
|
29
|
+
default?: number;
|
|
30
|
+
minimum?: number;
|
|
31
|
+
maximum?: number;
|
|
32
|
+
exclusiveMinimum?: number;
|
|
33
|
+
exclusiveMaximum?: number;
|
|
34
|
+
multipleOf?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface JsonSchemaNumber extends JsonSchemaBase {
|
|
37
|
+
type: "number";
|
|
38
|
+
default?: number;
|
|
39
|
+
minimum?: number;
|
|
40
|
+
maximum?: number;
|
|
41
|
+
exclusiveMinimum?: number;
|
|
42
|
+
exclusiveMaximum?: number;
|
|
43
|
+
multipleOf?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface JsonSchemaString extends JsonSchemaBase {
|
|
46
|
+
type: "string";
|
|
47
|
+
default?: string;
|
|
48
|
+
format?: string;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
minLength?: number;
|
|
51
|
+
maxLength?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface JsonSchemaArray extends JsonSchemaBase {
|
|
54
|
+
type: "array";
|
|
55
|
+
items: JsonSchema;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
maxItems?: number;
|
|
58
|
+
uniqueItems?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface JsonSchemaTuple extends JsonSchemaBase {
|
|
61
|
+
type: "array";
|
|
62
|
+
prefixItems: JsonSchema[];
|
|
63
|
+
additionalItems?: boolean | JsonSchema;
|
|
64
|
+
minItems?: number;
|
|
65
|
+
maxItems?: number;
|
|
66
|
+
uniqueItems?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface JsonSchemaObject extends JsonSchemaBase {
|
|
69
|
+
type: "object";
|
|
70
|
+
properties?: Record<string, JsonSchema>;
|
|
71
|
+
additionalProperties?: boolean | JsonSchema;
|
|
72
|
+
required?: string[];
|
|
73
|
+
}
|
|
74
|
+
export interface JsonSchemaReference extends JsonSchemaBase {
|
|
75
|
+
$ref: string;
|
|
76
|
+
}
|
|
77
|
+
export interface JsonSchemaOneOf extends JsonSchemaBase {
|
|
78
|
+
oneOf: JsonSchema[];
|
|
79
|
+
}
|
|
80
|
+
export interface JsonSchemaAnyOf extends JsonSchemaBase {
|
|
81
|
+
anyOf: JsonSchema[];
|
|
82
|
+
}
|
|
83
|
+
export interface JsonSchemaEnum extends JsonSchemaBase {
|
|
84
|
+
enum: JsonValue[];
|
|
85
|
+
}
|
|
86
|
+
export interface JsonSchemaConst extends JsonSchemaBase {
|
|
87
|
+
const: JsonValue;
|
|
88
|
+
}
|
|
89
|
+
export interface JsonSchemaNull extends JsonSchemaBase {
|
|
90
|
+
type: "null";
|
|
91
|
+
}
|
|
92
|
+
export interface JsonSchemaUnknown extends JsonSchemaBase {
|
|
93
|
+
type?: undefined;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Nxtpression<ReturnValue = unknown, Context extends
|
|
1
|
+
export type Nxtpression<ReturnValue = unknown, Context extends Record<string, unknown> = Record<string, unknown>> = {
|
|
2
2
|
/**
|
|
3
3
|
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
4
4
|
* it is only here to make sure the generic Context won't get stripped.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type PrintOptions = PrintScriptOptions | PrintRundownOptions;
|
|
2
|
+
export type PageSize = "A5" | "A4" | "A3";
|
|
3
|
+
export type PageOrientation = "landscape" | "portrait";
|
|
4
|
+
export type PrintOptionalScriptNodes = "event" | "event-data" | "comment" | "heading" | "list" | "quote" | "paragraph" | "horizontalrule";
|
|
5
|
+
interface PrintOptionsBase {
|
|
6
|
+
title: string;
|
|
7
|
+
horizontalMargin: number;
|
|
8
|
+
pageSize: PageSize;
|
|
9
|
+
orientation: PageOrientation;
|
|
10
|
+
fontSize: number;
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
hide: PrintOptionalScriptNodes[];
|
|
13
|
+
}
|
|
14
|
+
export interface PrintScriptOptions extends PrintOptionsBase {
|
|
15
|
+
type: "script";
|
|
16
|
+
}
|
|
17
|
+
export interface PrintRundownOptions extends PrintOptionsBase {
|
|
18
|
+
type: "rundown";
|
|
19
|
+
columns: PrintRundownColumn[];
|
|
20
|
+
rangeStart?: number;
|
|
21
|
+
rangeEnd?: number;
|
|
22
|
+
hide: Exclude<PrintOptionalScriptNodes, "event-data">[];
|
|
23
|
+
}
|
|
24
|
+
export interface PrintRundownColumn {
|
|
25
|
+
key: "id" | "title" | "time" | "duration" | "position" | "accDuration" | "type";
|
|
26
|
+
label: string;
|
|
27
|
+
width: string;
|
|
28
|
+
textAlign: "right" | "left" | "center";
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { PipelineSortMode } from './pipeline.ts';
|
|
|
3
3
|
import type { PromotedTag } from './promoted-tag.ts';
|
|
4
4
|
import type { NotificationReason } from './user-notification.ts';
|
|
5
5
|
import type { SubtitleStyle } from './subtitle-style.ts';
|
|
6
|
+
import type { PrintOptions } from './print.ts';
|
|
6
7
|
export interface Settings {
|
|
7
8
|
autoLogoutTime?: number;
|
|
8
9
|
permission?: {
|
|
@@ -98,6 +99,7 @@ export interface Settings {
|
|
|
98
99
|
sortBy?: "index" | "title";
|
|
99
100
|
showPreview?: boolean;
|
|
100
101
|
};
|
|
102
|
+
contentMaxWidth?: number;
|
|
101
103
|
colorTags?: PromotedTag[];
|
|
102
104
|
readType?: "characters" | "words" | "wordsPerMinute";
|
|
103
105
|
readRate?: number;
|
|
@@ -283,6 +285,7 @@ export interface Settings {
|
|
|
283
285
|
};
|
|
284
286
|
print?: {
|
|
285
287
|
fontFamilies?: string[];
|
|
288
|
+
presets?: Array<PrintOptions>;
|
|
286
289
|
};
|
|
287
290
|
hiddenPreviews?: Array<{
|
|
288
291
|
id?: string;
|
|
@@ -298,6 +301,7 @@ export interface Settings {
|
|
|
298
301
|
downloadPath?: string;
|
|
299
302
|
renderPath?: string;
|
|
300
303
|
renderPresetPath?: string;
|
|
304
|
+
renderPresets?: string[];
|
|
301
305
|
videoRenderPreset?: string;
|
|
302
306
|
imageRenderPreset?: string;
|
|
303
307
|
audioRenderPreset?: string;
|
|
@@ -308,6 +312,9 @@ export interface Settings {
|
|
|
308
312
|
template?: string;
|
|
309
313
|
};
|
|
310
314
|
};
|
|
315
|
+
ograf?: {
|
|
316
|
+
template?: string;
|
|
317
|
+
};
|
|
311
318
|
rive?: {
|
|
312
319
|
template?: string;
|
|
313
320
|
};
|
|
@@ -383,8 +390,10 @@ export interface Settings {
|
|
|
383
390
|
layout?: string;
|
|
384
391
|
};
|
|
385
392
|
performance?: {
|
|
386
|
-
/** List of message identifiers to ignore
|
|
387
|
-
|
|
393
|
+
/** List of message identifiers to ignore warnings (format: "serviceName:messageText") */
|
|
394
|
+
ignoredWarnings?: string[];
|
|
395
|
+
/** List of message identifiers to ignore errors (format: "serviceName:messageText") */
|
|
396
|
+
ignoredErrors?: string[];
|
|
388
397
|
};
|
|
389
398
|
app?: {
|
|
390
399
|
enableUpdate?: boolean;
|