@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.
Files changed (86) hide show
  1. package/Compute/ComputeLimits.ts +2 -2
  2. package/Compute/MeterStanding.ts +3 -3
  3. package/Compute/SetBudget/SetComputeBudget.ts +2 -2
  4. package/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.ts +2 -2
  5. package/Entitlements/EntitlementSummary.ts +2 -2
  6. package/Entitlements/TenantStanding.ts +2 -2
  7. package/Offers/Offer.ts +3 -3
  8. package/Portal/PortalLink.ts +2 -2
  9. package/README.md +2 -2
  10. package/Seats/AssignSeat/AssignSeat.ts +2 -2
  11. package/Seats/ReleaseSeat/ReleaseSeat.ts +2 -2
  12. package/Seats/SeatRoster.ts +2 -2
  13. package/Seats/SeatStanding.ts +2 -2
  14. package/dist/cjs/Compute/ComputeLimits.d.ts.map +1 -1
  15. package/dist/cjs/Compute/ComputeLimits.js +1 -1
  16. package/dist/cjs/Compute/ComputeLimits.js.map +1 -1
  17. package/dist/cjs/Compute/MeterStanding.d.ts.map +1 -1
  18. package/dist/cjs/Compute/MeterStanding.js +2 -2
  19. package/dist/cjs/Compute/MeterStanding.js.map +1 -1
  20. package/dist/cjs/Compute/SetBudget/SetComputeBudget.d.ts.map +1 -1
  21. package/dist/cjs/Compute/SetBudget/SetComputeBudget.js +2 -2
  22. package/dist/cjs/Compute/SetBudget/SetComputeBudget.js.map +1 -1
  23. package/dist/cjs/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.d.ts.map +1 -1
  24. package/dist/cjs/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js +2 -2
  25. package/dist/cjs/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js.map +1 -1
  26. package/dist/cjs/Entitlements/EntitlementSummary.d.ts.map +1 -1
  27. package/dist/cjs/Entitlements/EntitlementSummary.js +1 -1
  28. package/dist/cjs/Entitlements/EntitlementSummary.js.map +1 -1
  29. package/dist/cjs/Entitlements/TenantStanding.d.ts.map +1 -1
  30. package/dist/cjs/Entitlements/TenantStanding.js +1 -1
  31. package/dist/cjs/Entitlements/TenantStanding.js.map +1 -1
  32. package/dist/cjs/Offers/Offer.d.ts.map +1 -1
  33. package/dist/cjs/Offers/Offer.js +2 -2
  34. package/dist/cjs/Offers/Offer.js.map +1 -1
  35. package/dist/cjs/Portal/PortalLink.d.ts.map +1 -1
  36. package/dist/cjs/Portal/PortalLink.js +1 -1
  37. package/dist/cjs/Portal/PortalLink.js.map +1 -1
  38. package/dist/cjs/Seats/AssignSeat/AssignSeat.d.ts.map +1 -1
  39. package/dist/cjs/Seats/AssignSeat/AssignSeat.js +2 -2
  40. package/dist/cjs/Seats/AssignSeat/AssignSeat.js.map +1 -1
  41. package/dist/cjs/Seats/ReleaseSeat/ReleaseSeat.d.ts.map +1 -1
  42. package/dist/cjs/Seats/ReleaseSeat/ReleaseSeat.js +2 -2
  43. package/dist/cjs/Seats/ReleaseSeat/ReleaseSeat.js.map +1 -1
  44. package/dist/cjs/Seats/SeatRoster.d.ts.map +1 -1
  45. package/dist/cjs/Seats/SeatRoster.js +1 -1
  46. package/dist/cjs/Seats/SeatRoster.js.map +1 -1
  47. package/dist/cjs/Seats/SeatStanding.d.ts.map +1 -1
  48. package/dist/cjs/Seats/SeatStanding.js +1 -1
  49. package/dist/cjs/Seats/SeatStanding.js.map +1 -1
  50. package/dist/esm/Compute/ComputeLimits.d.ts.map +1 -1
  51. package/dist/esm/Compute/ComputeLimits.js +1 -1
  52. package/dist/esm/Compute/ComputeLimits.js.map +1 -1
  53. package/dist/esm/Compute/MeterStanding.d.ts.map +1 -1
  54. package/dist/esm/Compute/MeterStanding.js +2 -2
  55. package/dist/esm/Compute/MeterStanding.js.map +1 -1
  56. package/dist/esm/Compute/SetBudget/SetComputeBudget.d.ts.map +1 -1
  57. package/dist/esm/Compute/SetBudget/SetComputeBudget.js +2 -2
  58. package/dist/esm/Compute/SetBudget/SetComputeBudget.js.map +1 -1
  59. package/dist/esm/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.d.ts.map +1 -1
  60. package/dist/esm/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js +2 -2
  61. package/dist/esm/Compute/SetConcurrencyLimit/SetComputeConcurrencyLimit.js.map +1 -1
  62. package/dist/esm/Entitlements/EntitlementSummary.d.ts.map +1 -1
  63. package/dist/esm/Entitlements/EntitlementSummary.js +1 -1
  64. package/dist/esm/Entitlements/EntitlementSummary.js.map +1 -1
  65. package/dist/esm/Entitlements/TenantStanding.d.ts.map +1 -1
  66. package/dist/esm/Entitlements/TenantStanding.js +1 -1
  67. package/dist/esm/Entitlements/TenantStanding.js.map +1 -1
  68. package/dist/esm/Offers/Offer.d.ts.map +1 -1
  69. package/dist/esm/Offers/Offer.js +2 -2
  70. package/dist/esm/Offers/Offer.js.map +1 -1
  71. package/dist/esm/Portal/PortalLink.d.ts.map +1 -1
  72. package/dist/esm/Portal/PortalLink.js +2 -2
  73. package/dist/esm/Portal/PortalLink.js.map +1 -1
  74. package/dist/esm/Seats/AssignSeat/AssignSeat.d.ts.map +1 -1
  75. package/dist/esm/Seats/AssignSeat/AssignSeat.js +2 -2
  76. package/dist/esm/Seats/AssignSeat/AssignSeat.js.map +1 -1
  77. package/dist/esm/Seats/ReleaseSeat/ReleaseSeat.d.ts.map +1 -1
  78. package/dist/esm/Seats/ReleaseSeat/ReleaseSeat.js +2 -2
  79. package/dist/esm/Seats/ReleaseSeat/ReleaseSeat.js.map +1 -1
  80. package/dist/esm/Seats/SeatRoster.d.ts.map +1 -1
  81. package/dist/esm/Seats/SeatRoster.js +1 -1
  82. package/dist/esm/Seats/SeatRoster.js.map +1 -1
  83. package/dist/esm/Seats/SeatStanding.d.ts.map +1 -1
  84. package/dist/esm/Seats/SeatStanding.js +1 -1
  85. package/dist/esm/Seats/SeatStanding.js.map +1 -1
  86. package/package.json +7 -7
