@cratis/showrunner.notes 0.0.0-stage → 1.15.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 (250) hide show
  1. package/Availability/NotesAvailability.ts +59 -0
  2. package/Availability/index.ts +4 -0
  3. package/Contracts/Components/PickedComponent.ts +43 -0
  4. package/Contracts/Components/index.ts +4 -0
  5. package/Contracts/Context/NoteContext.ts +58 -0
  6. package/Contracts/Context/NoteDialog.ts +25 -0
  7. package/Contracts/Context/NoteScreen.ts +30 -0
  8. package/Contracts/Context/index.ts +6 -0
  9. package/Contracts/Giving/NoteKind.ts +14 -0
  10. package/Contracts/Giving/index.ts +4 -0
  11. package/Contracts/Reporting/SliceLocation.ts +30 -0
  12. package/Contracts/Reporting/index.ts +4 -0
  13. package/Giving/GiveNoteOnComponent/GiveNoteOnComponent.ts +146 -0
  14. package/Giving/GiveNoteOnComponent/index.ts +4 -0
  15. package/Giving/GiveNoteOnContext/GiveNoteOnContext.ts +126 -0
  16. package/Giving/GiveNoteOnContext/index.ts +4 -0
  17. package/Giving/GiveNoteOnScreen/GiveNoteOnScreen.ts +126 -0
  18. package/Giving/GiveNoteOnScreen/index.ts +4 -0
  19. package/Giving/GiveNoteOnSlices/GiveNoteOnSlices.ts +145 -0
  20. package/Giving/GiveNoteOnSlices/index.ts +4 -0
  21. package/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.ts +164 -0
  22. package/Giving/SuggestComponentPropertyChange/index.ts +4 -0
  23. package/Listing/MyNote.ts +303 -0
  24. package/Listing/NoteStatus.ts +15 -0
  25. package/Listing/NoteTarget.ts +14 -0
  26. package/Listing/SuggestedPropertyChange.ts +30 -0
  27. package/Listing/index.ts +7 -0
  28. package/README.md +86 -2
  29. package/Withdrawing/WithdrawNote/WithdrawNote.ts +61 -0
  30. package/Withdrawing/WithdrawNote/index.ts +4 -0
  31. package/dist/cjs/Availability/NotesAvailability.d.ts +21 -0
  32. package/dist/cjs/Availability/NotesAvailability.d.ts.map +1 -0
  33. package/dist/cjs/Availability/NotesAvailability.js +66 -0
  34. package/dist/cjs/Availability/NotesAvailability.js.map +1 -0
  35. package/dist/cjs/Availability/index.d.ts +2 -0
  36. package/dist/cjs/Availability/index.d.ts.map +1 -0
  37. package/dist/cjs/Contracts/Components/PickedComponent.d.ts +9 -0
  38. package/dist/cjs/Contracts/Components/PickedComponent.d.ts.map +1 -0
  39. package/dist/cjs/Contracts/Components/PickedComponent.js +65 -0
  40. package/dist/cjs/Contracts/Components/PickedComponent.js.map +1 -0
  41. package/dist/cjs/Contracts/Components/index.d.ts +2 -0
  42. package/dist/cjs/Contracts/Components/index.d.ts.map +1 -0
  43. package/dist/cjs/Contracts/Context/NoteContext.d.ts +14 -0
  44. package/dist/cjs/Contracts/Context/NoteContext.d.ts.map +1 -0
  45. package/dist/cjs/Contracts/Context/NoteContext.js +81 -0
  46. package/dist/cjs/Contracts/Context/NoteContext.js.map +1 -0
  47. package/dist/cjs/Contracts/Context/NoteDialog.d.ts +6 -0
  48. package/dist/cjs/Contracts/Context/NoteDialog.d.ts.map +1 -0
  49. package/dist/cjs/Contracts/Context/NoteDialog.js +44 -0
  50. package/dist/cjs/Contracts/Context/NoteDialog.js.map +1 -0
  51. package/dist/cjs/Contracts/Context/NoteScreen.d.ts +6 -0
  52. package/dist/cjs/Contracts/Context/NoteScreen.d.ts.map +1 -0
  53. package/dist/cjs/Contracts/Context/NoteScreen.js +50 -0
  54. package/dist/cjs/Contracts/Context/NoteScreen.js.map +1 -0
  55. package/dist/cjs/Contracts/Context/index.d.ts +4 -0
  56. package/dist/cjs/Contracts/Context/index.d.ts.map +1 -0
  57. package/dist/cjs/Contracts/Giving/NoteKind.d.ts +7 -0
  58. package/dist/cjs/Contracts/Giving/NoteKind.d.ts.map +1 -0
  59. package/dist/cjs/Contracts/Giving/NoteKind.js +18 -0
  60. package/dist/cjs/Contracts/Giving/NoteKind.js.map +1 -0
  61. package/dist/cjs/Contracts/Giving/index.d.ts +2 -0
  62. package/dist/cjs/Contracts/Giving/index.d.ts.map +1 -0
  63. package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts +6 -0
  64. package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts.map +1 -0
  65. package/dist/cjs/Contracts/Reporting/SliceLocation.js +50 -0
  66. package/dist/cjs/Contracts/Reporting/SliceLocation.js.map +1 -0
  67. package/dist/cjs/Contracts/Reporting/index.d.ts +2 -0
  68. package/dist/cjs/Contracts/Reporting/index.d.ts.map +1 -0
  69. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts +40 -0
  70. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -0
  71. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +101 -0
  72. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -0
  73. package/dist/cjs/Giving/GiveNoteOnComponent/index.d.ts +2 -0
  74. package/dist/cjs/Giving/GiveNoteOnComponent/index.d.ts.map +1 -0
  75. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts +36 -0
  76. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -0
  77. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js +88 -0
  78. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -0
  79. package/dist/cjs/Giving/GiveNoteOnContext/index.d.ts +2 -0
  80. package/dist/cjs/Giving/GiveNoteOnContext/index.d.ts.map +1 -0
  81. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts +36 -0
  82. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -0
  83. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +88 -0
  84. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -0
  85. package/dist/cjs/Giving/GiveNoteOnScreen/index.d.ts +2 -0
  86. package/dist/cjs/Giving/GiveNoteOnScreen/index.d.ts.map +1 -0
  87. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts +40 -0
  88. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -0
  89. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +100 -0
  90. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -0
  91. package/dist/cjs/Giving/GiveNoteOnSlices/index.d.ts +2 -0
  92. package/dist/cjs/Giving/GiveNoteOnSlices/index.d.ts.map +1 -0
  93. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts +42 -0
  94. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -0
  95. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +113 -0
  96. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -0
  97. package/dist/cjs/Giving/SuggestComponentPropertyChange/index.d.ts +2 -0
  98. package/dist/cjs/Giving/SuggestComponentPropertyChange/index.d.ts.map +1 -0
  99. package/dist/cjs/Listing/MyNote.d.ts +111 -0
  100. package/dist/cjs/Listing/MyNote.d.ts.map +1 -0
  101. package/dist/cjs/Listing/MyNote.js +315 -0
  102. package/dist/cjs/Listing/MyNote.js.map +1 -0
  103. package/dist/cjs/Listing/NoteStatus.d.ts +8 -0
  104. package/dist/cjs/Listing/NoteStatus.d.ts.map +1 -0
  105. package/dist/cjs/Listing/NoteStatus.js +19 -0
  106. package/dist/cjs/Listing/NoteStatus.js.map +1 -0
  107. package/dist/cjs/Listing/NoteTarget.d.ts +7 -0
  108. package/dist/cjs/Listing/NoteTarget.d.ts.map +1 -0
  109. package/dist/cjs/Listing/NoteTarget.js +18 -0
  110. package/dist/cjs/Listing/NoteTarget.js.map +1 -0
  111. package/dist/cjs/Listing/SuggestedPropertyChange.d.ts +6 -0
  112. package/dist/cjs/Listing/SuggestedPropertyChange.d.ts.map +1 -0
  113. package/dist/cjs/Listing/SuggestedPropertyChange.js +50 -0
  114. package/dist/cjs/Listing/SuggestedPropertyChange.js.map +1 -0
  115. package/dist/cjs/Listing/index.d.ts +5 -0
  116. package/dist/cjs/Listing/index.d.ts.map +1 -0
  117. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts +21 -0
  118. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -0
  119. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js +44 -0
  120. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -0
  121. package/dist/cjs/Withdrawing/WithdrawNote/index.d.ts +2 -0
  122. package/dist/cjs/Withdrawing/WithdrawNote/index.d.ts.map +1 -0
  123. package/dist/cjs/index.d.ts +13 -0
  124. package/dist/cjs/index.d.ts.map +1 -0
  125. package/dist/cjs/index.js +47 -0
  126. package/dist/cjs/index.js.map +1 -0
  127. package/dist/cjs/package.json +3 -0
  128. package/dist/esm/Availability/NotesAvailability.d.ts +21 -0
  129. package/dist/esm/Availability/NotesAvailability.d.ts.map +1 -0
  130. package/dist/esm/Availability/NotesAvailability.js +63 -0
  131. package/dist/esm/Availability/NotesAvailability.js.map +1 -0
  132. package/dist/esm/Availability/index.d.ts +2 -0
  133. package/dist/esm/Availability/index.d.ts.map +1 -0
  134. package/dist/esm/Availability/index.js +2 -0
  135. package/dist/esm/Availability/index.js.map +1 -0
  136. package/dist/esm/Contracts/Components/PickedComponent.d.ts +9 -0
  137. package/dist/esm/Contracts/Components/PickedComponent.d.ts.map +1 -0
  138. package/dist/esm/Contracts/Components/PickedComponent.js +63 -0
  139. package/dist/esm/Contracts/Components/PickedComponent.js.map +1 -0
  140. package/dist/esm/Contracts/Components/index.d.ts +2 -0
  141. package/dist/esm/Contracts/Components/index.d.ts.map +1 -0
  142. package/dist/esm/Contracts/Components/index.js +2 -0
  143. package/dist/esm/Contracts/Components/index.js.map +1 -0
  144. package/dist/esm/Contracts/Context/NoteContext.d.ts +14 -0
  145. package/dist/esm/Contracts/Context/NoteContext.d.ts.map +1 -0
  146. package/dist/esm/Contracts/Context/NoteContext.js +79 -0
  147. package/dist/esm/Contracts/Context/NoteContext.js.map +1 -0
  148. package/dist/esm/Contracts/Context/NoteDialog.d.ts +6 -0
  149. package/dist/esm/Contracts/Context/NoteDialog.d.ts.map +1 -0
  150. package/dist/esm/Contracts/Context/NoteDialog.js +42 -0
  151. package/dist/esm/Contracts/Context/NoteDialog.js.map +1 -0
  152. package/dist/esm/Contracts/Context/NoteScreen.d.ts +6 -0
  153. package/dist/esm/Contracts/Context/NoteScreen.d.ts.map +1 -0
  154. package/dist/esm/Contracts/Context/NoteScreen.js +48 -0
  155. package/dist/esm/Contracts/Context/NoteScreen.js.map +1 -0
  156. package/dist/esm/Contracts/Context/index.d.ts +4 -0
  157. package/dist/esm/Contracts/Context/index.d.ts.map +1 -0
  158. package/dist/esm/Contracts/Context/index.js +4 -0
  159. package/dist/esm/Contracts/Context/index.js.map +1 -0
  160. package/dist/esm/Contracts/Giving/NoteKind.d.ts +7 -0
  161. package/dist/esm/Contracts/Giving/NoteKind.d.ts.map +1 -0
  162. package/dist/esm/Contracts/Giving/NoteKind.js +16 -0
  163. package/dist/esm/Contracts/Giving/NoteKind.js.map +1 -0
  164. package/dist/esm/Contracts/Giving/index.d.ts +2 -0
  165. package/dist/esm/Contracts/Giving/index.d.ts.map +1 -0
  166. package/dist/esm/Contracts/Giving/index.js +2 -0
  167. package/dist/esm/Contracts/Giving/index.js.map +1 -0
  168. package/dist/esm/Contracts/Reporting/SliceLocation.d.ts +6 -0
  169. package/dist/esm/Contracts/Reporting/SliceLocation.d.ts.map +1 -0
  170. package/dist/esm/Contracts/Reporting/SliceLocation.js +48 -0
  171. package/dist/esm/Contracts/Reporting/SliceLocation.js.map +1 -0
  172. package/dist/esm/Contracts/Reporting/index.d.ts +2 -0
  173. package/dist/esm/Contracts/Reporting/index.d.ts.map +1 -0
  174. package/dist/esm/Contracts/Reporting/index.js +2 -0
  175. package/dist/esm/Contracts/Reporting/index.js.map +1 -0
  176. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts +40 -0
  177. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -0
  178. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +98 -0
  179. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -0
  180. package/dist/esm/Giving/GiveNoteOnComponent/index.d.ts +2 -0
  181. package/dist/esm/Giving/GiveNoteOnComponent/index.d.ts.map +1 -0
  182. package/dist/esm/Giving/GiveNoteOnComponent/index.js +2 -0
  183. package/dist/esm/Giving/GiveNoteOnComponent/index.js.map +1 -0
  184. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts +36 -0
  185. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -0
  186. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js +85 -0
  187. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -0
  188. package/dist/esm/Giving/GiveNoteOnContext/index.d.ts +2 -0
  189. package/dist/esm/Giving/GiveNoteOnContext/index.d.ts.map +1 -0
  190. package/dist/esm/Giving/GiveNoteOnContext/index.js +2 -0
  191. package/dist/esm/Giving/GiveNoteOnContext/index.js.map +1 -0
  192. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts +36 -0
  193. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -0
  194. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +85 -0
  195. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -0
  196. package/dist/esm/Giving/GiveNoteOnScreen/index.d.ts +2 -0
  197. package/dist/esm/Giving/GiveNoteOnScreen/index.d.ts.map +1 -0
  198. package/dist/esm/Giving/GiveNoteOnScreen/index.js +2 -0
  199. package/dist/esm/Giving/GiveNoteOnScreen/index.js.map +1 -0
  200. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts +40 -0
  201. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -0
  202. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +97 -0
  203. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -0
  204. package/dist/esm/Giving/GiveNoteOnSlices/index.d.ts +2 -0
  205. package/dist/esm/Giving/GiveNoteOnSlices/index.d.ts.map +1 -0
  206. package/dist/esm/Giving/GiveNoteOnSlices/index.js +2 -0
  207. package/dist/esm/Giving/GiveNoteOnSlices/index.js.map +1 -0
  208. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts +42 -0
  209. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -0
  210. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +110 -0
  211. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -0
  212. package/dist/esm/Giving/SuggestComponentPropertyChange/index.d.ts +2 -0
  213. package/dist/esm/Giving/SuggestComponentPropertyChange/index.d.ts.map +1 -0
  214. package/dist/esm/Giving/SuggestComponentPropertyChange/index.js +2 -0
  215. package/dist/esm/Giving/SuggestComponentPropertyChange/index.js.map +1 -0
  216. package/dist/esm/Listing/MyNote.d.ts +111 -0
  217. package/dist/esm/Listing/MyNote.d.ts.map +1 -0
  218. package/dist/esm/Listing/MyNote.js +312 -0
  219. package/dist/esm/Listing/MyNote.js.map +1 -0
  220. package/dist/esm/Listing/NoteStatus.d.ts +8 -0
  221. package/dist/esm/Listing/NoteStatus.d.ts.map +1 -0
  222. package/dist/esm/Listing/NoteStatus.js +17 -0
  223. package/dist/esm/Listing/NoteStatus.js.map +1 -0
  224. package/dist/esm/Listing/NoteTarget.d.ts +7 -0
  225. package/dist/esm/Listing/NoteTarget.d.ts.map +1 -0
  226. package/dist/esm/Listing/NoteTarget.js +16 -0
  227. package/dist/esm/Listing/NoteTarget.js.map +1 -0
  228. package/dist/esm/Listing/SuggestedPropertyChange.d.ts +6 -0
  229. package/dist/esm/Listing/SuggestedPropertyChange.d.ts.map +1 -0
  230. package/dist/esm/Listing/SuggestedPropertyChange.js +48 -0
  231. package/dist/esm/Listing/SuggestedPropertyChange.js.map +1 -0
  232. package/dist/esm/Listing/index.d.ts +5 -0
  233. package/dist/esm/Listing/index.d.ts.map +1 -0
  234. package/dist/esm/Listing/index.js +5 -0
  235. package/dist/esm/Listing/index.js.map +1 -0
  236. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts +21 -0
  237. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -0
  238. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js +42 -0
  239. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -0
  240. package/dist/esm/Withdrawing/WithdrawNote/index.d.ts +2 -0
  241. package/dist/esm/Withdrawing/WithdrawNote/index.d.ts.map +1 -0
  242. package/dist/esm/Withdrawing/WithdrawNote/index.js +2 -0
  243. package/dist/esm/Withdrawing/WithdrawNote/index.js.map +1 -0
  244. package/dist/esm/index.d.ts +13 -0
  245. package/dist/esm/index.d.ts.map +1 -0
  246. package/dist/esm/index.js +18 -0
  247. package/dist/esm/index.js.map +1 -0
  248. package/dist/esm/package.json +3 -0
  249. package/index.ts +15 -0
  250. package/package.json +69 -4
