@cratis/showrunner.notes 1.21.2 → 1.21.3
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/Availability/NotesAvailability.ts +2 -2
- package/Giving/GiveNoteOnComponent/GiveNoteOnComponent.ts +2 -2
- package/Giving/GiveNoteOnContext/GiveNoteOnContext.ts +2 -2
- package/Giving/GiveNoteOnScreen/GiveNoteOnScreen.ts +2 -2
- package/Giving/GiveNoteOnSlices/GiveNoteOnSlices.ts +2 -2
- package/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.ts +2 -2
- package/Listing/MyNote.ts +3 -3
- package/README.md +2 -2
- package/Withdrawing/WithdrawNote/WithdrawNote.ts +2 -2
- package/dist/cjs/Availability/NotesAvailability.d.ts.map +1 -1
- package/dist/cjs/Availability/NotesAvailability.js +1 -1
- package/dist/cjs/Availability/NotesAvailability.js.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +2 -2
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js +2 -2
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +2 -2
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -1
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +2 -2
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -1
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -1
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +2 -2
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -1
- package/dist/cjs/Listing/MyNote.d.ts.map +1 -1
- package/dist/cjs/Listing/MyNote.js +2 -2
- package/dist/cjs/Listing/MyNote.js.map +1 -1
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -1
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js +2 -2
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -1
- package/dist/esm/Availability/NotesAvailability.d.ts.map +1 -1
- package/dist/esm/Availability/NotesAvailability.js +1 -1
- package/dist/esm/Availability/NotesAvailability.js.map +1 -1
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -1
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +2 -2
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -1
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -1
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js +2 -2
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -1
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -1
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +2 -2
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -1
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -1
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +2 -2
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -1
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -1
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +2 -2
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -1
- package/dist/esm/Listing/MyNote.d.ts.map +1 -1
- package/dist/esm/Listing/MyNote.js +7 -7
- package/dist/esm/Listing/MyNote.js.map +1 -1
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -1
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js +2 -2
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -1
- package/package.json +7 -7
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Availability.NotesAvailability, Cratis.Showrunner.Notes.Availability.NotesAvailability. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Availability.NotesAvailability, Cratis.Showrunner.Notes.Availability.NotesAvailability. Time: 2026-11-11T04:34:45.5264700Z. Hash: EE5BED975D079E03309E0C6B5AB433DF11F43CA20531627454F7B73A6148A3DA
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -12,7 +12,7 @@ import { field } from '@cratis/fundamentals';
|
|
|
12
12
|
* Gets whether Notes is switched on. It is the same answer for everyone, so it needs no sign-in: the button shows only to a signed-in user anyway, and the commands refuse everyone else.
|
|
13
13
|
*/
|
|
14
14
|
export class Availability extends QueryFor<NotesAvailability> {
|
|
15
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Availability');
|
|
15
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Availability');
|
|
16
16
|
readonly route: string = '/api/availability/availability';
|
|
17
17
|
readonly queryName: string = 'Cratis.Showrunner.Notes.Availability.NotesAvailability.Availability';
|
|
18
18
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-11T04:34:45.5264700Z. Hash: 0936B8DAAF9292DDE862F5E62BD9F6EDF25997B7099623CAC4F50D7996B12FC9
|
|
6
6
|
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -56,7 +56,7 @@ export class GiveNoteOnComponentValidator extends CommandValidator<IGiveNoteOnCo
|
|
|
56
56
|
* The user picked a component and wrote text about it. The property changes they suggested in the same picking session share its note id. Who gives it is taken from the signed-in identity, never from the request.
|
|
57
57
|
*/
|
|
58
58
|
export class GiveNoteOnComponent extends Command<IGiveNoteOnComponent> implements IGiveNoteOnComponent {
|
|
59
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnComponent');
|
|
59
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnComponent');
|
|
60
60
|
readonly route: string = '/api/giving/give-note-on-component';
|
|
61
61
|
readonly validation: CommandValidator = new GiveNoteOnComponentValidator();
|
|
62
62
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-11T04:34:45.5264700Z. Hash: F54D69A634AED3FA777B1B5ECE51634FE3BB5BC2C20A3D366E28C7976F5DE264
|
|
6
6
|
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -49,7 +49,7 @@ export class GiveNoteOnContextValidator extends CommandValidator<IGiveNoteOnCont
|
|
|
49
49
|
* The user gives feedback about what is on screen now: the default action of the feedback button. Who gives it is taken from the signed-in identity, never from the request.
|
|
50
50
|
*/
|
|
51
51
|
export class GiveNoteOnContext extends Command<IGiveNoteOnContext> implements IGiveNoteOnContext {
|
|
52
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnContext');
|
|
52
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnContext');
|
|
53
53
|
readonly route: string = '/api/giving/give-note-on-context';
|
|
54
54
|
readonly validation: CommandValidator = new GiveNoteOnContextValidator();
|
|
55
55
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-11T04:34:45.5264700Z. Hash: F423A39CEDE226F58A7DBAD2A1FF97D2F6B4C2335C94C946C9FBC1F7F515DCB0
|
|
6
6
|
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -49,7 +49,7 @@ export class GiveNoteOnScreenValidator extends CommandValidator<IGiveNoteOnScree
|
|
|
49
49
|
* The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.
|
|
50
50
|
*/
|
|
51
51
|
export class GiveNoteOnScreen extends Command<IGiveNoteOnScreen> implements IGiveNoteOnScreen {
|
|
52
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnScreen');
|
|
52
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnScreen');
|
|
53
53
|
readonly route: string = '/api/giving/give-note-on-screen';
|
|
54
54
|
readonly validation: CommandValidator = new GiveNoteOnScreenValidator();
|
|
55
55
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-11T04:34:45.5264700Z. Hash: AB198AD0DCCD1B12202BB1EEFE6580787E40A6E490D72FB60752F24C14121A7C
|
|
6
6
|
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -55,7 +55,7 @@ export class GiveNoteOnSlicesValidator extends CommandValidator<IGiveNoteOnSlice
|
|
|
55
55
|
* The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.
|
|
56
56
|
*/
|
|
57
57
|
export class GiveNoteOnSlices extends Command<IGiveNoteOnSlices> implements IGiveNoteOnSlices {
|
|
58
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnSlices');
|
|
58
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnSlices');
|
|
59
59
|
readonly route: string = '/api/giving/give-note-on-slices';
|
|
60
60
|
readonly validation: CommandValidator = new GiveNoteOnSlicesValidator();
|
|
61
61
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-11T04:34:45.5264700Z. Hash: B24B0AC0A848B064AAA0AB3B6AEADE3C6C367A72B4517B7D8DEAABBD599B4B52
|
|
6
6
|
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -61,7 +61,7 @@ export class SuggestComponentPropertyChangeValidator extends CommandValidator<IS
|
|
|
61
61
|
* The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.
|
|
62
62
|
*/
|
|
63
63
|
export class SuggestComponentPropertyChange extends Command<ISuggestComponentPropertyChange> implements ISuggestComponentPropertyChange {
|
|
64
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'SuggestComponentPropertyChange');
|
|
64
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'SuggestComponentPropertyChange');
|
|
65
65
|
readonly route: string = '/api/giving/suggest-component-property-change';
|
|
66
66
|
readonly validation: CommandValidator = new SuggestComponentPropertyChangeValidator();
|
|
67
67
|
readonly treatWarningsAsErrors: boolean = false;
|
package/Listing/MyNote.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Listing.MyNote, Cratis.Showrunner.Notes.Listing.MyNote. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Listing.MyNote, Cratis.Showrunner.Notes.Listing.MyNote. Time: 2026-11-11T04:34:45.5264700Z. Hash: BA6FDE734F721C89316D9D88357993FBE5B08D3C8A5CDC9D5C9FEBE778B10A60
|
|
6
6
|
import { ChangeSet, ObservableQueryFor, Paging, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
|
|
7
7
|
import { ObservableQueryWhen, SetPage, SetPageSize, SetSorting, useChangeStream, useObservableQuery, useObservableQueryWithPaging, useSuspenseObservableQuery, useSuspenseObservableQueryWithPaging } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -156,14 +156,14 @@ class MyNotesSortByWithoutQuery {
|
|
|
156
156
|
* Observes the notes the signed-in user gave, in the current tenant, most recent activity first.
|
|
157
157
|
*/
|
|
158
158
|
export class MyNotes extends ObservableQueryFor<MyNote[]> {
|
|
159
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Listing');
|
|
159
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Listing');
|
|
160
160
|
readonly route: string = '/api/listing/my-notes';
|
|
161
161
|
readonly queryName: string = 'Cratis.Showrunner.Notes.Listing.MyNote.MyNotes';
|
|
162
162
|
readonly treatWarningsAsErrors: boolean = false;
|
|
163
163
|
readonly roles: string[] = [];
|
|
164
164
|
readonly defaultValue: MyNote[] = [];
|
|
165
165
|
private readonly _sortBy: MyNotesSortBy;
|
|
166
|
-
private static readonly _sortBy: MyNotesSortByWithoutQuery = new MyNotesSortByWithoutQuery();
|
|
166
|
+
private static readonly _sortBy: MyNotesSortByWithoutQuery = /*#__PURE__*/ new MyNotesSortByWithoutQuery();
|
|
167
167
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super(MyNote, true);
|
package/README.md
CHANGED
|
@@ -80,8 +80,8 @@ Run the commands below from the repository root. The full solution test command
|
|
|
80
80
|
dotnet build Showrunner.slnx --configuration Debug
|
|
81
81
|
dotnet test Showrunner.slnx --configuration Debug --no-build
|
|
82
82
|
|
|
83
|
-
# Release is warnings-as-errors;
|
|
84
|
-
dotnet build Showrunner.slnx --configuration Release -p:
|
|
83
|
+
# Release is warnings-as-errors; CratisProxiesSkip skips proxy generation
|
|
84
|
+
dotnet build Showrunner.slnx --configuration Release -p:CratisProxiesSkip=true
|
|
85
85
|
|
|
86
86
|
# Frontend
|
|
87
87
|
yarn install
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Withdrawing.WithdrawNote.WithdrawNote. Time: 2026-11-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Withdrawing.WithdrawNote.WithdrawNote. Time: 2026-11-11T04:34:45.5264700Z. Hash: 4DEBA125AFFABAFDDE6F5094A409D18315D5EC52B1A379F557E60D8CD7190592
|
|
6
6
|
import { Command } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -24,7 +24,7 @@ export interface IWithdrawNote {
|
|
|
24
24
|
* The giver withdraws one of their notes; the people building the application no longer need to act on it.
|
|
25
25
|
*/
|
|
26
26
|
export class WithdrawNote extends Command<IWithdrawNote> implements IWithdrawNote {
|
|
27
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Withdrawing', 'WithdrawNote');
|
|
27
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Withdrawing', 'WithdrawNote');
|
|
28
28
|
readonly route: string = '/api/withdrawing/withdraw-note';
|
|
29
29
|
readonly treatWarningsAsErrors: boolean = false;
|
|
30
30
|
readonly roles: string[] = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotesAvailability.d.ts","sourceRoot":"","sources":["../../../Availability/NotesAvail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AW,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAIzF,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC;CAG9E;AAKD,qBAAa,iBAAiB;IAM1B,SAAS,EAAG,OAAO,CAAC;CACvB"}
|
|
@@ -26,7 +26,7 @@ function _ts_metadata(metadataKey, metadataValue) {
|
|
|
26
26
|
/**
|
|
27
27
|
* Gets whether Notes is switched on. It is the same answer for everyone, so it needs no sign-in: the button shows only to a signed-in user anyway, and the commands refuse everyone else.
|
|
28
28
|
*/ class Availability extends queries.QueryFor {
|
|
29
|
-
static sliceLocation = new reflection.SliceLocation('', '', 'Availability');
|
|
29
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Availability');
|
|
30
30
|
route = '/api/availability/availability';
|
|
31
31
|
queryName = 'Cratis.Showrunner.Notes.Availability.NotesAvailability.Availability';
|
|
32
32
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotesAvailability.js","sources":["../../../Availability/NotesAvailability.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Availability.NotesAvailability, Cratis.Showrunner.Notes.Availability.NotesAvailability. Time: 2026-11-
|
|
1
|
+
{"version":3,"file":"NotesAvailability.js","sources":["../../../Availability/NotesAvailability.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Availability.NotesAvailability, Cratis.Showrunner.Notes.Availability.NotesAvailability. Time: 2026-11-11T04:34:45.5264700Z. Hash: EE5BED975D079E03309E0C6B5AB433DF11F43CA20531627454F7B73A6148A3DA\nimport { QueryFor, QueryResultWithState } from '@cratis/arc/queries';\nimport { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { field } from '@cratis/fundamentals';\n\n/**\n * Gets whether Notes is switched on. It is the same answer for everyone, so it needs no sign-in: the button shows only to a signed-in user anyway, and the commands refuse everyone else.\n */\nexport class Availability extends QueryFor<NotesAvailability> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Availability');\n readonly route: string = '/api/availability/availability';\n readonly queryName: string = 'Cratis.Showrunner.Notes.Availability.NotesAvailability.Availability';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: NotesAvailability = {} as NotesAvailability;\n\n constructor() {\n super(NotesAvailability, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<NotesAvailability>, PerformQuery, SetSorting] {\n return useQuery<NotesAvailability, Availability>(Availability);\n }\n\n static useSuspense(): [QueryResultWithState<NotesAvailability>, PerformQuery, SetSorting] {\n return useSuspenseQuery<NotesAvailability, Availability>(Availability);\n }\n\n static when(condition: boolean): QueryWhen<Availability, NotesAvailability> {\n return new QueryWhen<Availability, NotesAvailability>(Availability, condition);\n }\n}\n\n/**\n * Whether Notes is switched on in the application. The feedback button renders only when it is.\n */\nexport class NotesAvailability {\n\n /**\n * Whether the host switched Notes on.\n */\n @field(Boolean)\n isEnabled!: boolean;\n}\n"],"names":["Availability","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","NotesAvailability","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","isEnabled"],"mappings":";;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I"}
|
|
@@ -10,7 +10,7 @@ var fundamentals = require('@cratis/fundamentals');
|
|
|
10
10
|
// Copyright (c) Cratis. All rights reserved.
|
|
11
11
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
12
12
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
13
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-
|
|
13
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-11T04:34:45.5264700Z. Hash: 0936B8DAAF9292DDE862F5E62BD9F6EDF25997B7099623CAC4F50D7996B12FC9
|
|
14
14
|
class GiveNoteOnComponentValidator extends commands.CommandValidator {
|
|
15
15
|
constructor(){
|
|
16
16
|
super();
|
|
@@ -23,7 +23,7 @@ class GiveNoteOnComponentValidator extends commands.CommandValidator {
|
|
|
23
23
|
/**
|
|
24
24
|
* The user picked a component and wrote text about it. The property changes they suggested in the same picking session share its note id. Who gives it is taken from the signed-in identity, never from the request.
|
|
25
25
|
*/ class GiveNoteOnComponent extends commands.Command {
|
|
26
|
-
static sliceLocation = new reflection.SliceLocation('', 'Giving', 'GiveNoteOnComponent');
|
|
26
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Giving', 'GiveNoteOnComponent');
|
|
27
27
|
route = '/api/giving/give-note-on-component';
|
|
28
28
|
validation = new GiveNoteOnComponentValidator();
|
|
29
29
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiveNoteOnComponent.js","sources":["../../../../Giving/GiveNoteOnComponent/GiveNoteOnComponent.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-
|
|
1
|
+
{"version":3,"file":"GiveNoteOnComponent.js","sources":["../../../../Giving/GiveNoteOnComponent/GiveNoteOnComponent.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnComponent.GiveNoteOnComponent. Time: 2026-11-11T04:34:45.5264700Z. Hash: 0936B8DAAF9292DDE862F5E62BD9F6EDF25997B7099623CAC4F50D7996B12FC9\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { PickedComponent } from '../../Contracts/Components/PickedComponent';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user picked a component and wrote text about it. The property changes they suggested in the same picking session share its note id. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport interface IGiveNoteOnComponent {\n\n /**\n * The component the user picked.\n */\n component?: PickedComponent;\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the note: new, or the one the picking session's property changes were suggested on.\n */\n noteId?: Guid;\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnComponentValidator extends CommandValidator<IGiveNoteOnComponent> {\n constructor() {\n super();\n this.ruleFor(c => c.component).notNull().withMessage('Pick a component.');\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * The user picked a component and wrote text about it. The property changes they suggested in the same picking session share its note id. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport class GiveNoteOnComponent extends Command<IGiveNoteOnComponent> implements IGiveNoteOnComponent {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnComponent');\n readonly route: string = '/api/giving/give-note-on-component';\n readonly validation: CommandValidator = new GiveNoteOnComponentValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('component', PickedComponent, false),\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #component!: PickedComponent;\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The component the user picked.\n */\n get component(): PickedComponent {\n return this.#component;\n }\n\n set component(value: PickedComponent) {\n this.#component = value;\n this.propertyChanged('component');\n }\n /**\n * What the user is looking at.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the note: new, or the one the picking session's property changes were suggested on.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnComponent): [GiveNoteOnComponent, SetCommandValues<IGiveNoteOnComponent>, ClearCommandValues] {\n return useCommand<GiveNoteOnComponent, IGiveNoteOnComponent>(GiveNoteOnComponent, initialValues);\n }\n}\n"],"names":["GiveNoteOnComponentValidator","CommandValidator","ruleFor","c","component","notNull","withMessage","context","text","notEmpty","maxLength","GiveNoteOnComponent","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","PickedComponent","NoteContext","Number","Guid","String","Object","requestParameters","value","propertyChanged","kind","noteId","use","initialValues","useCommand"],"mappings":";;;;;;;;;AAAA;AACA;AAEA;AACA;AAwCO,MAAMA,4BAAAA,SAAqCC,yBAAAA,CAAAA;IAC9C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,SAAS,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,mBAAA,CAAA;QACrD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,OAAO,CAAA,CAAEF,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEK,IAAI,CAAA,CAAEC,QAAQ,EAAA,CAAGH,WAAW,CAAC,kBAAA,CAAA;AACjD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEK,IAAI,CAAA,CAAEE,SAAS,CAAC,IAAA,CAAA,CAAMJ,WAAW,CAAC,uCAAA,CAAA;AAC1D,IAAA;AACJ;AAEA;;IAGO,MAAMK,mBAAAA,SAA4BC,gBAAAA,CAAAA;AACrC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,UAAU,qBAAA,CAAA;AAC1FC,IAAAA,KAAAA,GAAgB,oCAAA;AAChBC,IAAAA,UAAAA,GAA+B,IAAIhB,4BAAAA,EAAAA;AACnCiB,IAAAA,qBAAAA,GAAiC,KAA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Q,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAKhD;;IAWF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,WAAW,EAG7B;IAID,IAAI,IAAI,IAAI,QAAQ,CAEnB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGvB;IAID,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,EAGrB;IAID,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,kBAAkB,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CAGhI"}
|
|
@@ -9,7 +9,7 @@ var fundamentals = require('@cratis/fundamentals');
|
|
|
9
9
|
// Copyright (c) Cratis. All rights reserved.
|
|
10
10
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
11
11
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
12
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-
|
|
12
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-11T04:34:45.5264700Z. Hash: F54D69A634AED3FA777B1B5ECE51634FE3BB5BC2C20A3D366E28C7976F5DE264
|
|
13
13
|
class GiveNoteOnContextValidator extends commands.CommandValidator {
|
|
14
14
|
constructor(){
|
|
15
15
|
super();
|
|
@@ -21,7 +21,7 @@ class GiveNoteOnContextValidator extends commands.CommandValidator {
|
|
|
21
21
|
/**
|
|
22
22
|
* The user gives feedback about what is on screen now: the default action of the feedback button. Who gives it is taken from the signed-in identity, never from the request.
|
|
23
23
|
*/ class GiveNoteOnContext extends commands.Command {
|
|
24
|
-
static sliceLocation = new reflection.SliceLocation('', 'Giving', 'GiveNoteOnContext');
|
|
24
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Giving', 'GiveNoteOnContext');
|
|
25
25
|
route = '/api/giving/give-note-on-context';
|
|
26
26
|
validation = new GiveNoteOnContextValidator();
|
|
27
27
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiveNoteOnContext.js","sources":["../../../../Giving/GiveNoteOnContext/GiveNoteOnContext.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-
|
|
1
|
+
{"version":3,"file":"GiveNoteOnContext.js","sources":["../../../../Giving/GiveNoteOnContext/GiveNoteOnContext.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnContext.GiveNoteOnContext. Time: 2026-11-11T04:34:45.5264700Z. Hash: F54D69A634AED3FA777B1B5ECE51634FE3BB5BC2C20A3D366E28C7976F5DE264\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user gives feedback about what is on screen now: the default action of the feedback button. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport interface IGiveNoteOnContext {\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n noteId?: Guid;\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnContextValidator extends CommandValidator<IGiveNoteOnContext> {\n constructor() {\n super();\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * The user gives feedback about what is on screen now: the default action of the feedback button. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport class GiveNoteOnContext extends Command<IGiveNoteOnContext> implements IGiveNoteOnContext {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnContext');\n readonly route: string = '/api/giving/give-note-on-context';\n readonly validation: CommandValidator = new GiveNoteOnContextValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * What the user is looking at.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnContext): [GiveNoteOnContext, SetCommandValues<IGiveNoteOnContext>, ClearCommandValues] {\n return useCommand<GiveNoteOnContext, IGiveNoteOnContext>(GiveNoteOnContext, initialValues);\n }\n}\n"],"names":["GiveNoteOnContextValidator","CommandValidator","ruleFor","c","context","notNull","withMessage","text","notEmpty","maxLength","GiveNoteOnContext","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","NoteContext","Number","Guid","String","Object","requestParameters","value","propertyChanged","kind","noteId","use","initialValues","useCommand"],"mappings":";;;;;;;;AAAA;AACA;AAEA;AACA;AAkCO,MAAMA,0BAAAA,SAAmCC,yBAAAA,CAAAA;IAC5C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,OAAO,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEC,QAAQ,EAAA,CAAGF,WAAW,CAAC,kBAAA,CAAA;AACjD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEE,SAAS,CAAC,IAAA,CAAA,CAAMH,WAAW,CAAC,uCAAA,CAAA;AAC1D,IAAA;AACJ;AAEA;;IAGO,MAAMI,iBAAAA,SAA0BC,gBAAAA,CAAAA;AACnC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI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IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,WAAW,EAG7B;IAID,IAAI,IAAI,IAAI,QAAQ,CAEnB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGvB;IAID,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,EAGrB;IAID,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CAG7H"}
|
|
@@ -9,7 +9,7 @@ var fundamentals = require('@cratis/fundamentals');
|
|
|
9
9
|
// Copyright (c) Cratis. All rights reserved.
|
|
10
10
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
11
11
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
12
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-
|
|
12
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-11T04:34:45.5264700Z. Hash: F423A39CEDE226F58A7DBAD2A1FF97D2F6B4C2335C94C946C9FBC1F7F515DCB0
|
|
13
13
|
class GiveNoteOnScreenValidator extends commands.CommandValidator {
|
|
14
14
|
constructor(){
|
|
15
15
|
super();
|
|
@@ -21,7 +21,7 @@ class GiveNoteOnScreenValidator extends commands.CommandValidator {
|
|
|
21
21
|
/**
|
|
22
22
|
* The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.
|
|
23
23
|
*/ class GiveNoteOnScreen extends commands.Command {
|
|
24
|
-
static sliceLocation = new reflection.SliceLocation('', 'Giving', 'GiveNoteOnScreen');
|
|
24
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Giving', 'GiveNoteOnScreen');
|
|
25
25
|
route = '/api/giving/give-note-on-screen';
|
|
26
26
|
validation = new GiveNoteOnScreenValidator();
|
|
27
27
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiveNoteOnScreen.js","sources":["../../../../Giving/GiveNoteOnScreen/GiveNoteOnScreen.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-
|
|
1
|
+
{"version":3,"file":"GiveNoteOnScreen.js","sources":["../../../../Giving/GiveNoteOnScreen/GiveNoteOnScreen.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnScreen.GiveNoteOnScreen. Time: 2026-11-11T04:34:45.5264700Z. Hash: F423A39CEDE226F58A7DBAD2A1FF97D2F6B4C2335C94C946C9FBC1F7F515DCB0\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport interface IGiveNoteOnScreen {\n\n /**\n * What the user is looking at; its screen is the subject.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n noteId?: Guid;\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnScreenValidator extends CommandValidator<IGiveNoteOnScreen> {\n constructor() {\n super();\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * The user picked the screen itself as the subject of a note, as opposed to the context the screen happens to be in. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport class GiveNoteOnScreen extends Command<IGiveNoteOnScreen> implements IGiveNoteOnScreen {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnScreen');\n readonly route: string = '/api/giving/give-note-on-screen';\n readonly validation: CommandValidator = new GiveNoteOnScreenValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * What the user is looking at; its screen is the subject.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnScreen): [GiveNoteOnScreen, SetCommandValues<IGiveNoteOnScreen>, ClearCommandValues] {\n return useCommand<GiveNoteOnScreen, IGiveNoteOnScreen>(GiveNoteOnScreen, initialValues);\n }\n}\n"],"names":["GiveNoteOnScreenValidator","CommandValidator","ruleFor","c","context","notNull","withMessage","text","notEmpty","maxLength","GiveNoteOnScreen","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","NoteContext","Number","Guid","String","Object","requestParameters","value","propertyChanged","kind","noteId","use","initialValues","useCommand"],"mappings":";;;;;;;;AAAA;AACA;AAEA;AACA;AAkCO,MAAMA,yBAAAA,SAAkCC,yBAAAA,CAAAA;IAC3C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,OAAO,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEC,QAAQ,EAAA,CAAGF,WAAW,CAAC,kBAAA,CAAA;AACjD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEE,SAAS,CAAC,IAAA,CAAA,CAAMH,WAAW,CAAC,uCAAA,CAAA;AAC1D,IAAA;AACJ;AAEA;;IAGO,MAAMI,gBAAAA,SAAyBC,gBAAAA,CAAAA;AAClC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,UAAU,kBAAA,CAAA;AAC1FC,IAAAA,KAAAA,GA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C,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAMhD;;IAYF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,WAAW,EAG7B;IAID,IAAI,IAAI,IAAI,QAAQ,CAEnB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGvB;IAID,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,EAGrB;IAID,IAAI,MAAM,IAAI,aAAa,EAAE,CAE5B;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,EAGhC;IAID,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CAG7H"}
|
|
@@ -10,7 +10,7 @@ var fundamentals = require('@cratis/fundamentals');
|
|
|
10
10
|
// Copyright (c) Cratis. All rights reserved.
|
|
11
11
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
12
12
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
13
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-
|
|
13
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-11T04:34:45.5264700Z. Hash: AB198AD0DCCD1B12202BB1EEFE6580787E40A6E490D72FB60752F24C14121A7C
|
|
14
14
|
class GiveNoteOnSlicesValidator extends commands.CommandValidator {
|
|
15
15
|
constructor(){
|
|
16
16
|
super();
|
|
@@ -22,7 +22,7 @@ class GiveNoteOnSlicesValidator extends commands.CommandValidator {
|
|
|
22
22
|
/**
|
|
23
23
|
* The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.
|
|
24
24
|
*/ class GiveNoteOnSlices extends commands.Command {
|
|
25
|
-
static sliceLocation = new reflection.SliceLocation('', 'Giving', 'GiveNoteOnSlices');
|
|
25
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Giving', 'GiveNoteOnSlices');
|
|
26
26
|
route = '/api/giving/give-note-on-slices';
|
|
27
27
|
validation = new GiveNoteOnSlicesValidator();
|
|
28
28
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiveNoteOnSlices.js","sources":["../../../../Giving/GiveNoteOnSlices/GiveNoteOnSlices.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-
|
|
1
|
+
{"version":3,"file":"GiveNoteOnSlices.js","sources":["../../../../Giving/GiveNoteOnSlices/GiveNoteOnSlices.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-11T04:34:45.5264700Z. Hash: AB198AD0DCCD1B12202BB1EEFE6580787E40A6E490D72FB60752F24C14121A7C\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { SliceLocation } from '../../Contracts/Reporting/SliceLocation';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport interface IGiveNoteOnSlices {\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n noteId?: Guid;\n\n /**\n * The slices the user picked; at least one.\n */\n slices?: SliceLocation[];\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnSlicesValidator extends CommandValidator<IGiveNoteOnSlices> {\n constructor() {\n super();\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport class GiveNoteOnSlices extends Command<IGiveNoteOnSlices> implements IGiveNoteOnSlices {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Giving', 'GiveNoteOnSlices');\n readonly route: string = '/api/giving/give-note-on-slices';\n readonly validation: CommandValidator = new GiveNoteOnSlicesValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('slices', SliceLocation, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #slices!: SliceLocation[];\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * What the user is looking at.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * The slices the user picked; at least one.\n */\n get slices(): SliceLocation[] {\n return this.#slices;\n }\n\n set slices(value: SliceLocation[]) {\n this.#slices = value;\n this.propertyChanged('slices');\n }\n /**\n * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnSlices): [GiveNoteOnSlices, SetCommandValues<IGiveNoteOnSlices>, ClearCommandValues] {\n return useCommand<GiveNoteOnSlices, IGiveNoteOnSlices>(GiveNoteOnSlices, initialValues);\n }\n}\n"],"names":["GiveNoteOnSlicesValidator","CommandValidator","ruleFor","c","context","notNull","withMessage","text","notEmpty","maxLength","GiveNoteOnSlices","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","NoteContext","Number","Guid","SliceLocation","String","Object","requestParameters","value","propertyChanged","kind","noteId","slices","use","initialValues","useCommand"],"mappings":";;;;;;;;;AAAA;AACA;AAEA;AACA;AAwCO,MAAMA,yBAAAA,SAAkCC,yBAAAA,CAAAA;IAC3C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,OAAO,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC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AIA,OAAAA,CAAQuB,KAAkB,EAAE;QAC5B,IAAI,CAAC,QAAQ,GAAGA,KAAAA;QAChB,IAAI,CAACC,eAAe,CAAC,SAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIC,IAAAA,GAAiB;QACjB,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKF,KAAe,EAAE;QACtB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIE,MAAAA,GAAe;QACf,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOH,KAAW,EAAE;QACpB,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIG,MAAAA,GAA0B;QAC1B,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOJ,KAAsB,EAAE;QAC/B,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIrB,IAAAA,GAAe;QACf,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKoB,KAAa,EAAE;QACpB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;IAEA,OAAOI,GAAAA,CAAIC,aAAiC,EAA+E;AACvH,QAAA,OAAOC,sBAAgDxB,gBAAAA,EAAkBuB,aAAAA,CAAAA;AAC7E,IAAA;AACJ;;;"}
|
package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuggestComponentPropertyChange.d.ts","sourceRoot":"","sources":["../../../../Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAc,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAK5C,MAAM,WAAW,+BAA+B;IAK5C,SAAS,CAAC,EAAE,eAAe,CAAC;IAK5B,OAAO,CAAC,EAAE,WAAW,CAAC;IAKtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,MAAM,CAAC,EAAE,IAAI,CAAC;IAKd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,uCAAwC,SAAQ,gBAAgB,CAAC,+BAA+B,CAAC;;CAS7G;AAKD,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,+BAA+B,CAAE,YAAW,+BAA+B;;IACnI,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SuggestComponentPropertyChange.d.ts","sourceRoot":"","sources":["../../../../Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAc,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,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I,EAGrB;IAID,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAGzB;IAID,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAG/B;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,+BAA+B,GAAG,CAAC,8BAA8B,EAAE,gBAAgB,CAAC,+BAA+B,CAAC,EAAE,kBAAkB,CAAC;CAGvK"}
|
|
@@ -10,7 +10,7 @@ var fundamentals = require('@cratis/fundamentals');
|
|
|
10
10
|
// Copyright (c) Cratis. All rights reserved.
|
|
11
11
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
12
12
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
13
|
-
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-
|
|
13
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-11T04:34:45.5264700Z. Hash: B24B0AC0A848B064AAA0AB3B6AEADE3C6C367A72B4517B7D8DEAABBD599B4B52
|
|
14
14
|
class SuggestComponentPropertyChangeValidator extends commands.CommandValidator {
|
|
15
15
|
constructor(){
|
|
16
16
|
super();
|
|
@@ -24,7 +24,7 @@ class SuggestComponentPropertyChangeValidator extends commands.CommandValidator
|
|
|
24
24
|
/**
|
|
25
25
|
* The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.
|
|
26
26
|
*/ class SuggestComponentPropertyChange extends commands.Command {
|
|
27
|
-
static sliceLocation = new reflection.SliceLocation('', 'Giving', 'SuggestComponentPropertyChange');
|
|
27
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Giving', 'SuggestComponentPropertyChange');
|
|
28
28
|
route = '/api/giving/suggest-component-property-change';
|
|
29
29
|
validation = new SuggestComponentPropertyChangeValidator();
|
|
30
30
|
treatWarningsAsErrors = false;
|