@cyc-seattle/platform 1.48.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,8 @@ export type ActivityKind = "practice" | "regatta" | "clinic" | "travel";
88
88
  export interface PlanOffering extends Versioned {
89
89
  product_id: Id;
90
90
  name: string;
91
- season_term: string | null;
91
+ /** A `plan_terms` key in the Operations Plan, or none. */
92
+ term_key: Id | null;
92
93
  starts_on: DateString;
93
94
  ends_on: DateString;
94
95
  capacity: number | null;
@@ -281,6 +282,12 @@ export interface PlanClosedDate extends Versioned {
281
282
  date: DateString;
282
283
  name: string;
283
284
  }
285
+ /** A planning period in the Operations Plan, such as Summer 2027, which an offering can be in. */
286
+ export interface PlanTerm extends Versioned {
287
+ name: string;
288
+ starts_on: DateString;
289
+ ends_on: DateString;
290
+ }
284
291
  /** The catalog plus every row of the plan versions being calculated. */
285
292
  export interface PlanData {
286
293
  /** The plan year. Fiscal year N ends in calendar year N. */
@@ -321,6 +328,7 @@ export interface PlanData {
321
328
  plan_bonus_owner_products: PlanBonusOwnerProduct[];
322
329
  plan_closed_dates?: PlanClosedDate[];
323
330
  plan_capital_items?: PlanCapitalItem[];
331
+ plan_terms?: PlanTerm[];
324
332
  }
325
333
  /** One line of cost or revenue for the plan year, on one offering, product, pool or the organization. */
326
334
  export interface CostLine {
@@ -57,6 +57,7 @@ export interface Schema {
57
57
  plan_salaried_bookings: PlanSalariedBookings[];
58
58
  plan_salaried_positions: PlanSalariedPositions[];
59
59
  plan_staff_levels: PlanStaffLevels[];
60
+ plan_terms: PlanTerms[];
60
61
  plan_trips: PlanTrips[];
61
62
  plan_versions: PlanVersions[];
62
63
  plans: Plans[];
@@ -706,7 +707,8 @@ export interface PlanOfferings {
706
707
  key: string;
707
708
  product_id: string | Products;
708
709
  name: string;
709
- season_term: string | null;
710
+ /** The term it runs in: copy the Key from a term in the Operations Plan. Leave it empty for an offering in no term. */
711
+ term_key: string | null;
710
712
  starts_on: string;
711
713
  ends_on: string;
712
714
  capacity: number | null;
@@ -971,6 +973,20 @@ export interface PlanStaffLevels {
971
973
  /** In cents: 12500 is $125.00. */
972
974
  hourly_rate_cents: number | null;
973
975
  }
976
+ /** A planning period, such as Summer 2027, with its start and end dates. An offering in a Program Plan can be in one of its Financial Plan's terms. */
977
+ export interface PlanTerms {
978
+ id: string;
979
+ /** The version this row belongs to. */
980
+ version_id: string | PlanVersions;
981
+ /** Stays the same across versions. Copy it where another row asks for this one's Key. */
982
+ key: string;
983
+ /** What it's called, such as Summer 2027. */
984
+ name: string;
985
+ /** Its first day. */
986
+ starts_on: string;
987
+ /** Its last day. */
988
+ ends_on: string;
989
+ }
974
990
  /** A trip an offering travels for, such as an away regatta. */
975
991
  export interface PlanTrips {
976
992
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyc-seattle/platform",
3
- "version": "1.48.0",
3
+ "version": "1.49.0",
4
4
  "description": "Pulumi components for CYC's shared Google Cloud platform: WebService, the platform outputs reader, and the stacks that build the platform",
5
5
  "author": "CYC Community Sailing Center",
6
6
  "license": "Apache-2.0",