@@ -1 +1 @@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AKD,qBAAa,cAAc;IAMvB,EAAE,EAAG,MAAM,CAAC;IAMZ,SAAS,EAAG,OAAO,CAAC;IAMpB,KAAK,EAAG,eAAe,CAAC;IAMxB,SAAS,EAAG,IAAI,CAAC;IAMjB,cAAc,EAAG,cAAc,CAAC;CACnC"}
@@ -28,7 +28,7 @@ function _ts_metadata(metadataKey, metadataValue) {
28
28
  /**
29
29
  * Gets why the tenant can not change anything, so the frontend can show a banner.
30
30
  */ class CurrentStanding extends queries.QueryFor {
31
- static sliceLocation = new reflection.SliceLocation('', '', 'Entitlements');
31
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Entitlements');
32
32
  route = '/api/entitlements/current-standing';
33
33
  queryName = 'Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding.CurrentStanding';
34
34
  treatWarningsAsErrors = false;
@@ -1 +1 @@
1
- {"version":3,"file":"TenantStanding.js","sources":["../../../Entitlements/TenantStanding.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.TenantStanding, Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding. Time: 2026-10-31T09:02:25.7507330Z. Hash: 9F7FF02F16AC433A673F260D47C431082557136B3BEB973B6ED7B81A178AD861\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 { ReadOnlyReason } from './ReadOnlyReason';\nimport { SuspensionCause } from '../Contracts/Tenants/SuspensionCause';\n\n/**\n * Gets why the tenant can not change anything, so the frontend can show a banner.\n */\nexport class CurrentStanding extends QueryFor<TenantStanding> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Entitlements');\n readonly route: string = '/api/entitlements/current-standing';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding.CurrentStanding';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: TenantStanding = {} as TenantStanding;\n\n constructor() {\n super(TenantStanding, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<TenantStanding>, PerformQuery, SetSorting] {\n return useQuery<TenantStanding, CurrentStanding>(CurrentStanding);\n }\n\n static useSuspense(): [QueryResultWithState<TenantStanding>, PerformQuery, SetSorting] {\n return useSuspenseQuery<TenantStanding, CurrentStanding>(CurrentStanding);\n }\n\n static when(condition: boolean): QueryWhen<CurrentStanding, TenantStanding> {\n return new QueryWhen<CurrentStanding, TenantStanding>(CurrentStanding, condition);\n }\n}\n\n/**\n * Whether the operator suspended a tenant, and the reason the tenant is read-only when it is, for the frontend to show.\n */\nexport class TenantStanding {\n\n /**\n * The id of the tenant's stream.\n */\n @field(String)\n id!: string;\n\n /**\n * Whether the operator has the tenant suspended.\n */\n @field(Boolean)\n suspended!: boolean;\n\n /**\n * Why the operator suspended the tenant, while it does.\n */\n @field(Number)\n cause!: SuspensionCause;\n\n /**\n * When the operator made the decision that stands. A decision that arrives after a newer one is ignored.\n */\n @field(Date)\n decidedAt!: Date;\n\n /**\n * Why the tenant can read but not change anything, evaluated when it is read; none when it can.\n */\n @field(Number)\n readOnlyReason!: ReadOnlyReason;\n}\n"],"names":["CurrentStanding","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","TenantStanding","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","id","suspended","cause","decidedAt","readOnlyReason"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;IAGO,MAAMA,eAAAA,SAAwBC,gBAAAA,CAAAA;AACjC,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,cAAA,CAAA;AACtEC,IAAAA,KAAAA,GAAgB,oCAAA;AAChBC,IAAAA,SAAAA,GAAoB,yEAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA+B,EAAC;IAEzC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,cAAAA,EAAgB,KAAA,CAAA;AAC1B,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAAwE;AAC3E,QAAA,OAAOC,kBAAAA,CAA0Cb,eAAAA,CAAAA;AACrD,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAAgF;AACnF,QAAA,OAAOC,0BAAAA,CAAkDf,eAAAA,CAAAA;AAC7D,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAA8C;QACxE,OAAO,IAAIC,oBAA2ClB,eAAAA,EAAiBiB,SAAAA,CAAAA;AAC3E,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,cAAAA,CAAAA;AAET;;AAEC,QACD,EACAU;AAEA;;AAEC,QACD,SACAC;AAEA;;AAEC,QACD,KACAC;AAEA;;AAEC,QACD,SACAC;AAEA;;AAEC,QACD,cACAC;AACJ;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"TenantStanding.js","sources":["../../../Entitlements/TenantStanding.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.TenantStanding, Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding. Time: 2026-11-11T04:34:24.5807960Z. Hash: 8AFCA12C398CF86BC6A9F880713AC55DF855D138496E21B39E71FC6BD85B3B05\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 { ReadOnlyReason } from './ReadOnlyReason';\nimport { SuspensionCause } from '../Contracts/Tenants/SuspensionCause';\n\n/**\n * Gets why the tenant can not change anything, so the frontend can show a banner.\n */\nexport class CurrentStanding extends QueryFor<TenantStanding> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Entitlements');\n readonly route: string = '/api/entitlements/current-standing';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Entitlements.TenantStanding.CurrentStanding';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: TenantStanding = {} as TenantStanding;\n\n constructor() {\n super(TenantStanding, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<TenantStanding>, PerformQuery, SetSorting] {\n return useQuery<TenantStanding, CurrentStanding>(CurrentStanding);\n }\n\n static useSuspense(): [QueryResultWithState<TenantStanding>, PerformQuery, SetSorting] {\n return useSuspenseQuery<TenantStanding, CurrentStanding>(CurrentStanding);\n }\n\n static when(condition: boolean): QueryWhen<CurrentStanding, TenantStanding> {\n return new QueryWhen<CurrentStanding, TenantStanding>(CurrentStanding, condition);\n }\n}\n\n/**\n * Whether the operator suspended a tenant, and the reason the tenant is read-only when it is, for the frontend to show.\n */\nexport class TenantStanding {\n\n /**\n * The id of the tenant's stream.\n */\n @field(String)\n id!: string;\n\n /**\n * Whether the operator has the tenant suspended.\n */\n @field(Boolean)\n suspended!: boolean;\n\n /**\n * Why the operator suspended the tenant, while it does.\n */\n @field(Number)\n cause!: SuspensionCause;\n\n /**\n * When the operator made the decision that stands. A decision that arrives after a newer one is ignored.\n */\n @field(Date)\n decidedAt!: Date;\n\n /**\n * Why the tenant can read but not change anything, evaluated when it is read; none when it can.\n */\n @field(Number)\n readOnlyReason!: ReadOnlyReason;\n}\n"],"names":["CurrentStanding","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","TenantStanding","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","id","suspended","cause","decidedAt","readOnlyReason"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;IAGO,MAAMA,eAAAA,SAAwBC,gBAAAA,CAAAA;AACjC,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,cAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,oCAAA;AAChBC,IAAAA,SAAAA,GAAoB,yEAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA+B,EAAC;IAEzC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,cAAAA,EAAgB,KAAA,CAAA;AAC1B,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAAwE;AAC3E,QAAA,OAAOC,kBAAAA,CAA0Cb,eAAAA,CAAAA;AACrD,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAAgF;AACnF,QAAA,OAAOC,0BAAAA,CAAkDf,eAAAA,CAAAA;AAC7D,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAA8C;QACxE,OAAO,IAAIC,oBAA2Cl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AAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIlJ,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;CAG9D;AAKD,qBAAa,KAAK;IAMd,EAAE,EAAG,IAAI,CAAC;IAMV,IAAI,EAAG,MAAM,CAAC;IAMd,OAAO,EAAG,MAAM,EAAE,CAAC;IAMnB,aAAa,EAAG,MAAM,CAAC;IAMvB,MAAM,EAAG,UAAU,EAAE,CAAC;IAMtB,SAAS,EAAG,OAAO,CAAC;CACvB"}
@@ -89,14 +89,14 @@ class OnSaleSortByWithoutQuery {
89
89
  /**
90
90
  * Gets the offers on sale.
91
91
  */ class OnSale extends queries.QueryFor {
92
- static sliceLocation = new reflection.SliceLocation('', '', 'Offers');
92
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Offers');
93
93
  route = '/api/offers/on-sale';
94
94
  queryName = 'Cratis.Showrunner.BoxOffice.Offers.Offer.OnSale';
95
95
  treatWarningsAsErrors = false;
96
96
  roles = [];
97
97
  defaultValue = [];
98
98
  _sortBy;
99
- static _sortBy = new OnSaleSortByWithoutQuery();
99
+ static _sortBy = /*#__PURE__*/ new OnSaleSortByWithoutQuery();
100
100
  constructor(){
101
101
  super(Offer, true);
102
102
  this._sortBy = new OnSaleSortBy(this);
@@ -1 +1 @@
1
- {"version":3,"file":"Offer.js","sources":["../../../Offers/Offer.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.Offers.Offer, Cratis.Showrunner.BoxOffice.Offers.Offer. Time: 2026-10-31T09:00:17.5207780Z. Hash: 7673DE0FEE8F93BA649B9A59208C8F68E85A8D9E65582D8B2439BDF2A8952D2C\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 { Guid, field } from '@cratis/fundamentals';\nimport { OfferPrice } from '../Contracts/Offers/OfferPrice';\n\nclass OnSaleSortBy {\n private _id: SortingActionsForQuery<Offer[]>;\n private _includedSeats: SortingActionsForQuery<Offer[]>;\n private _modules: SortingActionsForQuery<Offer[]>;\n private _name: SortingActionsForQuery<Offer[]>;\n private _prices: SortingActionsForQuery<Offer[]>;\n private _withdrawn: SortingActionsForQuery<Offer[]>;\n\n constructor(readonly query: OnSale) {\n this._id = new SortingActionsForQuery<Offer[]>('id', query);\n this._includedSeats = new SortingActionsForQuery<Offer[]>('includedSeats', query);\n this._modules = new SortingActionsForQuery<Offer[]>('modules', query);\n this._name = new SortingActionsForQuery<Offer[]>('name', query);\n this._prices = new SortingActionsForQuery<Offer[]>('prices', query);\n this._withdrawn = new SortingActionsForQuery<Offer[]>('withdrawn', query);\n }\n\n get id(): SortingActionsForQuery<Offer[]> {\n return this._id;\n }\n get includedSeats(): SortingActionsForQuery<Offer[]> {\n return this._includedSeats;\n }\n get modules(): SortingActionsForQuery<Offer[]> {\n return this._modules;\n }\n get name(): SortingActionsForQuery<Offer[]> {\n return this._name;\n }\n get prices(): SortingActionsForQuery<Offer[]> {\n return this._prices;\n }\n get withdrawn(): SortingActionsForQuery<Offer[]> {\n return this._withdrawn;\n }\n}\n\nclass OnSaleSortByWithoutQuery {\n private _id: SortingActions = new SortingActions('id');\n private _includedSeats: SortingActions = new SortingActions('includedSeats');\n private _modules: SortingActions = new SortingActions('modules');\n private _name: SortingActions = new SortingActions('name');\n private _prices: SortingActions = new SortingActions('prices');\n private _withdrawn: SortingActions = new SortingActions('withdrawn');\n\n get id(): SortingActions {\n return this._id;\n }\n get includedSeats(): SortingActions {\n return this._includedSeats;\n }\n get modules(): SortingActions {\n return this._modules;\n }\n get name(): SortingActions {\n return this._name;\n }\n get prices(): SortingActions {\n return this._prices;\n }\n get withdrawn(): SortingActions {\n return this._withdrawn;\n }\n}\n\n\n/**\n * Gets the offers on sale.\n */\nexport class OnSale extends QueryFor<Offer[]> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Offers');\n readonly route: string = '/api/offers/on-sale';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Offers.Offer.OnSale';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: Offer[] = [];\n private readonly _sortBy: OnSaleSortBy;\n private static readonly _sortBy: OnSaleSortByWithoutQuery = new OnSaleSortByWithoutQuery();\n\n constructor() {\n super(Offer, true);\n this._sortBy = new OnSaleSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): OnSaleSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): OnSaleSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting] {\n return useQuery<Offer[], OnSale>(OnSale, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useQueryWithPaging<Offer[], OnSale>(OnSale, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting] {\n return useSuspenseQuery<Offer[], OnSale>(OnSale, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useSuspenseQueryWithPaging<Offer[], OnSale>(OnSale, new Paging(0, pageSize), undefined, sorting);\n }\n\n static when(condition: boolean): QueryWhen<OnSale, Offer[]> {\n return new QueryWhen<OnSale, Offer[]>(OnSale, condition);\n }\n}\n\n/**\n * An offer the operator sells the product under, kept for the plan page. A withdrawn offer stays as it was, marked withdrawn: tenants that have it keep it.\n */\nexport class Offer {\n\n /**\n * The id of the offer.\n */\n @field(Guid)\n id!: Guid;\n\n /**\n * The name of the offer.\n */\n @field(String)\n name!: string;\n\n /**\n * The modules the offer includes.\n */\n @field(String, true)\n modules!: string[];\n\n /**\n * The seats the offer includes.\n */\n @field(Number)\n includedSeats!: number;\n\n /**\n * What the offer costs.\n */\n @field(OfferPrice, true)\n prices!: OfferPrice[];\n\n /**\n * Whether the operator stopped selling it.\n */\n @field(Boolean)\n withdrawn!: boolean;\n}\n"],"names":["OnSaleSortBy","_id","_includedSeats","_modules","_name","_prices","_withdrawn","query","SortingActionsForQuery","id","includedSeats","modules","name","prices","withdrawn","OnSaleSortByWithoutQuery","SortingActions","OnSale","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","Offer","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useQuery","undefined","useWithPaging","pageSize","useQueryWithPaging","Paging","useSuspense","useSuspenseQuery","useSuspenseWithPaging","useSuspenseQueryWithPaging","when","condition","QueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAMA,YAAAA,CAAAA;;IACMC,GAAAA;IACAC,cAAAA;IACAC,QAAAA;IACAC,KAAAA;IACAC,OAAAA;IACAC,UAAAA;IAER,WAAA,CAAqBC,KAAa,CAAE;aAAfA,KAAAA,GAAAA,KAAAA;AACjB,QAAA,IAAI,CAACN,GAAG,GAAG,IAAIO,+BAAgC,IAAA,EAAMD,KAAAA,CAAAA;AACrD,QAAA,IAAI,CAACL,cAAc,GAAG,IAAIM,+BAAgC,eAAA,EAAiBD,KAAAA,CAAAA;AAC3E,QAAA,IAAI,CAACJ,QAAQ,GAA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AAOG,aAAAA,CAAcC,QAAgB,EAAEJ,OAAiB,EAAmF;AACvI,QAAA,OAAOK,6BAAoCpB,MAAAA,EAAQ,IAAIqB,cAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AAC3F,IAAA;IAEA,OAAOO,WAAAA,CAAYP,OAAiB,EAA6D;QAC7F,OAAOQ,0BAAAA,CAAkCvB,QAAQiB,SAAAA,EAAWF,OAAAA,CAAAA;AAChE,IAAA;AAEA,IAAA,OAAOS,qBAAAA,CAAsBL,QAAgB,EAAEJ,OAAiB,EAAmF;AAC/I,QAAA,OAAOU,qCAA4CzB,MAAAA,EAAQ,IAAIqB,cAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AACnG,IAAA;IAEA,OAAOW,IAAAA,CAAKC,SAAkB,EAA8B;QACxD,OAAO,IAAIC,oBAA2B5B,MAAAA,EAAQ2B,SAAAA,CAAAA;AAClD,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMjB,KAAAA,CAAAA;AAET;;AAEC,QACD,EACAlB;AAEA;;AAEC,QACD,IACAG;AAEA;;AAEC,QACD,OACAD;AAEA;;AAEC,QACD,aACAD;AAEA;;AAEC,QACD,MACAG;AAEA;;AAEC,QACD,SACAC;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Offer.js","sources":["../../../Offers/Offer.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.Offers.Offer, Cratis.Showrunner.BoxOffice.Offers.Offer. Time: 2026-11-11T04:34:24.5807960Z. Hash: 72BC7BB10E01E5A0D8D172D7E0C7460E10E2C980F2887C84F8689B5943F3F374\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 { Guid, field } from '@cratis/fundamentals';\nimport { OfferPrice } from '../Contracts/Offers/OfferPrice';\n\nclass OnSaleSortBy {\n private _id: SortingActionsForQuery<Offer[]>;\n private _includedSeats: SortingActionsForQuery<Offer[]>;\n private _modules: SortingActionsForQuery<Offer[]>;\n private _name: SortingActionsForQuery<Offer[]>;\n private _prices: SortingActionsForQuery<Offer[]>;\n private _withdrawn: SortingActionsForQuery<Offer[]>;\n\n constructor(readonly query: OnSale) {\n this._id = new SortingActionsForQuery<Offer[]>('id', query);\n this._includedSeats = new SortingActionsForQuery<Offer[]>('includedSeats', query);\n this._modules = new SortingActionsForQuery<Offer[]>('modules', query);\n this._name = new SortingActionsForQuery<Offer[]>('name', query);\n this._prices = new SortingActionsForQuery<Offer[]>('prices', query);\n this._withdrawn = new SortingActionsForQuery<Offer[]>('withdrawn', query);\n }\n\n get id(): SortingActionsForQuery<Offer[]> {\n return this._id;\n }\n get includedSeats(): SortingActionsForQuery<Offer[]> {\n return this._includedSeats;\n }\n get modules(): SortingActionsForQuery<Offer[]> {\n return this._modules;\n }\n get name(): SortingActionsForQuery<Offer[]> {\n return this._name;\n }\n get prices(): SortingActionsForQuery<Offer[]> {\n return this._prices;\n }\n get withdrawn(): SortingActionsForQuery<Offer[]> {\n return this._withdrawn;\n }\n}\n\nclass OnSaleSortByWithoutQuery {\n private _id: SortingActions = new SortingActions('id');\n private _includedSeats: SortingActions = new SortingActions('includedSeats');\n private _modules: SortingActions = new SortingActions('modules');\n private _name: SortingActions = new SortingActions('name');\n private _prices: SortingActions = new SortingActions('prices');\n private _withdrawn: SortingActions = new SortingActions('withdrawn');\n\n get id(): SortingActions {\n return this._id;\n }\n get includedSeats(): SortingActions {\n return this._includedSeats;\n }\n get modules(): SortingActions {\n return this._modules;\n }\n get name(): SortingActions {\n return this._name;\n }\n get prices(): SortingActions {\n return this._prices;\n }\n get withdrawn(): SortingActions {\n return this._withdrawn;\n }\n}\n\n\n/**\n * Gets the offers on sale.\n */\nexport class OnSale extends QueryFor<Offer[]> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Offers');\n readonly route: string = '/api/offers/on-sale';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Offers.Offer.OnSale';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: Offer[] = [];\n private readonly _sortBy: OnSaleSortBy;\n private static readonly _sortBy: OnSaleSortByWithoutQuery = /*#__PURE__*/ new OnSaleSortByWithoutQuery();\n\n constructor() {\n super(Offer, true);\n this._sortBy = new OnSaleSortBy(this);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n get sortBy(): OnSaleSortBy {\n return this._sortBy;\n }\n\n static get sortBy(): OnSaleSortByWithoutQuery {\n return this._sortBy;\n }\n\n static use(sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting] {\n return useQuery<Offer[], OnSale>(OnSale, undefined, sorting);\n }\n\n static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useQueryWithPaging<Offer[], OnSale>(OnSale, new Paging(0, pageSize), undefined, sorting);\n }\n\n static useSuspense(sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting] {\n return useSuspenseQuery<Offer[], OnSale>(OnSale, undefined, sorting);\n }\n\n static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<Offer[]>, PerformQuery, SetSorting, SetPage, SetPageSize] {\n return useSuspenseQueryWithPaging<Offer[], OnSale>(OnSale, new Paging(0, pageSize), undefined, sorting);\n }\n\n static when(condition: boolean): QueryWhen<OnSale, Offer[]> {\n return new QueryWhen<OnSale, Offer[]>(OnSale, condition);\n }\n}\n\n/**\n * An offer the operator sells the product under, kept for the plan page. A withdrawn offer stays as it was, marked withdrawn: tenants that have it keep it.\n */\nexport class Offer {\n\n /**\n * The id of the offer.\n */\n @field(Guid)\n id!: Guid;\n\n /**\n * The name of the offer.\n */\n @field(String)\n name!: string;\n\n /**\n * The modules the offer includes.\n */\n @field(String, true)\n modules!: string[];\n\n /**\n * The seats the offer includes.\n */\n @field(Number)\n includedSeats!: number;\n\n /**\n * What the offer costs.\n */\n @field(OfferPrice, true)\n prices!: OfferPrice[];\n\n /**\n * Whether the operator stopped selling it.\n */\n @field(Boolean)\n withdrawn!: boolean;\n}\n"],"names":["OnSaleSortBy","_id","_includedSeats","_modules","_name","_prices","_withdrawn","query","SortingActionsForQuery","id","includedSeats","modules","name","prices","withdrawn","OnSaleSortByWithoutQuery","SortingActions","OnSale","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","_sortBy","Offer","requiredRequestParameters","parameterDescriptors","sortBy","use","sorting","useQuery","undefined","useWithPaging","pageSize","useQueryWithPaging","Paging","useSuspense","useSuspenseQuery","useSuspenseWithPaging","useSuspenseQueryWithPaging","when","condition","QueryWhen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAMA,YAAAA,CAAAA;;IACMC,GAAAA;IACAC,cAAAA;IACAC,QAAAA;IACAC,KAAAA;IACAC,OAAAA;IACAC,UAAAA;IAER,WAAA,CAAqBC,KAAa,CAAE;aAAfA,KAAAA,GAAAA,KAAAA;AACjB,QAAA,IAAI,CAACN,GAAG,GAAG,IAAIO,+BAAgC,IAAA,EAAMD,KAAAA,CAAAA;AACrD,QAAA,IAAI,CAACL,cAAc,GAAG,IAAIM,+BAAgC,eAAA,EAAiBD,KAAAA,CAAAA;AAC3E,QAAA,IAAI,CAACJ,QAAQ,GAA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AC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,YAAY,EAAE,UAAU,EAAE,sBAAsB,CAAC;CAG/F;AAKD,qBAAa,UAAU;IAMnB,GAAG,EAAG,MAAM,CAAC;CAChB"}
@@ -26,7 +26,7 @@ function _ts_metadata(metadataKey, metadataValue) {
26
26
  /**
27
27
  * Gets a link to the customer portal for what the signed-in user wants to do there.
28
28
  */ class LinkToPortal extends queries.QueryFor {
29
- static sliceLocation = new reflection.SliceLocation('', '', 'Portal');
29
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Portal');
30
30
  route = '/api/portal/link-to-portal';
31
31
  queryName = 'Cratis.Showrunner.BoxOffice.Portal.PortalLink.LinkToPortal';
32
32
  treatWarningsAsErrors = false;
@@ -1 +1 @@
1
- {"version":3,"file":"PortalLink.js","sources":["../../../Portal/PortalLink.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.Portal.PortalLink, Cratis.Showrunner.BoxOffice.Portal.PortalLink. Time: 2026-10-31T13:17:43.2153370Z. Hash: F030CA3919A960F9398AE19085D9D6EBEAE801ADF3AC85195CCE96248C737744\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 { Guid, field } from '@cratis/fundamentals';\nimport { PortalIntent } from './PortalIntent';\n\n/**\n * Gets a link to the customer portal for what the signed-in user wants to do there.\n */\nexport interface LinkToPortalParameters {\n\n /**\n * What the user wants to do.\n */\n intent: PortalIntent;\n\n /**\n * The offer the user looked at, when they did.\n */\n offer?: Guid;\n}\n\n\n/**\n * Gets a link to the customer portal for what the signed-in user wants to do there.\n */\nexport class LinkToPortal extends QueryFor<PortalLink, LinkToPortalParameters> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Portal');\n readonly route: string = '/api/portal/link-to-portal';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Portal.PortalLink.LinkToPortal';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: PortalLink = {} as PortalLink;\n\n constructor() {\n super(PortalLink, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n 'intent',\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n new ParameterDescriptor('intent', Number, false),\n new ParameterDescriptor('offer', Guid, false),\n ];\n\n intent!: PortalIntent;\n offer!: Guid;\n\n\n static use(args?: LinkToPortalParameters): [QueryResultWithState<PortalLink>, PerformQuery<LinkToPortalParameters>, SetSorting] {\n return useQuery<PortalLink, LinkToPortal, LinkToPortalParameters>(LinkToPortal, args);\n }\n\n static useSuspense(args?: LinkToPortalParameters): [QueryResultWithState<PortalLink>, PerformQuery<LinkToPortalParameters>, SetSorting] {\n return useSuspenseQuery<PortalLink, LinkToPortal, LinkToPortalParameters>(LinkToPortal, args);\n }\n\n static when(condition: boolean): QueryWhen<LinkToPortal, PortalLink, LinkToPortalParameters> {\n return new QueryWhen<LinkToPortal, PortalLink, LinkToPortalParameters>(LinkToPortal, condition);\n }\n}\n\n/**\n * A link that opens the operator's customer portal for the signed-in user's tenant.\n */\nexport class PortalLink {\n\n /**\n * The link, which stops working after a while.\n */\n @field(String)\n url!: string;\n}\n"],"names":["LinkToPortal","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","PortalLink","requiredRequestParameters","parameterDescriptors","ParameterDescriptor","Number","Guid","intent","offer","use","args","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","url"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;;IAGO,MAAMA,YAAAA,SAAqBC,gBAAAA,CAAAA;AAC9B,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,QAAA,CAAA;AACtEC,IAAAA,KAAAA,GAAgB,4BAAA;AAChBC,IAAAA,SAAAA,GAAoB,4DAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA2B,EAAC;IAErC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,UAAAA,EAAY,KAAA,CAAA;AACtB,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;QACtC,OAAO;AACH,YAAA;AACH,SAAA;AACL,IAAA;IAESC,oBAAAA,GAA8C;QACnD,IAAIC,8BAAAA,CAAoB,UAAUC,MAAAA,EAAQ,KAAA,CAAA;QAC1C,IAAID,8BAAAA,CAAoB,SAASE,iBAAAA,EAAM,KAAA;KAC1C;IAEDC,MAAAA;IACAC,KAAAA;IAGA,OAAOC,GAAAA,CAAIC,IAA6B,EAAwF;AAC5H,QAAA,OAAOC,mBAA2DnB,YAAAA,EAAckB,IAAAA,CAAAA;AACpF,IAAA;IAEA,OAAOE,WAAAA,CAAYF,IAA6B,EAAwF;AACpI,QAAA,OAAOG,2BAAmErB,YAAAA,EAAckB,IAAAA,CAAAA;AAC5F,IAAA;IAEA,OAAOI,IAAAA,CAAKC,SAAkB,EAA+D;QACzF,OAAO,IAAIC,oBAA4DxB,YAAAA,EAAcuB,SAAAA,CAAAA;AACzF,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMd,UAAAA,CAAAA;AAET;;AAEC,QACD,GACAgB;AACJ;;;;;;;"}
1
+ {"version":3,"file":"PortalLink.js","sources":["../../../Portal/PortalLink.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.Portal.PortalLink, Cratis.Showrunner.BoxOffice.Portal.PortalLink. Time: 2026-11-11T04:34:24.5807960Z. Hash: E4E66E27A4FFFBA083577B566586E436915617AE1C906F72BCCB42ECDB18A4C6\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 { Guid, field } from '@cratis/fundamentals';\nimport { PortalIntent } from './PortalIntent';\n\n/**\n * Gets a link to the customer portal for what the signed-in user wants to do there.\n */\nexport interface LinkToPortalParameters {\n\n /**\n * What the user wants to do.\n */\n intent: PortalIntent;\n\n /**\n * The offer the user looked at, when they did.\n */\n offer?: Guid;\n}\n\n\n/**\n * Gets a link to the customer portal for what the signed-in user wants to do there.\n */\nexport class LinkToPortal extends QueryFor<PortalLink, LinkToPortalParameters> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Portal');\n readonly route: string = '/api/portal/link-to-portal';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Portal.PortalLink.LinkToPortal';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: PortalLink = {} as PortalLink;\n\n constructor() {\n super(PortalLink, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n 'intent',\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n new ParameterDescriptor('intent', Number, false),\n new ParameterDescriptor('offer', Guid, false),\n ];\n\n intent!: PortalIntent;\n offer!: Guid;\n\n\n static use(args?: LinkToPortalParameters): [QueryResultWithState<PortalLink>, PerformQuery<LinkToPortalParameters>, SetSorting] {\n return useQuery<PortalLink, LinkToPortal, LinkToPortalParameters>(LinkToPortal, args);\n }\n\n static useSuspense(args?: LinkToPortalParameters): [QueryResultWithState<PortalLink>, PerformQuery<LinkToPortalParameters>, SetSorting] {\n return useSuspenseQuery<PortalLink, LinkToPortal, LinkToPortalParameters>(LinkToPortal, args);\n }\n\n static when(condition: boolean): QueryWhen<LinkToPortal, PortalLink, LinkToPortalParameters> {\n return new QueryWhen<LinkToPortal, PortalLink, LinkToPortalParameters>(LinkToPortal, condition);\n }\n}\n\n/**\n * A link that opens the operator's customer portal for the signed-in user's tenant.\n */\nexport class PortalLink {\n\n /**\n * The link, which stops working after a while.\n */\n @field(String)\n url!: string;\n}\n"],"names":["LinkToPortal","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","PortalLink","requiredRequestParameters","parameterDescriptors","ParameterDescriptor","Number","Guid","intent","offer","use","args","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","url"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;;IAGO,MAAMA,YAAAA,SAAqBC,gBAAAA,CAAAA;AAC9B,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,QAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,4BAAA;AAChBC,IAAAA,SAAAA,GAAoB,4DAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA2B,EAAC;IAErC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,UAAAA,EAAY,KAAA,CAAA;AACtB,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;QACtC,OAAO;AACH,YAAA;AACH,SAAA;AACL,IAAA;IAESC,oBAAAA,GAA8C;QACnD,IAAIC,8BAAAA,CAAoB,UAAUC,MAAAA,EAAQ,KAAA,CAAA;QAC1C,IAAID,8BAAAA,CAAoB,SAASE,iBAAAA,EAAM,KAAA;KAC1C;IAEDC,MAAAA;IACAC,KAAAA;IAGA,OAAOC,GAAAA,CAAIC,IAA6B,EAAwF;AAC5H,QAAA,OAAOC,mBAA2DnB,YAAAA,EAAckB,IA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require('../../Contracts/People/Person.js');
8
8
  // Copyright (c) Cratis. All rights reserved.
9
9
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
10
10
  // **DO NOT EDIT** - This file is an automatically generated file.
11
- // @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.AssignSeat.AssignSeat. Time: 2026-10-31T09:03:53.6634510Z. Hash: 834A20C74AD08819B5ECA7A079B4BBC21A7EE254179F8E25ED929BDDD8B2E0DB
11
+ // @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.AssignSeat.AssignSeat. Time: 2026-11-11T04:34:24.5807960Z. Hash: ED6E9C61A2F53AB2ABE9D5344946DA42233E402EE63DA7F5842350E7AA954579
12
12
  /**
13
13
  * 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.
14
14
  */ class AssignSeat extends commands.Command {
15
- static sliceLocation = new reflection.SliceLocation('', 'Seats', 'AssignSeat');
15
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Seats', 'AssignSeat');
16
16
  route = '/api/seats/assign-seat';
17
17
  treatWarningsAsErrors = false;
18
18
  roles = [];
@@ -1 +1 @@
1
- {"version":3,"file":"AssignSeat.js","sources":["../../../../Seats/AssignSeat/AssignSeat.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.Seats.AssignSeat.AssignSeat. Time: 2026-10-31T09:03:53.6634510Z. Hash: 834A20C74AD08819B5ECA7A079B4BBC21A7EE254179F8E25ED929BDDD8B2E0DB\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { Person } from '../../Contracts/People/Person';\n\n/**\n * 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.\n */\nexport interface IAssignSeat {\n\n /**\n * The person to give a seat.\n */\n holder?: Person;\n}\n\n\n/**\n * 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.\n */\nexport class AssignSeat extends Command<IAssignSeat, Record<string, unknown>[]> implements IAssignSeat {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Seats', 'AssignSeat');\n readonly route: string = '/api/seats/assign-seat';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('holder', Person, false),\n ];\n\n #holder!: Person;\n\n constructor() {\n super(Object, true);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The person to give a seat.\n */\n get holder(): Person {\n return this.#holder;\n }\n\n set holder(value: Person) {\n this.#holder = value;\n this.propertyChanged('holder');\n }\n\n static use(initialValues?: IAssignSeat): [AssignSeat, SetCommandValues<IAssignSeat>, ClearCommandValues] {\n return useCommand<AssignSeat, IAssignSeat, Record<string, unknown>[]>(AssignSeat, initialValues);\n }\n}\n"],"names":["AssignSeat","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","Person","Object","requestParameters","holder","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAkBA;;IAGO,MAAMA,UAAAA,SAAmBC,gBAAAA,CAAAA;AAC5B,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,SAAS,YAAA,CAAA;AAC3EC,IAAAA,KAAAA,GAAgB,wBAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,UAAUC,aAAAA,EAAQ,KAAA;KAC5C;AAED,IAAA,OAAO;IAEP,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,MAAAA,GAAiB;QACjB,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOC,KAAa,EAAE;QACtB,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAA2B,EAAmE;AACrG,QAAA,OAAOC,sBAA+DjB,UAAAA,EAAYgB,aAAAA,CAAAA;AACtF,IAAA;AACJ;;"}
1
+ {"version":3,"file":"AssignSeat.js","sources":["../../../../Seats/AssignSeat/AssignSeat.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.Seats.AssignSeat.AssignSeat. Time: 2026-11-11T04:34:24.5807960Z. Hash: ED6E9C61A2F53AB2ABE9D5344946DA42233E402EE63DA7F5842350E7AA954579\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { Person } from '../../Contracts/People/Person';\n\n/**\n * 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.\n */\nexport interface IAssignSeat {\n\n /**\n * The person to give a seat.\n */\n holder?: Person;\n}\n\n\n/**\n * 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.\n */\nexport class AssignSeat extends Command<IAssignSeat, Record<string, unknown>[]> implements IAssignSeat {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seats', 'AssignSeat');\n readonly route: string = '/api/seats/assign-seat';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('holder', Person, false),\n ];\n\n #holder!: Person;\n\n constructor() {\n super(Object, true);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The person to give a seat.\n */\n get holder(): Person {\n return this.#holder;\n }\n\n set holder(value: Person) {\n this.#holder = value;\n this.propertyChanged('holder');\n }\n\n static use(initialValues?: IAssignSeat): [AssignSeat, SetCommandValues<IAssignSeat>, ClearCommandValues] {\n return useCommand<AssignSeat, IAssignSeat, Record<string, unknown>[]>(AssignSeat, initialValues);\n }\n}\n"],"names":["AssignSeat","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","Person","Object","requestParameters","holder","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAkBA;;IAGO,MAAMA,UAAAA,SAAmBC,gBAAAA,CAAAA;AAC5B,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,SAAS,YAAA,CAAA;AACzFC,IAAAA,KAAAA,GAAgB,wBAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,UAAUC,aAAAA,EAAQ,KAAA;KAC5C;AAED,IAAA,OAAO;IAEP,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,IAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO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}
@@ -8,11 +8,11 @@ var SeatHolder = require('../SeatHolder.js');
8
8
  // Copyright (c) Cratis. All rights reserved.
9
9
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
10
10
  // **DO NOT EDIT** - This file is an automatically generated file.
11
- // @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.ReleaseSeat.ReleaseSeat. Time: 2026-10-31T09:03:53.6634510Z. Hash: 3E8FA78841F3DED803521E5248997435EC46D1B561308E0E0E21FAC68D590825
11
+ // @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Seats.ReleaseSeat.ReleaseSeat. Time: 2026-11-11T04:34:24.5807960Z. Hash: 21AAA01E56985EB385F4274E6431E3C801C7E57F62894C064F9369E0061C71C2
12
12
  /**
13
13
  * Takes a seat back from a person, so someone else can have it. Releasing a seat nobody holds records nothing.
14
14
  */ class ReleaseSeat extends commands.Command {
15
- static sliceLocation = new reflection.SliceLocation('', 'Seats', 'ReleaseSeat');
15
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', 'Seats', 'ReleaseSeat');
16
16
  route = '/api/seats/release-seat';
17
17
  treatWarningsAsErrors = false;
18
18
  roles = [];
@@ -1 +1 @@
1
- {"version":3,"file":"ReleaseSeat.js","sources":["../../../../Seats/ReleaseSeat/ReleaseSeat.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.Seats.ReleaseSeat.ReleaseSeat. Time: 2026-10-31T09:03:53.6634510Z. Hash: 3E8FA78841F3DED803521E5248997435EC46D1B561308E0E0E21FAC68D590825\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { SeatHolder } from '../SeatHolder';\n\n/**\n * Takes a seat back from a person, so someone else can have it. Releasing a seat nobody holds records nothing.\n */\nexport interface IReleaseSeat {\n\n /**\n * Who holds the seat.\n */\n holder?: SeatHolder;\n}\n\n\n/**\n * Takes a seat back from a person, so someone else can have it. Releasing a seat nobody holds records nothing.\n */\nexport class ReleaseSeat extends Command<IReleaseSeat, Record<string, unknown>[]> implements IReleaseSeat {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Seats', 'ReleaseSeat');\n readonly route: string = '/api/seats/release-seat';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('holder', SeatHolder, false),\n ];\n\n #holder!: SeatHolder;\n\n constructor() {\n super(Object, true);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * Who holds the seat.\n */\n get holder(): SeatHolder {\n return this.#holder;\n }\n\n set holder(value: SeatHolder) {\n this.#holder = value;\n this.propertyChanged('holder');\n }\n\n static use(initialValues?: IReleaseSeat): [ReleaseSeat, SetCommandValues<IReleaseSeat>, ClearCommandValues] {\n return useCommand<ReleaseSeat, IReleaseSeat, Record<string, unknown>[]>(ReleaseSeat, initialValues);\n }\n}\n"],"names":["ReleaseSeat","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","SeatHolder","Object","requestParameters","holder","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAkBA;;IAGO,MAAMA,WAAAA,SAAoBC,gBAAAA,CAAAA;AAC7B,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,SAAS,aAAA,CAAA;AAC3EC,IAAAA,KAAAA,GAAgB,yBAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,UAAUC,qBAAAA,EAAY,KAAA;KAChD;AAED,IAAA,OAAO;IAEP,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,MAAAA,GAAqB;QACrB,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOC,KAAiB,EAAE;QAC1B,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;IAEA,OAAOC,GAAAA,CAAIC,aAA4B,EAAqE;AACxG,QAAA,OAAOC,sBAAiEjB,WAAAA,EAAagB,aAAAA,CAAAA;AACzF,IAAA;AACJ;;"}
1
+ {"version":3,"file":"ReleaseSeat.js","sources":["../../../../Seats/ReleaseSeat/ReleaseSeat.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.Seats.ReleaseSeat.ReleaseSeat. Time: 2026-11-11T04:34:24.5807960Z. Hash: 21AAA01E56985EB385F4274E6431E3C801C7E57F62894C064F9369E0061C71C2\nimport { Command } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { SeatHolder } from '../SeatHolder';\n\n/**\n * Takes a seat back from a person, so someone else can have it. Releasing a seat nobody holds records nothing.\n */\nexport interface IReleaseSeat {\n\n /**\n * Who holds the seat.\n */\n holder?: SeatHolder;\n}\n\n\n/**\n * Takes a seat back from a person, so someone else can have it. Releasing a seat nobody holds records nothing.\n */\nexport class ReleaseSeat extends Command<IReleaseSeat, Record<string, unknown>[]> implements IReleaseSeat {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', 'Seats', 'ReleaseSeat');\n readonly route: string = '/api/seats/release-seat';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('holder', SeatHolder, false),\n ];\n\n #holder!: SeatHolder;\n\n constructor() {\n super(Object, true);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * Who holds the seat.\n */\n get holder(): SeatHolder {\n return this.#holder;\n }\n\n set holder(value: SeatHolder) {\n this.#holder = value;\n this.propertyChanged('holder');\n }\n\n static use(initialValues?: IReleaseSeat): [ReleaseSeat, SetCommandValues<IReleaseSeat>, ClearCommandValues] {\n return useCommand<ReleaseSeat, IReleaseSeat, Record<string, unknown>[]>(ReleaseSeat, initialValues);\n }\n}\n"],"names":["ReleaseSeat","Command","sliceLocation","ArcSliceLocation","route","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","SeatHolder","Object","requestParameters","holder","value","propertyChanged","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAkBA;;IAGO,MAAMA,WAAAA,SAAoBC,gBAAAA,CAAAA;AAC7B,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,SAAS,aAAA,CAAA;AACzFC,IAAAA,KAAAA,GAAgB,yBAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,6BAAAA,CAAmB,UAAUC,qBAAAA,EAAY,KAAA;KAChD;AAED,IAAA,OAAO;IAEP,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,MAAAA,EAAQ,IAAA,CAAA;AAClB,IAAA;AAEA,IAAA,IAAIC,iBAAAA,GAA8B;AAC9B,QAAA,OAAO,EACN;AACL,IA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,MAAM,CAAC,WAAW,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAIlF,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,aAAa,EAAE,UAAU,CAAC;CAGxE;AAKD,qBAAa,UAAU;IAMnB,EAAE,EAAG,MAAM,CAAC;IAMZ,QAAQ,EAAG,WAAW,EAAE,CAAC;IAMzB,IAAI,EAAG,MAAM,CAAC;CACjB"}
@@ -27,7 +27,7 @@ function _ts_metadata(metadataKey, metadataValue) {
27
27
  /**
28
28
  * Gets who holds the tenant's seats, for the product's maintainers.
29
29
  */ class CurrentRoster extends queries.QueryFor {
30
- static sliceLocation = new reflection.SliceLocation('', '', 'Seats');
30
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Seats');
31
31
  route = '/api/seats/current-roster';
32
32
  queryName = 'Cratis.Showrunner.BoxOffice.Seats.SeatRoster.CurrentRoster';
33
33
  treatWarningsAsErrors = false;
@@ -1 +1 @@
1
- {"version":3,"file":"SeatRoster.js","sources":["../../../Seats/SeatRoster.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.Seats.SeatRoster, Cratis.Showrunner.BoxOffice.Seats.SeatRoster. Time: 2026-10-31T09:03:53.6634510Z. Hash: FD02487CB1D5D6D6F91BD26123355AF9B15A79FC3311975D26EB748727234153\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 { SeatHolding } from './SeatHolding';\n\n/**\n * Gets who holds the tenant's seats, for the product's maintainers.\n */\nexport class CurrentRoster extends QueryFor<SeatRoster> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Seats');\n readonly route: string = '/api/seats/current-roster';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Seats.SeatRoster.CurrentRoster';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: SeatRoster = {} as SeatRoster;\n\n constructor() {\n super(SeatRoster, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<SeatRoster>, PerformQuery, SetSorting] {\n return useQuery<SeatRoster, CurrentRoster>(CurrentRoster);\n }\n\n static useSuspense(): [QueryResultWithState<SeatRoster>, PerformQuery, SetSorting] {\n return useSuspenseQuery<SeatRoster, CurrentRoster>(CurrentRoster);\n }\n\n static when(condition: boolean): QueryWhen<CurrentRoster, SeatRoster> {\n return new QueryWhen<CurrentRoster, SeatRoster>(CurrentRoster, condition);\n }\n}\n\n/**\n * Who holds the tenant's seats. Every assignment and release is recorded in the one stream, so a command that reads the roster is guarded against any other assignment or release happening meanwhile.\n */\nexport class SeatRoster {\n\n /**\n * The id of the tenant's stream.\n */\n @field(String)\n id!: string;\n\n /**\n * The seats that are held, in the order they were assigned.\n */\n @field(SeatHolding, true)\n holdings!: SeatHolding[];\n\n /**\n * Gets the seats held.\n */\n @field(Number)\n held!: number;\n}\n"],"names":["CurrentRoster","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","SeatRoster","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","id","holdings","held"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;IAGO,MAAMA,aAAAA,SAAsBC,gBAAAA,CAAAA;AAC/B,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,OAAA,CAAA;AACtEC,IAAAA,KAAAA,GAAgB,2BAAA;AAChBC,IAAAA,SAAAA,GAAoB,4DAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA2B,EAAC;IAErC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,UAAAA,EAAY,KAAA,CAAA;AACtB,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAAoE;AACvE,QAAA,OAAOC,kBAAAA,CAAoCb,aAAAA,CAAAA;AAC/C,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAA4E;AAC/E,QAAA,OAAOC,0BAAAA,CAA4Cf,aAAAA,CAAAA;AACvD,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAAwC;QAClE,OAAO,IAAIC,oBAAqClB,aAAAA,EAAeiB,SAAAA,CAAAA;AACnE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,UAAAA,CAAAA;AAET;;AAEC,QACD,EACAU;AAEA;;AAEC,QACD,QACAC;AAEA;;AAEC,QACD,IACAC;AACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SeatRoster.js","sources":["../../../Seats/SeatRoster.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.Seats.SeatRoster, Cratis.Showrunner.BoxOffice.Seats.SeatRoster. Time: 2026-11-11T04:34:24.5807960Z. Hash: 21FEC8ADAE79BCFF3C03E150D823ED8BDA827D945C87AFB2FF9C87C2BCE49C4A\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 { SeatHolding } from './SeatHolding';\n\n/**\n * Gets who holds the tenant's seats, for the product's maintainers.\n */\nexport class CurrentRoster extends QueryFor<SeatRoster> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seats');\n readonly route: string = '/api/seats/current-roster';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Seats.SeatRoster.CurrentRoster';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: SeatRoster = {} as SeatRoster;\n\n constructor() {\n super(SeatRoster, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<SeatRoster>, PerformQuery, SetSorting] {\n return useQuery<SeatRoster, CurrentRoster>(CurrentRoster);\n }\n\n static useSuspense(): [QueryResultWithState<SeatRoster>, PerformQuery, SetSorting] {\n return useSuspenseQuery<SeatRoster, CurrentRoster>(CurrentRoster);\n }\n\n static when(condition: boolean): QueryWhen<CurrentRoster, SeatRoster> {\n return new QueryWhen<CurrentRoster, SeatRoster>(CurrentRoster, condition);\n }\n}\n\n/**\n * Who holds the tenant's seats. Every assignment and release is recorded in the one stream, so a command that reads the roster is guarded against any other assignment or release happening meanwhile.\n */\nexport class SeatRoster {\n\n /**\n * The id of the tenant's stream.\n */\n @field(String)\n id!: string;\n\n /**\n * The seats that are held, in the order they were assigned.\n */\n @field(SeatHolding, true)\n holdings!: SeatHolding[];\n\n /**\n * Gets the seats held.\n */\n @field(Number)\n held!: number;\n}\n"],"names":["CurrentRoster","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","SeatRoster","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","id","holdings","held"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;IAGO,MAAMA,aAAAA,SAAsBC,gBAAAA,CAAAA;AAC/B,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,OAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,2BAAA;AAChBC,IAAAA,SAAAA,GAAoB,4DAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA2B,EAAC;IAErC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,UAAAA,EAAY,KAAA,CAAA;AACtB,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAAoE;AACvE,QAAA,OAAOC,kBAAAA,CAAoCb,aAAAA,CAAAA;AAC/C,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAA4E;AAC/E,QAAA,OAAOC,0BAAAA,CAA4Cf,aAAAA,CAAAA;AACvD,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAAwC;QAClE,OAAO,IAAIC,oBAAqClB,aAAAA,EAAeiB,SAAAA,CAAAA;AACnE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,UAAAA,CAAAA;AAET;;AAEC,QACD,EACAU;AAEA;;AAEC,QACD,QACAC;AAEA;;AAEC,QACD,IACAC;AACJ;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SeatStanding.d.ts","sourceRoot":"","sources":["../../../Seats/SeatStanding.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,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
30
30
  */ class Mine extends queries.QueryFor {
31
- static sliceLocation = new reflection.SliceLocation('', '', 'Seats');
31
+ static sliceLocation = /*#__PURE__*/ new reflection.SliceLocation('', '', 'Seats');
32
32
  route = '/api/seats/mine';
33
33
  queryName = 'Cratis.Showrunner.BoxOffice.Seats.SeatStanding.Mine';
34
34
  treatWarningsAsErrors = false;
@@ -1 +1 @@
1
- {"version":3,"file":"SeatStanding.js","sources":["../../../Seats/SeatStanding.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.Seats.SeatStanding, Cratis.Showrunner.BoxOffice.Seats.SeatStanding. Time: 2026-10-31T09:03:53.6634510Z. Hash: 9325B377EEBF98696E5ECEB5B751704261AFF178DFED82EA0F5B83B91D087237\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 { ReadOnlyReason } from '../Entitlements/ReadOnlyReason';\nimport { SeatStatus } from './SeatStatus';\n\n/**\n * Gets where the signed-in user stands.\n */\nexport class Mine extends QueryFor<SeatStanding> {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', '', 'Seats');\n readonly route: string = '/api/seats/mine';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Seats.SeatStanding.Mine';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: SeatStanding = {} as SeatStanding;\n\n constructor() {\n super(SeatStanding, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<SeatStanding>, PerformQuery, SetSorting] {\n return useQuery<SeatStanding, Mine>(Mine);\n }\n\n static useSuspense(): [QueryResultWithState<SeatStanding>, PerformQuery, SetSorting] {\n return useSuspenseQuery<SeatStanding, Mine>(Mine);\n }\n\n static when(condition: boolean): QueryWhen<Mine, SeatStanding> {\n return new QueryWhen<Mine, SeatStanding>(Mine, condition);\n }\n}\n\n/**\n * Where the signed-in user stands with the tenant's seats, and why when they hold none they may use.\n */\nexport class SeatStanding {\n\n /**\n * Whether the user holds a seat that is licensed.\n */\n @field(Number)\n status!: SeatStatus;\n\n /**\n * How many seats the tenant may use.\n */\n @field(Number)\n capacity!: number;\n\n /**\n * How many seats are held.\n */\n @field(Number)\n held!: number;\n\n /**\n * Why the tenant can not change anything, when it can not.\n */\n @field(Number)\n readOnlyReason!: ReadOnlyReason;\n}\n"],"names":["Mine","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","SeatStanding","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","status","capacity","held","readOnlyReason"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;IAGO,MAAMA,IAAAA,SAAaC,gBAAAA,CAAAA;AACtB,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,OAAA,CAAA;AACtEC,IAAAA,KAAAA,GAAgB,iBAAA;AAChBC,IAAAA,SAAAA,GAAoB,qDAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;AACpBC,IAAAA,YAAAA,GAA6B,EAAC;IAEvC,WAAA,EAAc;AACV,QAAA,KAAK,CAACC,YAAAA,EAAc,KAAA,CAAA;AACxB,IAAA;AAEA,IAAA,IAAIC,yBAAAA,GAAsC;AACtC,QAAA,OAAO,EACN;AACL,IAAA;AAESC,IAAAA,oBAAAA,GAA8C,EACtD;AAID,IAAA,OAAOC,GAAAA,GAAsE;AACzE,QAAA,OAAOC,kBAAAA,CAA6Bb,IAAAA,CAAAA;AACxC,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAA8E;AACjF,QAAA,OAAOC,0BAAAA,CAAqCf,IAAAA,CAAAA;AAChD,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAAiC;QAC3D,OAAO,IAAIC,oBAA8BlB,IAAAA,EAAMiB,SAAAA,CAAAA;AACnD,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,YAAAA,CAAAA;AAET;;AAEC,QACD,MACAU;AAEA;;AAEC,QACD,QACAC;AAEA;;AAEC,QACD,IACAC;AAEA;;AAEC,QACD,cACAC;AACJ;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SeatStanding.js","sources":["../../../Seats/SeatStanding.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.Seats.SeatStanding, Cratis.Showrunner.BoxOffice.Seats.SeatStanding. Time: 2026-11-11T04:34:24.5807960Z. Hash: 026F783D0DDCD0CB220EE38E7FE63C2137EF76FE64550DC4CE67AAEC5F95D45E\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 { ReadOnlyReason } from '../Entitlements/ReadOnlyReason';\nimport { SeatStatus } from './SeatStatus';\n\n/**\n * Gets where the signed-in user stands.\n */\nexport class Mine extends QueryFor<SeatStanding> {\n static readonly sliceLocation: ArcSliceLocation = /*#__PURE__*/ new ArcSliceLocation('', '', 'Seats');\n readonly route: string = '/api/seats/mine';\n readonly queryName: string = 'Cratis.Showrunner.BoxOffice.Seats.SeatStanding.Mine';\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly defaultValue: SeatStanding = {} as SeatStanding;\n\n constructor() {\n super(SeatStanding, false);\n }\n\n get requiredRequestParameters(): string[] {\n return [\n ];\n }\n\n readonly parameterDescriptors: ParameterDescriptor[] = [\n ];\n\n\n\n static use(): [QueryResultWithState<SeatStanding>, PerformQuery, SetSorting] {\n return useQuery<SeatStanding, Mine>(Mine);\n }\n\n static useSuspense(): [QueryResultWithState<SeatStanding>, PerformQuery, SetSorting] {\n return useSuspenseQuery<SeatStanding, Mine>(Mine);\n }\n\n static when(condition: boolean): QueryWhen<Mine, SeatStanding> {\n return new QueryWhen<Mine, SeatStanding>(Mine, condition);\n }\n}\n\n/**\n * Where the signed-in user stands with the tenant's seats, and why when they hold none they may use.\n */\nexport class SeatStanding {\n\n /**\n * Whether the user holds a seat that is licensed.\n */\n @field(Number)\n status!: SeatStatus;\n\n /**\n * How many seats the tenant may use.\n */\n @field(Number)\n capacity!: number;\n\n /**\n * How many seats are held.\n */\n @field(Number)\n held!: number;\n\n /**\n * Why the tenant can not change anything, when it can not.\n */\n @field(Number)\n readOnlyReason!: ReadOnlyReason;\n}\n"],"names":["Mine","QueryFor","sliceLocation","ArcSliceLocation","route","queryName","treatWarningsAsErrors","roles","defaultValue","SeatStanding","requiredRequestParameters","parameterDescriptors","use","useQuery","useSuspense","useSuspenseQuery","when","condition","QueryWhen","status","capacity","held","readOnlyReason"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;IAGO,MAAMA,IAAAA,SAAaC,gBAAAA,CAAAA;AACtB,IAAA,OAAgBC,8BAAgD,IAAIC,wBAAAA,CAAiB,EAAA,EAAI,IAAI,OAAA,CAAA;AACpFC,IAAAA,KAAAA,GAAgB,iBAAA;AAChBC,IAAAA,SAAAA,GAAoB,qDAAA;AACpBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;A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,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"}
@@ -25,7 +25,7 @@ function _ts_metadata(metadataKey, metadataValue) {
25
25
  /**
26
26
  * Gets the budgets and concurrency limits of the tenant, for the product's maintainers.
27
27
  */ class CurrentLimits extends QueryFor {
28
- static sliceLocation = new SliceLocation('', '', 'Compute');
28
+ static sliceLocation = /*#__PURE__*/ new SliceLocation('', '', 'Compute');
29
29
  route = '/api/compute/current-limits';
30
30
  queryName = 'Cratis.Showrunner.BoxOffice.Compute.ComputeLimits.CurrentLimits';
31
31
  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-10-31T12:53:10.7098780Z. Hash: 23F97C08F1258E1E0D5618FD9A18C16E58831772A63244099071BB465F8ABCCD\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 = 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,QAAAA,CAAAA;AAC/B,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,aAAAA,CAAiB,EAAA,EAAI,IAAI,SAAA,CAAA;AACtEC,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,QAAAA,CAAuCb,aAAAA,CAAAA;AAClD,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAA+E;AAClF,QAAA,OAAOC,gBAAAA,CAA+Cf,aAAAA,CAAAA;AAC1D,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAA2C;QACrE,OAAO,IAAIC,UAAwClB,aAAAA,EAAeiB,SAAAA,CAAAA;AACtE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,aAAAA,CAAAA;AAET;;AAEC,QACD,EACAU;AAEA;;AAEC,QACD,MACAC;AACJ;;;;;;;;;;"}
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,QAAAA,CAAAA;AAC/B,IAAA,OAAgBC,8BAAgD,IAAIC,aAAAA,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,QAAAA,CAAuCb,aAAAA,CAAAA;AAClD,IAAA;AAEA,IAAA,OAAOc,WAAAA,GAA+E;AAClF,QAAA,OAAOC,gBAAAA,CAA+Cf,aAAAA,CAAAA;AAC1D,IAAA;IAEA,OAAOgB,IAAAA,CAAKC,SAAkB,EAA2C;QACrE,OAAO,IAAIC,UAAwClB,aAAAA,EAAeiB,SAAAA,CAAAA;AACtE,IAAA;AACJ;AAEA;;AAEC,IACM,MAAMR,aAAAA,CAAAA;AAET;;AAEC,QACD,EACAU;AAEA;;AAEC,QACD,MACAC;AACJ;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"MeterStanding.d.ts","sourceRoot":"","sources":["../../../Compute/MeterStanding.ts"],"names":[],"mappings":"AAKA,OAAO,EAAU,QAAQ,EAAE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EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;IAIlJ,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,oBAAoB,CAAC,aAAa,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;IAIxG,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,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"}
@@ -133,14 +133,14 @@ class CurrentUsageSortByWithoutQuery {
133
133
  /**
134
134
  * Gets the standing of every meter the product declared, in the order of their names.
135
135
  */ class CurrentUsage extends QueryFor {
136
- static sliceLocation = new SliceLocation('', '', 'Compute');
136
+ static sliceLocation = /*#__PURE__*/ new SliceLocation('', '', 'Compute');
137
137
  route = '/api/compute/current-usage';
138
138
  queryName = 'Cratis.Showrunner.BoxOffice.Compute.MeterStanding.CurrentUsage';
139
139
  treatWarningsAsErrors = false;
140
140
  roles = [];
141
141
  defaultValue = [];
142
142
  _sortBy;
143
- static _sortBy = new CurrentUsageSortByWithoutQuery();
143
+ static _sortBy = /*#__PURE__*/ new CurrentUsageSortByWithoutQuery();
144
144
  constructor(){
145
145
  super(MeterStanding, true);
146
146
  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,uBAAwC,WAAA,EAAaD,KAAAA,CAAAA;AAC3E,QAAA,IAAI,CAACV,OAAO,GAAG,IAAIW,uBAAwC,QAAA,EAAUD,KAAAA,CAAAA;AACrE,QAAA,IAAI,CAACT,iBAAiB,GAAG,IAAIU,uBAAwC,kBAAA,EAAoBD,KAAAA,CAAAA;AACzF,QAAA,IAAI,CAACR,oBAAoB,GAAG,IAAIS,uBAAwC,qBAAA,EAAuBD,KAAAA,CAAAA;AAC/F,QAAA,IAAI,CAACP,MAAM,GAAG,IAAIQ,uBAAwC,OAAA,EAASD,KAAAA,CAAAA;AACnE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C,QAAgB,EAAEJ,OAAiB,EAA2F;AAC/I,QAAA,OAAOK,mBAAkDpB,YAAAA,EAAc,IAAIqB,MAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AAC/G,IAAA;IAEA,OAAOO,WAAAA,CAAYP,OAAiB,EAAqE;QACrG,OAAOQ,gBAAAA,CAAgDvB,cAAciB,SAAAA,EAAWF,OAAAA,CAAAA;AACpF,IAAA;AAEA,IAAA,OAAOS,qBAAAA,CAAsBL,QAAgB,EAAEJ,OAAiB,EAA2F;AACvJ,QAAA,OAAOU,2BAA0DzB,YAAAA,EAAc,IAAIqB,MAAAA,CAAO,CAAA,EAAGF,WAAWF,SAAAA,EAAWF,OAAAA,CAAAA;AACvH,IAAA;IAEA,OAAOW,IAAAA,CAAKC,SAAkB,EAA4C;QACtE,OAAO,IAAIC,UAAyC5B,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","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,uBAAwC,WAAA,EAAaD,KAAAA,CAAAA;AAC3E,QAAA,IAAI,CAACV,OAAO,GAAG,IAAIW,uBAAwC,QAAA,EAAUD,KAAAA,CAAAA;AACrE,QAAA,IAAI,CAACT,iBAAiB,GAAG,IAAIU,uBAAwC,kBAAA,EAAoBD,KAAAA,CAAAA;AACzF,QAAA,IAAI,CAACR,oBAAoB,GAAG,IAAIS,uBAAwC,qBAAA,EAAuBD,KAAAA,CAAAA;AAC/F,QAAA,IAAI,CAACP,MAAM,GAAG,IAAIQ,uBAAwC,OAAA,EAASD,KAAAA,CAAAA;AACnE,QAAA,IAAI,CAACN,KAAK,GAAG,IAAIO,uBAAwC,MAAA,EAAQD,KAAAA,CAAAA;AACjE,QAAA,IAAI,CAACL,QAAQ,GAAG,IAAIM,uBAAwC,SAAA,EAAWD,KAAAA,CAAAA;AACvE,QAAA,IAAI,CAACJ,OAAO,GAAG,IAAIK,uBAAwC,QAAA,EAAUD,KAAAA,CAAAA;AACrE,QAAA,IAAI,CAACH,WAAW,GAAG,IAAII,uBAAwC,YAAA,EAAcD,KAAAA,CAAAA;AAC7E,QAAA,IAAI,CAACF,KAAK,GAAG,IAAIG,uBAAwC,MAAA,EAAQD,KAAAA,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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"}
@@ -5,11 +5,11 @@ import { SliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
5
5
  // Copyright (c) Cratis. All rights reserved.
6
6
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
7
  // **DO NOT EDIT** - This file is an automatically generated file.
8
- // @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-10-31T12:53:10.7098780Z. Hash: 548ECB183A45FC84C93AD3DB549CCA096391E0C6D0CB1377EC1387F646F73AC6
8
+ // @generated by Cratis. Source: Cratis.Showrunner.BoxOffice.Compute.SetBudget.SetComputeBudget. Time: 2026-11-11T04:34:24.5807960Z. Hash: DF7A84F0D7E531A8F198403B5ADEAAD78E1BB90FC49FE062E766F9E304CFF410
9
9
  /**
10
10
  * 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.
11
11
  */ class SetComputeBudget extends Command {
12
- static sliceLocation = new SliceLocation('', 'Compute', 'SetBudget');
12
+ static sliceLocation = /*#__PURE__*/ new SliceLocation('', 'Compute', 'SetBudget');
13
13
  route = '/api/compute/set-budget';
14
14
  treatWarningsAsErrors = false;
15
15
  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-10-31T12:53:10.7098780Z. Hash: 548ECB183A45FC84C93AD3DB549CCA096391E0C6D0CB1377EC1387F646F73AC6\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 = 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,OAAAA,CAAAA;AAClC,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,aAAAA,CAAiB,EAAA,EAAI,WAAW,WAAA,CAAA;AAC7EC,IAAAA,KAAAA,GAAgB,yBAAA;AAChBC,IAAAA,qBAAAA,GAAiC,KAAA;AACjCC,IAAAA,KAAAA,GAAkB,EAAE;IACpBC,mBAAAA,GAA4C;QACjD,IAAIC,kBAAAA,CAAmB,SAASC,MAAAA,EAAQ,KAAA,CAAA;QACxC,IAAID,kBAAAA,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,WAA2EnB,gBAAAA,EAAkBkB,aAAAA,CAAAA;AACxG,IAAA;AACJ;;"}
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,OAAAA,CAAAA;AAClC,IAAA,OAAgBC,8BAAgD,IAAIC,aAAAA,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,kBAAAA,CAAmB,SAASC,MAAAA,EAAQ,KAAA,CAAA;QACxC,IAAID,kBAAAA,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,WAA2EnB,gBAAAA,EAAkBkB,aAAAA,CAAAA;AACxG,IAAA;AACJ;;"}