@sofie-automation/blueprints-integration 1.50.5 → 1.51.0-in-testing.0

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.
Files changed (108) hide show
  1. package/CHANGELOG.md +86 -77
  2. package/dist/abPlayback.d.ts +3 -3
  3. package/dist/abPlayback.d.ts.map +1 -1
  4. package/dist/action.d.ts +14 -17
  5. package/dist/action.d.ts.map +1 -1
  6. package/dist/action.js +0 -10
  7. package/dist/action.js.map +1 -1
  8. package/dist/api/showStyle.d.ts +29 -7
  9. package/dist/api/showStyle.d.ts.map +1 -1
  10. package/dist/api/studio.d.ts +9 -3
  11. package/dist/api/studio.d.ts.map +1 -1
  12. package/dist/content.d.ts +3 -2
  13. package/dist/content.d.ts.map +1 -1
  14. package/dist/content.js.map +1 -1
  15. package/dist/context/adlibActionContext.d.ts +30 -0
  16. package/dist/context/adlibActionContext.d.ts.map +1 -0
  17. package/dist/context/adlibActionContext.js +3 -0
  18. package/dist/context/adlibActionContext.js.map +1 -0
  19. package/dist/context/baseContext.d.ts +39 -0
  20. package/dist/context/baseContext.d.ts.map +1 -0
  21. package/dist/{context.js → context/baseContext.js} +1 -1
  22. package/dist/context/baseContext.js.map +1 -0
  23. package/dist/context/eventContext.d.ts +60 -0
  24. package/dist/context/eventContext.d.ts.map +1 -0
  25. package/dist/context/eventContext.js +3 -0
  26. package/dist/context/eventContext.js.map +1 -0
  27. package/dist/context/executeTsrActionContext.d.ts +9 -0
  28. package/dist/context/executeTsrActionContext.d.ts.map +1 -0
  29. package/dist/context/executeTsrActionContext.js +3 -0
  30. package/dist/context/executeTsrActionContext.js.map +1 -0
  31. package/dist/context/fixUpConfigContext.d.ts +55 -0
  32. package/dist/context/fixUpConfigContext.d.ts.map +1 -0
  33. package/dist/context/fixUpConfigContext.js +3 -0
  34. package/dist/context/fixUpConfigContext.js.map +1 -0
  35. package/dist/context/index.d.ts +12 -0
  36. package/dist/context/index.d.ts.map +1 -0
  37. package/dist/context/index.js +15 -0
  38. package/dist/context/index.js.map +1 -0
  39. package/dist/context/onSetAsNextContext.d.ts +46 -0
  40. package/dist/context/onSetAsNextContext.d.ts.map +1 -0
  41. package/dist/context/onSetAsNextContext.js +3 -0
  42. package/dist/context/onSetAsNextContext.js.map +1 -0
  43. package/dist/context/onTakeContext.d.ts +17 -0
  44. package/dist/context/onTakeContext.d.ts.map +1 -0
  45. package/dist/context/onTakeContext.js +3 -0
  46. package/dist/context/onTakeContext.js.map +1 -0
  47. package/dist/context/packageInfoContext.d.ts +12 -0
  48. package/dist/context/packageInfoContext.d.ts.map +1 -0
  49. package/dist/context/packageInfoContext.js +3 -0
  50. package/dist/context/packageInfoContext.js.map +1 -0
  51. package/dist/context/partsAndPieceActionContext.d.ts +48 -0
  52. package/dist/context/partsAndPieceActionContext.d.ts.map +1 -0
  53. package/dist/context/partsAndPieceActionContext.js +3 -0
  54. package/dist/context/partsAndPieceActionContext.js.map +1 -0
  55. package/dist/context/rundownContext.d.ts +29 -0
  56. package/dist/context/rundownContext.d.ts.map +1 -0
  57. package/dist/context/rundownContext.js +3 -0
  58. package/dist/context/rundownContext.js.map +1 -0
  59. package/dist/context/showStyleContext.d.ts +26 -0
  60. package/dist/context/showStyleContext.d.ts.map +1 -0
  61. package/dist/context/showStyleContext.js +3 -0
  62. package/dist/context/showStyleContext.js.map +1 -0
  63. package/dist/context/studioContext.d.ts +18 -0
  64. package/dist/context/studioContext.d.ts.map +1 -0
  65. package/dist/context/studioContext.js +3 -0
  66. package/dist/context/studioContext.js.map +1 -0
  67. package/dist/context/syncIngestChangesContext.d.ts +17 -0
  68. package/dist/context/syncIngestChangesContext.d.ts.map +1 -0
  69. package/dist/context/syncIngestChangesContext.js +3 -0
  70. package/dist/context/syncIngestChangesContext.js.map +1 -0
  71. package/dist/documents/adlibPiece.d.ts +2 -2
  72. package/dist/documents/adlibPiece.d.ts.map +1 -1
  73. package/dist/documents/expectedPlayoutItem.d.ts +1 -11
  74. package/dist/documents/expectedPlayoutItem.d.ts.map +1 -1
  75. package/dist/documents/expectedPlayoutItem.js +2 -0
  76. package/dist/documents/expectedPlayoutItem.js.map +1 -1
  77. package/dist/documents/part.d.ts +7 -5
  78. package/dist/documents/part.d.ts.map +1 -1
  79. package/dist/documents/partInstance.d.ts +2 -2
  80. package/dist/documents/partInstance.d.ts.map +1 -1
  81. package/dist/documents/piece.d.ts +2 -7
  82. package/dist/documents/piece.d.ts.map +1 -1
  83. package/dist/documents/pieceGeneric.d.ts +6 -22
  84. package/dist/documents/pieceGeneric.d.ts.map +1 -1
  85. package/dist/documents/pieceGeneric.js.map +1 -1
  86. package/dist/documents/pieceInstance.d.ts +9 -3
  87. package/dist/documents/pieceInstance.d.ts.map +1 -1
  88. package/dist/documents/rundown.d.ts +11 -7
  89. package/dist/documents/rundown.d.ts.map +1 -1
  90. package/dist/documents/rundownPlaylist.d.ts +4 -2
  91. package/dist/documents/rundownPlaylist.d.ts.map +1 -1
  92. package/dist/documents/segment.d.ts +6 -4
  93. package/dist/documents/segment.d.ts.map +1 -1
  94. package/dist/index.d.ts +0 -1
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.js +0 -1
  97. package/dist/index.js.map +1 -1
  98. package/dist/triggers.d.ts +5 -1
  99. package/dist/triggers.d.ts.map +1 -1
  100. package/dist/triggers.js.map +1 -1
  101. package/package.json +8 -8
  102. package/dist/config.d.ts +0 -43
  103. package/dist/config.d.ts.map +0 -1
  104. package/dist/config.js +0 -13
  105. package/dist/config.js.map +0 -1
  106. package/dist/context.d.ts +0 -254
  107. package/dist/context.d.ts.map +0 -1
  108. package/dist/context.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,141 +3,157 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [1.50.5](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.4-LSG-updates...v1.50.5) (2024-08-08)
6
+ # [1.51.0-in-testing.0](https://github.com/nrkno/sofie-core/compare/v1.50.4...v1.51.0-in-testing.0) (2024-08-19)
7
7
 
8
- **Note:** Version bump only for package @sofie-automation/blueprints-integration
8
+ ## [1.50.5-LSG-updates](https://github.com/nrkno/sofie-core/compare/v1.50.4-LSG-updates...v1.50.5-LSG-updates) (2024-08-08)
9
9
 
