(config: NpsConfig)
| 182 | } |
| 183 | |
| 184 | async function writeConfig(config: NpsConfig) { |
| 185 | const configPath = getConfigPath() |
| 186 | await fs.promises.mkdir(path.dirname(configPath), { recursive: true }) |
| 187 | await fs.promises.writeFile(configPath, JSON.stringify(config)) |
| 188 | } |
| 189 | |
| 190 | async function submitSurveyEvent(event: NpsSurveyEvent, eventCapture: EventCapture) { |
| 191 | const signature = await checkpoint.getSignature() |
no test coverage detected