@cratis/showrunner.notes 0.0.0-stage → 1.0.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/Withdrawing/WithdrawNote/WithdrawNote.ts +61 -0
  29. package/Withdrawing/WithdrawNote/index.ts +4 -0
  30. package/dist/cjs/Availability/NotesAvailability.d.ts +21 -0
  31. package/dist/cjs/Availability/NotesAvailability.d.ts.map +1 -0
  32. package/dist/cjs/Availability/NotesAvailability.js +66 -0
  33. package/dist/cjs/Availability/NotesAvailability.js.map +1 -0
  34. package/dist/cjs/Availability/index.d.ts +2 -0
  35. package/dist/cjs/Availability/index.d.ts.map +1 -0
  36. package/dist/cjs/Contracts/Components/PickedComponent.d.ts +9 -0
  37. package/dist/cjs/Contracts/Components/PickedComponent.d.ts.map +1 -0
  38. package/dist/cjs/Contracts/Components/PickedComponent.js +65 -0
  39. package/dist/cjs/Contracts/Components/PickedComponent.js.map +1 -0
  40. package/dist/cjs/Contracts/Components/index.d.ts +2 -0
  41. package/dist/cjs/Contracts/Components/index.d.ts.map +1 -0
  42. package/dist/cjs/Contracts/Context/NoteContext.d.ts +14 -0
  43. package/dist/cjs/Contracts/Context/NoteContext.d.ts.map +1 -0
  44. package/dist/cjs/Contracts/Context/NoteContext.js +81 -0
  45. package/dist/cjs/Contracts/Context/NoteContext.js.map +1 -0
  46. package/dist/cjs/Contracts/Context/NoteDialog.d.ts +6 -0
  47. package/dist/cjs/Contracts/Context/NoteDialog.d.ts.map +1 -0
  48. package/dist/cjs/Contracts/Context/NoteDialog.js +44 -0
  49. package/dist/cjs/Contracts/Context/NoteDialog.js.map +1 -0
  50. package/dist/cjs/Contracts/Context/NoteScreen.d.ts +6 -0
  51. package/dist/cjs/Contracts/Context/NoteScreen.d.ts.map +1 -0
  52. package/dist/cjs/Contracts/Context/NoteScreen.js +50 -0
  53. package/dist/cjs/Contracts/Context/NoteScreen.js.map +1 -0
  54. package/dist/cjs/Contracts/Context/index.d.ts +4 -0
  55. package/dist/cjs/Contracts/Context/index.d.ts.map +1 -0
  56. package/dist/cjs/Contracts/Giving/NoteKind.d.ts +7 -0
  57. package/dist/cjs/Contracts/Giving/NoteKind.d.ts.map +1 -0
  58. package/dist/cjs/Contracts/Giving/NoteKind.js +18 -0
  59. package/dist/cjs/Contracts/Giving/NoteKind.js.map +1 -0
  60. package/dist/cjs/Contracts/Giving/index.d.ts +2 -0
  61. package/dist/cjs/Contracts/Giving/index.d.ts.map +1 -0
  62. package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts +6 -0
  63. package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts.map +1 -0
  64. package/dist/cjs/Contracts/Reporting/SliceLocation.js +50 -0
  65. package/dist/cjs/Contracts/Reporting/SliceLocation.js.map +1 -0
  66. package/dist/cjs/Contracts/Reporting/index.d.ts +2 -0
  67. package/dist/cjs/Contracts/Reporting/index.d.ts.map +1 -0
  68. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts +40 -0
  69. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -0
  70. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +101 -0
  71. package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -0
  72. package/dist/cjs/Giving/GiveNoteOnComponent/index.d.ts +2 -0
  73. package/dist/cjs/Giving/GiveNoteOnComponent/index.d.ts.map +1 -0
  74. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts +36 -0
  75. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -0
  76. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js +88 -0
  77. package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -0
  78. package/dist/cjs/Giving/GiveNoteOnContext/index.d.ts +2 -0
  79. package/dist/cjs/Giving/GiveNoteOnContext/index.d.ts.map +1 -0
  80. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts +36 -0
  81. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -0
  82. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +88 -0
  83. package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -0
  84. package/dist/cjs/Giving/GiveNoteOnScreen/index.d.ts +2 -0
  85. package/dist/cjs/Giving/GiveNoteOnScreen/index.d.ts.map +1 -0
  86. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts +40 -0
  87. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -0
  88. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +100 -0
  89. package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -0
  90. package/dist/cjs/Giving/GiveNoteOnSlices/index.d.ts +2 -0
  91. package/dist/cjs/Giving/GiveNoteOnSlices/index.d.ts.map +1 -0
  92. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts +42 -0
  93. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -0
  94. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +113 -0
  95. package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -0
  96. package/dist/cjs/Giving/SuggestComponentPropertyChange/index.d.ts +2 -0
  97. package/dist/cjs/Giving/SuggestComponentPropertyChange/index.d.ts.map +1 -0
  98. package/dist/cjs/Listing/MyNote.d.ts +111 -0
  99. package/dist/cjs/Listing/MyNote.d.ts.map +1 -0
  100. package/dist/cjs/Listing/MyNote.js +315 -0
  101. package/dist/cjs/Listing/MyNote.js.map +1 -0
  102. package/dist/cjs/Listing/NoteStatus.d.ts +8 -0
  103. package/dist/cjs/Listing/NoteStatus.d.ts.map +1 -0
  104. package/dist/cjs/Listing/NoteStatus.js +19 -0
  105. package/dist/cjs/Listing/NoteStatus.js.map +1 -0
  106. package/dist/cjs/Listing/NoteTarget.d.ts +7 -0
  107. package/dist/cjs/Listing/NoteTarget.d.ts.map +1 -0
  108. package/dist/cjs/Listing/NoteTarget.js +18 -0
  109. package/dist/cjs/Listing/NoteTarget.js.map +1 -0
  110. package/dist/cjs/Listing/SuggestedPropertyChange.d.ts +6 -0
  111. package/dist/cjs/Listing/SuggestedPropertyChange.d.ts.map +1 -0
  112. package/dist/cjs/Listing/SuggestedPropertyChange.js +50 -0
  113. package/dist/cjs/Listing/SuggestedPropertyChange.js.map +1 -0
  114. package/dist/cjs/Listing/index.d.ts +5 -0
  115. package/dist/cjs/Listing/index.d.ts.map +1 -0
  116. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts +21 -0
  117. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -0
  118. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js +44 -0
  119. package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -0
  120. package/dist/cjs/Withdrawing/WithdrawNote/index.d.ts +2 -0
  121. package/dist/cjs/Withdrawing/WithdrawNote/index.d.ts.map +1 -0
  122. package/dist/cjs/index.d.ts +13 -0
  123. package/dist/cjs/index.d.ts.map +1 -0
  124. package/dist/cjs/index.js +47 -0
  125. package/dist/cjs/index.js.map +1 -0
  126. package/dist/cjs/package.json +3 -0
  127. package/dist/esm/Availability/NotesAvailability.d.ts +21 -0
  128. package/dist/esm/Availability/NotesAvailability.d.ts.map +1 -0
  129. package/dist/esm/Availability/NotesAvailability.js +63 -0
  130. package/dist/esm/Availability/NotesAvailability.js.map +1 -0
  131. package/dist/esm/Availability/index.d.ts +2 -0
  132. package/dist/esm/Availability/index.d.ts.map +1 -0
  133. package/dist/esm/Availability/index.js +2 -0
  134. package/dist/esm/Availability/index.js.map +1 -0
  135. package/dist/esm/Contracts/Components/PickedComponent.d.ts +9 -0
  136. package/dist/esm/Contracts/Components/PickedComponent.d.ts.map +1 -0
  137. package/dist/esm/Contracts/Components/PickedComponent.js +63 -0
  138. package/dist/esm/Contracts/Components/PickedComponent.js.map +1 -0
  139. package/dist/esm/Contracts/Components/index.d.ts +2 -0
  140. package/dist/esm/Contracts/Components/index.d.ts.map +1 -0
  141. package/dist/esm/Contracts/Components/index.js +2 -0
  142. package/dist/esm/Contracts/Components/index.js.map +1 -0
  143. package/dist/esm/Contracts/Context/NoteContext.d.ts +14 -0
  144. package/dist/esm/Contracts/Context/NoteContext.d.ts.map +1 -0
  145. package/dist/esm/Contracts/Context/NoteContext.js +79 -0
  146. package/dist/esm/Contracts/Context/NoteContext.js.map +1 -0
  147. package/dist/esm/Contracts/Context/NoteDialog.d.ts +6 -0
  148. package/dist/esm/Contracts/Context/NoteDialog.d.ts.map +1 -0
  149. package/dist/esm/Contracts/Context/NoteDialog.js +42 -0
  150. package/dist/esm/Contracts/Context/NoteDialog.js.map +1 -0
  151. package/dist/esm/Contracts/Context/NoteScreen.d.ts +6 -0
  152. package/dist/esm/Contracts/Context/NoteScreen.d.ts.map +1 -0
  153. package/dist/esm/Contracts/Context/NoteScreen.js +48 -0
  154. package/dist/esm/Contracts/Context/NoteScreen.js.map +1 -0
  155. package/dist/esm/Contracts/Context/index.d.ts +4 -0
  156. package/dist/esm/Contracts/Context/index.d.ts.map +1 -0
  157. package/dist/esm/Contracts/Context/index.js +4 -0
  158. package/dist/esm/Contracts/Context/index.js.map +1 -0
  159. package/dist/esm/Contracts/Giving/NoteKind.d.ts +7 -0
  160. package/dist/esm/Contracts/Giving/NoteKind.d.ts.map +1 -0
  161. package/dist/esm/Contracts/Giving/NoteKind.js +16 -0
  162. package/dist/esm/Contracts/Giving/NoteKind.js.map +1 -0
  163. package/dist/esm/Contracts/Giving/index.d.ts +2 -0
  164. package/dist/esm/Contracts/Giving/index.d.ts.map +1 -0
  165. package/dist/esm/Contracts/Giving/index.js +2 -0
  166. package/dist/esm/Contracts/Giving/index.js.map +1 -0
  167. package/dist/esm/Contracts/Reporting/SliceLocation.d.ts +6 -0
  168. package/dist/esm/Contracts/Reporting/SliceLocation.d.ts.map +1 -0
  169. package/dist/esm/Contracts/Reporting/SliceLocation.js +48 -0
  170. package/dist/esm/Contracts/Reporting/SliceLocation.js.map +1 -0
  171. package/dist/esm/Contracts/Reporting/index.d.ts +2 -0
  172. package/dist/esm/Contracts/Reporting/index.d.ts.map +1 -0
  173. package/dist/esm/Contracts/Reporting/index.js +2 -0
  174. package/dist/esm/Contracts/Reporting/index.js.map +1 -0
  175. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts +40 -0
  176. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -0
  177. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +98 -0
  178. package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -0
  179. package/dist/esm/Giving/GiveNoteOnComponent/index.d.ts +2 -0
  180. package/dist/esm/Giving/GiveNoteOnComponent/index.d.ts.map +1 -0
  181. package/dist/esm/Giving/GiveNoteOnComponent/index.js +2 -0
  182. package/dist/esm/Giving/GiveNoteOnComponent/index.js.map +1 -0
  183. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts +36 -0
  184. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -0
  185. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js +85 -0
  186. package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -0
  187. package/dist/esm/Giving/GiveNoteOnContext/index.d.ts +2 -0
  188. package/dist/esm/Giving/GiveNoteOnContext/index.d.ts.map +1 -0
  189. package/dist/esm/Giving/GiveNoteOnContext/index.js +2 -0
  190. package/dist/esm/Giving/GiveNoteOnContext/index.js.map +1 -0
  191. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts +36 -0
  192. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -0
  193. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +85 -0
  194. package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -0
  195. package/dist/esm/Giving/GiveNoteOnScreen/index.d.ts +2 -0
  196. package/dist/esm/Giving/GiveNoteOnScreen/index.d.ts.map +1 -0
  197. package/dist/esm/Giving/GiveNoteOnScreen/index.js +2 -0
  198. package/dist/esm/Giving/GiveNoteOnScreen/index.js.map +1 -0
  199. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts +40 -0
  200. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -0
  201. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +97 -0
  202. package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -0
  203. package/dist/esm/Giving/GiveNoteOnSlices/index.d.ts +2 -0
  204. package/dist/esm/Giving/GiveNoteOnSlices/index.d.ts.map +1 -0
  205. package/dist/esm/Giving/GiveNoteOnSlices/index.js +2 -0
  206. package/dist/esm/Giving/GiveNoteOnSlices/index.js.map +1 -0
  207. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts +42 -0
  208. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -0
  209. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +110 -0
  210. package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -0
  211. package/dist/esm/Giving/SuggestComponentPropertyChange/index.d.ts +2 -0
  212. package/dist/esm/Giving/SuggestComponentPropertyChange/index.d.ts.map +1 -0
  213. package/dist/esm/Giving/SuggestComponentPropertyChange/index.js +2 -0
  214. package/dist/esm/Giving/SuggestComponentPropertyChange/index.js.map +1 -0
  215. package/dist/esm/Listing/MyNote.d.ts +111 -0
  216. package/dist/esm/Listing/MyNote.d.ts.map +1 -0
  217. package/dist/esm/Listing/MyNote.js +312 -0
  218. package/dist/esm/Listing/MyNote.js.map +1 -0
  219. package/dist/esm/Listing/NoteStatus.d.ts +8 -0
  220. package/dist/esm/Listing/NoteStatus.d.ts.map +1 -0
  221. package/dist/esm/Listing/NoteStatus.js +17 -0
  222. package/dist/esm/Listing/NoteStatus.js.map +1 -0
  223. package/dist/esm/Listing/NoteTarget.d.ts +7 -0
  224. package/dist/esm/Listing/NoteTarget.d.ts.map +1 -0
  225. package/dist/esm/Listing/NoteTarget.js +16 -0
  226. package/dist/esm/Listing/NoteTarget.js.map +1 -0
  227. package/dist/esm/Listing/SuggestedPropertyChange.d.ts +6 -0
  228. package/dist/esm/Listing/SuggestedPropertyChange.d.ts.map +1 -0
  229. package/dist/esm/Listing/SuggestedPropertyChange.js +48 -0
  230. package/dist/esm/Listing/SuggestedPropertyChange.js.map +1 -0
  231. package/dist/esm/Listing/index.d.ts +5 -0
  232. package/dist/esm/Listing/index.d.ts.map +1 -0
  233. package/dist/esm/Listing/index.js +5 -0
  234. package/dist/esm/Listing/index.js.map +1 -0
  235. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts +21 -0
  236. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -0
  237. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js +42 -0
  238. package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -0
  239. package/dist/esm/Withdrawing/WithdrawNote/index.d.ts +2 -0
  240. package/dist/esm/Withdrawing/WithdrawNote/index.d.ts.map +1 -0
  241. package/dist/esm/Withdrawing/WithdrawNote/index.js +2 -0
  242. package/dist/esm/Withdrawing/WithdrawNote/index.js.map +1 -0
  243. package/dist/esm/index.d.ts +13 -0
  244. package/dist/esm/index.d.ts.map +1 -0
  245. package/dist/esm/index.js +18 -0
  246. package/dist/esm/index.js.map +1 -0
  247. package/dist/esm/package.json +3 -0
  248. package/index.ts +15 -0
  249. package/package.json +70 -5
  250. package/README.md +0 -3