10
+ ## [1.50.4-LSG-updates](https://github.com/nrkno/sofie-core/compare/v1.50.3-LSG-updates...v1.50.4-LSG-updates) (2024-07-30)
10
11
 
12
+ ### Bug Fixes
11
13
 
14
+ - Add missing metadata types ([71eb739](https://github.com/nrkno/sofie-core/commit/71eb739bc87f64db50f06ab4647cb6972e58c7fa))
15
+ - Add missing piece metadata types ([#1133](https://github.com/nrkno/sofie-core/issues/1133)) ([70c5739](https://github.com/nrkno/sofie-core/commit/70c5739c5e9848e57c21bde78ee16d4c78da8e1a))
16
+ - blueprint-integration missed typing in [#1077](https://github.com/nrkno/sofie-core/issues/1077) ([bd5e36f](https://github.com/nrkno/sofie-core/commit/bd5e36f9c0b390999ef465a5e1554b8faa2c456f))
12
17
 
18
+ ### Features
13
19
 
14
- ## [1.50.4](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.3-LSG-updates...v1.50.4) (2024-07-30)
20
+ - A/B player Ids as strings ([#1054](https://github.com/nrkno/sofie-core/issues/1054)) ([d9dee47](https://github.com/nrkno/sofie-core/commit/d9dee473068c4d96d15a6ef799ace830cf1fe1c0))
21
+ - action triggers styleClassNames SOFIE-3138 ([#1192](https://github.com/nrkno/sofie-core/issues/1192)) ([fa306dc](https://github.com/nrkno/sofie-core/commit/fa306dc16d5f6ee31418e282180d4c704f5d9feb))
22
+ - action triggers styleClassNames SOFIE-3138 ([#1192](https://github.com/nrkno/sofie-core/issues/1192)) ([49274d6](https://github.com/nrkno/sofie-core/commit/49274d64bdc0532f294be34b0a4413d848321e40))
23
+ - add onTake and onSetAsNext blueprint callbacks SOFIE-2897 SOFIE-2808 ([#1117](https://github.com/nrkno/sofie-core/issues/1117)) ([0bd621c](https://github.com/nrkno/sofie-core/commit/0bd621c13b08cb20c923ea573baca9db003c7df1))
24
+ - blueprint config fixup step SOFIE-2258 ([#1050](https://github.com/nrkno/sofie-core/issues/1050)) ([ea6c343](https://github.com/nrkno/sofie-core/commit/ea6c3435079172c682dd1e23d7813ae33fcdee78))
25
+ - cleanup deprecations ([#996](https://github.com/nrkno/sofie-core/issues/996)) ([f04f18f](https://github.com/nrkno/sofie-core/commit/f04f18f8e94b706dd1a3da1525feb9787f6eb85f))
26
+ - create adlib testing rundowns SOFIE-2963 ([#1211](https://github.com/nrkno/sofie-core/issues/1211)) ([a831989](https://github.com/nrkno/sofie-core/commit/a8319898c73d7233a2a665fd0bf5b9d6da83d713))
27
+ - **Device Triggers:** add support for setting shift register operations ([aa19fcc](https://github.com/nrkno/sofie-core/commit/aa19fcc3b5bfad05158677701b838673578a4dcb))
28
+ - **Device Triggers:** add support for setting shift register operations SOFIE-3136 ([c5a6292](https://github.com/nrkno/sofie-core/commit/c5a6292a85821d67653eebef75bbd929ff0cd44d))
29
+ - **EAV-31:** add blueprintsData on adlib actions ([114c064](https://github.com/nrkno/sofie-core/commit/114c06466ff1f35660454b66d1e35b3d339b9a80))
30
+ - Editable fields as JSON ([ddfb66a](https://github.com/nrkno/sofie-core/commit/ddfb66a1ef8afbd507535037d12752742c7dfeda))
31
+ - implement `loop` content property for Graphics ([2cf38ba](https://github.com/nrkno/sofie-core/commit/2cf38baadd5e7ba16d624b9ad75cfff9d48297a6))
32
+ - introduce `privateData` and `publicData` ([d94f1aa](https://github.com/nrkno/sofie-core/commit/d94f1aa82cec779c7eebddae42e1c4fab91ac494))
33
+ - remove supertimeline from Parts and Pieces resolving SOFIE-2373 ([#983](https://github.com/nrkno/sofie-core/issues/983)) ([55e02cb](https://github.com/nrkno/sofie-core/commit/55e02cb1a0b6d237ae9bcd02ebf54e06cf08fb26))
34
+ - rename internal 'scratchpad' naming to 'adlib testing' SOFIE-3015 ([afb2f43](https://github.com/nrkno/sofie-core/commit/afb2f43c8f199ff5da4ea6c3ccc3bd1e97a80f4f))
35
+ - rundown scratchpad SOFIE-2432 ([5e16632](https://github.com/nrkno/sofie-core/commit/5e16632908b8dd62e4470a9ba6089a56aa571b9f))
36
+ - support packageinfo update flow for buckets and studio baseline SOFIE-2655 ([#1051](https://github.com/nrkno/sofie-core/issues/1051)) ([df7ed0c](https://github.com/nrkno/sofie-core/commit/df7ed0c653b897774f01a33c9e60a5e22fac99e4))
37
+ - typed publications in gateways/peripheraldevices SOFIE-1183 ([#1056](https://github.com/nrkno/sofie-core/issues/1056)) ([0c3c1bf](https://github.com/nrkno/sofie-core/commit/0c3c1bfd2bb779034976dc34e49aa6e664ea874b))
38
+ - update meteor to 2.12 SOFIE-2368 ([#931](https://github.com/nrkno/sofie-core/issues/931)) ([d7dfb71](https://github.com/nrkno/sofie-core/commit/d7dfb71d19405267cab5e2abc39794a80acb30b1))
15
39
 
16
- **Note:** Version bump only for package @sofie-automation/blueprints-integration
40
+ # [1.51.0-in-testing.0](https://github.com/nrkno/sofie-core/compare/v1.50.4...v1.51.0-in-testing.0) (2024-08-19)
17
41
 
42
+ ## [1.50.5-LSG-updates](https://github.com/nrkno/sofie-core/compare/v1.50.4-LSG-updates...v1.50.5-LSG-updates) (2024-08-08)
18
43
 
44
+ ## [1.50.4-LSG-updates](https://github.com/nrkno/sofie-core/compare/v1.50.3-LSG-updates...v1.50.4-LSG-updates) (2024-07-30)
19
45
 
46
+ ### Bug Fixes
20
47
 
48
+ - Add missing metadata types ([71eb739](https://github.com/nrkno/sofie-core/commit/71eb739bc87f64db50f06ab4647cb6972e58c7fa))
49
+ - Add missing piece metadata types ([#1133](https://github.com/nrkno/sofie-core/issues/1133)) ([70c5739](https://github.com/nrkno/sofie-core/commit/70c5739c5e9848e57c21bde78ee16d4c78da8e1a))
50
+ - blueprint-integration missed typing in [#1077](https://github.com/nrkno/sofie-core/issues/1077) ([bd5e36f](https://github.com/nrkno/sofie-core/commit/bd5e36f9c0b390999ef465a5e1554b8faa2c456f))
21
51
 
22
- ## [1.50.3](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.2...v1.50.3) (2024-06-24)
52
+ ### Features
23
53
 
24
- **Note:** Version bump only for package @sofie-automation/blueprints-integration
54
+ - A/B player Ids as strings ([#1054](https://github.com/nrkno/sofie-core/issues/1054)) ([d9dee47](https://github.com/nrkno/sofie-core/commit/d9dee473068c4d96d15a6ef799ace830cf1fe1c0))
55
+ - action triggers styleClassNames SOFIE-3138 ([#1192](https://github.com/nrkno/sofie-core/issues/1192)) ([fa306dc](https://github.com/nrkno/sofie-core/commit/fa306dc16d5f6ee31418e282180d4c704f5d9feb))
56
+ - action triggers styleClassNames SOFIE-3138 ([#1192](https://github.com/nrkno/sofie-core/issues/1192)) ([49274d6](https://github.com/nrkno/sofie-core/commit/49274d64bdc0532f294be34b0a4413d848321e40))
57
+ - add onTake and onSetAsNext blueprint callbacks SOFIE-2897 SOFIE-2808 ([#1117](https://github.com/nrkno/sofie-core/issues/1117)) ([0bd621c](https://github.com/nrkno/sofie-core/commit/0bd621c13b08cb20c923ea573baca9db003c7df1))
58
+ - blueprint config fixup step SOFIE-2258 ([#1050](https://github.com/nrkno/sofie-core/issues/1050)) ([ea6c343](https://github.com/nrkno/sofie-core/commit/ea6c3435079172c682dd1e23d7813ae33fcdee78))
59
+ - cleanup deprecations ([#996](https://github.com/nrkno/sofie-core/issues/996)) ([f04f18f](https://github.com/nrkno/sofie-core/commit/f04f18f8e94b706dd1a3da1525feb9787f6eb85f))
60
+ - create adlib testing rundowns SOFIE-2963 ([#1211](https://github.com/nrkno/sofie-core/issues/1211)) ([a831989](https://github.com/nrkno/sofie-core/commit/a8319898c73d7233a2a665fd0bf5b9d6da83d713))
61
+ - **Device Triggers:** add support for setting shift register operations ([aa19fcc](https://github.com/nrkno/sofie-core/commit/aa19fcc3b5bfad05158677701b838673578a4dcb))
62
+ - **Device Triggers:** add support for setting shift register operations SOFIE-3136 ([c5a6292](https://github.com/nrkno/sofie-core/commit/c5a6292a85821d67653eebef75bbd929ff0cd44d))
63
+ - **EAV-31:** add blueprintsData on adlib actions ([114c064](https://github.com/nrkno/sofie-core/commit/114c06466ff1f35660454b66d1e35b3d339b9a80))
64
+ - Editable fields as JSON ([ddfb66a](https://github.com/nrkno/sofie-core/commit/ddfb66a1ef8afbd507535037d12752742c7dfeda))
65
+ - implement `loop` content property for Graphics ([2cf38ba](https://github.com/nrkno/sofie-core/commit/2cf38baadd5e7ba16d624b9ad75cfff9d48297a6))
66
+ - introduce `privateData` and `publicData` ([d94f1aa](https://github.com/nrkno/sofie-core/commit/d94f1aa82cec779c7eebddae42e1c4fab91ac494))
67
+ - remove supertimeline from Parts and Pieces resolving SOFIE-2373 ([#983](https://github.com/nrkno/sofie-core/issues/983)) ([55e02cb](https://github.com/nrkno/sofie-core/commit/55e02cb1a0b6d237ae9bcd02ebf54e06cf08fb26))
68
+ - rename internal 'scratchpad' naming to 'adlib testing' SOFIE-3015 ([afb2f43](https://github.com/nrkno/sofie-core/commit/afb2f43c8f199ff5da4ea6c3ccc3bd1e97a80f4f))
69
+ - rundown scratchpad SOFIE-2432 ([5e16632](https://github.com/nrkno/sofie-core/commit/5e16632908b8dd62e4470a9ba6089a56aa571b9f))
70
+ - support packageinfo update flow for buckets and studio baseline SOFIE-2655 ([#1051](https://github.com/nrkno/sofie-core/issues/1051)) ([df7ed0c](https://github.com/nrkno/sofie-core/commit/df7ed0c653b897774f01a33c9e60a5e22fac99e4))
71
+ - typed publications in gateways/peripheraldevices SOFIE-1183 ([#1056](https://github.com/nrkno/sofie-core/issues/1056)) ([0c3c1bf](https://github.com/nrkno/sofie-core/commit/0c3c1bfd2bb779034976dc34e49aa6e664ea874b))
72
+ - update meteor to 2.12 SOFIE-2368 ([#931](https://github.com/nrkno/sofie-core/issues/931)) ([d7dfb71](https://github.com/nrkno/sofie-core/commit/d7dfb71d19405267cab5e2abc39794a80acb30b1))
25
73
 
74
+ ## [1.50.5](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.4-LSG-updates...v1.50.5) (2024-08-08)
26
75
 
76
+ **Note:** Version bump only for package @sofie-automation/blueprints-integration
27
77
 
78
+ ## [1.50.4](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.3-LSG-updates...v1.50.4) (2024-07-30)
28
79
 
80
+ **Note:** Version bump only for package @sofie-automation/blueprints-integration
29
81
 
30
- ## [1.50.2](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.6...v1.50.2) (2024-05-15)
82
+ ## [1.50.3](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.2...v1.50.3) (2024-06-24)
31
83
 
84
+ **Note:** Version bump only for package @sofie-automation/blueprints-integration
32
85
 
86
+ ## [1.50.2](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.6...v1.50.2) (2024-05-15)
33
87
 
34
88
  ## [1.50.1](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.5-0...v1.50.1) (2024-03-11)
35
89
 
36
-
37
-
38
90
  ## [1.50.1-0](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0...v1.50.1-0) (2024-03-05)
39
91
 
40
-
41
-
42
92
  # [1.50.0](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.4...v1.50.0) (2024-02-23)
43
93
 
44
-
45
94
  ### Features
46
95
 
47
- * allow blueprints to specify a custom resolution for NORA hover preview SOFIE-2840 ([#1123](https://github.com/nrkno/tv-automation-server-core/issues/1123)) ([d2f3cef](https://github.com/nrkno/tv-automation-server-core/commit/d2f3cef03259f594feba8814046614d1ed16cf62))
48
-
49
-
96
+ - allow blueprints to specify a custom resolution for NORA hover preview SOFIE-2840 ([#1123](https://github.com/nrkno/tv-automation-server-core/issues/1123)) ([d2f3cef](https://github.com/nrkno/tv-automation-server-core/commit/d2f3cef03259f594feba8814046614d1ed16cf62))
50
97
 
51
98
  # [1.50.0-in-testing.5](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0-in-testing.4...v1.50.0-in-testing.5) (2023-08-25)
52
99
 
53
-
54
-
55
100
  # [1.50.0-in-testing.4](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.0-in-testing.7...v1.50.0-in-testing.4) (2023-08-23)
56
101
 
57
-
58
-
59
102
  # [1.50.0-in-testing.2](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0-in-testing.1...v1.50.0-in-testing.2) (2023-07-17)
60
103
 
61
-
62
104
  ### Bug Fixes
63
105
 
64
- * Allow JSON objects in config presets ([#949](https://github.com/nrkno/tv-automation-server-core/issues/949)) ([4e5a797](https://github.com/nrkno/tv-automation-server-core/commit/4e5a79752d6c06f91ce070b1d67e7bed97a4f0f2))
65
- * expose `deviceType` in `listPlayoutDevices` to blueprints ([2b32c72](https://github.com/nrkno/tv-automation-server-core/commit/2b32c7256762716071d467193f344646af484f18))
66
- * require blueprint baseline objects to be of type `TimelineObjectCoreExt` instead of `TSR.TSRTimelineObj` [#961](https://github.com/nrkno/tv-automation-server-core/issues/961) ([b8d0cf3](https://github.com/nrkno/tv-automation-server-core/commit/b8d0cf313c88e29fd08f6405b86a55d3579e7692))
67
-
106
+ - Allow JSON objects in config presets ([#949](https://github.com/nrkno/tv-automation-server-core/issues/949)) ([4e5a797](https://github.com/nrkno/tv-automation-server-core/commit/4e5a79752d6c06f91ce070b1d67e7bed97a4f0f2))
107
+ - expose `deviceType` in `listPlayoutDevices` to blueprints ([2b32c72](https://github.com/nrkno/tv-automation-server-core/commit/2b32c7256762716071d467193f344646af484f18))
108
+ - require blueprint baseline objects to be of type `TimelineObjectCoreExt` instead of `TSR.TSRTimelineObj` [#961](https://github.com/nrkno/tv-automation-server-core/issues/961) ([b8d0cf3](https://github.com/nrkno/tv-automation-server-core/commit/b8d0cf313c88e29fd08f6405b86a55d3579e7692))
68
109
 
69
110
  ### Features
70
111
 
71
- * add `prompterTitle` property SOFIE-2404 ([#975](https://github.com/nrkno/tv-automation-server-core/issues/975)) ([6f0567d](https://github.com/nrkno/tv-automation-server-core/commit/6f0567de958cede745e918529bae660305ceb66e))
72
- * add milestone timing ([5950fd5](https://github.com/nrkno/tv-automation-server-core/commit/5950fd5e202cfab5e7f5b36942ffb7525c713e0a))
73
- * allow getting the Source and Output layers from the ShowStyle context ([#979](https://github.com/nrkno/tv-automation-server-core/issues/979)) ([ab57fb4](https://github.com/nrkno/tv-automation-server-core/commit/ab57fb4871bf23e37b99e73f5f809738fd8fdd1b))
74
- * blueprint settings overhaul ([#878](https://github.com/nrkno/tv-automation-server-core/issues/878)) ([ee3307c](https://github.com/nrkno/tv-automation-server-core/commit/ee3307cae10076e2d91d624f783e40c54c297b91))
75
- * fallback to cumetime if no backtime ([2cafbab](https://github.com/nrkno/tv-automation-server-core/commit/2cafbab2f03d49b92c121a7206ddfed62bf770fa))
76
- * move blueprint ab logic into sofie SOFIE-2403 ([#946](https://github.com/nrkno/tv-automation-server-core/issues/946)) ([cc37b75](https://github.com/nrkno/tv-automation-server-core/commit/cc37b751d674be7f8631d0315e52f8fa29a8d3c4))
77
- * move gateway settings onto Studio SOFIE-1330 ([#907](https://github.com/nrkno/tv-automation-server-core/issues/907)) ([523c061](https://github.com/nrkno/tv-automation-server-core/commit/523c061c51296e21814deeeabbe9aafca21cd5a6))
78
- * trs actions in blueprints rundown hooks ([bb5e442](https://github.com/nrkno/tv-automation-server-core/commit/bb5e4422fa32e1af1e520e0c288360b304da4289))
79
-
80
-
81
-
82
-
112
+ - add `prompterTitle` property SOFIE-2404 ([#975](https://github.com/nrkno/tv-automation-server-core/issues/975)) ([6f0567d](https://github.com/nrkno/tv-automation-server-core/commit/6f0567de958cede745e918529bae660305ceb66e))
113
+ - add milestone timing ([5950fd5](https://github.com/nrkno/tv-automation-server-core/commit/5950fd5e202cfab5e7f5b36942ffb7525c713e0a))
114
+ - allow getting the Source and Output layers from the ShowStyle context ([#979](https://github.com/nrkno/tv-automation-server-core/issues/979)) ([ab57fb4](https://github.com/nrkno/tv-automation-server-core/commit/ab57fb4871bf23e37b99e73f5f809738fd8fdd1b))
115
+ - blueprint settings overhaul ([#878](https://github.com/nrkno/tv-automation-server-core/issues/878)) ([ee3307c](https://github.com/nrkno/tv-automation-server-core/commit/ee3307cae10076e2d91d624f783e40c54c297b91))
116
+ - fallback to cumetime if no backtime ([2cafbab](https://github.com/nrkno/tv-automation-server-core/commit/2cafbab2f03d49b92c121a7206ddfed62bf770fa))
117
+ - move blueprint ab logic into sofie SOFIE-2403 ([#946](https://github.com/nrkno/tv-automation-server-core/issues/946)) ([cc37b75](https://github.com/nrkno/tv-automation-server-core/commit/cc37b751d674be7f8631d0315e52f8fa29a8d3c4))
118
+ - move gateway settings onto Studio SOFIE-1330 ([#907](https://github.com/nrkno/tv-automation-server-core/issues/907)) ([523c061](https://github.com/nrkno/tv-automation-server-core/commit/523c061c51296e21814deeeabbe9aafca21cd5a6))
119
+ - trs actions in blueprints rundown hooks ([bb5e442](https://github.com/nrkno/tv-automation-server-core/commit/bb5e4422fa32e1af1e520e0c288360b304da4289))
83
120
 
84
121
  ## [1.50.1](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.1-0...v1.50.1) (2024-03-11)
85
122
 
86
123
  **Note:** Version bump only for package @sofie-automation/blueprints-integration
87
124
 
88
-
89
-
90
-
91
-
92
125
  ## [1.50.1-0](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0...v1.50.1-0) (2024-03-05)
93
126
 
94
127
  **Note:** Version bump only for package @sofie-automation/blueprints-integration
95
128
 
96
-
97
-
98
-
99
-
100
129
  # [1.50.0](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.4...v1.50.0) (2024-02-23)
101
130
 
102
-
103
131
  ### Features
104
132
 
105
- * allow blueprints to specify a custom resolution for NORA hover preview SOFIE-2840 ([#1123](https://github.com/nrkno/tv-automation-server-core/issues/1123)) ([d2f3cef](https://github.com/nrkno/tv-automation-server-core/commit/d2f3cef03259f594feba8814046614d1ed16cf62))
106
-
107
-
133
+ - allow blueprints to specify a custom resolution for NORA hover preview SOFIE-2840 ([#1123](https://github.com/nrkno/tv-automation-server-core/issues/1123)) ([d2f3cef](https://github.com/nrkno/tv-automation-server-core/commit/d2f3cef03259f594feba8814046614d1ed16cf62))
108
134
 
109
135
  # [1.50.0-in-testing.5](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0-in-testing.4...v1.50.0-in-testing.5) (2023-08-25)
110
136
 
111
-
112
-
113
137
  # [1.50.0-in-testing.4](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.0-in-testing.7...v1.50.0-in-testing.4) (2023-08-23)
114
138
 
115
-
116
-
117
139
  # [1.50.0-in-testing.2](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0-in-testing.1...v1.50.0-in-testing.2) (2023-07-17)
118
140
 
119
-
120
141
  ### Bug Fixes
121
142
 
122
- * Allow JSON objects in config presets ([#949](https://github.com/nrkno/tv-automation-server-core/issues/949)) ([4e5a797](https://github.com/nrkno/tv-automation-server-core/commit/4e5a79752d6c06f91ce070b1d67e7bed97a4f0f2))
123
- * expose `deviceType` in `listPlayoutDevices` to blueprints ([2b32c72](https://github.com/nrkno/tv-automation-server-core/commit/2b32c7256762716071d467193f344646af484f18))
124
- * require blueprint baseline objects to be of type `TimelineObjectCoreExt` instead of `TSR.TSRTimelineObj` [#961](https://github.com/nrkno/tv-automation-server-core/issues/961) ([b8d0cf3](https://github.com/nrkno/tv-automation-server-core/commit/b8d0cf313c88e29fd08f6405b86a55d3579e7692))
125
-
143
+ - Allow JSON objects in config presets ([#949](https://github.com/nrkno/tv-automation-server-core/issues/949)) ([4e5a797](https://github.com/nrkno/tv-automation-server-core/commit/4e5a79752d6c06f91ce070b1d67e7bed97a4f0f2))
144
+ - expose `deviceType` in `listPlayoutDevices` to blueprints ([2b32c72](https://github.com/nrkno/tv-automation-server-core/commit/2b32c7256762716071d467193f344646af484f18))
145
+ - require blueprint baseline objects to be of type `TimelineObjectCoreExt` instead of `TSR.TSRTimelineObj` [#961](https://github.com/nrkno/tv-automation-server-core/issues/961) ([b8d0cf3](https://github.com/nrkno/tv-automation-server-core/commit/b8d0cf313c88e29fd08f6405b86a55d3579e7692))
126
146
 
127
147
  ### Features
128
148
 
129
- * add `prompterTitle` property SOFIE-2404 ([#975](https://github.com/nrkno/tv-automation-server-core/issues/975)) ([6f0567d](https://github.com/nrkno/tv-automation-server-core/commit/6f0567de958cede745e918529bae660305ceb66e))
130
- * add milestone timing ([5950fd5](https://github.com/nrkno/tv-automation-server-core/commit/5950fd5e202cfab5e7f5b36942ffb7525c713e0a))
131
- * allow getting the Source and Output layers from the ShowStyle context ([#979](https://github.com/nrkno/tv-automation-server-core/issues/979)) ([ab57fb4](https://github.com/nrkno/tv-automation-server-core/commit/ab57fb4871bf23e37b99e73f5f809738fd8fdd1b))
132
- * blueprint settings overhaul ([#878](https://github.com/nrkno/tv-automation-server-core/issues/878)) ([ee3307c](https://github.com/nrkno/tv-automation-server-core/commit/ee3307cae10076e2d91d624f783e40c54c297b91))
133
- * fallback to cumetime if no backtime ([2cafbab](https://github.com/nrkno/tv-automation-server-core/commit/2cafbab2f03d49b92c121a7206ddfed62bf770fa))
134
- * move blueprint ab logic into sofie SOFIE-2403 ([#946](https://github.com/nrkno/tv-automation-server-core/issues/946)) ([cc37b75](https://github.com/nrkno/tv-automation-server-core/commit/cc37b751d674be7f8631d0315e52f8fa29a8d3c4))
135
- * move gateway settings onto Studio SOFIE-1330 ([#907](https://github.com/nrkno/tv-automation-server-core/issues/907)) ([523c061](https://github.com/nrkno/tv-automation-server-core/commit/523c061c51296e21814deeeabbe9aafca21cd5a6))
136
- * trs actions in blueprints rundown hooks ([bb5e442](https://github.com/nrkno/tv-automation-server-core/commit/bb5e4422fa32e1af1e520e0c288360b304da4289))
137
-
138
-
139
-
140
-
149
+ - add `prompterTitle` property SOFIE-2404 ([#975](https://github.com/nrkno/tv-automation-server-core/issues/975)) ([6f0567d](https://github.com/nrkno/tv-automation-server-core/commit/6f0567de958cede745e918529bae660305ceb66e))
150
+ - add milestone timing ([5950fd5](https://github.com/nrkno/tv-automation-server-core/commit/5950fd5e202cfab5e7f5b36942ffb7525c713e0a))
151
+ - allow getting the Source and Output layers from the ShowStyle context ([#979](https://github.com/nrkno/tv-automation-server-core/issues/979)) ([ab57fb4](https://github.com/nrkno/tv-automation-server-core/commit/ab57fb4871bf23e37b99e73f5f809738fd8fdd1b))
152
+ - blueprint settings overhaul ([#878](https://github.com/nrkno/tv-automation-server-core/issues/878)) ([ee3307c](https://github.com/nrkno/tv-automation-server-core/commit/ee3307cae10076e2d91d624f783e40c54c297b91))
153
+ - fallback to cumetime if no backtime ([2cafbab](https://github.com/nrkno/tv-automation-server-core/commit/2cafbab2f03d49b92c121a7206ddfed62bf770fa))
154
+ - move blueprint ab logic into sofie SOFIE-2403 ([#946](https://github.com/nrkno/tv-automation-server-core/issues/946)) ([cc37b75](https://github.com/nrkno/tv-automation-server-core/commit/cc37b751d674be7f8631d0315e52f8fa29a8d3c4))
155
+ - move gateway settings onto Studio SOFIE-1330 ([#907](https://github.com/nrkno/tv-automation-server-core/issues/907)) ([523c061](https://github.com/nrkno/tv-automation-server-core/commit/523c061c51296e21814deeeabbe9aafca21cd5a6))
156
+ - trs actions in blueprints rundown hooks ([bb5e442](https://github.com/nrkno/tv-automation-server-core/commit/bb5e4422fa32e1af1e520e0c288360b304da4289))
141
157
 
142
158
  # [1.50.0-in-testing.5](https://github.com/nrkno/tv-automation-server-core/compare/v1.50.0-in-testing.4...v1.50.0-in-testing.5) (2023-08-25)
143
159
 
@@ -184,22 +200,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
184
200
  - move blueprint ab logic into sofie SOFIE-2403 ([#946](https://github.com/nrkno/tv-automation-server-core/issues/946)) ([cc37b75](https://github.com/nrkno/tv-automation-server-core/commit/cc37b751d674be7f8631d0315e52f8fa29a8d3c4))
185
201
  - move gateway settings onto Studio SOFIE-1330 ([#907](https://github.com/nrkno/tv-automation-server-core/issues/907)) ([523c061](https://github.com/nrkno/tv-automation-server-core/commit/523c061c51296e21814deeeabbe9aafca21cd5a6))
186
202
  - trs actions in blueprints rundown hooks ([bb5e442](https://github.com/nrkno/tv-automation-server-core/commit/bb5e4422fa32e1af1e520e0c288360b304da4289))
203
+
187
204
  ## [1.49.3](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.2...v1.49.3) (2023-12-21)
188
205
 
189
206
  **Note:** Version bump only for package @sofie-automation/blueprints-integration
190
207
 
191
-
192
-
193
-
194
-
195
208
  ## [1.49.2](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.1...v1.49.2) (2023-11-29)
196
209
 
197
210
  **Note:** Version bump only for package @sofie-automation/blueprints-integration
198
211
 
199
-
200
-
201
-
202
-
203
212
  ## [1.49.1](https://github.com/nrkno/tv-automation-server-core/compare/v1.49.0...v1.49.1) (2023-10-20)
204
213
 
205
214
  **Note:** Version bump only for package @sofie-automation/blueprints-integration
@@ -17,7 +17,7 @@ export declare const AB_MEDIA_PLAYER_AUTO = "__auto__";
17
17
  * Description of a player in an AB pool
18
18
  */
19
19
  export interface ABPlayerDefinition {
20
- playerId: number;
20
+ playerId: number | string;
21
21
  }
22
22
  /**
23
23
  * A rule describing how to update the `layer` of a TimelineObject for AB playback
@@ -26,7 +26,7 @@ export interface ABTimelineLayerChangeRule {
26
26
  /** What AB pools can this rule be used for */
27
27
  acceptedPoolNames: string[];
28
28
  /** A function to generate the new layer name for a chosen playerId */
29
- newLayerName: (playerId: number) => string;
29
+ newLayerName: (playerId: number | string) => string;
30
30
  /** Whether this rule can be used for lookaheadObjects */
31
31
  allowsLookahead: boolean;
32
32
  }
@@ -51,7 +51,7 @@ export interface ABResolverConfiguration {
51
51
  * This is run after both the keyframe and `timelineObjectLayerChangeRules` strategies have been run.
52
52
  * Return true to indicate that a change was successfully made to the object
53
53
  */
54
- customApplyToObject?: (context: ICommonContext, poolName: string, playerId: number, timelineObject: OnGenerateTimelineObj<TSR.TSRTimelineContent>) => boolean;
54
+ customApplyToObject?: (context: ICommonContext, poolName: string, playerId: number | string, timelineObject: OnGenerateTimelineObj<TSR.TSRTimelineContent>) => boolean;
55
55
  }
56
56
  export interface ABResolverOptions {
57
57
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"abPlayback.d.ts","sourceRoot":"","sources":["../src/abPlayback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAA;AACxG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAE5D,MAAM,WAAW,kBAAmB,SAAQ,2BAA2B;IACtE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAAa,CAAA;AAE9C;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,QAAQ,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,8CAA8C;IAC9C,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,sEAAsE;IACtE,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC1C,yDAAyD;IACzD,eAAe,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACxC,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAAA;CAC1D,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,+BAA+B;IAC/B,eAAe,EAAE,iBAAiB,CAAA;IAClC,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAA;IAC3C,8FAA8F;IAC9F,8BAA8B,CAAC,EAAE,0BAA0B,CAAA;IAC3D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CACrB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,M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AE,CAAC,CAAA;IAC3C,8FAA8F;IAC9F,8BAA8B,CAAC,EAAE,0BAA0B,CAAA;IAC3D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CACrB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GAAG,MAAM,EACzB,cAAc,EAAE,qBAAqB,CAAC,GAAG,CAAC,kBAAkB,CAAC,KACzD,OAAO,CAAA;CACZ;AAED,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CACjB"}
package/dist/action.d.ts CHANGED
@@ -1,19 +1,12 @@
1
1
  import { ExpectedPackage } from './package';
2
- import { ConfigManifestEntry } from './config';
3
2
  import { SomeContent } from './content';
4
3
  import { ITranslatableMessage } from './translations';
5
4
  import { ExpectedPlayoutItemGeneric } from './documents';
5
+ import { JSONBlob } from '@sofie-automation/shared-lib/dist/lib/JSONBlob';
6
+ import { JSONSchema } from '@sofie-automation/shared-lib/dist/lib/JSONSchemaTypes';
6
7
  export interface ActionUserData {
7
8
  [key: string]: any;
8
9
  }
9
- export declare enum ActionExecuteAfterChanged {
10
- /** Do not execute the action after userData has changed, unless specifically triggered by the user */
11
- none = "none",
12
- /** Execute the action immediately after userData has changed */
13
- immediately = "immediately",
14
- /** Execute the action after userData has changed and there was an identifiable period of calm in the changes */
15
- debounce = "debounce"
16
- }
17
10
  export interface IBlueprintActionManifestDisplay {
18
11
  /** A label to be displayed to the user */
19
12
  label: ITranslatableMessage;
@@ -55,7 +48,7 @@ export interface IBlueprintActionTriggerMode {
55
48
  description?: ITranslatableMessage;
56
49
  };
57
50
  }
58
- export interface IBlueprintActionManifest {
51
+ export interface IBlueprintActionManifest<TPrivateData = unknown, TPublicData = unknown> {
59
52
  /**
60
53
  * An identifier for this Action
61
54
  * It should be unique within the part it belongs to, and consistent across ingest updates
@@ -63,7 +56,15 @@ export interface IBlueprintActionManifest {
63
56
  externalId: string;
64
57
  /** Id of the action */
65
58
  actionId: string;
66
- /** Properties defining the action behaviour */
59
+ /** Arbitraty data storage for internal use in the blueprints */
60
+ privateData?: TPrivateData;
61
+ /** Arbitraty data relevant for other systems, made available to them through APIs */
62
+ publicData?: TPublicData;
63
+ /**
64
+ * Arbitrary data relevant for other systems and/or users, available through APIs.
65
+ * It can be overriden when executing the action.
66
+ * It can be made user-editable with userDataManifest.
67
+ */
67
68
  userData: ActionUserData;
68
69
  /**
69
70
  * Set if ad-lib action should be limited in context to the current part/segment
@@ -79,16 +80,12 @@ export interface IBlueprintActionManifest {
79
80
  allVariants?: boolean;
80
81
  userDataManifest: {
81
82
  /** List of editable fields in userData, to allow for customising */
82
- editableFields?: ConfigManifestEntry[];
83
- /** Execute the action after userData is changed. If not present ActionExecuteAfterChanged.none is assumed. */
84
- executeOnUserDataChanged?: ActionExecuteAfterChanged;
83
+ editableFields?: JSONBlob<JSONSchema>;
85
84
  };
86
85
  display: IBlueprintActionManifestDisplay | IBlueprintActionManifestDisplayContent;
87
86
  /** Optional ways of executing this action. The default option is computed from the display properties */
88
87
  triggerModes?: IBlueprintActionTriggerMode[];
89
- /** Array of items expected to be played out. This is used by playout-devices to preload stuff.
90
- * @deprecated replaced by .expectedPackages
91
- */
88
+ /** Array of items expected to be played out. This is used by playout-devices to preload stuff. */
92
89
  expectedPlayoutItems?: ExpectedPlayoutItemGeneric[];
93
90
  /**
94
91
  * An array of which Packages this Action uses. This is used by a Package Manager to ensure that the Package is in place for playout.
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,C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AA;IAED,OAAO,EAAE,+BAA+B,GAAG,sCAAsC,CAAA;IAEjF,yGAAyG;IACzG,YAAY,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAE5C,kGAAkG;IAClG,oBAAoB,CAAC,EAAE,0BAA0B,EAAE,CAAA;IACnD;;OAEG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC,GAAG,EAAE,CAAA;CACxC"}
package/dist/action.js CHANGED
@@ -1,13 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionExecuteAfterChanged = void 0;
4
- var ActionExecuteAfterChanged;
5
- (function (ActionExecuteAfterChanged) {
6
- /** Do not execute the action after userData has changed, unless specifically triggered by the user */
7
- ActionExecuteAfterChanged["none"] = "none";
8
- /** Execute the action immediately after userData has changed */
9
- ActionExecuteAfterChanged["immediately"] = "immediately";
10
- /** Execute the action after userData has changed and there was an identifiable period of calm in the changes */
11
- ActionExecuteAfterChanged["debounce"] = "debounce";
12
- })(ActionExecuteAfterChanged = exports.ActionExecuteAfterChanged || (exports.ActionExecuteAfterChanged = {}));
13
3
  //# sourceMappingURL=action.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"action.js","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":";;;AAUA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACpC,sGAAsG;IACtG,0CAAa,CAAA;IACb,gEAAgE;IAChE,wDAA2B,CAAA;IAC3B,gHAAgH;IAChH,kDAAqB,CAAA;AACtB,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC"}
1
+ {"version":3,"file":"action.js","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import type { ActionUserData, IBlueprintActionManifest } from '../action';
2
- import type { IActionExecutionContext, ISyncIngestUpdateToPartInstanceContext, IPartEventContext, IRundownContext, IStudioUserContext, ISegmentUserContext, IShowStyleUserContext, ICommonContext, ITimelineEventContext, IRundownDataChangedEventContext, IRundownTimingEventContext, IGetRundownContext, IDataStoreActionExecutionContext, IRundownActivationContext, IShowStyleContext } from '../context';
3
- import type { IngestAdlib, ExtendedIngestRundown, IngestSegment } from '../ingest';
2
+ import type { IActionExecutionContext, ISyncIngestUpdateToPartInstanceContext, IPartEventContext, IRundownContext, IStudioUserContext, ISegmentUserContext, IShowStyleUserContext, ICommonContext, ITimelineEventContext, IRundownDataChangedEventContext, IRundownTimingEventContext, IGetRundownContext, IDataStoreActionExecutionContext, IRundownActivationContext, IShowStyleContext, IFixUpConfigContext, IOnTakeContext, IOnSetAsNextContext } from '../context';
3
+ import type { IngestAdlib, ExtendedIngestRundown, IngestSegment, IngestRundown } from '../ingest';
4
4
  import type { IBlueprintExternalMessageQueueObj } from '../message';
5
5
  import type { MigrationStepShowStyle } from '../migrations';
6
6
  import type { IBlueprintAdLibPiece, IBlueprintResolvedPieceInstance, IBlueprintPartInstance, PartEndState, IBlueprintPieceInstance, IBlueprintPartDB, IBlueprintAdLibPieceDB, IBlueprintRundown, ExpectedPlayoutItemGeneric, IBlueprintSegment, IBlueprintPiece, IBlueprintPart } from '../documents';
@@ -19,7 +19,9 @@ export interface ShowStyleBlueprintManifest<TRawConfig = IBlueprintConfig, TProc
19
19
  blueprintType: BlueprintManifestType.SHOWSTYLE;
20
20
  /** A list of config items this blueprint expects to be available on the ShowStyle */
21
21
  showStyleConfigSchema: JSONBlob<JSONSchema>;
22
- /** A list of Migration steps related to a ShowStyle */
22
+ /** A list of Migration steps related to a ShowStyle
23
+ * @deprecated This has been replaced with `validateConfig` and `applyConfig`
24
+ */
23
25
  showStyleMigrations: MigrationStepShowStyle[];
24
26
  /** The config presets exposed by this blueprint */
25
27
  configPresets: Record<string, IShowStyleConfigPreset<TRawConfig>>;
@@ -31,6 +33,11 @@ export interface ShowStyleBlueprintManifest<TRawConfig = IBlueprintConfig, TProc
31
33
  getRundown: (context: IGetRundownContext, ingestRundown: ExtendedIngestRundown) => BlueprintResultRundown | null | Promise<BlueprintResultRundown | null>;
32
34
  /** Generate segment from ingest data */
33
35
  getSegment: (context: ISegmentUserContext, ingestSegment: IngestSegment) => BlueprintResultSegment | Promise<BlueprintResultSegment>;
36
+ /**
37
+ * Generate an Adlib Testing IngestRundown for the specified ShowStyleVariant.
38
+ * This is used to generate a rundown which can be used for testing adlibs, or minimal use of Sofie without a rundown from an NRCS.
39
+ */
40
+ generateAdlibTestingIngestRundown?: (context: IShowStyleUserContext, showStyleVariant: IBlueprintShowStyleVariant) => IngestRundown | Promise<IngestRundown>;
34
41
  /**
35
42
  * Allows the blueprint to custom-modify the PartInstance, on ingest data update (this is run after getSegment())
36
43
  *
@@ -46,9 +53,14 @@ export interface ShowStyleBlueprintManifest<TRawConfig = IBlueprintConfig, TProc
46
53
  */
47
54
  executeDataStoreAction?: (context: IDataStoreActionExecutionContext, actionId: string, userData: ActionUserData, triggerMode?: string) => Promise<void>;
48
55
  /** Execute an action defined by an IBlueprintActionManifest */
49
- executeAction?: (context: IActionExecutionContext, actionId: string, userData: ActionUserData, triggerMode?: string) => Promise<void>;
56
+ executeAction?: (context: IActionExecutionContext, actionId: string, userData: ActionUserData, triggerMode: string | undefined, privateData?: unknown) => Promise<void>;
50
57
  /** Generate adlib piece from ingest data */
51
- getAdlibItem?: (context: IShowStyleUserContext, ingestItem: IngestAdlib) => IBlueprintAdLibPiece | IBlueprintActionManifest | null;
58
+ getAdlibItem?: (context: IShowStyleUserContext, ingestItem: IngestAdlib) => Promise<IBlueprintAdLibPiece | IBlueprintActionManifest | null> | IBlueprintAdLibPiece | IBlueprintActionManifest | null;
59
+ /**
60
+ * Apply automatic upgrades to the structure of user specified config overrides
61
+ * This lets you apply various changes to the user's values in an abstract way
62
+ */
63
+ fixUpConfig?: (context: IFixUpConfigContext<TRawConfig>) => void;
52
64
  /**
53
65
  * Validate the config passed to this blueprint
54
66
  * In this you should do various sanity checks of the config and return a list of messages to display to the user.
@@ -65,9 +77,20 @@ export interface ShowStyleBlueprintManifest<TRawConfig = IBlueprintConfig, TProc
65
77
  onRundownActivate?: (context: IRundownActivationContext, wasActive: boolean) => Promise<void>;
66
78
  onRundownFirstTake?: (context: IPartEventContext) => Promise<void>;
67
79
  onRundownDeActivate?: (context: IRundownActivationContext) => Promise<void>;
68
- /** Called after a Take action */
80
+ /** Called before a Take action */
69
81
  onPreTake?: (context: IPartEventContext) => Promise<void>;
82
+ /**
83
+ * Called during a Take action.
84
+ * Allows for part modification or aborting the take.
85
+ */
86
+ onTake?: (context: IOnTakeContext) => Promise<void>;
87
+ /** Called after a Take action */
70
88
  onPostTake?: (context: IPartEventContext) => Promise<void>;
89
+ /**
90
+ * Called when a part is set as Next, including right after a Take.
91
+ * Allows for part modification.
92
+ */
93
+ onSetAsNext?: (context: IOnSetAsNextContext) => Promise<void>;
71
94
  /** Called after the timeline has been generated, used to manipulate the timeline */
72
95
  onTimelineGenerate?: (context: ITimelineEventContext, timeline: OnGenerateTimelineObj<TSR.TSRTimelineContent>[], previousPersistentState: TimelinePersistentState | undefined, previousPartEndState: PartEndState | undefined, resolvedPieces: IBlueprintResolvedPieceInstance[]) => Promise<BlueprintResultTimeline>;
73
96
  /** Called just before `onTimelineGenerate` to perform AB-playback for the timeline */
@@ -88,7 +111,6 @@ export interface BlueprintResultTimeline {
88
111
  }
89
112
  export interface BlueprintResultBaseline {
90
113
  timelineObjects: TimelineObjectCoreExt<TSR.TSRTimelineContent>[];
91
- /** @deprecated */
92
114
  expectedPlayoutItems?: ExpectedPlayoutItemGeneric[];
93
115
  expectedPackages?: ExpectedPackage.Any[];
94
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"showStyle.d.ts","sourceRoot":"","sources":["../../src/api/showStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,KAAK,EACX,uBAAuB,EACvB,sCAAsC,EACtC,iBAAiB,EACjB,eAAe,EACf,kBA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E,cAAc,CAAA;IACpB,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,WAAW,EAAE,oBAAoB,EAAE,CAAA;IACnC,OAAO,EAAE,wBAAwB,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,0BAA0B;IAE1C,mBAAmB;IACnB,IAAI,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAClC,wGAAwG;IACxG,cAAc,EAAE,uBAAuB,EAAE,CAAA;IACzC,8CAA8C;IAC9C,WAAW,EAAE,sBAAsB,EAAE,CAAA;IACrC,+CAA+C;IAC/C,OAAO,EAAE,wBAAwB,EAAE,CAAA;IACnC,gFAAgF;IAChF,gBAAgB,EAAE,sBAAsB,EAAE,CAAA;CAC1C;AAYD,MAAM,WAAW,+BAA+B;IAC/C,YAAY,EAAE,sBAAsB,CAAA;IACpC,cAAc,EAAE,uBAAuB,EAAE,CAAA;CAIzC;AAED,MAAM,WAAW,mCAAmC;IACnD,YAAY,EAAE,YAAY,EAAE,CAAA;IAC5B,YAAY,EAAE,YAAY,EAAE,CAAA;IAE5B,gBAAgB,EAAE,0BAA0B,EAAE,CAAA;CAC9C;AAED,MAAM,WAAW,sBAAsB,CAAC,OAAO,GAAG,gBAAgB;IACjE,IAAI,EAAE,MAAM,CAAA;IAEZ,MAAM,EAAE,OAAO,CAAA;IAEf,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAAA;CAChE;AAED,MAAM,WAAW,6BAA6B,CAAC,OAAO,GAAG,gBAAgB;IACxE,IAAI,EAAE,MAAM,CAAA;IAEZ,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CACxB"}
@@ -4,7 +4,7 @@ import type { BlueprintConfigCoreConfig, BlueprintManifestBase, BlueprintManifes
4
4
  import type { JSONSchema } from '@sofie-automation/shared-lib/dist/lib/JSONSchemaTypes';
5
5
  import type { JSONBlob } from '@sofie-automation/shared-lib/dist/lib/JSONBlob';
6
6
  import type { MigrationStepStudio } from '../migrations';
7
- import type { ICommonContext, IStudioBaselineContext, IStudioUserContext } from '../context';
7
+ import type { ICommonContext, IFixUpConfigContext, IStudioBaselineContext, IStudioUserContext } from '../context';
8
8
  import type { IBlueprintShowStyleBase } from '../showStyle';
9
9
  import type { ExtendedIngestRundown } from '../ingest';
10
10
  import type { ExpectedPlayoutItemGeneric, IBlueprintResultRundownPlaylist, IBlueprintRundownDB } from '../documents';
@@ -15,7 +15,9 @@ export interface StudioBlueprintManifest<TRawConfig = IBlueprintConfig, TProcess
15
15
  blueprintType: BlueprintManifestType.STUDIO;
16
16
  /** A list of config items this blueprint expects to be available on the Studio */
17
17
  studioConfigSchema: JSONBlob<JSONSchema>;
18
- /** A list of Migration steps related to a Studio */
18
+ /** A list of Migration steps related to a Studio
19
+ * @deprecated This has been replaced with `validateConfig` and `applyConfig`
20
+ */
19
21
  studioMigrations: MigrationStepStudio[];
20
22
  /** The config presets exposed by this blueprint */
21
23
  configPresets: Record<string, IStudioConfigPreset<TRawConfig>>;
@@ -27,6 +29,11 @@ export interface StudioBlueprintManifest<TRawConfig = IBlueprintConfig, TProcess
27
29
  getShowStyleId: (context: IStudioUserContext, showStyles: ReadonlyDeep<Array<IBlueprintShowStyleBase>>, ingestRundown: ExtendedIngestRundown) => string | null;
28
30
  /** Returns information about the playlist this rundown is a part of, return null to not make it a part of a playlist */
29
31
  getRundownPlaylistInfo?: (context: IStudioUserContext, rundowns: IBlueprintRundownDB[], playlistExternalId: string) => BlueprintResultRundownPlaylist | null;
32
+ /**
33
+ * Apply automatic upgrades to the structure of user specified config overrides
34
+ * This lets you apply various changes to the user's values in an abstract way
35
+ */
36
+ fixUpConfig?: (context: IFixUpConfigContext<TRawConfig>) => void;
30
37
  /**
31
38
  * Validate the config passed to this blueprint
32
39
  * In this you should do various sanity checks of the config and return a list of messages to display to the user.
@@ -43,7 +50,6 @@ export interface StudioBlueprintManifest<TRawConfig = IBlueprintConfig, TProcess
43
50
  }
44
51
  export interface BlueprintResultStudioBaseline {
45
52
  timelineObjects: TimelineObjectCoreExt<TSR.TSRTimelineContent>[];
46
- /** @deprecated */
47
53
  expectedPlayoutItems?: ExpectedPlayoutItemGeneric[];
48
54
  expectedPackages?: ExpectedPackage.Any[];
49
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"studio.d.ts","sourceRoot":"","sources":["../../src/api/studio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACrH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAA;AACvF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAA;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC5F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACpH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,WAAW,uBAAuB,CAAC,UAAU,GAAG,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CACjG,SAAQ,qBAAqB;IAC7B,aAAa,EAAE,qBAAqB,CAAC,MAAM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EAAE,OAAO,CAAC,CAAA;IACtC,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,mBAAmB,CAAC,OAAO,GAAG,gBAAgB;IAC9D,IAAI,EAAE,MAAM,CAAA;IAEZ,MAAM,EAAE,OAAO,CAAA;CACf"}
package/dist/content.d.ts CHANGED
@@ -6,6 +6,9 @@ export type WithTimeline<T extends BaseContent> = T & {
6
6
  };
7
7
  export interface BaseContent {
8
8
  editable?: BaseEditableParameters;
9
+ /** Is this content looping, or will it only play once. This property is used to show a "looping" icon on the Piece. Default is `false` */
10
+ loop?: boolean;
11
+ /** Length of the source content (in milliseconds). This property is used to show "freeze-frame" icons and countdowns. Default is `undefined`, meaning the content has no specific duration */
9
12
  sourceDuration?: number;
10
13
  ignoreMediaObjectStatus?: boolean;
11
14
  ignoreBlackFrames?: boolean;
@@ -24,7 +27,6 @@ export type UnknownContent = BaseContent;
24
27
  export interface VTContent extends BaseContent {
25
28
  fileName: string;
26
29
  path: string;
27
- loop?: boolean;
28
30
  /** Frame that media manager should grab for thumbnail preview */
29
31
  previewFrame?: number;
30
32
  mediaFlowIds?: string[];
@@ -131,7 +133,6 @@ export interface SplitsContent extends BaseContent {
131
133
  export interface AudioContent extends BaseContent {
132
134
  fileName: string;
133
135
  path: string;
134
- loop?: boolean;
135
136
  }
136
137
  export type LiveSpeakContent = VTContent;
137
138
  export interface TransitionContent extends BaseContent {