@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.
- package/README.md +2 -58
- package/package.json +4 -69
- package/Access/AccessDuration.ts +0 -13
- package/Access/GrantAccess/GrantAccess.ts +0 -80
- package/Access/GrantAccess/index.ts +0 -4
- package/Access/RevokeAccess/RevokeAccess.ts +0 -61
- package/Access/RevokeAccess/index.ts +0 -4
- package/Access/index.ts +0 -4
- package/Contracts/Conversation/SupportAuthor.ts +0 -25
- package/Contracts/Conversation/SupportAuthorKind.ts +0 -12
- package/Contracts/Conversation/index.ts +0 -5
- package/Contracts/Reporting/SliceLocation.ts +0 -30
- package/Contracts/Reporting/StackFrame.ts +0 -30
- package/Contracts/Reporting/index.ts +0 -5
- package/Contracts/WorkItems/WorkItem.ts +0 -36
- package/Contracts/WorkItems/index.ts +0 -4
- package/Conversation/AddDetails/AddDetails.ts +0 -87
- package/Conversation/AddDetails/index.ts +0 -4
- package/Conversation/AnswerQuestion/AnswerQuestion.ts +0 -105
- package/Conversation/AnswerQuestion/index.ts +0 -4
- package/Errors/ErrorDetails.ts +0 -41
- package/Errors/errorDetailsFromCommandResult.ts +0 -30
- package/Errors/errorDetailsFromError.ts +0 -44
- package/Errors/errorDetailsFromQueryResult.ts +0 -32
- package/Errors/index.ts +0 -9
- package/Errors/messageOf.ts +0 -24
- package/Errors/parseStackTrace.ts +0 -62
- package/Errors/resolveLocation.ts +0 -20
- package/Identity/ShareIdentity/ShareIdentity.ts +0 -61
- package/Identity/ShareIdentity/index.ts +0 -4
- package/Identity/UserIdentity.ts +0 -30
- package/Identity/index.ts +0 -4
- package/Issues/IssueKind.ts +0 -12
- package/Issues/IssueState.ts +0 -17
- package/Issues/index.ts +0 -5
- package/Lifecycle/ReopenIssue/ReopenIssue.ts +0 -87
- package/Lifecycle/ReopenIssue/index.ts +0 -4
- package/Lifecycle/WithdrawIssue/WithdrawIssue.ts +0 -61
- package/Lifecycle/WithdrawIssue/index.ts +0 -4
- package/Listing/Listing.ts +0 -271
- package/Listing/index.ts +0 -4
- package/Reporting/ReportError/ReportError.ts +0 -254
- package/Reporting/ReportError/index.ts +0 -4
- package/Reporting/ReportIssue/ReportIssue.ts +0 -217
- package/Reporting/ReportIssue/index.ts +0 -4
- package/Viewing/AccessState.ts +0 -15
- package/Viewing/ConversationAuthorKind.ts +0 -14
- package/Viewing/ConversationEntryKind.ts +0 -35
- package/Viewing/Viewing.ts +0 -472
- package/Viewing/index.ts +0 -7
- package/dist/cjs/Access/AccessDuration.d.ts +0 -6
- package/dist/cjs/Access/AccessDuration.d.ts.map +0 -1
- package/dist/cjs/Access/AccessDuration.js +0 -17
- package/dist/cjs/Access/AccessDuration.js.map +0 -1
- package/dist/cjs/Access/GrantAccess/GrantAccess.d.ts +0 -25
- package/dist/cjs/Access/GrantAccess/GrantAccess.d.ts.map +0 -1
- package/dist/cjs/Access/GrantAccess/GrantAccess.js +0 -55
- package/dist/cjs/Access/GrantAccess/GrantAccess.js.map +0 -1
- package/dist/cjs/Access/GrantAccess/index.d.ts +0 -2
- package/dist/cjs/Access/GrantAccess/index.d.ts.map +0 -1
- package/dist/cjs/Access/RevokeAccess/RevokeAccess.d.ts +0 -21
- package/dist/cjs/Access/RevokeAccess/RevokeAccess.d.ts.map +0 -1
- package/dist/cjs/Access/RevokeAccess/RevokeAccess.js +0 -44
- package/dist/cjs/Access/RevokeAccess/RevokeAccess.js.map +0 -1
- package/dist/cjs/Access/RevokeAccess/index.d.ts +0 -2
- package/dist/cjs/Access/RevokeAccess/index.d.ts.map +0 -1
- package/dist/cjs/Access/index.d.ts +0 -2
- package/dist/cjs/Access/index.d.ts.map +0 -1
- package/dist/cjs/Contracts/Conversation/SupportAuthor.d.ts +0 -6
- package/dist/cjs/Contracts/Conversation/SupportAuthor.d.ts.map +0 -1
- package/dist/cjs/Contracts/Conversation/SupportAuthor.js +0 -44
- package/dist/cjs/Contracts/Conversation/SupportAuthor.js.map +0 -1
- package/dist/cjs/Contracts/Conversation/SupportAuthorKind.d.ts +0 -5
- package/dist/cjs/Contracts/Conversation/SupportAuthorKind.d.ts.map +0 -1
- package/dist/cjs/Contracts/Conversation/SupportAuthorKind.js +0 -16
- package/dist/cjs/Contracts/Conversation/SupportAuthorKind.js.map +0 -1
- package/dist/cjs/Contracts/Conversation/index.d.ts +0 -3
- package/dist/cjs/Contracts/Conversation/index.d.ts.map +0 -1
- package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts +0 -6
- package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts.map +0 -1
- package/dist/cjs/Contracts/Reporting/SliceLocation.js +0 -50
- package/dist/cjs/Contracts/Reporting/SliceLocation.js.map +0 -1
- package/dist/cjs/Contracts/Reporting/StackFrame.d.ts +0 -6
- package/dist/cjs/Contracts/Reporting/StackFrame.d.ts.map +0 -1
- package/dist/cjs/Contracts/Reporting/StackFrame.js +0 -50
- package/dist/cjs/Contracts/Reporting/StackFrame.js.map +0 -1
- package/dist/cjs/Contracts/Reporting/index.d.ts +0 -3
- package/dist/cjs/Contracts/Reporting/index.d.ts.map +0 -1
- package/dist/cjs/Contracts/WorkItems/WorkItem.d.ts +0 -7
- package/dist/cjs/Contracts/WorkItems/WorkItem.d.ts.map +0 -1
- package/dist/cjs/Contracts/WorkItems/WorkItem.js +0 -57
- package/dist/cjs/Contracts/WorkItems/WorkItem.js.map +0 -1
- package/dist/cjs/Contracts/WorkItems/index.d.ts +0 -2
- package/dist/cjs/Contracts/WorkItems/index.d.ts.map +0 -1
- package/dist/cjs/Conversation/AddDetails/AddDetails.d.ts +0 -28
- package/dist/cjs/Conversation/AddDetails/AddDetails.d.ts.map +0 -1
- package/dist/cjs/Conversation/AddDetails/AddDetails.js +0 -64
- package/dist/cjs/Conversation/AddDetails/AddDetails.js.map +0 -1
- package/dist/cjs/Conversation/AddDetails/index.d.ts +0 -2
- package/dist/cjs/Conversation/AddDetails/index.d.ts.map +0 -1
- package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.d.ts +0 -31
- package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.d.ts.map +0 -1
- package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.js +0 -75
- package/dist/cjs/Conversation/AnswerQuestion/AnswerQuestion.js.map +0 -1
- package/dist/cjs/Conversation/AnswerQuestion/index.d.ts +0 -2
- package/dist/cjs/Conversation/AnswerQuestion/index.d.ts.map +0 -1
- package/dist/cjs/Errors/ErrorDetails.d.ts +0 -11
- package/dist/cjs/Errors/ErrorDetails.d.ts.map +0 -1
- package/dist/cjs/Errors/errorDetailsFromCommandResult.d.ts +0 -5
- package/dist/cjs/Errors/errorDetailsFromCommandResult.d.ts.map +0 -1
- package/dist/cjs/Errors/errorDetailsFromCommandResult.js +0 -32
- package/dist/cjs/Errors/errorDetailsFromCommandResult.js.map +0 -1
- package/dist/cjs/Errors/errorDetailsFromError.d.ts +0 -4
- package/dist/cjs/Errors/errorDetailsFromError.d.ts.map +0 -1
- package/dist/cjs/Errors/errorDetailsFromError.js +0 -43
- package/dist/cjs/Errors/errorDetailsFromError.js.map +0 -1
- package/dist/cjs/Errors/errorDetailsFromQueryResult.d.ts +0 -6
- package/dist/cjs/Errors/errorDetailsFromQueryResult.d.ts.map +0 -1
- package/dist/cjs/Errors/errorDetailsFromQueryResult.js +0 -33
- package/dist/cjs/Errors/errorDetailsFromQueryResult.js.map +0 -1
- package/dist/cjs/Errors/index.d.ts +0 -7
- package/dist/cjs/Errors/index.d.ts.map +0 -1
- package/dist/cjs/Errors/messageOf.d.ts +0 -3
- package/dist/cjs/Errors/messageOf.d.ts.map +0 -1
- package/dist/cjs/Errors/messageOf.js +0 -23
- package/dist/cjs/Errors/messageOf.js.map +0 -1
- package/dist/cjs/Errors/parseStackTrace.d.ts +0 -3
- package/dist/cjs/Errors/parseStackTrace.d.ts.map +0 -1
- package/dist/cjs/Errors/parseStackTrace.js +0 -54
- package/dist/cjs/Errors/parseStackTrace.js.map +0 -1
- package/dist/cjs/Errors/resolveLocation.d.ts +0 -3
- package/dist/cjs/Errors/resolveLocation.d.ts.map +0 -1
- package/dist/cjs/Errors/resolveLocation.js +0 -22
- package/dist/cjs/Errors/resolveLocation.js.map +0 -1
- package/dist/cjs/Identity/ShareIdentity/ShareIdentity.d.ts +0 -21
- package/dist/cjs/Identity/ShareIdentity/ShareIdentity.d.ts.map +0 -1
- package/dist/cjs/Identity/ShareIdentity/ShareIdentity.js +0 -44
- package/dist/cjs/Identity/ShareIdentity/ShareIdentity.js.map +0 -1
- package/dist/cjs/Identity/ShareIdentity/index.d.ts +0 -2
- package/dist/cjs/Identity/ShareIdentity/index.d.ts.map +0 -1
- package/dist/cjs/Identity/UserIdentity.d.ts +0 -6
- package/dist/cjs/Identity/UserIdentity.d.ts.map +0 -1
- package/dist/cjs/Identity/UserIdentity.js +0 -50
- package/dist/cjs/Identity/UserIdentity.js.map +0 -1
- package/dist/cjs/Identity/index.d.ts +0 -2
- package/dist/cjs/Identity/index.d.ts.map +0 -1
- package/dist/cjs/Issues/IssueKind.d.ts +0 -5
- package/dist/cjs/Issues/IssueKind.d.ts.map +0 -1
- package/dist/cjs/Issues/IssueKind.js +0 -16
- package/dist/cjs/Issues/IssueKind.js.map +0 -1
- package/dist/cjs/Issues/IssueState.d.ts +0 -10
- package/dist/cjs/Issues/IssueState.d.ts.map +0 -1
- package/dist/cjs/Issues/IssueState.js +0 -21
- package/dist/cjs/Issues/IssueState.js.map +0 -1
- package/dist/cjs/Issues/index.d.ts +0 -3
- package/dist/cjs/Issues/index.d.ts.map +0 -1
- package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.d.ts +0 -28
- package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.d.ts.map +0 -1
- package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.js +0 -64
- package/dist/cjs/Lifecycle/ReopenIssue/ReopenIssue.js.map +0 -1
- package/dist/cjs/Lifecycle/ReopenIssue/index.d.ts +0 -2
- package/dist/cjs/Lifecycle/ReopenIssue/index.d.ts.map +0 -1
- package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts +0 -21
- package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts.map +0 -1
- package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.js +0 -44
- package/dist/cjs/Lifecycle/WithdrawIssue/WithdrawIssue.js.map +0 -1
- package/dist/cjs/Lifecycle/WithdrawIssue/index.d.ts +0 -2
- package/dist/cjs/Lifecycle/WithdrawIssue/index.d.ts.map +0 -1
- package/dist/cjs/Listing/Listing.d.ts +0 -99
- package/dist/cjs/Listing/Listing.d.ts.map +0 -1
- package/dist/cjs/Listing/Listing.js +0 -281
- package/dist/cjs/Listing/Listing.js.map +0 -1
- package/dist/cjs/Listing/index.d.ts +0 -2
- package/dist/cjs/Listing/index.d.ts.map +0 -1
- package/dist/cjs/Reporting/ReportError/ReportError.d.ts +0 -58
- package/dist/cjs/Reporting/ReportError/ReportError.d.ts.map +0 -1
- package/dist/cjs/Reporting/ReportError/ReportError.js +0 -167
- package/dist/cjs/Reporting/ReportError/ReportError.js.map +0 -1
- package/dist/cjs/Reporting/ReportError/index.d.ts +0 -2
- package/dist/cjs/Reporting/ReportError/index.d.ts.map +0 -1
- package/dist/cjs/Reporting/ReportIssue/ReportIssue.d.ts +0 -51
- package/dist/cjs/Reporting/ReportIssue/ReportIssue.d.ts.map +0 -1
- package/dist/cjs/Reporting/ReportIssue/ReportIssue.js +0 -144
- package/dist/cjs/Reporting/ReportIssue/ReportIssue.js.map +0 -1
- package/dist/cjs/Reporting/ReportIssue/index.d.ts +0 -2
- package/dist/cjs/Reporting/ReportIssue/index.d.ts.map +0 -1
- package/dist/cjs/Viewing/AccessState.d.ts +0 -8
- package/dist/cjs/Viewing/AccessState.d.ts.map +0 -1
- package/dist/cjs/Viewing/AccessState.js +0 -19
- package/dist/cjs/Viewing/AccessState.js.map +0 -1
- package/dist/cjs/Viewing/ConversationAuthorKind.d.ts +0 -7
- package/dist/cjs/Viewing/ConversationAuthorKind.d.ts.map +0 -1
- package/dist/cjs/Viewing/ConversationAuthorKind.js +0 -18
- package/dist/cjs/Viewing/ConversationAuthorKind.js.map +0 -1
- package/dist/cjs/Viewing/ConversationEntryKind.d.ts +0 -28
- package/dist/cjs/Viewing/ConversationEntryKind.d.ts.map +0 -1
- package/dist/cjs/Viewing/ConversationEntryKind.js +0 -39
- package/dist/cjs/Viewing/ConversationEntryKind.js.map +0 -1
- package/dist/cjs/Viewing/Viewing.d.ts +0 -145
- package/dist/cjs/Viewing/Viewing.d.ts.map +0 -1
- package/dist/cjs/Viewing/Viewing.js +0 -492
- package/dist/cjs/Viewing/Viewing.js.map +0 -1
- package/dist/cjs/Viewing/index.d.ts +0 -5
- package/dist/cjs/Viewing/index.d.ts.map +0 -1
- package/dist/cjs/index.d.ts +0 -19
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -74
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/package.json +0 -3
- package/dist/esm/Access/AccessDuration.d.ts +0 -6
- package/dist/esm/Access/AccessDuration.d.ts.map +0 -1
- package/dist/esm/Access/AccessDuration.js +0 -15
- package/dist/esm/Access/AccessDuration.js.map +0 -1
- package/dist/esm/Access/GrantAccess/GrantAccess.d.ts +0 -25
- package/dist/esm/Access/GrantAccess/GrantAccess.d.ts.map +0 -1
- package/dist/esm/Access/GrantAccess/GrantAccess.js +0 -53
- package/dist/esm/Access/GrantAccess/GrantAccess.js.map +0 -1
- package/dist/esm/Access/GrantAccess/index.d.ts +0 -2
- package/dist/esm/Access/GrantAccess/index.d.ts.map +0 -1
- package/dist/esm/Access/GrantAccess/index.js +0 -2
- package/dist/esm/Access/GrantAccess/index.js.map +0 -1
- package/dist/esm/Access/RevokeAccess/RevokeAccess.d.ts +0 -21
- package/dist/esm/Access/RevokeAccess/RevokeAccess.d.ts.map +0 -1
- package/dist/esm/Access/RevokeAccess/RevokeAccess.js +0 -42
- package/dist/esm/Access/RevokeAccess/RevokeAccess.js.map +0 -1
- package/dist/esm/Access/RevokeAccess/index.d.ts +0 -2
- package/dist/esm/Access/RevokeAccess/index.d.ts.map +0 -1
- package/dist/esm/Access/RevokeAccess/index.js +0 -2
- package/dist/esm/Access/RevokeAccess/index.js.map +0 -1
- package/dist/esm/Access/index.d.ts +0 -2
- package/dist/esm/Access/index.d.ts.map +0 -1
- package/dist/esm/Access/index.js +0 -2
- package/dist/esm/Access/index.js.map +0 -1
- package/dist/esm/Contracts/Conversation/SupportAuthor.d.ts +0 -6
- package/dist/esm/Contracts/Conversation/SupportAuthor.d.ts.map +0 -1
- package/dist/esm/Contracts/Conversation/SupportAuthor.js +0 -42
- package/dist/esm/Contracts/Conversation/SupportAuthor.js.map +0 -1
- package/dist/esm/Contracts/Conversation/SupportAuthorKind.d.ts +0 -5
- package/dist/esm/Contracts/Conversation/SupportAuthorKind.d.ts.map +0 -1
- package/dist/esm/Contracts/Conversation/SupportAuthorKind.js +0 -14
- package/dist/esm/Contracts/Conversation/SupportAuthorKind.js.map +0 -1
- package/dist/esm/Contracts/Conversation/index.d.ts +0 -3
- package/dist/esm/Contracts/Conversation/index.d.ts.map +0 -1
- package/dist/esm/Contracts/Conversation/index.js +0 -3
- package/dist/esm/Contracts/Conversation/index.js.map +0 -1
- package/dist/esm/Contracts/Reporting/SliceLocation.d.ts +0 -6
- package/dist/esm/Contracts/Reporting/SliceLocation.d.ts.map +0 -1
- package/dist/esm/Contracts/Reporting/SliceLocation.js +0 -48
- package/dist/esm/Contracts/Reporting/SliceLocation.js.map +0 -1
- package/dist/esm/Contracts/Reporting/StackFrame.d.ts +0 -6
- package/dist/esm/Contracts/Reporting/StackFrame.d.ts.map +0 -1
- package/dist/esm/Contracts/Reporting/StackFrame.js +0 -48
- package/dist/esm/Contracts/Reporting/StackFrame.js.map +0 -1
- package/dist/esm/Contracts/Reporting/index.d.ts +0 -3
- package/dist/esm/Contracts/Reporting/index.d.ts.map +0 -1
- package/dist/esm/Contracts/Reporting/index.js +0 -3
- package/dist/esm/Contracts/Reporting/index.js.map +0 -1
- package/dist/esm/Contracts/WorkItems/WorkItem.d.ts +0 -7
- package/dist/esm/Contracts/WorkItems/WorkItem.d.ts.map +0 -1
- package/dist/esm/Contracts/WorkItems/WorkItem.js +0 -55
- package/dist/esm/Contracts/WorkItems/WorkItem.js.map +0 -1
- package/dist/esm/Contracts/WorkItems/index.d.ts +0 -2
- package/dist/esm/Contracts/WorkItems/index.d.ts.map +0 -1
- package/dist/esm/Contracts/WorkItems/index.js +0 -2
- package/dist/esm/Contracts/WorkItems/index.js.map +0 -1
- package/dist/esm/Conversation/AddDetails/AddDetails.d.ts +0 -28
- package/dist/esm/Conversation/AddDetails/AddDetails.d.ts.map +0 -1
- package/dist/esm/Conversation/AddDetails/AddDetails.js +0 -61
- package/dist/esm/Conversation/AddDetails/AddDetails.js.map +0 -1
- package/dist/esm/Conversation/AddDetails/index.d.ts +0 -2
- package/dist/esm/Conversation/AddDetails/index.d.ts.map +0 -1
- package/dist/esm/Conversation/AddDetails/index.js +0 -2
- package/dist/esm/Conversation/AddDetails/index.js.map +0 -1
- package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.d.ts +0 -31
- package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.d.ts.map +0 -1
- package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.js +0 -72
- package/dist/esm/Conversation/AnswerQuestion/AnswerQuestion.js.map +0 -1
- package/dist/esm/Conversation/AnswerQuestion/index.d.ts +0 -2
- package/dist/esm/Conversation/AnswerQuestion/index.d.ts.map +0 -1
- package/dist/esm/Conversation/AnswerQuestion/index.js +0 -2
- package/dist/esm/Conversation/AnswerQuestion/index.js.map +0 -1
- package/dist/esm/Errors/ErrorDetails.d.ts +0 -11
- package/dist/esm/Errors/ErrorDetails.d.ts.map +0 -1
- package/dist/esm/Errors/ErrorDetails.js +0 -2
- package/dist/esm/Errors/ErrorDetails.js.map +0 -1
- package/dist/esm/Errors/errorDetailsFromCommandResult.d.ts +0 -5
- package/dist/esm/Errors/errorDetailsFromCommandResult.d.ts.map +0 -1
- package/dist/esm/Errors/errorDetailsFromCommandResult.js +0 -30
- package/dist/esm/Errors/errorDetailsFromCommandResult.js.map +0 -1
- package/dist/esm/Errors/errorDetailsFromError.d.ts +0 -4
- package/dist/esm/Errors/errorDetailsFromError.d.ts.map +0 -1
- package/dist/esm/Errors/errorDetailsFromError.js +0 -41
- package/dist/esm/Errors/errorDetailsFromError.js.map +0 -1
- package/dist/esm/Errors/errorDetailsFromQueryResult.d.ts +0 -6
- package/dist/esm/Errors/errorDetailsFromQueryResult.d.ts.map +0 -1
- package/dist/esm/Errors/errorDetailsFromQueryResult.js +0 -31
- package/dist/esm/Errors/errorDetailsFromQueryResult.js.map +0 -1
- package/dist/esm/Errors/index.d.ts +0 -7
- package/dist/esm/Errors/index.d.ts.map +0 -1
- package/dist/esm/Errors/index.js +0 -7
- package/dist/esm/Errors/index.js.map +0 -1
- package/dist/esm/Errors/messageOf.d.ts +0 -3
- package/dist/esm/Errors/messageOf.d.ts.map +0 -1
- package/dist/esm/Errors/messageOf.js +0 -21
- package/dist/esm/Errors/messageOf.js.map +0 -1
- package/dist/esm/Errors/parseStackTrace.d.ts +0 -3
- package/dist/esm/Errors/parseStackTrace.d.ts.map +0 -1
- package/dist/esm/Errors/parseStackTrace.js +0 -52
- package/dist/esm/Errors/parseStackTrace.js.map +0 -1
- package/dist/esm/Errors/resolveLocation.d.ts +0 -3
- package/dist/esm/Errors/resolveLocation.d.ts.map +0 -1
- package/dist/esm/Errors/resolveLocation.js +0 -20
- package/dist/esm/Errors/resolveLocation.js.map +0 -1
- package/dist/esm/Identity/ShareIdentity/ShareIdentity.d.ts +0 -21
- package/dist/esm/Identity/ShareIdentity/ShareIdentity.d.ts.map +0 -1
- package/dist/esm/Identity/ShareIdentity/ShareIdentity.js +0 -42
- package/dist/esm/Identity/ShareIdentity/ShareIdentity.js.map +0 -1
- package/dist/esm/Identity/ShareIdentity/index.d.ts +0 -2
- package/dist/esm/Identity/ShareIdentity/index.d.ts.map +0 -1
- package/dist/esm/Identity/ShareIdentity/index.js +0 -2
- package/dist/esm/Identity/ShareIdentity/index.js.map +0 -1
- package/dist/esm/Identity/UserIdentity.d.ts +0 -6
- package/dist/esm/Identity/UserIdentity.d.ts.map +0 -1
- package/dist/esm/Identity/UserIdentity.js +0 -48
- package/dist/esm/Identity/UserIdentity.js.map +0 -1
- package/dist/esm/Identity/index.d.ts +0 -2
- package/dist/esm/Identity/index.d.ts.map +0 -1
- package/dist/esm/Identity/index.js +0 -2
- package/dist/esm/Identity/index.js.map +0 -1
- package/dist/esm/Issues/IssueKind.d.ts +0 -5
- package/dist/esm/Issues/IssueKind.d.ts.map +0 -1
- package/dist/esm/Issues/IssueKind.js +0 -14
- package/dist/esm/Issues/IssueKind.js.map +0 -1
- package/dist/esm/Issues/IssueState.d.ts +0 -10
- package/dist/esm/Issues/IssueState.d.ts.map +0 -1
- package/dist/esm/Issues/IssueState.js +0 -19
- package/dist/esm/Issues/IssueState.js.map +0 -1
- package/dist/esm/Issues/index.d.ts +0 -3
- package/dist/esm/Issues/index.d.ts.map +0 -1
- package/dist/esm/Issues/index.js +0 -3
- package/dist/esm/Issues/index.js.map +0 -1
- package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.d.ts +0 -28
- package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.d.ts.map +0 -1
- package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.js +0 -61
- package/dist/esm/Lifecycle/ReopenIssue/ReopenIssue.js.map +0 -1
- package/dist/esm/Lifecycle/ReopenIssue/index.d.ts +0 -2
- package/dist/esm/Lifecycle/ReopenIssue/index.d.ts.map +0 -1
- package/dist/esm/Lifecycle/ReopenIssue/index.js +0 -2
- package/dist/esm/Lifecycle/ReopenIssue/index.js.map +0 -1
- package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts +0 -21
- package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.d.ts.map +0 -1
- package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.js +0 -42
- package/dist/esm/Lifecycle/WithdrawIssue/WithdrawIssue.js.map +0 -1
- package/dist/esm/Lifecycle/WithdrawIssue/index.d.ts +0 -2
- package/dist/esm/Lifecycle/WithdrawIssue/index.d.ts.map +0 -1
- package/dist/esm/Lifecycle/WithdrawIssue/index.js +0 -2
- package/dist/esm/Lifecycle/WithdrawIssue/index.js.map +0 -1
- package/dist/esm/Listing/Listing.d.ts +0 -99
- package/dist/esm/Listing/Listing.d.ts.map +0 -1
- package/dist/esm/Listing/Listing.js +0 -278
- package/dist/esm/Listing/Listing.js.map +0 -1
- package/dist/esm/Listing/index.d.ts +0 -2
- package/dist/esm/Listing/index.d.ts.map +0 -1
- package/dist/esm/Listing/index.js +0 -2
- package/dist/esm/Listing/index.js.map +0 -1
- package/dist/esm/Reporting/ReportError/ReportError.d.ts +0 -58
- package/dist/esm/Reporting/ReportError/ReportError.d.ts.map +0 -1
- package/dist/esm/Reporting/ReportError/ReportError.js +0 -164
- package/dist/esm/Reporting/ReportError/ReportError.js.map +0 -1
- package/dist/esm/Reporting/ReportError/index.d.ts +0 -2
- package/dist/esm/Reporting/ReportError/index.d.ts.map +0 -1
- package/dist/esm/Reporting/ReportError/index.js +0 -2
- package/dist/esm/Reporting/ReportError/index.js.map +0 -1
- package/dist/esm/Reporting/ReportIssue/ReportIssue.d.ts +0 -51
- package/dist/esm/Reporting/ReportIssue/ReportIssue.d.ts.map +0 -1
- package/dist/esm/Reporting/ReportIssue/ReportIssue.js +0 -141
- package/dist/esm/Reporting/ReportIssue/ReportIssue.js.map +0 -1
- package/dist/esm/Reporting/ReportIssue/index.d.ts +0 -2
- package/dist/esm/Reporting/ReportIssue/index.d.ts.map +0 -1
- package/dist/esm/Reporting/ReportIssue/index.js +0 -2
- package/dist/esm/Reporting/ReportIssue/index.js.map +0 -1
- package/dist/esm/Viewing/AccessState.d.ts +0 -8
- package/dist/esm/Viewing/AccessState.d.ts.map +0 -1
- package/dist/esm/Viewing/AccessState.js +0 -17
- package/dist/esm/Viewing/AccessState.js.map +0 -1
- package/dist/esm/Viewing/ConversationAuthorKind.d.ts +0 -7
- package/dist/esm/Viewing/ConversationAuthorKind.d.ts.map +0 -1
- package/dist/esm/Viewing/ConversationAuthorKind.js +0 -16
- package/dist/esm/Viewing/ConversationAuthorKind.js.map +0 -1
- package/dist/esm/Viewing/ConversationEntryKind.d.ts +0 -28
- package/dist/esm/Viewing/ConversationEntryKind.d.ts.map +0 -1
- package/dist/esm/Viewing/ConversationEntryKind.js +0 -37
- package/dist/esm/Viewing/ConversationEntryKind.js.map +0 -1
- package/dist/esm/Viewing/Viewing.d.ts +0 -145
- package/dist/esm/Viewing/Viewing.d.ts.map +0 -1
- package/dist/esm/Viewing/Viewing.js +0 -484
- package/dist/esm/Viewing/Viewing.js.map +0 -1
- package/dist/esm/Viewing/index.d.ts +0 -5
- package/dist/esm/Viewing/index.d.ts.map +0 -1
- package/dist/esm/Viewing/index.js +0 -5
- package/dist/esm/Viewing/index.js.map +0 -1
- package/dist/esm/index.d.ts +0 -19
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -29
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/package.json +0 -3
- 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 +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 +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 +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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Identity/ShareIdentity/index.ts"],"names":[],"mappings":"AAGA,cAAc,iBAAiB,CAAC"}
|
|
@@ -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;;;;;;;;;;;;;;"}
|