@nxtedition/types 23.0.55 → 23.0.58
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/nxtpression.d.ts +1 -1
- package/dist/common/search.d.ts +9 -0
- package/dist/common/settings.d.ts +11 -0
- package/dist/nxtpression.d.ts +191 -18
- package/dist/records/domains/asset.d.ts +4 -0
- package/dist/records/domains/calendarevent.d.ts +27 -0
- package/dist/records/domains/calendarevent.js +1 -0
- package/dist/records/domains/condition.d.ts +5 -0
- package/dist/records/domains/condition.js +1 -0
- package/dist/records/domains/harvest.d.ts +10 -0
- package/dist/records/domains/harvest.js +1 -0
- package/dist/records/domains/index.d.ts +11 -1
- package/dist/records/domains/index.js +5 -0
- package/dist/records/domains/ingestclip.d.ts +21 -0
- package/dist/records/domains/ingestclip.js +1 -0
- package/dist/records/domains/panel.d.ts +8 -1
- package/dist/records/domains/publish/empty.d.ts +3 -3
- package/dist/records/domains/publish/facebook.d.ts +1 -1
- package/dist/records/domains/publish/file-legacy.d.ts +1 -1
- package/dist/records/domains/publish/file.d.ts +1 -1
- package/dist/records/domains/publish/index.d.ts +6 -2
- package/dist/records/domains/publish/youtube.d.ts +1 -1
- package/dist/records/domains/published.d.ts +7 -3
- package/dist/records/domains/search.d.ts +24 -4
- package/dist/records/domains/shotbox.d.ts +33 -0
- package/dist/records/domains/shotbox.js +1 -0
- package/dist/records/validate/assert-guard.js +1077 -325
- package/dist/records/validate/assert.js +1080 -320
- package/dist/records/validate/is.js +57 -31
- package/dist/records/validate/schemas.js +709 -111
- package/dist/records/validate/stringify.js +102 -71
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +1563 -459
- package/dist/records/validate/validate.js +1018 -292
- package/dist/rpc.d.ts +4 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ export interface FilePublishDef extends PublishDef<"file"> {
|
|
|
5
5
|
stats: FilePublishStatsRecord;
|
|
6
6
|
}
|
|
7
7
|
export interface FilePublishRecord extends PublishRecordBase {
|
|
8
|
-
type
|
|
8
|
+
type?: "file";
|
|
9
9
|
directory?: string;
|
|
10
10
|
filename?: string;
|
|
11
11
|
renders?: Record<string, FilePublishRender>;
|
|
@@ -10,6 +10,9 @@ export * from './file.ts';
|
|
|
10
10
|
import type { YoutubePublishDef } from './youtube.ts';
|
|
11
11
|
export * from './youtube.ts';
|
|
12
12
|
type Union = EmptyPublishDef | YoutubePublishDef | FacebookPublishDef | FilePublishDef | FileLegacyPublishDef;
|
|
13
|
+
export type PublishDefOfType<T extends string | null> = Union & {
|
|
14
|
+
type: T;
|
|
15
|
+
};
|
|
13
16
|
export type PublishRecord = Union["publish"];
|
|
14
17
|
export type PublishStatsRecord = Union["stats"];
|
|
15
18
|
export type PublishMethodsRecord = Union["methods"];
|
|
@@ -21,15 +24,16 @@ export interface PublishDomainRecords {
|
|
|
21
24
|
[":publish.accepts"]: PublishAcceptsProvidedRecord;
|
|
22
25
|
}
|
|
23
26
|
export interface PublishDef<Type extends string | null> {
|
|
27
|
+
type: Type;
|
|
24
28
|
publish: PublishRecordBase & {
|
|
25
|
-
type
|
|
29
|
+
type?: Type;
|
|
26
30
|
};
|
|
27
31
|
stats: PublishStatsRecordBase;
|
|
28
32
|
methods: PublishDomainMethodsRecordBase;
|
|
29
33
|
accepts: PublishDomainAcceptsProvidedRecordBase;
|
|
30
34
|
}
|
|
31
35
|
export interface PublishRecordBase {
|
|
32
|
-
type
|
|
36
|
+
type?: string | null;
|
|
33
37
|
asset?: string | null;
|
|
34
38
|
connection?: string;
|
|
35
39
|
render?: PublishRenderBase;
|
|
@@ -3,10 +3,14 @@ export interface PublishedDomainRecords {
|
|
|
3
3
|
}
|
|
4
4
|
export interface PublishedRecord {
|
|
5
5
|
type: string;
|
|
6
|
-
parent
|
|
7
|
-
|
|
6
|
+
parent?: string;
|
|
7
|
+
/** Only write array, single string is deprecated */
|
|
8
|
+
asset?: string[] | string;
|
|
9
|
+
/** @deprecated - do not write */
|
|
10
|
+
assets?: string[];
|
|
8
11
|
time: number;
|
|
9
|
-
connection
|
|
12
|
+
connection?: string;
|
|
13
|
+
gallery?: string;
|
|
10
14
|
user?: string;
|
|
11
15
|
error?: boolean;
|
|
12
16
|
}
|
|
@@ -1,23 +1,43 @@
|
|
|
1
|
+
import type { SearchCalendarView, SearchCondition, SearchType, SearchView } from '../../common';
|
|
1
2
|
export interface SearchDomainRecords {
|
|
2
3
|
":search": SearchRecord;
|
|
3
4
|
":search?": SearchRecordProvided;
|
|
5
|
+
/** legacy */
|
|
6
|
+
":search.conditions": SearchDomainConditionsRecord;
|
|
7
|
+
/** legacy */
|
|
8
|
+
":search.visibleColumnKeys": SearchDomainVisibleColumnKeysRecord;
|
|
4
9
|
}
|
|
5
10
|
export interface SearchRecord {
|
|
6
|
-
type?:
|
|
11
|
+
type?: SearchType;
|
|
7
12
|
sort?: Array<{
|
|
8
13
|
[key: string]: "asc" | "desc";
|
|
9
14
|
}>;
|
|
10
15
|
showDefault?: boolean;
|
|
11
16
|
showDeleted?: boolean;
|
|
12
17
|
showHidden?: boolean;
|
|
13
|
-
view?:
|
|
14
|
-
conditions?:
|
|
18
|
+
view?: SearchView | null;
|
|
19
|
+
conditions?: SearchCondition[];
|
|
15
20
|
visibleColumnKeys?: null | string[];
|
|
16
21
|
connectionId?: string | null;
|
|
22
|
+
calendar?: {
|
|
23
|
+
view?: SearchCalendarView | null;
|
|
24
|
+
dateAccessor?: string | null;
|
|
25
|
+
agenda?: boolean;
|
|
26
|
+
};
|
|
27
|
+
refreshInterval?: number;
|
|
28
|
+
color?: string;
|
|
17
29
|
}
|
|
18
30
|
export interface SearchRecordProvided {
|
|
19
|
-
hits
|
|
31
|
+
hits?: string[];
|
|
20
32
|
total?: number;
|
|
21
33
|
relation?: string;
|
|
22
34
|
error?: string;
|
|
23
35
|
}
|
|
36
|
+
/** legacy */
|
|
37
|
+
export interface SearchDomainConditionsRecord {
|
|
38
|
+
value?: string[];
|
|
39
|
+
}
|
|
40
|
+
/** legacy */
|
|
41
|
+
export interface SearchDomainVisibleColumnKeysRecord {
|
|
42
|
+
value?: string[];
|
|
43
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface ShotboxDomainRecords {
|
|
2
|
+
":shotbox": ShotboxDomainRecord;
|
|
3
|
+
}
|
|
4
|
+
export interface ShotboxDomainRecord {
|
|
5
|
+
pages?: ShotboxPage[];
|
|
6
|
+
}
|
|
7
|
+
export interface ShotboxPage {
|
|
8
|
+
stickyTopRow?: boolean;
|
|
9
|
+
inferGroups?: boolean;
|
|
10
|
+
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
11
|
+
}
|
|
12
|
+
export type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|
|
13
|
+
export interface ShotboxEventGroup {
|
|
14
|
+
id?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
sticky?: boolean;
|
|
17
|
+
type?: "trigger" | "toggle";
|
|
18
|
+
width?: string;
|
|
19
|
+
include?: string[];
|
|
20
|
+
exclude?: string[];
|
|
21
|
+
states?: {
|
|
22
|
+
completed: boolean;
|
|
23
|
+
};
|
|
24
|
+
flow?: "column" | "row";
|
|
25
|
+
minRows?: number;
|
|
26
|
+
maxRows?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ShotboxStreamGroup {
|
|
29
|
+
type: "stream";
|
|
30
|
+
title?: string;
|
|
31
|
+
width?: string;
|
|
32
|
+
source?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|