@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,113 @@
1
+ 'use strict';
2
+
3
+ var commands = require('@cratis/arc/commands');
4
+ var commands$1 = require('@cratis/arc.react/commands');
5
+ var reflection = require('@cratis/arc/reflection');
6
+ var PickedComponent = require('../../Contracts/Components/PickedComponent.js');
7
+ var NoteContext = require('../../Contracts/Context/NoteContext.js');
8
+ var fundamentals = require('@cratis/fundamentals');
9
+
10
+ // Copyright (c) Cratis. All rights reserved.
11
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
12
+ // **DO NOT EDIT** - This file is an automatically generated file.
13
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-01T11:55:12.6707473Z. Hash: 6C7D0524C92397ABC562D8899CC17DDFA41C162C4EA857CB8299EE032524934C
14
+ class SuggestComponentPropertyChangeValidator extends commands.CommandValidator {
15
+ constructor(){
16
+ super();
17
+ this.ruleFor((c)=>c.component).notNull().withMessage('Pick a component.');
18
+ this.ruleFor((c)=>c.context).notNull().withMessage('A note needs to know what you were looking at.');
19
+ this.ruleFor((c)=>c.currentValue).maxLength(1000).withMessage('Keep the current value within 1000 characters.');
20
+ this.ruleFor((c)=>c.property).notEmpty().withMessage('Name the property you suggest changing.');
21
+ this.ruleFor((c)=>c.suggestedValue).maxLength(1000).withMessage('Keep the suggested value within 1000 characters.');
22
+ }
23
+ }
24
+ /**
25
+ * The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.
26
+ */ class SuggestComponentPropertyChange extends commands.Command {
27
+ static sliceLocation = new reflection.SliceLocation('', 'Giving', 'SuggestComponentPropertyChange');
28
+ route = '/api/giving/suggest-component-property-change';
29
+ validation = new SuggestComponentPropertyChangeValidator();
30
+ treatWarningsAsErrors = false;
31
+ roles = [];
32
+ propertyDescriptors = [
33
+ new reflection.PropertyDescriptor('component', PickedComponent.PickedComponent, false),
34
+ new reflection.PropertyDescriptor('context', NoteContext.NoteContext, false),
35
+ new reflection.PropertyDescriptor('currentValue', String, false),
36
+ new reflection.PropertyDescriptor('noteId', fundamentals.Guid, false),
37
+ new reflection.PropertyDescriptor('property', String, false),
38
+ new reflection.PropertyDescriptor('suggestedValue', String, false)
39
+ ];
40
+ #component;
41
+ #context;
42
+ #currentValue;
43
+ #noteId;
44
+ #property;
45
+ #suggestedValue;
46
+ constructor(){
47
+ super(Object, false);
48
+ }
49
+ get requestParameters() {
50
+ return [];
51
+ }
52
+ /**
53
+ * The component the user picked.
54
+ */ get component() {
55
+ return this.#component;
56
+ }
57
+ set component(value) {
58
+ this.#component = value;
59
+ this.propertyChanged('component');
60
+ }
61
+ /**
62
+ * What the user is looking at.
63
+ */ get context() {
64
+ return this.#context;
65
+ }
66
+ set context(value) {
67
+ this.#context = value;
68
+ this.propertyChanged('context');
69
+ }
70
+ /**
71
+ * The value the property has.
72
+ */ get currentValue() {
73
+ return this.#currentValue;
74
+ }
75
+ set currentValue(value) {
76
+ this.#currentValue = value;
77
+ this.propertyChanged('currentValue');
78
+ }
79
+ /**
80
+ * The id of the picking session's note: new, or the one the session's earlier suggestions were made on.
81
+ */ get noteId() {
82
+ return this.#noteId;
83
+ }
84
+ set noteId(value) {
85
+ this.#noteId = value;
86
+ this.propertyChanged('noteId');
87
+ }
88
+ /**
89
+ * The property the user changed.
90
+ */ get property() {
91
+ return this.#property;
92
+ }
93
+ set property(value) {
94
+ this.#property = value;
95
+ this.propertyChanged('property');
96
+ }
97
+ /**
98
+ * The value the user suggests.
99
+ */ get suggestedValue() {
100
+ return this.#suggestedValue;
101
+ }
102
+ set suggestedValue(value) {
103
+ this.#suggestedValue = value;
104
+ this.propertyChanged('suggestedValue');
105
+ }
106
+ static use(initialValues) {
107
+ return commands$1.useCommand(SuggestComponentPropertyChange, initialValues);
108
+ }
109
+ }
110
+
111
+ exports.SuggestComponentPropertyChange = SuggestComponentPropertyChange;
112
+ exports.SuggestComponentPropertyChangeValidator = SuggestComponentPropertyChangeValidator;
113
+ //# sourceMappingURL=SuggestComponentPropertyChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuggestComponentPropertyChange.js","sources":["../../../../Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-01T11:55:12.6707473Z. Hash: 6C7D0524C92397ABC562D8899CC17DDFA41C162C4EA857CB8299EE032524934C\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { PickedComponent } from '../../Contracts/Components/PickedComponent';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.\n */\nexport interface ISuggestComponentPropertyChange {\n\n /**\n * The component the user picked.\n */\n component?: PickedComponent;\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * The value the property has.\n */\n currentValue?: string;\n\n /**\n * The id of the picking session's note: new, or the one the session's earlier suggestions were made on.\n */\n noteId?: Guid;\n\n /**\n * The property the user changed.\n */\n property?: string;\n\n /**\n * The value the user suggests.\n */\n suggestedValue?: string;\n}\n\nexport class SuggestComponentPropertyChangeValidator extends CommandValidator<ISuggestComponentPropertyChange> {\n constructor() {\n super();\n this.ruleFor(c => c.component).notNull().withMessage('Pick a component.');\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.currentValue).maxLength(1000).withMessage('Keep the current value within 1000 characters.');\n this.ruleFor(c => c.property).notEmpty().withMessage('Name the property you suggest changing.');\n this.ruleFor(c => c.suggestedValue).maxLength(1000).withMessage('Keep the suggested value within 1000 characters.');\n }\n}\n\n/**\n * The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.\n */\nexport class SuggestComponentPropertyChange extends Command<ISuggestComponentPropertyChange> implements ISuggestComponentPropertyChange {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'SuggestComponentPropertyChange');\n readonly route: string = '/api/giving/suggest-component-property-change';\n readonly validation: CommandValidator = new SuggestComponentPropertyChangeValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('component', PickedComponent, false),\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('currentValue', String, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('property', String, false),\n new PropertyDescriptor('suggestedValue', String, false),\n ];\n\n #component!: PickedComponent;\n #context!: NoteContext;\n #currentValue!: string;\n #noteId!: Guid;\n #property!: string;\n #suggestedValue!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The component the user picked.\n */\n get component(): PickedComponent {\n return this.#component;\n }\n\n set component(value: PickedComponent) {\n this.#component = value;\n this.propertyChanged('component');\n }\n /**\n * What the user is looking at.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * The value the property has.\n */\n get currentValue(): string {\n return this.#currentValue;\n }\n\n set currentValue(value: string) {\n this.#currentValue = value;\n this.propertyChanged('currentValue');\n }\n /**\n * The id of the picking session's note: new, or the one the session's earlier suggestions were made on.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * The property the user changed.\n */\n get property(): string {\n return this.#property;\n }\n\n set property(value: string) {\n this.#property = value;\n this.propertyChanged('property');\n }\n /**\n * The value the user suggests.\n */\n get suggestedValue(): string {\n return this.#suggestedValue;\n }\n\n set suggestedValue(value: string) {\n this.#suggestedValue = value;\n this.propertyChanged('suggestedValue');\n }\n\n static use(initialValues?: ISuggestComponentPropertyChange): [SuggestComponentPropertyChange, SetCommandValues<ISuggestComponentPropertyChange>, ClearCommandValues] {\n return useCommand<SuggestComponentPropertyChange, ISuggestComponentPropertyChange>(SuggestComponentPropertyChange, initialValues);\n }\n}\n"],"names":["SuggestComponentPropertyChangeValidator","CommandValidator","ruleFor","c","component","notNull","withMessage","context","currentValue","maxLength","property","notEmpty","suggestedValue","SuggestComponentPropertyChange","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","PickedComponent","NoteContext","String","Guid","Object","requestParameters","value","propertyChanged","noteId","use","initialValues","useCommand"],"mappings":";;;;;;;;;AAAA;AACA;AAEA;AACA;AA4CO,MAAMA,uCAAAA,SAAgDC,yBAAAA,CAAAA;IACzD,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,SAAS,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,mBAAA,CAAA;QACrD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,OAAO,CAAA,CAAEF,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;AACnD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEK,YAAY,CAAA,CAAEC,SAAS,CAAC,IAAA,CAAA,CAAMH,WAAW,CAAC,gDAAA,CAAA;QAC9D,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEO,QAAQ,CAAA,CAAEC,QAAQ,EAAA,CAAGL,WAAW,CAAC,yCAAA,CAAA;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EAA2G;AACjK,QAAA,OAAOC,sBAA4ErB,8BAAAA,EAAgCoB,aAAAA,CAAAA;AACvH,IAAA;AACJ;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './SuggestComponentPropertyChange';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Giving/SuggestComponentPropertyChange/index.ts"],"names":[],"mappings":"AAGA,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,111 @@
1
+ import { ChangeSet, ObservableQueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
2
+ import { ObservableQueryWhen, SetPage, SetPageSize, SetSorting } from '@cratis/arc.react/queries';
3
+ import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
4
+ import { Guid } from '@cratis/fundamentals';
5
+ import { NoteKind } from '../Contracts/Giving/NoteKind';
6
+ import { NoteScreen } from '../Contracts/Context/NoteScreen';
7
+ import { NoteStatus } from './NoteStatus';
8
+ import { NoteTarget } from './NoteTarget';
9
+ import { SliceLocation } from '../Contracts/Reporting/SliceLocation';
10
+ import { SuggestedPropertyChange } from './SuggestedPropertyChange';
11
+ declare class MyNotesSortBy {
12
+ readonly query: MyNotes;
13
+ private _component;
14
+ private _givenAt;
15
+ private _givenBy;
16
+ private _id;
17
+ private _kind;
18
+ private _lastActivityAt;
19
+ private _location;
20
+ private _propertyChanges;
21
+ private _screen;
22
+ private _slices;
23
+ private _status;
24
+ private _statusDetail;
25
+ private _target;
26
+ private _text;
27
+ constructor(query: MyNotes);
28
+ get component(): SortingActionsForObservableQuery<MyNote[]>;
29
+ get givenAt(): SortingActionsForObservableQuery<MyNote[]>;
30
+ get givenBy(): SortingActionsForObservableQuery<MyNote[]>;
31
+ get id(): SortingActionsForObservableQuery<MyNote[]>;
32
+ get kind(): SortingActionsForObservableQuery<MyNote[]>;
33
+ get lastActivityAt(): SortingActionsForObservableQuery<MyNote[]>;
34
+ get location(): SortingActionsForObservableQuery<MyNote[]>;
35
+ get propertyChanges(): SortingActionsForObservableQuery<MyNote[]>;
36
+ get screen(): SortingActionsForObservableQuery<MyNote[]>;
37
+ get slices(): SortingActionsForObservableQuery<MyNote[]>;
38
+ get status(): SortingActionsForObservableQuery<MyNote[]>;
39
+ get statusDetail(): SortingActionsForObservableQuery<MyNote[]>;
40
+ get target(): SortingActionsForObservableQuery<MyNote[]>;
41
+ get text(): SortingActionsForObservableQuery<MyNote[]>;
42
+ }
43
+ declare class MyNotesSortByWithoutQuery {
44
+ private _component;
45
+ private _givenAt;
46
+ private _givenBy;
47
+ private _id;
48
+ private _kind;
49
+ private _lastActivityAt;
50
+ private _location;
51
+ private _propertyChanges;
52
+ private _screen;
53
+ private _slices;
54
+ private _status;
55
+ private _statusDetail;
56
+ private _target;
57
+ private _text;
58
+ get component(): SortingActions;
59
+ get givenAt(): SortingActions;
60
+ get givenBy(): SortingActions;
61
+ get id(): SortingActions;
62
+ get kind(): SortingActions;
63
+ get lastActivityAt(): SortingActions;
64
+ get location(): SortingActions;
65
+ get propertyChanges(): SortingActions;
66
+ get screen(): SortingActions;
67
+ get slices(): SortingActions;
68
+ get status(): SortingActions;
69
+ get statusDetail(): SortingActions;
70
+ get target(): SortingActions;
71
+ get text(): SortingActions;
72
+ }
73
+ export declare class MyNotes extends ObservableQueryFor<MyNote[]> {
74
+ static readonly sliceLocation: ArcSliceLocation;
75
+ readonly route: string;
76
+ readonly queryName: string;
77
+ readonly treatWarningsAsErrors: boolean;
78
+ readonly roles: string[];
79
+ readonly defaultValue: MyNote[];
80
+ private readonly _sortBy;
81
+ private static readonly _sortBy;
82
+ constructor();
83
+ get requiredRequestParameters(): string[];
84
+ readonly parameterDescriptors: ParameterDescriptor[];
85
+ get sortBy(): MyNotesSortBy;
86
+ static get sortBy(): MyNotesSortByWithoutQuery;
87
+ static use(sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting];
88
+ static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting, SetPage, SetPageSize];
89
+ static useSuspense(sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting];
90
+ static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting, SetPage, SetPageSize];
91
+ static useChangeStream(getKey?: (item: MyNote) => unknown, sorting?: Sorting): ChangeSet<MyNote>;
92
+ static when(condition: boolean): ObservableQueryWhen<MyNotes, MyNote[]>;
93
+ }
94
+ export declare class MyNote {
95
+ id: Guid;
96
+ givenBy: string;
97
+ target: NoteTarget;
98
+ kind: NoteKind;
99
+ text: string;
100
+ location: SliceLocation;
101
+ screen: NoteScreen;
102
+ slices: SliceLocation[];
103
+ component: string;
104
+ propertyChanges: SuggestedPropertyChange[];
105
+ status: NoteStatus;
106
+ statusDetail: string;
107
+ givenAt: Date;
108
+ lastActivityAt: Date;
109
+ }
110
+ export {};
111
+ //# sourceMappingURL=MyNote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyNote.d.ts","sourceRoot":"","sources":["../../../Listing/MyNote.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAU,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAC7J,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAuI,MAAM,2BAA2B,CAAC;AACvO,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,IAAI,EAAS,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,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EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIrI,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC;IAIhG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;CAG1E;AAKD,qBAAa,MAAM;IAMf,EAAE,EAAG,IAAI,CAAC;IAMV,OAAO,EAAG,MAAM,CAAC;IAMjB,MAAM,EAAG,UAAU,CAAC;IAMpB,IAAI,EAAG,QAAQ,CAAC;IAMhB,IAAI,EAAG,MAAM,CAAC;IAMd,QAAQ,EAAG,aAAa,CAAC;IAMzB,MAAM,EAAG,UAAU,CAAC;IAMpB,MAAM,EAAG,aAAa,EAAE,CAAC;IAMzB,SAAS,EAAG,MAAM,CAAC;IAMnB,eAAe,EAAG,uBAAuB,EAAE,CAAC;IAM5C,MAAM,EAAG,UAAU,CAAC;IAMpB,YAAY,EAAG,MAAM,CAAC;IAMtB,OAAO,EAAG,IAAI,CAAC;IAMf,cAAc,EAAG,IAAI,CAAC;CACzB"}
@@ -0,0 +1,315 @@
1
+ 'use strict';
2
+
3
+ var queries = require('@cratis/arc/queries');
4
+ var queries$1 = require('@cratis/arc.react/queries');
5
+ var reflection = require('@cratis/arc/reflection');
6
+ var fundamentals = require('@cratis/fundamentals');
7
+ var NoteKind = require('../Contracts/Giving/NoteKind.js');
8
+ var NoteScreen = require('../Contracts/Context/NoteScreen.js');
9
+ var NoteStatus = require('./NoteStatus.js');
10
+ var NoteTarget = require('./NoteTarget.js');
11
+ var SliceLocation = require('../Contracts/Reporting/SliceLocation.js');
12
+ var SuggestedPropertyChange = require('./SuggestedPropertyChange.js');
13
+
14
+ function _ts_decorate(decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
17
+ r = Reflect.decorate(decorators, target, key, desc);
18
+ } else {
19
+ for(var i = decorators.length - 1; i >= 0; i--){
20
+ if (d = decorators[i]) {
21
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ }
23
+ }
24
+ }
25
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
26
+ }
27
+ function _ts_metadata(metadataKey, metadataValue) {
28
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
29
+ return Reflect.metadata(metadataKey, metadataValue);
30
+ }
31
+ }
32
+ class MyNotesSortBy {
33
+ query;
34
+ _component;
35
+ _givenAt;
36
+ _givenBy;
37
+ _id;
38
+ _kind;
39
+ _lastActivityAt;
40
+ _location;
41
+ _propertyChanges;
42
+ _screen;
43
+ _slices;
44
+ _status;
45
+ _statusDetail;
46
+ _target;
47
+ _text;
48
+ constructor(query){
49
+ this.query = query;
50
+ this._component = new queries.SortingActionsForObservableQuery('component', query);
51
+ this._givenAt = new queries.SortingActionsForObservableQuery('givenAt', query);
52
+ this._givenBy = new queries.SortingActionsForObservableQuery('givenBy', query);
53
+ this._id = new queries.SortingActionsForObservableQuery('id', query);
54
+ this._kind = new queries.SortingActionsForObservableQuery('kind', query);
55
+ this._lastActivityAt = new queries.SortingActionsForObservableQuery('lastActivityAt', query);
56
+ this._location = new queries.SortingActionsForObservableQuery('location', query);
57
+ this._propertyChanges = new queries.SortingActionsForObservableQuery('propertyChanges', query);
58
+ this._screen = new queries.SortingActionsForObservableQuery('screen', query);
59
+ this._slices = new queries.SortingActionsForObservableQuery('slices', query);
60
+ this._status = new queries.SortingActionsForObservableQuery('status', query);
61
+ this._statusDetail = new queries.SortingActionsForObservableQuery('statusDetail', query);
62
+ this._target = new queries.SortingActionsForObservableQuery('target', query);
63
+ this._text = new queries.SortingActionsForObservableQuery('text', query);
64
+ }
65
+ get component() {
66
+ return this._component;
67
+ }
68
+ get givenAt() {
69
+ return this._givenAt;
70
+ }
71
+ get givenBy() {
72
+ return this._givenBy;
73
+ }
74
+ get id() {
75
+ return this._id;
76
+ }
77
+ get kind() {
78
+ return this._kind;
79
+ }
80
+ get lastActivityAt() {
81
+ return this._lastActivityAt;
82
+ }
83
+ get location() {
84
+ return this._location;
85
+ }
86
+ get propertyChanges() {
87
+ return this._propertyChanges;
88
+ }
89
+ get screen() {
90
+ return this._screen;
91
+ }
92
+ get slices() {
93
+ return this._slices;
94
+ }
95
+ get status() {
96
+ return this._status;
97
+ }
98
+ get statusDetail() {
99
+ return this._statusDetail;
100
+ }
101
+ get target() {
102
+ return this._target;
103
+ }
104
+ get text() {
105
+ return this._text;
106
+ }
107
+ }
108
+ class MyNotesSortByWithoutQuery {
109
+ _component = new queries.SortingActions('component');
110
+ _givenAt = new queries.SortingActions('givenAt');
111
+ _givenBy = new queries.SortingActions('givenBy');
112
+ _id = new queries.SortingActions('id');
113
+ _kind = new queries.SortingActions('kind');
114
+ _lastActivityAt = new queries.SortingActions('lastActivityAt');
115
+ _location = new queries.SortingActions('location');
116
+ _propertyChanges = new queries.SortingActions('propertyChanges');
117
+ _screen = new queries.SortingActions('screen');
118
+ _slices = new queries.SortingActions('slices');
119
+ _status = new queries.SortingActions('status');
120
+ _statusDetail = new queries.SortingActions('statusDetail');
121
+ _target = new queries.SortingActions('target');
122
+ _text = new queries.SortingActions('text');
123
+ get component() {
124
+ return this._component;
125
+ }
126
+ get givenAt() {
127
+ return this._givenAt;
128
+ }
129
+ get givenBy() {
130
+ return this._givenBy;
131
+ }
132
+ get id() {
133
+ return this._id;
134
+ }
135
+ get kind() {
136
+ return this._kind;
137
+ }
138
+ get lastActivityAt() {
139
+ return this._lastActivityAt;
140
+ }
141
+ get location() {
142
+ return this._location;
143
+ }
144
+ get propertyChanges() {
145
+ return this._propertyChanges;
146
+ }
147
+ get screen() {
148
+ return this._screen;
149
+ }
150
+ get slices() {
151
+ return this._slices;
152
+ }
153
+ get status() {
154
+ return this._status;
155
+ }
156
+ get statusDetail() {
157
+ return this._statusDetail;
158
+ }
159
+ get target() {
160
+ return this._target;
161
+ }
162
+ get text() {
163
+ return this._text;
164
+ }
165
+ }
166
+ /**
167
+ * Observes the notes the signed-in user gave, in the current tenant, most recent activity first.
168
+ */ class MyNotes extends queries.ObservableQueryFor {
169
+ static sliceLocation = new reflection.SliceLocation('', '', 'Listing');
170
+ route = '/api/listing/my-notes';
171
+ queryName = 'Cratis.Showrunner.Notes.Listing.MyNote.MyNotes';
172
+ treatWarningsAsErrors = false;
173
+ roles = [];
174
+ defaultValue = [];
175
+ _sortBy;
176
+ static _sortBy = new MyNotesSortByWithoutQuery();
177
+ constructor(){
178
+ super(MyNote, true);
179
+ this._sortBy = new MyNotesSortBy(this);
180
+ }
181
+ get requiredRequestParameters() {
182
+ return [];
183
+ }
184
+ parameterDescriptors = [];
185
+ get sortBy() {
186
+ return this._sortBy;
187
+ }
188
+ static get sortBy() {
189
+ return this._sortBy;
190
+ }
191
+ static use(sorting) {
192
+ return queries$1.useObservableQuery(MyNotes, undefined, sorting);
193
+ }
194
+ static useWithPaging(pageSize, sorting) {
195
+ return queries$1.useObservableQueryWithPaging(MyNotes, new queries.Paging(0, pageSize), undefined, sorting);
196
+ }
197
+ static useSuspense(sorting) {
198
+ return queries$1.useSuspenseObservableQuery(MyNotes, undefined, sorting);
199
+ }
200
+ static useSuspenseWithPaging(pageSize, sorting) {
201
+ return queries$1.useSuspenseObservableQueryWithPaging(MyNotes, new queries.Paging(0, pageSize), undefined, sorting);
202
+ }
203
+ static useChangeStream(getKey, sorting) {
204
+ return queries$1.useChangeStream(MyNotes, undefined, getKey, sorting);
205
+ }
206
+ static when(condition) {
207
+ return new queries$1.ObservableQueryWhen(MyNotes, condition);
208
+ }
209
+ }
210
+ /**
211
+ * One of the user's notes, as the list of their notes shows it, with where it is: given, acknowledged, addressed, declined or withdrawn.
212
+ */ class MyNote {
213
+ /**
214
+ * The note.
215
+ */ id;
216
+ /**
217
+ * Who gave the note.
218
+ */ givenBy;
219
+ /**
220
+ * What the note is about.
221
+ */ target;
222
+ /**
223
+ * What kind of feedback it is.
224
+ */ kind;
225
+ /**
226
+ * What the giver wrote; empty on a note that has suggested property changes only.
227
+ */ text;
228
+ /**
229
+ * Where in the application the giver was.
230
+ */ location;
231
+ /**
232
+ * The screen the giver was on.
233
+ */ screen;
234
+ /**
235
+ * The slices the giver picked; empty unless the note is about slices.
236
+ */ slices;
237
+ /**
238
+ * The name of the component the giver picked; {@link NotSet} unless the note is about a component.
239
+ */ component;
240
+ /**
241
+ * The property changes the giver suggested.
242
+ */ propertyChanges;
243
+ /**
244
+ * Where the note is.
245
+ */ status;
246
+ /**
247
+ * The version that addresses the note or why it is declined; empty otherwise.
248
+ */ statusDetail;
249
+ /**
250
+ * When the giver gave it.
251
+ */ givenAt;
252
+ /**
253
+ * When anything last happened on it.
254
+ */ lastActivityAt;
255
+ }
256
+ _ts_decorate([
257
+ fundamentals.field(fundamentals.Guid),
258
+ _ts_metadata("design:type", typeof fundamentals.Guid === "undefined" ? Object : fundamentals.Guid)
259
+ ], MyNote.prototype, "id", void 0);
260
+ _ts_decorate([
261
+ fundamentals.field(String),
262
+ _ts_metadata("design:type", String)
263
+ ], MyNote.prototype, "givenBy", void 0);
264
+ _ts_decorate([
265
+ fundamentals.field(Number),
266
+ _ts_metadata("design:type", typeof NoteTarget.NoteTarget === "undefined" ? Object : NoteTarget.NoteTarget)
267
+ ], MyNote.prototype, "target", void 0);
268
+ _ts_decorate([
269
+ fundamentals.field(Number),
270
+ _ts_metadata("design:type", typeof NoteKind.NoteKind === "undefined" ? Object : NoteKind.NoteKind)
271
+ ], MyNote.prototype, "kind", void 0);
272
+ _ts_decorate([
273
+ fundamentals.field(String),
274
+ _ts_metadata("design:type", String)
275
+ ], MyNote.prototype, "text", void 0);
276
+ _ts_decorate([
277
+ fundamentals.field(SliceLocation.SliceLocation),
278
+ _ts_metadata("design:type", typeof SliceLocation.SliceLocation === "undefined" ? Object : SliceLocation.SliceLocation)
279
+ ], MyNote.prototype, "location", void 0);
280
+ _ts_decorate([
281
+ fundamentals.field(NoteScreen.NoteScreen),
282
+ _ts_metadata("design:type", typeof NoteScreen.NoteScreen === "undefined" ? Object : NoteScreen.NoteScreen)
283
+ ], MyNote.prototype, "screen", void 0);
284
+ _ts_decorate([
285
+ fundamentals.field(SliceLocation.SliceLocation, true),
286
+ _ts_metadata("design:type", Array)
287
+ ], MyNote.prototype, "slices", void 0);
288
+ _ts_decorate([
289
+ fundamentals.field(String),
290
+ _ts_metadata("design:type", String)
291
+ ], MyNote.prototype, "component", void 0);
292
+ _ts_decorate([
293
+ fundamentals.field(SuggestedPropertyChange.SuggestedPropertyChange, true),
294
+ _ts_metadata("design:type", Array)
295
+ ], MyNote.prototype, "propertyChanges", void 0);
296
+ _ts_decorate([
297
+ fundamentals.field(Number),
298
+ _ts_metadata("design:type", typeof NoteStatus.NoteStatus === "undefined" ? Object : NoteStatus.NoteStatus)
299
+ ], MyNote.prototype, "status", void 0);
300
+ _ts_decorate([
301
+ fundamentals.field(String),
302
+ _ts_metadata("design:type", String)
303
+ ], MyNote.prototype, "statusDetail", void 0);
304
+ _ts_decorate([
305
+ fundamentals.field(Date),
306
+ _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
307
+ ], MyNote.prototype, "givenAt", void 0);
308
+ _ts_decorate([
309
+ fundamentals.field(Date),
310
+ _ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
311
+ ], MyNote.prototype, "lastActivityAt", void 0);
312
+
313
+ exports.MyNote = MyNote;
314
+ exports.MyNotes = MyNotes;
315
+ //# sourceMappingURL=MyNote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyNote.js","sources":["../../../Listing/MyNote.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Listing.MyNote, Cratis.Showrunner.Notes.Listing.MyNote. Time: 2026-11-01T11:55:12.6707473Z. Hash: 53DA8F14A2D0432B6BEC55A2F1B97626D62BEC349F30D0775C0AF36A4B481266\nimport { ChangeSet, ObservableQueryFor, Paging, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';\nimport { ObservableQueryWhen, SetPage, SetPageSize, SetSorting, useChangeStream, useObservableQuery, useObservableQueryWithPaging, useSuspenseObservableQuery, useSuspenseObservableQueryWithPaging } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { Guid, field } from '@cratis/fundamentals';\nimport { NoteKind } from '../Contracts/Giving/NoteKind';\nimport { NoteScreen } from '../Contracts/Context/NoteScreen';\nimport { NoteStatus } from './NoteStatus';\nimport { NoteTarget } from './NoteTarget';\nimport { SliceLocation } from '../Contracts/Reporting/SliceLocation';\nimport { SuggestedPropertyChange } from './SuggestedPropertyChange';\n\nclass MyNotesSortBy {\n private _component: SortingActionsForObservableQuery<MyNote[]>;\n private _givenAt: SortingActionsForObservableQuery<MyNote[]>;\n private _givenBy: SortingActionsForObservableQuery<MyNote[]>;\n private _id: SortingActionsForObservableQuery<MyNote[]>;\n private _kind: SortingActionsForObservableQuery<MyNote[]>;\n private _lastActivityAt: SortingActionsForObservableQuery<MyNote[]>;\n private _location: SortingActionsForObservableQuery<MyNote[]>;\n private _propertyChanges: SortingActionsForObservableQuery<MyNote[]>;\n private _screen: SortingActionsForObservableQuery<MyNote[]>;\n private _slices: SortingActionsForObservableQuery<MyNote[]>;\n private _status: SortingActionsForObservableQuery<MyNote[]>;\n private _statusDetail: SortingActionsForObservableQuery<MyNote[]>;\n private _target: SortingActionsForObservableQuery<MyNote[]>;\n private _text: SortingActionsForObservableQuery<MyNote[]>;\n\n constructor(readonly query: MyNotes) {\n this._component = new SortingActionsForObservableQuery<MyNote[]>('component', query);\n this._givenAt = new SortingActionsForObservableQuery<MyNote[]>('givenAt', query);\n this._givenBy = new SortingActionsForObservableQuery<MyNote[]>('givenBy', query);\n this._id = new SortingActionsForObservableQuery<MyNote[]>('id', query);\n this._kind = new SortingActionsForObservableQuery<MyNote[]>('kind', query);\n this._lastActivityAt = new SortingActionsForObservableQuery<MyNote[]>('lastActivityAt', query);\n this._location = new SortingActionsForObservableQuery<MyNote[]>('location', query);\n this._propertyChanges = new SortingActionsForObservableQuery<MyNote[]>('propertyChanges', query);\n this._screen = new SortingActionsForObservableQuery<MyNote[]>('screen', query);\n this._slices = new SortingActionsForObservableQuery<MyNote[]>('slices', query);\n this._status = new SortingActionsForObservableQuery<MyNote[]>('status', query);\n this._statusDetail = new SortingActionsForObservableQuery<MyNote[]>('statusDetail', query);\n this._target = new SortingActionsForObservableQuery<MyNote[]>('target', query);\n this._text = new SortingActionsForObservableQuery<MyNote[]>('text', query);\n }\n\n get component(): SortingActionsForObservableQuery<MyNote[]> {\n return this._component;\n }\n get givenAt(): SortingActionsForObservableQuery<MyNote[]> {\n return this._givenAt;\n }\n get givenBy(): SortingActionsForObservableQuery<MyNote[]> {\n return this._givenBy;\n }\n get id(): SortingActionsForObservableQuery<MyNote[]> {\n return this._id;\n }\n get kind(): SortingActionsForObservableQuery<MyNote[]> {\n return this._kind;\n }\n get lastActivityAt(): SortingActionsForObservableQuery<MyNote[]> {\n return this._lastActivityAt;\n }\n get location(): SortingActionsForObservableQuery<MyNote[]> {\n return this._location;\n }\n get propertyChanges(): SortingActionsForObservableQuery<MyNote[]> {\n return this._propertyChanges;\n }\n get screen(): SortingActionsForObservableQuery<MyNote[]> {\n return this._screen;\n }\n get slices(): SortingActionsForObservableQuery<MyNote[]> {\n return this._slices;\n }\n get status(): SortingActionsForObservableQuery<MyNote[]> {\n return this._status;\n }\n get statusDetail(): SortingActionsForObservableQuery<MyNote[]> {\n return this._statusDetail;\n }\n get target(): SortingActionsForObservableQuery<MyNote[]> {\n return this._target;\n }\n get text(): SortingActionsForObservableQuery<MyNote[]> {\n return this._text;\n }\n}\n\nclass MyNotesSortByWithoutQuery {\n private _component: SortingActions = new SortingActions('component');\n private _givenAt: SortingActions = new SortingActions('givenAt');\n private _givenBy: SortingActions = new SortingActions('givenBy');\n private _id: SortingActions = new SortingActions('id');\n private _kind: SortingActions = new SortingActions('kind');\n private _lastActivityAt: SortingActions = new SortingActions('lastActivityAt');\n private _location: SortingActions = new SortingActions('location');\n private _propertyChanges: SortingActions = new SortingActions('propertyChanges');\n private _screen: SortingActions = new SortingActions('screen');\n private _slices: SortingActions = new SortingActions('slices');\n private _status: SortingActions = new SortingActions('status');\n private _statusDetail: SortingActions = new SortingActions('statusDetail');\n private _target: SortingActions = new SortingActions('target');\n private _text: SortingActions = new SortingActions('text');\n\n get component(): SortingActions {\n return this._component;\n }\n get givenAt(): SortingActions {\n return this._givenAt;\n }\n get givenBy(): SortingActions {\n return this._givenBy;\n }\n get id(): SortingActions {\n return this._id;\n }\n get kind(): SortingActions {\n return this._kind;\n }\n get lastActivityAt(): SortingActions {\n return this._lastActivityAt;\n }\n get location(): SortingActions {\n return this._location;\n }\n get propertyChanges(): SortingActions {\n return this._propertyChanges;\n }\n get screen(): SortingActions {\n return this._screen;\n }\n get slices(): SortingActions {\n return this._slices;\n }\n get status(): SortingActions {\n return this._status;\n }\n get statusDetail(): SortingActions {\n return this._statusDetail;\n }\n get target(): SortingActions {\n return this._target;\n }\n get text(): SortingActions {\n return this._text;\n }\n}\n\n\n/**\n * Observes the notes the signed-in user gave, in the current tenant, most recent activity first.\n */\nexport class MyNotes extends ObservableQueryFor<MyNote[]> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Listing');\n readonly route: string = '/api/listing/my-notes';\n readonly queryName: string = 'Cratis.Showrunner.Notes.Listing.MyNote.MyNotes';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: MyNote[] = [];\n private readonly _sortBy: MyNotesSortBy;\n private static readonly _sortBy: MyNotesSortByWithoutQuery = new MyNotesSortByWithoutQuery();\n\n constructor() {\n super(MyNote, true);\n this._sortBy = new MyNotesSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): MyNotesSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): MyNotesSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting] {\n return useObservableQuery<MyNote[], MyNotes>(MyNotes, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting, SetPage, SetPageSize] {\n return useObservableQueryWithPaging<MyNote[], MyNotes>(MyNotes, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting] {\n return useSuspenseObservableQuery<MyNote[], MyNotes>(MyNotes, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting, SetPage, SetPageSize] {\n return useSuspenseObservableQueryWithPaging<MyNote[], MyNotes>(MyNotes, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useChangeStream(getKey?: (item: MyNote) => unknown, sorting?: Sorting): ChangeSet<MyNote> {\n return useChangeStream<MyNote, MyNotes>(MyNotes, undefined, getKey, sorting);\n }\n\n static when(condition: boolean): ObservableQueryWhen<MyNotes, MyNote[]> {\n return new ObservableQueryWhen<MyNotes, MyNote[]>(MyNotes, condition);\n }\n}\n\n/**\n * One of the user's notes, as the list of their notes shows it, with where it is: given, acknowledged, addressed, declined or withdrawn.\n */\nexport class MyNote {\n\n /**\n * The note.\n */\n @field(Guid)\n id!: Guid;\n\n /**\n * Who gave the note.\n */\n @field(String)\n givenBy!: string;\n\n /**\n * What the note is about.\n */\n @field(Number)\n target!: NoteTarget;\n\n /**\n * What kind of feedback it is.\n */\n @field(Number)\n kind!: NoteKind;\n\n /**\n * What the giver wrote; empty on a note that has suggested property changes only.\n */\n @field(String)\n text!: string;\n\n /**\n * Where in the application the giver was.\n */\n @field(SliceLocation)\n location!: SliceLocation;\n\n /**\n * The screen the giver was on.\n */\n @field(NoteScreen)\n screen!: NoteScreen;\n\n /**\n * The slices the giver picked; empty unless the note is about slices.\n */\n @field(SliceLocation, true)\n slices!: SliceLocation[];\n\n /**\n * The name of the component the giver picked; {@link NotSet} unless the note is about a component.\n */\n @field(String)\n component!: string;\n\n /**\n * The property changes the giver suggested.\n */\n @field(SuggestedPropertyChange, true)\n propertyChanges!: SuggestedPropertyChange[];\n\n /**\n * Where the note is.\n */\n @field(Number)\n status!: NoteStatus;\n\n /**\n * The version that addresses the note or why it is declined; empty otherwise.\n */\n @field(String)\n statusDetail!: string;\n\n /**\n * When the giver gave it.\n */\n @field(Date)\n givenAt!: Date;\n\n /**\n * When anything last happened on it.\n */\n @field(Date)\n lastActivityAt!: Date;\n}\n"],"names":["MyNotesSortBy","_component","_givenAt","_givenBy","_id","_kind","_lastActivityAt","_location","_propertyChanges","_screen","_slices","_status","_statusDetail","_target","_text","query","SortingActionsForObservableQuery","component","givenAt","givenBy","id","kind","lastActivityAt","location","propertyChanges","screen","slices","status","statusDetail","target","text","MyNotesSortByWithoutQuery","SortingActions","MyNotes","ObservableQueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","MyNote","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useObservableQuery","undefined","useWithPaging","pageSize","useObservableQueryWithPaging","Paging","useSuspense","useSuspenseObservableQuery","useSuspenseWithPaging","useSuspenseObservableQueryWithPaging","useChangeStream","getKey","when","condition","ObservableQueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,aAAAA,CAAAA;;IACMC,UAAAA;IACAC,QAAAA;IACAC,QAAAA;IACAC,GAAAA;IACAC,KAAAA;I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EA;;AAEC,QACD,MACAE;AAEA;;AAEC,QACD,MACAC;AAEA;;AAEC,QACD,SACAT;AAEA;;AAEC,QACD,eACAO;AAEA;;AAEC,QACD,MACAG;AAEA;;AAEC,QACD,YACAC;AAEA;;AAEC,QACD,OACAV;AAEA;;AAEC,QACD,cACAI;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ export declare enum NoteStatus {
2
+ given = 0,
3
+ acknowledged = 1,
4
+ addressed = 2,
5
+ declined = 3,
6
+ withdrawn = 4
7
+ }
8
+ //# sourceMappingURL=NoteStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoteStatus.d.ts","sourceRoot":"","sources":["../../../Listing/NoteStatus.ts"],"names":[],"mappings":"AAQA,oBAAY,UAAU;IAClB,KAAK,IAAI;IACT,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,SAAS,IAAI;CAChB"}
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ // **DO NOT EDIT** - This file is an automatically generated file.
6
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Listing.NoteStatus. Time: 2026-11-01T11:55:12.6707473Z. Hash: 8A4EB1CDFDCC33226EDCA2C905DF131D826F8B88D67FAA027E76B9CEBAF7BB0B
7
+ /**
8
+ * Where a note is, as the giver sees it.
9
+ */ var NoteStatus = /*#__PURE__*/ function(NoteStatus) {
10
+ NoteStatus[NoteStatus["given"] = 0] = "given";
11
+ NoteStatus[NoteStatus["acknowledged"] = 1] = "acknowledged";
12
+ NoteStatus[NoteStatus["addressed"] = 2] = "addressed";
13
+ NoteStatus[NoteStatus["declined"] = 3] = "declined";
14
+ NoteStatus[NoteStatus["withdrawn"] = 4] = "withdrawn";
15
+ return NoteStatus;
16
+ }({});
17
+
18
+ exports.NoteStatus = NoteStatus;
19
+ //# sourceMappingURL=NoteStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoteStatus.js","sources":["../../../Listing/NoteStatus.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Listing.NoteStatus. Time: 2026-11-01T11:55:12.6707473Z. Hash: 8A4EB1CDFDCC33226EDCA2C905DF131D826F8B88D67FAA027E76B9CEBAF7BB0B\n/**\n * Where a note is, as the giver sees it.\n */\nexport enum NoteStatus {\n given = 0,\n acknowledged = 1,\n addressed = 2,\n declined = 3,\n withdrawn = 4,\n}\n"],"names":["NoteStatus"],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;;IAGO,IAAKA,UAAAA,iBAAAA,SAAAA,UAAAA,EAAAA;AACA,IAAA,UAAA,CAAA,UAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;AACO,IAAA,UAAA,CAAA,UAAA,CAAA,cAAA,CAAA,GAAA,CAAA,CAAA,GAAA,cAAA;AACH,IAAA,UAAA,CAAA,UAAA,CAAA,WAAA,CAAA,GAAA,CAAA,CAAA,GAAA,WAAA;AACD,IAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAA;AACC,IAAA,UAAA,CAAA,UAAA,CAAA,WAAA,CAAA,GAAA,CAAA,CAAA,GAAA,WAAA;AALJA,IAAAA,OAAAA,UAAAA;AAMX,CAAA,CAAA,EAAA;;"}