@nxtedition/types 23.0.60 → 23.0.61
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/asset-indexer.d.ts +98 -0
- package/dist/common/asset-indexer.js +1 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/panel-property.d.ts +29 -0
- package/dist/common/panel-property.js +1 -0
- package/dist/common/schema-property.d.ts +12 -0
- package/dist/common/schema-property.js +1 -0
- package/dist/common/settings.d.ts +6 -0
- package/dist/nxtpression.d.ts +227 -5
- package/dist/records/domains/asset.d.ts +10 -1
- package/dist/records/domains/device.d.ts +16 -0
- package/dist/records/domains/device.js +1 -0
- package/dist/records/domains/index.d.ts +7 -1
- package/dist/records/domains/index.js +3 -0
- package/dist/records/domains/ingestschedule.d.ts +45 -0
- package/dist/records/domains/ingestschedule.js +1 -0
- package/dist/records/domains/note.d.ts +6 -0
- package/dist/records/domains/note.js +1 -0
- package/dist/records/domains/panel.d.ts +1 -28
- package/dist/records/exact/asset.d.ts +18 -1
- package/dist/records/validate/assert-guard.js +1275 -15
- package/dist/records/validate/assert.js +1278 -11
- package/dist/records/validate/is.js +41 -3
- package/dist/records/validate/schemas.js +1091 -192
- package/dist/records/validate/stringify.js +72 -5
- package/dist/records/validate/utils.js +2 -2
- package/dist/records/validate/validate-equals.js +2364 -439
- package/dist/records/validate/validate.js +1134 -10
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Nxtpression } from '../../common';
|
|
2
|
+
export interface IngestScheduleDomainRecords {
|
|
3
|
+
":ingestschedule": IngestScheduleDomainRecord;
|
|
4
|
+
":ingestschedule.stats?": IngestScheduleDomainStatsRecord;
|
|
5
|
+
}
|
|
6
|
+
export interface IngestScheduleDomainRecord {
|
|
7
|
+
io?: {
|
|
8
|
+
[id: string]: IngestIo;
|
|
9
|
+
};
|
|
10
|
+
sourcesHint?: string;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
clipname?: Nxtpression<string>;
|
|
13
|
+
autoTags?: string[];
|
|
14
|
+
storyboard?: string | null;
|
|
15
|
+
pipeline?: string | null;
|
|
16
|
+
type?: "instant" | "repeat" | "salami";
|
|
17
|
+
salami?: {
|
|
18
|
+
gallery?: string | null;
|
|
19
|
+
tag?: string;
|
|
20
|
+
};
|
|
21
|
+
repeat?: IngestScheduleRepeat;
|
|
22
|
+
}
|
|
23
|
+
interface IngestIo {
|
|
24
|
+
route?: string;
|
|
25
|
+
/** List of connection IDs */
|
|
26
|
+
publish?: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 0 = Monthly
|
|
30
|
+
* 2 = Weekly
|
|
31
|
+
* 3 = Daily
|
|
32
|
+
*/
|
|
33
|
+
type RepeatFreq = 0 | 2 | 3;
|
|
34
|
+
interface IngestScheduleRepeat {
|
|
35
|
+
freq?: RepeatFreq;
|
|
36
|
+
until?: string;
|
|
37
|
+
start?: string;
|
|
38
|
+
tzid?: string;
|
|
39
|
+
duration?: number;
|
|
40
|
+
byweekday?: number[];
|
|
41
|
+
}
|
|
42
|
+
export interface IngestScheduleDomainStatsRecord {
|
|
43
|
+
error?: unknown;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Nxtpression } from '../../common/
|
|
1
|
+
import type { Nxtpression, PanelProperty } from '../../common/index.ts';
|
|
2
2
|
export interface PanelDomainRecords {
|
|
3
3
|
":panel": PanelDomainPanelRecord;
|
|
4
4
|
}
|
|
@@ -17,33 +17,6 @@ export interface PanelDomainPanelRecord {
|
|
|
17
17
|
filter?: Nxtpression;
|
|
18
18
|
expand?: Nxtpression;
|
|
19
19
|
}
|
|
20
|
-
export interface PanelProperty {
|
|
21
|
-
/** Specifying what type of data will be entered into the field. */
|
|
22
|
-
type: "array" | "asset" | "boolean" | "datetime" | "number" | "string" | "object" | "rpc";
|
|
23
|
-
/** User-friendly title of the property. This will be used as the field's label in the UI. */
|
|
24
|
-
title?: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
domain?: string;
|
|
27
|
-
path?: string;
|
|
28
|
-
computed?: Nxtpression<unknown>;
|
|
29
|
-
/** An object specifying where to index the data. Adding this will effectively make the data searchable. */
|
|
30
|
-
index?: {
|
|
31
|
-
/** A string specifying the user-friendly title of the search property. This is what users will see when creating search filters and bookmarks. */
|
|
32
|
-
label: string;
|
|
33
|
-
/** A string specifying where to store the data in the search index. Note that this should be a globally unique value in the system. Typically you'd use `{domain}.{path}` and you should prefer English in camel case */
|
|
34
|
-
path: string;
|
|
35
|
-
};
|
|
36
|
-
/** If present, indicates that the user must specify a value for the asset to be treated as valid. */
|
|
37
|
-
required?: boolean;
|
|
38
|
-
oneOf?: Array<{
|
|
39
|
-
const?: unknown;
|
|
40
|
-
title?: string;
|
|
41
|
-
}>;
|
|
42
|
-
anyOf?: Array<{
|
|
43
|
-
const?: unknown;
|
|
44
|
-
title?: string;
|
|
45
|
-
}>;
|
|
46
|
-
}
|
|
47
20
|
export type PanelLayout = string | PanelLayoutDivider | PanelLayoutItem | PanelLayout[];
|
|
48
21
|
export interface PanelLayoutItem {
|
|
49
22
|
property: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { CloneRule, Nxtpression } from '../../common/index.ts';
|
|
1
|
+
import type { CloneRule, Nxtpression, PanelProperty, SchemaProperty } from '../../common/index.ts';
|
|
2
2
|
export interface AssetRecords {
|
|
3
3
|
"asset.assignees": AssetAssigneesRecord;
|
|
4
4
|
"asset.clone": AssetCloneRecord;
|
|
5
5
|
"asset.deadlines": AssetDeadlinesRecord;
|
|
6
6
|
"asset.duration": AssetDurationRecord;
|
|
7
|
+
"asset.dynamicProperties?": AssetDynamicPropertiesProvidedRecord;
|
|
7
8
|
"asset.embedding": AssetEmbeddingRecord;
|
|
8
9
|
"asset.icon": AssetIconRecord;
|
|
9
10
|
"asset.locations": AssetLocationsRecord;
|
|
@@ -79,5 +80,21 @@ export interface AssetTypesRecord {
|
|
|
79
80
|
icon?: string;
|
|
80
81
|
};
|
|
81
82
|
}
|
|
83
|
+
export interface AssetDynamicPropertiesProvidedRecord {
|
|
84
|
+
value?: DynamicProperty[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Dynamic property definition.
|
|
88
|
+
* Properties come from :panel assets or :schema assets.
|
|
89
|
+
*/
|
|
90
|
+
export interface DynamicProperty extends Omit<PanelProperty, "path">, Omit<SchemaProperty, "path"> {
|
|
91
|
+
/** ID of the panel asset that defines this property (for panel-sourced properties) */
|
|
92
|
+
panel?: string;
|
|
93
|
+
/** ID of the schema asset that defines this property (for schema-sourced properties) */
|
|
94
|
+
schema?: string;
|
|
95
|
+
/** List of asset types this property supports */
|
|
96
|
+
supports: string[];
|
|
97
|
+
path: string;
|
|
98
|
+
}
|
|
82
99
|
type Dynamic = false | string[];
|
|
83
100
|
export {};
|