@cratis/showrunner.usher 0.0.0-bootstrap.0 → 0.0.0-stage

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 (407) hide show
  1. package/README.md +2 -58
  2. package/package.json +4 -69
  3. package/Access/AccessDuration.ts +0 -13
  4. package/Access/GrantAccess/GrantAccess.ts +0 -80
  5. package/Access/GrantAccess/index.ts +0 -4
  6. package/Access/RevokeAccess/RevokeAccess.ts +0 -61
  7. package/Access/RevokeAccess/index.ts +0 -4
  8. package/Access/index.ts +0 -4
  9. package/Contracts/Conversation/SupportAuthor.ts +0 -25
  10. package/Contracts/Conversation/SupportAuthorKind.ts +0 -12
  11. package/Contracts/Conversation/index.ts +0 -5
  12. package/Contracts/Reporting/SliceLocation.ts +0 -30
  13. package/Contracts/Reporting/StackFrame.ts +0 -30
  14. package/Contracts/Reporting/index.ts +0 -5
  15. package/Contracts/WorkItems/WorkItem.ts +0 -36
  16. package/Contracts/WorkItems/index.ts +0 -4
  17. package/Conversation/AddDetails/AddDetails.ts +0 -87
  18. package/Conversation/AddDetails/index.ts +0 -4
  19. package/Conversation/AnswerQuestion/AnswerQuestion.ts +0 -105
  20. package/Conversation/AnswerQuestion/index.ts +0 -4
  21. package/Errors/ErrorDetails.ts +0 -41
  22. package/Errors/errorDetailsFromCommandResult.ts +0 -30
  23. package/Errors/errorDetailsFromError.ts +0 -44
  24. package/Errors/errorDetailsFromQueryResult.ts +0 -32
  25. package/Errors/index.ts +0 -9
  26. package/Errors/messageOf.ts +0 -24
  27. package/Errors/parseStackTrace.ts +0 -62
  28. package/Errors/resolveLocation.ts +0 -20
  29. package/Identity/ShareIdentity/ShareIdentity.ts +0 -61
  30. package/Identity/ShareIdentity/index.ts +0 -4
  31. package/Identity/UserIdentity.ts +0 -30
  32. package/Identity/index.ts +0 -4
  33. package/Issues/IssueKind.ts +0 -12
  34. package/Issues/IssueState.ts +0 -17
  35. package/Issues/index.ts +0 -5
  36. package/Lifecycle/ReopenIssue/ReopenIssue.ts +0 -87
  37. package/Lifecycle/ReopenIssue/index.ts +0 -4
  38. package/Lifecycle/WithdrawIssue/WithdrawIssue.ts +0 -61
  39. package/Lifecycle/WithdrawIssue/index.ts +0 -4
  40. package/Listing/Listing.ts +0 -271
  41. package/Listing/index.ts +0 -4
  42. package/Reporting/ReportError/ReportError.ts +0 -254
  43. package/Reporting/ReportError/index.ts +0 -4
  44. package/Reporting/ReportIssue/ReportIssue.ts +0 -217
  45. package/Reporting/ReportIssue/index.ts +0 -4
  46. package/Viewing/AccessState.ts +0 -15
  47. package/Viewing/ConversationAuthorKind.ts +0 -14
  48. package/Viewing/ConversationEntryKind.ts +0 -35
  49. package/Viewing/Viewing.ts +0 -472
  50. package/Viewing/index.ts +0 -7
  51. package/dist/cjs/Access/AccessDuration.d.ts +0 -6
  52. package/dist/cjs/Access/AccessDuration.d.ts.map +0 -1
  53. package/dist/cjs/Access/AccessDuration.js +0 -17
  54. package/dist/cjs/Access/AccessDuration.js.map +0 -1
  55. package/dist/cjs/Access/GrantAccess/GrantAccess.d.ts +0 -25
  56. package/dist/cjs/Access/GrantAccess/GrantAccess.d.ts.map +0 -1
  57. package/dist/cjs/Access/GrantAccess/GrantAccess.js +0 -55
  58. package/dist/cjs/Access/GrantAccess/GrantAccess.js.map +0 -1
  59. package/dist/cjs/Access/GrantAccess/index.d.ts +0 -2
  60. package/dist/cjs/Access/GrantAccess/index.d.ts.map +0 -1
  61. package/dist/cjs/Access/RevokeAccess/RevokeAccess.d.ts +0 -21
  62. package/dist/cjs/Access/RevokeAccess/RevokeAccess.d.ts.map +0 -1
  63. package/dist/cjs/Access/RevokeAccess/RevokeAccess.js +0 -44
  64. package/dist/cjs/Access/RevokeAccess/RevokeAccess.js.map +0 -1
  65. package/dist/cjs/Access/RevokeAccess/index.d.ts +0 -2
  66. package/dist/cjs/Access/RevokeAccess/index.d.ts.map +0 -1
  67. package/dist/cjs/Access/index.d.ts +0 -2
  68. package/dist/cjs/Access/index.d.ts.map +0 -1
  69. package/dist/cjs/Contracts/Conversation/SupportAuthor.d.ts +0 -6
  70. package/dist/cjs/Contracts/Conversation/SupportAuthor.d.ts.map +0 -1
  71. package/dist/cjs/Contracts/Conversation/SupportAuthor.js +0 -44
  72. package/dist/cjs/Contracts/Conversation/SupportAuthor.js.map +0 -1
  73. package/dist/cjs/Contracts/Conversation/SupportAuthorKind.d.ts +0 -5
  74. package/dist/cjs/Contracts/Conversation/SupportAuthorKind.d.ts.map +0 -1
  75. package/dist/cjs/Contracts/Conversation/SupportAuthorKind.js +0 -16
  76. package/dist/cjs/Contracts/Conversation/SupportAuthorKind.js.map +0 -1
  77. package/dist/cjs/Contracts/Conversation/index.d.ts +0 -3
  78. package/dist/cjs/Contracts/Conversation/index.d.ts.map +0 -1
  79. package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts +0 -6
  80. package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts.map +0 -1
  81. package/dist/cjs/Contracts/Reporting/SliceLocation.js +0 -50
  82. package/dist/cjs/Contracts/Reporting/SliceLocation.js.map +0 -1
  83. package/dist/cjs/Contracts/Reporting/StackFrame.d.ts +0 -6
  84. package/dist/cjs/Contracts/Reporting/StackFrame.d.ts.map +0 -1
  85. package/dist/cjs/Contracts/Reporting/StackFrame.js +0 -50
  86. package/dist/cjs/Contracts/Reporting/StackFrame.js.map +0 -1
  87. package/dist/cjs/Contracts/Reporting/index.d.ts +0 -3
  88. package/dist/cjs/Contracts/Reporting/index.d.ts.map +0 -1
  89. package/dist/cjs/Contracts/WorkItems/WorkItem.d.ts +0 -7
  90. package/dist/cjs/Contracts/WorkItems/WorkItem.d.ts.map +0 -1
  91. package/dist/cjs/Contracts/WorkItems/WorkItem.js +0 -57
  92. package/dist/cjs/Contracts/WorkItems/WorkItem.js.map +0 -1
  93. package/dist/cjs/Contracts/WorkItems/index.d.ts +0 -2
  94. package/dist/cjs/Contracts/WorkItems/index.d.ts.map +0 -1
  95. package/dist/cjs/Conversation/AddDetails/AddDetails.d.ts +0 -28
  96. package/dist/cjs/Conversation/AddDetails/AddDetails.d.ts.map +0 -1
  97. package/dist/cjs/Conversation/AddDetails/AddDetails.js +0 -64
  98. package/dist/cjs/Conversation/AddDetails/AddDetails.js.map +0 -1
  99. package/dist/cjs/Conversation/AddDetails/index.d.ts +0 -2
  100. package/dist/cjs/Conversation/AddDetails/index.d.ts.map +0 -1
  101. package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.d.ts +0 -31
  102. package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.d.ts.map +0 -1
  103. package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.js +0 -75
  104. package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.js.map +0 -1
  105. package/dist/cjs/Conversation/AnswerQuestion/index.d.ts +0 -2
  106. package/dist/cjs/Conversation/AnswerQuestion/index.d.ts.map +0 -1
  107. package/dist/cjs/Errors/ErrorDetails.d.ts +0 -11
  108. package/dist/cjs/Errors/ErrorDetails.d.ts.map +0 -1
  109. package/dist/cjs/Errors/errorDetailsFromCommandResult.d.ts +0 -5
  110. package/dist/cjs/Errors/errorDetailsFromCommandResult.d.ts.map +0 -1
  111. package/dist/cjs/Errors/errorDetailsFromCommandResult.js +0 -32
  112. package/dist/cjs/Errors/errorDetailsFromCommandResult.js.map +0 -1
  113. package/dist/cjs/Errors/errorDetailsFromError.d.ts +0 -4
  114. package/dist/cjs/Errors/errorDetailsFromError.d.ts.map +0 -1
  115. package/dist/cjs/Errors/errorDetailsFromError.js +0 -43
  116. package/dist/cjs/Errors/errorDetailsFromError.js.map +0 -1
  117. package/dist/cjs/Errors/errorDetailsFromQueryResult.d.ts +0 -6
  118. package/dist/cjs/Errors/errorDetailsFromQueryResult.d.ts.map +0 -1
  119. package/dist/cjs/Errors/errorDetailsFromQueryResult.js +0 -33
  120. package/dist/cjs/Errors/errorDetailsFromQueryResult.js.map +0 -1
  121. package/dist/cjs/Errors/index.d.ts +0 -7
  122. package/dist/cjs/Errors/index.d.ts.map +0 -1
  123. package/dist/cjs/Errors/messageOf.d.ts +0 -3
  124. package/dist/cjs/Errors/messageOf.d.ts.map +0 -1
  125. package/dist/cjs/Errors/messageOf.js +0 -23
  126. package/dist/cjs/Errors/messageOf.js.map +0 -1
  127. package/dist/cjs/Errors/parseStackTrace.d.ts +0 -3
  128. package/dist/cjs/Errors/parseStackTrace.d.ts.map +0 -1
  129. package/dist/cjs/Errors/parseStackTrace.js +0 -54
  130. package/dist/cjs/Errors/parseStackTrace.js.map +0 -1
  131. package/dist/cjs/Errors/resolveLocation.d.ts +0 -3
  132. package/dist/cjs/Errors/resolveLocation.d.ts.map +0 -1
  133. package/dist/cjs/Errors/resolveLocation.js +0 -22
  134. package/dist/cjs/Errors/resolveLocation.js.map +0 -1
  135. package/dist/cjs/Identity/ShareIdentity/ShareIdentity.d.ts +0 -21
  136. package/dist/cjs/Identity/ShareIdentity/ShareIdentity.d.ts.map +0 -1
  137. package/dist/cjs/Identity/ShareIdentity/ShareIdentity.js +0 -44
  138. package/dist/cjs/Identity/ShareIdentity/ShareIdentity.js.map +0 -1
  139. package/dist/cjs/Identity/ShareIdentity/index.d.ts +0 -2
  140. package/dist/cjs/Identity/ShareIdentity/index.d.ts.map +0 -1
  141. package/dist/cjs/Identity/UserIdentity.d.ts +0 -6
  142. package/dist/cjs/Identity/UserIdentity.d.ts.map +0 -1
  143. package/dist/cjs/Identity/UserIdentity.js +0 -50
  144. package/dist/cjs/Identity/UserIdentity.js.map +0 -1
  145. package/dist/cjs/Identity/index.d.ts +0 -2
  146. package/dist/cjs/Identity/index.d.ts.map +0 -1
  147. package/dist/cjs/Issues/IssueKind.d.ts +0 -5
  148. package/dist/cjs/Issues/IssueKind.d.ts.map +0 -1
  149. package/dist/cjs/Issues/IssueKind.js +0 -16
  150. package/dist/cjs/Issues/IssueKind.js.map +0 -1
  151. package/dist/cjs/Issues/IssueState.d.ts +0 -10
  152. package/dist/cjs/Issues/IssueState.d.ts.map +0 -1
  153. package/dist/cjs/Issues/IssueState.js +0 -21
  154. package/dist/cjs/Issues/IssueState.js.map +0 -1
  155. package/dist/cjs/Issues/index.d.ts +0 -3
  156. package/dist/cjs/Issues/index.d.ts.map +0 -1
  157. package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.d.ts +0 -28
  158. package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.d.ts.map +0 -1
  159. package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.js +0 -64
  160. package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.js.map +0 -1
  161. package/dist/cjs/Lifecycle/ReopenIssue/index.d.ts +0 -2
  162. package/dist/cjs/Lifecycle/ReopenIssue/index.d.ts.map +0 -1
  163. package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts +0 -21
  164. package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts.map +0 -1
  165. package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.js +0 -44
  166. package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.js.map +0 -1
  167. package/dist/cjs/Lifecycle/WithdrawIssue/index.d.ts +0 -2
  168. package/dist/cjs/Lifecycle/WithdrawIssue/index.d.ts.map +0 -1
  169. package/dist/cjs/Listing/Listing.d.ts +0 -99
  170. package/dist/cjs/Listing/Listing.d.ts.map +0 -1
  171. package/dist/cjs/Listing/Listing.js +0 -281
  172. package/dist/cjs/Listing/Listing.js.map +0 -1
  173. package/dist/cjs/Listing/index.d.ts +0 -2
  174. package/dist/cjs/Listing/index.d.ts.map +0 -1
  175. package/dist/cjs/Reporting/ReportError/ReportError.d.ts +0 -58
  176. package/dist/cjs/Reporting/ReportError/ReportError.d.ts.map +0 -1
  177. package/dist/cjs/Reporting/ReportError/ReportError.js +0 -167
  178. package/dist/cjs/Reporting/ReportError/ReportError.js.map +0 -1
  179. package/dist/cjs/Reporting/ReportError/index.d.ts +0 -2
  180. package/dist/cjs/Reporting/ReportError/index.d.ts.map +0 -1
  181. package/dist/cjs/Reporting/ReportIssue/ReportIssue.d.ts +0 -51
  182. package/dist/cjs/Reporting/ReportIssue/ReportIssue.d.ts.map +0 -1
  183. package/dist/cjs/Reporting/ReportIssue/ReportIssue.js +0 -144
  184. package/dist/cjs/Reporting/ReportIssue/ReportIssue.js.map +0 -1
  185. package/dist/cjs/Reporting/ReportIssue/index.d.ts +0 -2
  186. package/dist/cjs/Reporting/ReportIssue/index.d.ts.map +0 -1
  187. package/dist/cjs/Viewing/AccessState.d.ts +0 -8
  188. package/dist/cjs/Viewing/AccessState.d.ts.map +0 -1
  189. package/dist/cjs/Viewing/AccessState.js +0 -19
  190. package/dist/cjs/Viewing/AccessState.js.map +0 -1
  191. package/dist/cjs/Viewing/ConversationAuthorKind.d.ts +0 -7
  192. package/dist/cjs/Viewing/ConversationAuthorKind.d.ts.map +0 -1
  193. package/dist/cjs/Viewing/ConversationAuthorKind.js +0 -18
  194. package/dist/cjs/Viewing/ConversationAuthorKind.js.map +0 -1
  195. package/dist/cjs/Viewing/ConversationEntryKind.d.ts +0 -28
  196. package/dist/cjs/Viewing/ConversationEntryKind.d.ts.map +0 -1
  197. package/dist/cjs/Viewing/ConversationEntryKind.js +0 -39
  198. package/dist/cjs/Viewing/ConversationEntryKind.js.map +0 -1
  199. package/dist/cjs/Viewing/Viewing.d.ts +0 -145
  200. package/dist/cjs/Viewing/Viewing.d.ts.map +0 -1
  201. package/dist/cjs/Viewing/Viewing.js +0 -492
  202. package/dist/cjs/Viewing/Viewing.js.map +0 -1
  203. package/dist/cjs/Viewing/index.d.ts +0 -5
  204. package/dist/cjs/Viewing/index.d.ts.map +0 -1
  205. package/dist/cjs/index.d.ts +0 -19
  206. package/dist/cjs/index.d.ts.map +0 -1
  207. package/dist/cjs/index.js +0 -74
  208. package/dist/cjs/index.js.map +0 -1
  209. package/dist/cjs/package.json +0 -3
  210. package/dist/esm/Access/AccessDuration.d.ts +0 -6
  211. package/dist/esm/Access/AccessDuration.d.ts.map +0 -1
  212. package/dist/esm/Access/AccessDuration.js +0 -15
  213. package/dist/esm/Access/AccessDuration.js.map +0 -1
  214. package/dist/esm/Access/GrantAccess/GrantAccess.d.ts +0 -25
  215. package/dist/esm/Access/GrantAccess/GrantAccess.d.ts.map +0 -1
  216. package/dist/esm/Access/GrantAccess/GrantAccess.js +0 -53
  217. package/dist/esm/Access/GrantAccess/GrantAccess.js.map +0 -1
  218. package/dist/esm/Access/GrantAccess/index.d.ts +0 -2
  219. package/dist/esm/Access/GrantAccess/index.d.ts.map +0 -1
  220. package/dist/esm/Access/GrantAccess/index.js +0 -2
  221. package/dist/esm/Access/GrantAccess/index.js.map +0 -1
  222. package/dist/esm/Access/RevokeAccess/RevokeAccess.d.ts +0 -21
  223. package/dist/esm/Access/RevokeAccess/RevokeAccess.d.ts.map +0 -1
  224. package/dist/esm/Access/RevokeAccess/RevokeAccess.js +0 -42
  225. package/dist/esm/Access/RevokeAccess/RevokeAccess.js.map +0 -1
  226. package/dist/esm/Access/RevokeAccess/index.d.ts +0 -2
  227. package/dist/esm/Access/RevokeAccess/index.d.ts.map +0 -1
  228. package/dist/esm/Access/RevokeAccess/index.js +0 -2
  229. package/dist/esm/Access/RevokeAccess/index.js.map +0 -1
  230. package/dist/esm/Access/index.d.ts +0 -2
  231. package/dist/esm/Access/index.d.ts.map +0 -1
  232. package/dist/esm/Access/index.js +0 -2
  233. package/dist/esm/Access/index.js.map +0 -1
  234. package/dist/esm/Contracts/Conversation/SupportAuthor.d.ts +0 -6
  235. package/dist/esm/Contracts/Conversation/SupportAuthor.d.ts.map +0 -1
  236. package/dist/esm/Contracts/Conversation/SupportAuthor.js +0 -42
  237. package/dist/esm/Contracts/Conversation/SupportAuthor.js.map +0 -1
  238. package/dist/esm/Contracts/Conversation/SupportAuthorKind.d.ts +0 -5
  239. package/dist/esm/Contracts/Conversation/SupportAuthorKind.d.ts.map +0 -1
  240. package/dist/esm/Contracts/Conversation/SupportAuthorKind.js +0 -14
  241. package/dist/esm/Contracts/Conversation/SupportAuthorKind.js.map +0 -1
  242. package/dist/esm/Contracts/Conversation/index.d.ts +0 -3
  243. package/dist/esm/Contracts/Conversation/index.d.ts.map +0 -1
  244. package/dist/esm/Contracts/Conversation/index.js +0 -3
  245. package/dist/esm/Contracts/Conversation/index.js.map +0 -1
  246. package/dist/esm/Contracts/Reporting/SliceLocation.d.ts +0 -6
  247. package/dist/esm/Contracts/Reporting/SliceLocation.d.ts.map +0 -1
  248. package/dist/esm/Contracts/Reporting/SliceLocation.js +0 -48
  249. package/dist/esm/Contracts/Reporting/SliceLocation.js.map +0 -1
  250. package/dist/esm/Contracts/Reporting/StackFrame.d.ts +0 -6
  251. package/dist/esm/Contracts/Reporting/StackFrame.d.ts.map +0 -1
  252. package/dist/esm/Contracts/Reporting/StackFrame.js +0 -48
  253. package/dist/esm/Contracts/Reporting/StackFrame.js.map +0 -1
  254. package/dist/esm/Contracts/Reporting/index.d.ts +0 -3
  255. package/dist/esm/Contracts/Reporting/index.d.ts.map +0 -1
  256. package/dist/esm/Contracts/Reporting/index.js +0 -3
  257. package/dist/esm/Contracts/Reporting/index.js.map +0 -1
  258. package/dist/esm/Contracts/WorkItems/WorkItem.d.ts +0 -7
  259. package/dist/esm/Contracts/WorkItems/WorkItem.d.ts.map +0 -1
  260. package/dist/esm/Contracts/WorkItems/WorkItem.js +0 -55
  261. package/dist/esm/Contracts/WorkItems/WorkItem.js.map +0 -1
  262. package/dist/esm/Contracts/WorkItems/index.d.ts +0 -2
  263. package/dist/esm/Contracts/WorkItems/index.d.ts.map +0 -1
  264. package/dist/esm/Contracts/WorkItems/index.js +0 -2
  265. package/dist/esm/Contracts/WorkItems/index.js.map +0 -1
  266. package/dist/esm/Conversation/AddDetails/AddDetails.d.ts +0 -28
  267. package/dist/esm/Conversation/AddDetails/AddDetails.d.ts.map +0 -1
  268. package/dist/esm/Conversation/AddDetails/AddDetails.js +0 -61
  269. package/dist/esm/Conversation/AddDetails/AddDetails.js.map +0 -1
  270. package/dist/esm/Conversation/AddDetails/index.d.ts +0 -2
  271. package/dist/esm/Conversation/AddDetails/index.d.ts.map +0 -1
  272. package/dist/esm/Conversation/AddDetails/index.js +0 -2
  273. package/dist/esm/Conversation/AddDetails/index.js.map +0 -1
  274. package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.d.ts +0 -31
  275. package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.d.ts.map +0 -1
  276. package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.js +0 -72
  277. package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.js.map +0 -1
  278. package/dist/esm/Conversation/AnswerQuestion/index.d.ts +0 -2
  279. package/dist/esm/Conversation/AnswerQuestion/index.d.ts.map +0 -1
  280. package/dist/esm/Conversation/AnswerQuestion/index.js +0 -2
  281. package/dist/esm/Conversation/AnswerQuestion/index.js.map +0 -1
  282. package/dist/esm/Errors/ErrorDetails.d.ts +0 -11
  283. package/dist/esm/Errors/ErrorDetails.d.ts.map +0 -1
  284. package/dist/esm/Errors/ErrorDetails.js +0 -2
  285. package/dist/esm/Errors/ErrorDetails.js.map +0 -1
  286. package/dist/esm/Errors/errorDetailsFromCommandResult.d.ts +0 -5
  287. package/dist/esm/Errors/errorDetailsFromCommandResult.d.ts.map +0 -1
  288. package/dist/esm/Errors/errorDetailsFromCommandResult.js +0 -30
  289. package/dist/esm/Errors/errorDetailsFromCommandResult.js.map +0 -1
  290. package/dist/esm/Errors/errorDetailsFromError.d.ts +0 -4
  291. package/dist/esm/Errors/errorDetailsFromError.d.ts.map +0 -1
  292. package/dist/esm/Errors/errorDetailsFromError.js +0 -41
  293. package/dist/esm/Errors/errorDetailsFromError.js.map +0 -1
  294. package/dist/esm/Errors/errorDetailsFromQueryResult.d.ts +0 -6
  295. package/dist/esm/Errors/errorDetailsFromQueryResult.d.ts.map +0 -1
  296. package/dist/esm/Errors/errorDetailsFromQueryResult.js +0 -31
  297. package/dist/esm/Errors/errorDetailsFromQueryResult.js.map +0 -1
  298. package/dist/esm/Errors/index.d.ts +0 -7
  299. package/dist/esm/Errors/index.d.ts.map +0 -1
  300. package/dist/esm/Errors/index.js +0 -7
  301. package/dist/esm/Errors/index.js.map +0 -1
  302. package/dist/esm/Errors/messageOf.d.ts +0 -3
  303. package/dist/esm/Errors/messageOf.d.ts.map +0 -1
  304. package/dist/esm/Errors/messageOf.js +0 -21
  305. package/dist/esm/Errors/messageOf.js.map +0 -1
  306. package/dist/esm/Errors/parseStackTrace.d.ts +0 -3
  307. package/dist/esm/Errors/parseStackTrace.d.ts.map +0 -1
  308. package/dist/esm/Errors/parseStackTrace.js +0 -52
  309. package/dist/esm/Errors/parseStackTrace.js.map +0 -1
  310. package/dist/esm/Errors/resolveLocation.d.ts +0 -3
  311. package/dist/esm/Errors/resolveLocation.d.ts.map +0 -1
  312. package/dist/esm/Errors/resolveLocation.js +0 -20
  313. package/dist/esm/Errors/resolveLocation.js.map +0 -1
  314. package/dist/esm/Identity/ShareIdentity/ShareIdentity.d.ts +0 -21
  315. package/dist/esm/Identity/ShareIdentity/ShareIdentity.d.ts.map +0 -1
  316. package/dist/esm/Identity/ShareIdentity/ShareIdentity.js +0 -42
  317. package/dist/esm/Identity/ShareIdentity/ShareIdentity.js.map +0 -1
  318. package/dist/esm/Identity/ShareIdentity/index.d.ts +0 -2
  319. package/dist/esm/Identity/ShareIdentity/index.d.ts.map +0 -1
  320. package/dist/esm/Identity/ShareIdentity/index.js +0 -2
  321. package/dist/esm/Identity/ShareIdentity/index.js.map +0 -1
  322. package/dist/esm/Identity/UserIdentity.d.ts +0 -6
  323. package/dist/esm/Identity/UserIdentity.d.ts.map +0 -1
  324. package/dist/esm/Identity/UserIdentity.js +0 -48
  325. package/dist/esm/Identity/UserIdentity.js.map +0 -1
  326. package/dist/esm/Identity/index.d.ts +0 -2
  327. package/dist/esm/Identity/index.d.ts.map +0 -1
  328. package/dist/esm/Identity/index.js +0 -2
  329. package/dist/esm/Identity/index.js.map +0 -1
  330. package/dist/esm/Issues/IssueKind.d.ts +0 -5
  331. package/dist/esm/Issues/IssueKind.d.ts.map +0 -1
  332. package/dist/esm/Issues/IssueKind.js +0 -14
  333. package/dist/esm/Issues/IssueKind.js.map +0 -1
  334. package/dist/esm/Issues/IssueState.d.ts +0 -10
  335. package/dist/esm/Issues/IssueState.d.ts.map +0 -1
  336. package/dist/esm/Issues/IssueState.js +0 -19
  337. package/dist/esm/Issues/IssueState.js.map +0 -1
  338. package/dist/esm/Issues/index.d.ts +0 -3
  339. package/dist/esm/Issues/index.d.ts.map +0 -1
  340. package/dist/esm/Issues/index.js +0 -3
  341. package/dist/esm/Issues/index.js.map +0 -1
  342. package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.d.ts +0 -28
  343. package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.d.ts.map +0 -1
  344. package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.js +0 -61
  345. package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.js.map +0 -1
  346. package/dist/esm/Lifecycle/ReopenIssue/index.d.ts +0 -2
  347. package/dist/esm/Lifecycle/ReopenIssue/index.d.ts.map +0 -1
  348. package/dist/esm/Lifecycle/ReopenIssue/index.js +0 -2
  349. package/dist/esm/Lifecycle/ReopenIssue/index.js.map +0 -1
  350. package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts +0 -21
  351. package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts.map +0 -1
  352. package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.js +0 -42
  353. package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.js.map +0 -1
  354. package/dist/esm/Lifecycle/WithdrawIssue/index.d.ts +0 -2
  355. package/dist/esm/Lifecycle/WithdrawIssue/index.d.ts.map +0 -1
  356. package/dist/esm/Lifecycle/WithdrawIssue/index.js +0 -2
  357. package/dist/esm/Lifecycle/WithdrawIssue/index.js.map +0 -1
  358. package/dist/esm/Listing/Listing.d.ts +0 -99
  359. package/dist/esm/Listing/Listing.d.ts.map +0 -1
  360. package/dist/esm/Listing/Listing.js +0 -278
  361. package/dist/esm/Listing/Listing.js.map +0 -1
  362. package/dist/esm/Listing/index.d.ts +0 -2
  363. package/dist/esm/Listing/index.d.ts.map +0 -1
  364. package/dist/esm/Listing/index.js +0 -2
  365. package/dist/esm/Listing/index.js.map +0 -1
  366. package/dist/esm/Reporting/ReportError/ReportError.d.ts +0 -58
  367. package/dist/esm/Reporting/ReportError/ReportError.d.ts.map +0 -1
  368. package/dist/esm/Reporting/ReportError/ReportError.js +0 -164
  369. package/dist/esm/Reporting/ReportError/ReportError.js.map +0 -1
  370. package/dist/esm/Reporting/ReportError/index.d.ts +0 -2
  371. package/dist/esm/Reporting/ReportError/index.d.ts.map +0 -1
  372. package/dist/esm/Reporting/ReportError/index.js +0 -2
  373. package/dist/esm/Reporting/ReportError/index.js.map +0 -1
  374. package/dist/esm/Reporting/ReportIssue/ReportIssue.d.ts +0 -51
  375. package/dist/esm/Reporting/ReportIssue/ReportIssue.d.ts.map +0 -1
  376. package/dist/esm/Reporting/ReportIssue/ReportIssue.js +0 -141
  377. package/dist/esm/Reporting/ReportIssue/ReportIssue.js.map +0 -1
  378. package/dist/esm/Reporting/ReportIssue/index.d.ts +0 -2
  379. package/dist/esm/Reporting/ReportIssue/index.d.ts.map +0 -1
  380. package/dist/esm/Reporting/ReportIssue/index.js +0 -2
  381. package/dist/esm/Reporting/ReportIssue/index.js.map +0 -1
  382. package/dist/esm/Viewing/AccessState.d.ts +0 -8
  383. package/dist/esm/Viewing/AccessState.d.ts.map +0 -1
  384. package/dist/esm/Viewing/AccessState.js +0 -17
  385. package/dist/esm/Viewing/AccessState.js.map +0 -1
  386. package/dist/esm/Viewing/ConversationAuthorKind.d.ts +0 -7
  387. package/dist/esm/Viewing/ConversationAuthorKind.d.ts.map +0 -1
  388. package/dist/esm/Viewing/ConversationAuthorKind.js +0 -16
  389. package/dist/esm/Viewing/ConversationAuthorKind.js.map +0 -1
  390. package/dist/esm/Viewing/ConversationEntryKind.d.ts +0 -28
  391. package/dist/esm/Viewing/ConversationEntryKind.d.ts.map +0 -1
  392. package/dist/esm/Viewing/ConversationEntryKind.js +0 -37
  393. package/dist/esm/Viewing/ConversationEntryKind.js.map +0 -1
  394. package/dist/esm/Viewing/Viewing.d.ts +0 -145
  395. package/dist/esm/Viewing/Viewing.d.ts.map +0 -1
  396. package/dist/esm/Viewing/Viewing.js +0 -484
  397. package/dist/esm/Viewing/Viewing.js.map +0 -1
  398. package/dist/esm/Viewing/index.d.ts +0 -5
  399. package/dist/esm/Viewing/index.d.ts.map +0 -1
  400. package/dist/esm/Viewing/index.js +0 -5
  401. package/dist/esm/Viewing/index.js.map +0 -1
  402. package/dist/esm/index.d.ts +0 -19
  403. package/dist/esm/index.d.ts.map +0 -1
  404. package/dist/esm/index.js +0 -29
  405. package/dist/esm/index.js.map +0 -1
  406. package/dist/esm/package.json +0 -3
  407. package/index.ts +0 -21
