@nxtedition/types 23.0.57 → 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 +177 -10
- 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/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 +871 -180
- package/dist/records/validate/assert.js +878 -180
- package/dist/records/validate/is.js +37 -11
- package/dist/records/validate/schemas.js +615 -64
- package/dist/records/validate/stringify.js +71 -40
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +1291 -278
- package/dist/records/validate/validate.js +833 -169
- package/dist/rpc.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Nxtpression<ReturnValue =
|
|
1
|
+
export type Nxtpression<ReturnValue = unknown, Context extends object = object> = {
|
|
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.
|
package/dist/common/search.d.ts
CHANGED
|
@@ -42,3 +42,12 @@ export interface SearchHighlightOption {
|
|
|
42
42
|
[field: string]: unknown;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
+
export interface SearchCondition {
|
|
46
|
+
field?: string;
|
|
47
|
+
type?: string;
|
|
48
|
+
op?: string;
|
|
49
|
+
value?: unknown;
|
|
50
|
+
}
|
|
51
|
+
export type SearchType = "conditions_and" | "conditions_or";
|
|
52
|
+
export type SearchView = "GRID_VIEW" | "LIST_VIEW" | "CALENDAR_VIEW" | "MAP_VIEW" | "AGENDA_VIEW" | "RESOURCE_VIEW";
|
|
53
|
+
export type SearchCalendarView = "day" | "week" | "month" | "work_week";
|
|
@@ -251,6 +251,7 @@ export interface Settings {
|
|
|
251
251
|
};
|
|
252
252
|
item?: {
|
|
253
253
|
maxHeight?: number;
|
|
254
|
+
titleLines?: number;
|
|
254
255
|
};
|
|
255
256
|
};
|
|
256
257
|
print?: {
|
|
@@ -277,6 +278,8 @@ export interface Settings {
|
|
|
277
278
|
};
|
|
278
279
|
flags?: {
|
|
279
280
|
utils?: boolean;
|
|
281
|
+
utilsAssetEditor?: boolean;
|
|
282
|
+
utilsAssetPanel?: boolean;
|
|
280
283
|
history?: boolean;
|
|
281
284
|
refs?: boolean;
|
|
282
285
|
access?: boolean;
|
|
@@ -305,6 +308,14 @@ export interface Settings {
|
|
|
305
308
|
};
|
|
306
309
|
};
|
|
307
310
|
suppressDeleteAlert?: boolean;
|
|
311
|
+
utilsAssetEditorPanel?: {
|
|
312
|
+
stateFilter?: number[];
|
|
313
|
+
textFilter?: string;
|
|
314
|
+
showEmpty?: boolean;
|
|
315
|
+
selectedRecord?: string;
|
|
316
|
+
subscribeSearchHits?: boolean;
|
|
317
|
+
parseRegex?: boolean;
|
|
318
|
+
};
|
|
308
319
|
}
|
|
309
320
|
export type SettingsPaths = Paths<Settings>;
|
|
310
321
|
interface ModuleTabs {
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -290,6 +290,37 @@ declare interface BundleRevisionsRecord {
|
|
|
290
290
|
[revisionId: string]: BundleRecord;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
declare type CalendarEventDomainFrequency = "days" | "weeks" | "months" | "years";
|
|
294
|
+
|
|
295
|
+
declare interface CalendarEventDomainRecord {
|
|
296
|
+
start?: string | null;
|
|
297
|
+
end?: string | null;
|
|
298
|
+
description?: string;
|
|
299
|
+
recurrence?: CalendarEventDomainRecurrenceRule | null;
|
|
300
|
+
color?: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare interface CalendarEventDomainRecords {
|
|
304
|
+
":calendarevent": CalendarEventDomainRecord;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
declare interface CalendarEventDomainRecurrenceRule {
|
|
308
|
+
/** "Repeat every {interval} {frequency}" */
|
|
309
|
+
interval?: number;
|
|
310
|
+
/** "Repeat every {interval} {frequency}" */
|
|
311
|
+
frequency?: CalendarEventDomainFrequency | null;
|
|
312
|
+
/**
|
|
313
|
+
* "Repeat on"
|
|
314
|
+
* 1 = Monday, 2 = Tuesday, ..., 7 = Sunday
|
|
315
|
+
* Used when frequency is 'weeks'
|
|
316
|
+
*/
|
|
317
|
+
byweekday?: number[] | null;
|
|
318
|
+
/** "Ends after" */
|
|
319
|
+
count?: null;
|
|
320
|
+
/** "Ends on date" */
|
|
321
|
+
until?: string | null;
|
|
322
|
+
}
|
|
323
|
+
|
|
293
324
|
declare type Cast<Value extends number | bigint> = Value extends number ? Value : `BigInt(${Value})`;
|
|
294
325
|
|
|
295
326
|
declare type Cast_2<Value extends number | bigint> = Value extends number ? Value : `BigInt(${Value})`;
|
|
@@ -365,6 +396,12 @@ declare interface CommentReadMarkDomainRecords {
|
|
|
365
396
|
":comment-read-mark": CommentReadMarkDomainRecord;
|
|
366
397
|
}
|
|
367
398
|
|
|
399
|
+
declare type ConditionDomainRecord = SearchCondition;
|
|
400
|
+
|
|
401
|
+
declare interface ConditionDomainRecords {
|
|
402
|
+
":condition": ConditionDomainRecord;
|
|
403
|
+
}
|
|
404
|
+
|
|
368
405
|
declare interface ConnectionBase {
|
|
369
406
|
type?: string | null;
|
|
370
407
|
userNotificationsEnabled?: boolean;
|
|
@@ -468,7 +505,7 @@ declare interface DesignViewRow<Id = string, Key = string, Value = void> {
|
|
|
468
505
|
value: Value;
|
|
469
506
|
}
|
|
470
507
|
|
|
471
|
-
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
508
|
+
declare interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
472
509
|
}
|
|
473
510
|
|
|
474
511
|
declare type Dynamic = false | string[];
|
|
@@ -994,6 +1031,18 @@ declare type GettablePossibleEmpty<Data> = keyof Data extends never ? EmptyObjec
|
|
|
994
1031
|
[K in keyof Data]+?: Data[K];
|
|
995
1032
|
};
|
|
996
1033
|
|
|
1034
|
+
declare interface HarvestDomainRecord {
|
|
1035
|
+
active?: boolean;
|
|
1036
|
+
tags?: string[];
|
|
1037
|
+
revisions?: boolean;
|
|
1038
|
+
concurrency?: number;
|
|
1039
|
+
throttle?: number;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
declare interface HarvestDomainRecords {
|
|
1043
|
+
":harvest": HarvestDomainRecord;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
997
1046
|
declare interface HeadingNodeContent extends ElementNodeContent {
|
|
998
1047
|
type: "heading";
|
|
999
1048
|
tag: "h1" | "h2" | "h3";
|
|
@@ -1132,6 +1181,29 @@ declare type If<Type extends boolean, IfBranch, ElseBranch> =
|
|
|
1132
1181
|
? IfBranch
|
|
1133
1182
|
: ElseBranch;
|
|
1134
1183
|
|
|
1184
|
+
declare interface IngestclipDomainRecord {
|
|
1185
|
+
time?: number;
|
|
1186
|
+
duration?: number;
|
|
1187
|
+
type?: string;
|
|
1188
|
+
record?: string;
|
|
1189
|
+
data?: boolean;
|
|
1190
|
+
gallery?: string;
|
|
1191
|
+
rundown?: string;
|
|
1192
|
+
segment?: string;
|
|
1193
|
+
story?: string;
|
|
1194
|
+
event?: string;
|
|
1195
|
+
title?: string;
|
|
1196
|
+
start?: number;
|
|
1197
|
+
end?: number;
|
|
1198
|
+
channel?: string;
|
|
1199
|
+
schedule?: string;
|
|
1200
|
+
parent?: string;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
declare interface IngestclipDomainRecords {
|
|
1204
|
+
":ingestclip": IngestclipDomainRecord;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1135
1207
|
/**
|
|
1136
1208
|
The actual implementation of `IsUnion`.
|
|
1137
1209
|
*/
|
|
@@ -1624,7 +1696,7 @@ declare interface NxtError {
|
|
|
1624
1696
|
errors?: NxtError[] | null;
|
|
1625
1697
|
}
|
|
1626
1698
|
|
|
1627
|
-
declare type Nxtpression<ReturnValue =
|
|
1699
|
+
declare type Nxtpression<ReturnValue = unknown, Context extends object = object> = {
|
|
1628
1700
|
/**
|
|
1629
1701
|
* TS-HACK: this property doesn't really exist on the nxtpression string,
|
|
1630
1702
|
* it is only here to make sure the generic Context won't get stripped.
|
|
@@ -1946,7 +2018,14 @@ declare interface PanelProperty {
|
|
|
1946
2018
|
};
|
|
1947
2019
|
/** If present, indicates that the user must specify a value for the asset to be treated as valid. */
|
|
1948
2020
|
required?: boolean;
|
|
1949
|
-
oneOf?:
|
|
2021
|
+
oneOf?: Array<{
|
|
2022
|
+
const?: unknown;
|
|
2023
|
+
title?: string;
|
|
2024
|
+
}>;
|
|
2025
|
+
anyOf?: Array<{
|
|
2026
|
+
const?: unknown;
|
|
2027
|
+
title?: string;
|
|
2028
|
+
}>;
|
|
1950
2029
|
}
|
|
1951
2030
|
|
|
1952
2031
|
declare interface ParagraphNodeContent extends ElementNodeContent {
|
|
@@ -2115,10 +2194,14 @@ declare interface PublishedDomainRecords {
|
|
|
2115
2194
|
|
|
2116
2195
|
declare interface PublishedRecord {
|
|
2117
2196
|
type: string;
|
|
2118
|
-
parent
|
|
2119
|
-
|
|
2197
|
+
parent?: string;
|
|
2198
|
+
/** Only write array, single string is deprecated */
|
|
2199
|
+
asset?: string[] | string;
|
|
2200
|
+
/** @deprecated - do not write */
|
|
2201
|
+
assets?: string[];
|
|
2120
2202
|
time: number;
|
|
2121
|
-
connection
|
|
2203
|
+
connection?: string;
|
|
2204
|
+
gallery?: string;
|
|
2122
2205
|
user?: string;
|
|
2123
2206
|
error?: boolean;
|
|
2124
2207
|
}
|
|
@@ -2486,32 +2569,66 @@ declare interface ScriptTextRecord {
|
|
|
2486
2569
|
graphics: string;
|
|
2487
2570
|
}
|
|
2488
2571
|
|
|
2572
|
+
declare type SearchCalendarView = "day" | "week" | "month" | "work_week";
|
|
2573
|
+
|
|
2574
|
+
declare interface SearchCondition {
|
|
2575
|
+
field?: string;
|
|
2576
|
+
type?: string;
|
|
2577
|
+
op?: string;
|
|
2578
|
+
value?: unknown;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
/** legacy */
|
|
2582
|
+
declare interface SearchDomainConditionsRecord {
|
|
2583
|
+
value?: string[];
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2489
2586
|
declare interface SearchDomainRecords {
|
|
2490
2587
|
":search": SearchRecord;
|
|
2491
2588
|
":search?": SearchRecordProvided;
|
|
2589
|
+
/** legacy */
|
|
2590
|
+
":search.conditions": SearchDomainConditionsRecord;
|
|
2591
|
+
/** legacy */
|
|
2592
|
+
":search.visibleColumnKeys": SearchDomainVisibleColumnKeysRecord;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
/** legacy */
|
|
2596
|
+
declare interface SearchDomainVisibleColumnKeysRecord {
|
|
2597
|
+
value?: string[];
|
|
2492
2598
|
}
|
|
2493
2599
|
|
|
2494
2600
|
declare interface SearchRecord {
|
|
2495
|
-
type?:
|
|
2601
|
+
type?: SearchType;
|
|
2496
2602
|
sort?: Array<{
|
|
2497
2603
|
[key: string]: "asc" | "desc";
|
|
2498
2604
|
}>;
|
|
2499
2605
|
showDefault?: boolean;
|
|
2500
2606
|
showDeleted?: boolean;
|
|
2501
2607
|
showHidden?: boolean;
|
|
2502
|
-
view?:
|
|
2503
|
-
conditions?:
|
|
2608
|
+
view?: SearchView | null;
|
|
2609
|
+
conditions?: SearchCondition[];
|
|
2504
2610
|
visibleColumnKeys?: null | string[];
|
|
2505
2611
|
connectionId?: string | null;
|
|
2612
|
+
calendar?: {
|
|
2613
|
+
view?: SearchCalendarView | null;
|
|
2614
|
+
dateAccessor?: string | null;
|
|
2615
|
+
agenda?: boolean;
|
|
2616
|
+
};
|
|
2617
|
+
refreshInterval?: number;
|
|
2618
|
+
color?: string;
|
|
2506
2619
|
}
|
|
2507
2620
|
|
|
2508
2621
|
declare interface SearchRecordProvided {
|
|
2509
|
-
hits
|
|
2622
|
+
hits?: string[];
|
|
2510
2623
|
total?: number;
|
|
2511
2624
|
relation?: string;
|
|
2512
2625
|
error?: string;
|
|
2513
2626
|
}
|
|
2514
2627
|
|
|
2628
|
+
declare type SearchType = "conditions_and" | "conditions_or";
|
|
2629
|
+
|
|
2630
|
+
declare type SearchView = "GRID_VIEW" | "LIST_VIEW" | "CALENDAR_VIEW" | "MAP_VIEW" | "AGENDA_VIEW" | "RESOURCE_VIEW";
|
|
2631
|
+
|
|
2515
2632
|
declare type Serialize<T extends string, Output extends string = ""> = string extends T ? never : T extends "" ? Output : T extends `${infer P}${infer R}` ? Serialize<R, `${Output}${P extends keyof Escaper ? Escaper[P] : P}`> : never;
|
|
2516
2633
|
|
|
2517
2634
|
declare interface SerializedAutoLinkNode {
|
|
@@ -2848,6 +2965,7 @@ declare interface Settings {
|
|
|
2848
2965
|
};
|
|
2849
2966
|
item?: {
|
|
2850
2967
|
maxHeight?: number;
|
|
2968
|
+
titleLines?: number;
|
|
2851
2969
|
};
|
|
2852
2970
|
};
|
|
2853
2971
|
print?: {
|
|
@@ -2874,6 +2992,8 @@ declare interface Settings {
|
|
|
2874
2992
|
};
|
|
2875
2993
|
flags?: {
|
|
2876
2994
|
utils?: boolean;
|
|
2995
|
+
utilsAssetEditor?: boolean;
|
|
2996
|
+
utilsAssetPanel?: boolean;
|
|
2877
2997
|
history?: boolean;
|
|
2878
2998
|
refs?: boolean;
|
|
2879
2999
|
access?: boolean;
|
|
@@ -2902,6 +3022,14 @@ declare interface Settings {
|
|
|
2902
3022
|
};
|
|
2903
3023
|
};
|
|
2904
3024
|
suppressDeleteAlert?: boolean;
|
|
3025
|
+
utilsAssetEditorPanel?: {
|
|
3026
|
+
stateFilter?: number[];
|
|
3027
|
+
textFilter?: string;
|
|
3028
|
+
showEmpty?: boolean;
|
|
3029
|
+
selectedRecord?: string;
|
|
3030
|
+
subscribeSearchHits?: boolean;
|
|
3031
|
+
parseRegex?: boolean;
|
|
3032
|
+
};
|
|
2905
3033
|
}
|
|
2906
3034
|
|
|
2907
3035
|
declare interface SettingsDomainRecords {
|
|
@@ -2914,6 +3042,45 @@ declare interface SettingsPanelStoreTab extends ModuleTabsSettingsValue {
|
|
|
2914
3042
|
|
|
2915
3043
|
declare type SettingsRecord = Settings;
|
|
2916
3044
|
|
|
3045
|
+
declare interface ShotboxDomainRecord {
|
|
3046
|
+
pages?: ShotboxPage[];
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
declare interface ShotboxDomainRecords {
|
|
3050
|
+
":shotbox": ShotboxDomainRecord;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
declare interface ShotboxEventGroup {
|
|
3054
|
+
id?: string;
|
|
3055
|
+
title?: string;
|
|
3056
|
+
sticky?: boolean;
|
|
3057
|
+
type?: "trigger" | "toggle";
|
|
3058
|
+
width?: string;
|
|
3059
|
+
include?: string[];
|
|
3060
|
+
exclude?: string[];
|
|
3061
|
+
states?: {
|
|
3062
|
+
completed: boolean;
|
|
3063
|
+
};
|
|
3064
|
+
flow?: "column" | "row";
|
|
3065
|
+
minRows?: number;
|
|
3066
|
+
maxRows?: number;
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
declare type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|
|
3070
|
+
|
|
3071
|
+
declare interface ShotboxPage {
|
|
3072
|
+
stickyTopRow?: boolean;
|
|
3073
|
+
inferGroups?: boolean;
|
|
3074
|
+
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
declare interface ShotboxStreamGroup {
|
|
3078
|
+
type: "stream";
|
|
3079
|
+
title?: string;
|
|
3080
|
+
width?: string;
|
|
3081
|
+
source?: string;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
2917
3084
|
/**
|
|
2918
3085
|
Create a type that only accepts an object with a single key.
|
|
2919
3086
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface CalendarEventDomainRecords {
|
|
2
|
+
":calendarevent": CalendarEventDomainRecord;
|
|
3
|
+
}
|
|
4
|
+
export interface CalendarEventDomainRecord {
|
|
5
|
+
start?: string | null;
|
|
6
|
+
end?: string | null;
|
|
7
|
+
description?: string;
|
|
8
|
+
recurrence?: CalendarEventDomainRecurrenceRule | null;
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CalendarEventDomainRecurrenceRule {
|
|
12
|
+
/** "Repeat every {interval} {frequency}" */
|
|
13
|
+
interval?: number;
|
|
14
|
+
/** "Repeat every {interval} {frequency}" */
|
|
15
|
+
frequency?: CalendarEventDomainFrequency | null;
|
|
16
|
+
/**
|
|
17
|
+
* "Repeat on"
|
|
18
|
+
* 1 = Monday, 2 = Tuesday, ..., 7 = Sunday
|
|
19
|
+
* Used when frequency is 'weeks'
|
|
20
|
+
*/
|
|
21
|
+
byweekday?: number[] | null;
|
|
22
|
+
/** "Ends after" */
|
|
23
|
+
count?: null;
|
|
24
|
+
/** "Ends on date" */
|
|
25
|
+
until?: string | null;
|
|
26
|
+
}
|
|
27
|
+
export type CalendarEventDomainFrequency = "days" | "weeks" | "months" | "years";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { AssetDomainRecords } from './asset.ts';
|
|
2
2
|
import type { AuthDomainRecords } from './auth.ts';
|
|
3
3
|
import type { BundleDomainRecords } from './bundle.ts';
|
|
4
|
+
import type { CalendarEventDomainRecords } from './calendarevent.ts';
|
|
4
5
|
import type { CloneDomainRecords } from './clone.ts';
|
|
5
6
|
import type { CommentReactionDomainRecords } from './comment-reaction.ts';
|
|
6
7
|
import type { CommentReadMarkDomainRecords } from './comment-read-mark.ts';
|
|
7
8
|
import type { CommentDomainRecords } from './comment.ts';
|
|
9
|
+
import type { ConditionDomainRecords } from './condition.ts';
|
|
8
10
|
import type { ConnectionDomainRecords } from './connection/index.ts';
|
|
9
11
|
import type { ContactDomainRecords } from './contact.ts';
|
|
10
12
|
import type { DeepstreamDomainRecords } from './deepstream.ts';
|
|
@@ -13,6 +15,8 @@ import type { EditDomainRecords } from './edit.ts';
|
|
|
13
15
|
import type { EventDomainRecords } from './event.ts';
|
|
14
16
|
import type { FileDomainRecords } from './file.ts';
|
|
15
17
|
import type { GeneralDomainRecords } from './general.ts';
|
|
18
|
+
import type { HarvestDomainRecords } from './harvest.ts';
|
|
19
|
+
import type { IngestclipDomainRecords } from './ingestclip.ts';
|
|
16
20
|
import type { MediaDomainRecords } from './media.ts';
|
|
17
21
|
import type { MonitorDomainRecords } from './monitor.ts';
|
|
18
22
|
import type { PanelDomainRecords } from './panel.ts';
|
|
@@ -30,6 +34,7 @@ import type { RoleDomainRecords } from './role.ts';
|
|
|
30
34
|
import type { ScriptDomainRecords } from './script.ts';
|
|
31
35
|
import type { SearchDomainRecords } from './search.ts';
|
|
32
36
|
import type { SettingsDomainRecords } from './settings.ts';
|
|
37
|
+
import type { ShotboxDomainRecords } from './shotbox.ts';
|
|
33
38
|
import type { StoryboardDomainRecords } from './storyboard.ts';
|
|
34
39
|
import type { SubtitleStyleDomainRecords } from './subtitle-style.ts';
|
|
35
40
|
import type { SubtitleDomainRecords } from './subtitle.ts';
|
|
@@ -41,10 +46,12 @@ import type { UsernameDomainRecords } from './username.ts';
|
|
|
41
46
|
export * from './asset.ts';
|
|
42
47
|
export * from './auth.ts';
|
|
43
48
|
export * from './bundle.ts';
|
|
49
|
+
export * from './calendarevent.ts';
|
|
44
50
|
export * from './clone.ts';
|
|
45
51
|
export * from './comment-reaction.ts';
|
|
46
52
|
export * from './comment-read-mark.ts';
|
|
47
53
|
export * from './comment.ts';
|
|
54
|
+
export * from './condition.ts';
|
|
48
55
|
export * from './connection/index.ts';
|
|
49
56
|
export * from './contact.ts';
|
|
50
57
|
export * from './deepstream.ts';
|
|
@@ -53,6 +60,8 @@ export * from './edit.ts';
|
|
|
53
60
|
export * from './event.ts';
|
|
54
61
|
export * from './file.ts';
|
|
55
62
|
export * from './general.ts';
|
|
63
|
+
export * from './harvest.ts';
|
|
64
|
+
export * from './ingestclip.ts';
|
|
56
65
|
export * from './media.ts';
|
|
57
66
|
export * from './monitor.ts';
|
|
58
67
|
export * from './panel.ts';
|
|
@@ -70,6 +79,7 @@ export * from './role.ts';
|
|
|
70
79
|
export * from './script.ts';
|
|
71
80
|
export * from './search.ts';
|
|
72
81
|
export * from './settings.ts';
|
|
82
|
+
export * from './shotbox.ts';
|
|
73
83
|
export * from './storyboard.ts';
|
|
74
84
|
export * from './subtitle-style.ts';
|
|
75
85
|
export * from './subtitle.ts';
|
|
@@ -78,5 +88,5 @@ export * from './user-notification-status.ts';
|
|
|
78
88
|
export * from './user-notification.ts';
|
|
79
89
|
export * from './user.ts';
|
|
80
90
|
export * from './username.ts';
|
|
81
|
-
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
91
|
+
export interface DomainRecords extends AssetDomainRecords, AuthDomainRecords, BundleDomainRecords, CalendarEventDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConditionDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, HarvestDomainRecords, IngestclipDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, ShotboxDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords, UsernameDomainRecords {
|
|
82
92
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./asset.js";
|
|
2
2
|
export * from "./auth.js";
|
|
3
3
|
export * from "./bundle.js";
|
|
4
|
+
export * from "./calendarevent.js";
|
|
4
5
|
export * from "./clone.js";
|
|
5
6
|
export * from "./comment-reaction.js";
|
|
6
7
|
export * from "./comment-read-mark.js";
|
|
7
8
|
export * from "./comment.js";
|
|
9
|
+
export * from "./condition.js";
|
|
8
10
|
export * from "./connection/index.js";
|
|
9
11
|
export * from "./contact.js";
|
|
10
12
|
export * from "./deepstream.js";
|
|
@@ -13,6 +15,8 @@ export * from "./edit.js";
|
|
|
13
15
|
export * from "./event.js";
|
|
14
16
|
export * from "./file.js";
|
|
15
17
|
export * from "./general.js";
|
|
18
|
+
export * from "./harvest.js";
|
|
19
|
+
export * from "./ingestclip.js";
|
|
16
20
|
export * from "./media.js";
|
|
17
21
|
export * from "./monitor.js";
|
|
18
22
|
export * from "./panel.js";
|
|
@@ -30,6 +34,7 @@ export * from "./role.js";
|
|
|
30
34
|
export * from "./script.js";
|
|
31
35
|
export * from "./search.js";
|
|
32
36
|
export * from "./settings.js";
|
|
37
|
+
export * from "./shotbox.js";
|
|
33
38
|
export * from "./storyboard.js";
|
|
34
39
|
export * from "./subtitle-style.js";
|
|
35
40
|
export * from "./subtitle.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IngestclipDomainRecords {
|
|
2
|
+
":ingestclip": IngestclipDomainRecord;
|
|
3
|
+
}
|
|
4
|
+
export interface IngestclipDomainRecord {
|
|
5
|
+
time?: number;
|
|
6
|
+
duration?: number;
|
|
7
|
+
type?: string;
|
|
8
|
+
record?: string;
|
|
9
|
+
data?: boolean;
|
|
10
|
+
gallery?: string;
|
|
11
|
+
rundown?: string;
|
|
12
|
+
segment?: string;
|
|
13
|
+
story?: string;
|
|
14
|
+
event?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
start?: number;
|
|
17
|
+
end?: number;
|
|
18
|
+
channel?: string;
|
|
19
|
+
schedule?: string;
|
|
20
|
+
parent?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -35,7 +35,14 @@ export interface PanelProperty {
|
|
|
35
35
|
};
|
|
36
36
|
/** If present, indicates that the user must specify a value for the asset to be treated as valid. */
|
|
37
37
|
required?: boolean;
|
|
38
|
-
oneOf?:
|
|
38
|
+
oneOf?: Array<{
|
|
39
|
+
const?: unknown;
|
|
40
|
+
title?: string;
|
|
41
|
+
}>;
|
|
42
|
+
anyOf?: Array<{
|
|
43
|
+
const?: unknown;
|
|
44
|
+
title?: string;
|
|
45
|
+
}>;
|
|
39
46
|
}
|
|
40
47
|
export type PanelLayout = string | PanelLayoutDivider | PanelLayoutItem | PanelLayout[];
|
|
41
48
|
export interface PanelLayoutItem {
|
|
@@ -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 {};
|