@@ -0,0 +1,16 @@
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
+ // **DO NOT EDIT** - This file is an automatically generated file.
4
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Contracts.Giving.NoteKind. Time: 2026-11-01T11:55:12.6707473Z. Hash: 15D6EB3573A54ADE49BD4014FDE1173E8F4F5B91DCA9BE625F2CEEB23A430007
5
+ /**
6
+ * What kind of feedback a note is.
7
+ */ var NoteKind = /*#__PURE__*/ function(NoteKind) {
8
+ NoteKind[NoteKind["problem"] = 0] = "problem";
9
+ NoteKind[NoteKind["suggestion"] = 1] = "suggestion";
10
+ NoteKind[NoteKind["question"] = 2] = "question";
11
+ NoteKind[NoteKind["praise"] = 3] = "praise";
12
+ return NoteKind;
13
+ }({});
14
+
15
+ export { NoteKind };
16
+ //# sourceMappingURL=NoteKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoteKind.js","sources":["../../../../Contracts/Giving/NoteKind.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.Contracts.Giving.NoteKind. Time: 2026-11-01T11:55:12.6707473Z. Hash: 15D6EB3573A54ADE49BD4014FDE1173E8F4F5B91DCA9BE625F2CEEB23A430007\n/**\n * What kind of feedback a note is.\n */\nexport enum NoteKind {\n problem = 0,\n suggestion = 1,\n question = 2,\n praise = 3,\n}\n"],"names":["NoteKind"],"mappings":"AAAA;AACA;AAEA;AACA;AACA;;IAGO,IAAKA,QAAAA,iBAAAA,SAAAA,QAAAA,EAAAA;AACE,IAAA,QAAA,CAAA,QAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AACG,IAAA,QAAA,CAAA,QAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAA;AACF,IAAA,QAAA,CAAA,QAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAA;AACF,IAAA,QAAA,CAAA,QAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAA;AAJDA,IAAAA,OAAAA,QAAAA;AAKX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,2 @@
1
+ export * from './NoteKind';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Contracts/Giving/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './NoteKind';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Contracts/Giving/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare class SliceLocation {
2
+ module: string;
3
+ feature: string;
4
+ slice: string;
5
+ }
6
+ //# sourceMappingURL=SliceLocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliceLocation.d.ts","sourceRoot":"","sources":["../../../../Contracts/Reporting/SliceLocation.ts"],"names":[],"mappings":"AAUA,qBAAa,aAAa;IAMtB,MAAM,EAAG,MAAM,CAAC;IAMhB,OAAO,EAAG,MAAM,CAAC;IAMjB,KAAK,EAAG,MAAM,CAAC;CAClB"}
@@ -0,0 +1,48 @@
1
+ import { field } from '@cratis/fundamentals';
2
+
3
+ function _ts_decorate(decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
6
+ r = Reflect.decorate(decorators, target, key, desc);
7
+ } else {
8
+ for(var i = decorators.length - 1; i >= 0; i--){
9
+ if (d = decorators[i]) {
10
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
+ }
12
+ }
13
+ }
14
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15
+ }
16
+ function _ts_metadata(metadataKey, metadataValue) {
17
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
18
+ return Reflect.metadata(metadataKey, metadataValue);
19
+ }
20
+ }
21
+ /**
22
+ * 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.
23
+ */ class SliceLocation {
24
+ /**
25
+ * The module.
26
+ */ module;
27
+ /**
28
+ * The feature within the module.
29
+ */ feature;
30
+ /**
31
+ * The slice within the feature.
32
+ */ slice;
33
+ }
34
+ _ts_decorate([
35
+ field(String),
36
+ _ts_metadata("design:type", String)
37
+ ], SliceLocation.prototype, "module", void 0);
38
+ _ts_decorate([
39
+ field(String),
40
+ _ts_metadata("design:type", String)
41
+ ], SliceLocation.prototype, "feature", void 0);
42
+ _ts_decorate([
43
+ field(String),
44
+ _ts_metadata("design:type", String)
45
+ ], SliceLocation.prototype, "slice", void 0);
46
+
47
+ export { SliceLocation };
48
+ //# sourceMappingURL=SliceLocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliceLocation.js","sources":["../../../../Contracts/Reporting/SliceLocation.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.Usher.Contracts.Reporting.SliceLocation. Time: 2026-11-01T11:55:12.6707473Z. Hash: 43F1EEEB0FFCB772AA0F2633DFF9FAC94AADE89AB1858F453B61A86B87327956\nimport { field } from '@cratis/fundamentals';\n\n/**\n * 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.\n */\nexport class SliceLocation {\n\n /**\n * The module.\n */\n @field(String)\n module!: string;\n\n /**\n * The feature within the module.\n */\n @field(String)\n feature!: string;\n\n /**\n * The slice within the feature.\n */\n @field(String)\n slice!: string;\n}\n"],"names":["SliceLocation","module","feature","slice"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA;;AAEC,IACM,MAAMA,aAAAA,CAAAA;AAET;;AAEC,QACD,MACAC;AAEA;;AAEC,QACD,OACAC;AAEA;;AAEC,QACD,KACAC;AACJ;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './SliceLocation';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Contracts/Reporting/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './SliceLocation';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Contracts/Reporting/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Command, CommandValidator } from '@cratis/arc/commands';
2
+ import { ClearCommandValues, SetCommandValues } from '@cratis/arc.react/commands';
3
+ import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
4
+ import { PickedComponent } from '../../Contracts/Components/PickedComponent';
5
+ import { NoteContext } from '../../Contracts/Context/NoteContext';
6
+ import { NoteKind } from '../../Contracts/Giving/NoteKind';
7
+ import { Guid } from '@cratis/fundamentals';
8
+ export interface IGiveNoteOnComponent {
9
+ component?: PickedComponent;
10
+ context?: NoteContext;
11
+ kind?: NoteKind;
12
+ noteId?: Guid;
13
+ text?: string;
14
+ }
15
+ export declare class GiveNoteOnComponentValidator extends CommandValidator<IGiveNoteOnComponent> {
16
+ constructor();
17
+ }
18
+ export declare class GiveNoteOnComponent extends Command<IGiveNoteOnComponent> implements IGiveNoteOnComponent {
19
+ #private;
20
+ static readonly sliceLocation: ArcSliceLocation;
21
+ readonly route: string;
22
+ readonly validation: CommandValidator;
23
+ readonly treatWarningsAsErrors: boolean;
24
+ readonly roles: string[];
25
+ readonly propertyDescriptors: PropertyDescriptor[];
26
+ constructor();
27
+ get requestParameters(): string[];
28
+ get component(): PickedComponent;
29
+ set component(value: PickedComponent);
30
+ get context(): NoteContext;
31
+ set context(value: NoteContext);
32
+ get kind(): NoteKind;
33
+ set kind(value: NoteKind);
34
+ get noteId(): Guid;
35
+ set noteId(value: Guid);
36
+ get text(): string;
37
+ set text(value: string);
38
+ static use(initialValues?: IGiveNoteOnComponent): [GiveNoteOnComponent, SetCommandValues<IGiveNoteOnComponent>, ClearCommandValues];
39
+ }
40
+ //# sourceMappingURL=GiveNoteOnComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiveNoteOnComponent.d.ts","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnComponent/GiveNoteOnComponent.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAc,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAK5C,MAAM,WAAW,oBAAoB;IAKjC,SAAS,CAAC,EAAE,eAAe,CAAC;IAK5B,OAAO,CAAC,EAAE,WAAW,CAAC;IAKtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAKhB,MAAM,CAAC,EAAE,IAAI,CAAC;IAKd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA6B,SAAQ,gBAAgB,CAAC,oBAAoB,CAAC;;CAQvF;AAKD,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,oBAAoB,CAAE,YAAW,oBAAoB;;IAClG,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAA6D;IAC5G,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAwC;IAC9D,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAsC;IAC3E,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAMhD;;IAYF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,SAAS,IAAI,eAAe,CAE/B;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,eAAe,EAGnC;IAID,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,WAAW,EAG7B;IAID,IAAI,IAAI,IAAI,QAAQ,CAEnB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGvB;IAID,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,EAGrB;IAID,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;CAGtI"}
@@ -0,0 +1,98 @@
1
+ import { Command, CommandValidator } from '@cratis/arc/commands';
2
+ import { useCommand } from '@cratis/arc.react/commands';
3
+ import { SliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
4
+ import { PickedComponent } from '../../Contracts/Components/PickedComponent.js';
5
+ import { NoteContext } from '../../Contracts/Context/NoteContext.js';
6
+ import { Guid } from '@cratis/fundamentals';
7
+
8
+ // Copyright (c) Cratis. All rights reserved.
9
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
10
+ // **DO NOT EDIT** - This file is an automatically generated file.
11
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-01T11:55:12.6707473Z. Hash: A44F5BE208BFB2B1A5C292EA13726509BA682B5935BC2C6C19AC7C32CBB5911D
12
+ class GiveNoteOnComponentValidator extends CommandValidator {
13
+ constructor(){
14
+ super();
15
+ this.ruleFor((c)=>c.component).notNull().withMessage('Pick a component.');
16
+ this.ruleFor((c)=>c.context).notNull().withMessage('A note needs to know what you were looking at.');
17
+ this.ruleFor((c)=>c.text).notEmpty().withMessage('Write your note.');
18
+ this.ruleFor((c)=>c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');
19
+ }
20
+ }
21
+ /**
22
+ * 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.
23
+ */ class GiveNoteOnComponent extends Command {
24
+ static sliceLocation = new SliceLocation('', 'Giving', 'GiveNoteOnComponent');
25
+ route = '/api/giving/give-note-on-component';
26
+ validation = new GiveNoteOnComponentValidator();
27
+ treatWarningsAsErrors = false;
28
+ roles = [];
29
+ propertyDescriptors = [
30
+ new PropertyDescriptor('component', PickedComponent, false),
31
+ new PropertyDescriptor('context', NoteContext, false),
32
+ new PropertyDescriptor('kind', Number, false),
33
+ new PropertyDescriptor('noteId', Guid, false),
34
+ new PropertyDescriptor('text', String, false)
35
+ ];
36
+ #component;
37
+ #context;
38
+ #kind;
39
+ #noteId;
40
+ #text;
41
+ constructor(){
42
+ super(Object, false);
43
+ }
44
+ get requestParameters() {
45
+ return [];
46
+ }
47
+ /**
48
+ * The component the user picked.
49
+ */ get component() {
50
+ return this.#component;
51
+ }
52
+ set component(value) {
53
+ this.#component = value;
54
+ this.propertyChanged('component');
55
+ }
56
+ /**
57
+ * What the user is looking at.
58
+ */ get context() {
59
+ return this.#context;
60
+ }
61
+ set context(value) {
62
+ this.#context = value;
63
+ this.propertyChanged('context');
64
+ }
65
+ /**
66
+ * What kind of feedback it is.
67
+ */ get kind() {
68
+ return this.#kind;
69
+ }
70
+ set kind(value) {
71
+ this.#kind = value;
72
+ this.propertyChanged('kind');
73
+ }
74
+ /**
75
+ * The id of the note: new, or the one the picking session's property changes were suggested on.
76
+ */ get noteId() {
77
+ return this.#noteId;
78
+ }
79
+ set noteId(value) {
80
+ this.#noteId = value;
81
+ this.propertyChanged('noteId');
82
+ }
83
+ /**
84
+ * What the user writes.
85
+ */ get text() {
86
+ return this.#text;
87
+ }
88
+ set text(value) {
89
+ this.#text = value;
90
+ this.propertyChanged('text');
91
+ }
92
+ static use(initialValues) {
93
+ return useCommand(GiveNoteOnComponent, initialValues);
94
+ }
95
+ }
96
+
97
+ export { GiveNoteOnComponent, GiveNoteOnComponentValidator };
98
+ //# sourceMappingURL=GiveNoteOnComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiveNoteOnComponent.js","sources":["../../../../Giving/GiveNoteOnComponent/GiveNoteOnComponent.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.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-01T11:55:12.6707473Z. Hash: A44F5BE208BFB2B1A5C292EA13726509BA682B5935BC2C6C19AC7C32CBB5911D\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 { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * 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.\n */\nexport interface IGiveNoteOnComponent {\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 * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the note: new, or the one the picking session's property changes were suggested on.\n */\n noteId?: Guid;\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnComponentValidator extends CommandValidator<IGiveNoteOnComponent> {\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.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * 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.\n */\nexport class GiveNoteOnComponent extends Command<IGiveNoteOnComponent> implements IGiveNoteOnComponent {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnComponent');\n readonly route: string = '/api/giving/give-note-on-component';\n readonly validation: CommandValidator = new GiveNoteOnComponentValidator();\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('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #component!: PickedComponent;\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #text!: 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 * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the note: new, or the one the picking session's property changes were suggested 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 * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnComponent): [GiveNoteOnComponent, SetCommandValues<IGiveNoteOnComponent>, ClearCommandValues] {\n return useCommand<GiveNoteOnComponent, IGiveNoteOnComponent>(GiveNoteOnComponent, initialValues);\n }\n}\n"],"names":["GiveNoteOnComponentValidator","CommandValidator","ruleFor","c","component","notNull","withMessage","context","text","notEmpty","maxLength","GiveNoteOnComponent","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","PickedComponent","NoteContext","Number","Guid","String","Object","requestParameters","value","propertyChanged","kind","noteId","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAwCO,MAAMA,4BAAAA,SAAqCC,gBAAAA,CAAAA;IAC9C,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;QACnD,IAAI,CAACJ,OAAO,CAAC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oot":"","sources":["../../../../Giving/GiveNoteOnComponent/index.ts"],"names":[],"mappings":"AAGA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './GiveNoteOnComponent';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnComponent/index.ts"],"names":[],"mappings":"AAGA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { Command, CommandValidator } from '@cratis/arc/commands';
2
+ import { ClearCommandValues, SetCommandValues } from '@cratis/arc.react/commands';
3
+ import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
4
+ import { NoteContext } from '../../Contracts/Context/NoteContext';
5
+ import { NoteKind } from '../../Contracts/Giving/NoteKind';
6
+ import { Guid } from '@cratis/fundamentals';
7
+ export interface IGiveNoteOnContext {
8
+ context?: NoteContext;
9
+ kind?: NoteKind;
10
+ noteId?: Guid;
11
+ text?: string;
12
+ }
13
+ export declare class GiveNoteOnContextValidator extends CommandValidator<IGiveNoteOnContext> {
14
+ constructor();
15
+ }
16
+ export declare class GiveNoteOnContext extends Command<IGiveNoteOnContext> implements IGiveNoteOnContext {
17
+ #private;
18
+ static readonly sliceLocation: ArcSliceLocation;
19
+ readonly route: string;
20
+ readonly validation: CommandValidator;
21
+ readonly treatWarningsAsErrors: boolean;
22
+ readonly roles: string[];
23
+ readonly propertyDescriptors: PropertyDescriptor[];
24
+ constructor();
25
+ get requestParameters(): string[];
26
+ get context(): NoteContext;
27
+ set context(value: NoteContext);
28
+ get kind(): NoteKind;
29
+ set kind(value: NoteKind);
30
+ get noteId(): Guid;
31
+ set noteId(value: Guid);
32
+ get text(): string;
33
+ set text(value: string);
34
+ static use(initialValues?: IGiveNoteOnContext): [GiveNoteOnContext, SetCommandValues<IGiveNoteOnContext>, ClearCommandValues];
35
+ }
36
+ //# sourceMappingURL=GiveNoteOnContext.d.ts.map
@@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WAAW,EAG7B;IAID,IAAI,IAAI,IAAI,QAAQ,CAEnB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGvB;IAID,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,EAGrB;IAID,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,kBAAkB,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CAGhI"}
@@ -0,0 +1,85 @@
1
+ import { Command, CommandValidator } from '@cratis/arc/commands';
2
+ import { useCommand } from '@cratis/arc.react/commands';
3
+ import { SliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
4
+ import { NoteContext } from '../../Contracts/Context/NoteContext.js';
5
+ import { Guid } from '@cratis/fundamentals';
6
+
7
+ // Copyright (c) Cratis. All rights reserved.
8
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
9
+ // **DO NOT EDIT** - This file is an automatically generated file.
10
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-01T11:55:12.6707473Z. Hash: E16E92B294B3749B22A6EE3710E363A25997107CB34220EBC09AF9CE22B3EB6A
11
+ class GiveNoteOnContextValidator extends CommandValidator {
12
+ constructor(){
13
+ super();
14
+ this.ruleFor((c)=>c.context).notNull().withMessage('A note needs to know what you were looking at.');
15
+ this.ruleFor((c)=>c.text).notEmpty().withMessage('Write your note.');
16
+ this.ruleFor((c)=>c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');
17
+ }
18
+ }
19
+ /**
20
+ * 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.
21
+ */ class GiveNoteOnContext extends Command {
22
+ static sliceLocation = new SliceLocation('', 'Giving', 'GiveNoteOnContext');
23
+ route = '/api/giving/give-note-on-context';
24
+ validation = new GiveNoteOnContextValidator();
25
+ treatWarningsAsErrors = false;
26
+ roles = [];
27
+ propertyDescriptors = [
28
+ new PropertyDescriptor('context', NoteContext, false),
29
+ new PropertyDescriptor('kind', Number, false),
30
+ new PropertyDescriptor('noteId', Guid, false),
31
+ new PropertyDescriptor('text', String, false)
32
+ ];
33
+ #context;
34
+ #kind;
35
+ #noteId;
36
+ #text;
37
+ constructor(){
38
+ super(Object, false);
39
+ }
40
+ get requestParameters() {
41
+ return [];
42
+ }
43
+ /**
44
+ * What the user is looking at.
45
+ */ get context() {
46
+ return this.#context;
47
+ }
48
+ set context(value) {
49
+ this.#context = value;
50
+ this.propertyChanged('context');
51
+ }
52
+ /**
53
+ * What kind of feedback it is.
54
+ */ get kind() {
55
+ return this.#kind;
56
+ }
57
+ set kind(value) {
58
+ this.#kind = value;
59
+ this.propertyChanged('kind');
60
+ }
61
+ /**
62
+ * The id of the new note, chosen by the caller so a retried command does not give a second note.
63
+ */ get noteId() {
64
+ return this.#noteId;
65
+ }
66
+ set noteId(value) {
67
+ this.#noteId = value;
68
+ this.propertyChanged('noteId');
69
+ }
70
+ /**
71
+ * What the user writes.
72
+ */ get text() {
73
+ return this.#text;
74
+ }
75
+ set text(value) {
76
+ this.#text = value;
77
+ this.propertyChanged('text');
78
+ }
79
+ static use(initialValues) {
80
+ return useCommand(GiveNoteOnContext, initialValues);
81
+ }
82
+ }
83
+
84
+ export { GiveNoteOnContext, GiveNoteOnContextValidator };
85
+ //# sourceMappingURL=GiveNoteOnContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiveNoteOnContext.js","sources":["../../../../Giving/GiveNoteOnContext/GiveNoteOnContext.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.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-01T11:55:12.6707473Z. Hash: E16E92B294B3749B22A6EE3710E363A25997107CB34220EBC09AF9CE22B3EB6A\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 { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * 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.\n */\nexport interface IGiveNoteOnContext {\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n noteId?: Guid;\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnContextValidator extends CommandValidator<IGiveNoteOnContext> {\n constructor() {\n super();\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * 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.\n */\nexport class GiveNoteOnContext extends Command<IGiveNoteOnContext> implements IGiveNoteOnContext {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnContext');\n readonly route: string = '/api/giving/give-note-on-context';\n readonly validation: CommandValidator = new GiveNoteOnContextValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\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 * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\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 * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnContext): [GiveNoteOnContext, SetCommandValues<IGiveNoteOnContext>, ClearCommandValues] {\n return useCommand<GiveNoteOnContext, IGiveNoteOnContext>(GiveNoteOnContext, initialValues);\n }\n}\n"],"names":["GiveNoteOnContextValidator","CommandValidator","ruleFor","c","context","notNull","withMessage","text","notEmpty","maxLength","GiveNoteOnContext","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","NoteContext","Number","Guid","String","Object","requestParameters","value","propertyChanged","kind","noteId","use","initialValues","useCommand"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AAkCO,MAAMA,0BAAAA,SAAmCC,gBAAAA,CAAAA;IAC5C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,OAAO,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,G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Ae,CAAC,SAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIC,IAAAA,GAAiB;QACjB,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKF,KAAe,EAAE;QACtB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIE,MAAAA,GAAe;QACf,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOH,KAAW,EAAE;QACpB,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIpB,IAAAA,GAAe;QACf,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKmB,KAAa,EAAE;QACpB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;IAEA,OAAOG,GAAAA,CAAIC,aAAkC,EAAiF;AAC1H,QAAA,OAAOC,WAAkDtB,iBAAAA,EAAmBqB,aAAAA,CAAAA;AAChF,IAAA;AACJ;;"}
@@ -0,0 +1,2 @@
1
+ export * from './GiveNoteOnContext';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnContext/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './GiveNoteOnContext';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnContext/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { Command, CommandValidator } from '@cratis/arc/commands';
2
+ import { ClearCommandValues, SetCommandValues } from '@cratis/arc.react/commands';
3
+ import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
4
+ import { NoteContext } from '../../Contracts/Context/NoteContext';
5
+ import { NoteKind } from '../../Contracts/Giving/NoteKind';
6
+ import { Guid } from '@cratis/fundamentals';
7
+ export interface IGiveNoteOnScreen {
8
+ context?: NoteContext;
9
+ kind?: NoteKind;
10
+ noteId?: Guid;
11
+ text?: string;
12
+ }
13
+ export declare class GiveNoteOnScreenValidator extends CommandValidator<IGiveNoteOnScreen> {
14
+ constructor();
15
+ }
16
+ export declare class GiveNoteOnScreen extends Command<IGiveNoteOnScreen> implements IGiveNoteOnScreen {
17
+ #private;
18
+ static readonly sliceLocation: ArcSliceLocation;
19
+ readonly route: string;
20
+ readonly validation: CommandValidator;
21
+ readonly treatWarningsAsErrors: boolean;
22
+ readonly roles: string[];
23
+ readonly propertyDescriptors: PropertyDescriptor[];
24
+ constructor();
25
+ get requestParameters(): string[];
26
+ get context(): NoteContext;
27
+ set context(value: NoteContext);
28
+ get kind(): NoteKind;
29
+ set kind(value: NoteKind);
30
+ get noteId(): Guid;
31
+ set noteId(value: Guid);
32
+ get text(): string;
33
+ set text(value: string);
34
+ static use(initialValues?: IGiveNoteOnScreen): [GiveNoteOnScreen, SetCommandValues<IGiveNoteOnScreen>, ClearCommandValues];
35
+ }
36
+ //# sourceMappingURL=GiveNoteOnScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiveNoteOnScreen.d.ts","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnScreen/GiveNoteOnScreen.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAc,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,kBAAkB,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EAAE,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CAG7H"}
@@ -0,0 +1,85 @@
1
+ import { Command, CommandValidator } from '@cratis/arc/commands';
2
+ import { useCommand } from '@cratis/arc.react/commands';
3
+ import { SliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
4
+ import { NoteContext } from '../../Contracts/Context/NoteContext.js';
5
+ import { Guid } from '@cratis/fundamentals';
6
+
7
+ // Copyright (c) Cratis. All rights reserved.
8
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
9
+ // **DO NOT EDIT** - This file is an automatically generated file.
10
+ // @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-01T11:55:12.6707473Z. Hash: 5895C65951697575A860A5815C6574C6765026C35F2CB1D5D70586CE3E0694D9
11
+ class GiveNoteOnScreenValidator extends CommandValidator {
12
+ constructor(){
13
+ super();
14
+ this.ruleFor((c)=>c.context).notNull().withMessage('A note needs to know what you were looking at.');
15
+ this.ruleFor((c)=>c.text).notEmpty().withMessage('Write your note.');
16
+ this.ruleFor((c)=>c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');
17
+ }
18
+ }
19
+ /**
20
+ * The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.
21
+ */ class GiveNoteOnScreen extends Command {
22
+ static sliceLocation = new SliceLocation('', 'Giving', 'GiveNoteOnScreen');
23
+ route = '/api/giving/give-note-on-screen';
24
+ validation = new GiveNoteOnScreenValidator();
25
+ treatWarningsAsErrors = false;
26
+ roles = [];
27
+ propertyDescriptors = [
28
+ new PropertyDescriptor('context', NoteContext, false),
29
+ new PropertyDescriptor('kind', Number, false),
30
+ new PropertyDescriptor('noteId', Guid, false),
31
+ new PropertyDescriptor('text', String, false)
32
+ ];
33
+ #context;
34
+ #kind;
35
+ #noteId;
36
+ #text;
37
+ constructor(){
38
+ super(Object, false);
39
+ }
40
+ get requestParameters() {
41
+ return [];
42
+ }
43
+ /**
44
+ * What the user is looking at; its screen is the subject.
45
+ */ get context() {
46
+ return this.#context;
47
+ }
48
+ set context(value) {
49
+ this.#context = value;
50
+ this.propertyChanged('context');
51
+ }
52
+ /**
53
+ * What kind of feedback it is.
54
+ */ get kind() {
55
+ return this.#kind;
56
+ }
57
+ set kind(value) {
58
+ this.#kind = value;
59
+ this.propertyChanged('kind');
60
+ }
61
+ /**
62
+ * The id of the new note, chosen by the caller so a retried command does not give a second note.
63
+ */ get noteId() {
64
+ return this.#noteId;
65
+ }
66
+ set noteId(value) {
67
+ this.#noteId = value;
68
+ this.propertyChanged('noteId');
69
+ }
70
+ /**
71
+ * What the user writes.
72
+ */ get text() {
73
+ return this.#text;
74
+ }
75
+ set text(value) {
76
+ this.#text = value;
77
+ this.propertyChanged('text');
78
+ }
79
+ static use(initialValues) {
80
+ return useCommand(GiveNoteOnScreen, initialValues);
81
+ }
82
+ }
83
+
84
+ export { GiveNoteOnScreen, GiveNoteOnScreenValidator };
85
+ //# sourceMappingURL=GiveNoteOnScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiveNoteOnScreen.js","sources":["../../../../Giving/GiveNoteOnScreen/GiveNoteOnScreen.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.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-01T11:55:12.6707473Z. Hash: 5895C65951697575A860A5815C6574C6765026C35F2CB1D5D70586CE3E0694D9\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 { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport interface IGiveNoteOnScreen {\n\n /**\n * What the user is looking at; its screen is the subject.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n noteId?: Guid;\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnScreenValidator extends CommandValidator<IGiveNoteOnScreen> {\n constructor() {\n super();\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport class GiveNoteOnScreen extends Command<IGiveNoteOnScreen> implements IGiveNoteOnScreen {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnScreen');\n readonly route: string = '/api/giving/give-note-on-screen';\n readonly validation: CommandValidator = new GiveNoteOnScreenValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * What the user is looking at; its screen is the subject.\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 * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\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 * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnScreen): [GiveNoteOnScreen, SetCommandValues<IGiveNoteOnScreen>, ClearCommandValues] {\n return useCommand<GiveNoteOnScreen, IGiveNoteOnScreen>(GiveNoteOnScreen, initialValues);\n }\n}\n"],"names":["GiveNoteOnScreenValidator","CommandValidator","ruleFor","c","context","notNull","withMessage","text","notEmpty","maxLength","GiveNoteOnScreen","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","NoteContext","Number","Guid","String","Object","requestParameters","value","propertyChanged","kind","noteId","use","initialValues","useCommand"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AAkCO,MAAMA,yBAAAA,SAAkCC,gBAAAA,CAAAA;IAC3C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,OAAO,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEC,QAAQ,EAAA,CAAGF,WAAW,CAAC,kBAAA,CAAA;AACjD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEE,SAAS,CAAC,IAAA,CAAA,CAAMH,WAAW,CAA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C,MAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIE,MAAAA,GAAe;QACf,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOH,KAAW,EAAE;QACpB,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIpB,IAAAA,GAAe;QACf,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKmB,KAAa,EAAE;QACpB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;IAEA,OAAOG,GAAAA,CAAIC,aAAiC,EAA+E;AACvH,QAAA,OAAOC,WAAgDtB,gBAAAA,EAAkBqB,aAAAA,CAAAA;AAC7E,IAAA;AACJ;;"}
@@ -0,0 +1,2 @@
1
+ export * from './GiveNoteOnScreen';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnScreen/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './GiveNoteOnScreen';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnScreen/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC"}