( fs: Partial<TypesGen.Entitlements["features"]>, )
| 231 | // withDefaultFeatures sets all unspecified features to not_entitled and |
| 232 | // disabled. |
| 233 | export const withDefaultFeatures = ( |
| 234 | fs: Partial<TypesGen.Entitlements["features"]>, |
| 235 | ): TypesGen.Entitlements["features"] => { |
| 236 | for (const feature of TypesGen.FeatureNames) { |
| 237 | // Skip fields that are already filled. |
| 238 | if (fs[feature] !== undefined) { |
| 239 | continue; |
| 240 | } |
| 241 | |
| 242 | fs[feature] = { |
| 243 | enabled: false, |
| 244 | entitlement: "not_entitled", |
| 245 | }; |
| 246 | } |
| 247 | |
| 248 | return fs as TypesGen.Entitlements["features"]; |
| 249 | }; |
| 250 | |
| 251 | type WatchBuildLogsByTemplateVersionIdOptions = { |
| 252 | after?: number; |
no outgoing calls
no test coverage detected