@cratis/showrunner.cue 0.0.0-stage → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +134 -2
  2. package/Starting/StartTour/StartTour.ts +60 -0
  3. package/Starting/StartTour/index.ts +4 -0
  4. package/Starting/StartedTour.ts +98 -0
  5. package/Starting/index.ts +4 -0
  6. package/dist/cjs/Starting/StartTour/StartTour.d.ts +20 -0
  7. package/dist/cjs/Starting/StartTour/StartTour.d.ts.map +1 -0
  8. package/dist/cjs/Starting/StartTour/StartTour.js +43 -0
  9. package/dist/cjs/Starting/StartTour/StartTour.js.map +1 -0
  10. package/dist/cjs/Starting/StartTour/index.d.ts +2 -0
  11. package/dist/cjs/Starting/StartTour/index.d.ts.map +1 -0
  12. package/dist/cjs/Starting/StartedTour.d.ts +38 -0
  13. package/dist/cjs/Starting/StartedTour.d.ts.map +1 -0
  14. package/dist/cjs/Starting/StartedTour.js +98 -0
  15. package/dist/cjs/Starting/StartedTour.js.map +1 -0
  16. package/dist/cjs/Starting/index.d.ts +2 -0
  17. package/dist/cjs/Starting/index.d.ts.map +1 -0
  18. package/dist/cjs/index.d.ts +3 -0
  19. package/dist/cjs/index.d.ts.map +1 -0
  20. package/dist/cjs/index.js +11 -0
  21. package/dist/cjs/index.js.map +1 -0
  22. package/dist/cjs/package.json +3 -0
  23. package/dist/esm/Starting/StartTour/StartTour.d.ts +20 -0
  24. package/dist/esm/Starting/StartTour/StartTour.d.ts.map +1 -0
  25. package/dist/esm/Starting/StartTour/StartTour.js +41 -0
  26. package/dist/esm/Starting/StartTour/StartTour.js.map +1 -0
  27. package/dist/esm/Starting/StartTour/index.d.ts +2 -0
  28. package/dist/esm/Starting/StartTour/index.d.ts.map +1 -0
  29. package/dist/esm/Starting/StartTour/index.js +2 -0
  30. package/dist/esm/Starting/StartTour/index.js.map +1 -0
  31. package/dist/esm/Starting/StartedTour.d.ts +38 -0
  32. package/dist/esm/Starting/StartedTour.d.ts.map +1 -0
  33. package/dist/esm/Starting/StartedTour.js +95 -0
  34. package/dist/esm/Starting/StartedTour.js.map +1 -0
  35. package/dist/esm/Starting/index.d.ts +2 -0
  36. package/dist/esm/Starting/index.d.ts.map +1 -0
  37. package/dist/esm/Starting/index.js +2 -0
  38. package/dist/esm/Starting/index.js.map +1 -0
  39. package/dist/esm/index.d.ts +3 -0
  40. package/dist/esm/index.d.ts.map +1 -0
  41. package/dist/esm/index.js +3 -0
  42. package/dist/esm/index.js.map +1 -0
  43. package/dist/esm/package.json +3 -0
  44. package/index.ts +5 -0
  45. package/package.json +70 -4
