@cratis/showrunner.boxoffice 1.21.1 → 1.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Compute/ComputeLimits.ts +2 -2
- package/Compute/MeterStanding.ts +3 -3
- package/Compute/SetBudget/SetComputeBudget.ts +2 -2
- package/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.ts +2 -2
- package/Entitlements/EntitlementSummary.ts +2 -2
- package/Entitlements/TenantStanding.ts +2 -2
- package/Offers/Offer.ts +3 -3
- package/Portal/PortalLink.ts +2 -2
- package/README.md +2 -2
- package/Seats/AssignSeat/AssignSeat.ts +2 -2
- package/Seats/ReleaseSeat/ReleaseSeat.ts +2 -2
- package/Seats/SeatRoster.ts +2 -2
- package/Seats/SeatStanding.ts +2 -2
- package/dist/cjs/Compute/ComputeLimits.d.ts.map +1 -1
- package/dist/cjs/Compute/ComputeLimits.js +1 -1
- package/dist/cjs/Compute/ComputeLimits.js.map +1 -1
- package/dist/cjs/Compute/MeterStanding.d.ts.map +1 -1
- package/dist/cjs/Compute/MeterStanding.js +2 -2
- package/dist/cjs/Compute/MeterStanding.js.map +1 -1
- package/dist/cjs/Compute/SetBudget/SetComputeBudget.d.ts.map +1 -1
- package/dist/cjs/Compute/SetBudget/SetComputeBudget.js +2 -2
- package/dist/cjs/Compute/SetBudget/SetComputeBudget.js.map +1 -1
- package/dist/cjs/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.d.ts.map +1 -1
- package/dist/cjs/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js +2 -2
- package/dist/cjs/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js.map +1 -1
- package/dist/cjs/Entitlements/EntitlementSummary.d.ts.map +1 -1
- package/dist/cjs/Entitlements/EntitlementSummary.js +1 -1
- package/dist/cjs/Entitlements/EntitlementSummary.js.map +1 -1
- package/dist/cjs/Entitlements/TenantStanding.d.ts.map +1 -1
- package/dist/cjs/Entitlements/TenantStanding.js +1 -1
- package/dist/cjs/Entitlements/TenantStanding.js.map +1 -1
- package/dist/cjs/Offers/Offer.d.ts.map +1 -1
- package/dist/cjs/Offers/Offer.js +2 -2
- package/dist/cjs/Offers/Offer.js.map +1 -1
- package/dist/cjs/Portal/PortalLink.d.ts.map +1 -1
- package/dist/cjs/Portal/PortalLink.js +1 -1
- package/dist/cjs/Portal/PortalLink.js.map +1 -1
- package/dist/cjs/Seats/AssignSeat/AssignSeat.d.ts.map +1 -1
- package/dist/cjs/Seats/AssignSeat/AssignSeat.js +2 -2
- package/dist/cjs/Seats/AssignSeat/AssignSeat.js.map +1 -1
- package/dist/cjs/Seats/ReleaseSeat/ReleaseSeat.d.ts.map +1 -1
- package/dist/cjs/Seats/ReleaseSeat/ReleaseSeat.js +2 -2
- package/dist/cjs/Seats/ReleaseSeat/ReleaseSeat.js.map +1 -1
- package/dist/cjs/Seats/SeatRoster.d.ts.map +1 -1
- package/dist/cjs/Seats/SeatRoster.js +1 -1
- package/dist/cjs/Seats/SeatRoster.js.map +1 -1
- package/dist/cjs/Seats/SeatStanding.d.ts.map +1 -1
- package/dist/cjs/Seats/SeatStanding.js +1 -1
- package/dist/cjs/Seats/SeatStanding.js.map +1 -1
- package/dist/esm/Compute/ComputeLimits.d.ts.map +1 -1
- package/dist/esm/Compute/ComputeLimits.js +1 -1
- package/dist/esm/Compute/ComputeLimits.js.map +1 -1
- package/dist/esm/Compute/MeterStanding.d.ts.map +1 -1
- package/dist/esm/Compute/MeterStanding.js +2 -2
- package/dist/esm/Compute/MeterStanding.js.map +1 -1
- package/dist/esm/Compute/SetBudget/SetComputeBudget.d.ts.map +1 -1
- package/dist/esm/Compute/SetBudget/SetComputeBudget.js +2 -2
- package/dist/esm/Compute/SetBudget/SetComputeBudget.js.map +1 -1
- package/dist/esm/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.d.ts.map +1 -1
- package/dist/esm/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js +2 -2
- package/dist/esm/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js.map +1 -1
- package/dist/esm/Entitlements/EntitlementSummary.d.ts.map +1 -1
- package/dist/esm/Entitlements/EntitlementSummary.js +1 -1
- package/dist/esm/Entitlements/EntitlementSummary.js.map +1 -1
- package/dist/esm/Entitlements/TenantStanding.d.ts.map +1 -1
- package/dist/esm/Entitlements/TenantStanding.js +1 -1
- package/dist/esm/Entitlements/TenantStanding.js.map +1 -1
- package/dist/esm/Offers/Offer.d.ts.map +1 -1
- package/dist/esm/Offers/Offer.js +2 -2
- package/dist/esm/Offers/Offer.js.map +1 -1
- package/dist/esm/Portal/PortalLink.d.ts.map +1 -1
- package/dist/esm/Portal/PortalLink.js +2 -2
- package/dist/esm/Portal/PortalLink.js.map +1 -1
- package/dist/esm/Seats/AssignSeat/AssignSeat.d.ts.map +1 -1
- package/dist/esm/Seats/AssignSeat/AssignSeat.js +2 -2
- package/dist/esm/Seats/AssignSeat/AssignSeat.js.map +1 -1
- package/dist/esm/Seats/ReleaseSeat/ReleaseSeat.d.ts.map +1 -1
- package/dist/esm/Seats/ReleaseSeat/ReleaseSeat.js +2 -2
- package/dist/esm/Seats/ReleaseSeat/ReleaseSeat.js.map +1 -1
- package/dist/esm/Seats/SeatRoster.d.ts.map +1 -1
- package/dist/esm/Seats/SeatRoster.js +1 -1
- package/dist/esm/Seats/SeatRoster.js.map +1 -1
- package/dist/esm/Seats/SeatStanding.d.ts.map +1 -1
- package/dist/esm/Seats/SeatStanding.js +1 -1
- package/dist/esm/Seats/SeatStanding.js.map +1 -1
- package/package.json +7 -7
package/Compute/ComputeLimits.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.ComputeLimits, Cratis.Showrunner.BoxOffice.Compute.ComputeLimits. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.ComputeLimits, Cratis.Showrunner.BoxOffice.Compute.ComputeLimits. Time: 2026-11-11T04:34:24.5807960Z. Hash: 645D643B991F808706C1F4D93E4D44F19577A6602C9C32685B638861A6274D43
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -13,7 +13,7 @@ import { MeterLimit } from './MeterLimit';
|
|
|
13
13
|
* Gets the budgets and concurrency limits of the tenant, for the product's maintainers.
|
|
14
14
|
*/
|
|
15
15
|
export class CurrentLimits extends QueryFor<ComputeLimits> {
|
|
16
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Compute');
|
|
16
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Compute');
|
|
17
17
|
readonly route: string = '/api/compute/current-limits';
|
|
18
18
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Compute.ComputeLimits.CurrentLimits';
|
|
19
19
|
readonly treatWarningsAsErrors: boolean = false;
|
package/Compute/MeterStanding.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.MeterStanding, Cratis.Showrunner.BoxOffice.Compute.MeterStanding. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.MeterStanding, Cratis.Showrunner.BoxOffice.Compute.MeterStanding. Time: 2026-11-11T04:34:24.5807960Z. Hash: F6A424ABEE2F98FA5980791CB68CAC7CDE3A744973BED7FED03990F61E5B8BD2
|
|
6
6
|
import { Paging, QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting, useQuery, useQueryWithPaging, useSuspenseQuery, useSuspenseQueryWithPaging } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -125,14 +125,14 @@ class CurrentUsageSortByWithoutQuery {
|
|
|
125
125
|
* Gets the standing of every meter the product declared, in the order of their names.
|
|
126
126
|
*/
|
|
127
127
|
export class CurrentUsage extends QueryFor<MeterStanding[]> {
|
|
128
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Compute');
|
|
128
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Compute');
|
|
129
129
|
readonly route: string = '/api/compute/current-usage';
|
|
130
130
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Compute.MeterStanding.CurrentUsage';
|
|
131
131
|
readonly treatWarningsAsErrors: boolean = false;
|
|
132
132
|
readonly roles: string[] = [];
|
|
133
133
|
readonly defaultValue: MeterStanding[] = [];
|
|
134
134
|
private readonly _sortBy: CurrentUsageSortBy;
|
|
135
|
-
private static readonly _sortBy: CurrentUsageSortByWithoutQuery = new CurrentUsageSortByWithoutQuery();
|
|
135
|
+
private static readonly _sortBy: CurrentUsageSortByWithoutQuery = /*#__PURE__*/ new CurrentUsageSortByWithoutQuery();
|
|
136
136
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super(MeterStanding, true);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-11-11T04:34:24.5807960Z. Hash: DF7A84F0D7E531A8F198403B5ADEAAD78E1BB90FC49FE062E766F9E304CFF410
|
|
6
6
|
import { Command } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -28,7 +28,7 @@ export interface ISetComputeBudget {
|
|
|
28
28
|
* Sets how much of a meter the tenant may use in the allowance's period, below what the operator allows. Work is turned away once the period's usage reaches the budget.
|
|
29
29
|
*/
|
|
30
30
|
export class SetComputeBudget extends Command<ISetComputeBudget, Record<string, unknown>[]> implements ISetComputeBudget {
|
|
31
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Compute', 'SetBudget');
|
|
31
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Compute', 'SetBudget');
|
|
32
32
|
readonly route: string = '/api/compute/set-budget';
|
|
33
33
|
readonly treatWarningsAsErrors: boolean = false;
|
|
34
34
|
readonly roles: string[] = [];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetConcurrencyLimit.SetComputeConcurrencyLimit. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetConcurrencyLimit.SetComputeConcurrencyLimit. Time: 2026-11-11T04:34:24.5807960Z. Hash: 60333C2AE00FBFE29C72A1053620A346035040B2A9FCCEAEC1FCB2E62EC5FAA5
|
|
6
6
|
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -34,7 +34,7 @@ export class SetComputeConcurrencyLimitValidator extends CommandValidator<ISetCo
|
|
|
34
34
|
* Sets how many units of work of a meter the tenant may run at the same time. Only a meter the product declared with a concurrency limit has one; work of the meter is turned away while the tenant runs that many.
|
|
35
35
|
*/
|
|
36
36
|
export class SetComputeConcurrencyLimit extends Command<ISetComputeConcurrencyLimit, Record<string, unknown>[]> implements ISetComputeConcurrencyLimit {
|
|
37
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Compute', 'SetConcurrencyLimit');
|
|
37
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Compute', 'SetConcurrencyLimit');
|
|
38
38
|
readonly route: string = '/api/compute/set-concurrency-limit';
|
|
39
39
|
readonly validation: CommandValidator = new SetComputeConcurrencyLimitValidator();
|
|
40
40
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary, Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary, Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary. Time: 2026-11-11T04:34:24.5807960Z. Hash: A858657CAEF25E3BE3E56FD18D49BA2F782100B8D4AFE2169BB52E69E7053CE8
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -14,7 +14,7 @@ import { ReadOnlyReason } from './ReadOnlyReason';
|
|
|
14
14
|
* Gets what the tenant may do today.
|
|
15
15
|
*/
|
|
16
16
|
export class CurrentEntitlements extends QueryFor<EntitlementSummary> {
|
|
17
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Entitlements');
|
|
17
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Entitlements');
|
|
18
18
|
readonly route: string = '/api/entitlements/current-entitlements';
|
|
19
19
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary.CurrentEntitlements';
|
|
20
20
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding, Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding, Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding. Time: 2026-11-11T04:34:24.5807960Z. Hash: 8AFCA12C398CF86BC6A9F880713AC55DF855D138496E21B39E71FC6BD85B3B05
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -14,7 +14,7 @@ import { SuspensionCause } from '../Contracts/Tenants/SuspensionCause';
|
|
|
14
14
|
* Gets why the tenant can not change anything, so the frontend can show a banner.
|
|
15
15
|
*/
|
|
16
16
|
export class CurrentStanding extends QueryFor<TenantStanding> {
|
|
17
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Entitlements');
|
|
17
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Entitlements');
|
|
18
18
|
readonly route: string = '/api/entitlements/current-standing';
|
|
19
19
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding.CurrentStanding';
|
|
20
20
|
readonly treatWarningsAsErrors: boolean = false;
|
package/Offers/Offer.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Offers.Offer, Cratis.Showrunner.BoxOffice.Offers.Offer. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Offers.Offer, Cratis.Showrunner.BoxOffice.Offers.Offer. Time: 2026-11-11T04:34:24.5807960Z. Hash: 72BC7BB10E01E5A0D8D172D7E0C7460E10E2C980F2887C84F8689B5943F3F374
|
|
6
6
|
import { Paging, QueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForQuery } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetPage, SetPageSize, SetSorting, useQuery, useQueryWithPaging, useSuspenseQuery, useSuspenseQueryWithPaging } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -79,14 +79,14 @@ class OnSaleSortByWithoutQuery {
|
|
|
79
79
|
* Gets the offers on sale.
|
|
80
80
|
*/
|
|
81
81
|
export class OnSale extends QueryFor<Offer[]> {
|
|
82
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Offers');
|
|
82
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Offers');
|
|
83
83
|
readonly route: string = '/api/offers/on-sale';
|
|
84
84
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Offers.Offer.OnSale';
|
|
85
85
|
readonly treatWarningsAsErrors: boolean = false;
|
|
86
86
|
readonly roles: string[] = [];
|
|
87
87
|
readonly defaultValue: Offer[] = [];
|
|
88
88
|
private readonly _sortBy: OnSaleSortBy;
|
|
89
|
-
private static readonly _sortBy: OnSaleSortByWithoutQuery = new OnSaleSortByWithoutQuery();
|
|
89
|
+
private static readonly _sortBy: OnSaleSortByWithoutQuery = /*#__PURE__*/ new OnSaleSortByWithoutQuery();
|
|
90
90
|
|
|
91
91
|
constructor() {
|
|
92
92
|
super(Offer, true);
|
package/Portal/PortalLink.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Portal.PortalLink, Cratis.Showrunner.BoxOffice.Portal.PortalLink. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Portal.PortalLink, Cratis.Showrunner.BoxOffice.Portal.PortalLink. Time: 2026-11-11T04:34:24.5807960Z. Hash: E4E66E27A4FFFBA083577B566586E436915617AE1C906F72BCCB42ECDB18A4C6
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -30,7 +30,7 @@ export interface LinkToPortalParameters {
|
|
|
30
30
|
* Gets a link to the customer portal for what the signed-in user wants to do there.
|
|
31
31
|
*/
|
|
32
32
|
export class LinkToPortal extends QueryFor<PortalLink, LinkToPortalParameters> {
|
|
33
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Portal');
|
|
33
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Portal');
|
|
34
34
|
readonly route: string = '/api/portal/link-to-portal';
|
|
35
35
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Portal.PortalLink.LinkToPortal';
|
|
36
36
|
readonly treatWarningsAsErrors: boolean = false;
|
package/README.md
CHANGED
|
@@ -80,8 +80,8 @@ Run the commands below from the repository root. The full solution test command
|
|
|
80
80
|
dotnet build Showrunner.slnx --configuration Debug
|
|
81
81
|
dotnet test Showrunner.slnx --configuration Debug --no-build
|
|
82
82
|
|
|
83
|
-
# Release is warnings-as-errors;
|
|
84
|
-
dotnet build Showrunner.slnx --configuration Release -p:
|
|
83
|
+
# Release is warnings-as-errors; CratisProxiesSkip skips proxy generation
|
|
84
|
+
dotnet build Showrunner.slnx --configuration Release -p:CratisProxiesSkip=true
|
|
85
85
|
|
|
86
86
|
# Frontend
|
|
87
87
|
yarn install
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.AssignSeat.AssignSeat. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.AssignSeat.AssignSeat. Time: 2026-11-11T04:34:24.5807960Z. Hash: ED6E9C61A2F53AB2ABE9D5344946DA42233E402EE63DA7F5842350E7AA954579
|
|
6
6
|
import { Command } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -24,7 +24,7 @@ export interface IAssignSeat {
|
|
|
24
24
|
* Gives a person one of the tenant's seats. Who holds a seat is the product's decision; how many seats there are is the operator's. Assigning a seat to someone who already holds one records nothing.
|
|
25
25
|
*/
|
|
26
26
|
export class AssignSeat extends Command<IAssignSeat, Record<string, unknown>[]> implements IAssignSeat {
|
|
27
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Seats', 'AssignSeat');
|
|
27
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seats', 'AssignSeat');
|
|
28
28
|
readonly route: string = '/api/seats/assign-seat';
|
|
29
29
|
readonly treatWarningsAsErrors: boolean = false;
|
|
30
30
|
readonly roles: string[] = [];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.ReleaseSeat.ReleaseSeat. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.ReleaseSeat.ReleaseSeat. Time: 2026-11-11T04:34:24.5807960Z. Hash: 21AAA01E56985EB385F4274E6431E3C801C7E57F62894C064F9369E0061C71C2
|
|
6
6
|
import { Command } from '@cratis/arc/commands';
|
|
7
7
|
import { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
@@ -24,7 +24,7 @@ export interface IReleaseSeat {
|
|
|
24
24
|
* Takes a seat back from a person, so someone else can have it. Releasing a seat nobody holds records nothing.
|
|
25
25
|
*/
|
|
26
26
|
export class ReleaseSeat extends Command<IReleaseSeat, Record<string, unknown>[]> implements IReleaseSeat {
|
|
27
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Seats', 'ReleaseSeat');
|
|
27
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seats', 'ReleaseSeat');
|
|
28
28
|
readonly route: string = '/api/seats/release-seat';
|
|
29
29
|
readonly treatWarningsAsErrors: boolean = false;
|
|
30
30
|
readonly roles: string[] = [];
|
package/Seats/SeatRoster.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.SeatRoster, Cratis.Showrunner.BoxOffice.Seats.SeatRoster. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.SeatRoster, Cratis.Showrunner.BoxOffice.Seats.SeatRoster. Time: 2026-11-11T04:34:24.5807960Z. Hash: 21FEC8ADAE79BCFF3C03E150D823ED8BDA827D945C87AFB2FF9C87C2BCE49C4A
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -13,7 +13,7 @@ import { SeatHolding } from './SeatHolding';
|
|
|
13
13
|
* Gets who holds the tenant's seats, for the product's maintainers.
|
|
14
14
|
*/
|
|
15
15
|
export class CurrentRoster extends QueryFor<SeatRoster> {
|
|
16
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Seats');
|
|
16
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seats');
|
|
17
17
|
readonly route: string = '/api/seats/current-roster';
|
|
18
18
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Seats.SeatRoster.CurrentRoster';
|
|
19
19
|
readonly treatWarningsAsErrors: boolean = false;
|
package/Seats/SeatStanding.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
5
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.SeatStanding, Cratis.Showrunner.BoxOffice.Seats.SeatStanding. Time: 2026-
|
|
5
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.SeatStanding, Cratis.Showrunner.BoxOffice.Seats.SeatStanding. Time: 2026-11-11T04:34:24.5807960Z. Hash: 026F783D0DDCD0CB220EE38E7FE63C2137EF76FE64550DC4CE67AAEC5F95D45E
|
|
6
6
|
import { QueryFor, QueryResultWithState } from '@cratis/arc/queries';
|
|
7
7
|
import { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';
|
|
8
8
|
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
@@ -14,7 +14,7 @@ import { SeatStatus } from './SeatStatus';
|
|
|
14
14
|
* Gets where the signed-in user stands.
|
|
15
15
|
*/
|
|
16
16
|
export class Mine extends QueryFor<SeatStanding> {
|
|
17
|
-
static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Seats');
|
|
17
|
+
static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seats');
|
|
18
18
|
readonly route: string = '/api/seats/mine';
|
|
19
19
|
readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Seats.SeatStanding.Mine';
|
|
20
20
|
readonly treatWarningsAsErrors: boolean = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComputeLimits.d.ts","sourceRoot":"","sources":["../../../Compute/ComputeLimits.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAA8B,MAAM,2BAA2B,CAAC;AAC5G,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEhG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,qBAAa,aAAc,SAAQ,QAAQ,CAAC,aAAa,CAAC;IACtD,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ComputeLimits.d.ts","sourceRoot":"","sources":["../../../Compute/ComputeLimits.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAA8B,MAAM,2BAA2B,CAAC;AAC5G,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEhG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,qBAAa,aAAc,SAAQ,QAAQ,CAAC,aAAa,CAAC;IACtD,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAyD;IACxG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAiC;IACvD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAqE;IAC/F,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAuB;;IAM3D,IAAI,yBAAyB,IAAI,MAAM,EAAE,CAGxC;IAED,QAAQ,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,CAClD;IAIF,MAAM,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAI7E,MAAM,CAAC,WAAW,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAIrF,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;CAG3E;AAKD,qBAAa,aAAa;IAMtB,EAAE,EAAG,MAAM,CAAC;IAMZ,MAAM,EAAG,UAAU,EAAE,CAAC;CACzB"}
|
|
@@ -27,7 +27,7 @@ function _ts_metadata(metadataKey, metadataValue) {
|
|
|
27
27
|
/**
|
|
28
28
|
* Gets the budgets and concurrency limits of the tenant, for the product's maintainers.
|
|
29
29
|
*/ class CurrentLimits extends queries.QueryFor {
|
|
30
|
-
static sliceLocation = new reflection.SliceLocation('', '', 'Compute');
|
|
30
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Compute');
|
|
31
31
|
route = '/api/compute/current-limits';
|
|
32
32
|
queryName = 'Cratis.Showrunner.BoxOffice.Compute.ComputeLimits.CurrentLimits';
|
|
33
33
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComputeLimits.js","sources":["../../../Compute/ComputeLimits.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.BoxOffice.Compute.ComputeLimits, Cratis.Showrunner.BoxOffice.Compute.ComputeLimits. Time: 2026-
|
|
1
|
+
{"version":3,"file":"ComputeLimits.js","sources":["../../../Compute/ComputeLimits.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.BoxOffice.Compute.ComputeLimits, Cratis.Showrunner.BoxOffice.Compute.ComputeLimits. Time: 2026-11-11T04:34:24.5807960Z. Hash: 645D643B991F808706C1F4D93E4D44F19577A6602C9C32685B638861A6274D43\nimport { QueryFor, QueryResultWithState } from '@cratis/arc/queries';\nimport { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { field } from '@cratis/fundamentals';\nimport { MeterLimit } from './MeterLimit';\n\n/**\n * Gets the budgets and concurrency limits of the tenant, for the product's maintainers.\n */\nexport class CurrentLimits extends QueryFor<ComputeLimits> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Compute');\n readonly route: string = '/api/compute/current-limits';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Compute.ComputeLimits.CurrentLimits';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: ComputeLimits = {} as ComputeLimits;\n\n constructor() {\n super(ComputeLimits, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<ComputeLimits>, PerformQuery, SetSorting] {\n return useQuery<ComputeLimits, CurrentLimits>(CurrentLimits);\n }\n\n static useSuspense(): [QueryResultWithState<ComputeLimits>, PerformQuery, SetSorting] {\n return useSuspenseQuery<ComputeLimits, CurrentLimits>(CurrentLimits);\n }\n\n static when(condition: boolean): QueryWhen<CurrentLimits, ComputeLimits> {\n return new QueryWhen<CurrentLimits, ComputeLimits>(CurrentLimits, condition);\n }\n}\n\n/**\n * The budgets and concurrency limits the product's maintainers set for the tenant, per meter.\n */\nexport class ComputeLimits {\n\n /**\n * The id of the tenant's stream.\n */\n @field(String)\n id!: string;\n\n /**\n * What was limited of each meter.\n */\n @field(MeterLimit, true)\n meters!: MeterLimit[];\n}\n"],"names":["CurrentLimits","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","ComputeLimits","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","id","meters"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;IAGO,MAAMA,aAAAA,SAAsBC,gBAAAA,CAAAA;AAC/B,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,SAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,6BAAA;AAChBC,IAAAA,SAAAA,GAAoB,iEAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA8B,EAAC;IAExC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,aAAAA,EAAe,KAAA,CAAA;AACzB,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAAuE;AAC1E,QAAA,OAAOC,kBAAAA,CAAuCb,aAAAA,CAAAA;AAClD,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAA+E;AAClF,QAAA,OAAOC,0BAAAA,CAA+Cf,aAAAA,CAAAA;AAC1D,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAA2C;QACrE,OAAO,IAAIC,oBAAwClB,aAAAA,EAAeiB,SAAAA,CAAAA;AACtE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,aAAAA,CAAAA;AAET;;AAEC,QACD,EACAU;AAEA;;AAEC,QACD,MACAC;AACJ;;;;;;;;;;;"}
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O,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,aAAa,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAI1J,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC;CAG5E;AAKD,qBAAa,aAAa;IAMtB,KAAK,EAAG,MAAM,CAAC;IAMf,IAAI,EAAG,MAAM,CAAC;IAMd,IAAI,EAAG,MAAM,CAAC;IAMd,IAAI,EAAG,MAAM,CAAC;IAMd,SAAS,EAAG,MAAM,CAAC;IAMnB,MAAM,EAAG,eAAe,CAAC;IAMzB,OAAO,EAAG,eAAe,CAAC;IAM1B,UAAU,EAAG,QAAQ,CAAC;IAMtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAM1B,mBAAmB,EAAG,OAAO,CAAC;CACjC"}
|
|
@@ -135,14 +135,14 @@ class CurrentUsageSortByWithoutQuery {
|
|
|
135
135
|
/**
|
|
136
136
|
* Gets the standing of every meter the product declared, in the order of their names.
|
|
137
137
|
*/ class CurrentUsage extends queries.QueryFor {
|
|
138
|
-
static sliceLocation = new reflection.SliceLocation('', '', 'Compute');
|
|
138
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Compute');
|
|
139
139
|
route = '/api/compute/current-usage';
|
|
140
140
|
queryName = 'Cratis.Showrunner.BoxOffice.Compute.MeterStanding.CurrentUsage';
|
|
141
141
|
treatWarningsAsErrors = false;
|
|
142
142
|
roles = [];
|
|
143
143
|
defaultValue = [];
|
|
144
144
|
_sortBy;
|
|
145
|
-
static _sortBy = new CurrentUsageSortByWithoutQuery();
|
|
145
|
+
static _sortBy = /*#__PURE__*/ new CurrentUsageSortByWithoutQuery();
|
|
146
146
|
constructor(){
|
|
147
147
|
super(MeterStanding, true);
|
|
148
148
|
this._sortBy = new CurrentUsageSortBy(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeterStanding.js","sources":["../../../Compute/MeterStanding.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.BoxOffice.Compute.MeterStanding, Cratis.Showrunner.BoxOffice.Compute.MeterStanding. Time: 2026-10-31T13:15:32.0616230Z. Hash: 7C13185074DD687296FC5609C08CF86D272E92DED4A5A31BD5145A144541A0EF\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 { DateOnly, field } from '@cratis/fundamentals';\nimport { AllowancePeriod } from '../Contracts/Compute/AllowancePeriod';\nimport { OverageBehavior } from '../Contracts/Compute/OverageBehavior';\n\nclass CurrentUsageSortBy {\n private _allowance: SortingActionsForQuery<MeterStanding[]>;\n private _budget: SortingActionsForQuery<MeterStanding[]>;\n private _concurrencyLimit: SortingActionsForQuery<MeterStanding[]>;\n private _hasConcurrencyLimit: SortingActionsForQuery<MeterStanding[]>;\n private _meter: SortingActionsForQuery<MeterStanding[]>;\n private _name: SortingActionsForQuery<MeterStanding[]>;\n private _overage: SortingActionsForQuery<MeterStanding[]>;\n private _period: SortingActionsForQuery<MeterStanding[]>;\n private _periodEnds: SortingActionsForQuery<MeterStanding[]>;\n private _unit: SortingActionsForQuery<MeterStanding[]>;\n private _used: SortingActionsForQuery<MeterStanding[]>;\n\n constructor(readonly query: CurrentUsage) {\n this._allowance = new SortingActionsForQuery<MeterStanding[]>('allowance', query);\n this._budget = new SortingActionsForQuery<MeterStanding[]>('budget', query);\n this._concurrencyLimit = new SortingActionsForQuery<MeterStanding[]>('concurrencyLimit', query);\n this._hasConcurrencyLimit = new SortingActionsForQuery<MeterStanding[]>('hasConcurrencyLimit', query);\n this._meter = new SortingActionsForQuery<MeterStanding[]>('meter', query);\n this._name = new SortingActionsForQuery<MeterStanding[]>('name', query);\n this._overage = new SortingActionsForQuery<MeterStanding[]>('overage', query);\n this._period = new SortingActionsForQuery<MeterStanding[]>('period', query);\n this._periodEnds = new SortingActionsForQuery<MeterStanding[]>('periodEnds', query);\n this._unit = new SortingActionsForQuery<MeterStanding[]>('unit', query);\n this._used = new SortingActionsForQuery<MeterStanding[]>('used', query);\n }\n\n get allowance(): SortingActionsForQuery<MeterStanding[]> {\n return this._allowance;\n }\n get budget(): SortingActionsForQuery<MeterStanding[]> {\n return this._budget;\n }\n get concurrencyLimit(): SortingActionsForQuery<MeterStanding[]> {\n return this._concurrencyLimit;\n }\n get hasConcurrencyLimit(): SortingActionsForQuery<MeterStanding[]> {\n return this._hasConcurrencyLimit;\n }\n get meter(): SortingActionsForQuery<MeterStanding[]> {\n return this._meter;\n }\n get name(): SortingActionsForQuery<MeterStanding[]> {\n return this._name;\n }\n get overage(): SortingActionsForQuery<MeterStanding[]> {\n return this._overage;\n }\n get period(): SortingActionsForQuery<MeterStanding[]> {\n return this._period;\n }\n get periodEnds(): SortingActionsForQuery<MeterStanding[]> {\n return this._periodEnds;\n }\n get unit(): SortingActionsForQuery<MeterStanding[]> {\n return this._unit;\n }\n get used(): SortingActionsForQuery<MeterStanding[]> {\n return this._used;\n }\n}\n\nclass CurrentUsageSortByWithoutQuery {\n private _allowance: SortingActions = new SortingActions('allowance');\n private _budget: SortingActions = new SortingActions('budget');\n private _concurrencyLimit: SortingActions = new SortingActions('concurrencyLimit');\n private _hasConcurrencyLimit: SortingActions = new SortingActions('hasConcurrencyLimit');\n private _meter: SortingActions = new SortingActions('meter');\n private _name: SortingActions = new SortingActions('name');\n private _overage: SortingActions = new SortingActions('overage');\n private _period: SortingActions = new SortingActions('period');\n private _periodEnds: SortingActions = new SortingActions('periodEnds');\n private _unit: SortingActions = new SortingActions('unit');\n private _used: SortingActions = new SortingActions('used');\n\n get allowance(): SortingActions {\n return this._allowance;\n }\n get budget(): SortingActions {\n return this._budget;\n }\n get concurrencyLimit(): SortingActions {\n return this._concurrencyLimit;\n }\n get hasConcurrencyLimit(): SortingActions {\n return this._hasConcurrencyLimit;\n }\n get meter(): SortingActions {\n return this._meter;\n }\n get name(): SortingActions {\n return this._name;\n }\n get overage(): SortingActions {\n return this._overage;\n }\n get period(): SortingActions {\n return this._period;\n }\n get periodEnds(): SortingActions {\n return this._periodEnds;\n }\n get unit(): SortingActions {\n return this._unit;\n }\n get used(): SortingActions {\n return this._used;\n }\n}\n\n\n/**\n * Gets the standing of every meter the product declared, in the order of their names.\n */\nexport class CurrentUsage extends QueryFor<MeterStanding[]> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Compute');\n readonly route: string = '/api/compute/current-usage';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Compute.MeterStanding.CurrentUsage';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: MeterStanding[] = [];\n private readonly _sortBy: CurrentUsageSortBy;\n private static readonly _sortBy: CurrentUsageSortByWithoutQuery = new CurrentUsageSortByWithoutQuery();\n\n constructor() {\n super(MeterStanding, true);\n this._sortBy = new CurrentUsageSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): CurrentUsageSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): CurrentUsageSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting] {\n return useQuery<MeterStanding[], CurrentUsage>(CurrentUsage, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useQueryWithPaging<MeterStanding[], CurrentUsage>(CurrentUsage, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting] {\n return useSuspenseQuery<MeterStanding[], CurrentUsage>(CurrentUsage, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useSuspenseQueryWithPaging<MeterStanding[], CurrentUsage>(CurrentUsage, new Paging(0, pageSize), undefined, sorting);\n }\n\n static when(condition: boolean): QueryWhen<CurrentUsage, MeterStanding[]> {\n return new QueryWhen<CurrentUsage, MeterStanding[]>(CurrentUsage, condition);\n }\n}\n\n/**\n * Where the tenant stands with one meter in the allowance period it is in now: what it has used, and what it may use.\n */\nexport class MeterStanding {\n\n /**\n * The meter.\n */\n @field(String)\n meter!: string;\n\n /**\n * What the meter is called.\n */\n @field(String)\n name!: string;\n\n /**\n * What the meter counts.\n */\n @field(String)\n unit!: string;\n\n /**\n * How much the tenant has used since the period began.\n */\n @field(Number)\n used!: number;\n\n /**\n * How much the operator allows in the period; zero when the operator set no allowance.\n */\n @field(Number)\n allowance!: number;\n\n /**\n * The period the allowance and what is used count over.\n */\n @field(Number)\n period!: AllowancePeriod;\n\n /**\n * What happens to work that asks for more than the allowance.\n */\n @field(Number)\n overage!: OverageBehavior;\n\n /**\n * The first day of the next period, when the used quantity starts from zero again.\n */\n @field(DateOnly)\n periodEnds!: DateOnly;\n\n /**\n * The most the tenant's own administrators decided to use in the period, when they set one.\n */\n @field(Number)\n budget?: number;\n\n /**\n * How many units of work may run at the same time, when a limit was set.\n */\n @field(Number)\n concurrencyLimit?: number;\n\n /**\n * Whether the product limits how many units of this meter run at the same time.\n */\n @field(Boolean)\n hasConcurrencyLimit!: boolean;\n}\n"],"names":["CurrentUsageSortBy","_allowance","_budget","_concurrencyLimit","_hasConcurrencyLimit","_meter","_name","_overage","_period","_periodEnds","_unit","_used","query","SortingActionsForQuery","allowance","budget","concurrencyLimit","hasConcurrencyLimit","meter","name","overage","period","periodEnds","unit","used","CurrentUsageSortByWithoutQuery","SortingActions","CurrentUsage","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","MeterStanding","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useQuery","undefined","useWithPaging","pageSize","useQueryWithPaging","Paging","useSuspense","useSuspenseQuery","useSuspenseWithPaging","useSuspenseQueryWithPaging","when","condition","QueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAMA,kBAAAA,CAAAA;;IACMC,UAAAA;IACAC,OAAAA;IACAC,iBAAAA;IACAC,oBAAAA;IACAC,MAAAA;IACAC,KAAAA;IACAC,QAAAA;IACAC,OAAAA;IACAC,WAAAA;IACAC,KAAAA;IACAC,KAAAA;IAER,WAAA,CAAqBC,KAAmB,CAAE;aAArBA,KAAAA,GAAAA,KAAAA;AACjB,QAAA,IAAI,CAACX,UAAU,GAAG,IAAIY,+BAAwC,WAAA,EAAaD,KAAAA,CAAAA;AAC3E,QAAA,IAAI,CAACV,OAAO,GAAG,IAAIW,+BAAwC,QAAA,EAAUD,KAAAA,CAAAA;AACrE,QAAA,IAAI,CAACT,iBAAiB,GAAG,IAAIU,+BAAwC,kBAAA,EAAoBD,KAAAA,CAAAA;AACzF,QAAA,IAAI,CAACR,oBAAoB,GAAG,IAAIS,+BAAwC,qBAAA,EAAuBD,KAAAA,CAAAA;AAC/F,QAAA,IAAI,CAACP,MAAM,GAAG,IAAIQ,+BAAwC,OAAA,EAASD,KAAAA,CAAAA;AACnE,QAAA,IAAI,CAACN,KAAK,GAAG,IAAIO,+BAAwC,MAAA,EAAQD,KAAAA,CAAAA;AACjE,QAAA,IAAI,CAACL,QAAQ,GAAG,IAAI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AAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AAC/G,IAAA;IAEA,OAAOO,WAAAA,CAAYP,OAAiB,EAAqE;QACrG,OAAOQ,0BAAAA,CAAgDvB,cAAciB,SAAAA,EAAWF,OAAAA,CAAAA;AACpF,IAAA;AAEA,IAAA,OAAOS,qBAAAA,CAAsBL,QAAgB,EAAEJ,OAAiB,EAA2F;AACvJ,QAAA,OAAOU,qCAA0DzB,YAAAA,EAAc,IAAIqB,cAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AACvH,IAAA;IAEA,OAAOW,IAAAA,CAAKC,SAAkB,EAA4C;QACtE,OAAO,IAAIC,oBAAyC5B,YAAAA,EAAc2B,SAAAA,CAAAA;AACtE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMjB,aAAAA,CAAAA;AAET;;AAEC,QACD,KACAnB;AAEA;;AAEC,QACD,IACAC;AAEA;;AAEC,QACD,IACAI;AAEA;;AAEC,QACD,IACAC;AAEA;;AAEC,QACD,SACAV;AAEA;;AAEC,QACD,MACAO;AAEA;;AAEC,QACD,OACAD;AAEA;;AAEC,QACD,UACAE;AAEA;;AAEC,QACD,MACAP;AAEA;;AAEC,QACD,gBACAC;AAEA;;AAEC,QACD,mBACAC;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"MeterStanding.js","sources":["../../../Compute/MeterStanding.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.BoxOffice.Compute.MeterStanding, Cratis.Showrunner.BoxOffice.Compute.MeterStanding. Time: 2026-11-11T04:34:24.5807960Z. Hash: F6A424ABEE2F98FA5980791CB68CAC7CDE3A744973BED7FED03990F61E5B8BD2\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 { DateOnly, field } from '@cratis/fundamentals';\nimport { AllowancePeriod } from '../Contracts/Compute/AllowancePeriod';\nimport { OverageBehavior } from '../Contracts/Compute/OverageBehavior';\n\nclass CurrentUsageSortBy {\n private _allowance: SortingActionsForQuery<MeterStanding[]>;\n private _budget: SortingActionsForQuery<MeterStanding[]>;\n private _concurrencyLimit: SortingActionsForQuery<MeterStanding[]>;\n private _hasConcurrencyLimit: SortingActionsForQuery<MeterStanding[]>;\n private _meter: SortingActionsForQuery<MeterStanding[]>;\n private _name: SortingActionsForQuery<MeterStanding[]>;\n private _overage: SortingActionsForQuery<MeterStanding[]>;\n private _period: SortingActionsForQuery<MeterStanding[]>;\n private _periodEnds: SortingActionsForQuery<MeterStanding[]>;\n private _unit: SortingActionsForQuery<MeterStanding[]>;\n private _used: SortingActionsForQuery<MeterStanding[]>;\n\n constructor(readonly query: CurrentUsage) {\n this._allowance = new SortingActionsForQuery<MeterStanding[]>('allowance', query);\n this._budget = new SortingActionsForQuery<MeterStanding[]>('budget', query);\n this._concurrencyLimit = new SortingActionsForQuery<MeterStanding[]>('concurrencyLimit', query);\n this._hasConcurrencyLimit = new SortingActionsForQuery<MeterStanding[]>('hasConcurrencyLimit', query);\n this._meter = new SortingActionsForQuery<MeterStanding[]>('meter', query);\n this._name = new SortingActionsForQuery<MeterStanding[]>('name', query);\n this._overage = new SortingActionsForQuery<MeterStanding[]>('overage', query);\n this._period = new SortingActionsForQuery<MeterStanding[]>('period', query);\n this._periodEnds = new SortingActionsForQuery<MeterStanding[]>('periodEnds', query);\n this._unit = new SortingActionsForQuery<MeterStanding[]>('unit', query);\n this._used = new SortingActionsForQuery<MeterStanding[]>('used', query);\n }\n\n get allowance(): SortingActionsForQuery<MeterStanding[]> {\n return this._allowance;\n }\n get budget(): SortingActionsForQuery<MeterStanding[]> {\n return this._budget;\n }\n get concurrencyLimit(): SortingActionsForQuery<MeterStanding[]> {\n return this._concurrencyLimit;\n }\n get hasConcurrencyLimit(): SortingActionsForQuery<MeterStanding[]> {\n return this._hasConcurrencyLimit;\n }\n get meter(): SortingActionsForQuery<MeterStanding[]> {\n return this._meter;\n }\n get name(): SortingActionsForQuery<MeterStanding[]> {\n return this._name;\n }\n get overage(): SortingActionsForQuery<MeterStanding[]> {\n return this._overage;\n }\n get period(): SortingActionsForQuery<MeterStanding[]> {\n return this._period;\n }\n get periodEnds(): SortingActionsForQuery<MeterStanding[]> {\n return this._periodEnds;\n }\n get unit(): SortingActionsForQuery<MeterStanding[]> {\n return this._unit;\n }\n get used(): SortingActionsForQuery<MeterStanding[]> {\n return this._used;\n }\n}\n\nclass CurrentUsageSortByWithoutQuery {\n private _allowance: SortingActions = new SortingActions('allowance');\n private _budget: SortingActions = new SortingActions('budget');\n private _concurrencyLimit: SortingActions = new SortingActions('concurrencyLimit');\n private _hasConcurrencyLimit: SortingActions = new SortingActions('hasConcurrencyLimit');\n private _meter: SortingActions = new SortingActions('meter');\n private _name: SortingActions = new SortingActions('name');\n private _overage: SortingActions = new SortingActions('overage');\n private _period: SortingActions = new SortingActions('period');\n private _periodEnds: SortingActions = new SortingActions('periodEnds');\n private _unit: SortingActions = new SortingActions('unit');\n private _used: SortingActions = new SortingActions('used');\n\n get allowance(): SortingActions {\n return this._allowance;\n }\n get budget(): SortingActions {\n return this._budget;\n }\n get concurrencyLimit(): SortingActions {\n return this._concurrencyLimit;\n }\n get hasConcurrencyLimit(): SortingActions {\n return this._hasConcurrencyLimit;\n }\n get meter(): SortingActions {\n return this._meter;\n }\n get name(): SortingActions {\n return this._name;\n }\n get overage(): SortingActions {\n return this._overage;\n }\n get period(): SortingActions {\n return this._period;\n }\n get periodEnds(): SortingActions {\n return this._periodEnds;\n }\n get unit(): SortingActions {\n return this._unit;\n }\n get used(): SortingActions {\n return this._used;\n }\n}\n\n\n/**\n * Gets the standing of every meter the product declared, in the order of their names.\n */\nexport class CurrentUsage extends QueryFor<MeterStanding[]> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Compute');\n readonly route: string = '/api/compute/current-usage';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Compute.MeterStanding.CurrentUsage';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: MeterStanding[] = [];\n private readonly _sortBy: CurrentUsageSortBy;\n private static readonly _sortBy: CurrentUsageSortByWithoutQuery = /*#__PURE__*/ new CurrentUsageSortByWithoutQuery();\n\n constructor() {\n super(MeterStanding, true);\n this._sortBy = new CurrentUsageSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): CurrentUsageSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): CurrentUsageSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting] {\n return useQuery<MeterStanding[], CurrentUsage>(CurrentUsage, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useQueryWithPaging<MeterStanding[], CurrentUsage>(CurrentUsage, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting] {\n return useSuspenseQuery<MeterStanding[], CurrentUsage>(CurrentUsage, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MeterStanding[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useSuspenseQueryWithPaging<MeterStanding[], CurrentUsage>(CurrentUsage, new Paging(0, pageSize), undefined, sorting);\n }\n\n static when(condition: boolean): QueryWhen<CurrentUsage, MeterStanding[]> {\n return new QueryWhen<CurrentUsage, MeterStanding[]>(CurrentUsage, condition);\n }\n}\n\n/**\n * Where the tenant stands with one meter in the allowance period it is in now: what it has used, and what it may use.\n */\nexport class MeterStanding {\n\n /**\n * The meter.\n */\n @field(String)\n meter!: string;\n\n /**\n * What the meter is called.\n */\n @field(String)\n name!: string;\n\n /**\n * What the meter counts.\n */\n @field(String)\n unit!: string;\n\n /**\n * How much the tenant has used since the period began.\n */\n @field(Number)\n used!: number;\n\n /**\n * How much the operator allows in the period; zero when the operator set no allowance.\n */\n @field(Number)\n allowance!: number;\n\n /**\n * The period the allowance and what is used count over.\n */\n @field(Number)\n period!: AllowancePeriod;\n\n /**\n * What happens to work that asks for more than the allowance.\n */\n @field(Number)\n overage!: OverageBehavior;\n\n /**\n * The first day of the next period, when the used quantity starts from zero again.\n */\n @field(DateOnly)\n periodEnds!: DateOnly;\n\n /**\n * The most the tenant's own administrators decided to use in the period, when they set one.\n */\n @field(Number)\n budget?: number;\n\n /**\n * How many units of work may run at the same time, when a limit was set.\n */\n @field(Number)\n concurrencyLimit?: number;\n\n /**\n * Whether the product limits how many units of this meter run at the same time.\n */\n @field(Boolean)\n hasConcurrencyLimit!: boolean;\n}\n"],"names":["CurrentUsageSortBy","_allowance","_budget","_concurrencyLimit","_hasConcurrencyLimit","_meter","_name","_overage","_period","_periodEnds","_unit","_used","query","SortingActionsForQuery","allowance","budget","concurrencyLimit","hasConcurrencyLimit","meter","name","overage","period","periodEnds","unit","used","CurrentUsageSortByWithoutQuery","SortingActions","CurrentUsage","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","MeterStanding","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useQuery","undefined","useWithPaging","pageSize","useQueryWithPaging","Paging","useS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,CAAAA;AACvH,IAAA;IAEA,OAAOW,IAAAA,CAAKC,SAAkB,EAA4C;QACtE,OAAO,IAAIC,oBAAyC5B,YAAAA,EAAc2B,SAAAA,CAAAA;AACtE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMjB,aAAAA,CAAAA;AAET;;AAEC,QACD,KACAnB;AAEA;;AAEC,QACD,IACAC;AAEA;;AAEC,QACD,IACAI;AAEA;;AAEC,QACD,IACAC;AAEA;;AAEC,QACD,SACAV;AAEA;;AAEC,QACD,MACAO;AAEA;;AAEC,QACD,OACAD;AAEA;;AAEC,QACD,UACAE;AAEA;;AAEC,QACD,MACAP;AAEA;;AAEC,QACD,gBACAC;AAEA;;AAEC,QACD,mBACAC;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetComputeBudget.d.ts","sourceRoot":"","sources":["../../../../Compute/SetBudget/SetComputeBudget.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,iBAAiB;IAK9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAE,YAAW,iBAAiB;;IACpH,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SetComputeBudget.d.ts","sourceRoot":"","sources":["../../../../Compute/SetBudget/SetComputeBudget.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,iBAAiB;IAK9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAMD,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAE,YAAW,iBAAiB;;IACpH,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAkE;IACjH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAA6B;IACnD,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAGhD;;IASF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtB;IAID,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAGzB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CAG7H"}
|
|
@@ -7,11 +7,11 @@ var reflection = require('@cratis/arc/reflection');
|
|
|
7
7
|
// Copyright (c) Cratis. All rights reserved.
|
|
8
8
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
9
9
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
10
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-
|
|
10
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-11-11T04:34:24.5807960Z. Hash: DF7A84F0D7E531A8F198403B5ADEAAD78E1BB90FC49FE062E766F9E304CFF410
|
|
11
11
|
/**
|
|
12
12
|
* Sets how much of a meter the tenant may use in the allowance's period, below what the operator allows. Work is turned away once the period's usage reaches the budget.
|
|
13
13
|
*/ class SetComputeBudget extends commands.Command {
|
|
14
|
-
static sliceLocation = new reflection.SliceLocation('', 'Compute', 'SetBudget');
|
|
14
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Compute', 'SetBudget');
|
|
15
15
|
route = '/api/compute/set-budget';
|
|
16
16
|
treatWarningsAsErrors = false;
|
|
17
17
|
roles = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetComputeBudget.js","sources":["../../../../Compute/SetBudget/SetComputeBudget.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.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-
|
|
1
|
+
{"version":3,"file":"SetComputeBudget.js","sources":["../../../../Compute/SetBudget/SetComputeBudget.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.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-11-11T04:34:24.5807960Z. Hash: DF7A84F0D7E531A8F198403B5ADEAAD78E1BB90FC49FE062E766F9E304CFF410\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 * Sets how much of a meter the tenant may use in the allowance's period, below what the operator allows. Work is turned away once the period's usage reaches the budget.\n */\nexport interface ISetComputeBudget {\n\n /**\n * The meter.\n */\n meter?: string;\n\n /**\n * The most the tenant may use in the period.\n */\n quantity?: number;\n}\n\n\n/**\n * Sets how much of a meter the tenant may use in the allowance's period, below what the operator allows. Work is turned away once the period's usage reaches the budget.\n */\nexport class SetComputeBudget extends Command<ISetComputeBudget, Record<string, unknown>[]> implements ISetComputeBudget {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Compute', 'SetBudget');\n readonly route: string = '/api/compute/set-budget';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('meter', String, false),\n new PropertyDescriptor('quantity', Number, false),\n ];\n\n #meter!: string;\n #quantity!: number;\n\n constructor() {\n super(Object, true);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The meter.\n */\n get meter(): string {\n return this.#meter;\n }\n\n set meter(value: string) {\n this.#meter = value;\n this.propertyChanged('meter');\n }\n /**\n * The most the tenant may use in the period.\n */\n get quantity(): number {\n return this.#quantity;\n }\n\n set quantity(value: number) {\n this.#quantity = value;\n this.propertyChanged('quantity');\n }\n\n static use(initialValues?: ISetComputeBudget): [SetComputeBudget, SetCommandValues<ISetComputeBudget>, ClearCommandValues] {\n return useCommand<SetComputeBudget, ISetComputeBudget, Record<string, unknown>[]>(SetComputeBudget, initialValues);\n }\n}\n"],"names":["SetComputeBudget","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","String","Number","Object","requestParameters","meter","value","propertyChanged","quantity","use","initialValues","useCommand"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AAsBA;;IAGO,MAAMA,gBAAAA,SAAyBC,gBAAAA,CAAAA;AAClC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,WAAW,WAAA,CAAA;AAC3FC,IAAAA,KAAAA,GAAgB,yBAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,SAASC,MAAAA,EAAQ,KAAA,CAAA;QACxC,IAAID,6BAAAA,CAAmB,YAAYE,MAAAA,EAAQ,KAAA;KAC9C;AAED,IAAA,MAAM;AACN,IAAA,SAAS;IAET,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,IAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IAAA;AAEA;;AAEC,QACD,IAAIC,KAAAA,GAAgB;QAChB,OAAO,IAAI,CAAC,MAAM;AACtB,IAAA;IAEA,IAAIA,KAAAA,CAAMC,KAAa,EAAE;QACrB,IAAI,CAAC,MAAM,GAAGA,KAAAA;QACd,IAAI,CAACC,eAAe,CAAC,OAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIC,QAAAA,GAAmB;QACnB,OAAO,IAAI,CAAC,SAAS;AACzB,IAAA;IAEA,IAAIA,QAAAA,CAASF,KAAa,EAAE;QACxB,IAAI,CAAC,SAAS,GAAGA,KAAAA;QACjB,IAAI,CAACC,eAAe,CAAC,UAAA,CAAA;AACzB,IAAA;IAEA,OAAOE,GAAAA,CAAIC,aAAiC,EAA+E;AACvH,QAAA,OAAOC,sBAA2EnB,gBAAAA,EAAkBkB,aAAAA,CAAAA;AACxG,IAAA;AACJ;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetComputeConcurrencyLimit.d.ts","sourceRoot":"","sources":["../../../../Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.ts"],"names":[],"mappings":"AAKA,OA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AA4E;IAC3H,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAwC;IAC9D,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAA6C;IAClF,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAM;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,CAGhD;;IASF,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtB;IAID,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtB;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,2BAA2B,GAAG,CAAC,0BAA0B,EAAE,gBAAgB,CAAC,2BAA2B,CAAC,EAAE,kBAAkB,CAAC;CAG3J"}
|
|
@@ -7,7 +7,7 @@ var reflection = require('@cratis/arc/reflection');
|
|
|
7
7
|
// Copyright (c) Cratis. All rights reserved.
|
|
8
8
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
9
9
|
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
10
|
-
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetConcurrencyLimit.SetComputeConcurrencyLimit. Time: 2026-
|
|
10
|
+
// @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetConcurrencyLimit.SetComputeConcurrencyLimit. Time: 2026-11-11T04:34:24.5807960Z. Hash: 60333C2AE00FBFE29C72A1053620A346035040B2A9FCCEAEC1FCB2E62EC5FAA5
|
|
11
11
|
class SetComputeConcurrencyLimitValidator extends commands.CommandValidator {
|
|
12
12
|
constructor(){
|
|
13
13
|
super();
|
|
@@ -17,7 +17,7 @@ class SetComputeConcurrencyLimitValidator extends commands.CommandValidator {
|
|
|
17
17
|
/**
|
|
18
18
|
* Sets how many units of work of a meter the tenant may run at the same time. Only a meter the product declared with a concurrency limit has one; work of the meter is turned away while the tenant runs that many.
|
|
19
19
|
*/ class SetComputeConcurrencyLimit extends commands.Command {
|
|
20
|
-
static sliceLocation = new reflection.SliceLocation('', 'Compute', 'SetConcurrencyLimit');
|
|
20
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Compute', 'SetConcurrencyLimit');
|
|
21
21
|
route = '/api/compute/set-concurrency-limit';
|
|
22
22
|
validation = new SetComputeConcurrencyLimitValidator();
|
|
23
23
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetComputeConcurrencyLimit.js","sources":["../../../../Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.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.BoxOffice.Compute.SetConcurrencyLimit.SetComputeConcurrencyLimit. Time: 2026-
|
|
1
|
+
{"version":3,"file":"SetComputeConcurrencyLimit.js","sources":["../../../../Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.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.BoxOffice.Compute.SetConcurrencyLimit.SetComputeConcurrencyLimit. Time: 2026-11-11T04:34:24.5807960Z. Hash: 60333C2AE00FBFE29C72A1053620A346035040B2A9FCCEAEC1FCB2E62EC5FAA5\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\n\n/**\n * Sets how many units of work of a meter the tenant may run at the same time. Only a meter the product declared with a concurrency limit has one; work of the meter is turned away while the tenant runs that many.\n */\nexport interface ISetComputeConcurrencyLimit {\n\n /**\n * The number of units of work.\n */\n limit?: number;\n\n /**\n * The meter.\n */\n meter?: string;\n}\n\nexport class SetComputeConcurrencyLimitValidator extends CommandValidator<ISetComputeConcurrencyLimit> {\n constructor() {\n super();\n this.ruleFor(c => c.limit).greaterThan(0).withMessage('The limit must be at least one.');\n }\n}\n\n/**\n * Sets how many units of work of a meter the tenant may run at the same time. Only a meter the product declared with a concurrency limit has one; work of the meter is turned away while the tenant runs that many.\n */\nexport class SetComputeConcurrencyLimit extends Command<ISetComputeConcurrencyLimit, Record<string, unknown>[]> implements ISetComputeConcurrencyLimit {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Compute', 'SetConcurrencyLimit');\n readonly route: string = '/api/compute/set-concurrency-limit';\n readonly validation: CommandValidator = new SetComputeConcurrencyLimitValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('limit', Number, false),\n new PropertyDescriptor('meter', String, false),\n ];\n\n #limit!: number;\n #meter!: string;\n\n constructor() {\n super(Object, true);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The number of units of work.\n */\n get limit(): number {\n return this.#limit;\n }\n\n set limit(value: number) {\n this.#limit = value;\n this.propertyChanged('limit');\n }\n /**\n * The meter.\n */\n get meter(): string {\n return this.#meter;\n }\n\n set meter(value: string) {\n this.#meter = value;\n this.propertyChanged('meter');\n }\n\n static use(initialValues?: ISetComputeConcurrencyLimit): [SetComputeConcurrencyLimit, SetCommandValues<ISetComputeConcurrencyLimit>, ClearCommandValues] {\n return useCommand<SetComputeConcurrencyLimit, ISetComputeConcurrencyLimit, Record<string, unknown>[]>(SetComputeConcurrencyLimit, initialValues);\n }\n}\n"],"names":["SetComputeConcurrencyLimitValidator","CommandValidator","ruleFor","c","limit","greaterThan","withMessage","SetComputeConcurrencyLimit","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","Number","String","Object","requestParameters","value","propertyChanged","meter","use","initialValues","useCommand"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AAqBO,MAAMA,mCAAAA,SAA4CC,yBAAAA,CAAAA;IACrD,WAAA,EAAc;QACV,KAAK,EAAA;AACL,QAAA,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,KAAK,CAAA,CAAEC,WAAW,CAAC,CAAA,CAAA,CAAGC,WAAW,CAAC,iCAAA,CAAA;AAC1D,IAAA;AACJ;AAEA;;IAGO,MAAMC,0BAAAA,SAAmCC,gBAAAA,CAAAA;AAC5C,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,WAAW,qBAAA,CAAA;AAC3FC,IAAAA,KAAAA,GAAgB,oCAAA;AAChBC,IAAAA,UAAAA,GAA+B,IAAIZ,mCAAAA,EAAAA;AACnCa,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,SAASC,MAAAA,EAAQ,KAAA,CAAA;QACxC,IAAID,6BAAAA,CAAmB,SAASE,MAAAA,EAAQ,KAAA;KAC3C;AAED,IAAA,MAAM;AACN,IAAA,MAAM;IAEN,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,IAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IAAA;AAEA;;AAEC,QACD,IAAIhB,KAAAA,GAAgB;QAChB,OAAO,IAAI,CAAC,MAAM;AACtB,IAAA;IAEA,IAAIA,KAAAA,CAAMiB,KAAa,EAAE;QACrB,IAAI,CAAC,MAAM,GAAGA,KAAAA;QACd,IAAI,CAACC,eAAe,CAAC,OAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIC,KAAAA,GAAgB;QAChB,OAAO,IAAI,CAAC,MAAM;AACtB,IAAA;IAEA,IAAIA,KAAAA,CAAMF,KAAa,EAAE;QACrB,IAAI,CAAC,MAAM,GAAGA,KAAAA;QACd,IAAI,CAACC,eAAe,CAAC,OAAA,CAAA;AACzB,IAAA;IAEA,OAAOE,GAAAA,CAAIC,aAA2C,EAAmG;AACrJ,QAAA,OAAOC,sBAA+FnB,0BAAAA,EAA4BkB,aAAAA,CAAAA;AACtI,IAAA;AACJ;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntitlementSummary.d.ts","sourceRoot":"","sources":["../../../Entitlements/EntitlementSummary.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAA8B,MAAM,2BAA2B,CAAC;AAC5G,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAS,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,qBAAa,mBAAoB,SAAQ,QAAQ,CAAC,kBAAkB,CAAC;IACjE,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"EntitlementSummary.d.ts","sourceRoot":"","sources":["../../../Entitlements/EntitlementSummary.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAA8B,MAAM,2BAA2B,CAAC;AAC5G,OAA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C3B"}
|
|
@@ -28,7 +28,7 @@ function _ts_metadata(metadataKey, metadataValue) {
|
|
|
28
28
|
/**
|
|
29
29
|
* Gets what the tenant may do today.
|
|
30
30
|
*/ class CurrentEntitlements extends queries.QueryFor {
|
|
31
|
-
static sliceLocation = new reflection.SliceLocation('', '', 'Entitlements');
|
|
31
|
+
static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Entitlements');
|
|
32
32
|
route = '/api/entitlements/current-entitlements';
|
|
33
33
|
queryName = 'Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary.CurrentEntitlements';
|
|
34
34
|
treatWarningsAsErrors = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntitlementSummary.js","sources":["../../../Entitlements/EntitlementSummary.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.BoxOffice.Entitlements.EntitlementSummary, Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary. Time: 2026-
|
|
1
|
+
{"version":3,"file":"EntitlementSummary.js","sources":["../../../Entitlements/EntitlementSummary.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.BoxOffice.Entitlements.EntitlementSummary, Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary. Time: 2026-11-11T04:34:24.5807960Z. Hash: A858657CAEF25E3BE3E56FD18D49BA2F782100B8D4AFE2169BB52E69E7053CE8\nimport { QueryFor, QueryResultWithState } from '@cratis/arc/queries';\nimport { PerformQuery, QueryWhen, SetSorting, useQuery, useSuspenseQuery } from '@cratis/arc.react/queries';\nimport { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';\nimport { DateOnly, field } from '@cratis/fundamentals';\nimport { ModuleStanding } from './ModuleStanding';\nimport { ReadOnlyReason } from './ReadOnlyReason';\n\n/**\n * Gets what the tenant may do today.\n */\nexport class CurrentEntitlements extends QueryFor<EntitlementSummary> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Entitlements');\n readonly route: string = '/api/entitlements/current-entitlements';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Entitlements.EntitlementSummary.CurrentEntitlements';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: EntitlementSummary = {} as EntitlementSummary;\n\n constructor() {\n super(EntitlementSummary, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<EntitlementSummary>, PerformQuery, SetSorting] {\n return useQuery<EntitlementSummary, CurrentEntitlements>(CurrentEntitlements);\n }\n\n static useSuspense(): [QueryResultWithState<EntitlementSummary>, PerformQuery, SetSorting] {\n return useSuspenseQuery<EntitlementSummary, CurrentEntitlements>(CurrentEntitlements);\n }\n\n static when(condition: boolean): QueryWhen<CurrentEntitlements, EntitlementSummary> {\n return new QueryWhen<CurrentEntitlements, EntitlementSummary>(CurrentEntitlements, condition);\n }\n}\n\n/**\n * What the signed-in user's tenant may do today, in one answer for the product's frontend: whether it is read-only and why, whether it is on a trial, how many seats it has and which modules it may use.\n */\nexport class EntitlementSummary {\n\n /**\n * Why the tenant is read-only; none when it is not.\n */\n @field(Number)\n readOnlyReason!: ReadOnlyReason;\n\n /**\n * Whether the tenant's seats come from a trial, closed or not.\n */\n @field(Boolean)\n isTrial!: boolean;\n\n /**\n * The last day of the trial; nothing when the tenant has no trial.\n */\n @field(DateOnly)\n trialEnds?: DateOnly;\n\n /**\n * How many seats the tenant has today.\n */\n @field(Number)\n seats!: number;\n\n /**\n * The last day of the seats; nothing when they do not end, or the tenant has none.\n */\n @field(DateOnly)\n seatsUntil?: DateOnly;\n\n /**\n * Every module the product declares, and what the tenant may do with it.\n */\n @field(ModuleStanding, true)\n modules!: ModuleStanding[];\n\n /**\n * Whether the product has a customer portal to buy, try or change a plan in.\n */\n @field(Boolean)\n canOpenPortal!: boolean;\n}\n"],"names":["CurrentEntitlements","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","EntitlementSummary","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","readOnlyReason","isTrial","trialEnds","seats","seatsUntil","modules","canOpenPortal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;IAGO,MAAMA,mBAAAA,SAA4BC,gBAAAA,CAAAA;AACrC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,cAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,wCAAA;AAChBC,IAAAA,SAAAA,GAAoB,iFAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAAmC,EAAC;IAE7C,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,kBAAAA,EAAoB,KAAA,CAAA;AAC9B,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAA4E;AAC/E,QAAA,OAAOC,kBAAAA,CAAkDb,mBAAAA,CAAAA;AAC7D,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAAoF;AACvF,QAAA,OAAOC,0BAAAA,CAA0Df,mBAAAA,CAAAA;AACrE,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAAsD;QAChF,OAAO,IAAIC,oBAAmDlB,mBAAAA,EAAqBiB,SAAAA,CAAAA;AACvF,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,kBAAAA,CAAAA;AAET;;AAEC,QACD,cACAU;AAEA;;AAEC,QACD,OACAC;AAEA;;AAEC,QACD,SACAC;AAEA;;AAEC,QACD,KACAC;AAEA;;AAEC,QACD,UACAC;AAEA;;AAEC,QACD,OACAC;AAEA;;AAEC,QACD,aACAC;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|