@cratis/showrunner.playbill 0.0.0-stage → 2.19.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.
- package/README.md +141 -2
- package/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.ts +60 -0
- package/Seeing/MarkReleaseNotesSeen/index.ts +4 -0
- package/Seeing/ReleaseNotesStatus.ts +147 -0
- package/Seeing/index.ts +4 -0
- package/dist/cjs/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.d.ts +20 -0
- package/dist/cjs/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.d.ts.map +1 -0
- package/dist/cjs/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.js +43 -0
- package/dist/cjs/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.js.map +1 -0
- package/dist/cjs/Seeing/MarkReleaseNotesSeen/index.d.ts +2 -0
- package/dist/cjs/Seeing/MarkReleaseNotesSeen/index.d.ts.map +1 -0
- package/dist/cjs/Seeing/ReleaseNotesStatus.d.ts +54 -0
- package/dist/cjs/Seeing/ReleaseNotesStatus.d.ts.map +1 -0
- package/dist/cjs/Seeing/ReleaseNotesStatus.js +149 -0
- package/dist/cjs/Seeing/ReleaseNotesStatus.js.map +1 -0
- package/dist/cjs/Seeing/index.d.ts +2 -0
- package/dist/cjs/Seeing/index.d.ts.map +1 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.d.ts +20 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.d.ts.map +1 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.js +41 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.js.map +1 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/index.d.ts +2 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/index.d.ts.map +1 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/index.js +2 -0
- package/dist/esm/Seeing/MarkReleaseNotesSeen/index.js.map +1 -0
- package/dist/esm/Seeing/ReleaseNotesStatus.d.ts +54 -0
- package/dist/esm/Seeing/ReleaseNotesStatus.d.ts.map +1 -0
- package/dist/esm/Seeing/ReleaseNotesStatus.js +146 -0
- package/dist/esm/Seeing/ReleaseNotesStatus.js.map +1 -0
- package/dist/esm/Seeing/index.d.ts +2 -0
- package/dist/esm/Seeing/index.d.ts.map +1 -0
- package/dist/esm/Seeing/index.js +2 -0
- package/dist/esm/Seeing/index.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/index.ts +5 -0
- package/package.json +70 -4
package/README.md
CHANGED
|
@@ -1,3 +1,142 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Showrunner
|
|
2
2
|
|
|
3
|
-
|
|
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)
|
|
8
|
+
[](https://github.com/Cratis/Showrunner/actions/workflows/build.yml)
|
|
9
|
+
[](https://github.com/Cratis/Showrunner/actions/workflows/publish.yml)
|
|
10
|
+
[](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
|
+
## Playbill
|
|
27
|
+
|
|
28
|
+
Playbill shows an application's release notes. A release is described once, in the pull request that ships it; the `playbill-capture` action commits that description next to the code, the `Cratis.Showrunner.Playbill` package embeds it in the assembly at build time and serves it under `/.cratis/playbill/v1`, and React components built on Cratis Components show a releases page, a "what's new" dialog and an unread badge that remember what each person has seen. Follow [the Playbill documentation](./Documentation/Playbill/index.md) to add it.
|
|
29
|
+
|
|
30
|
+
## Cue
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
## GuestList
|
|
35
|
+
|
|
36
|
+
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.
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
## Payments
|
|
43
|
+
|
|
44
|
+
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).
|
|
45
|
+
|
|
46
|
+
## Herald
|
|
47
|
+
|
|
48
|
+
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.
|
|
49
|
+
|
|
50
|
+
## Stage Manager
|
|
51
|
+
|
|
52
|
+
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.
|
|
53
|
+
|
|
54
|
+
`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.
|
|
55
|
+
|
|
56
|
+
## Packages
|
|
57
|
+
|
|
58
|
+
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.
|
|
59
|
+
|
|
60
|
+
| Package | Registry | What it is |
|
|
61
|
+
| --- | --- | --- |
|
|
62
|
+
| `Cratis.Showrunner.BoxOffice` | NuGet | Product-side licensing: receives the operator's decisions and enforces tenant entitlements |
|
|
63
|
+
| `Cratis.Showrunner.BoxOffice.Catalog` | NuGet | Box Office's catalog — offers (seat plans, modules, compute packs), prices and the pricing arithmetic, published to products |
|
|
64
|
+
| `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 |
|
|
65
|
+
| `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 |
|
|
66
|
+
| `Cratis.Showrunner.BoxOffice.Contracts` | NuGet | Box Office's event contracts: what an operator decides about a tenant and what a product reports back |
|
|
67
|
+
| `Cratis.Showrunner.Payments` | NuGet | The provider-neutral payment contract: `IPaymentProvider`, its requests and results, and `IPaymentWebhookHandler` |
|
|
68
|
+
| `Cratis.Showrunner.Payments.Mollie` | NuGet | The Mollie implementation of the payment contract and its webhook endpoint |
|
|
69
|
+
| `Cratis.Showrunner.Herald.Contracts` | NuGet | Herald's event contracts: the facts recorded when an email was sent, failed or bounced |
|
|
70
|
+
| `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 |
|
|
71
|
+
| `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 |
|
|
72
|
+
| `Cratis.Showrunner.Usher.Contracts` | NuGet | Usher's event contracts, for hosts that react to what Usher records |
|
|
73
|
+
| `Cratis.Showrunner.Cue` | NuGet | Cue's backend — records which guided tours each person has started, built on Arc and Chronicle |
|
|
74
|
+
| `Cratis.Showrunner.Playbill` | NuGet | Playbill's backend — embeds an application's release notes at build time, serves them under `/.cratis/playbill/v1` and records which releases each person has seen, built on Arc and Chronicle |
|
|
75
|
+
| `Cratis.Showrunner.Marquee.Contracts` | NuGet | Marquee's event contracts: the public events a product receives announcements through |
|
|
76
|
+
| `Cratis.Showrunner.GuestList` | NuGet | The product side of audiences: records an operator's grants and answers which audiences apply |
|
|
77
|
+
| `Cratis.Showrunner.GuestList.Authoring` | NuGet | The operator side of audiences: commands, queries and the outbox for granting and withdrawing |
|
|
78
|
+
| `Cratis.Showrunner.GuestList.Contracts` | NuGet | GuestList's event contracts: the public events audiences are granted and withdrawn through |
|
|
79
|
+
| `Cratis.Showrunner.Marquee.Authoring` | NuGet | Marquee's authoring backend — commands, query and outbox for writing announcements, built on Arc and Chronicle |
|
|
80
|
+
| `Cratis.Showrunner.Marquee` | NuGet | Marquee's backend for products — receives announcements once, shows each tenant what its audience matches and records acknowledgements |
|
|
81
|
+
| `Cratis.Showrunner.Usher` | NuGet | Usher's backend — Arc commands and queries over Chronicle |
|
|
82
|
+
| `Cratis.Showrunner.Notes.Contracts` | NuGet | Notes' event contracts: the public events an application and the people building it exchange about product feedback |
|
|
83
|
+
| `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 |
|
|
84
|
+
| `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 |
|
|
85
|
+
| `@cratis/showrunner.boxoffice` | npm | Generated TypeScript proxies for the product's licensing frontend |
|
|
86
|
+
| `@cratis/showrunner.boxoffice.react` | npm | React components for entitlements, module filtering, trials, suspension, seats, usage and plans |
|
|
87
|
+
| `@cratis/showrunner.cue` | npm | Generated TypeScript proxies for Cue's command and observable query |
|
|
88
|
+
| `@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` |
|
|
89
|
+
| `@cratis/showrunner.playbill` | npm | Generated TypeScript proxies for Playbill's command and observable query |
|
|
90
|
+
| `@cratis/showrunner.playbill.react` | npm | The Playbill release-notes experience for React: a releases page, a what's new dialog and an unread badge, built on `@cratis/arc.react` and `@cratis/components` |
|
|
91
|
+
| `@cratis/showrunner.marquee` | npm | Generated TypeScript proxies for Marquee's receiving commands and queries |
|
|
92
|
+
| `@cratis/showrunner.marquee.authoring` | npm | Generated TypeScript proxies for Marquee's authoring commands and query |
|
|
93
|
+
| `@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` |
|
|
94
|
+
| `@cratis/showrunner.usher` | npm | Generated TypeScript proxies for Usher's commands and queries |
|
|
95
|
+
| `@cratis/showrunner.usher.react` | npm | React components for Usher, built on `@cratis/arc.react` and `@cratis/components` |
|
|
96
|
+
| `@cratis/showrunner.notes` | npm | Generated TypeScript proxies for Notes' commands and queries |
|
|
97
|
+
| `@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` |
|
|
98
|
+
|
|
99
|
+
## Building
|
|
100
|
+
|
|
101
|
+
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`.
|
|
102
|
+
|
|
103
|
+
Run the commands below from the repository root. The full solution test command includes container-based integration specifications, so Docker must be running.
|
|
104
|
+
|
|
105
|
+
```shell
|
|
106
|
+
# Backend: Debug builds compile the inline specs and regenerate the TypeScript proxies
|
|
107
|
+
dotnet build Showrunner.slnx --configuration Debug
|
|
108
|
+
dotnet test Showrunner.slnx --configuration Debug --no-build
|
|
109
|
+
|
|
110
|
+
# Release is warnings-as-errors; CratisProxiesSkip skips proxy generation
|
|
111
|
+
dotnet build Showrunner.slnx --configuration Release -p:CratisProxiesSkip=true
|
|
112
|
+
|
|
113
|
+
# Frontend
|
|
114
|
+
yarn install
|
|
115
|
+
yarn clean
|
|
116
|
+
yarn lint:ci
|
|
117
|
+
yarn compile
|
|
118
|
+
yarn build
|
|
119
|
+
yarn test
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Run `yarn clean` before `yarn compile`: a stale `tsc -b` build-info cache can report success and hide real type errors.
|
|
123
|
+
|
|
124
|
+
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.
|
|
125
|
+
|
|
126
|
+
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.
|
|
127
|
+
|
|
128
|
+
`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.
|
|
129
|
+
|
|
130
|
+
## Releasing
|
|
131
|
+
|
|
132
|
+
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.
|
|
133
|
+
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
## Part of the Cratis ecosystem
|
|
137
|
+
|
|
138
|
+
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).
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
|
|
142
|
+
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.Playbill.Seeing.MarkReleaseNotesSeen.MarkReleaseNotesSeen. Time: 2026-11-22T08:57:16.8600030Z. Hash: 3D10E8BE038C372CC2FFF7678DB8DE731E23CA34E0D9EA746C4A2E952DFF33E5
|
|
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 has seen the release notes up to a version, so they are not told about those releases again on any device.
|
|
12
|
+
*/
|
|
13
|
+
export interface IMarkReleaseNotesSeen {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The newest release the person has seen the notes of.
|
|
17
|
+
*/
|
|
18
|
+
version?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Records that the signed-in person has seen the release notes up to a version, so they are not told about those releases again on any device.
|
|
24
|
+
*/
|
|
25
|
+
export class MarkReleaseNotesSeen extends Command<IMarkReleaseNotesSeen> implements IMarkReleaseNotesSeen {
|
|
26
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seeing', 'MarkReleaseNotesSeen');
|
|
27
|
+
readonly route: string = '/api/seeing/mark-release-notes-seen';
|
|
28
|
+
readonly treatWarningsAsErrors: boolean = false;
|
|
29
|
+
readonly roles: string[] = [];
|
|
30
|
+
readonly propertyDescriptors: PropertyDescriptor[] = [
|
|
31
|
+
new PropertyDescriptor('version', String, false),
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
#version!: string;
|
|
35
|
+
|
|
36
|
+
constructor() {
|
|
37
|
+
super(Object, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get requestParameters(): string[] {
|
|
41
|
+
return [
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The newest release the person has seen the notes of.
|
|
47
|
+
*/
|
|
48
|
+
get version(): string {
|
|
49
|
+
return this.#version;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set version(value: string) {
|
|
53
|
+
this.#version = value;
|
|
54
|
+
this.propertyChanged('version');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static use(initialValues?: IMarkReleaseNotesSeen): [MarkReleaseNotesSeen, SetCommandValues<IMarkReleaseNotesSeen>, ClearCommandValues] {
|
|
58
|
+
return useCommand<MarkReleaseNotesSeen, IMarkReleaseNotesSeen>(MarkReleaseNotesSeen, initialValues);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
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.Playbill.Seeing.ReleaseNotesStatus, Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus. Time: 2026-11-22T08:59:15.9245570Z. Hash: CD68A92BA74CD2D3DE09F438520884D673E382D010D8AA3741D3B7B7EDA8DACE
|
|
6
|
+
import { ChangeSet, ObservableQueryFor, Paging, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
|
|
7
|
+
import { ObservableQueryWhen, SetPage, SetPageSize, SetSorting, useChangeStream, useObservableQuery, useObservableQueryWithPaging, useSuspenseObservableQuery, useSuspenseObservableQueryWithPaging } from '@cratis/arc.react/queries';
|
|
8
|
+
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
9
|
+
import { field } from '@cratis/fundamentals';
|
|
10
|
+
|
|
11
|
+
class ForMeSortBy {
|
|
12
|
+
private _current: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
13
|
+
private _lastSeen: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
14
|
+
private _unread: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
15
|
+
private _unreadVersions: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
16
|
+
|
|
17
|
+
constructor(readonly query: ForMe) {
|
|
18
|
+
this._current = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('current', query);
|
|
19
|
+
this._lastSeen = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('lastSeen', query);
|
|
20
|
+
this._unread = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('unread', query);
|
|
21
|
+
this._unreadVersions = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('unreadVersions', query);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get current(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {
|
|
25
|
+
return this._current;
|
|
26
|
+
}
|
|
27
|
+
get lastSeen(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {
|
|
28
|
+
return this._lastSeen;
|
|
29
|
+
}
|
|
30
|
+
get unread(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {
|
|
31
|
+
return this._unread;
|
|
32
|
+
}
|
|
33
|
+
get unreadVersions(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {
|
|
34
|
+
return this._unreadVersions;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
class ForMeSortByWithoutQuery {
|
|
39
|
+
private _current: SortingActions = new SortingActions('current');
|
|
40
|
+
private _lastSeen: SortingActions = new SortingActions('lastSeen');
|
|
41
|
+
private _unread: SortingActions = new SortingActions('unread');
|
|
42
|
+
private _unreadVersions: SortingActions = new SortingActions('unreadVersions');
|
|
43
|
+
|
|
44
|
+
get current(): SortingActions {
|
|
45
|
+
return this._current;
|
|
46
|
+
}
|
|
47
|
+
get lastSeen(): SortingActions {
|
|
48
|
+
return this._lastSeen;
|
|
49
|
+
}
|
|
50
|
+
get unread(): SortingActions {
|
|
51
|
+
return this._unread;
|
|
52
|
+
}
|
|
53
|
+
get unreadVersions(): SortingActions {
|
|
54
|
+
return this._unreadVersions;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Observes the signed-in person's status. It emits exactly one status, and a new one whenever they mark release notes as seen, so an unread badge clears on every device the person has open.
|
|
61
|
+
*/
|
|
62
|
+
export class ForMe extends ObservableQueryFor<ReleaseNotesStatus[]> {
|
|
63
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seeing');
|
|
64
|
+
readonly route: string = '/api/seeing/for-me';
|
|
65
|
+
readonly queryName: string = 'Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus.ForMe';
|
|
66
|
+
readonly treatWarningsAsErrors: boolean = false;
|
|
67
|
+
readonly roles: string[] = [];
|
|
68
|
+
readonly defaultValue: ReleaseNotesStatus[] = [];
|
|
69
|
+
private readonly _sortBy: ForMeSortBy;
|
|
70
|
+
private static readonly _sortBy: ForMeSortByWithoutQuery = /*#__PURE__*/ new ForMeSortByWithoutQuery();
|
|
71
|
+
|
|
72
|
+
constructor() {
|
|
73
|
+
super(ReleaseNotesStatus, true);
|
|
74
|
+
this._sortBy = new ForMeSortBy(this);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
get requiredRequestParameters(): string[] {
|
|
78
|
+
return [
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
readonly parameterDescriptors: ParameterDescriptor[] = [
|
|
83
|
+
];
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
get sortBy(): ForMeSortBy {
|
|
87
|
+
return this._sortBy;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static get sortBy(): ForMeSortByWithoutQuery {
|
|
91
|
+
return this._sortBy;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static use(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting] {
|
|
95
|
+
return useObservableQuery<ReleaseNotesStatus[], ForMe>(ForMe, undefined, sorting);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize] {
|
|
99
|
+
return useObservableQueryWithPaging<ReleaseNotesStatus[], ForMe>(ForMe, new Paging(0, pageSize), undefined, sorting);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static useSuspense(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting] {
|
|
103
|
+
return useSuspenseObservableQuery<ReleaseNotesStatus[], ForMe>(ForMe, undefined, sorting);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize] {
|
|
107
|
+
return useSuspenseObservableQueryWithPaging<ReleaseNotesStatus[], ForMe>(ForMe, new Paging(0, pageSize), undefined, sorting);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static useChangeStream(getKey?: (item: ReleaseNotesStatus) => unknown, sorting?: Sorting): ChangeSet<ReleaseNotesStatus> {
|
|
111
|
+
return useChangeStream<ReleaseNotesStatus, ForMe>(ForMe, undefined, getKey, sorting);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static when(condition: boolean): ObservableQueryWhen<ForMe, ReleaseNotesStatus[]> {
|
|
115
|
+
return new ObservableQueryWhen<ForMe, ReleaseNotesStatus[]>(ForMe, condition);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* What the signed-in person has not been told about yet: the releases newer than the newest they have seen.
|
|
121
|
+
*/
|
|
122
|
+
export class ReleaseNotesStatus {
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The version the application is running; empty when it is not known.
|
|
126
|
+
*/
|
|
127
|
+
@field(String)
|
|
128
|
+
current!: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The newest release the person has seen the notes of; empty when they have seen none.
|
|
132
|
+
*/
|
|
133
|
+
@field(String)
|
|
134
|
+
lastSeen!: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* How many releases they have not seen the notes of.
|
|
138
|
+
*/
|
|
139
|
+
@field(Number)
|
|
140
|
+
unread!: number;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The versions of those releases, the newest first.
|
|
144
|
+
*/
|
|
145
|
+
@field(String, true)
|
|
146
|
+
unreadVersions!: string[];
|
|
147
|
+
}
|
package/Seeing/index.ts
ADDED
|
@@ -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 IMarkReleaseNotesSeen {
|
|
5
|
+
version?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class MarkReleaseNotesSeen extends Command<IMarkReleaseNotesSeen> implements IMarkReleaseNotesSeen {
|
|
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 version(): string;
|
|
17
|
+
set version(value: string);
|
|
18
|
+
static use(initialValues?: IMarkReleaseNotesSeen): [MarkReleaseNotesSeen, SetCommandValues<IMarkReleaseNotesSeen>, ClearCommandValues];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=MarkReleaseNotesSeen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkReleaseNotesSeen.d.ts","sourceRoot":"","sources":["../../../../Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.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,qBAAqB;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,qBAAqB,CAAE,YAAW,qBAAqB;;IACrG,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAA4E;IAC3H,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAyC;IAC/D,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAEhD;;IAQF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAGxB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,qBAAqB,GAAG,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC;CAGzI"}
|
|
@@ -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.Playbill.Seeing.MarkReleaseNotesSeen.MarkReleaseNotesSeen. Time: 2026-11-22T08:57:16.8600030Z. Hash: 3D10E8BE038C372CC2FFF7678DB8DE731E23CA34E0D9EA746C4A2E952DFF33E5
|
|
11
|
+
/**
|
|
12
|
+
* Records that the signed-in person has seen the release notes up to a version, so they are not told about those releases again on any device.
|
|
13
|
+
*/ class MarkReleaseNotesSeen extends commands.Command {
|
|
14
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Seeing', 'MarkReleaseNotesSeen');
|
|
15
|
+
route = '/api/seeing/mark-release-notes-seen';
|
|
16
|
+
treatWarningsAsErrors = false;
|
|
17
|
+
roles = [];
|
|
18
|
+
propertyDescriptors = [
|
|
19
|
+
new reflection.PropertyDescriptor('version', String, false)
|
|
20
|
+
];
|
|
21
|
+
#version;
|
|
22
|
+
constructor(){
|
|
23
|
+
super(Object, false);
|
|
24
|
+
}
|
|
25
|
+
get requestParameters() {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The newest release the person has seen the notes of.
|
|
30
|
+
*/ get version() {
|
|
31
|
+
return this.#version;
|
|
32
|
+
}
|
|
33
|
+
set version(value) {
|
|
34
|
+
this.#version = value;
|
|
35
|
+
this.propertyChanged('version');
|
|
36
|
+
}
|
|
37
|
+
static use(initialValues) {
|
|
38
|
+
return commands$1.useCommand(MarkReleaseNotesSeen, initialValues);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.MarkReleaseNotesSeen = MarkReleaseNotesSeen;
|
|
43
|
+
//# sourceMappingURL=MarkReleaseNotesSeen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkReleaseNotesSeen.js","sources":["../../../../Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.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.Playbill.Seeing.MarkReleaseNotesSeen.MarkReleaseNotesSeen. Time: 2026-11-22T08:57:16.8600030Z. Hash: 3D10E8BE038C372CC2FFF7678DB8DE731E23CA34E0D9EA746C4A2E952DFF33E5\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 has seen the release notes up to a version, so they are not told about those releases again on any device.\n */\nexport interface IMarkReleaseNotesSeen {\n\n /**\n * The newest release the person has seen the notes of.\n */\n version?: string;\n}\n\n\n/**\n * Records that the signed-in person has seen the release notes up to a version, so they are not told about those releases again on any device.\n */\nexport class MarkReleaseNotesSeen extends Command<IMarkReleaseNotesSeen> implements IMarkReleaseNotesSeen {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seeing', 'MarkReleaseNotesSeen');\n readonly route: string = '/api/seeing/mark-release-notes-seen';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('version', String, false),\n ];\n\n #version!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The newest release the person has seen the notes of.\n */\n get version(): string {\n return this.#version;\n }\n\n set version(value: string) {\n this.#version = value;\n this.propertyChanged('version');\n }\n\n static use(initialValues?: IMarkReleaseNotesSeen): [MarkReleaseNotesSeen, SetCommandValues<IMarkReleaseNotesSeen>, ClearCommandValues] {\n return useCommand<MarkReleaseNotesSeen, IMarkReleaseNotesSeen>(MarkReleaseNotesSeen, initialValues);\n }\n}\n"],"names":["MarkReleaseNotesSeen","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","String","Object","requestParameters","version","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AAiBA;;IAGO,MAAMA,oBAAAA,SAA6BC,gBAAAA,CAAAA;AACtC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,UAAU,sBAAA,CAAA;AAC1FC,IAAAA,KAAAA,GAAgB,qCAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,WAAWC,MAAAA,EAAQ,KAAA;KAC7C;AAED,IAAA,QAAQ;IAER,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,KAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IAAA;AAEA;;AAEC,QACD,IAAIC,OAAAA,GAAkB;QAClB,OAAO,IAAI,CAAC,QAAQ;AACxB,IAAA;IAEA,IAAIA,OAAAA,CAAQC,KAAa,EAAE;QACvB,IAAI,CAAC,QAAQ,GAAGA,KAAAA;QAChB,IAAI,CAACC,eAAe,CAAC,SAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAAqC,EAAuF;AACnI,QAAA,OAAOC,sBAAwDjB,oBAAAA,EAAsBgB,aAAAA,CAAAA;AACzF,IAAA;AACJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Seeing/MarkReleaseNotesSeen/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ChangeSet, ObservableQueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
|
|
2
|
+
import { ObservableQueryWhen, SetPage, SetPageSize, SetSorting } from '@cratis/arc.react/queries';
|
|
3
|
+
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
declare class ForMeSortBy {
|
|
5
|
+
readonly query: ForMe;
|
|
6
|
+
private _current;
|
|
7
|
+
private _lastSeen;
|
|
8
|
+
private _unread;
|
|
9
|
+
private _unreadVersions;
|
|
10
|
+
constructor(query: ForMe);
|
|
11
|
+
get current(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
12
|
+
get lastSeen(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
13
|
+
get unread(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
14
|
+
get unreadVersions(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
15
|
+
}
|
|
16
|
+
declare class ForMeSortByWithoutQuery {
|
|
17
|
+
private _current;
|
|
18
|
+
private _lastSeen;
|
|
19
|
+
private _unread;
|
|
20
|
+
private _unreadVersions;
|
|
21
|
+
get current(): SortingActions;
|
|
22
|
+
get lastSeen(): SortingActions;
|
|
23
|
+
get unread(): SortingActions;
|
|
24
|
+
get unreadVersions(): SortingActions;
|
|
25
|
+
}
|
|
26
|
+
export declare class ForMe extends ObservableQueryFor<ReleaseNotesStatus[]> {
|
|
27
|
+
static readonly sliceLocation: ArcSliceLocation;
|
|
28
|
+
readonly route: string;
|
|
29
|
+
readonly queryName: string;
|
|
30
|
+
readonly treatWarningsAsErrors: boolean;
|
|
31
|
+
readonly roles: string[];
|
|
32
|
+
readonly defaultValue: ReleaseNotesStatus[];
|
|
33
|
+
private readonly _sortBy;
|
|
34
|
+
private static readonly _sortBy;
|
|
35
|
+
constructor();
|
|
36
|
+
get requiredRequestParameters(): string[];
|
|
37
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
38
|
+
get sortBy(): ForMeSortBy;
|
|
39
|
+
static get sortBy(): ForMeSortByWithoutQuery;
|
|
40
|
+
static use(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting];
|
|
41
|
+
static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize];
|
|
42
|
+
static useSuspense(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting];
|
|
43
|
+
static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize];
|
|
44
|
+
static useChangeStream(getKey?: (item: ReleaseNotesStatus) => unknown, sorting?: Sorting): ChangeSet<ReleaseNotesStatus>;
|
|
45
|
+
static when(condition: boolean): ObservableQueryWhen<ForMe, ReleaseNotesStatus[]>;
|
|
46
|
+
}
|
|
47
|
+
export declare class ReleaseNotesStatus {
|
|
48
|
+
current: string;
|
|
49
|
+
lastSeen: string;
|
|
50
|
+
unread: number;
|
|
51
|
+
unreadVersions: string[];
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=ReleaseNotesStatus.d.ts.map
|
|
@@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IAAI,EAAE,kBAAkB,KAAK,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC,kBAAkB,CAAC;IAIxH,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAGpF;AAKD,qBAAa,kBAAkB;IAM3B,OAAO,EAAG,MAAM,CAAC;IAMjB,QAAQ,EAAG,MAAM,CAAC;IAMlB,MAAM,EAAG,MAAM,CAAC;IAMhB,cAAc,EAAG,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 ForMeSortBy {
|
|
27
|
+
query;
|
|
28
|
+
_current;
|
|
29
|
+
_lastSeen;
|
|
30
|
+
_unread;
|
|
31
|
+
_unreadVersions;
|
|
32
|
+
constructor(query){
|
|
33
|
+
this.query = query;
|
|
34
|
+
this._current = new queries.SortingActionsForObservableQuery('current', query);
|
|
35
|
+
this._lastSeen = new queries.SortingActionsForObservableQuery('lastSeen', query);
|
|
36
|
+
this._unread = new queries.SortingActionsForObservableQuery('unread', query);
|
|
37
|
+
this._unreadVersions = new queries.SortingActionsForObservableQuery('unreadVersions', query);
|
|
38
|
+
}
|
|
39
|
+
get current() {
|
|
40
|
+
return this._current;
|
|
41
|
+
}
|
|
42
|
+
get lastSeen() {
|
|
43
|
+
return this._lastSeen;
|
|
44
|
+
}
|
|
45
|
+
get unread() {
|
|
46
|
+
return this._unread;
|
|
47
|
+
}
|
|
48
|
+
get unreadVersions() {
|
|
49
|
+
return this._unreadVersions;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
class ForMeSortByWithoutQuery {
|
|
53
|
+
_current = new queries.SortingActions('current');
|
|
54
|
+
_lastSeen = new queries.SortingActions('lastSeen');
|
|
55
|
+
_unread = new queries.SortingActions('unread');
|
|
56
|
+
_unreadVersions = new queries.SortingActions('unreadVersions');
|
|
57
|
+
get current() {
|
|
58
|
+
return this._current;
|
|
59
|
+
}
|
|
60
|
+
get lastSeen() {
|
|
61
|
+
return this._lastSeen;
|
|
62
|
+
}
|
|
63
|
+
get unread() {
|
|
64
|
+
return this._unread;
|
|
65
|
+
}
|
|
66
|
+
get unreadVersions() {
|
|
67
|
+
return this._unreadVersions;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Observes the signed-in person's status. It emits exactly one status, and a new one whenever they mark release notes as seen, so an unread badge clears on every device the person has open.
|
|
72
|
+
*/ class ForMe extends queries.ObservableQueryFor {
|
|
73
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Seeing');
|
|
74
|
+
route = '/api/seeing/for-me';
|
|
75
|
+
queryName = 'Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus.ForMe';
|
|
76
|
+
treatWarningsAsErrors = false;
|
|
77
|
+
roles = [];
|
|
78
|
+
defaultValue = [];
|
|
79
|
+
_sortBy;
|
|
80
|
+
static _sortBy = /*#__PURE__*/ new ForMeSortByWithoutQuery();
|
|
81
|
+
constructor(){
|
|
82
|
+
super(ReleaseNotesStatus, true);
|
|
83
|
+
this._sortBy = new ForMeSortBy(this);
|
|
84
|
+
}
|
|
85
|
+
get requiredRequestParameters() {
|
|
86
|
+
return [];
|
|
87
|
+
}
|
|
88
|
+
parameterDescriptors = [];
|
|
89
|
+
get sortBy() {
|
|
90
|
+
return this._sortBy;
|
|
91
|
+
}
|
|
92
|
+
static get sortBy() {
|
|
93
|
+
return this._sortBy;
|
|
94
|
+
}
|
|
95
|
+
static use(sorting) {
|
|
96
|
+
return queries$1.useObservableQuery(ForMe, undefined, sorting);
|
|
97
|
+
}
|
|
98
|
+
static useWithPaging(pageSize, sorting) {
|
|
99
|
+
return queries$1.useObservableQueryWithPaging(ForMe, new queries.Paging(0, pageSize), undefined, sorting);
|
|
100
|
+
}
|
|
101
|
+
static useSuspense(sorting) {
|
|
102
|
+
return queries$1.useSuspenseObservableQuery(ForMe, undefined, sorting);
|
|
103
|
+
}
|
|
104
|
+
static useSuspenseWithPaging(pageSize, sorting) {
|
|
105
|
+
return queries$1.useSuspenseObservableQueryWithPaging(ForMe, new queries.Paging(0, pageSize), undefined, sorting);
|
|
106
|
+
}
|
|
107
|
+
static useChangeStream(getKey, sorting) {
|
|
108
|
+
return queries$1.useChangeStream(ForMe, undefined, getKey, sorting);
|
|
109
|
+
}
|
|
110
|
+
static when(condition) {
|
|
111
|
+
return new queries$1.ObservableQueryWhen(ForMe, condition);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* What the signed-in person has not been told about yet: the releases newer than the newest they have seen.
|
|
116
|
+
*/ class ReleaseNotesStatus {
|
|
117
|
+
/**
|
|
118
|
+
* The version the application is running; empty when it is not known.
|
|
119
|
+
*/ current;
|
|
120
|
+
/**
|
|
121
|
+
* The newest release the person has seen the notes of; empty when they have seen none.
|
|
122
|
+
*/ lastSeen;
|
|
123
|
+
/**
|
|
124
|
+
* How many releases they have not seen the notes of.
|
|
125
|
+
*/ unread;
|
|
126
|
+
/**
|
|
127
|
+
* The versions of those releases, the newest first.
|
|
128
|
+
*/ unreadVersions;
|
|
129
|
+
}
|
|
130
|
+
_ts_decorate([
|
|
131
|
+
fundamentals.field(String),
|
|
132
|
+
_ts_metadata("design:type", String)
|
|
133
|
+
], ReleaseNotesStatus.prototype, "current", void 0);
|
|
134
|
+
_ts_decorate([
|
|
135
|
+
fundamentals.field(String),
|
|
136
|
+
_ts_metadata("design:type", String)
|
|
137
|
+
], ReleaseNotesStatus.prototype, "lastSeen", void 0);
|
|
138
|
+
_ts_decorate([
|
|
139
|
+
fundamentals.field(Number),
|
|
140
|
+
_ts_metadata("design:type", Number)
|
|
141
|
+
], ReleaseNotesStatus.prototype, "unread", void 0);
|
|
142
|
+
_ts_decorate([
|
|
143
|
+
fundamentals.field(String, true),
|
|
144
|
+
_ts_metadata("design:type", Array)
|
|
145
|
+
], ReleaseNotesStatus.prototype, "unreadVersions", void 0);
|
|
146
|
+
|
|
147
|
+
exports.ForMe = ForMe;
|
|
148
|
+
exports.ReleaseNotesStatus = ReleaseNotesStatus;
|
|
149
|
+
//# sourceMappingURL=ReleaseNotesStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReleaseNotesStatus.js","sources":["../../../Seeing/ReleaseNotesStatus.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.Playbill.Seeing.ReleaseNotesStatus, Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus. Time: 2026-11-22T08:59:15.9245570Z. Hash: CD68A92BA74CD2D3DE09F438520884D673E382D010D8AA3741D3B7B7EDA8DACE\nimport { ChangeSet, ObservableQueryFor, Paging, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';\nimport { ObservableQueryWhen, SetPage, SetPageSize, SetSorting, useChangeStream, useObservableQuery, useObservableQueryWithPaging, useSuspenseObservableQuery, useSuspenseObservableQueryWithPaging } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { field } from '@cratis/fundamentals';\n\nclass ForMeSortBy {\n private _current: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n private _lastSeen: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n private _unread: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n private _unreadVersions: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n\n constructor(readonly query: ForMe) {\n this._current = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('current', query);\n this._lastSeen = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('lastSeen', query);\n this._unread = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('unread', query);\n this._unreadVersions = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('unreadVersions', query);\n }\n\n get current(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._current;\n }\n get lastSeen(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._lastSeen;\n }\n get unread(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._unread;\n }\n get unreadVersions(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._unreadVersions;\n }\n}\n\nclass ForMeSortByWithoutQuery {\n private _current: SortingActions = new SortingActions('current');\n private _lastSeen: SortingActions = new SortingActions('lastSeen');\n private _unread: SortingActions = new SortingActions('unread');\n private _unreadVersions: SortingActions = new SortingActions('unreadVersions');\n\n get current(): SortingActions {\n return this._current;\n }\n get lastSeen(): SortingActions {\n return this._lastSeen;\n }\n get unread(): SortingActions {\n return this._unread;\n }\n get unreadVersions(): SortingActions {\n return this._unreadVersions;\n }\n}\n\n\n/**\n * Observes the signed-in person's status. It emits exactly one status, and a new one whenever they mark release notes as seen, so an unread badge clears on every device the person has open.\n */\nexport class ForMe extends ObservableQueryFor<ReleaseNotesStatus[]> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seeing');\n readonly route: string = '/api/seeing/for-me';\n readonly queryName: string = 'Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus.ForMe';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: ReleaseNotesStatus[] = [];\n private readonly _sortBy: ForMeSortBy;\n private static readonly _sortBy: ForMeSortByWithoutQuery = /*#__PURE__*/ new ForMeSortByWithoutQuery();\n\n constructor() {\n super(ReleaseNotesStatus, true);\n this._sortBy = new ForMeSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): ForMeSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): ForMeSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting] {\n return useObservableQuery<ReleaseNotesStatus[], ForMe>(ForMe, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize] {\n return useObservableQueryWithPaging<ReleaseNotesStatus[], ForMe>(ForMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting] {\n return useSuspenseObservableQuery<ReleaseNotesStatus[], ForMe>(ForMe, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize] {\n return useSuspenseObservableQueryWithPaging<ReleaseNotesStatus[], ForMe>(ForMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useChangeStream(getKey?: (item: ReleaseNotesStatus) => unknown, sorting?: Sorting): ChangeSet<ReleaseNotesStatus> {\n return useChangeStream<ReleaseNotesStatus, ForMe>(ForMe, undefined, getKey, sorting);\n }\n\n static when(condition: boolean): ObservableQueryWhen<ForMe, ReleaseNotesStatus[]> {\n return new ObservableQueryWhen<ForMe, ReleaseNotesStatus[]>(ForMe, condition);\n }\n}\n\n/**\n * What the signed-in person has not been told about yet: the releases newer than the newest they have seen.\n */\nexport class ReleaseNotesStatus {\n\n /**\n * The version the application is running; empty when it is not known.\n */\n @field(String)\n current!: string;\n\n /**\n * The newest release the person has seen the notes of; empty when they have seen none.\n */\n @field(String)\n lastSeen!: string;\n\n /**\n * How many releases they have not seen the notes of.\n */\n @field(Number)\n unread!: number;\n\n /**\n * The versions of those releases, the newest first.\n */\n @field(String, true)\n unreadVersions!: string[];\n}\n"],"names":["ForMeSortBy","_current","_lastSeen","_unread","_unreadVersions","query","SortingActionsForObservableQuery","current","lastSeen","unread","unreadVersions","ForMeSortByWithoutQuery","SortingActions","ForMe","ObservableQueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","ReleaseNotesStatus","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useObservableQuery","undefined","useWithPaging","pageSize","useObservableQueryWithPaging","Paging","useSuspense","useSuspenseObservableQuery","useSuspenseWithPaging","useSuspenseObservableQueryWithPaging","useChangeStream","getKey","when","condition","ObservableQueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,WAAAA,CAAAA;;IACMC,QAAAA;IACAC,SAAAA;IACAC,OAAAA;IACAC,eAAAA;IAER,WAAA,CAAqBC,KAAY,CAAE;aAAdA,KAAAA,GAAAA,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OAAiB,EAAkF;AAC9I,QAAA,OAAOU,+CAAkEzB,KAAAA,EAAO,IAAIqB,cAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AACxH,IAAA;AAEA,IAAA,OAAOW,eAAAA,CAAgBC,MAA8C,EAAEZ,OAAiB,EAAiC;QACrH,OAAOW,yBAAAA,CAA2C1B,KAAAA,EAAOiB,SAAAA,EAAWU,MAAAA,EAAQZ,OAAAA,CAAAA;AAChF,IAAA;IAEA,OAAOa,IAAAA,CAAKC,SAAkB,EAAoD;QAC9E,OAAO,IAAIC,8BAAiD9B,KAAAA,EAAO6B,SAAAA,CAAAA;AACvE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMnB,kBAAAA,CAAAA;AAET;;AAEC,QACD,OACAhB;AAEA;;AAEC,QACD,QACAC;AAEA;;AAEC,QACD,MACAC;AAEA;;AAEC,QACD,cACAC;AACJ;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Seeing/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ReleaseNotesStatus = require('./Seeing/ReleaseNotesStatus.js');
|
|
4
|
+
var MarkReleaseNotesSeen = require('./Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.ForMe = ReleaseNotesStatus.ForMe;
|
|
9
|
+
exports.ReleaseNotesStatus = ReleaseNotesStatus.ReleaseNotesStatus;
|
|
10
|
+
exports.MarkReleaseNotesSeen = MarkReleaseNotesSeen.MarkReleaseNotesSeen;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -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 IMarkReleaseNotesSeen {
|
|
5
|
+
version?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class MarkReleaseNotesSeen extends Command<IMarkReleaseNotesSeen> implements IMarkReleaseNotesSeen {
|
|
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 version(): string;
|
|
17
|
+
set version(value: string);
|
|
18
|
+
static use(initialValues?: IMarkReleaseNotesSeen): [MarkReleaseNotesSeen, SetCommandValues<IMarkReleaseNotesSeen>, ClearCommandValues];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=MarkReleaseNotesSeen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkReleaseNotesSeen.d.ts","sourceRoot":"","sources":["../../../../Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.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,qBAAqB;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,qBAAa,oBAAqB,SAAQ,OAAO,CAAC,qBAAqB,CAAE,YAAW,qBAAqB;;IACrG,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAA4E;IAC3H,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAyC;IAC/D,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAEhD;;IAQF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAGxB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,qBAAqB,GAAG,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC;CAGzI"}
|
|
@@ -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.Playbill.Seeing.MarkReleaseNotesSeen.MarkReleaseNotesSeen. Time: 2026-11-22T08:57:16.8600030Z. Hash: 3D10E8BE038C372CC2FFF7678DB8DE731E23CA34E0D9EA746C4A2E952DFF33E5
|
|
9
|
+
/**
|
|
10
|
+
* Records that the signed-in person has seen the release notes up to a version, so they are not told about those releases again on any device.
|
|
11
|
+
*/ class MarkReleaseNotesSeen extends Command {
|
|
12
|
+
static sliceLocation = /*#__PURE__*/ new SliceLocation('', 'Seeing', 'MarkReleaseNotesSeen');
|
|
13
|
+
route = '/api/seeing/mark-release-notes-seen';
|
|
14
|
+
treatWarningsAsErrors = false;
|
|
15
|
+
roles = [];
|
|
16
|
+
propertyDescriptors = [
|
|
17
|
+
new PropertyDescriptor('version', String, false)
|
|
18
|
+
];
|
|
19
|
+
#version;
|
|
20
|
+
constructor(){
|
|
21
|
+
super(Object, false);
|
|
22
|
+
}
|
|
23
|
+
get requestParameters() {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The newest release the person has seen the notes of.
|
|
28
|
+
*/ get version() {
|
|
29
|
+
return this.#version;
|
|
30
|
+
}
|
|
31
|
+
set version(value) {
|
|
32
|
+
this.#version = value;
|
|
33
|
+
this.propertyChanged('version');
|
|
34
|
+
}
|
|
35
|
+
static use(initialValues) {
|
|
36
|
+
return useCommand(MarkReleaseNotesSeen, initialValues);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { MarkReleaseNotesSeen };
|
|
41
|
+
//# sourceMappingURL=MarkReleaseNotesSeen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkReleaseNotesSeen.js","sources":["../../../../Seeing/MarkReleaseNotesSeen/MarkReleaseNotesSeen.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.Playbill.Seeing.MarkReleaseNotesSeen.MarkReleaseNotesSeen. Time: 2026-11-22T08:57:16.8600030Z. Hash: 3D10E8BE038C372CC2FFF7678DB8DE731E23CA34E0D9EA746C4A2E952DFF33E5\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 has seen the release notes up to a version, so they are not told about those releases again on any device.\n */\nexport interface IMarkReleaseNotesSeen {\n\n /**\n * The newest release the person has seen the notes of.\n */\n version?: string;\n}\n\n\n/**\n * Records that the signed-in person has seen the release notes up to a version, so they are not told about those releases again on any device.\n */\nexport class MarkReleaseNotesSeen extends Command<IMarkReleaseNotesSeen> implements IMarkReleaseNotesSeen {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seeing', 'MarkReleaseNotesSeen');\n readonly route: string = '/api/seeing/mark-release-notes-seen';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('version', String, false),\n ];\n\n #version!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The newest release the person has seen the notes of.\n */\n get version(): string {\n return this.#version;\n }\n\n set version(value: string) {\n this.#version = value;\n this.propertyChanged('version');\n }\n\n static use(initialValues?: IMarkReleaseNotesSeen): [MarkReleaseNotesSeen, SetCommandValues<IMarkReleaseNotesSeen>, ClearCommandValues] {\n return useCommand<MarkReleaseNotesSeen, IMarkReleaseNotesSeen>(MarkReleaseNotesSeen, initialValues);\n }\n}\n"],"names":["MarkReleaseNotesSeen","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","String","Object","requestParameters","version","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;AAAA;AACA;AAEA;AACA;AAiBA;;IAGO,MAAMA,oBAAAA,SAA6BC,OAAAA,CAAAA;AACtC,IAAA,OAAgBC,8BAAgD,IAAIC,aAAAA,CAAiB,EAAA,EAAI,UAAU,sBAAA,CAAA;AAC1FC,IAAAA,KAAAA,GAAgB,qCAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,kBAAAA,CAAmB,WAAWC,MAAAA,EAAQ,KAAA;KAC7C;AAED,IAAA,QAAQ;IAER,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,KAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IAAA;AAEA;;AAEC,QACD,IAAIC,OAAAA,GAAkB;QAClB,OAAO,IAAI,CAAC,QAAQ;AACxB,IAAA;IAEA,IAAIA,OAAAA,CAAQC,KAAa,EAAE;QACvB,IAAI,CAAC,QAAQ,GAAGA,KAAAA;QAChB,IAAI,CAACC,eAAe,CAAC,SAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAAqC,EAAuF;AACnI,QAAA,OAAOC,WAAwDjB,oBAAAA,EAAsBgB,aAAAA,CAAAA;AACzF,IAAA;AACJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Seeing/MarkReleaseNotesSeen/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Seeing/MarkReleaseNotesSeen/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ChangeSet, ObservableQueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
|
|
2
|
+
import { ObservableQueryWhen, SetPage, SetPageSize, SetSorting } from '@cratis/arc.react/queries';
|
|
3
|
+
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
declare class ForMeSortBy {
|
|
5
|
+
readonly query: ForMe;
|
|
6
|
+
private _current;
|
|
7
|
+
private _lastSeen;
|
|
8
|
+
private _unread;
|
|
9
|
+
private _unreadVersions;
|
|
10
|
+
constructor(query: ForMe);
|
|
11
|
+
get current(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
12
|
+
get lastSeen(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
13
|
+
get unread(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
14
|
+
get unreadVersions(): SortingActionsForObservableQuery<ReleaseNotesStatus[]>;
|
|
15
|
+
}
|
|
16
|
+
declare class ForMeSortByWithoutQuery {
|
|
17
|
+
private _current;
|
|
18
|
+
private _lastSeen;
|
|
19
|
+
private _unread;
|
|
20
|
+
private _unreadVersions;
|
|
21
|
+
get current(): SortingActions;
|
|
22
|
+
get lastSeen(): SortingActions;
|
|
23
|
+
get unread(): SortingActions;
|
|
24
|
+
get unreadVersions(): SortingActions;
|
|
25
|
+
}
|
|
26
|
+
export declare class ForMe extends ObservableQueryFor<ReleaseNotesStatus[]> {
|
|
27
|
+
static readonly sliceLocation: ArcSliceLocation;
|
|
28
|
+
readonly route: string;
|
|
29
|
+
readonly queryName: string;
|
|
30
|
+
readonly treatWarningsAsErrors: boolean;
|
|
31
|
+
readonly roles: string[];
|
|
32
|
+
readonly defaultValue: ReleaseNotesStatus[];
|
|
33
|
+
private readonly _sortBy;
|
|
34
|
+
private static readonly _sortBy;
|
|
35
|
+
constructor();
|
|
36
|
+
get requiredRequestParameters(): string[];
|
|
37
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
38
|
+
get sortBy(): ForMeSortBy;
|
|
39
|
+
static get sortBy(): ForMeSortByWithoutQuery;
|
|
40
|
+
static use(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting];
|
|
41
|
+
static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize];
|
|
42
|
+
static useSuspense(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting];
|
|
43
|
+
static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize];
|
|
44
|
+
static useChangeStream(getKey?: (item: ReleaseNotesStatus) => unknown, sorting?: Sorting): ChangeSet<ReleaseNotesStatus>;
|
|
45
|
+
static when(condition: boolean): ObservableQueryWhen<ForMe, ReleaseNotesStatus[]>;
|
|
46
|
+
}
|
|
47
|
+
export declare class ReleaseNotesStatus {
|
|
48
|
+
current: string;
|
|
49
|
+
lastSeen: string;
|
|
50
|
+
unread: number;
|
|
51
|
+
unreadVersions: string[];
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=ReleaseNotesStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReleaseNotesStatus.d.ts","sourceRoot":"","sources":["../../../Seeing/ReleaseNotesStatus.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAU,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAC7J,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAuI,MAAM,2BAA2B,CAAC;AACvO,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGhG,cAAM,WAAW;IAMD,QAAQ,CAAC,KAAK,EAAE,KAAK;IALjC,OAAO,CAAC,QAAQ,CAAyD;IACzE,OAAO,CAAC,SAAS,CAAyD;IAC1E,OAAO,CAAC,OAAO,CAAyD;IACxE,OAAO,CAAC,eAAe,CAAyD;gBAE3D,KAAK,EAAE,KAAK;IAOjC,IAAI,OAAO,IAAI,gCAAgC,CA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,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,CAAC,EAAE,UAAU,CAAC;IAIvF,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIzI,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,CAAC,EAAE,UAAU,CAAC;IAI/F,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIjJ,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC,kBAAkB,CAAC;IAIxH,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,mBAAmB,CAAC,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAGpF;AAKD,qBAAa,kBAAkB;IAM3B,OAAO,EAAG,MAAM,CAAC;IAMjB,QAAQ,EAAG,MAAM,CAAC;IAMlB,MAAM,EAAG,MAAM,CAAC;IAMhB,cAAc,EAAG,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ObservableQueryFor, Paging, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
|
|
2
|
+
import { useObservableQuery, useObservableQueryWithPaging, useSuspenseObservableQuery, useSuspenseObservableQueryWithPaging, useChangeStream, ObservableQueryWhen } 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 ForMeSortBy {
|
|
25
|
+
query;
|
|
26
|
+
_current;
|
|
27
|
+
_lastSeen;
|
|
28
|
+
_unread;
|
|
29
|
+
_unreadVersions;
|
|
30
|
+
constructor(query){
|
|
31
|
+
this.query = query;
|
|
32
|
+
this._current = new SortingActionsForObservableQuery('current', query);
|
|
33
|
+
this._lastSeen = new SortingActionsForObservableQuery('lastSeen', query);
|
|
34
|
+
this._unread = new SortingActionsForObservableQuery('unread', query);
|
|
35
|
+
this._unreadVersions = new SortingActionsForObservableQuery('unreadVersions', query);
|
|
36
|
+
}
|
|
37
|
+
get current() {
|
|
38
|
+
return this._current;
|
|
39
|
+
}
|
|
40
|
+
get lastSeen() {
|
|
41
|
+
return this._lastSeen;
|
|
42
|
+
}
|
|
43
|
+
get unread() {
|
|
44
|
+
return this._unread;
|
|
45
|
+
}
|
|
46
|
+
get unreadVersions() {
|
|
47
|
+
return this._unreadVersions;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class ForMeSortByWithoutQuery {
|
|
51
|
+
_current = new SortingActions('current');
|
|
52
|
+
_lastSeen = new SortingActions('lastSeen');
|
|
53
|
+
_unread = new SortingActions('unread');
|
|
54
|
+
_unreadVersions = new SortingActions('unreadVersions');
|
|
55
|
+
get current() {
|
|
56
|
+
return this._current;
|
|
57
|
+
}
|
|
58
|
+
get lastSeen() {
|
|
59
|
+
return this._lastSeen;
|
|
60
|
+
}
|
|
61
|
+
get unread() {
|
|
62
|
+
return this._unread;
|
|
63
|
+
}
|
|
64
|
+
get unreadVersions() {
|
|
65
|
+
return this._unreadVersions;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Observes the signed-in person's status. It emits exactly one status, and a new one whenever they mark release notes as seen, so an unread badge clears on every device the person has open.
|
|
70
|
+
*/ class ForMe extends ObservableQueryFor {
|
|
71
|
+
static sliceLocation = /*#__PURE__*/ new SliceLocation('', '', 'Seeing');
|
|
72
|
+
route = '/api/seeing/for-me';
|
|
73
|
+
queryName = 'Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus.ForMe';
|
|
74
|
+
treatWarningsAsErrors = false;
|
|
75
|
+
roles = [];
|
|
76
|
+
defaultValue = [];
|
|
77
|
+
_sortBy;
|
|
78
|
+
static _sortBy = /*#__PURE__*/ new ForMeSortByWithoutQuery();
|
|
79
|
+
constructor(){
|
|
80
|
+
super(ReleaseNotesStatus, true);
|
|
81
|
+
this._sortBy = new ForMeSortBy(this);
|
|
82
|
+
}
|
|
83
|
+
get requiredRequestParameters() {
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
parameterDescriptors = [];
|
|
87
|
+
get sortBy() {
|
|
88
|
+
return this._sortBy;
|
|
89
|
+
}
|
|
90
|
+
static get sortBy() {
|
|
91
|
+
return this._sortBy;
|
|
92
|
+
}
|
|
93
|
+
static use(sorting) {
|
|
94
|
+
return useObservableQuery(ForMe, undefined, sorting);
|
|
95
|
+
}
|
|
96
|
+
static useWithPaging(pageSize, sorting) {
|
|
97
|
+
return useObservableQueryWithPaging(ForMe, new Paging(0, pageSize), undefined, sorting);
|
|
98
|
+
}
|
|
99
|
+
static useSuspense(sorting) {
|
|
100
|
+
return useSuspenseObservableQuery(ForMe, undefined, sorting);
|
|
101
|
+
}
|
|
102
|
+
static useSuspenseWithPaging(pageSize, sorting) {
|
|
103
|
+
return useSuspenseObservableQueryWithPaging(ForMe, new Paging(0, pageSize), undefined, sorting);
|
|
104
|
+
}
|
|
105
|
+
static useChangeStream(getKey, sorting) {
|
|
106
|
+
return useChangeStream(ForMe, undefined, getKey, sorting);
|
|
107
|
+
}
|
|
108
|
+
static when(condition) {
|
|
109
|
+
return new ObservableQueryWhen(ForMe, condition);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* What the signed-in person has not been told about yet: the releases newer than the newest they have seen.
|
|
114
|
+
*/ class ReleaseNotesStatus {
|
|
115
|
+
/**
|
|
116
|
+
* The version the application is running; empty when it is not known.
|
|
117
|
+
*/ current;
|
|
118
|
+
/**
|
|
119
|
+
* The newest release the person has seen the notes of; empty when they have seen none.
|
|
120
|
+
*/ lastSeen;
|
|
121
|
+
/**
|
|
122
|
+
* How many releases they have not seen the notes of.
|
|
123
|
+
*/ unread;
|
|
124
|
+
/**
|
|
125
|
+
* The versions of those releases, the newest first.
|
|
126
|
+
*/ unreadVersions;
|
|
127
|
+
}
|
|
128
|
+
_ts_decorate([
|
|
129
|
+
field(String),
|
|
130
|
+
_ts_metadata("design:type", String)
|
|
131
|
+
], ReleaseNotesStatus.prototype, "current", void 0);
|
|
132
|
+
_ts_decorate([
|
|
133
|
+
field(String),
|
|
134
|
+
_ts_metadata("design:type", String)
|
|
135
|
+
], ReleaseNotesStatus.prototype, "lastSeen", void 0);
|
|
136
|
+
_ts_decorate([
|
|
137
|
+
field(Number),
|
|
138
|
+
_ts_metadata("design:type", Number)
|
|
139
|
+
], ReleaseNotesStatus.prototype, "unread", void 0);
|
|
140
|
+
_ts_decorate([
|
|
141
|
+
field(String, true),
|
|
142
|
+
_ts_metadata("design:type", Array)
|
|
143
|
+
], ReleaseNotesStatus.prototype, "unreadVersions", void 0);
|
|
144
|
+
|
|
145
|
+
export { ForMe, ReleaseNotesStatus };
|
|
146
|
+
//# sourceMappingURL=ReleaseNotesStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReleaseNotesStatus.js","sources":["../../../Seeing/ReleaseNotesStatus.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.Playbill.Seeing.ReleaseNotesStatus, Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus. Time: 2026-11-22T08:59:15.9245570Z. Hash: CD68A92BA74CD2D3DE09F438520884D673E382D010D8AA3741D3B7B7EDA8DACE\nimport { ChangeSet, ObservableQueryFor, Paging, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';\nimport { ObservableQueryWhen, SetPage, SetPageSize, SetSorting, useChangeStream, useObservableQuery, useObservableQueryWithPaging, useSuspenseObservableQuery, useSuspenseObservableQueryWithPaging } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { field } from '@cratis/fundamentals';\n\nclass ForMeSortBy {\n private _current: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n private _lastSeen: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n private _unread: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n private _unreadVersions: SortingActionsForObservableQuery<ReleaseNotesStatus[]>;\n\n constructor(readonly query: ForMe) {\n this._current = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('current', query);\n this._lastSeen = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('lastSeen', query);\n this._unread = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('unread', query);\n this._unreadVersions = new SortingActionsForObservableQuery<ReleaseNotesStatus[]>('unreadVersions', query);\n }\n\n get current(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._current;\n }\n get lastSeen(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._lastSeen;\n }\n get unread(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._unread;\n }\n get unreadVersions(): SortingActionsForObservableQuery<ReleaseNotesStatus[]> {\n return this._unreadVersions;\n }\n}\n\nclass ForMeSortByWithoutQuery {\n private _current: SortingActions = new SortingActions('current');\n private _lastSeen: SortingActions = new SortingActions('lastSeen');\n private _unread: SortingActions = new SortingActions('unread');\n private _unreadVersions: SortingActions = new SortingActions('unreadVersions');\n\n get current(): SortingActions {\n return this._current;\n }\n get lastSeen(): SortingActions {\n return this._lastSeen;\n }\n get unread(): SortingActions {\n return this._unread;\n }\n get unreadVersions(): SortingActions {\n return this._unreadVersions;\n }\n}\n\n\n/**\n * Observes the signed-in person's status. It emits exactly one status, and a new one whenever they mark release notes as seen, so an unread badge clears on every device the person has open.\n */\nexport class ForMe extends ObservableQueryFor<ReleaseNotesStatus[]> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seeing');\n readonly route: string = '/api/seeing/for-me';\n readonly queryName: string = 'Cratis.Showrunner.Playbill.Seeing.ReleaseNotesStatus.ForMe';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: ReleaseNotesStatus[] = [];\n private readonly _sortBy: ForMeSortBy;\n private static readonly _sortBy: ForMeSortByWithoutQuery = /*#__PURE__*/ new ForMeSortByWithoutQuery();\n\n constructor() {\n super(ReleaseNotesStatus, true);\n this._sortBy = new ForMeSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): ForMeSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): ForMeSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting] {\n return useObservableQuery<ReleaseNotesStatus[], ForMe>(ForMe, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize] {\n return useObservableQueryWithPaging<ReleaseNotesStatus[], ForMe>(ForMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting] {\n return useSuspenseObservableQuery<ReleaseNotesStatus[], ForMe>(ForMe, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<ReleaseNotesStatus[]>, SetSorting, SetPage, SetPageSize] {\n return useSuspenseObservableQueryWithPaging<ReleaseNotesStatus[], ForMe>(ForMe, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useChangeStream(getKey?: (item: ReleaseNotesStatus) => unknown, sorting?: Sorting): ChangeSet<ReleaseNotesStatus> {\n return useChangeStream<ReleaseNotesStatus, ForMe>(ForMe, undefined, getKey, sorting);\n }\n\n static when(condition: boolean): ObservableQueryWhen<ForMe, ReleaseNotesStatus[]> {\n return new ObservableQueryWhen<ForMe, ReleaseNotesStatus[]>(ForMe, condition);\n }\n}\n\n/**\n * What the signed-in person has not been told about yet: the releases newer than the newest they have seen.\n */\nexport class ReleaseNotesStatus {\n\n /**\n * The version the application is running; empty when it is not known.\n */\n @field(String)\n current!: string;\n\n /**\n * The newest release the person has seen the notes of; empty when they have seen none.\n */\n @field(String)\n lastSeen!: string;\n\n /**\n * How many releases they have not seen the notes of.\n */\n @field(Number)\n unread!: number;\n\n /**\n * The versions of those releases, the newest first.\n */\n @field(String, true)\n unreadVersions!: string[];\n}\n"],"names":["ForMeSortBy","_current","_lastSeen","_unread","_unreadVersions","query","SortingActionsForObservableQuery","current","lastSeen","unread","unreadVersions","ForMeSortByWithoutQuery","SortingActions","ForMe","ObservableQueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","ReleaseNotesStatus","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useObservableQuery","undefined","useWithPaging","pageSize","useObservableQueryWithPaging","Paging","useSuspense","useSuspenseObservableQuery","useSuspenseWithPaging","useSuspenseObservableQueryWithPaging","useChangeStream","getKey","when","condition","ObservableQueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAMA,WAAAA,CAAAA;;IACMC,QAAAA;IACAC,SAAAA;IACAC,OAAAA;IACAC,eAAAA;IAER,WAAA,CAAqBC,KAAY,CAAE;aAAdA,KAAAA,GAAAA,KAAAA;AACjB,QAAA,IAAI,CAACJ,QAAQ,GAAG,IAAIK,iCAAuD,SAAA,EAAWD,KAAAA,CAAAA;AACtF,QAAA,IAAI,CAACH,SAAS,GAAG,IAAII,iCAAuD,UAAA,EAAYD,KAAAA,CAAAA;AACxF,QAAA,IAAI,CAACF,OAAO,GAAG,IAAIG,iCAAuD,QAAA,EAAUD,KAAAA,CAAAA;AACpF,QAAA,IAAI,CAACD,eAAe,GAAG,IAAIE,iCAAuD,gBAAA,EAAkBD,KAAAA,CAAAA;AACxG,IAAA;AAEA,IAAA,IAAIE,OAAAA,GAAkE;QAClE,OAAO,IAAI,CAACN,QAAQ;AACxB,IAAA;AACA,IAAA,IAAIO,QAAAA,GAAmE;QACnE,OAAO,IAAI,CAACN,SAAS;AACzB,IAAA;AACA,IAAA,IAAIO,MAAAA,GAAiE;QACjE,OAAO,IAAI,CAACN,OAAO;AACvB,IAAA;AACA,IAAA,IAAIO,cAAAA,GAAyE;QACzE,OAAO,IAAI,CAACN,eAAe;AAC/B,IAAA;AACJ;AAEA,MAAMO,uBAAAA,CAAAA;IACMV,QAAAA,GAA4B,IAAIW,eAAe,SAAA,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AAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Seeing/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/index.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,72 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@cratis/showrunner.playbill",
|
|
4
|
+
"version": "2.19.0",
|
|
5
|
+
"description": "Generated TypeScript proxies for Playbill — the Showrunner release-notes part: record which releases a person has seen the notes of and observe what they have not been told about yet, built on Cratis Arc.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"cratis",
|
|
8
|
+
"showrunner",
|
|
9
|
+
"playbill",
|
|
10
|
+
"release-notes",
|
|
11
|
+
"changelog",
|
|
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 || ^23.0.0",
|
|
69
|
+
"@cratis/arc.react": "^22.185.1 || ^23.0.0",
|
|
70
|
+
"@cratis/fundamentals": "^7.34.0"
|
|
71
|
+
}
|
|
6
72
|
}
|