package/README.md CHANGED
@@ -1,3 +1,135 @@
1
- # Temporary Holding Version
1
+ # Showrunner
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Cratis Showrunner adds support, licensing, announcements, product feedback and email to applications built on [Cratis](https://www.cratis.io). It provides .NET libraries, TypeScript clients generated from backend commands and queries, and React components. It also includes Stage Manager, a Kubernetes operator for running applications.
4
+
5
+ Choose the part that matches what your application needs. The libraries run inside the application that hosts them; Stage Manager runs as a service in your cluster. The sections below lead to setup instructions for each part.
6
+
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
8
+ [![Build](https://github.com/Cratis/Showrunner/actions/workflows/build.yml/badge.svg)](https://github.com/Cratis/Showrunner/actions/workflows/build.yml)
9
+ [![Publish](https://github.com/Cratis/Showrunner/actions/workflows/publish.yml/badge.svg)](https://github.com/Cratis/Showrunner/actions/workflows/publish.yml)
10
+ [![Discord](https://img.shields.io/discord/1182595891576717413?label=Discord&logo=discord&logoColor=white)](https://discord.gg/kt4AMpV8WV)
11
+
12
+ ## Usher
13
+
14
+ Usher lets users report issues and carry on support conversations from the application. Its backend adds commands, queries and events to the host's Arc application and Chronicle event store; its frontend packages supply the generated TypeScript clients and React components.
15
+
16
+ Usher captures errors and lets a reporter grant time-limited support access through AuthProxy's on-behalf sessions, where support acts as the reporter. Public events connect the application to a support desk. Start with [the Usher documentation](./Documentation/Usher/index.md) to connect those two sides.
17
+
18
+ ## Box Office
19
+
20
+ Box Office lets a managed product honor the licensing decisions its operator makes for each tenant: trials, seats, modules, compute allowances and suspension. The product receives those decisions and reports back through public events. The operator's catalog holds offers and prices; the product declares what it sells and meters compute use. Follow [the Box Office documentation](./Documentation/BoxOffice/index.md) to separate the operator's responsibilities from the product's.
21
+
22
+ ## Marquee
23
+
24
+ Marquee brings product announcements to the people they concern. The people running the product choose the audience, display and time window; the product shows the announcement as a banner or dialog. Add `<Marquee />` to the application shell to use its queries and commands. Follow [the Marquee documentation](./Documentation/Marquee/index.md) to add announcements or host the authoring side.
25
+
26
+ ## Cue
27
+
28
+ Cue plays scripted, narrated guided tours inside an application: a pointer that moves to what the narration talks about, subtitles, a chapter list and a written version of each chapter. The voice-over comes from a text-to-speech service the application configures, and a tour without one plays silently. The backend records who has started which tour, so a button points at a tour until it has been taken. Follow [the Cue documentation](./Documentation/Cue/index.md) to add it.
29
+
30
+ ## GuestList
31
+
32
+ GuestList carries audience grants: which audiences a tenant, a user or the system is in. An operator grants and withdraws an audience with `Cratis.Showrunner.GuestList.Authoring`, with or without Direct; the product hosts `Cratis.Showrunner.GuestList`, records the decisions once in each tenant's own namespace and answers from what it recorded, also when the operator is unreachable. Follow [the GuestList documentation](./Documentation/GuestList/index.md) to receive or grant audiences.
33
+
34
+ ## Notes
35
+
36
+ Notes connects product feedback to what the user was looking at: a slice of application behavior, a screen or a single component. The people building the application receive that context as events and answer the note. The application hosts `Cratis.Showrunner.Notes`; the builder hosts `Cratis.Showrunner.Notes.Collecting`. Use [the Notes documentation](./Documentation/Notes/index.md) to connect feedback collection and replies.
37
+
38
+ ## Payments
39
+
40
+ Payments is the contract an application takes payments through - customers, first payments, recurring charges, subscriptions and refunds - with Mollie as the first provider and a webhook that always reads the payment back from the provider. Start with [the Payments documentation](./Documentation/Payments/index.md).
41
+
42
+ ## Herald
43
+
44
+ Herald sends application email from templates and records what happened. The application supplies an email kind, such as an invitation, a language and its values. Herald fills the template, makes the HTML safe for email clients, embeds images and sends it over SMTP. Failed sends are queued and retried. Start with [the Herald documentation](./Documentation/Herald/index.md) to configure templates and delivery.
45
+
46
+ ## Stage Manager
47
+
48
+ Stage Manager runs applications in Kubernetes. Install it as a service with the `cratis/showrunner-operator` Helm chart. A `Performance` runs an application with its AuthProxy and, when onboarding is configured, its own Ante from a Cratis environment. The application is reachable only through AuthProxy. A Performance can also run a published Stage application.
49
+
50
+ `Performance` is reconciled: the operator acts on it to run the application. The other resources have schemas only; nothing acts on them yet. Follow [the Stage Manager documentation](./Documentation/StageManager/index.md) to install the operator and run an application.
51
+
52
+ ## Packages
53
+
54
+ Choose the backend packages for the part you are hosting, then add its TypeScript proxies or React components if the application needs a frontend. The contract packages contain the public events exchanged between hosts. Stage Manager ships separately as a container image and Helm chart, not a NuGet package.
55
+
56
+ | Package | Registry | What it is |
57
+ | --- | --- | --- |
58
+ | `Cratis.Showrunner.BoxOffice` | NuGet | Product-side licensing: receives the operator's decisions and enforces tenant entitlements |
59
+ | `Cratis.Showrunner.BoxOffice.Catalog` | NuGet | Box Office's catalog — offers (seat plans, modules, compute packs), prices and the pricing arithmetic, published to products |
60
+ | `Cratis.Showrunner.BoxOffice.Offering` | NuGet | Box Office for a product — declares what the product sells (modules, meters, seat licensing) and measures its compute per tenant and day |
61
+ | `Cratis.Showrunner.BoxOffice.Product` | NuGet | Box Office for a managed product, in one call — creates the tenants the operator registers and reports them ready, answers whether a person may take a seat and whether a tenant is read-only, and reports who was active |
62
+ | `Cratis.Showrunner.BoxOffice.Contracts` | NuGet | Box Office's event contracts: what an operator decides about a tenant and what a product reports back |
63
+ | `Cratis.Showrunner.Payments` | NuGet | The provider-neutral payment contract: `IPaymentProvider`, its requests and results, and `IPaymentWebhookHandler` |
64
+ | `Cratis.Showrunner.Payments.Mollie` | NuGet | The Mollie implementation of the payment contract and its webhook endpoint |
65
+ | `Cratis.Showrunner.Herald.Contracts` | NuGet | Herald's event contracts: the facts recorded when an email was sent, failed or bounced |
66
+ | `Cratis.Showrunner.Herald` | NuGet | Herald's backend — templates, strict rendering, images, SMTP and folder transports, queued delivery with retries, recorded in the application's Chronicle event store |
67
+ | `cratis/showrunner-operator-image`, `cratis/showrunner-operator` | Docker Hub, Helm (OCI) | Stage Manager, the Kubernetes operator: the container image and, in a separate repository, the Helm chart released with the same version |
68
+ | `Cratis.Showrunner.Usher.Contracts` | NuGet | Usher's event contracts, for hosts that react to what Usher records |
69
+ | `Cratis.Showrunner.Cue` | NuGet | Cue's backend — records which guided tours each person has started, built on Arc and Chronicle |
70
+ | `Cratis.Showrunner.Marquee.Contracts` | NuGet | Marquee's event contracts: the public events a product receives announcements through |
71
+ | `Cratis.Showrunner.GuestList` | NuGet | The product side of audiences: records an operator's grants and answers which audiences apply |
72
+ | `Cratis.Showrunner.GuestList.Authoring` | NuGet | The operator side of audiences: commands, queries and the outbox for granting and withdrawing |
73
+ | `Cratis.Showrunner.GuestList.Contracts` | NuGet | GuestList's event contracts: the public events audiences are granted and withdrawn through |
74
+ | `Cratis.Showrunner.Marquee.Authoring` | NuGet | Marquee's authoring backend — commands, query and outbox for writing announcements, built on Arc and Chronicle |
75
+ | `Cratis.Showrunner.Marquee` | NuGet | Marquee's backend for products — receives announcements once, shows each tenant what its audience matches and records acknowledgements |
76
+ | `Cratis.Showrunner.Usher` | NuGet | Usher's backend — Arc commands and queries over Chronicle |
77
+ | `Cratis.Showrunner.Notes.Contracts` | NuGet | Notes' event contracts: the public events an application and the people building it exchange about product feedback |
78
+ | `Cratis.Showrunner.Notes` | NuGet | Notes' backend for applications — commands to give, suggest and withdraw notes, the live list of a user's notes with their status, and the outbox that publishes them |
79
+ | `Cratis.Showrunner.Notes.Collecting` | NuGet | Notes' receiving side for the builder of an application — reads the applications' notes into the tenant's namespace and answers them |
80
+ | `@cratis/showrunner.boxoffice` | npm | Generated TypeScript proxies for the product's licensing frontend |
81
+ | `@cratis/showrunner.boxoffice.react` | npm | React components for entitlements, module filtering, trials, suspension, seats, usage and plans |
82
+ | `@cratis/showrunner.cue` | npm | Generated TypeScript proxies for Cue's command and query |
83
+ | `@cratis/showrunner.cue.react` | npm | The Cue guided-tour player for React: the script types, the overlay, the pointer, the voice-over contract and the hooks that connect a tour to the backend, built on `@cratis/arc.react` and `@cratis/components` |
84
+ | `@cratis/showrunner.marquee` | npm | Generated TypeScript proxies for Marquee's receiving commands and queries |
85
+ | `@cratis/showrunner.marquee.authoring` | npm | Generated TypeScript proxies for Marquee's authoring commands and query |
86
+ | `@cratis/showrunner.marquee.react` | npm | The Marquee drop-in React component: banners and dialogs for a product's announcements, built on `@cratis/arc.react` and `@cratis/components` |
87
+ | `@cratis/showrunner.usher` | npm | Generated TypeScript proxies for Usher's commands and queries |
88
+ | `@cratis/showrunner.usher.react` | npm | React components for Usher, built on `@cratis/arc.react` and `@cratis/components` |
89
+ | `@cratis/showrunner.notes` | npm | Generated TypeScript proxies for Notes' commands and queries |
90
+ | `@cratis/showrunner.notes.react` | npm | React components for Notes: the feedback button with its context drop-down, the feedback dialogs, the component picker and the user's own feedback, built on `@cratis/arc.react` and `@cratis/components` |
91
+
92
+ ## Building
93
+
94
+ To work on Showrunner, use the .NET 11 SDK selected by [`global.json`](./global.json), the .NET 10 SDK for the libraries' net10.0 targets and inline specifications, and Node.js 20 or later with Corepack enabled (`corepack enable`). Yarn is checked in under `.yarn/releases`.
95
+
96
+ Run the commands below from the repository root. The full solution test command includes container-based integration specifications, so Docker must be running.
97
+
98
+ ```shell
99
+ # Backend: Debug builds compile the inline specs and regenerate the TypeScript proxies
100
+ dotnet build Showrunner.slnx --configuration Debug
101
+ dotnet test Showrunner.slnx --configuration Debug --no-build
102
+
103
+ # Release is warnings-as-errors; CratisProxiesSkip skips proxy generation
104
+ dotnet build Showrunner.slnx --configuration Release -p:CratisProxiesSkip=true
105
+
106
+ # Frontend
107
+ yarn install
108
+ yarn clean
109
+ yarn lint:ci
110
+ yarn compile
111
+ yarn build
112
+ yarn test
113
+ ```
114
+
115
+ Run `yarn clean` before `yarn compile`: a stale `tsc -b` build-info cache can report success and hide real type errors.
116
+
117
+ Specifications live beside the code they specify: `for_*/when_*/` folders compiled into Debug builds only for .NET, and Vitest specs in the same layout for TypeScript. The Debug build regenerates TypeScript proxies from the backend; do not edit the generated proxies by hand. The pull request build checks that regeneration leaves the committed proxies unchanged.
118
+
119
+ For a focused integration run, [`Integration`](./Integration) runs Usher and a desk against Chronicle in a container. [`Integration.Notes`](./Integration.Notes) runs an application and a collecting host using the same container fixture code. For these two projects, set `USHER_CHRONICLE_IMAGE` to choose another kernel image and `USHER_INTEGRATION_LOG` to a file path to keep the hosts' logs.
120
+
121
+ `Integration.Herald/` also tests against Chronicle in a container; its image override is `HERALD_CHRONICLE_IMAGE`. `Integration.BoxOffice/` tests metering storage against MongoDB in Docker.
122
+
123
+ ## Releasing
124
+
125
+ Every pull request carries exactly one of the `major`, `minor`, `patch` or `no-release` labels. Merging a version-labelled pull request to `main` releases the NuGet and npm packages under one semantic version through [`cratis/release-action`](https://github.com/Cratis/release-action). Use `no-release` to skip publishing. Stage Manager's container image and Helm chart are released with the same version.
126
+
127
+ NuGet and npm use trusted publishing through OpenID Connect (OIDC), with provenance for npm. Build and pack jobs have no publishing rights; separate publish jobs receive short-lived publishing credentials and push the packed artifacts. The npm publisher disables lifecycle scripts when publishing the tarballs.
128
+
129
+ ## Part of the Cratis ecosystem
130
+
131
+ Showrunner is a [Cratis](https://www.cratis.io) project. Its application libraries use [Chronicle](https://github.com/Cratis/Chronicle) to store changes as events. Those with commands and queries use [Arc](https://github.com/Cratis/Arc) to handle writes and reads separately, the pattern called CQRS. The React components build on [`@cratis/components`](https://github.com/Cratis/Components). Join the community on [Discord](https://discord.gg/kt4AMpV8WV).
132
+
133
+ ## License
134
+
135
+ See the [MIT License](LICENSE) for the terms covering this repository.
@@ -0,0 +1,60 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Cue.Starting.StartTour.StartTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 58709DFAE5C853FF7B761D2B430CC86B94A1CA4BC4F21939927B779F7E00D755
6
+ import { Command } from '@cratis/arc/commands';
7
+ import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
8
+ import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
9
+
10
+ /**
11
+ * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.
12
+ */
13
+ export interface IStartTour {
14
+
15
+ /**
16
+ * The tour.
17
+ */
18
+ tour?: string;
19
+ }
20
+
21
+
22
+ /**
23
+ * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.
24
+ */
25
+ export class StartTour extends Command<IStartTour> implements IStartTour {
26
+ static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Starting', 'StartTour');
27
+ readonly route: string = '/api/starting/start-tour';
28
+ readonly treatWarningsAsErrors: boolean = false;
29
+ readonly roles: string[] = [];
30
+ readonly propertyDescriptors: PropertyDescriptor[] = [
31
+ new PropertyDescriptor('tour', String, false),
32
+ ];
33
+
34
+ #tour!: string;
35
+
36
+ constructor() {
37
+ super(Object, false);
38
+ }
39
+
40
+ get requestParameters(): string[] {
41
+ return [
42
+ ];
43
+ }
44
+
45
+ /**
46
+ * The tour.
47
+ */
48
+ get tour(): string {
49
+ return this.#tour;
50
+ }
51
+
52
+ set tour(value: string) {
53
+ this.#tour = value;
54
+ this.propertyChanged('tour');
55
+ }
56
+
57
+ static use(initialValues?: IStartTour): [StartTour, SetCommandValues<IStartTour>, ClearCommandValues] {
58
+ return useCommand<StartTour, IStartTour>(StartTour, initialValues);
59
+ }
60
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './StartTour';
@@ -0,0 +1,98 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ // **DO NOT EDIT** - This file is an automatically generated file.
5
+ // @generated by Cratis. Source: Cratis.Showrunner.Cue.Starting.StartedTour, Cratis.Showrunner.Cue.Starting.StartedTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 64F932FF0857047E9D255787D7B6FF122C417EF6F6954AC631307FAB7410A962
6
+ import { Paging, QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';
7
+ import { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting, useQuery, useQueryWithPaging, useSuspenseQuery, useSuspenseQueryWithPaging } from '@cratis/arc.react/queries';
8
+ import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
9
+ import { field } from '@cratis/fundamentals';
10
+
11
+ class ByMeSortBy {
12
+ private _id: SortingActionsForQuery<StartedTour[]>;
13
+
14
+ constructor(readonly query: ByMe) {
15
+ this._id = new SortingActionsForQuery<StartedTour[]>('id', query);
16
+ }
17
+
18
+ get id(): SortingActionsForQuery<StartedTour[]> {
19
+ return this._id;
20
+ }
21
+ }
22
+
23
+ class ByMeSortByWithoutQuery {
24
+ private _id: SortingActions = new SortingActions('id');
25
+
26
+ get id(): SortingActions {
27
+ return this._id;
28
+ }
29
+ }
30
+
31
+
32
+ /**
33
+ * Gets the tours the signed-in person has started.
34
+ */
35
+ export class ByMe extends QueryFor<StartedTour[]> {
36
+ static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Starting');
37
+ readonly route: string = '/api/starting/by-me';
38
+ readonly queryName: string = 'Cratis.Showrunner.Cue.Starting.StartedTour.ByMe';
39
+ readonly treatWarningsAsErrors: boolean = false;
40
+ readonly roles: string[] = [];
41
+ readonly defaultValue: StartedTour[] = [];
42
+ private readonly _sortBy: ByMeSortBy;
43
+ private static readonly _sortBy: ByMeSortByWithoutQuery = /*#__PURE__*/ new ByMeSortByWithoutQuery();
44
+
45
+ constructor() {
46
+ super(StartedTour, true);
47
+ this._sortBy = new ByMeSortBy(this);
48
+ }
49
+
50
+ get requiredRequestParameters(): string[] {
51
+ return [
52
+ ];
53
+ }
54
+
55
+ readonly parameterDescriptors: ParameterDescriptor[] = [
56
+ ];
57
+
58
+
59
+ get sortBy(): ByMeSortBy {
60
+ return this._sortBy;
61
+ }
62
+
63
+ static get sortBy(): ByMeSortByWithoutQuery {
64
+ return this._sortBy;
65
+ }
66
+
67
+ static use(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting] {
68
+ return useQuery<StartedTour[], ByMe>(ByMe, undefined, sorting);
69
+ }
70
+
71
+ static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {
72
+ return useQueryWithPaging<StartedTour[], ByMe>(ByMe, new Paging(0, pageSize), undefined, sorting);
73
+ }
74
+
75
+ static useSuspense(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting] {
76
+ return useSuspenseQuery<StartedTour[], ByMe>(ByMe, undefined, sorting);
77
+ }
78
+
79
+ static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {
80
+ return useSuspenseQueryWithPaging<StartedTour[], ByMe>(ByMe, new Paging(0, pageSize), undefined, sorting);
81
+ }
82
+
83
+ static when(condition: boolean): QueryWhen<ByMe, StartedTour[]> {
84
+ return new QueryWhen<ByMe, StartedTour[]>(ByMe, condition);
85
+ }
86
+ }
87
+
88
+ /**
89
+ * A guided tour the signed-in person has started.
90
+ */
91
+ export class StartedTour {
92
+
93
+ /**
94
+ * The tour.
95
+ */
96
+ @field(String)
97
+ id!: string;
98
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './StartedTour';
@@ -0,0 +1,20 @@
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
+ export interface IStartTour {
5
+ tour?: string;
6
+ }
7
+ export declare class StartTour extends Command<IStartTour> implements IStartTour {
8
+ #private;
9
+ static readonly sliceLocation: ArcSliceLocation;
10
+ readonly route: string;
11
+ readonly treatWarningsAsErrors: boolean;
12
+ readonly roles: string[];
13
+ readonly propertyDescriptors: PropertyDescriptor[];
14
+ constructor();
15
+ get requestParameters(): string[];
16
+ get tour(): string;
17
+ set tour(value: string);
18
+ static use(initialValues?: IStartTour): [StartTour, SetCommandValues<IStartTour>, ClearCommandValues];
19
+ }
20
+ //# sourceMappingURL=StartTour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartTour.d.ts","sourceRoot":"","sources":["../../../../Starting/StartTour/StartTour.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;AAK/F,MAAM,WAAW,UAAU;IAKvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,qBAAa,SAAU,SAAQ,OAAO,CAAC,UAAU,CAAE,YAAW,UAAU;;IACpE,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAmE;IAClH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAA8B;IACpD,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,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,UAAU,GAAG,CAAC,SAAS,EAAE,gBAAgB,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;CAGxG"}
@@ -0,0 +1,43 @@
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
+
7
+ // Copyright (c) Cratis. All rights reserved.
8
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
9
+ // **DO NOT EDIT** - This file is an automatically generated file.
10
+ // @generated by Cratis. Source: Cratis.Showrunner.Cue.Starting.StartTour.StartTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 58709DFAE5C853FF7B761D2B430CC86B94A1CA4BC4F21939927B779F7E00D755
11
+ /**
12
+ * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.
13
+ */ class StartTour extends commands.Command {
14
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Starting', 'StartTour');
15
+ route = '/api/starting/start-tour';
16
+ treatWarningsAsErrors = false;
17
+ roles = [];
18
+ propertyDescriptors = [
19
+ new reflection.PropertyDescriptor('tour', String, false)
20
+ ];
21
+ #tour;
22
+ constructor(){
23
+ super(Object, false);
24
+ }
25
+ get requestParameters() {
26
+ return [];
27
+ }
28
+ /**
29
+ * The tour.
30
+ */ get tour() {
31
+ return this.#tour;
32
+ }
33
+ set tour(value) {
34
+ this.#tour = value;
35
+ this.propertyChanged('tour');
36
+ }
37
+ static use(initialValues) {
38
+ return commands$1.useCommand(StartTour, initialValues);
39
+ }
40
+ }
41
+
42
+ exports.StartTour = StartTour;
43
+ //# sourceMappingURL=StartTour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartTour.js","sources":["../../../../Starting/StartTour/StartTour.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.Cue.Starting.StartTour.StartTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 58709DFAE5C853FF7B761D2B430CC86B94A1CA4BC4F21939927B779F7E00D755\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\n\n/**\n * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.\n */\nexport interface IStartTour {\n\n /**\n * The tour.\n */\n tour?: string;\n}\n\n\n/**\n * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.\n */\nexport class StartTour extends Command<IStartTour> implements IStartTour {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Starting', 'StartTour');\n readonly route: string = '/api/starting/start-tour';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('tour', String, false),\n ];\n\n #tour!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The tour.\n */\n get tour(): string {\n return this.#tour;\n }\n\n set tour(value: string) {\n this.#tour = value;\n this.propertyChanged('tour');\n }\n\n static use(initialValues?: IStartTour): [StartTour, SetCommandValues<IStartTour>, ClearCommandValues] {\n return useCommand<StartTour, IStartTour>(StartTour, initialValues);\n }\n}\n"],"names":["StartTour","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","String","Object","requestParameters","tour","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AAiBA;;IAGO,MAAMA,SAAAA,SAAkBC,gBAAAA,CAAAA;AAC3B,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,YAAY,WAAA,CAAA;AAC5FC,IAAAA,KAAAA,GAAgB,0BAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,QAAQC,MAAAA,EAAQ,KAAA;KAC1C;AAED,IAAA,KAAK;IAEL,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,IAAAA,GAAe;QACf,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKC,KAAa,EAAE;QACpB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAA0B,EAAiE;AAClG,QAAA,OAAOC,sBAAkCjB,SAAAA,EAAWgB,aAAAA,CAAAA;AACxD,IAAA;AACJ;;"}
@@ -0,0 +1,2 @@
1
+ export * from './StartTour';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Starting/StartTour/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';
2
+ import { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting } from '@cratis/arc.react/queries';
3
+ import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
4
+ declare class ByMeSortBy {
5
+ readonly query: ByMe;
6
+ private _id;
7
+ constructor(query: ByMe);
8
+ get id(): SortingActionsForQuery<StartedTour[]>;
9
+ }
10
+ declare class ByMeSortByWithoutQuery {
11
+ private _id;
12
+ get id(): SortingActions;
13
+ }
14
+ export declare class ByMe extends QueryFor<StartedTour[]> {
15
+ static readonly sliceLocation: ArcSliceLocation;
16
+ readonly route: string;
17
+ readonly queryName: string;
18
+ readonly treatWarningsAsErrors: boolean;
19
+ readonly roles: string[];
20
+ readonly defaultValue: StartedTour[];
21
+ private readonly _sortBy;
22
+ private static readonly _sortBy;
23
+ constructor();
24
+ get requiredRequestParameters(): string[];
25
+ readonly parameterDescriptors: ParameterDescriptor[];
26
+ get sortBy(): ByMeSortBy;
27
+ static get sortBy(): ByMeSortByWithoutQuery;
28
+ static use(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting];
29
+ static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize];
30
+ static useSuspense(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting];
31
+ static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize];
32
+ static when(condition: boolean): QueryWhen<ByMe, StartedTour[]>;
33
+ }
34
+ export declare class StartedTour {
35
+ id: string;
36
+ }
37
+ export {};
38
+ //# sourceMappingURL=StartedTour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartedTour.d.ts","sourceRoot":"","sources":["../../../Starting/StartedTour.ts"],"names":[],"mappings":"AAKA,OAAO,EAAU,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC9H,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAA8E,MAAM,2BAA2B,CAAC;AAClL,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGhG,cAAM,UAAU;IAGA,QAAQ,CAAC,KAAK,EAAE,IAAI;IAFhC,OAAO,CAAC,GAAG,CAAwC;gBAE9B,KAAK,EAAE,IAAI;IAIhC,IAAI,EAAE,IAAI,sBAAsB,CAAC,WAAW,EAAE,CAAC,CAE9C;CACJ;AAED,cAAM,sBAAsB;IACxB,OAAO,CAAC,GAAG,CAA6C;IAExD,IAAI,EAAE,IAAI,cAAc,CAEvB;CACJ;AAMD,qBAAa,IAAK,SAAQ,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC7C,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAA0D;IACzG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAyB;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAqD;IAC/E,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,YAAY,EAAE,WAAW,EAAE,CAAM;IAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAsE;;IAOrG,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAGxC;IAED,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAClD;IAGF,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,MAAM,KAAK,MAAM,IAAI,sBAAsB,CAE1C;IAED,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAI9F,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIhJ,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAItG,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIxJ,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;CAGlE;AAKD,qBAAa,WAAW;IAMpB,EAAE,EAAG,MAAM,CAAC;CACf"}
@@ -0,0 +1,98 @@
1
+ 'use strict';
2
+
3
+ var queries = require('@cratis/arc/queries');
4
+ var queries$1 = require('@cratis/arc.react/queries');
5
+ var reflection = require('@cratis/arc/reflection');
6
+ var fundamentals = require('@cratis/fundamentals');
7
+
8
+ function _ts_decorate(decorators, target, key, desc) {
9
+ var c = arguments.length, r = c < 3 ? target : desc, d;
10
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
11
+ r = Reflect.decorate(decorators, target, key, desc);
12
+ } else {
13
+ for(var i = decorators.length - 1; i >= 0; i--){
14
+ if (d = decorators[i]) {
15
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
+ }
17
+ }
18
+ }
19
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
20
+ }
21
+ function _ts_metadata(metadataKey, metadataValue) {
22
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
23
+ return Reflect.metadata(metadataKey, metadataValue);
24
+ }
25
+ }
26
+ class ByMeSortBy {
27
+ query;
28
+ _id;
29
+ constructor(query){
30
+ this.query = query;
31
+ this._id = new queries.SortingActionsForQuery('id', query);
32
+ }
33
+ get id() {
34
+ return this._id;
35
+ }
36
+ }
37
+ class ByMeSortByWithoutQuery {
38
+ _id = new queries.SortingActions('id');
39
+ get id() {
40
+ return this._id;
41
+ }
42
+ }
43
+ /**
44
+ * Gets the tours the signed-in person has started.
45
+ */ class ByMe extends queries.QueryFor {
46
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Starting');
47
+ route = '/api/starting/by-me';
48
+ queryName = 'Cratis.Showrunner.Cue.Starting.StartedTour.ByMe';
49
+ treatWarningsAsErrors = false;
50
+ roles = [];
51
+ defaultValue = [];
52
+ _sortBy;
53
+ static _sortBy = /*#__PURE__*/ new ByMeSortByWithoutQuery();
54
+ constructor(){
55
+ super(StartedTour, true);
56
+ this._sortBy = new ByMeSortBy(this);
57
+ }
58
+ get requiredRequestParameters() {
59
+ return [];
60
+ }
61
+ parameterDescriptors = [];
62
+ get sortBy() {
63
+ return this._sortBy;
64
+ }
65
+ static get sortBy() {
66
+ return this._sortBy;
67
+ }
68
+ static use(sorting) {
69
+ return queries$1.useQuery(ByMe, undefined, sorting);
70
+ }
71
+ static useWithPaging(pageSize, sorting) {
72
+ return queries$1.useQueryWithPaging(ByMe, new queries.Paging(0, pageSize), undefined, sorting);
73
+ }
74
+ static useSuspense(sorting) {
75
+ return queries$1.useSuspenseQuery(ByMe, undefined, sorting);
76
+ }
77
+ static useSuspenseWithPaging(pageSize, sorting) {
78
+ return queries$1.useSuspenseQueryWithPaging(ByMe, new queries.Paging(0, pageSize), undefined, sorting);
79
+ }
80
+ static when(condition) {
81
+ return new queries$1.QueryWhen(ByMe, condition);
82
+ }
83
+ }
84
+ /**
85
+ * A guided tour the signed-in person has started.
86
+ */ class StartedTour {
87
+ /**
88
+ * The tour.
89
+ */ id;
90
+ }
91
+ _ts_decorate([
92
+ fundamentals.field(String),
93
+ _ts_metadata("design:type", String)
94
+ ], StartedTour.prototype, "id", void 0);
95
+
96
+ exports.ByMe = ByMe;
97
+ exports.StartedTour = StartedTour;
98
+ //# sourceMappingURL=StartedTour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartedTour.js","sources":["../../../Starting/StartedTour.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.Cue.Starting.StartedTour, Cratis.Showrunner.Cue.Starting.StartedTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 64F932FF0857047E9D255787D7B6FF122C417EF6F6954AC631307FAB7410A962\nimport { Paging, QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';\nimport { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting, useQuery, useQueryWithPaging, useSuspenseQuery, useSuspenseQueryWithPaging } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { field } from '@cratis/fundamentals';\n\nclass ByMeSortBy {\n private _id: SortingActionsForQuery<StartedTour[]>;\n\n constructor(readonly query: ByMe) {\n this._id = new SortingActionsForQuery<StartedTour[]>('id', query);\n }\n\n get id(): SortingActionsForQuery<StartedTour[]> {\n return this._id;\n }\n}\n\nclass ByMeSortByWithoutQuery {\n private _id: SortingActions = new SortingActions('id');\n\n get id(): SortingActions {\n return this._id;\n }\n}\n\n\n/**\n * Gets the tours the signed-in person has started.\n */\nexport class ByMe extends QueryFor<StartedTour[]> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Starting');\n readonly route: string = '/api/starting/by-me';\n readonly queryName: string = 'Cratis.Showrunner.Cue.Starting.StartedTour.ByMe';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: StartedTour[] = [];\n private readonly _sortBy: ByMeSortBy;\n private static readonly _sortBy: ByMeSortByWithoutQuery = /*#__PURE__*/ new ByMeSortByWithoutQuery();\n\n constructor() {\n super(StartedTour, true);\n this._sortBy = new ByMeSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): ByMeSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): ByMeSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting] {\n return useQuery<StartedTour[], ByMe>(ByMe, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useQueryWithPaging<StartedTour[], ByMe>(ByMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting] {\n return useSuspenseQuery<StartedTour[], ByMe>(ByMe, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useSuspenseQueryWithPaging<StartedTour[], ByMe>(ByMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static when(condition: boolean): QueryWhen<ByMe, StartedTour[]> {\n return new QueryWhen<ByMe, StartedTour[]>(ByMe, condition);\n }\n}\n\n/**\n * A guided tour the signed-in person has started.\n */\nexport class StartedTour {\n\n /**\n * The tour.\n */\n @field(String)\n id!: string;\n}\n"],"names":["ByMeSortBy","_id","query","SortingActionsForQuery","id","ByMeSortByWithoutQuery","SortingActions","ByMe","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","StartedTour","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useQuery","undefined","useWithPaging","pageSize","useQueryWithPaging","Paging","useSuspense","useSuspenseQuery","useSuspenseWithPaging","useSuspenseQueryWithPaging","when","condition","QueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,UAAAA,CAAAA;;IACMC,GAAAA;IAER,WAAA,CAAqBC,KAAW,CAAE;aAAbA,KAAAA,GAAAA,KAAAA;AACjB,QAAA,IAAI,CAACD,GAAG,GAAG,IAAIE,+BAAsC,IAAA,EAAMD,KAAAA,CAAAA;AAC/D,IAAA;AAEA,IAAA,IAAIE,EAAAA,GAA4C;QAC5C,OAAO,IAAI,CAACH,GAAG;AACnB,IAAA;AACJ;AAEA,MAAMI,sBAAAA,CAAAA;IACMJ,GAAAA,GAAuB,IAAIK,uBAAe,IAAA,CAAA;AAElD,IAAA,IAAIF,EAAAA,GAAqB;QACrB,OAAO,IAAI,CAACH,GAAG;AACnB,IAAA;AACJ;AAGA;;IAGO,MAAMM,IAAAA,SAAaC,gBAAAA,CAAAA;AACtB,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,UAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,qBAAA;AAChBC,IAAAA,SAAAA,GAAoB,iDAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA8B,EAAE;IACxBC,OAAAA;AACjB,IAAA,OAAwBA,OAAAA,iBAAgD,IAAIX,sBAAAA,EAAAA;IAE5E,WAAA,EAAc;AACV,QAAA,KAAK,CAACY,WAAAA,EAAa,IAAA,CAAA;AACnB,QAAA,IAAI,CAACD,OAAO,GAAG,IAAIhB,WAAW,IAAI,CAAA;AACtC,IAAA;AAEA,IAAA,IAAIkB,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAGD,IAAA,IAAIC,MAAAA,GAAqB;QACrB,OAAO,IAAI,CAACJ,OAAO;AACvB,IAAA;AAEA,IAAA,WAAWI,MAAAA,GAAiC;QACxC,OAAO,IAAI,CAACJ,OAAO;AACvB,IAAA;IAEA,OAAOK,GAAAA,CAAIC,OAAiB,EAAmE;QAC3F,OAAOC,kBAAAA,CAA8BhB,MAAMiB,SAAAA,EAAWF,OAAAA,CAAAA;AAC1D,IAAA;AAEA,IAAA,OAAOG,aAAAA,CAAcC,QAAgB,EAAEJ,OAAiB,EAAyF;AAC7I,QAAA,OAAOK,6BAAwCpB,IAAAA,EAAM,IAAIqB,cAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AAC7F,IAAA;IAEA,OAAOO,WAAAA,CAAYP,OAAiB,EAAmE;QACnG,OAAOQ,0BAAAA,CAAsCvB,MAAMiB,SAAAA,EAAWF,OAAAA,CAAAA;AAClE,IAAA;AAEA,IAAA,OAAOS,qBAAAA,CAAsBL,QAAgB,EAAEJ,OAAiB,EAAyF;AACrJ,QAAA,OAAOU,qCAAgDzB,IAAAA,EAAM,IAAIqB,cAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AACrG,IAAA;IAEA,OAAOW,IAAAA,CAAKC,SAAkB,EAAkC;QAC5D,OAAO,IAAIC,oBAA+B5B,IAAAA,EAAM2B,SAAAA,CAAAA;AACpD,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMjB,WAAAA,CAAAA;AAET;;AAEC,QACD,EACAb;AACJ;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './StartedTour';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Starting/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './Starting';
2
+ export * from './Starting/StartTour';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var StartedTour = require('./Starting/StartedTour.js');
4
+ var StartTour = require('./Starting/StartTour/StartTour.js');
5
+
6
+
7
+
8
+ exports.ByMe = StartedTour.ByMe;
9
+ exports.StartedTour = StartedTour.StartedTour;
10
+ exports.StartTour = StartTour.StartTour;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,20 @@
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
+ export interface IStartTour {
5
+ tour?: string;
6
+ }
7
+ export declare class StartTour extends Command<IStartTour> implements IStartTour {
8
+ #private;
9
+ static readonly sliceLocation: ArcSliceLocation;
10
+ readonly route: string;
11
+ readonly treatWarningsAsErrors: boolean;
12
+ readonly roles: string[];
13
+ readonly propertyDescriptors: PropertyDescriptor[];
14
+ constructor();
15
+ get requestParameters(): string[];
16
+ get tour(): string;
17
+ set tour(value: string);
18
+ static use(initialValues?: IStartTour): [StartTour, SetCommandValues<IStartTour>, ClearCommandValues];
19
+ }
20
+ //# sourceMappingURL=StartTour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartTour.d.ts","sourceRoot":"","sources":["../../../../Starting/StartTour/StartTour.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;AAK/F,MAAM,WAAW,UAAU;IAKvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,qBAAa,SAAU,SAAQ,OAAO,CAAC,UAAU,CAAE,YAAW,UAAU;;IACpE,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAmE;IAClH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAA8B;IACpD,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,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,UAAU,GAAG,CAAC,SAAS,EAAE,gBAAgB,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;CAGxG"}
@@ -0,0 +1,41 @@
1
+ import { Command } from '@cratis/arc/commands';
2
+ import { useCommand } from '@cratis/arc.react/commands';
3
+ import { SliceLocation, PropertyDescriptor } from '@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
+ // **DO NOT EDIT** - This file is an automatically generated file.
8
+ // @generated by Cratis. Source: Cratis.Showrunner.Cue.Starting.StartTour.StartTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 58709DFAE5C853FF7B761D2B430CC86B94A1CA4BC4F21939927B779F7E00D755
9
+ /**
10
+ * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.
11
+ */ class StartTour extends Command {
12
+ static sliceLocation = /*#__PURE__*/ new SliceLocation('', 'Starting', 'StartTour');
13
+ route = '/api/starting/start-tour';
14
+ treatWarningsAsErrors = false;
15
+ roles = [];
16
+ propertyDescriptors = [
17
+ new PropertyDescriptor('tour', String, false)
18
+ ];
19
+ #tour;
20
+ constructor(){
21
+ super(Object, false);
22
+ }
23
+ get requestParameters() {
24
+ return [];
25
+ }
26
+ /**
27
+ * The tour.
28
+ */ get tour() {
29
+ return this.#tour;
30
+ }
31
+ set tour(value) {
32
+ this.#tour = value;
33
+ this.propertyChanged('tour');
34
+ }
35
+ static use(initialValues) {
36
+ return useCommand(StartTour, initialValues);
37
+ }
38
+ }
39
+
40
+ export { StartTour };
41
+ //# sourceMappingURL=StartTour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartTour.js","sources":["../../../../Starting/StartTour/StartTour.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.Cue.Starting.StartTour.StartTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 58709DFAE5C853FF7B761D2B430CC86B94A1CA4BC4F21939927B779F7E00D755\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\n\n/**\n * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.\n */\nexport interface IStartTour {\n\n /**\n * The tour.\n */\n tour?: string;\n}\n\n\n/**\n * Records that the signed-in person started a guided tour, so the application can stop offering it to them on every device.\n */\nexport class StartTour extends Command<IStartTour> implements IStartTour {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Starting', 'StartTour');\n readonly route: string = '/api/starting/start-tour';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('tour', String, false),\n ];\n\n #tour!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The tour.\n */\n get tour(): string {\n return this.#tour;\n }\n\n set tour(value: string) {\n this.#tour = value;\n this.propertyChanged('tour');\n }\n\n static use(initialValues?: IStartTour): [StartTour, SetCommandValues<IStartTour>, ClearCommandValues] {\n return useCommand<StartTour, IStartTour>(StartTour, initialValues);\n }\n}\n"],"names":["StartTour","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","String","Object","requestParameters","tour","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;AAAA;AACA;AAEA;AACA;AAiBA;;IAGO,MAAMA,SAAAA,SAAkBC,OAAAA,CAAAA;AAC3B,IAAA,OAAgBC,8BAAgD,IAAIC,aAAAA,CAAiB,EAAA,EAAI,YAAY,WAAA,CAAA;AAC5FC,IAAAA,KAAAA,GAAgB,0BAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,kBAAAA,CAAmB,QAAQC,MAAAA,EAAQ,KAAA;KAC1C;AAED,IAAA,KAAK;IAEL,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,IAAAA,GAAe;QACf,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKC,KAAa,EAAE;QACpB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAA0B,EAAiE;AAClG,QAAA,OAAOC,WAAkCjB,SAAAA,EAAWgB,aAAAA,CAAAA;AACxD,IAAA;AACJ;;"}
@@ -0,0 +1,2 @@
1
+ export * from './StartTour';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Starting/StartTour/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StartTour';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Starting/StartTour/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';
2
+ import { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting } from '@cratis/arc.react/queries';
3
+ import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
4
+ declare class ByMeSortBy {
5
+ readonly query: ByMe;
6
+ private _id;
7
+ constructor(query: ByMe);
8
+ get id(): SortingActionsForQuery<StartedTour[]>;
9
+ }
10
+ declare class ByMeSortByWithoutQuery {
11
+ private _id;
12
+ get id(): SortingActions;
13
+ }
14
+ export declare class ByMe extends QueryFor<StartedTour[]> {
15
+ static readonly sliceLocation: ArcSliceLocation;
16
+ readonly route: string;
17
+ readonly queryName: string;
18
+ readonly treatWarningsAsErrors: boolean;
19
+ readonly roles: string[];
20
+ readonly defaultValue: StartedTour[];
21
+ private readonly _sortBy;
22
+ private static readonly _sortBy;
23
+ constructor();
24
+ get requiredRequestParameters(): string[];
25
+ readonly parameterDescriptors: ParameterDescriptor[];
26
+ get sortBy(): ByMeSortBy;
27
+ static get sortBy(): ByMeSortByWithoutQuery;
28
+ static use(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting];
29
+ static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize];
30
+ static useSuspense(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting];
31
+ static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize];
32
+ static when(condition: boolean): QueryWhen<ByMe, StartedTour[]>;
33
+ }
34
+ export declare class StartedTour {
35
+ id: string;
36
+ }
37
+ export {};
38
+ //# sourceMappingURL=StartedTour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartedTour.d.ts","sourceRoot":"","sources":["../../../Starting/StartedTour.ts"],"names":[],"mappings":"AAKA,OAAO,EAAU,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC9H,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAA8E,MAAM,2BAA2B,CAAC;AAClL,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGhG,cAAM,UAAU;IAGA,QAAQ,CAAC,KAAK,EAAE,IAAI;IAFhC,OAAO,CAAC,GAAG,CAAwC;gBAE9B,KAAK,EAAE,IAAI;IAIhC,IAAI,EAAE,IAAI,sBAAsB,CAAC,WAAW,EAAE,CAAC,CAE9C;CACJ;AAED,cAAM,sBAAsB;IACxB,OAAO,CAAC,GAAG,CAA6C;IAExD,IAAI,EAAE,IAAI,cAAc,CAEvB;CACJ;AAMD,qBAAa,IAAK,SAAQ,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC7C,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAA0D;IACzG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAyB;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAqD;IAC/E,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,YAAY,EAAE,WAAW,EAAE,CAAM;IAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAsE;;IAOrG,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAGxC;IAED,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAClD;IAGF,IAAI,MAAM,IAAI,UAAU,CAEvB;IAED,MAAM,KAAK,MAAM,IAAI,sBAAsB,CAE1C;IAED,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAI9F,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIhJ,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAItG,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIxJ,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;CAGlE;AAKD,qBAAa,WAAW;IAMpB,EAAE,EAAG,MAAM,CAAC;CACf"}
@@ -0,0 +1,95 @@
1
+ import { QueryFor, Paging, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';
2
+ import { useQuery, useQueryWithPaging, useSuspenseQuery, useSuspenseQueryWithPaging, QueryWhen } from '@cratis/arc.react/queries';
3
+ import { SliceLocation } from '@cratis/arc/reflection';
4
+ import { field } from '@cratis/fundamentals';
5
+
6
+ function _ts_decorate(decorators, target, key, desc) {
7
+ var c = arguments.length, r = c < 3 ? target : desc, d;
8
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
9
+ r = Reflect.decorate(decorators, target, key, desc);
10
+ } else {
11
+ for(var i = decorators.length - 1; i >= 0; i--){
12
+ if (d = decorators[i]) {
13
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14
+ }
15
+ }
16
+ }
17
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
18
+ }
19
+ function _ts_metadata(metadataKey, metadataValue) {
20
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
21
+ return Reflect.metadata(metadataKey, metadataValue);
22
+ }
23
+ }
24
+ class ByMeSortBy {
25
+ query;
26
+ _id;
27
+ constructor(query){
28
+ this.query = query;
29
+ this._id = new SortingActionsForQuery('id', query);
30
+ }
31
+ get id() {
32
+ return this._id;
33
+ }
34
+ }
35
+ class ByMeSortByWithoutQuery {
36
+ _id = new SortingActions('id');
37
+ get id() {
38
+ return this._id;
39
+ }
40
+ }
41
+ /**
42
+ * Gets the tours the signed-in person has started.
43
+ */ class ByMe extends QueryFor {
44
+ static sliceLocation = /*#__PURE__*/ new SliceLocation('', '', 'Starting');
45
+ route = '/api/starting/by-me';
46
+ queryName = 'Cratis.Showrunner.Cue.Starting.StartedTour.ByMe';
47
+ treatWarningsAsErrors = false;
48
+ roles = [];
49
+ defaultValue = [];
50
+ _sortBy;
51
+ static _sortBy = /*#__PURE__*/ new ByMeSortByWithoutQuery();
52
+ constructor(){
53
+ super(StartedTour, true);
54
+ this._sortBy = new ByMeSortBy(this);
55
+ }
56
+ get requiredRequestParameters() {
57
+ return [];
58
+ }
59
+ parameterDescriptors = [];
60
+ get sortBy() {
61
+ return this._sortBy;
62
+ }
63
+ static get sortBy() {
64
+ return this._sortBy;
65
+ }
66
+ static use(sorting) {
67
+ return useQuery(ByMe, undefined, sorting);
68
+ }
69
+ static useWithPaging(pageSize, sorting) {
70
+ return useQueryWithPaging(ByMe, new Paging(0, pageSize), undefined, sorting);
71
+ }
72
+ static useSuspense(sorting) {
73
+ return useSuspenseQuery(ByMe, undefined, sorting);
74
+ }
75
+ static useSuspenseWithPaging(pageSize, sorting) {
76
+ return useSuspenseQueryWithPaging(ByMe, new Paging(0, pageSize), undefined, sorting);
77
+ }
78
+ static when(condition) {
79
+ return new QueryWhen(ByMe, condition);
80
+ }
81
+ }
82
+ /**
83
+ * A guided tour the signed-in person has started.
84
+ */ class StartedTour {
85
+ /**
86
+ * The tour.
87
+ */ id;
88
+ }
89
+ _ts_decorate([
90
+ field(String),
91
+ _ts_metadata("design:type", String)
92
+ ], StartedTour.prototype, "id", void 0);
93
+
94
+ export { ByMe, StartedTour };
95
+ //# sourceMappingURL=StartedTour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartedTour.js","sources":["../../../Starting/StartedTour.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.Cue.Starting.StartedTour, Cratis.Showrunner.Cue.Starting.StartedTour. Time: 2026-11-14T07:32:01.8337450Z. Hash: 64F932FF0857047E9D255787D7B6FF122C417EF6F6954AC631307FAB7410A962\nimport { Paging, QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';\nimport { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting, useQuery, useQueryWithPaging, useSuspenseQuery, useSuspenseQueryWithPaging } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { field } from '@cratis/fundamentals';\n\nclass ByMeSortBy {\n private _id: SortingActionsForQuery<StartedTour[]>;\n\n constructor(readonly query: ByMe) {\n this._id = new SortingActionsForQuery<StartedTour[]>('id', query);\n }\n\n get id(): SortingActionsForQuery<StartedTour[]> {\n return this._id;\n }\n}\n\nclass ByMeSortByWithoutQuery {\n private _id: SortingActions = new SortingActions('id');\n\n get id(): SortingActions {\n return this._id;\n }\n}\n\n\n/**\n * Gets the tours the signed-in person has started.\n */\nexport class ByMe extends QueryFor<StartedTour[]> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Starting');\n readonly route: string = '/api/starting/by-me';\n readonly queryName: string = 'Cratis.Showrunner.Cue.Starting.StartedTour.ByMe';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: StartedTour[] = [];\n private readonly _sortBy: ByMeSortBy;\n private static readonly _sortBy: ByMeSortByWithoutQuery = /*#__PURE__*/ new ByMeSortByWithoutQuery();\n\n constructor() {\n super(StartedTour, true);\n this._sortBy = new ByMeSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): ByMeSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): ByMeSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting] {\n return useQuery<StartedTour[], ByMe>(ByMe, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useQueryWithPaging<StartedTour[], ByMe>(ByMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting] {\n return useSuspenseQuery<StartedTour[], ByMe>(ByMe, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<StartedTour[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useSuspenseQueryWithPaging<StartedTour[], ByMe>(ByMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static when(condition: boolean): QueryWhen<ByMe, StartedTour[]> {\n return new QueryWhen<ByMe, StartedTour[]>(ByMe, condition);\n }\n}\n\n/**\n * A guided tour the signed-in person has started.\n */\nexport class StartedTour {\n\n /**\n * The tour.\n */\n @field(String)\n id!: string;\n}\n"],"names":["ByMeSortBy","_id","query","SortingActionsForQuery","id","ByMeSortByWithoutQuery","SortingActions","ByMe","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","StartedTour","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useQuery","undefined","useWithPaging","pageSize","useQueryWithPaging","Paging","useSuspense","useSuspenseQuery","useSuspenseWithPaging","useSuspenseQueryWithPaging","when","condition","QueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,UAAAA,CAAAA;;IACMC,GAAAA;IAER,WAAA,CAAqBC,KAAW,CAAE;aAAbA,KAAAA,GAAAA,KAAAA;AACjB,QAAA,IAAI,CAACD,GAAG,GAAG,IAAIE,uBAAsC,IAAA,EAAMD,KAAAA,CAAAA;AAC/D,IAAA;AAEA,IAAA,IAAIE,EAAAA,GAA4C;QAC5C,OAAO,IAAI,CAACH,GAAG;AACnB,IAAA;AACJ;AAEA,MAAMI,sBAAAA,CAAAA;IACMJ,GAAAA,GAAuB,IAAIK,eAAe,IAAA,CAAA;AAElD,IAAA,IAAIF,EAAAA,GAAqB;QACrB,OAAO,IAAI,CAACH,GAAG;AACnB,IAAA;AACJ;AAGA;;IAGO,MAAMM,IAAAA,SAAaC,QAAAA,CAAAA;AACtB,IAAA,OAAgBC,8BAAgD,IAAIC,aAAAA,CAAiB,EAAA,EAAI,IAAI,UAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,qBAAA;AAChBC,IAAAA,SAAAA,GAAoB,iDAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA8B,EAAE;IACxBC,OAAAA;AACjB,IAAA,OAAwBA,OAAAA,iBAAgD,IAAIX,sBAAAA,EAAAA;IAE5E,WAAA,EAAc;AACV,QAAA,KAAK,CAACY,WAAAA,EAAa,IAAA,CAAA;AACnB,QAAA,IAAI,CAACD,OAAO,GAAG,IAAIhB,WAAW,IAAI,CAAA;AACtC,IAAA;AAEA,IAAA,IAAIkB,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAGD,IAAA,IAAIC,MAAAA,GAAqB;QACrB,OAAO,IAAI,CAACJ,OAAO;AACvB,IAAA;AAEA,IAAA,WAAWI,MAAAA,GAAiC;QACxC,OAAO,IAAI,CAACJ,OAAO;AACvB,IAAA;IAEA,OAAOK,GAAAA,CAAIC,OAAiB,EAAmE;QAC3F,OAAOC,QAAAA,CAA8BhB,MAAMiB,SAAAA,EAAWF,OAAAA,CAAAA;AAC1D,IAAA;AAEA,IAAA,OAAOG,aAAAA,CAAcC,QAAgB,EAAEJ,OAAiB,EAAyF;AAC7I,QAAA,OAAOK,mBAAwCpB,IAAAA,EAAM,IAAIqB,MAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AAC7F,IAAA;IAEA,OAAOO,WAAAA,CAAYP,OAAiB,EAAmE;QACnG,OAAOQ,gBAAAA,CAAsCvB,MAAMiB,SAAAA,EAAWF,OAAAA,CAAAA;AAClE,IAAA;AAEA,IAAA,OAAOS,qBAAAA,CAAsBL,QAAgB,EAAEJ,OAAiB,EAAyF;AACrJ,QAAA,OAAOU,2BAAgDzB,IAAAA,EAAM,IAAIqB,MAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AACrG,IAAA;IAEA,OAAOW,IAAAA,CAAKC,SAAkB,EAAkC;QAC5D,OAAO,IAAIC,UAA+B5B,IAAAA,EAAM2B,SAAAA,CAAAA;AACpD,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMjB,WAAAA,CAAAA;AAET;;AAEC,QACD,EACAb;AACJ;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './StartedTour';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Starting/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StartedTour';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Starting/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './Starting';
2
+ export * from './Starting/StartTour';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ByMe, StartedTour } from './Starting/StartedTour.js';
2
+ export { StartTour } from './Starting/StartTour/StartTour.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ export * from './Starting';
5
+ export * from './Starting/StartTour';
package/package.json CHANGED
@@ -1,6 +1,72 @@
1
1
  {
2
- "name": "@cratis/showrunner.cue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
2
+ "type": "module",
3
+ "name": "@cratis/showrunner.cue",
4
+ "version": "2.10.0",
5
+ "description": "Generated TypeScript proxies for Cue — the Showrunner guided-tour part: record that a person started a guided tour and read which tours they have started, built on Cratis Arc.",
6
+ "keywords": [
7
+ "cratis",
8
+ "showrunner",
9
+ "cue",
10
+ "guided-tour",
11
+ "onboarding",
12
+ "arc",
13
+ "proxies",
14
+ "typescript"
15
+ ],
16
+ "homepage": "https://github.com/Cratis/Showrunner",
17
+ "author": "Cratis",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Cratis/Showrunner.git"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "**/*.ts",
29
+ "**/*.tsx",
30
+ "!**/for_*/**",
31
+ "!**/given/**",
32
+ "!**/*.tsbuildinfo"
33
+ ],
34
+ "main": "dist/cjs/index.js",
35
+ "module": "dist/esm/index.js",
36
+ "types": "dist/esm/index.d.ts",
37
+ "exports": {
38
+ "./package.json": "./package.json",
39
+ ".": {
40
+ "import": {
41
+ "types": "./dist/esm/index.d.ts",
42
+ "default": "./dist/esm/index.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/cjs/index.d.ts",
46
+ "default": "./dist/cjs/index.js"
47
+ }
48
+ }
49
+ },
50
+ "scripts": {
51
+ "prepare": "yarn g:build",
52
+ "clean": "yarn g:clean",
53
+ "compile": "yarn g:compile",
54
+ "build": "yarn g:build",
55
+ "lint": "yarn g:lint",
56
+ "lint:ci": "yarn g:lint:ci",
57
+ "test": "yarn g:test",
58
+ "test:watch": "yarn g:test:watch",
59
+ "ci": "yarn g:ci",
60
+ "up": "yarn g:up"
61
+ },
62
+ "devDependencies": {
63
+ "@cratis/arc": "22.185.1",
64
+ "@cratis/arc.react": "22.185.1",
65
+ "@cratis/fundamentals": "7.34.0"
66
+ },
67
+ "peerDependencies": {
68
+ "@cratis/arc": "^22.185.1",
69
+ "@cratis/arc.react": "^22.185.1",
70
+ "@cratis/fundamentals": "^7.34.0"
71
+ }
6
72
  }