@nxtedition/types 23.0.41 → 23.0.42
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/render-preset.d.ts +2 -2
- package/dist/common/render-profile.d.ts +3 -0
- package/dist/common/render-scene.d.ts +1 -1
- package/dist/nxtpression.d.ts +31 -6
- package/dist/records/domains/deepstream.d.ts +1 -0
- package/dist/records/domains/publish.d.ts +6 -2
- package/dist/records/domains/search.d.ts +15 -1
- package/dist/records/domains/template.d.ts +1 -0
- package/dist/records/validate/assert-guard.js +300 -93
- package/dist/records/validate/assert.js +301 -93
- package/dist/records/validate/is.js +25 -15
- package/dist/records/validate/schemas.js +395 -146
- package/dist/records/validate/stringify.js +47 -36
- package/dist/records/validate/utils.js +9 -1
- package/dist/records/validate/validate-equals.d.ts +5 -0
- package/dist/records/validate/validate-equals.js +24363 -0
- package/dist/records/validate/validate.js +267 -83
- package/package.json +1 -1
- package/dist/records/validate/utils.test.d.ts +0 -1
- package/dist/records/validate/utils.test.js +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RenderQuery } from './render-query.ts';
|
|
2
2
|
import type { RenderProfile } from './render-profile.ts';
|
|
3
3
|
export interface RenderPresetObject {
|
|
4
|
-
type
|
|
5
|
-
profile
|
|
4
|
+
type?: RenderQuery["type"] | null;
|
|
5
|
+
profile?: RenderProfile;
|
|
6
6
|
}
|
|
7
7
|
export type RenderPreset = RenderPresetObject | string;
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -400,6 +400,7 @@ declare interface DeepstreamDomainRecords {
|
|
|
400
400
|
declare interface DeepstreamDomainReplicateRecord {
|
|
401
401
|
synced?: boolean;
|
|
402
402
|
since?: string | 0 | null;
|
|
403
|
+
version?: number;
|
|
403
404
|
}
|
|
404
405
|
|
|
405
406
|
declare interface DeepstreamReplicatorStatsRecord {
|
|
@@ -454,6 +455,11 @@ declare interface ElementNodeContent {
|
|
|
454
455
|
children: TextNodeContent[];
|
|
455
456
|
}
|
|
456
457
|
|
|
458
|
+
declare interface EmptyPublishRecord {
|
|
459
|
+
type: null;
|
|
460
|
+
asset?: string | null;
|
|
461
|
+
}
|
|
462
|
+
|
|
457
463
|
declare type Escaper = {
|
|
458
464
|
'"': '\\"';
|
|
459
465
|
"\\": "\\\\";
|
|
@@ -1678,11 +1684,11 @@ declare interface PublishedRecord {
|
|
|
1678
1684
|
error?: boolean;
|
|
1679
1685
|
}
|
|
1680
1686
|
|
|
1681
|
-
declare type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy;
|
|
1687
|
+
declare type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy | EmptyPublishRecord;
|
|
1682
1688
|
|
|
1683
1689
|
declare interface PublishRecordCommon<Type extends PublishRecord["type"]> {
|
|
1684
1690
|
type: Type;
|
|
1685
|
-
asset?: string;
|
|
1691
|
+
asset?: string | null;
|
|
1686
1692
|
connection?: string;
|
|
1687
1693
|
render?: PublishRender;
|
|
1688
1694
|
draft?: Record<string, unknown>;
|
|
@@ -1871,8 +1877,8 @@ declare interface RenderPresetDomainRecords {
|
|
|
1871
1877
|
}
|
|
1872
1878
|
|
|
1873
1879
|
declare interface RenderPresetObject {
|
|
1874
|
-
type
|
|
1875
|
-
profile
|
|
1880
|
+
type?: RenderQuery["type"] | null;
|
|
1881
|
+
profile?: RenderProfile;
|
|
1876
1882
|
}
|
|
1877
1883
|
|
|
1878
1884
|
declare type RenderProfile = (RenderProfileObject | string) | (RenderProfileObject | string)[];
|
|
@@ -1886,7 +1892,10 @@ declare interface RenderProfileObject {
|
|
|
1886
1892
|
language: string;
|
|
1887
1893
|
};
|
|
1888
1894
|
audio?: {
|
|
1895
|
+
codec?: string;
|
|
1889
1896
|
pan?: string;
|
|
1897
|
+
samplerate?: number;
|
|
1898
|
+
split?: boolean;
|
|
1890
1899
|
};
|
|
1891
1900
|
video?: unknown;
|
|
1892
1901
|
pick?: string[];
|
|
@@ -1911,7 +1920,7 @@ declare interface RenderSceneObject {
|
|
|
1911
1920
|
input?: {
|
|
1912
1921
|
type?: string;
|
|
1913
1922
|
file?: string | null;
|
|
1914
|
-
};
|
|
1923
|
+
} | null;
|
|
1915
1924
|
lang?: string;
|
|
1916
1925
|
subtitle?: string;
|
|
1917
1926
|
subtitleTracks?: {
|
|
@@ -2038,10 +2047,25 @@ declare interface ScriptTextRecord {
|
|
|
2038
2047
|
}
|
|
2039
2048
|
|
|
2040
2049
|
declare interface SearchDomainRecords {
|
|
2041
|
-
":search
|
|
2050
|
+
":search": SearchRecord;
|
|
2051
|
+
":search?": SearchRecordProvided;
|
|
2042
2052
|
}
|
|
2043
2053
|
|
|
2044
2054
|
declare interface SearchRecord {
|
|
2055
|
+
type?: "conditions_and";
|
|
2056
|
+
sort?: Array<{
|
|
2057
|
+
[key: string]: "asc" | "desc";
|
|
2058
|
+
}>;
|
|
2059
|
+
showDefault?: boolean;
|
|
2060
|
+
showDeleted?: boolean;
|
|
2061
|
+
showHidden?: boolean;
|
|
2062
|
+
view?: "GRID_VIEW" | "LIST_VIEW" | "CALENDAR_VIEW" | "MAP_VIEW" | "AGENDA_VIEW" | "RESOURCE_VIEW";
|
|
2063
|
+
conditions?: Array<unknown>;
|
|
2064
|
+
visibleColumnKeys?: null | string[];
|
|
2065
|
+
connectionId?: string | null;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
declare interface SearchRecordProvided {
|
|
2045
2069
|
hits: string[];
|
|
2046
2070
|
total?: number;
|
|
2047
2071
|
relation?: string;
|
|
@@ -2855,6 +2879,7 @@ declare interface TemplateProperty {
|
|
|
2855
2879
|
}
|
|
2856
2880
|
|
|
2857
2881
|
declare interface TemplateRecord {
|
|
2882
|
+
controller?: string;
|
|
2858
2883
|
mixin?: string[];
|
|
2859
2884
|
properties?: Record<string, TemplateProperty>;
|
|
2860
2885
|
}
|
|
@@ -6,7 +6,11 @@ export interface PublishDomainRecords {
|
|
|
6
6
|
[":publish.methods?"]: PublishDomainMethodsRecord;
|
|
7
7
|
[":publish.accepts"]: PublishDomainAcceptsProvidedRecord;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export interface EmptyPublishRecord {
|
|
10
|
+
type: null;
|
|
11
|
+
asset?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy | EmptyPublishRecord;
|
|
10
14
|
export type PublishStatsRecord = YoutubePublishStatsRecord | FacebookPublishStatsRecord | FilePublishStatsRecord;
|
|
11
15
|
export interface PublishDomainMethodsRecord {
|
|
12
16
|
[key: string]: {
|
|
@@ -25,7 +29,7 @@ export interface PublishRender {
|
|
|
25
29
|
}
|
|
26
30
|
interface PublishRecordCommon<Type extends PublishRecord["type"]> {
|
|
27
31
|
type: Type;
|
|
28
|
-
asset?: string;
|
|
32
|
+
asset?: string | null;
|
|
29
33
|
connection?: string;
|
|
30
34
|
render?: PublishRender;
|
|
31
35
|
draft?: Record<string, unknown>;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
export interface SearchDomainRecords {
|
|
2
|
-
":search
|
|
2
|
+
":search": SearchRecord;
|
|
3
|
+
":search?": SearchRecordProvided;
|
|
3
4
|
}
|
|
4
5
|
export interface SearchRecord {
|
|
6
|
+
type?: "conditions_and";
|
|
7
|
+
sort?: Array<{
|
|
8
|
+
[key: string]: "asc" | "desc";
|
|
9
|
+
}>;
|
|
10
|
+
showDefault?: boolean;
|
|
11
|
+
showDeleted?: boolean;
|
|
12
|
+
showHidden?: boolean;
|
|
13
|
+
view?: "GRID_VIEW" | "LIST_VIEW" | "CALENDAR_VIEW" | "MAP_VIEW" | "AGENDA_VIEW" | "RESOURCE_VIEW";
|
|
14
|
+
conditions?: Array<unknown>;
|
|
15
|
+
visibleColumnKeys?: null | string[];
|
|
16
|
+
connectionId?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface SearchRecordProvided {
|
|
5
19
|
hits: string[];
|
|
6
20
|
total?: number;
|
|
7
21
|
relation?: string;
|