@@ -1,75 +0,0 @@
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 fundamentals = require('@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.Usher.Conversation.AnswerQuestion.AnswerQuestion. Time: 2026-10-26T21:13:51.1172240Z. Hash: E9094699C3CA7572D788CDA4E95DCA46A53E721FFC91648D483E64EFC5A6979B
12
- class AnswerQuestionValidator extends commands.CommandValidator {
13
- constructor(){
14
- super();
15
- this.ruleFor((c)=>c.answer).notEmpty().withMessage('Write an answer.');
16
- this.ruleFor((c)=>c.answer).maxLength(4000).withMessage('Keep the answer within 4000 characters.');
17
- }
18
- }
19
- /**
20
- * The reporter answers a question support asked on one of their issues.
21
- */ class AnswerQuestion extends commands.Command {
22
- static sliceLocation = new reflection.SliceLocation('', 'Conversation', 'AnswerQuestion');
23
- route = '/api/conversation/answer-question';
24
- validation = new AnswerQuestionValidator();
25
- treatWarningsAsErrors = false;
26
- roles = [];
27
- propertyDescriptors = [
28
- new reflection.PropertyDescriptor('answer', String, false),
29
- new reflection.PropertyDescriptor('issueId', fundamentals.Guid, false),
30
- new reflection.PropertyDescriptor('questionId', fundamentals.Guid, false)
31
- ];
32
- #answer;
33
- #issueId;
34
- #questionId;
35
- constructor(){
36
- super(Object, false);
37
- }
38
- get requestParameters() {
39
- return [];
40
- }
41
- /**
42
- * The reporter's answer.
43
- */ get answer() {
44
- return this.#answer;
45
- }
46
- set answer(value) {
47
- this.#answer = value;
48
- this.propertyChanged('answer');
49
- }
50
- /**
51
- * The issue the question was asked on.
52
- */ get issueId() {
53
- return this.#issueId;
54
- }
55
- set issueId(value) {
56
- this.#issueId = value;
57
- this.propertyChanged('issueId');
58
- }
59
- /**
60
- * The question being answered, as the desk minted it.
61
- */ get questionId() {
62
- return this.#questionId;
63
- }
64
- set questionId(value) {
65
- this.#questionId = value;
66
- this.propertyChanged('questionId');
67
- }
68
- static use(initialValues) {
69
- return commands$1.useCommand(AnswerQuestion, initialValues);
70
- }
71
- }
72
-
73
- exports.AnswerQuestion = AnswerQuestion;
74
- exports.AnswerQuestionValidator = AnswerQuestionValidator;
75
- //# sourceMappingURL=AnswerQuestion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnswerQuestion.js","sources":["../../../../Conversation/AnswerQuestion/AnswerQuestion.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.Conversation.AnswerQuestion.AnswerQuestion. Time: 2026-10-26T21:13:51.1172240Z. Hash: E9094699C3CA7572D788CDA4E95DCA46A53E721FFC91648D483E64EFC5A6979B\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 { Guid } from '@cratis/fundamentals';\n\n/**\n * The reporter answers a question support asked on one of their issues.\n */\nexport interface IAnswerQuestion {\n\n /**\n * The reporter's answer.\n */\n answer?: string;\n\n /**\n * The issue the question was asked on.\n */\n issueId?: Guid;\n\n /**\n * The question being answered, as the desk minted it.\n */\n questionId?: Guid;\n}\n\nexport class AnswerQuestionValidator extends CommandValidator<IAnswerQuestion> {\n constructor() {\n super();\n this.ruleFor(c => c.answer).notEmpty().withMessage('Write an answer.');\n this.ruleFor(c => c.answer).maxLength(4000).withMessage('Keep the answer within 4000 characters.');\n }\n}\n\n/**\n * The reporter answers a question support asked on one of their issues.\n */\nexport class AnswerQuestion extends Command<IAnswerQuestion> implements IAnswerQuestion {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Conversation', 'AnswerQuestion');\n readonly route: string = '/api/conversation/answer-question';\n readonly validation: CommandValidator = new AnswerQuestionValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('answer', String, false),\n new PropertyDescriptor('issueId', Guid, false),\n new PropertyDescriptor('questionId', Guid, false),\n ];\n\n #answer!: string;\n #issueId!: Guid;\n #questionId!: Guid;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The reporter's answer.\n */\n get answer(): string {\n return this.#answer;\n }\n\n set answer(value: string) {\n this.#answer = value;\n this.propertyChanged('answer');\n }\n /**\n * The issue the question was asked on.\n */\n get issueId(): Guid {\n return this.#issueId;\n }\n\n set issueId(value: Guid) {\n this.#issueId = value;\n this.propertyChanged('issueId');\n }\n /**\n * The question being answered, as the desk minted it.\n */\n get questionId(): Guid {\n return this.#questionId;\n }\n\n set questionId(value: Guid) {\n this.#questionId = value;\n this.propertyChanged('questionId');\n }\n\n static use(initialValues?: IAnswerQuestion): [AnswerQuestion, SetCommandValues<IAnswerQuestion>, ClearCommandValues] {\n return useCommand<AnswerQuestion, IAnswerQuestion>(AnswerQuestion, initialValues);\n }\n}\n"],"names":["AnswerQuestionValidator","CommandValidator","ruleFor","c","answer","notEmpty","withMessage","maxLength","AnswerQuestion","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","String","Guid","Object","requestParameters","value","propertyChanged","issueId","questionId","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AA2BO,MAAMA,uBAAAA,SAAgCC,yBAAAA,CAAAA;IACzC,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,MAAM,CAAA,CAAEC,QAAQ,EAAA,CAAGC,WAAW,CAAC,kBAAA,CAAA;AACnD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,MAAM,CAAA,CAAEG,SAAS,CAAC,IAAA,CAAA,CAAMD,WAAW,CAAC,yCAAA,CAAA;AAC5D,IAAA;AACJ;AAEA;;IAGO,MAAME,cAAAA,SAAuBC,gBAAAA,CAAAA;AAChC,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,gBAAgB,gBAAA,CAAA;AAClFC,IAAAA,KAAAA,GAAgB,mCAAA;AAChBC,IAAAA,UAAAA,GAA+B,IAAIb,uBAAAA,EAAAA;AACnCc,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,UAAUC,MAAAA,EAAQ,KAAA,CAAA;QACzC,IAAID,6BAAAA,CAAmB,WAAWE,iBAAAA,EAAM,KAAA,CAAA;QACxC,IAAIF,6BAAAA,CAAmB,cAAcE,iBAAAA,EAAM,KAAA;KAC9C;AAED,IAAA,OAAO;AACP,IAAA,QAAQ;AACR,IAAA,WAAW;IAEX,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,KAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IAAA;AAEA;;AAEC,QACD,IAAIjB,MAAAA,GAAiB;QACjB,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOkB,KAAa,EAAE;QACtB,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIC,OAAAA,GAAgB;QAChB,OAAO,IAAI,CAAC,QAAQ;AACxB,IAAA;IAEA,IAAIA,OAAAA,CAAQF,KAAW,EAAE;QACrB,IAAI,CAAC,QAAQ,GAAGA,KAAAA;QAChB,IAAI,CAACC,eAAe,CAAC,SAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIE,UAAAA,GAAmB;QACnB,OAAO,IAAI,CAAC,WAAW;AAC3B,IAAA;IAEA,IAAIA,UAAAA,CAAWH,KAAW,EAAE;QACxB,IAAI,CAAC,WAAW,GAAGA,KAAAA;QACnB,IAAI,CAACC,eAAe,CAAC,YAAA,CAAA;AACzB,IAAA;IAEA,OAAOG,GAAAA,CAAIC,aAA+B,EAA2E;AACjH,QAAA,OAAOC,sBAA4CpB,cAAAA,EAAgBmB,aAAAA,CAAAA;AACvE,IAAA;AACJ;;;"}
@@ -1,2 +0,0 @@
1
- export * from './AnswerQuestion';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Conversation/AnswerQuestion/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC"}
@@ -1,11 +0,0 @@
1
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
2
- import { Guid } from '@cratis/fundamentals';
3
- import { StackFrame } from '../Contracts/Reporting/StackFrame';
4
- export interface ErrorDetails {
5
- readonly message: string;
6
- readonly type: string;
7
- readonly correlationIds: Guid[];
8
- readonly stackFrames: StackFrame[];
9
- readonly location: ArcSliceLocation;
10
- }
11
- //# sourceMappingURL=ErrorDetails.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorDetails.d.ts","sourceRoot":"","sources":["../../../Errors/ErrorDetails.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAS/D,MAAM,WAAW,YAAY;IAIzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAMzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAKtB,QAAQ,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC;IAKhC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,CAAC;IAKnC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;CACvC"}
@@ -1,5 +0,0 @@
1
- import { ICommandResult } from '@cratis/arc/commands';
2
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
3
- import { ErrorDetails } from './ErrorDetails';
4
- export declare function errorDetailsFromCommandResult(result: ICommandResult<unknown>, command?: object, location?: ArcSliceLocation): ErrorDetails;
5
- //# sourceMappingURL=errorDetailsFromCommandResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorDetailsFromCommandResult.d.ts","sourceRoot":"","sources":["../../../Errors/errorDetailsFromCommandResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAgB9C,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAQ1I"}
@@ -1,32 +0,0 @@
1
- 'use strict';
2
-
3
- var messageOf = require('./messageOf.js');
4
- var parseStackTrace = require('./parseStackTrace.js');
5
- var resolveLocation = require('./resolveLocation.js');
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
- /**
10
- * Builds {@link ErrorDetails} from the result of a failed Arc command.
11
- * @remarks
12
- * The correlation id is the command's, which lets the backend record the error as it captured it. The stack frames
13
- * are parsed from the stack trace Arc returns, and the type is empty, because Arc does not return the .NET type.
14
- * @param result The {@link ICommandResult} of the failed command.
15
- * @param command The failing command, whose generated proxy declares where it lives.
16
- * @param location Where it happened when the command's proxy declares nothing, such as the location from
17
- * `useSliceContext()`.
18
- * @returns The {@link ErrorDetails}.
19
- */ function errorDetailsFromCommandResult(result, command, location) {
20
- return {
21
- message: messageOf.messageOf(result.exceptionMessages, result.authorizationFailureReason, result.validationResults),
22
- type: '',
23
- correlationIds: result.correlationId ? [
24
- result.correlationId
25
- ] : [],
26
- stackFrames: parseStackTrace.parseStackTrace(result.exceptionStackTrace),
27
- location: resolveLocation.resolveLocation(command, location)
28
- };
29
- }
30
-
31
- exports.errorDetailsFromCommandResult = errorDetailsFromCommandResult;
32
- //# sourceMappingURL=errorDetailsFromCommandResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorDetailsFromCommandResult.js","sources":["../../../Errors/errorDetailsFromCommandResult.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\nimport { ICommandResult } from '@cratis/arc/commands';\nimport { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';\nimport { ErrorDetails } from './ErrorDetails';\nimport { messageOf } from './messageOf';\nimport { parseStackTrace } from './parseStackTrace';\nimport { resolveLocation } from './resolveLocation';\n\n/**\n * Builds {@link ErrorDetails} from the result of a failed Arc command.\n * @remarks\n * The correlation id is the command's, which lets the backend record the error as it captured it. The stack frames\n * are parsed from the stack trace Arc returns, and the type is empty, because Arc does not return the .NET type.\n * @param result The {@link ICommandResult} of the failed command.\n * @param command The failing command, whose generated proxy declares where it lives.\n * @param location Where it happened when the command's proxy declares nothing, such as the location from\n * `useSliceContext()`.\n * @returns The {@link ErrorDetails}.\n */\nexport function errorDetailsFromCommandResult(result: ICommandResult<unknown>, command?: object, location?: ArcSliceLocation): ErrorDetails {\n return {\n message: messageOf(result.exceptionMessages, result.authorizationFailureReason, result.validationResults),\n type: '',\n correlationIds: result.correlationId ? [result.correlationId] : [],\n stackFrames: parseStackTrace(result.exceptionStackTrace),\n location: resolveLocation(command, location)\n };\n}\n"],"names":["errorDetailsFromCommandResult","result","command","location","message","messageOf","exceptionMessages","authorizationFailureReason","validationResults","type","correlationIds","correlationId","stackFrames","parseStackTrace","exceptionStackTrace","resolveLocation"],"mappings":";;;;;;AAAA;AACA;AASA;;;;;;;;;;AAUC,IACM,SAASA,6BAAAA,CAA8BC,MAA+B,EAAEC,OAAgB,EAAEC,QAA2B,EAAA;IACxH,OAAO;QACHC,OAAAA,EAASC,mBAAAA,CAAUJ,OAAOK,iBAAiB,EAAEL,OAAOM,0BAA0B,EAAEN,OAAOO,iBAAiB,CAAA;QACxGC,IAAAA,EAAM,EAAA;QACNC,cAAAA,EAAgBT,MAAAA,CAAOU,aAAa,GAAG;AAACV,YAAAA,MAAAA,CAAOU;AAAc,SAAA,GAAG,EAAE;QAClEC,WAAAA,EAAaC,+BAAAA,CAAgBZ,OAAOa,mBAAmB,CAAA;AACvDX,QAAAA,QAAAA,EAAUY,gCAAgBb,OAAAA,EAASC,QAAAA;AACvC,KAAA;AACJ;;"}
@@ -1,4 +0,0 @@
1
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
2
- import { ErrorDetails } from './ErrorDetails';
3
- export declare function errorDetailsFromError(error: unknown, location?: ArcSliceLocation): ErrorDetails;
4
- //# sourceMappingURL=errorDetailsFromError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorDetailsFromError.d.ts","sourceRoot":"","sources":["../../../Errors/errorDetailsFromError.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAY9C,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAkB/F"}
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- var reflection = require('@cratis/arc/reflection');
4
- var parseStackTrace = require('./parseStackTrace.js');
5
-
6
- // Copyright (c) Cratis. All rights reserved.
7
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
8
- /**
9
- * Builds {@link ErrorDetails} from a JavaScript error, or anything else that was thrown.
10
- * @remarks
11
- * The type is the error's `name`, or the name of its class when a subclass leaves `name` as `Error`. A thrown
12
- * value that is not an `Error` has no type and no stack frames, and its text as the message.
13
- * @param error What was thrown.
14
- * @param location Where it happened, such as the location from `useSliceContext()`.
15
- * @returns The {@link ErrorDetails}.
16
- */ function errorDetailsFromError(error, location) {
17
- if (error instanceof Error) {
18
- return {
19
- message: error.message,
20
- type: typeOf(error),
21
- correlationIds: [],
22
- stackFrames: parseStackTrace.parseStackTrace(error.stack),
23
- location: location ?? reflection.SliceLocation.empty
24
- };
25
- }
26
- return {
27
- message: error === undefined ? '' : String(error),
28
- type: '',
29
- correlationIds: [],
30
- stackFrames: [],
31
- location: location ?? reflection.SliceLocation.empty
32
- };
33
- }
34
- function typeOf(error) {
35
- const className = error.constructor?.name ?? '';
36
- if (error.name === 'Error' && className.length > 0) {
37
- return className;
38
- }
39
- return error.name;
40
- }
41
-
42
- exports.errorDetailsFromError = errorDetailsFromError;
43
- //# sourceMappingURL=errorDetailsFromError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorDetailsFromError.js","sources":["../../../Errors/errorDetailsFromError.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\nimport { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';\nimport { ErrorDetails } from './ErrorDetails';\nimport { parseStackTrace } from './parseStackTrace';\n\n/**\n * Builds {@link ErrorDetails} from a JavaScript error, or anything else that was thrown.\n * @remarks\n * The type is the error's `name`, or the name of its class when a subclass leaves `name` as `Error`. A thrown\n * value that is not an `Error` has no type and no stack frames, and its text as the message.\n * @param error What was thrown.\n * @param location Where it happened, such as the location from `useSliceContext()`.\n * @returns The {@link ErrorDetails}.\n */\nexport function errorDetailsFromError(error: unknown, location?: ArcSliceLocation): ErrorDetails {\n if (error instanceof Error) {\n return {\n message: error.message,\n type: typeOf(error),\n correlationIds: [],\n stackFrames: parseStackTrace(error.stack),\n location: location ?? ArcSliceLocation.empty\n };\n }\n\n return {\n message: error === undefined ? '' : String(error),\n type: '',\n correlationIds: [],\n stackFrames: [],\n location: location ?? ArcSliceLocation.empty\n };\n}\n\nfunction typeOf(error: Error): string {\n const className = error.constructor?.name ?? '';\n if (error.name === 'Error' && className.length > 0) {\n return className;\n }\n\n return error.name;\n}\n"],"names":["errorDetailsFromError","error","location","Error","message","type","typeOf","correlationIds","stackFrames","parseStackTrace","stack","ArcSliceLocation","empty","undefined","String","className","name","length"],"mappings":";;;;;AAAA;AACA;AAMA;;;;;;;;AAQC,IACM,SAASA,qBAAAA,CAAsBC,KAAc,EAAEC,QAA2B,EAAA;AAC7E,IAAA,IAAID,iBAAiBE,KAAAA,EAAO;QACxB,OAAO;AACHC,YAAAA,OAAAA,EAASH,MAAMG,OAAO;AACtBC,YAAAA,IAAAA,EAAMC,MAAAA,CAAOL,KAAAA,CAAAA;AACbM,YAAAA,cAAAA,EAAgB,EAAE;YAClBC,WAAAA,EAAaC,+BAAAA,CAAgBR,MAAMS,KAAK,CAAA;YACxCR,QAAAA,EAAUA,QAAAA,IAAYS,yBAAiBC;AAC3C,SAAA;AACJ,IAAA;IAEA,OAAO;QACHR,OAAAA,EAASH,KAAAA,KAAUY,SAAAA,GAAY,EAAA,GAAKC,MAAAA,CAAOb,KAAAA,CAAAA;QAC3CI,IAAAA,EAAM,EAAA;AACNE,QAAAA,cAAAA,EAAgB,EAAE;AAClBC,QAAAA,WAAAA,EAAa,EAAE;QACfN,QAAAA,EAAUA,QAAAA,IAAYS,yBAAiBC;AAC3C,KAAA;AACJ;AAEA,SAASN,OAAOL,KAAY,EAAA;AACxB,IAAA,MAAMc,SAAAA,GAAYd,KAAAA,CAAM,WAAW,EAAEe,IAAAA,IAAQ,EAAA;AAC7C,IAAA,IAAIf,MAAMe,IAAI,KAAK,WAAWD,SAAAA,CAAUE,MAAM,GAAG,CAAA,EAAG;QAChD,OAAOF,SAAAA;AACX,IAAA;AAEA,IAAA,OAAOd,MAAMe,IAAI;AACrB;;"}
@@ -1,6 +0,0 @@
1
- import { QueryResult } from '@cratis/arc/queries';
2
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
3
- import { Guid } from '@cratis/fundamentals';
4
- import { ErrorDetails } from './ErrorDetails';
5
- export declare function errorDetailsFromQueryResult(result: Pick<QueryResult<unknown>, 'exceptionMessages' | 'exceptionStackTrace' | 'validationResults'>, query?: object, location?: ArcSliceLocation, correlationId?: Guid): ErrorDetails;
6
- //# sourceMappingURL=errorDetailsFromQueryResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorDetailsFromQueryResult.d.ts","sourceRoot":"","sources":["../../../Errors/errorDetailsFromQueryResult.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiB9C,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,qBAAqB,GAAG,mBAAmB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,IAAI,GAAG,YAAY,CAQlO"}
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- var messageOf = require('./messageOf.js');
4
- var parseStackTrace = require('./parseStackTrace.js');
5
- var resolveLocation = require('./resolveLocation.js');
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
- /**
10
- * Builds {@link ErrorDetails} from the result of a failed Arc query.
11
- * @remarks
12
- * A query result carries no correlation id, so pass the one you know, if any. The stack frames are parsed from the
13
- * stack trace Arc returns, and the type is empty, because Arc does not return the .NET type.
14
- * @param result The result of the failed query, a {@link QueryResult} or the result of a query hook.
15
- * @param query The failing query, whose generated proxy declares where it lives.
16
- * @param location Where it happened when the query's proxy declares nothing, such as the location from
17
- * `useSliceContext()`.
18
- * @param correlationId The correlation id of the query, when known.
19
- * @returns The {@link ErrorDetails}.
20
- */ function errorDetailsFromQueryResult(result, query, location, correlationId) {
21
- return {
22
- message: messageOf.messageOf(result.exceptionMessages, '', result.validationResults),
23
- type: '',
24
- correlationIds: correlationId ? [
25
- correlationId
26
- ] : [],
27
- stackFrames: parseStackTrace.parseStackTrace(result.exceptionStackTrace),
28
- location: resolveLocation.resolveLocation(query, location)
29
- };
30
- }
31
-
32
- exports.errorDetailsFromQueryResult = errorDetailsFromQueryResult;
33
- //# sourceMappingURL=errorDetailsFromQueryResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorDetailsFromQueryResult.js","sources":["../../../Errors/errorDetailsFromQueryResult.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\nimport { QueryResult } from '@cratis/arc/queries';\nimport { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';\nimport { Guid } from '@cratis/fundamentals';\nimport { ErrorDetails } from './ErrorDetails';\nimport { messageOf } from './messageOf';\nimport { parseStackTrace } from './parseStackTrace';\nimport { resolveLocation } from './resolveLocation';\n\n/**\n * Builds {@link ErrorDetails} from the result of a failed Arc query.\n * @remarks\n * A query result carries no correlation id, so pass the one you know, if any. The stack frames are parsed from the\n * stack trace Arc returns, and the type is empty, because Arc does not return the .NET type.\n * @param result The result of the failed query, a {@link QueryResult} or the result of a query hook.\n * @param query The failing query, whose generated proxy declares where it lives.\n * @param location Where it happened when the query's proxy declares nothing, such as the location from\n * `useSliceContext()`.\n * @param correlationId The correlation id of the query, when known.\n * @returns The {@link ErrorDetails}.\n */\nexport function errorDetailsFromQueryResult(result: Pick<QueryResult<unknown>, 'exceptionMessages' | 'exceptionStackTrace' | 'validationResults'>, query?: object, location?: ArcSliceLocation, correlationId?: Guid): ErrorDetails {\n return {\n message: messageOf(result.exceptionMessages, '', result.validationResults),\n type: '',\n correlationIds: correlationId ? [correlationId] : [],\n stackFrames: parseStackTrace(result.exceptionStackTrace),\n location: resolveLocation(query, location)\n };\n}\n"],"names":["errorDetailsFromQueryResult","result","query","location","correlationId","message","messageOf","exceptionMessages","validationResults","type","correlationIds","stackFrames","parseStackTrace","exceptionStackTrace","resolveLocation"],"mappings":";;;;;;AAAA;AACA;AAUA;;;;;;;;;;;IAYO,SAASA,2BAAAA,CAA4BC,MAAqG,EAAEC,KAAc,EAAEC,QAA2B,EAAEC,aAAoB,EAAA;IAChN,OAAO;AACHC,QAAAA,OAAAA,EAASC,oBAAUL,MAAAA,CAAOM,iBAAiB,EAAE,EAAA,EAAIN,OAAOO,iBAAiB,CAAA;QACzEC,IAAAA,EAAM,EAAA;AACNC,QAAAA,cAAAA,EAAgBN,aAAAA,GAAgB;AAACA,YAAAA;AAAc,SAAA,GAAG,EAAE;QACpDO,WAAAA,EAAaC,+BAAAA,CAAgBX,OAAOY,mBAAmB,CAAA;AACvDV,QAAAA,QAAAA,EAAUW,gCAAgBZ,KAAAA,EAAOC,QAAAA;AACrC,KAAA;AACJ;;"}
@@ -1,7 +0,0 @@
1
- export * from './ErrorDetails';
2
- export * from './errorDetailsFromCommandResult';
3
- export * from './errorDetailsFromError';
4
- export * from './errorDetailsFromQueryResult';
5
- export * from './parseStackTrace';
6
- export * from './resolveLocation';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Errors/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ValidationResult } from '@cratis/arc/validation';
2
- export declare function messageOf(exceptionMessages: string[], authorizationFailureReason: string, validationResults: ValidationResult[]): string;
3
- //# sourceMappingURL=messageOf.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messageOf.d.ts","sourceRoot":"","sources":["../../../Errors/messageOf.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU1D,wBAAgB,SAAS,CAAC,iBAAiB,EAAE,MAAM,EAAE,EAAE,0BAA0B,EAAE,MAAM,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAUxI"}
@@ -1,23 +0,0 @@
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
- /**
6
- * Gets the message of a failed command or query result: its exception messages, otherwise the reason it was not
7
- * authorized, otherwise its validation messages, joined with new lines.
8
- * @param exceptionMessages The exception messages.
9
- * @param authorizationFailureReason The reason it was not authorized; empty when it was.
10
- * @param validationResults The validation results.
11
- * @returns The message; empty when the result carries none.
12
- */ function messageOf(exceptionMessages, authorizationFailureReason, validationResults) {
13
- if (exceptionMessages.length > 0) {
14
- return exceptionMessages.join('\n');
15
- }
16
- if (authorizationFailureReason) {
17
- return authorizationFailureReason;
18
- }
19
- return validationResults.map((result)=>result.message).join('\n');
20
- }
21
-
22
- exports.messageOf = messageOf;
23
- //# sourceMappingURL=messageOf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messageOf.js","sources":["../../../Errors/messageOf.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\nimport { ValidationResult } from '@cratis/arc/validation';\n\n/**\n * Gets the message of a failed command or query result: its exception messages, otherwise the reason it was not\n * authorized, otherwise its validation messages, joined with new lines.\n * @param exceptionMessages The exception messages.\n * @param authorizationFailureReason The reason it was not authorized; empty when it was.\n * @param validationResults The validation results.\n * @returns The message; empty when the result carries none.\n */\nexport function messageOf(exceptionMessages: string[], authorizationFailureReason: string, validationResults: ValidationResult[]): string {\n if (exceptionMessages.length > 0) {\n return exceptionMessages.join('\\n');\n }\n\n if (authorizationFailureReason) {\n return authorizationFailureReason;\n }\n\n return validationResults.map(result => result.message).join('\\n');\n}\n"],"names":["messageOf","exceptionMessages","authorizationFailureReason","validationResults","length","join","map","result","message"],"mappings":";;AAAA;AACA;AAIA;;;;;;;AAOC,IACM,SAASA,SAAAA,CAAUC,iBAA2B,EAAEC,0BAAkC,EAAEC,iBAAqC,EAAA;IAC5H,IAAIF,iBAAAA,CAAkBG,MAAM,GAAG,CAAA,EAAG;QAC9B,OAAOH,iBAAAA,CAAkBI,IAAI,CAAC,IAAA,CAAA;AAClC,IAAA;AAEA,IAAA,IAAIH,0BAAAA,EAA4B;QAC5B,OAAOA,0BAAAA;AACX,IAAA;IAEA,OAAOC,iBAAAA,CAAkBG,GAAG,CAACC,CAAAA,SAAUA,MAAAA,CAAOC,OAAO,CAAA,CAAEH,IAAI,CAAC,IAAA,CAAA;AAChE;;"}
@@ -1,3 +0,0 @@
1
- import { StackFrame } from '../Contracts/Reporting/StackFrame';
2
- export declare function parseStackTrace(stackTrace?: string): StackFrame[];
3
- //# sourceMappingURL=parseStackTrace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseStackTrace.d.ts","sourceRoot":"","sources":["../../../Errors/parseStackTrace.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAiB/D,wBAAgB,eAAe,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,EAAE,CASjE"}
@@ -1,54 +0,0 @@
1
- 'use strict';
2
-
3
- var StackFrame = require('../Contracts/Reporting/StackFrame.js');
4
-
5
- // Copyright (c) Cratis. All rights reserved.
6
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
- const dotNetFrame = /^\s*at\s+(.+?)(?:\s+in\s+(.+):line\s+(\d+))?\s*$/;
8
- const v8FrameWithMethod = /^\s*at\s+(?:async\s+)?(.+?)\s+\((.+?):(\d+)(?::\d+)?\)\s*$/;
9
- const v8FrameWithoutMethod = /^\s*at\s+(?:async\s+)?(.+?):(\d+)(?::\d+)?\s*$/;
10
- const geckoFrame = /^\s*(.*?)@(.+?):(\d+)(?::\d+)?\s*$/;
11
- /**
12
- * Parses a stack trace into stack frames, top frame first.
13
- * @remarks
14
- * Understands the stack of a JavaScript error in Chromium, Node.js, Firefox and Safari, and the .NET stack trace Arc
15
- * returns for a failing command or query (\`at Type.Method() in File.cs:line 42\`). Lines that are not frames, such
16
- * as the message line or \`--- End of stack trace from previous location ---\`, are skipped. A frame without a file
17
- * or line has an empty file and line 0.
18
- * @param stackTrace The stack trace; nothing gives no frames.
19
- * @returns The stack frames.
20
- */ function parseStackTrace(stackTrace) {
21
- if (!stackTrace) {
22
- return [];
23
- }
24
- return stackTrace.split(/\r?\n/).map(parseFrame).filter((frame)=>frame !== undefined);
25
- }
26
- function parseFrame(line) {
27
- let match = v8FrameWithMethod.exec(line);
28
- if (match) {
29
- return frame(match[1], match[2], match[3]);
30
- }
31
- match = v8FrameWithoutMethod.exec(line);
32
- if (match && !line.includes('(')) {
33
- return frame('', match[1], match[2]);
34
- }
35
- match = dotNetFrame.exec(line);
36
- if (match) {
37
- return frame(match[1], match[2] ?? '', match[3] ?? '0');
38
- }
39
- match = geckoFrame.exec(line);
40
- if (match) {
41
- return frame(match[1], match[2], match[3]);
42
- }
43
- return undefined;
44
- }
45
- function frame(method, file, line) {
46
- return Object.assign(new StackFrame.StackFrame(), {
47
- method: method.trim(),
48
- file: file.trim(),
49
- line: Number.parseInt(line, 10) || 0
50
- });
51
- }
52
-
53
- exports.parseStackTrace = parseStackTrace;
54
- //# sourceMappingURL=parseStackTrace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseStackTrace.js","sources":["../../../Errors/parseStackTrace.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\nimport { StackFrame } from '../Contracts/Reporting/StackFrame';\n\nconst dotNetFrame = /^\\s*at\\s+(.+?)(?:\\s+in\\s+(.+):line\\s+(\\d+))?\\s*$/;\nconst v8FrameWithMethod = /^\\s*at\\s+(?:async\\s+)?(.+?)\\s+\\((.+?):(\\d+)(?::\\d+)?\\)\\s*$/;\nconst v8FrameWithoutMethod = /^\\s*at\\s+(?:async\\s+)?(.+?):(\\d+)(?::\\d+)?\\s*$/;\nconst geckoFrame = /^\\s*(.*?)@(.+?):(\\d+)(?::\\d+)?\\s*$/;\n\n/**\n * Parses a stack trace into stack frames, top frame first.\n * @remarks\n * Understands the stack of a JavaScript error in Chromium, Node.js, Firefox and Safari, and the .NET stack trace Arc\n * returns for a failing command or query (\\`at Type.Method() in File.cs:line 42\\`). Lines that are not frames, such\n * as the message line or \\`--- End of stack trace from previous location ---\\`, are skipped. A frame without a file\n * or line has an empty file and line 0.\n * @param stackTrace The stack trace; nothing gives no frames.\n * @returns The stack frames.\n */\nexport function parseStackTrace(stackTrace?: string): StackFrame[] {\n if (!stackTrace) {\n return [];\n }\n\n return stackTrace\n .split(/\\r?\\n/)\n .map(parseFrame)\n .filter((frame): frame is StackFrame => frame !== undefined);\n}\n\nfunction parseFrame(line: string): StackFrame | undefined {\n let match = v8FrameWithMethod.exec(line);\n if (match) {\n return frame(match[1], match[2], match[3]);\n }\n\n match = v8FrameWithoutMethod.exec(line);\n if (match && !line.includes('(')) {\n return frame('', match[1], match[2]);\n }\n\n match = dotNetFrame.exec(line);\n if (match) {\n return frame(match[1], match[2] ?? '', match[3] ?? '0');\n }\n\n match = geckoFrame.exec(line);\n if (match) {\n return frame(match[1], match[2], match[3]);\n }\n\n return undefined;\n}\n\nfunction frame(method: string, file: string, line: string): StackFrame {\n return Object.assign(new StackFrame(), {\n method: method.trim(),\n file: file.trim(),\n line: Number.parseInt(line, 10) || 0\n });\n}\n"],"names":["dotNetFrame","v8FrameWithMethod","v8FrameWithoutMethod","geckoFrame","parseStackTrace","stackTrace","split","map","parseFrame","filter","frame","undefined","line","match","exec","includes","method","file","Object","assign","StackFrame","trim","Number","parseInt"],"mappings":";;;;AAAA;AACA;AAIA,MAAMA,WAAAA,GAAc,kDAAA;AACpB,MAAMC,iBAAAA,GAAoB,4DAAA;AAC1B,MAAMC,oBAAAA,GAAuB,gDAAA;AAC7B,MAAMC,UAAAA,GAAa,oCAAA;AAEnB;;;;;;;;;IAUO,SAASC,eAAAA,CAAgBC,UAAmB,EAAA;AAC/C,IAAA,IAAI,CAACA,UAAAA,EAAY;AACb,QAAA,OAAO,EAAE;AACb,IAAA;IAEA,OAAOA,UAAAA,CACFC,KAAK,CAAC,OAAA,CAAA,CACNC,GAAG,CAACC,UAAAA,CAAAA,CACJC,MAAM,CAAC,CAACC,KAAAA,GAA+BA,KAAAA,KAAUC,SAAAA,CAAAA;AAC1D;AAEA,SAASH,WAAWI,IAAY,EAAA;IAC5B,IAAIC,KAAAA,GAAQZ,iBAAAA,CAAkBa,IAAI,CAACF,IAAAA,CAAAA;AACnC,IAAA,IAAIC,KAAAA,EAAO;QACP,OAAOH,KAAAA,CAAMG,KAAK,CAAC,CAAA,CAAE,EAAEA,KAAK,CAAC,CAAA,CAAE,EAAEA,KAAK,CAAC,CAAA,CAAE,CAAA;AAC7C,IAAA;IAEAA,KAAAA,GAAQX,oBAAAA,CAAqBY,IAAI,CAACF,IAAAA,CAAAA;AAClC,IAAA,IAAIC,KAAAA,IAAS,CAACD,IAAAA,CAAKG,QAAQ,CAAC,GAAA,CAAA,EAAM;QAC9B,OAAOL,KAAAA,CAAM,IAAIG,KAAK,CAAC,EAAE,EAAEA,KAAK,CAAC,CAAA,CAAE,CAAA;AACvC,IAAA;IAEAA,KAAAA,GAAQb,WAAAA,CAAYc,IAAI,CAACF,IAAAA,CAAAA;AACzB,IAAA,IAAIC,KAAAA,EAAO;AACP,QAAA,OAAOH,KAAAA,CAAMG,KAAK,CAAC,CAAA,CAAE,EAAEA,KAAK,CAAC,CAAA,CAAE,IAAI,EAAA,EAAIA,KAAK,CAAC,EAAE,IAAI,GAAA,CAAA;AACvD,IAAA;IAEAA,KAAAA,GAAQV,UAAAA,CAAWW,IAAI,CAACF,IAAAA,CAAAA;AACxB,IAAA,IAAIC,KAAAA,EAAO;QACP,OAAOH,KAAAA,CAAMG,KAAK,CAAC,CAAA,CAAE,EAAEA,KAAK,CAAC,CAAA,CAAE,EAAEA,KAAK,CAAC,CAAA,CAAE,CAAA;AAC7C,IAAA;IAEA,OAAOF,SAAAA;AACX;AAEA,SAASD,KAAAA,CAAMM,MAAc,EAAEC,IAAY,EAAEL,IAAY,EAAA;AACrD,IAAA,OAAOM,MAAAA,CAAOC,MAAM,CAAC,IAAIC,qBAAAA,EAAAA,EAAc;AACnCJ,QAAAA,MAAAA,EAAQA,OAAOK,IAAI,EAAA;AACnBJ,QAAAA,IAAAA,EAAMA,KAAKI,IAAI,EAAA;AACfT,QAAAA,IAAAA,EAAMU,MAAAA,CAAOC,QAAQ,CAACX,IAAAA,EAAM,EAAA,CAAA,IAAO;AACvC,KAAA,CAAA;AACJ;;"}
@@ -1,3 +0,0 @@
1
- import { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';
2
- export declare function resolveLocation(operation?: object, location?: ArcSliceLocation): ArcSliceLocation;
3
- //# sourceMappingURL=resolveLocation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveLocation.d.ts","sourceRoot":"","sources":["../../../Errors/resolveLocation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAS3E,wBAAgB,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,CAOjG"}
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- var reflection = require('@cratis/arc/reflection');
4
-
5
- // Copyright (c) Cratis. All rights reserved.
6
- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
- /**
8
- * Resolves where an error happened: the slice location of the failing command or query when its proxy declares one,
9
- * otherwise the location given, otherwise {@link ArcSliceLocation.empty}.
10
- * @param operation The failing command or query, if known.
11
- * @param location The location the caller knows, such as the one from `useSliceContext()`.
12
- * @returns The {@link ArcSliceLocation}.
13
- */ function resolveLocation(operation, location) {
14
- const declared = operation ? reflection.SliceLocation.of(operation) : reflection.SliceLocation.empty;
15
- if (!declared.isEmpty) {
16
- return declared;
17
- }
18
- return location ?? reflection.SliceLocation.empty;
19
- }
20
-
21
- exports.resolveLocation = resolveLocation;
22
- //# sourceMappingURL=resolveLocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveLocation.js","sources":["../../../Errors/resolveLocation.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\nimport { SliceLocation as ArcSliceLocation } from '@cratis/arc/reflection';\n\n/**\n * Resolves where an error happened: the slice location of the failing command or query when its proxy declares one,\n * otherwise the location given, otherwise {@link ArcSliceLocation.empty}.\n * @param operation The failing command or query, if known.\n * @param location The location the caller knows, such as the one from `useSliceContext()`.\n * @returns The {@link ArcSliceLocation}.\n */\nexport function resolveLocation(operation?: object, location?: ArcSliceLocation): ArcSliceLocation {\n const declared = operation ? ArcSliceLocation.of(operation) : ArcSliceLocation.empty;\n if (!declared.isEmpty) {\n return declared;\n }\n\n return location ?? ArcSliceLocation.empty;\n}\n"],"names":["resolveLocation","operation","location","declared","ArcSliceLocation","of","empty","isEmpty"],"mappings":";;;;AAAA;AACA;AAIA;;;;;;AAMC,IACM,SAASA,eAAAA,CAAgBC,SAAkB,EAAEC,QAA2B,EAAA;AAC3E,IAAA,MAAMC,WAAWF,SAAAA,GAAYG,wBAAAA,CAAiBC,EAAE,CAACJ,SAAAA,CAAAA,GAAaG,yBAAiBE,KAAK;IACpF,IAAI,CAACH,QAAAA,CAASI,OAAO,EAAE;QACnB,OAAOJ,QAAAA;AACX,IAAA;IAEA,OAAOD,QAAAA,IAAYE,yBAAiBE,KAAK;AAC7C;;"}
@@ -1,21 +0,0 @@
1
- import { Command } 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 { Guid } from '@cratis/fundamentals';
5
- export interface IShareIdentity {
6
- issueId?: Guid;
7
- }
8
- export declare class ShareIdentity extends Command<IShareIdentity> implements IShareIdentity {
9
- #private;
10
- static readonly sliceLocation: ArcSliceLocation;
11
- readonly route: string;
12
- readonly treatWarningsAsErrors: boolean;
13
- readonly roles: string[];
14
- readonly propertyDescriptors: PropertyDescriptor[];
15
- constructor();
16
- get requestParameters(): string[];
17
- get issueId(): Guid;
18
- set issueId(value: Guid);
19
- static use(initialValues?: IShareIdentity): [ShareIdentity, SetCommandValues<IShareIdentity>, ClearCommandValues];
20
- }
21
- //# sourceMappingURL=ShareIdentity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ShareIdentity.d.ts","sourceRoot":"","sources":["../../../../Identity/ShareIdentity/ShareIdentity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,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,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAK5C,MAAM,WAAW,cAAc;IAK3B,OAAO,CAAC,EAAE,IAAI,CAAC;CAClB;AAMD,qBAAa,aAAc,SAAQ,OAAO,CAAC,cAAc,CAAE,YAAW,cAAc;;IAChF,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAyD;IACxG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAkC;IACxD,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAEhD;;IAQF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,OAAO,IAAI,IAAI,CAElB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,IAAI,EAGtB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,cAAc,GAAG,CAAC,aAAa,EAAE,gBAAgB,CAAC,cAAc,CAAC,EAAE,kBAAkB,CAAC;CAGpH"}
@@ -1,44 +0,0 @@
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 fundamentals = require('@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.Usher.Identity.ShareIdentity.ShareIdentity. Time: 2026-10-26T19:31:39.8469400Z. Hash: AED64B66E1CDCA28889C3B2466EBD757C08D2AF9AE56C05872DF8F0C49EE1261
12
- /**
13
- * The reporter lets support know who they are on one of their issues. Who they are is taken from the signed-in identity, never from the request.
14
- */ class ShareIdentity extends commands.Command {
15
- static sliceLocation = new reflection.SliceLocation('', 'Identity', 'ShareIdentity');
16
- route = '/api/identity/share-identity';
17
- treatWarningsAsErrors = false;
18
- roles = [];
19
- propertyDescriptors = [
20
- new reflection.PropertyDescriptor('issueId', fundamentals.Guid, false)
21
- ];
22
- #issueId;
23
- constructor(){
24
- super(Object, false);
25
- }
26
- get requestParameters() {
27
- return [];
28
- }
29
- /**
30
- * The issue to share identity on.
31
- */ get issueId() {
32
- return this.#issueId;
33
- }
34
- set issueId(value) {
35
- this.#issueId = value;
36
- this.propertyChanged('issueId');
37
- }
38
- static use(initialValues) {
39
- return commands$1.useCommand(ShareIdentity, initialValues);
40
- }
41
- }
42
-
43
- exports.ShareIdentity = ShareIdentity;
44
- //# sourceMappingURL=ShareIdentity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ShareIdentity.js","sources":["../../../../Identity/ShareIdentity/ShareIdentity.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.Identity.ShareIdentity.ShareIdentity. Time: 2026-10-26T19:31:39.8469400Z. Hash: AED64B66E1CDCA28889C3B2466EBD757C08D2AF9AE56C05872DF8F0C49EE1261\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The reporter lets support know who they are on one of their issues. Who they are is taken from the signed-in identity, never from the request.\n */\nexport interface IShareIdentity {\n\n /**\n * The issue to share identity on.\n */\n issueId?: Guid;\n}\n\n\n/**\n * The reporter lets support know who they are on one of their issues. Who they are is taken from the signed-in identity, never from the request.\n */\nexport class ShareIdentity extends Command<IShareIdentity> implements IShareIdentity {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Identity', 'ShareIdentity');\n readonly route: string = '/api/identity/share-identity';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('issueId', Guid, false),\n ];\n\n #issueId!: Guid;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The issue to share identity on.\n */\n get issueId(): Guid {\n return this.#issueId;\n }\n\n set issueId(value: Guid) {\n this.#issueId = value;\n this.propertyChanged('issueId');\n }\n\n static use(initialValues?: IShareIdentity): [ShareIdentity, SetCommandValues<IShareIdentity>, ClearCommandValues] {\n return useCommand<ShareIdentity, IShareIdentity>(ShareIdentity, initialValues);\n }\n}\n"],"names":["ShareIdentity","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","Guid","Object","requestParameters","issueId","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAkBA;;IAGO,MAAMA,aAAAA,SAAsBC,gBAAAA,CAAAA;AAC/B,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,YAAY,eAAA,CAAA;AAC9EC,IAAAA,KAAAA,GAAgB,8BAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,WAAWC,iBAAAA,EAAM,KAAA;KAC3C;AAED,IAAA,QAAQ;IAER,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,KAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IAAA;AAEA;;AAEC,QACD,IAAIC,OAAAA,GAAgB;QAChB,OAAO,IAAI,CAAC,QAAQ;AACxB,IAAA;IAEA,IAAIA,OAAAA,CAAQC,KAAW,EAAE;QACrB,IAAI,CAAC,QAAQ,GAAGA,KAAAA;QAChB,IAAI,CAACC,eAAe,CAAC,SAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAA8B,EAAyE;AAC9G,QAAA,OAAOC,sBAA0CjB,aAAAA,EAAegB,aAAAA,CAAAA;AACpE,IAAA;AACJ;;"}
@@ -1,2 +0,0 @@
1
- export * from './ShareIdentity';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Identity/ShareIdentity/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare class UserIdentity {
2
- identityProvider: string;
3
- subject: string;
4
- isSet: boolean;
5
- }
6
- //# sourceMappingURL=UserIdentity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserIdentity.d.ts","sourceRoot":"","sources":["../../../Identity/UserIdentity.ts"],"names":[],"mappings":"AAUA,qBAAa,YAAY;IAMrB,gBAAgB,EAAG,MAAM,CAAC;IAM1B,OAAO,EAAG,MAAM,CAAC;IAMjB,KAAK,EAAG,OAAO,CAAC;CACnB"}
@@ -1,50 +0,0 @@
1
- 'use strict';
2
-
3
- var fundamentals = require('@cratis/fundamentals');
4
-
5
- function _ts_decorate(decorators, target, key, desc) {
6
- var c = arguments.length, r = c < 3 ? target : desc, d;
7
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
8
- r = Reflect.decorate(decorators, target, key, desc);
9
- } else {
10
- for(var i = decorators.length - 1; i >= 0; i--){
11
- if (d = decorators[i]) {
12
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13
- }
14
- }
15
- }
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- }
18
- function _ts_metadata(metadataKey, metadataValue) {
19
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
20
- return Reflect.metadata(metadataKey, metadataValue);
21
- }
22
- }
23
- /**
24
- * Who a person is at the identity provider they signed in with: the provider and the subject it issued them. A subject is unique only within its provider, so two people can have the same subject at two providers; Usher compares the pair wherever it decides whose an issue is or who acts.
25
- */ class UserIdentity {
26
- /**
27
- * The identity provider; {@link NotSet} when the principal names none.
28
- */ identityProvider;
29
- /**
30
- * The subject the identity provider issued.
31
- */ subject;
32
- /**
33
- * Gets whether the identity names somebody: it has a subject.
34
- */ isSet;
35
- }
36
- _ts_decorate([
37
- fundamentals.field(String),
38
- _ts_metadata("design:type", String)
39
- ], UserIdentity.prototype, "identityProvider", void 0);
40
- _ts_decorate([
41
- fundamentals.field(String),
42
- _ts_metadata("design:type", String)
43
- ], UserIdentity.prototype, "subject", void 0);
44
- _ts_decorate([
45
- fundamentals.field(Boolean),
46
- _ts_metadata("design:type", Boolean)
47
- ], UserIdentity.prototype, "isSet", void 0);
48
-
49
- exports.UserIdentity = UserIdentity;
50
- //# sourceMappingURL=UserIdentity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserIdentity.js","sources":["../../../Identity/UserIdentity.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.Identity.UserIdentity. Time: 2026-10-26T20:48:58.8871950Z. Hash: 6FDEB6ECF78153E93401ADDA5DFA8E0CD88A42CA6173225F52070F2E7EE7306E\nimport { field } from '@cratis/fundamentals';\n\n/**\n * Who a person is at the identity provider they signed in with: the provider and the subject it issued them. A subject is unique only within its provider, so two people can have the same subject at two providers; Usher compares the pair wherever it decides whose an issue is or who acts.\n */\nexport class UserIdentity {\n\n /**\n * The identity provider; {@link NotSet} when the principal names none.\n */\n @field(String)\n identityProvider!: string;\n\n /**\n * The subject the identity provider issued.\n */\n @field(String)\n subject!: string;\n\n /**\n * Gets whether the identity names somebody: it has a subject.\n */\n @field(Boolean)\n isSet!: boolean;\n}\n"],"names":["UserIdentity","identityProvider","subject","isSet"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAOA;;AAEC,IACM,MAAMA,YAAAA,CAAAA;AAET;;AAEC,QACD,gBACAC;AAEA;;AAEC,QACD,OACAC;AAEA;;AAEC,QACD,KACAC;AACJ;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- export * from './UserIdentity';
2
- //# sourceMappingURL=index.d.ts.map