@cyc-seattle/platform 1.41.0 → 1.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema/index.d.ts +94 -0
- package/package.json +1 -1
package/dist/schema/index.d.ts
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
export interface Schema {
|
|
3
3
|
accounts: Accounts[];
|
|
4
4
|
audit_findings: AuditFindings[];
|
|
5
|
+
boat_charters: BoatCharters[];
|
|
5
6
|
boat_classes: BoatClasses[];
|
|
7
|
+
boat_damage: BoatDamage[];
|
|
8
|
+
boat_stage_changes: BoatStageChanges[];
|
|
9
|
+
boats: Boats[];
|
|
6
10
|
catalog_offerings: CatalogOfferings[];
|
|
7
11
|
clubspot_camps: ClubspotCamps[];
|
|
8
12
|
clubspot_classes: ClubspotClasses[];
|
|
@@ -68,6 +72,8 @@ export interface Schema {
|
|
|
68
72
|
registrations: Registrations[];
|
|
69
73
|
resource_kinds: ResourceKinds[];
|
|
70
74
|
schools: Schools[];
|
|
75
|
+
storage_agreements: StorageAgreements[];
|
|
76
|
+
storage_spaces: StorageSpaces[];
|
|
71
77
|
sync_leases: SyncLeases[];
|
|
72
78
|
sync_runs: SyncRuns[];
|
|
73
79
|
sync_tasks: SyncTasks[];
|
|
@@ -125,6 +131,20 @@ export interface AuditFindings {
|
|
|
125
131
|
/** Identifies the finding, so a dismissal survives the next run. */
|
|
126
132
|
fingerprint: string;
|
|
127
133
|
}
|
|
134
|
+
/** Which sailor charters which boat, and when. */
|
|
135
|
+
export interface BoatCharters {
|
|
136
|
+
id: string;
|
|
137
|
+
boat_id: string | Boats;
|
|
138
|
+
person_id: string | People;
|
|
139
|
+
/** The charter product the boat's costs go to. */
|
|
140
|
+
product_id: string | Products;
|
|
141
|
+
starts_on: string;
|
|
142
|
+
ends_on: string;
|
|
143
|
+
/** What the sailor pays for the charter. In cents: 12500 is $125.00. */
|
|
144
|
+
fee_cents: number;
|
|
145
|
+
/** A link to the signed charter agreement. */
|
|
146
|
+
agreement_url: string | null;
|
|
147
|
+
}
|
|
128
148
|
/** A kind of boat offerings sail, such as Opti or 420. */
|
|
129
149
|
export interface BoatClasses {
|
|
130
150
|
id: string;
|
|
@@ -133,6 +153,51 @@ export interface BoatClasses {
|
|
|
133
153
|
/** Dry-storage area one boat takes. */
|
|
134
154
|
footprint_sq_ft: string | null;
|
|
135
155
|
}
|
|
156
|
+
/** Damage to CSC's boats, what it cost to repair, and what the sailor was charged. */
|
|
157
|
+
export interface BoatDamage {
|
|
158
|
+
id: string;
|
|
159
|
+
boat_id: string | Boats;
|
|
160
|
+
occurred_on: string;
|
|
161
|
+
description: string;
|
|
162
|
+
status: "open" | "repaired" | "written_off";
|
|
163
|
+
/** What the repair cost, or will cost. In cents: 12500 is $125.00. */
|
|
164
|
+
repair_cost_cents: number | null;
|
|
165
|
+
/** The sailor charged for the damage, if anyone is. */
|
|
166
|
+
person_id: string | People | null;
|
|
167
|
+
/** What the sailor was charged. In cents: 12500 is $125.00. */
|
|
168
|
+
charged_cents: number | null;
|
|
169
|
+
}
|
|
170
|
+
/** When each boat started its charter life, moved to its beginner life, or retired. A boat's stage is its latest row. Add a row to move a boat on. A row can't be changed once it's added. */
|
|
171
|
+
export interface BoatStageChanges {
|
|
172
|
+
id: string;
|
|
173
|
+
boat_id: string | Boats;
|
|
174
|
+
/** A boat wears down over its charter life, then its beginner life. */
|
|
175
|
+
stage: "charter" | "beginner" | "retired";
|
|
176
|
+
changed_on: string;
|
|
177
|
+
/** Why it moved, such as hull damage. */
|
|
178
|
+
note: string | null;
|
|
179
|
+
}
|
|
180
|
+
/** Each of CSC's own boats. Sailors' own boats aren't listed here. */
|
|
181
|
+
export interface Boats {
|
|
182
|
+
id: string;
|
|
183
|
+
boat_class_id: string | BoatClasses;
|
|
184
|
+
sail_number: string | null;
|
|
185
|
+
/** The hull identification number on the transom. */
|
|
186
|
+
hull_number: string;
|
|
187
|
+
/** The boat's name, if it has one. */
|
|
188
|
+
name: string | null;
|
|
189
|
+
acquired_how: "bought" | "donated";
|
|
190
|
+
/** What CSC paid, or what a donated boat was worth when it arrived. In cents: 12500 is $125.00. */
|
|
191
|
+
value_cents: number;
|
|
192
|
+
/** The day CSC got the boat. */
|
|
193
|
+
acquired_on: string | null;
|
|
194
|
+
/** The day the boat first sailed in a program. */
|
|
195
|
+
in_service_on: string | null;
|
|
196
|
+
storage_space_id: string | StorageSpaces | null;
|
|
197
|
+
note: string | null;
|
|
198
|
+
stage_changes: (string | BoatStageChanges)[];
|
|
199
|
+
damage: (string | BoatDamage)[];
|
|
200
|
+
}
|
|
136
201
|
/** An offering of a program that plans and Clubspot both point to, such as "J-Pod · fall practices" or "Summer camp · week 3". Each Financial Plan sets its own price, schedule, and size for it, and Clubspot's offerings are linked to it. */
|
|
137
202
|
export interface CatalogOfferings {
|
|
138
203
|
id: string;
|
|
@@ -1067,6 +1132,35 @@ export interface Schools {
|
|
|
1067
1132
|
/** Other ways families write this school on their Clubspot forms. An answer matching the name or one of these, ignoring capitals and punctuation and counting a run of spaces as one, is this school. Anything else is kept as their own words. */
|
|
1068
1133
|
aliases: string[] | null;
|
|
1069
1134
|
}
|
|
1135
|
+
/** Storage CSC sells to sailors for their own boats. */
|
|
1136
|
+
export interface StorageAgreements {
|
|
1137
|
+
id: string;
|
|
1138
|
+
person_id: string | People;
|
|
1139
|
+
storage_space_id: string | StorageSpaces;
|
|
1140
|
+
/** The storage product the agreement is sold as. */
|
|
1141
|
+
product_id: string | Products;
|
|
1142
|
+
/** The sailor's own boat, such as its class and sail number. */
|
|
1143
|
+
boat_description: string | null;
|
|
1144
|
+
starts_on: string;
|
|
1145
|
+
/** Empty while the agreement runs on. */
|
|
1146
|
+
ends_on: string | null;
|
|
1147
|
+
/** What the sailor pays for the agreement. In cents: 12500 is $125.00. */
|
|
1148
|
+
fee_cents: number;
|
|
1149
|
+
/** A link to the signed storage agreement. */
|
|
1150
|
+
agreement_url: string | null;
|
|
1151
|
+
}
|
|
1152
|
+
/** The racks and deck space CSC keeps boats on, each for one boat class. */
|
|
1153
|
+
export interface StorageSpaces {
|
|
1154
|
+
id: string;
|
|
1155
|
+
kind: "rack" | "deck";
|
|
1156
|
+
/** Where it is, such as Rack 3 or North deck. */
|
|
1157
|
+
location: string;
|
|
1158
|
+
boat_class_id: string | BoatClasses;
|
|
1159
|
+
/** How many boats it holds. */
|
|
1160
|
+
capacity: number;
|
|
1161
|
+
/** The floor space it takes. */
|
|
1162
|
+
footprint_sq_ft: string | null;
|
|
1163
|
+
}
|
|
1070
1164
|
/** Which syncs are running now. A sync holds its queue while it runs, so a second run waits its turn. Written by the syncs. */
|
|
1071
1165
|
export interface SyncLeases {
|
|
1072
1166
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyc-seattle/platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.1",
|
|
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",
|