@@ -0,0 +1,59 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Availability.NotesAvailability, Cratis.Showrunner.Notes.Availability.NotesAvailability. Time: 2026-11-01T11:55:12.6707473Z. Hash: 7D28D58AEA837A3CBE5F66D04986F5BD5F4F7F950F141F37B794A04B3F6A7781
6
+ import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
7
+ import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
8
+ import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
9
+ import { field } from '@cratis/fundamentals';
10
+
11
+ /**
12
+ * Gets whether Notes is switched on. It is the same answer for everyone, so it needs no sign-in: the button shows only to a signed-in user anyway, and the commands refuse everyone else.
13
+ */
14
+ export class Availability extends QueryFor<NotesAvailability> {
15
+ static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Availability');
16
+ readonly route: string = '/api/availability/availability';
17
+ readonly queryName: string = 'Cratis.Showrunner.Notes.Availability.NotesAvailability.Availability';
18
+ readonly treatWarningsAsErrors: boolean = false;
19
+ readonly roles: string[] = [];
20
+ readonly defaultValue: NotesAvailability = {} as NotesAvailability;
21
+
22
+ constructor() {
23
+ super(NotesAvailability, false);
24
+ }
25
+
26
+ get requiredRequestParameters(): string[] {
27
+ return [
28
+ ];
29
+ }
30
+
31
+ readonly parameterDescriptors: ParameterDescriptor[] = [
32
+ ];
33
+
34
+
35
+
36
+ static use(): [QueryResultWithState<NotesAvailability>, PerformQuery, SetSorting] {
37
+ return useQuery<NotesAvailability, Availability>(Availability);
38
+ }
39
+
40
+ static useSuspense(): [QueryResultWithState<NotesAvailability>, PerformQuery, SetSorting] {
41
+ return useSuspenseQuery<NotesAvailability, Availability>(Availability);
42
+ }
43
+
44
+ static when(condition: boolean): QueryWhen<Availability, NotesAvailability> {
45
+ return new QueryWhen<Availability, NotesAvailability>(Availability, condition);
46
+ }
47
+ }
48
+
49
+ /**
50
+ * Whether Notes is switched on in the application. The feedback button renders only when it is.
51
+ */
52
+ export class NotesAvailability {
53
+
54
+ /**
55
+ * Whether the host switched Notes on.
56
+ */
57
+ @field(Boolean)
58
+ isEnabled!: boolean;
59
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './NotesAvailability';
@@ -0,0 +1,43 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Contracts.Components.PickedComponent. Time: 2026-11-01T11:55:12.6707473Z. Hash: 1484D58438C3413660D1408770158347E122D60D2A211159F2CFD174E08DC02D
6
+ import { field } from '@cratis/fundamentals';
7
+ import { SliceLocation } from '../Reporting/SliceLocation';
8
+
9
+ /**
10
+ * A component of the application the user picked on screen.
11
+ */
12
+ export class PickedComponent {
13
+
14
+ /**
15
+ * The name of the component.
16
+ */
17
+ @field(String)
18
+ componentName!: string;
19
+
20
+ /**
21
+ * The id of the component.
22
+ */
23
+ @field(String)
24
+ componentId!: string;
25
+
26
+ /**
27
+ * The part of the component that was picked, {@link NotSet} for the component as a whole.
28
+ */
29
+ @field(String)
30
+ part!: string;
31
+
32
+ /**
33
+ * The components it sits in, nearest first; may be empty.
34
+ */
35
+ @field(String, true)
36
+ ancestors!: string[];
37
+
38
+ /**
39
+ * Where in the application the component is.
40
+ */
41
+ @field(SliceLocation)
42
+ location!: SliceLocation;
43
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './PickedComponent';
@@ -0,0 +1,58 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Contracts.Context.NoteContext. Time: 2026-11-01T11:55:12.6707473Z. Hash: 61C44AE2973F0F83AD9805D4F944BBF66B38C5927BCB9C7C3178B7B02E06AEBD
6
+ import { field } from '@cratis/fundamentals';
7
+ import { Guid } from '@cratis/fundamentals';
8
+ import { NoteDialog } from './NoteDialog';
9
+ import { NoteScreen } from './NoteScreen';
10
+ import { SliceLocation } from '../Reporting/SliceLocation';
11
+
12
+ /**
13
+ * What the user was looking at when they gave a note.
14
+ */
15
+ export class NoteContext {
16
+
17
+ /**
18
+ * Where in the application the user was: the module, feature and slice Arc resolves for what is on screen.
19
+ */
20
+ @field(SliceLocation)
21
+ location!: SliceLocation;
22
+
23
+ /**
24
+ * Every slice active on the screen; may be empty.
25
+ */
26
+ @field(SliceLocation, true)
27
+ activeSlices!: SliceLocation[];
28
+
29
+ /**
30
+ * The screen.
31
+ */
32
+ @field(NoteScreen)
33
+ screen!: NoteScreen;
34
+
35
+ /**
36
+ * The route.
37
+ */
38
+ @field(String)
39
+ route!: string;
40
+
41
+ /**
42
+ * The open dialog, {@link NoDialog} when none was open.
43
+ */
44
+ @field(NoteDialog)
45
+ dialog!: NoteDialog;
46
+
47
+ /**
48
+ * Identifiers of model elements, supplied by the host and keyed by what they identify; may be empty.
49
+ */
50
+ @field(Object)
51
+ modelReferences!: Record<string, string>;
52
+
53
+ /**
54
+ * The correlation id of the command or query that ran last in the user's view, when there is one.
55
+ */
56
+ @field(Guid)
57
+ correlationId!: Guid;
58
+ }
@@ -0,0 +1,25 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Contracts.Context.NoteDialog. Time: 2026-11-01T11:55:12.6707473Z. Hash: 9140B1D933F084E2FC5D240013C56A3D3078A8CE41E4C61A5A4C0141FC797623
6
+ import { field } from '@cratis/fundamentals';
7
+ import { SliceLocation } from '../Reporting/SliceLocation';
8
+
9
+ /**
10
+ * The dialog that was open when the user gave a note.
11
+ */
12
+ export class NoteDialog {
13
+
14
+ /**
15
+ * The title of the dialog.
16
+ */
17
+ @field(String)
18
+ dialogTitle!: string;
19
+
20
+ /**
21
+ * Where in the application the dialog belongs, as Arc resolves it.
22
+ */
23
+ @field(SliceLocation)
24
+ location!: SliceLocation;
25
+ }
@@ -0,0 +1,30 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Contracts.Context.NoteScreen. Time: 2026-11-01T11:55:12.6707473Z. Hash: 5864932E6D5109B38EFB7E94156AD2AD1170E53EDD900F02C64FCAAB71D19EAA
6
+ import { field } from '@cratis/fundamentals';
7
+
8
+ /**
9
+ * The screen the user was on when they gave a note.
10
+ */
11
+ export class NoteScreen {
12
+
13
+ /**
14
+ * The id of the screen.
15
+ */
16
+ @field(String)
17
+ screenId!: string;
18
+
19
+ /**
20
+ * The name of the screen.
21
+ */
22
+ @field(String)
23
+ screenName!: string;
24
+
25
+ /**
26
+ * The path of the screen.
27
+ */
28
+ @field(String)
29
+ screenPath!: string;
30
+ }
@@ -0,0 +1,6 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './NoteContext';
5
+ export * from './NoteDialog';
6
+ export * from './NoteScreen';
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Contracts.Giving.NoteKind. Time: 2026-11-01T11:55:12.6707473Z. Hash: 15D6EB3573A54ADE49BD4014FDE1173E8F4F5B91DCA9BE625F2CEEB23A430007
6
+ /**
7
+ * What kind of feedback a note is.
8
+ */
9
+ export enum NoteKind {
10
+ problem = 0,
11
+ suggestion = 1,
12
+ question = 2,
13
+ praise = 3,
14
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './NoteKind';
@@ -0,0 +1,30 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Usher.Contracts.Reporting.SliceLocation. Time: 2026-11-01T11:55:12.6707473Z. Hash: 43F1EEEB0FFCB772AA0F2633DFF9FAC94AADE89AB1858F453B61A86B87327956
6
+ import { field } from '@cratis/fundamentals';
7
+
8
+ /**
9
+ * Where in the application an issue happened, as the module, feature and slice Arc resolves - on the backend from the executing command or query, in the frontend from the component hierarchy. A part Arc cannot resolve is `NotSet`, never absent.
10
+ */
11
+ export class SliceLocation {
12
+
13
+ /**
14
+ * The module.
15
+ */
16
+ @field(String)
17
+ module!: string;
18
+
19
+ /**
20
+ * The feature within the module.
21
+ */
22
+ @field(String)
23
+ feature!: string;
24
+
25
+ /**
26
+ * The slice within the feature.
27
+ */
28
+ @field(String)
29
+ slice!: string;
30
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './SliceLocation';
@@ -0,0 +1,146 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-01T11:55:12.6707473Z. Hash: A44F5BE208BFB2B1A5C292EA13726509BA682B5935BC2C6C19AC7C32CBB5911D
6
+ import { Command, CommandValidator } from '@cratis/arc/commands';
7
+ import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
8
+ import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
9
+ import { PickedComponent } from '../../Contracts/Components/PickedComponent';
10
+ import { NoteContext } from '../../Contracts/Context/NoteContext';
11
+ import { NoteKind } from '../../Contracts/Giving/NoteKind';
12
+ import { Guid } from '@cratis/fundamentals';
13
+
14
+ /**
15
+ * The user picked a component and wrote text about it. The property changes they suggested in the same picking session share its note id. Who gives it is taken from the signed-in identity, never from the request.
16
+ */
17
+ export interface IGiveNoteOnComponent {
18
+
19
+ /**
20
+ * The component the user picked.
21
+ */
22
+ component?: PickedComponent;
23
+
24
+ /**
25
+ * What the user is looking at.
26
+ */
27
+ context?: NoteContext;
28
+
29
+ /**
30
+ * What kind of feedback it is.
31
+ */
32
+ kind?: NoteKind;
33
+
34
+ /**
35
+ * The id of the note: new, or the one the picking session's property changes were suggested on.
36
+ */
37
+ noteId?: Guid;
38
+
39
+ /**
40
+ * What the user writes.
41
+ */
42
+ text?: string;
43
+ }
44
+
45
+ export class GiveNoteOnComponentValidator extends CommandValidator<IGiveNoteOnComponent> {
46
+ constructor() {
47
+ super();
48
+ this.ruleFor(c => c.component).notNull().withMessage('Pick a component.');
49
+ this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');
50
+ this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');
51
+ this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');
52
+ }
53
+ }
54
+
55
+ /**
56
+ * The user picked a component and wrote text about it. The property changes they suggested in the same picking session share its note id. Who gives it is taken from the signed-in identity, never from the request.
57
+ */
58
+ export class GiveNoteOnComponent extends Command<IGiveNoteOnComponent> implements IGiveNoteOnComponent {
59
+ static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnComponent');
60
+ readonly route: string = '/api/giving/give-note-on-component';
61
+ readonly validation: CommandValidator = new GiveNoteOnComponentValidator();
62
+ readonly treatWarningsAsErrors: boolean = false;
63
+ readonly roles: string[] = [];
64
+ readonly propertyDescriptors: PropertyDescriptor[] = [
65
+ new PropertyDescriptor('component', PickedComponent, false),
66
+ new PropertyDescriptor('context', NoteContext, false),
67
+ new PropertyDescriptor('kind', Number, false),
68
+ new PropertyDescriptor('noteId', Guid, false),
69
+ new PropertyDescriptor('text', String, false),
70
+ ];
71
+
72
+ #component!: PickedComponent;
73
+ #context!: NoteContext;
74
+ #kind!: NoteKind;
75
+ #noteId!: Guid;
76
+ #text!: string;
77
+
78
+ constructor() {
79
+ super(Object, false);
80
+ }
81
+
82
+ get requestParameters(): string[] {
83
+ return [
84
+ ];
85
+ }
86
+
87
+ /**
88
+ * The component the user picked.
89
+ */
90
+ get component(): PickedComponent {
91
+ return this.#component;
92
+ }
93
+
94
+ set component(value: PickedComponent) {
95
+ this.#component = value;
96
+ this.propertyChanged('component');
97
+ }
98
+ /**
99
+ * What the user is looking at.
100
+ */
101
+ get context(): NoteContext {
102
+ return this.#context;
103
+ }
104
+
105
+ set context(value: NoteContext) {
106
+ this.#context = value;
107
+ this.propertyChanged('context');
108
+ }
109
+ /**
110
+ * What kind of feedback it is.
111
+ */
112
+ get kind(): NoteKind {
113
+ return this.#kind;
114
+ }
115
+
116
+ set kind(value: NoteKind) {
117
+ this.#kind = value;
118
+ this.propertyChanged('kind');
119
+ }
120
+ /**
121
+ * The id of the note: new, or the one the picking session's property changes were suggested on.
122
+ */
123
+ get noteId(): Guid {
124
+ return this.#noteId;
125
+ }
126
+
127
+ set noteId(value: Guid) {
128
+ this.#noteId = value;
129
+ this.propertyChanged('noteId');
130
+ }
131
+ /**
132
+ * What the user writes.
133
+ */
134
+ get text(): string {
135
+ return this.#text;
136
+ }
137
+
138
+ set text(value: string) {
139
+ this.#text = value;
140
+ this.propertyChanged('text');
141
+ }
142
+
143
+ static use(initialValues?: IGiveNoteOnComponent): [GiveNoteOnComponent, SetCommandValues<IGiveNoteOnComponent>, ClearCommandValues] {
144
+ return useCommand<GiveNoteOnComponent, IGiveNoteOnComponent>(GiveNoteOnComponent, initialValues);
145
+ }
146
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './GiveNoteOnComponent';
@@ -0,0 +1,126 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-01T11:55:12.6707473Z. Hash: E16E92B294B3749B22A6EE3710E363A25997107CB34220EBC09AF9CE22B3EB6A
6
+ import { Command, CommandValidator } from '@cratis/arc/commands';
7
+ import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
8
+ import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
9
+ import { NoteContext } from '../../Contracts/Context/NoteContext';
10
+ import { NoteKind } from '../../Contracts/Giving/NoteKind';
11
+ import { Guid } from '@cratis/fundamentals';
12
+
13
+ /**
14
+ * The user gives feedback about what is on screen now: the default action of the feedback button. Who gives it is taken from the signed-in identity, never from the request.
15
+ */
16
+ export interface IGiveNoteOnContext {
17
+
18
+ /**
19
+ * What the user is looking at.
20
+ */
21
+ context?: NoteContext;
22
+
23
+ /**
24
+ * What kind of feedback it is.
25
+ */
26
+ kind?: NoteKind;
27
+
28
+ /**
29
+ * The id of the new note, chosen by the caller so a retried command does not give a second note.
30
+ */
31
+ noteId?: Guid;
32
+
33
+ /**
34
+ * What the user writes.
35
+ */
36
+ text?: string;
37
+ }
38
+
39
+ export class GiveNoteOnContextValidator extends CommandValidator<IGiveNoteOnContext> {
40
+ constructor() {
41
+ super();
42
+ this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');
43
+ this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');
44
+ this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');
45
+ }
46
+ }
47
+
48
+ /**
49
+ * The user gives feedback about what is on screen now: the default action of the feedback button. Who gives it is taken from the signed-in identity, never from the request.
50
+ */
51
+ export class GiveNoteOnContext extends Command<IGiveNoteOnContext> implements IGiveNoteOnContext {
52
+ static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnContext');
53
+ readonly route: string = '/api/giving/give-note-on-context';
54
+ readonly validation: CommandValidator = new GiveNoteOnContextValidator();
55
+ readonly treatWarningsAsErrors: boolean = false;
56
+ readonly roles: string[] = [];
57
+ readonly propertyDescriptors: PropertyDescriptor[] = [
58
+ new PropertyDescriptor('context', NoteContext, false),
59
+ new PropertyDescriptor('kind', Number, false),
60
+ new PropertyDescriptor('noteId', Guid, false),
61
+ new PropertyDescriptor('text', String, false),
62
+ ];
63
+
64
+ #context!: NoteContext;
65
+ #kind!: NoteKind;
66
+ #noteId!: Guid;
67
+ #text!: string;
68
+
69
+ constructor() {
70
+ super(Object, false);
71
+ }
72
+
73
+ get requestParameters(): string[] {
74
+ return [
75
+ ];
76
+ }
77
+
78
+ /**
79
+ * What the user is looking at.
80
+ */
81
+ get context(): NoteContext {
82
+ return this.#context;
83
+ }
84
+
85
+ set context(value: NoteContext) {
86
+ this.#context = value;
87
+ this.propertyChanged('context');
88
+ }
89
+ /**
90
+ * What kind of feedback it is.
91
+ */
92
+ get kind(): NoteKind {
93
+ return this.#kind;
94
+ }
95
+
96
+ set kind(value: NoteKind) {
97
+ this.#kind = value;
98
+ this.propertyChanged('kind');
99
+ }
100
+ /**
101
+ * The id of the new note, chosen by the caller so a retried command does not give a second note.
102
+ */
103
+ get noteId(): Guid {
104
+ return this.#noteId;
105
+ }
106
+
107
+ set noteId(value: Guid) {
108
+ this.#noteId = value;
109
+ this.propertyChanged('noteId');
110
+ }
111
+ /**
112
+ * What the user writes.
113
+ */
114
+ get text(): string {
115
+ return this.#text;
116
+ }
117
+
118
+ set text(value: string) {
119
+ this.#text = value;
120
+ this.propertyChanged('text');
121
+ }
122
+
123
+ static use(initialValues?: IGiveNoteOnContext): [GiveNoteOnContext, SetCommandValues<IGiveNoteOnContext>, ClearCommandValues] {
124
+ return useCommand<GiveNoteOnContext, IGiveNoteOnContext>(GiveNoteOnContext, initialValues);
125
+ }
126
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './GiveNoteOnContext';