checkly 7.15.0 → 8.0.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.
- package/LICENSE +201 -0
- package/bin/run +5 -3
- package/dist/ai-context/checkly.rules.md +15 -8
- package/dist/ai-context/context.js +11 -14
- package/dist/ai-context/context.js.map +1 -1
- package/dist/ai-context/skills-command/references/configure-api-checks.md +11 -6
- package/dist/ai-context/skills-command/references/configure-playwright-checks.md +2 -1
- package/dist/ai-context/skills-command/references/configure-supporting-constructs.md +1 -0
- package/dist/ai-context/skills-command/references/configure.md +1 -1
- package/dist/auth/index.js +17 -56
- package/dist/auth/index.js.map +1 -1
- package/dist/commands/account/members.d.ts +2 -2
- package/dist/commands/account/members.js +21 -60
- package/dist/commands/account/members.js.map +1 -1
- package/dist/commands/account/plan.d.ts +1 -1
- package/dist/commands/account/plan.js +16 -52
- package/dist/commands/account/plan.js.map +1 -1
- package/dist/commands/authCommand.d.ts +3 -3
- package/dist/commands/authCommand.js +11 -51
- package/dist/commands/authCommand.js.map +1 -1
- package/dist/commands/baseCommand.d.ts +2 -2
- package/dist/commands/baseCommand.js +15 -19
- package/dist/commands/baseCommand.js.map +1 -1
- package/dist/commands/checks/get.d.ts +1 -1
- package/dist/commands/checks/get.js +62 -101
- package/dist/commands/checks/get.js.map +1 -1
- package/dist/commands/checks/list.d.ts +1 -1
- package/dist/commands/checks/list.js +25 -64
- package/dist/commands/checks/list.js.map +1 -1
- package/dist/commands/checks/stats.d.ts +1 -1
- package/dist/commands/checks/stats.js +24 -60
- package/dist/commands/checks/stats.js.map +1 -1
- package/dist/commands/debug/parse-file.js +15 -21
- package/dist/commands/debug/parse-file.js.map +1 -1
- package/dist/commands/debug/parse-playwright-config.js +10 -16
- package/dist/commands/debug/parse-playwright-config.js.map +1 -1
- package/dist/commands/debug/parse-project.js +23 -29
- package/dist/commands/debug/parse-project.js.map +1 -1
- package/dist/commands/deploy.d.ts +1 -1
- package/dist/commands/deploy.js +49 -88
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/destroy.d.ts +1 -1
- package/dist/commands/destroy.js +16 -55
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/env/add.d.ts +1 -1
- package/dist/commands/env/add.js +10 -49
- package/dist/commands/env/add.js.map +1 -1
- package/dist/commands/env/ls.d.ts +1 -1
- package/dist/commands/env/ls.js +5 -41
- package/dist/commands/env/ls.js.map +1 -1
- package/dist/commands/env/pull.d.ts +1 -1
- package/dist/commands/env/pull.js +13 -52
- package/dist/commands/env/pull.js.map +1 -1
- package/dist/commands/env/rm.d.ts +1 -1
- package/dist/commands/env/rm.js +7 -43
- package/dist/commands/env/rm.js.map +1 -1
- package/dist/commands/env/update.d.ts +1 -1
- package/dist/commands/env/update.js +10 -49
- package/dist/commands/env/update.js.map +1 -1
- package/dist/commands/help.d.ts +1 -1
- package/dist/commands/help.js +4 -10
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/import/apply.d.ts +3 -3
- package/dist/commands/import/apply.js +28 -69
- package/dist/commands/import/apply.js.map +1 -1
- package/dist/commands/import/cancel.d.ts +1 -1
- package/dist/commands/import/cancel.js +14 -53
- package/dist/commands/import/cancel.js.map +1 -1
- package/dist/commands/import/commit.d.ts +3 -3
- package/dist/commands/import/commit.js +21 -62
- package/dist/commands/import/commit.js.map +1 -1
- package/dist/commands/import/plan.d.ts +1 -1
- package/dist/commands/import/plan.js +107 -147
- package/dist/commands/import/plan.js.map +1 -1
- package/dist/commands/incidents/create.d.ts +1 -1
- package/dist/commands/incidents/create.js +26 -65
- package/dist/commands/incidents/create.js.map +1 -1
- package/dist/commands/incidents/list.d.ts +1 -1
- package/dist/commands/incidents/list.js +19 -58
- package/dist/commands/incidents/list.js.map +1 -1
- package/dist/commands/incidents/resolve.d.ts +1 -1
- package/dist/commands/incidents/resolve.js +18 -57
- package/dist/commands/incidents/resolve.js.map +1 -1
- package/dist/commands/incidents/update.d.ts +1 -1
- package/dist/commands/incidents/update.js +25 -64
- package/dist/commands/incidents/update.js.map +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.js +45 -51
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.js +25 -66
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +1 -1
- package/dist/commands/logout.js +11 -17
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/pw-test.d.ts +4 -3
- package/dist/commands/pw-test.js +99 -126
- package/dist/commands/pw-test.js.map +1 -1
- package/dist/commands/rca/get.d.ts +1 -1
- package/dist/commands/rca/get.js +11 -47
- package/dist/commands/rca/get.js.map +1 -1
- package/dist/commands/rca/run.d.ts +4 -2
- package/dist/commands/rca/run.js +67 -69
- package/dist/commands/rca/run.js.map +1 -1
- package/dist/commands/rules.d.ts +1 -1
- package/dist/commands/rules.js +18 -55
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/runtimes.d.ts +1 -1
- package/dist/commands/runtimes.js +3 -39
- package/dist/commands/runtimes.js.map +1 -1
- package/dist/commands/skills/index.d.ts +1 -1
- package/dist/commands/skills/index.js +22 -23
- package/dist/commands/skills/index.js.map +1 -1
- package/dist/commands/skills/install.d.ts +1 -1
- package/dist/commands/skills/install.js +40 -49
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/commands/status-pages/get.d.ts +1 -1
- package/dist/commands/status-pages/get.js +12 -51
- package/dist/commands/status-pages/get.js.map +1 -1
- package/dist/commands/status-pages/list.d.ts +1 -1
- package/dist/commands/status-pages/list.js +16 -52
- package/dist/commands/status-pages/list.js.map +1 -1
- package/dist/commands/switch.d.ts +1 -1
- package/dist/commands/switch.js +15 -54
- package/dist/commands/switch.js.map +1 -1
- package/dist/commands/sync-playwright.d.ts +1 -1
- package/dist/commands/sync-playwright.js +21 -60
- package/dist/commands/sync-playwright.js.map +1 -1
- package/dist/commands/test.d.ts +3 -2
- package/dist/commands/test.js +96 -122
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/trigger.d.ts +6 -5
- package/dist/commands/trigger.js +67 -93
- package/dist/commands/trigger.js.map +1 -1
- package/dist/commands/validate.d.ts +1 -1
- package/dist/commands/validate.js +16 -55
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/whoami.d.ts +1 -1
- package/dist/commands/whoami.js +3 -39
- package/dist/commands/whoami.js.map +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -4
- package/dist/config.js.map +1 -1
- package/dist/constants.js +3 -6
- package/dist/constants.js.map +1 -1
- package/dist/constructs/agentic-check-codegen.d.ts +2 -2
- package/dist/constructs/agentic-check-codegen.js +6 -10
- package/dist/constructs/agentic-check-codegen.js.map +1 -1
- package/dist/constructs/agentic-check.d.ts +8 -8
- package/dist/constructs/agentic-check.js +10 -14
- package/dist/constructs/agentic-check.js.map +1 -1
- package/dist/constructs/alert-channel-codegen.d.ts +9 -9
- package/dist/constructs/alert-channel-codegen.js +21 -27
- package/dist/constructs/alert-channel-codegen.js.map +1 -1
- package/dist/constructs/alert-channel-subscription-codegen.d.ts +1 -1
- package/dist/constructs/alert-channel-subscription-codegen.js +2 -6
- package/dist/constructs/alert-channel-subscription-codegen.js.map +1 -1
- package/dist/constructs/alert-channel-subscription.d.ts +2 -2
- package/dist/constructs/alert-channel-subscription.js +4 -8
- package/dist/constructs/alert-channel-subscription.js.map +1 -1
- package/dist/constructs/alert-channel.d.ts +2 -2
- package/dist/constructs/alert-channel.js +7 -12
- package/dist/constructs/alert-channel.js.map +1 -1
- package/dist/constructs/alert-escalation-policy-codegen.d.ts +2 -2
- package/dist/constructs/alert-escalation-policy-codegen.js +6 -9
- package/dist/constructs/alert-escalation-policy-codegen.js.map +1 -1
- package/dist/constructs/alert-escalation-policy.js +1 -5
- package/dist/constructs/alert-escalation-policy.js.map +1 -1
- package/dist/constructs/api-assertion-codegen.d.ts +2 -2
- package/dist/constructs/api-assertion-codegen.js +7 -10
- package/dist/constructs/api-assertion-codegen.js.map +1 -1
- package/dist/constructs/api-assertion.d.ts +1 -1
- package/dist/constructs/api-assertion.js +7 -11
- package/dist/constructs/api-assertion.js.map +1 -1
- package/dist/constructs/api-check-bundle.d.ts +10 -10
- package/dist/constructs/api-check-bundle.js +1 -5
- package/dist/constructs/api-check-bundle.js.map +1 -1
- package/dist/constructs/api-check-codegen.d.ts +3 -3
- package/dist/constructs/api-check-codegen.js +10 -14
- package/dist/constructs/api-check-codegen.js.map +1 -1
- package/dist/constructs/api-check.d.ts +15 -15
- package/dist/constructs/api-check.js +36 -43
- package/dist/constructs/api-check.js.map +1 -1
- package/dist/constructs/api-request-codegen.d.ts +3 -3
- package/dist/constructs/api-request-codegen.js +8 -11
- package/dist/constructs/api-request-codegen.js.map +1 -1
- package/dist/constructs/api-request.d.ts +5 -5
- package/dist/constructs/api-request.js +1 -2
- package/dist/constructs/browser-check-bundle.d.ts +11 -11
- package/dist/constructs/browser-check-bundle.js +1 -5
- package/dist/constructs/browser-check-bundle.js.map +1 -1
- package/dist/constructs/browser-check-codegen.d.ts +3 -3
- package/dist/constructs/browser-check-codegen.js +9 -13
- package/dist/constructs/browser-check-codegen.js.map +1 -1
- package/dist/constructs/browser-check.d.ts +14 -14
- package/dist/constructs/browser-check.js +29 -36
- package/dist/constructs/browser-check.js.map +1 -1
- package/dist/constructs/check-codegen.d.ts +16 -16
- package/dist/constructs/check-codegen.js +38 -44
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check-config.js +1 -4
- package/dist/constructs/check-config.js.map +1 -1
- package/dist/constructs/check-group-codegen.d.ts +7 -7
- package/dist/constructs/check-group-codegen.js +29 -34
- package/dist/constructs/check-group-codegen.js.map +1 -1
- package/dist/constructs/check-group-ref.d.ts +3 -3
- package/dist/constructs/check-group-ref.js +8 -12
- package/dist/constructs/check-group-ref.js.map +1 -1
- package/dist/constructs/check-group-v1.d.ts +15 -15
- package/dist/constructs/check-group-v1.js +37 -44
- package/dist/constructs/check-group-v1.js.map +1 -1
- package/dist/constructs/check-group-v2.d.ts +8 -8
- package/dist/constructs/check-group-v2.js +4 -8
- package/dist/constructs/check-group-v2.js.map +1 -1
- package/dist/constructs/check-group.d.ts +4 -4
- package/dist/constructs/check-group.js +4 -22
- package/dist/constructs/check-group.js.map +1 -1
- package/dist/constructs/check.d.ts +15 -15
- package/dist/constructs/check.js +23 -28
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/construct-codegen.d.ts +13 -13
- package/dist/constructs/construct-codegen.js +25 -30
- package/dist/constructs/construct-codegen.js.map +1 -1
- package/dist/constructs/construct-diagnostics.d.ts +2 -2
- package/dist/constructs/construct-diagnostics.js +12 -26
- package/dist/constructs/construct-diagnostics.js.map +1 -1
- package/dist/constructs/construct.d.ts +3 -3
- package/dist/constructs/construct.js +15 -24
- package/dist/constructs/construct.js.map +1 -1
- package/dist/constructs/dashboard-bundle.d.ts +2 -2
- package/dist/constructs/dashboard-bundle.js +1 -5
- package/dist/constructs/dashboard-bundle.js.map +1 -1
- package/dist/constructs/dashboard-codegen.d.ts +1 -1
- package/dist/constructs/dashboard-codegen.js +4 -8
- package/dist/constructs/dashboard-codegen.js.map +1 -1
- package/dist/constructs/dashboard.d.ts +4 -4
- package/dist/constructs/dashboard.js +19 -26
- package/dist/constructs/dashboard.js.map +1 -1
- package/dist/constructs/diagnostics.js +5 -13
- package/dist/constructs/diagnostics.js.map +1 -1
- package/dist/constructs/dns-assertion-codegen.d.ts +2 -2
- package/dist/constructs/dns-assertion-codegen.js +6 -9
- package/dist/constructs/dns-assertion-codegen.js.map +1 -1
- package/dist/constructs/dns-assertion.d.ts +1 -1
- package/dist/constructs/dns-assertion.js +6 -10
- package/dist/constructs/dns-assertion.js.map +1 -1
- package/dist/constructs/dns-monitor-codegen.d.ts +3 -3
- package/dist/constructs/dns-monitor-codegen.js +8 -12
- package/dist/constructs/dns-monitor-codegen.js.map +1 -1
- package/dist/constructs/dns-monitor.d.ts +8 -8
- package/dist/constructs/dns-monitor.js +9 -13
- package/dist/constructs/dns-monitor.js.map +1 -1
- package/dist/constructs/dns-request-codegen.d.ts +3 -3
- package/dist/constructs/dns-request-codegen.js +5 -8
- package/dist/constructs/dns-request-codegen.js.map +1 -1
- package/dist/constructs/dns-request.d.ts +1 -1
- package/dist/constructs/dns-request.js +1 -2
- package/dist/constructs/email-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/email-alert-channel-codegen.js +7 -11
- package/dist/constructs/email-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/email-alert-channel.d.ts +1 -1
- package/dist/constructs/email-alert-channel.js +4 -8
- package/dist/constructs/email-alert-channel.js.map +1 -1
- package/dist/constructs/environment-variable.d.ts +1 -1
- package/dist/constructs/environment-variable.js +1 -2
- package/dist/constructs/frequency-codegen.d.ts +1 -1
- package/dist/constructs/frequency-codegen.js +21 -24
- package/dist/constructs/frequency-codegen.js.map +1 -1
- package/dist/constructs/frequency.js +1 -5
- package/dist/constructs/frequency.js.map +1 -1
- package/dist/constructs/heartbeat-monitor-codegen.d.ts +3 -3
- package/dist/constructs/heartbeat-monitor-codegen.js +6 -10
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -1
- package/dist/constructs/heartbeat-monitor.d.ts +1 -1
- package/dist/constructs/heartbeat-monitor.js +10 -13
- package/dist/constructs/heartbeat-monitor.js.map +1 -1
- package/dist/constructs/http-header.d.ts +1 -1
- package/dist/constructs/http-header.js +1 -2
- package/dist/constructs/http-request.js +1 -2
- package/dist/constructs/icmp-assertion-codegen.d.ts +2 -2
- package/dist/constructs/icmp-assertion-codegen.js +4 -7
- package/dist/constructs/icmp-assertion-codegen.js.map +1 -1
- package/dist/constructs/icmp-assertion.d.ts +1 -1
- package/dist/constructs/icmp-assertion.js +4 -8
- package/dist/constructs/icmp-assertion.js.map +1 -1
- package/dist/constructs/icmp-monitor-codegen.d.ts +3 -3
- package/dist/constructs/icmp-monitor-codegen.js +8 -12
- package/dist/constructs/icmp-monitor-codegen.js.map +1 -1
- package/dist/constructs/icmp-monitor.d.ts +8 -8
- package/dist/constructs/icmp-monitor.js +4 -8
- package/dist/constructs/icmp-monitor.js.map +1 -1
- package/dist/constructs/icmp-request-codegen.d.ts +3 -3
- package/dist/constructs/icmp-request-codegen.js +5 -8
- package/dist/constructs/icmp-request-codegen.js.map +1 -1
- package/dist/constructs/icmp-request.d.ts +2 -2
- package/dist/constructs/icmp-request.js +1 -2
- package/dist/constructs/incident.d.ts +1 -1
- package/dist/constructs/incident.js +1 -2
- package/dist/constructs/incidentio-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/incidentio-alert-channel-codegen.js +15 -19
- package/dist/constructs/incidentio-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/incidentio-alert-channel.d.ts +2 -2
- package/dist/constructs/incidentio-alert-channel.js +2 -6
- package/dist/constructs/incidentio-alert-channel.js.map +1 -1
- package/dist/constructs/index.d.ts +51 -51
- package/dist/constructs/index.js +51 -67
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/internal/assertion-codegen.d.ts +2 -2
- package/dist/constructs/internal/assertion-codegen.js +25 -29
- package/dist/constructs/internal/assertion-codegen.js.map +1 -1
- package/dist/constructs/internal/assertion.js +2 -7
- package/dist/constructs/internal/assertion.js.map +1 -1
- package/dist/constructs/internal/codegen/codegen.d.ts +2 -2
- package/dist/constructs/internal/codegen/codegen.js +1 -5
- package/dist/constructs/internal/codegen/codegen.js.map +1 -1
- package/dist/constructs/internal/codegen/context.d.ts +3 -3
- package/dist/constructs/internal/codegen/context.js +32 -74
- package/dist/constructs/internal/codegen/context.js.map +1 -1
- package/dist/constructs/internal/codegen/index.d.ts +4 -4
- package/dist/constructs/internal/codegen/index.js +4 -12
- package/dist/constructs/internal/codegen/index.js.map +1 -1
- package/dist/constructs/internal/codegen/safety.js +1 -5
- package/dist/constructs/internal/codegen/safety.js.map +1 -1
- package/dist/constructs/internal/codegen/snippet.js +8 -17
- package/dist/constructs/internal/codegen/snippet.js.map +1 -1
- package/dist/constructs/internal/common-diagnostics.d.ts +2 -2
- package/dist/constructs/internal/common-diagnostics.js +19 -27
- package/dist/constructs/internal/common-diagnostics.js.map +1 -1
- package/dist/constructs/internal/sanitize.d.ts +15 -0
- package/dist/constructs/internal/sanitize.js +36 -0
- package/dist/constructs/internal/sanitize.js.map +1 -0
- package/dist/constructs/ip.js +1 -2
- package/dist/constructs/key-value-pair-codegen.d.ts +3 -3
- package/dist/constructs/key-value-pair-codegen.js +6 -9
- package/dist/constructs/key-value-pair-codegen.js.map +1 -1
- package/dist/constructs/key-value-pair.js +1 -2
- package/dist/constructs/maintenance-window-codegen.d.ts +1 -1
- package/dist/constructs/maintenance-window-codegen.js +7 -11
- package/dist/constructs/maintenance-window-codegen.js.map +1 -1
- package/dist/constructs/maintenance-window.d.ts +1 -1
- package/dist/constructs/maintenance-window.js +4 -8
- package/dist/constructs/maintenance-window.js.map +1 -1
- package/dist/constructs/monitor-codegen.d.ts +1 -1
- package/dist/constructs/monitor-codegen.js +1 -5
- package/dist/constructs/monitor-codegen.js.map +1 -1
- package/dist/constructs/monitor.d.ts +14 -14
- package/dist/constructs/monitor.js +4 -8
- package/dist/constructs/monitor.js.map +1 -1
- package/dist/constructs/msteams-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/msteams-alert-channel-codegen.js +17 -21
- package/dist/constructs/msteams-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/msteams-alert-channel.d.ts +2 -2
- package/dist/constructs/msteams-alert-channel.js +2 -6
- package/dist/constructs/msteams-alert-channel.js.map +1 -1
- package/dist/constructs/multi-step-check-bundle.d.ts +10 -10
- package/dist/constructs/multi-step-check-bundle.js +1 -5
- package/dist/constructs/multi-step-check-bundle.js.map +1 -1
- package/dist/constructs/multi-step-check-codegen.d.ts +3 -3
- package/dist/constructs/multi-step-check-codegen.js +8 -12
- package/dist/constructs/multi-step-check-codegen.js.map +1 -1
- package/dist/constructs/multi-step-check.d.ts +14 -14
- package/dist/constructs/multi-step-check.js +29 -36
- package/dist/constructs/multi-step-check.js.map +1 -1
- package/dist/constructs/opsgenie-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/opsgenie-alert-channel-codegen.js +7 -11
- package/dist/constructs/opsgenie-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/opsgenie-alert-channel.d.ts +1 -1
- package/dist/constructs/opsgenie-alert-channel.js +4 -8
- package/dist/constructs/opsgenie-alert-channel.js.map +1 -1
- package/dist/constructs/pagerduty-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/pagerduty-alert-channel-codegen.js +7 -11
- package/dist/constructs/pagerduty-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/pagerduty-alert-channel.d.ts +1 -1
- package/dist/constructs/pagerduty-alert-channel.js +4 -8
- package/dist/constructs/pagerduty-alert-channel.js.map +1 -1
- package/dist/constructs/phone-call-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/phone-call-alert-channel-codegen.js +7 -11
- package/dist/constructs/phone-call-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/phone-call-alert-channel.d.ts +1 -1
- package/dist/constructs/phone-call-alert-channel.js +4 -8
- package/dist/constructs/phone-call-alert-channel.js.map +1 -1
- package/dist/constructs/playwright-check-bundle.d.ts +8 -8
- package/dist/constructs/playwright-check-bundle.js +1 -5
- package/dist/constructs/playwright-check-bundle.js.map +1 -1
- package/dist/constructs/playwright-check.d.ts +11 -11
- package/dist/constructs/playwright-check.js +40 -47
- package/dist/constructs/playwright-check.js.map +1 -1
- package/dist/constructs/playwright-config-codegen.d.ts +2 -2
- package/dist/constructs/playwright-config-codegen.js +3 -6
- package/dist/constructs/playwright-config-codegen.js.map +1 -1
- package/dist/constructs/playwright-config.js +1 -2
- package/dist/constructs/private-location-check-assignment-codegen.d.ts +1 -1
- package/dist/constructs/private-location-check-assignment-codegen.js +2 -6
- package/dist/constructs/private-location-check-assignment-codegen.js.map +1 -1
- package/dist/constructs/private-location-check-assignment.d.ts +2 -2
- package/dist/constructs/private-location-check-assignment.js +4 -8
- package/dist/constructs/private-location-check-assignment.js.map +1 -1
- package/dist/constructs/private-location-codegen.d.ts +2 -2
- package/dist/constructs/private-location-codegen.js +8 -13
- package/dist/constructs/private-location-codegen.js.map +1 -1
- package/dist/constructs/private-location-group-assignment-codegen.d.ts +1 -1
- package/dist/constructs/private-location-group-assignment-codegen.js +2 -6
- package/dist/constructs/private-location-group-assignment-codegen.js.map +1 -1
- package/dist/constructs/private-location-group-assignment.d.ts +2 -2
- package/dist/constructs/private-location-group-assignment.js +4 -8
- package/dist/constructs/private-location-group-assignment.js.map +1 -1
- package/dist/constructs/private-location.d.ts +2 -2
- package/dist/constructs/private-location.js +10 -15
- package/dist/constructs/private-location.js.map +1 -1
- package/dist/constructs/project-bundle.d.ts +3 -3
- package/dist/constructs/project-bundle.js +1 -5
- package/dist/constructs/project-bundle.js.map +1 -1
- package/dist/constructs/project.d.ts +13 -13
- package/dist/constructs/project.js +32 -87
- package/dist/constructs/project.js.map +1 -1
- package/dist/constructs/query-param.d.ts +1 -1
- package/dist/constructs/query-param.js +1 -2
- package/dist/constructs/ref-codegen.d.ts +2 -2
- package/dist/constructs/ref-codegen.js +4 -7
- package/dist/constructs/ref-codegen.js.map +1 -1
- package/dist/constructs/ref.js +1 -5
- package/dist/constructs/ref.js.map +1 -1
- package/dist/constructs/retry-strategy-codegen.d.ts +2 -2
- package/dist/constructs/retry-strategy-codegen.js +14 -17
- package/dist/constructs/retry-strategy-codegen.js.map +1 -1
- package/dist/constructs/retry-strategy.js +1 -5
- package/dist/constructs/retry-strategy.js.map +1 -1
- package/dist/constructs/slack-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/slack-alert-channel-codegen.js +7 -11
- package/dist/constructs/slack-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/slack-alert-channel.d.ts +1 -1
- package/dist/constructs/slack-alert-channel.js +4 -8
- package/dist/constructs/slack-alert-channel.js.map +1 -1
- package/dist/constructs/sms-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/sms-alert-channel-codegen.js +7 -11
- package/dist/constructs/sms-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/sms-alert-channel.d.ts +1 -1
- package/dist/constructs/sms-alert-channel.js +4 -8
- package/dist/constructs/sms-alert-channel.js.map +1 -1
- package/dist/constructs/status-page-codegen.d.ts +3 -3
- package/dist/constructs/status-page-codegen.js +6 -10
- package/dist/constructs/status-page-codegen.js.map +1 -1
- package/dist/constructs/status-page-service-codegen.d.ts +2 -2
- package/dist/constructs/status-page-service-codegen.js +8 -13
- package/dist/constructs/status-page-service-codegen.js.map +1 -1
- package/dist/constructs/status-page-service.d.ts +2 -2
- package/dist/constructs/status-page-service.js +8 -13
- package/dist/constructs/status-page-service.js.map +1 -1
- package/dist/constructs/status-page.d.ts +2 -2
- package/dist/constructs/status-page.js +6 -10
- package/dist/constructs/status-page.js.map +1 -1
- package/dist/constructs/tcp-monitor-codegen.d.ts +4 -4
- package/dist/constructs/tcp-monitor-codegen.js +10 -15
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -1
- package/dist/constructs/tcp-monitor.d.ts +9 -9
- package/dist/constructs/tcp-monitor.js +12 -16
- package/dist/constructs/tcp-monitor.js.map +1 -1
- package/dist/constructs/telegram-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/telegram-alert-channel-codegen.js +15 -22
- package/dist/constructs/telegram-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/telegram-alert-channel.d.ts +2 -2
- package/dist/constructs/telegram-alert-channel.js +2 -6
- package/dist/constructs/telegram-alert-channel.js.map +1 -1
- package/dist/constructs/url-assertion-codegen.d.ts +2 -2
- package/dist/constructs/url-assertion-codegen.js +3 -6
- package/dist/constructs/url-assertion-codegen.js.map +1 -1
- package/dist/constructs/url-assertion.d.ts +1 -1
- package/dist/constructs/url-assertion.js +3 -7
- package/dist/constructs/url-assertion.js.map +1 -1
- package/dist/constructs/url-monitor-codegen.d.ts +3 -3
- package/dist/constructs/url-monitor-codegen.js +8 -12
- package/dist/constructs/url-monitor-codegen.js.map +1 -1
- package/dist/constructs/url-monitor.d.ts +10 -10
- package/dist/constructs/url-monitor.js +6 -10
- package/dist/constructs/url-monitor.js.map +1 -1
- package/dist/constructs/url-request-codegen.d.ts +3 -3
- package/dist/constructs/url-request-codegen.js +5 -8
- package/dist/constructs/url-request-codegen.js.map +1 -1
- package/dist/constructs/url-request.d.ts +2 -2
- package/dist/constructs/url-request.js +1 -2
- package/dist/constructs/validator-error.js +1 -5
- package/dist/constructs/validator-error.js.map +1 -1
- package/dist/constructs/webhook-alert-channel-codegen.d.ts +8 -8
- package/dist/constructs/webhook-alert-channel-codegen.js +20 -25
- package/dist/constructs/webhook-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/webhook-alert-channel.d.ts +4 -4
- package/dist/constructs/webhook-alert-channel.js +4 -8
- package/dist/constructs/webhook-alert-channel.js.map +1 -1
- package/dist/formatters/account-members.d.ts +2 -2
- package/dist/formatters/account-members.js +19 -27
- package/dist/formatters/account-members.js.map +1 -1
- package/dist/formatters/account-plan.d.ts +2 -2
- package/dist/formatters/account-plan.js +34 -47
- package/dist/formatters/account-plan.js.map +1 -1
- package/dist/formatters/analytics.d.ts +2 -2
- package/dist/formatters/analytics.js +25 -36
- package/dist/formatters/analytics.js.map +1 -1
- package/dist/formatters/batch-stats.d.ts +3 -3
- package/dist/formatters/batch-stats.js +28 -35
- package/dist/formatters/batch-stats.js.map +1 -1
- package/dist/formatters/check-result-detail.d.ts +2 -2
- package/dist/formatters/check-result-detail.js +73 -80
- package/dist/formatters/check-result-detail.js.map +1 -1
- package/dist/formatters/checks.d.ts +6 -6
- package/dist/formatters/checks.js +69 -86
- package/dist/formatters/checks.js.map +1 -1
- package/dist/formatters/incidents.d.ts +2 -2
- package/dist/formatters/incidents.js +36 -46
- package/dist/formatters/incidents.js.map +1 -1
- package/dist/formatters/rca.d.ts +10 -4
- package/dist/formatters/rca.js +43 -35
- package/dist/formatters/rca.js.map +1 -1
- package/dist/formatters/render.js +27 -47
- package/dist/formatters/render.js.map +1 -1
- package/dist/formatters/status-pages.d.ts +2 -2
- package/dist/formatters/status-pages.js +29 -39
- package/dist/formatters/status-pages.js.map +1 -1
- package/dist/help/examples.js +3 -5
- package/dist/help/examples.js.map +1 -1
- package/dist/help/help-extension.js +13 -17
- package/dist/help/help-extension.js.map +1 -1
- package/dist/help/skills.js +2 -5
- package/dist/help/skills.js.map +1 -1
- package/dist/helpers/cli-mode.js +3 -8
- package/dist/helpers/cli-mode.js.map +1 -1
- package/dist/helpers/command-preview.js +3 -8
- package/dist/helpers/command-preview.js.map +1 -1
- package/dist/helpers/command-style.d.ts +1 -1
- package/dist/helpers/command-style.js +24 -31
- package/dist/helpers/command-style.js.map +1 -1
- package/dist/helpers/constants.js +1 -4
- package/dist/helpers/constants.js.map +1 -1
- package/dist/helpers/flags.d.ts +5 -0
- package/dist/helpers/flags.js +29 -12
- package/dist/helpers/flags.js.map +1 -1
- package/dist/helpers/incidents.d.ts +2 -2
- package/dist/helpers/incidents.js +10 -18
- package/dist/helpers/incidents.js.map +1 -1
- package/dist/helpers/onboarding/boilerplate.js +46 -53
- package/dist/helpers/onboarding/boilerplate.js.map +1 -1
- package/dist/helpers/onboarding/clipboard.js +6 -9
- package/dist/helpers/onboarding/clipboard.js.map +1 -1
- package/dist/helpers/onboarding/detect-project.js +13 -16
- package/dist/helpers/onboarding/detect-project.js.map +1 -1
- package/dist/helpers/onboarding/index.d.ts +7 -7
- package/dist/helpers/onboarding/index.js +7 -25
- package/dist/helpers/onboarding/index.js.map +1 -1
- package/dist/helpers/onboarding/messages.js +47 -57
- package/dist/helpers/onboarding/messages.js.map +1 -1
- package/dist/helpers/onboarding/prompt-display.js +11 -17
- package/dist/helpers/onboarding/prompt-display.js.map +1 -1
- package/dist/helpers/onboarding/prompts-helpers.js +4 -11
- package/dist/helpers/onboarding/prompts-helpers.js.map +1 -1
- package/dist/helpers/onboarding/skill-install.js +28 -35
- package/dist/helpers/onboarding/skill-install.js.map +1 -1
- package/dist/helpers/onboarding/template-prompt.js +8 -9
- package/dist/helpers/onboarding/template-prompt.js.map +1 -1
- package/dist/helpers/recast-acorn-parser.js +2 -38
- package/dist/helpers/recast-acorn-parser.js.map +1 -1
- package/dist/helpers/test-helper.d.ts +3 -3
- package/dist/helpers/test-helper.js +10 -16
- package/dist/helpers/test-helper.js.map +1 -1
- package/dist/helpers/wrap.js +1 -4
- package/dist/helpers/wrap.js.map +1 -1
- package/dist/helpers/write-config-helpers.js +11 -53
- package/dist/helpers/write-config-helpers.js.map +1 -1
- package/dist/hooks/command-not-found.d.ts +3 -0
- package/dist/hooks/command-not-found.js +22 -0
- package/dist/hooks/command-not-found.js.map +1 -0
- package/dist/hooks/parse-error.d.ts +3 -0
- package/dist/hooks/parse-error.js +15 -0
- package/dist/hooks/parse-error.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -39
- package/dist/index.js.map +1 -1
- package/dist/loader/config.js +4 -9
- package/dist/loader/config.js.map +1 -1
- package/dist/loader/index.d.ts +5 -6
- package/dist/loader/index.js +5 -20
- package/dist/loader/index.js.map +1 -1
- package/dist/loader/jiti.d.ts +1 -1
- package/dist/loader/jiti.js +15 -22
- package/dist/loader/jiti.js.map +1 -1
- package/dist/loader/loader.d.ts +1 -1
- package/dist/loader/loader.js +4 -9
- package/dist/loader/loader.js.map +1 -1
- package/dist/loader/match.js +3 -7
- package/dist/loader/match.js.map +1 -1
- package/dist/loader/mixed.d.ts +1 -1
- package/dist/loader/mixed.js +4 -8
- package/dist/loader/mixed.js.map +1 -1
- package/dist/loader/native.d.ts +2 -2
- package/dist/loader/native.js +14 -20
- package/dist/loader/native.js.map +1 -1
- package/dist/messages/common-messages.d.ts +0 -3
- package/dist/messages/common-messages.js +1 -6
- package/dist/messages/common-messages.js.map +1 -1
- package/dist/playwright/playwright-config-loader.js +7 -13
- package/dist/playwright/playwright-config-loader.js.map +1 -1
- package/dist/playwright/playwright-config-template.d.ts +1 -1
- package/dist/playwright/playwright-config-template.js +2 -38
- package/dist/playwright/playwright-config-template.js.map +1 -1
- package/dist/reporters/abstract-list.d.ts +9 -5
- package/dist/reporters/abstract-list.js +76 -48
- package/dist/reporters/abstract-list.js.map +1 -1
- package/dist/reporters/ci.d.ts +3 -3
- package/dist/reporters/ci.js +10 -20
- package/dist/reporters/ci.js.map +1 -1
- package/dist/reporters/dot.d.ts +2 -2
- package/dist/reporters/dot.js +8 -14
- package/dist/reporters/dot.js.map +1 -1
- package/dist/reporters/github.d.ts +2 -2
- package/dist/reporters/github.js +14 -59
- package/dist/reporters/github.js.map +1 -1
- package/dist/reporters/json.d.ts +2 -2
- package/dist/reporters/json.js +11 -52
- package/dist/reporters/json.js.map +1 -1
- package/dist/reporters/list.d.ts +3 -3
- package/dist/reporters/list.js +22 -32
- package/dist/reporters/list.js.map +1 -1
- package/dist/reporters/reporter.d.ts +4 -2
- package/dist/reporters/reporter.js +12 -19
- package/dist/reporters/reporter.js.map +1 -1
- package/dist/reporters/util.d.ts +2 -1
- package/dist/reporters/util.js +56 -95
- package/dist/reporters/util.js.map +1 -1
- package/dist/rest/account-members.js +1 -3
- package/dist/rest/account-members.js.map +1 -1
- package/dist/rest/accounts.js +1 -3
- package/dist/rest/accounts.js.map +1 -1
- package/dist/rest/analytics.js +23 -26
- package/dist/rest/analytics.js.map +1 -1
- package/dist/rest/api.d.ts +30 -26
- package/dist/rest/api.js +76 -82
- package/dist/rest/api.js.map +1 -1
- package/dist/rest/assets.js +6 -15
- package/dist/rest/assets.js.map +1 -1
- package/dist/rest/batch-analytics.js +2 -5
- package/dist/rest/batch-analytics.js.map +1 -1
- package/dist/rest/cancel.d.ts +14 -0
- package/dist/rest/cancel.js +28 -0
- package/dist/rest/cancel.js.map +1 -0
- package/dist/rest/check-groups.js +1 -3
- package/dist/rest/check-groups.js.map +1 -1
- package/dist/rest/check-results.js +1 -3
- package/dist/rest/check-results.js.map +1 -1
- package/dist/rest/check-statuses.js +1 -3
- package/dist/rest/check-statuses.js.map +1 -1
- package/dist/rest/checkly-storage.js +1 -3
- package/dist/rest/checkly-storage.js.map +1 -1
- package/dist/rest/checks.js +1 -3
- package/dist/rest/checks.js.map +1 -1
- package/dist/rest/entitlements.js +1 -3
- package/dist/rest/entitlements.js.map +1 -1
- package/dist/rest/environment-variables.js +8 -13
- package/dist/rest/environment-variables.js.map +1 -1
- package/dist/rest/error-groups.js +1 -3
- package/dist/rest/error-groups.js.map +1 -1
- package/dist/rest/errors.js +15 -31
- package/dist/rest/errors.js.map +1 -1
- package/dist/rest/heartbeat-checks.js +1 -3
- package/dist/rest/heartbeat-checks.js.map +1 -1
- package/dist/rest/incidents.js +1 -3
- package/dist/rest/incidents.js.map +1 -1
- package/dist/rest/locations.js +1 -3
- package/dist/rest/locations.js.map +1 -1
- package/dist/rest/private-locations.js +1 -4
- package/dist/rest/private-locations.js.map +1 -1
- package/dist/rest/projects.d.ts +2 -2
- package/dist/rest/projects.js +20 -28
- package/dist/rest/projects.js.map +1 -1
- package/dist/rest/rca.d.ts +2 -1
- package/dist/rest/rca.js +4 -3
- package/dist/rest/rca.js.map +1 -1
- package/dist/rest/runtimes.d.ts +1 -1
- package/dist/rest/runtimes.js +1 -3
- package/dist/rest/runtimes.js.map +1 -1
- package/dist/rest/status-pages.js +1 -3
- package/dist/rest/status-pages.js.map +1 -1
- package/dist/rest/test-session-error-groups.d.ts +18 -0
- package/dist/rest/test-session-error-groups.js +11 -0
- package/dist/rest/test-session-error-groups.js.map +1 -0
- package/dist/rest/test-sessions.d.ts +3 -3
- package/dist/rest/test-sessions.js +6 -10
- package/dist/rest/test-sessions.js.map +1 -1
- package/dist/rest/users.js +1 -3
- package/dist/rest/users.js.map +1 -1
- package/dist/rest/util.js +5 -11
- package/dist/rest/util.js.map +1 -1
- package/dist/runtimes/index.d.ts +2 -2
- package/dist/runtimes/index.js +1 -5
- package/dist/runtimes/index.js.map +1 -1
- package/dist/runtimes/runtime.js +1 -2
- package/dist/runtimes/snapshot.d.ts +1 -1
- package/dist/runtimes/snapshot.js +7 -11
- package/dist/runtimes/snapshot.js.map +1 -1
- package/dist/services/abstract-check-runner.d.ts +6 -3
- package/dist/services/abstract-check-runner.js +62 -61
- package/dist/services/abstract-check-runner.js.map +1 -1
- package/dist/services/check-parser/bundler.d.ts +2 -2
- package/dist/services/check-parser/bundler.js +24 -68
- package/dist/services/check-parser/bundler.js.map +1 -1
- package/dist/services/check-parser/cache-hash.d.ts +1 -1
- package/dist/services/check-parser/cache-hash.js +15 -25
- package/dist/services/check-parser/cache-hash.js.map +1 -1
- package/dist/services/check-parser/collector.js +3 -7
- package/dist/services/check-parser/collector.js.map +1 -1
- package/dist/services/check-parser/errors.d.ts +1 -1
- package/dist/services/check-parser/errors.js +1 -5
- package/dist/services/check-parser/errors.js.map +1 -1
- package/dist/services/check-parser/faux-package.d.ts +2 -2
- package/dist/services/check-parser/faux-package.js +3 -7
- package/dist/services/check-parser/faux-package.js.map +1 -1
- package/dist/services/check-parser/package-files/extension.js +14 -23
- package/dist/services/check-parser/package-files/extension.js.map +1 -1
- package/dist/services/check-parser/package-files/jsconfig-json-file.d.ts +2 -2
- package/dist/services/check-parser/package-files/jsconfig-json-file.js +4 -11
- package/dist/services/check-parser/package-files/jsconfig-json-file.js.map +1 -1
- package/dist/services/check-parser/package-files/json-source-file.d.ts +2 -2
- package/dist/services/check-parser/package-files/json-source-file.js +3 -7
- package/dist/services/check-parser/package-files/json-source-file.js.map +1 -1
- package/dist/services/check-parser/package-files/json-text-source-file-parser.d.ts +2 -2
- package/dist/services/check-parser/package-files/json-text-source-file-parser.js +7 -11
- package/dist/services/check-parser/package-files/json-text-source-file-parser.js.map +1 -1
- package/dist/services/check-parser/package-files/json-text-source-file.d.ts +2 -2
- package/dist/services/check-parser/package-files/json-text-source-file.js +5 -9
- package/dist/services/check-parser/package-files/json-text-source-file.js.map +1 -1
- package/dist/services/check-parser/package-files/loader.js +1 -5
- package/dist/services/check-parser/package-files/loader.js.map +1 -1
- package/dist/services/check-parser/package-files/lookup.js +10 -14
- package/dist/services/check-parser/package-files/lookup.js.map +1 -1
- package/dist/services/check-parser/package-files/package-json-file.d.ts +3 -3
- package/dist/services/check-parser/package-files/package-json-file.js +16 -23
- package/dist/services/check-parser/package-files/package-json-file.js.map +1 -1
- package/dist/services/check-parser/package-files/package-manager.d.ts +2 -2
- package/dist/services/check-parser/package-files/package-manager.js +65 -88
- package/dist/services/check-parser/package-files/package-manager.js.map +1 -1
- package/dist/services/check-parser/package-files/paths.js +6 -15
- package/dist/services/check-parser/package-files/paths.js.map +1 -1
- package/dist/services/check-parser/package-files/resolver.d.ts +8 -8
- package/dist/services/check-parser/package-files/resolver.js +37 -44
- package/dist/services/check-parser/package-files/resolver.js.map +1 -1
- package/dist/services/check-parser/package-files/result.js +2 -6
- package/dist/services/check-parser/package-files/result.js.map +1 -1
- package/dist/services/check-parser/package-files/source-file-parser.d.ts +1 -1
- package/dist/services/check-parser/package-files/source-file-parser.js +2 -7
- package/dist/services/check-parser/package-files/source-file-parser.js.map +1 -1
- package/dist/services/check-parser/package-files/source-file.js +6 -14
- package/dist/services/check-parser/package-files/source-file.js.map +1 -1
- package/dist/services/check-parser/package-files/tsconfig-json-file.d.ts +4 -4
- package/dist/services/check-parser/package-files/tsconfig-json-file.js +12 -19
- package/dist/services/check-parser/package-files/tsconfig-json-file.js.map +1 -1
- package/dist/services/check-parser/package-files/walk.js +7 -11
- package/dist/services/check-parser/package-files/walk.js.map +1 -1
- package/dist/services/check-parser/package-files/workspace.d.ts +2 -2
- package/dist/services/check-parser/package-files/workspace.js +9 -14
- package/dist/services/check-parser/package-files/workspace.js.map +1 -1
- package/dist/services/check-parser/parser.d.ts +3 -3
- package/dist/services/check-parser/parser.js +31 -70
- package/dist/services/check-parser/parser.js.map +1 -1
- package/dist/services/check-parser/playwright-config-expander.d.ts +1 -1
- package/dist/services/check-parser/playwright-config-expander.js +10 -50
- package/dist/services/check-parser/playwright-config-expander.js.map +1 -1
- package/dist/services/checkly-config-codegen.d.ts +3 -3
- package/dist/services/checkly-config-codegen.js +22 -25
- package/dist/services/checkly-config-codegen.js.map +1 -1
- package/dist/services/checkly-config-loader.d.ts +7 -7
- package/dist/services/checkly-config-loader.js +21 -63
- package/dist/services/checkly-config-loader.js.map +1 -1
- package/dist/services/config.js +4 -9
- package/dist/services/config.js.map +1 -1
- package/dist/services/load-dotenv.d.ts +1 -0
- package/dist/services/load-dotenv.js +44 -0
- package/dist/services/load-dotenv.js.map +1 -0
- package/dist/services/playwright-config.js +3 -41
- package/dist/services/playwright-config.js.map +1 -1
- package/dist/services/project-parser.d.ts +4 -4
- package/dist/services/project-parser.js +61 -100
- package/dist/services/project-parser.js.map +1 -1
- package/dist/services/proxy.js +8 -11
- package/dist/services/proxy.js.map +1 -1
- package/dist/services/shell.js +2 -6
- package/dist/services/shell.js.map +1 -1
- package/dist/services/snapshot-service.js +13 -51
- package/dist/services/snapshot-service.js.map +1 -1
- package/dist/services/socket-client.js +11 -51
- package/dist/services/socket-client.js.map +1 -1
- package/dist/services/test-filters.js +3 -8
- package/dist/services/test-filters.js.map +1 -1
- package/dist/services/test-runner.d.ts +6 -6
- package/dist/services/test-runner.js +11 -50
- package/dist/services/test-runner.js.map +1 -1
- package/dist/services/trigger-runner.d.ts +4 -4
- package/dist/services/trigger-runner.js +6 -12
- package/dist/services/trigger-runner.js.map +1 -1
- package/dist/services/util.d.ts +4 -4
- package/dist/services/util.js +66 -121
- package/dist/services/util.js.map +1 -1
- package/dist/sourcegen/args.d.ts +2 -2
- package/dist/sourcegen/args.js +2 -6
- package/dist/sourcegen/args.js.map +1 -1
- package/dist/sourcegen/argsbuilder.d.ts +5 -5
- package/dist/sourcegen/argsbuilder.js +22 -27
- package/dist/sourcegen/argsbuilder.js.map +1 -1
- package/dist/sourcegen/array.d.ts +2 -2
- package/dist/sourcegen/array.js +2 -6
- package/dist/sourcegen/array.js.map +1 -1
- package/dist/sourcegen/arraybuilder.d.ts +4 -4
- package/dist/sourcegen/arraybuilder.js +20 -25
- package/dist/sourcegen/arraybuilder.js.map +1 -1
- package/dist/sourcegen/boolean.d.ts +2 -2
- package/dist/sourcegen/boolean.js +2 -6
- package/dist/sourcegen/boolean.js.map +1 -1
- package/dist/sourcegen/case.js +8 -18
- package/dist/sourcegen/case.js.map +1 -1
- package/dist/sourcegen/comment.d.ts +2 -2
- package/dist/sourcegen/comment.js +9 -20
- package/dist/sourcegen/comment.js.map +1 -1
- package/dist/sourcegen/decl.d.ts +4 -4
- package/dist/sourcegen/decl.js +6 -15
- package/dist/sourcegen/decl.js.map +1 -1
- package/dist/sourcegen/declbuilder.d.ts +4 -4
- package/dist/sourcegen/declbuilder.js +8 -13
- package/dist/sourcegen/declbuilder.js.map +1 -1
- package/dist/sourcegen/expr.d.ts +3 -3
- package/dist/sourcegen/expr.js +7 -16
- package/dist/sourcegen/expr.js.map +1 -1
- package/dist/sourcegen/exprbuilder.d.ts +3 -3
- package/dist/sourcegen/exprbuilder.js +9 -14
- package/dist/sourcegen/exprbuilder.js.map +1 -1
- package/dist/sourcegen/identifier.d.ts +3 -3
- package/dist/sourcegen/identifier.js +5 -10
- package/dist/sourcegen/identifier.js.map +1 -1
- package/dist/sourcegen/index.d.ts +22 -22
- package/dist/sourcegen/index.js +22 -75
- package/dist/sourcegen/index.js.map +1 -1
- package/dist/sourcegen/null.d.ts +2 -2
- package/dist/sourcegen/null.js +2 -6
- package/dist/sourcegen/null.js.map +1 -1
- package/dist/sourcegen/number.d.ts +2 -2
- package/dist/sourcegen/number.js +2 -6
- package/dist/sourcegen/number.js.map +1 -1
- package/dist/sourcegen/object.d.ts +3 -3
- package/dist/sourcegen/object.js +6 -14
- package/dist/sourcegen/object.js.map +1 -1
- package/dist/sourcegen/objectbuilder.d.ts +4 -4
- package/dist/sourcegen/objectbuilder.js +21 -26
- package/dist/sourcegen/objectbuilder.js.map +1 -1
- package/dist/sourcegen/output.js +1 -5
- package/dist/sourcegen/output.js.map +1 -1
- package/dist/sourcegen/program.d.ts +4 -4
- package/dist/sourcegen/program.js +24 -64
- package/dist/sourcegen/program.js.map +1 -1
- package/dist/sourcegen/string.d.ts +2 -2
- package/dist/sourcegen/string.js +5 -10
- package/dist/sourcegen/string.js.map +1 -1
- package/dist/sourcegen/undefined.d.ts +2 -2
- package/dist/sourcegen/undefined.js +2 -6
- package/dist/sourcegen/undefined.js.map +1 -1
- package/dist/sourcegen/unknown.d.ts +1 -1
- package/dist/sourcegen/unknown.js +15 -18
- package/dist/sourcegen/unknown.js.map +1 -1
- package/dist/sourcegen/value.d.ts +1 -1
- package/dist/sourcegen/value.js +1 -5
- package/dist/sourcegen/value.js.map +1 -1
- package/dist/testing/fixture-sandbox.d.ts +20 -33
- package/dist/testing/fixture-sandbox.js +91 -75
- package/dist/testing/fixture-sandbox.js.map +1 -1
- package/dist/testing/global-setup.d.ts +2 -0
- package/dist/testing/global-setup.js +14 -0
- package/dist/testing/global-setup.js.map +1 -0
- package/dist/util/index.js +1 -4
- package/dist/util/index.js.map +1 -1
- package/oclif.manifest.json +86 -54
- package/package.json +46 -58
- package/dist/loader/ts-node.d.ts +0 -26
- package/dist/loader/ts-node.js +0 -111
- package/dist/loader/ts-node.js.map +0 -1
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const sourcegen_1 = require("../sourcegen");
|
|
6
|
-
const alert_channel_codegen_1 = require("./alert-channel-codegen");
|
|
7
|
-
const msteams_alert_channel_1 = require("./msteams-alert-channel");
|
|
1
|
+
import { Codegen, ImportSafetyViolation } from './internal/codegen/index.js';
|
|
2
|
+
import { decl, expr, ident } from '../sourcegen/index.js';
|
|
3
|
+
import { buildAlertChannelProps } from './alert-channel-codegen.js';
|
|
4
|
+
import { MSTeamsAlertChannel } from './msteams-alert-channel.js';
|
|
8
5
|
const construct = 'MSTeamsAlertChannel';
|
|
9
|
-
class MSTeamsAlertChannelCodegen extends
|
|
6
|
+
export class MSTeamsAlertChannelCodegen extends Codegen {
|
|
10
7
|
validateSafety(resource) {
|
|
11
8
|
const { config } = resource;
|
|
12
9
|
if (config.method !== 'POST') {
|
|
13
|
-
throw new
|
|
10
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'method' (expected 'POST')`);
|
|
14
11
|
}
|
|
15
12
|
if (config.headers !== undefined && config.headers.length !== 0) {
|
|
16
|
-
throw new
|
|
13
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'headers' (expected no value or an empty array)`);
|
|
17
14
|
}
|
|
18
15
|
if (config.queryParameters !== undefined && config.queryParameters.length !== 0) {
|
|
19
|
-
throw new
|
|
16
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'queryParameters' (expected no value or an empty array)`);
|
|
20
17
|
}
|
|
21
18
|
if (config.webhookSecret !== undefined) {
|
|
22
|
-
throw new
|
|
19
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'webhookSecret' (expected no value)`);
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
describe(resource) {
|
|
@@ -40,30 +37,30 @@ class MSTeamsAlertChannelCodegen extends codegen_1.Codegen {
|
|
|
40
37
|
file.namedImport(construct, 'checkly/constructs');
|
|
41
38
|
const { config } = resource;
|
|
42
39
|
if (config.method !== 'POST') {
|
|
43
|
-
throw new
|
|
40
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'method' (expected 'POST')`);
|
|
44
41
|
}
|
|
45
42
|
if (config.headers !== undefined && config.headers.length !== 0) {
|
|
46
|
-
throw new
|
|
43
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'headers' (expected no value or an empty array)`);
|
|
47
44
|
}
|
|
48
45
|
if (config.queryParameters !== undefined && config.queryParameters.length !== 0) {
|
|
49
|
-
throw new
|
|
46
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'queryParameters' (expected no value or an empty array)`);
|
|
50
47
|
}
|
|
51
48
|
if (config.webhookSecret) {
|
|
52
|
-
throw new
|
|
49
|
+
throw new ImportSafetyViolation(`Unsupported value for property 'webhookSecret' (expected no value)`);
|
|
53
50
|
}
|
|
54
|
-
file.section(
|
|
55
|
-
builder.variable(
|
|
51
|
+
file.section(decl(id, builder => {
|
|
52
|
+
builder.variable(expr(ident(construct), builder => {
|
|
56
53
|
builder.new(builder => {
|
|
57
54
|
builder.string(logicalId);
|
|
58
55
|
builder.object(builder => {
|
|
59
56
|
builder.string('name', config.name);
|
|
60
57
|
builder.string('url', config.url);
|
|
61
58
|
if (config.template) {
|
|
62
|
-
if (config.template !==
|
|
59
|
+
if (config.template !== MSTeamsAlertChannel.DEFAULT_PAYLOAD) {
|
|
63
60
|
builder.string('payload', config.template);
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
|
-
|
|
63
|
+
buildAlertChannelProps(builder, resource);
|
|
67
64
|
});
|
|
68
65
|
});
|
|
69
66
|
}));
|
|
@@ -71,5 +68,4 @@ class MSTeamsAlertChannelCodegen extends codegen_1.Codegen {
|
|
|
71
68
|
}));
|
|
72
69
|
}
|
|
73
70
|
}
|
|
74
|
-
exports.MSTeamsAlertChannelCodegen = MSTeamsAlertChannelCodegen;
|
|
75
71
|
//# sourceMappingURL=msteams-alert-channel-codegen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msteams-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/msteams-alert-channel-codegen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"msteams-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/msteams-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACrF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAQhE,MAAM,SAAS,GAAG,qBAAqB,CAAA;AAEvC,MAAM,OAAO,0BAA2B,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AC,EAAE;wBACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;wBACnC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;wBAEjC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;4BACpB,IAAI,MAAM,CAAC,QAAQ,KAAK,mBAAmB,CAAC,eAAe,EAAE,CAAC;gCAC5D,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAA;4BAC5C,CAAC;wBACH,CAAC;wBAED,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;oBAC3C,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WebhookAlertChannel } from './webhook-alert-channel';
|
|
2
|
-
import { AlertChannelProps } from './alert-channel';
|
|
1
|
+
import { WebhookAlertChannel } from './webhook-alert-channel.js';
|
|
2
|
+
import { AlertChannelProps } from './alert-channel.js';
|
|
3
3
|
export interface MSTeamsAlertChannelProps extends AlertChannelProps {
|
|
4
4
|
/**
|
|
5
5
|
* Friendly name to recognise the integration.
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MSTeamsAlertChannel = void 0;
|
|
4
|
-
const webhook_alert_channel_1 = require("./webhook-alert-channel");
|
|
1
|
+
import { WebhookAlertChannel } from './webhook-alert-channel.js';
|
|
5
2
|
/**
|
|
6
3
|
* Creates a Microsoft Teams Alert Channel
|
|
7
4
|
*
|
|
@@ -9,7 +6,7 @@ const webhook_alert_channel_1 = require("./webhook-alert-channel");
|
|
|
9
6
|
*
|
|
10
7
|
* This class make use of the Alert Channel endpoints.
|
|
11
8
|
*/
|
|
12
|
-
class MSTeamsAlertChannel extends
|
|
9
|
+
export class MSTeamsAlertChannel extends WebhookAlertChannel {
|
|
13
10
|
static DEFAULT_PAYLOAD = `{
|
|
14
11
|
"type":"message",
|
|
15
12
|
"attachments":[
|
|
@@ -162,5 +159,4 @@ class MSTeamsAlertChannel extends webhook_alert_channel_1.WebhookAlertChannel {
|
|
|
162
159
|
};
|
|
163
160
|
}
|
|
164
161
|
}
|
|
165
|
-
exports.MSTeamsAlertChannel = MSTeamsAlertChannel;
|
|
166
162
|
//# sourceMappingURL=msteams-alert-channel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msteams-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/msteams-alert-channel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"msteams-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/msteams-alert-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAoBhE;;;;;;GAMG;AACH,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB;IAC1D,MAAM,CAAC,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqH1B,CAAA;IAEC;;;;;;;MAOE;IACF,YAAa,SAAiB,EAAE,KAA+B;QAC7D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,WAAW,GAAG,iBAAiB,CAAA;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,IAAI,mBAAmB,CAAC,eAAe,CAAA;IACtE,CAAC;IAED,QAAQ;QACN,OAAO,uBAAuB,IAAI,CAAC,SAAS,EAAE,CAAA;IAChD,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,SAAS;YACf,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,eAAe,EAAE,IAAI,CAAC,eAAe;gBACrC,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC;SACF,CAAA;IACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bundle } from './construct';
|
|
2
|
-
import { MultiStepCheck } from './multi-step-check';
|
|
3
|
-
import { SharedFileRef } from './project';
|
|
1
|
+
import { Bundle } from './construct.js';
|
|
2
|
+
import { MultiStepCheck } from './multi-step-check.js';
|
|
3
|
+
import { SharedFileRef } from './project.js';
|
|
4
4
|
export interface MultiStepCheckBundleProps {
|
|
5
5
|
script: string;
|
|
6
6
|
scriptPath?: string;
|
|
@@ -17,25 +17,25 @@ export declare class MultiStepCheckBundle implements Bundle {
|
|
|
17
17
|
scriptPath: string | undefined;
|
|
18
18
|
dependencies: number[] | undefined;
|
|
19
19
|
checkType: "MULTI_STEP";
|
|
20
|
-
playwrightConfig: import("./playwright-config").PlaywrightConfig | undefined;
|
|
20
|
+
playwrightConfig: import("./playwright-config.js").PlaywrightConfig | undefined;
|
|
21
21
|
runtimeId: string | undefined;
|
|
22
|
-
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
22
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
23
23
|
activated: boolean | undefined;
|
|
24
24
|
muted: boolean | undefined;
|
|
25
25
|
shouldFail: boolean | undefined;
|
|
26
|
-
locations: (keyof import("
|
|
26
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
27
27
|
privateLocations: undefined;
|
|
28
28
|
tags: string[] | undefined;
|
|
29
29
|
frequency: number | undefined;
|
|
30
30
|
frequencyOffset: number | undefined;
|
|
31
|
-
groupId: import("./ref").Ref | null;
|
|
32
|
-
retryStrategy: import("./retry-strategy").LinearRetryStrategy | import("./retry-strategy").ExponentialRetryStrategy | import("./retry-strategy").FixedRetryStrategy | import("./retry-strategy").SingleRetryRetryStrategy | null | undefined;
|
|
31
|
+
groupId: import("./ref.js").Ref | null;
|
|
32
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
33
33
|
doubleCheck: boolean | undefined;
|
|
34
|
-
alertSettings: import("./alert-escalation-policy").AlertEscalation | undefined;
|
|
34
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
35
35
|
useGlobalAlertSettings: boolean | undefined;
|
|
36
36
|
runParallel: boolean | undefined;
|
|
37
37
|
triggerIncident: {
|
|
38
|
-
serviceId: import("./ref").Ref;
|
|
38
|
+
serviceId: import("./ref.js").Ref;
|
|
39
39
|
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
40
40
|
name: string;
|
|
41
41
|
description: string;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultiStepCheckBundle = void 0;
|
|
4
|
-
class MultiStepCheckBundle {
|
|
1
|
+
export class MultiStepCheckBundle {
|
|
5
2
|
multiStepCheck;
|
|
6
3
|
script;
|
|
7
4
|
scriptPath;
|
|
@@ -21,5 +18,4 @@ class MultiStepCheckBundle {
|
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
|
-
exports.MultiStepCheckBundle = MultiStepCheckBundle;
|
|
25
21
|
//# sourceMappingURL=multi-step-check-bundle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-step-check-bundle.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check-bundle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-step-check-bundle.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check-bundle.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,oBAAoB;IAC/B,cAAc,CAAgB;IAC9B,MAAM,CAAQ;IACd,UAAU,CAAS;IACnB,YAAY,CAAkB;IAE9B,YAAa,cAA8B,EAAE,KAAgC;QAC3E,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;IACxC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE;YACnC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PlaywrightConfigResource } from './playwright-config-codegen';
|
|
2
|
-
import { RuntimeCheckResource } from './check-codegen';
|
|
3
|
-
import { Codegen, Context } from './internal/codegen';
|
|
1
|
+
import { PlaywrightConfigResource } from './playwright-config-codegen.js';
|
|
2
|
+
import { RuntimeCheckResource } from './check-codegen.js';
|
|
3
|
+
import { Codegen, Context } from './internal/codegen/index.js';
|
|
4
4
|
export interface MultiStepCheckResource extends RuntimeCheckResource {
|
|
5
5
|
checkType: 'MULTI_STEP';
|
|
6
6
|
script: string;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const playwright_config_codegen_1 = require("./playwright-config-codegen");
|
|
6
|
-
const check_codegen_1 = require("./check-codegen");
|
|
7
|
-
const codegen_1 = require("./internal/codegen");
|
|
1
|
+
import { expr, ident } from '../sourcegen/index.js';
|
|
2
|
+
import { valueForPlaywrightConfig } from './playwright-config-codegen.js';
|
|
3
|
+
import { buildRuntimeCheckProps } from './check-codegen.js';
|
|
4
|
+
import { Codegen } from './internal/codegen/index.js';
|
|
8
5
|
const construct = 'MultiStepCheck';
|
|
9
|
-
class MultiStepCheckCodegen extends
|
|
6
|
+
export class MultiStepCheckCodegen extends Codegen {
|
|
10
7
|
describe(resource) {
|
|
11
8
|
return `Multistep Check: ${resource.name}`;
|
|
12
9
|
}
|
|
@@ -18,7 +15,7 @@ class MultiStepCheckCodegen extends codegen_1.Codegen {
|
|
|
18
15
|
});
|
|
19
16
|
const file = this.program.generatedConstructFile(filePath.fullPath);
|
|
20
17
|
file.namedImport(construct, 'checkly/constructs');
|
|
21
|
-
file.section(
|
|
18
|
+
file.section(expr(ident(construct), builder => {
|
|
22
19
|
builder.new(builder => {
|
|
23
20
|
builder.string(logicalId);
|
|
24
21
|
builder.object(builder => {
|
|
@@ -27,13 +24,12 @@ class MultiStepCheckCodegen extends codegen_1.Codegen {
|
|
|
27
24
|
builder.string('entrypoint', file.relativePath(scriptFile));
|
|
28
25
|
});
|
|
29
26
|
if (resource.playwrightConfig) {
|
|
30
|
-
builder.value('playwrightConfig',
|
|
27
|
+
builder.value('playwrightConfig', valueForPlaywrightConfig(resource.playwrightConfig));
|
|
31
28
|
}
|
|
32
|
-
|
|
29
|
+
buildRuntimeCheckProps(this.program, file, builder, resource, context);
|
|
33
30
|
});
|
|
34
31
|
});
|
|
35
32
|
}));
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
|
-
exports.MultiStepCheckCodegen = MultiStepCheckCodegen;
|
|
39
35
|
//# sourceMappingURL=multi-step-check-codegen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-step-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check-codegen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-step-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAA4B,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AACnG,OAAO,EAAE,sBAAsB,EAAwB,MAAM,oBAAoB,CAAA;AACjF,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAS9D,MAAM,SAAS,GAAG,gBAAgB,CAAA;AAElC,MAAM,OAAO,qBAAsB,SAAQ,OAA+B;IACxE,QAAQ,CAAE,QAAgC;QACxC,OAAO,oBAAoB,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC5C,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAAgC,EAAE,OAAgB;QAC5E,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,EAAE,QAAQ,CAAC,IAAI,EAAE;YAC9E,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI;SACb,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;QAEnE,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;QAEjD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE;YAC5C,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;gBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;oBACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;wBAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;wBACjF,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAA;oBAC7D,CAAC,CAAC,CAAA;oBAEF,IAAI,QAAQ,CAAC,gBAAgB,EAAE,CAAC;wBAC9B,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAA;oBACxF,CAAC;oBAED,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;gBACxE,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CheckProps, RuntimeCheck, RuntimeCheckProps } from './check';
|
|
2
|
-
import { Content, Entrypoint } from './construct';
|
|
3
|
-
import { PlaywrightConfig } from './playwright-config';
|
|
4
|
-
import { Diagnostics } from './diagnostics';
|
|
5
|
-
import { MultiStepCheckBundle } from './multi-step-check-bundle';
|
|
6
|
-
import { ConfigDefaultsGetter } from './check-config';
|
|
7
|
-
import { CheckConfigDefaults } from '../services/checkly-config-loader';
|
|
8
|
-
import { Bundler } from '../services/check-parser/bundler';
|
|
1
|
+
import { CheckProps, RuntimeCheck, RuntimeCheckProps } from './check.js';
|
|
2
|
+
import { Content, Entrypoint } from './construct.js';
|
|
3
|
+
import { PlaywrightConfig } from './playwright-config.js';
|
|
4
|
+
import { Diagnostics } from './diagnostics.js';
|
|
5
|
+
import { MultiStepCheckBundle } from './multi-step-check-bundle.js';
|
|
6
|
+
import { ConfigDefaultsGetter } from './check-config.js';
|
|
7
|
+
import { CheckConfigDefaults } from '../services/checkly-config-loader.js';
|
|
8
|
+
import { Bundler } from '../services/check-parser/bundler.js';
|
|
9
9
|
export interface MultiStepCheckProps extends RuntimeCheckProps {
|
|
10
10
|
/**
|
|
11
11
|
* A valid piece of Node.js javascript code describing a multi-step interaction
|
|
@@ -47,23 +47,23 @@ export declare class MultiStepCheck extends RuntimeCheck {
|
|
|
47
47
|
checkType: "MULTI_STEP";
|
|
48
48
|
playwrightConfig: PlaywrightConfig | undefined;
|
|
49
49
|
runtimeId: string | undefined;
|
|
50
|
-
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
50
|
+
environmentVariables: import("./key-value-pair.js").default[] | undefined;
|
|
51
51
|
activated: boolean | undefined;
|
|
52
52
|
muted: boolean | undefined;
|
|
53
53
|
shouldFail: boolean | undefined;
|
|
54
|
-
locations: (keyof import("
|
|
54
|
+
locations: (keyof import("../index.js").Region)[] | undefined;
|
|
55
55
|
privateLocations: undefined;
|
|
56
56
|
tags: string[] | undefined;
|
|
57
57
|
frequency: number | undefined;
|
|
58
58
|
frequencyOffset: number | undefined;
|
|
59
|
-
groupId: import("./ref").Ref | null;
|
|
60
|
-
retryStrategy: import("./retry-strategy").LinearRetryStrategy | import("./retry-strategy").ExponentialRetryStrategy | import("./retry-strategy").FixedRetryStrategy | import("./retry-strategy").SingleRetryRetryStrategy | null | undefined;
|
|
59
|
+
groupId: import("./ref.js").Ref | null;
|
|
60
|
+
retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
|
|
61
61
|
doubleCheck: boolean | undefined;
|
|
62
|
-
alertSettings: import("./alert-escalation-policy").AlertEscalation | undefined;
|
|
62
|
+
alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
|
|
63
63
|
useGlobalAlertSettings: boolean | undefined;
|
|
64
64
|
runParallel: boolean | undefined;
|
|
65
65
|
triggerIncident: {
|
|
66
|
-
serviceId: import("./ref").Ref;
|
|
66
|
+
serviceId: import("./ref.js").Ref;
|
|
67
67
|
severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
|
|
68
68
|
name: string;
|
|
69
69
|
description: string;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const project_1 = require("./project");
|
|
10
|
-
const construct_1 = require("./construct");
|
|
11
|
-
const constants_1 = require("../constants");
|
|
12
|
-
const construct_diagnostics_1 = require("./construct-diagnostics");
|
|
13
|
-
const multi_step_check_bundle_1 = require("./multi-step-check-bundle");
|
|
14
|
-
const check_config_1 = require("./check-config");
|
|
1
|
+
import fs from 'node:fs/promises';
|
|
2
|
+
import { RuntimeCheck } from './check.js';
|
|
3
|
+
import { Session } from './project.js';
|
|
4
|
+
import { isContent, isEntrypoint } from './construct.js';
|
|
5
|
+
import { CheckTypes } from '../constants.js';
|
|
6
|
+
import { InvalidPropertyValueDiagnostic, UnsupportedRuntimeFeatureDiagnostic } from './construct-diagnostics.js';
|
|
7
|
+
import { MultiStepCheckBundle } from './multi-step-check-bundle.js';
|
|
8
|
+
import { makeConfigDefaultsGetter } from './check-config.js';
|
|
15
9
|
/**
|
|
16
10
|
* Creates a multi-step Check
|
|
17
11
|
*
|
|
@@ -19,7 +13,7 @@ const check_config_1 = require("./check-config");
|
|
|
19
13
|
*
|
|
20
14
|
* This class make use of the multi-step checks endpoints.
|
|
21
15
|
*/
|
|
22
|
-
class MultiStepCheck extends
|
|
16
|
+
export class MultiStepCheck extends RuntimeCheck {
|
|
23
17
|
code;
|
|
24
18
|
playwrightConfig;
|
|
25
19
|
/**
|
|
@@ -34,7 +28,7 @@ class MultiStepCheck extends check_1.RuntimeCheck {
|
|
|
34
28
|
const config = this.applyConfigDefaults(props);
|
|
35
29
|
this.code = config.code;
|
|
36
30
|
this.playwrightConfig = config.playwrightConfig;
|
|
37
|
-
|
|
31
|
+
Session.registerConstruct(this);
|
|
38
32
|
this.addSubscriptions();
|
|
39
33
|
this.addPrivateLocationCheckAssignments();
|
|
40
34
|
}
|
|
@@ -43,33 +37,33 @@ class MultiStepCheck extends check_1.RuntimeCheck {
|
|
|
43
37
|
}
|
|
44
38
|
async validate(diagnostics) {
|
|
45
39
|
await super.validate(diagnostics);
|
|
46
|
-
if (!
|
|
47
|
-
diagnostics.add(new
|
|
40
|
+
if (!isEntrypoint(this.code) && !isContent(this.code)) {
|
|
41
|
+
diagnostics.add(new InvalidPropertyValueDiagnostic('code', new Error(`Either "entrypoint" or "content" is required.`)));
|
|
48
42
|
}
|
|
49
|
-
else if (
|
|
50
|
-
diagnostics.add(new
|
|
43
|
+
else if (isEntrypoint(this.code) && isContent(this.code)) {
|
|
44
|
+
diagnostics.add(new InvalidPropertyValueDiagnostic('code', new Error(`Provide exactly one of "entrypoint" or "content", but not both.`)));
|
|
51
45
|
}
|
|
52
|
-
else if (
|
|
46
|
+
else if (isEntrypoint(this.code)) {
|
|
53
47
|
const entrypoint = this.resolveContentFilePath(this.code.entrypoint);
|
|
54
48
|
try {
|
|
55
|
-
const stats = await
|
|
49
|
+
const stats = await fs.stat(entrypoint);
|
|
56
50
|
if (stats.size === 0) {
|
|
57
|
-
diagnostics.add(new
|
|
51
|
+
diagnostics.add(new InvalidPropertyValueDiagnostic('code', new Error(`The entrypoint file "${entrypoint}" must not be empty.`)));
|
|
58
52
|
}
|
|
59
53
|
}
|
|
60
54
|
catch (err) {
|
|
61
|
-
diagnostics.add(new
|
|
55
|
+
diagnostics.add(new InvalidPropertyValueDiagnostic('code', new Error(`Unable to access entrypoint file "${entrypoint}": ${err.message}`, { cause: err })));
|
|
62
56
|
}
|
|
63
57
|
}
|
|
64
|
-
const runtime =
|
|
58
|
+
const runtime = Session.getRuntime(this.runtimeId);
|
|
65
59
|
if (runtime) {
|
|
66
60
|
if (!runtime.multiStepSupport) {
|
|
67
|
-
diagnostics.add(new
|
|
61
|
+
diagnostics.add(new UnsupportedRuntimeFeatureDiagnostic(runtime.name, new Error(`Multi-Step Checks are not supported.`)));
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
64
|
}
|
|
71
65
|
configDefaultsGetter(props) {
|
|
72
|
-
return
|
|
66
|
+
return makeConfigDefaultsGetter(props.group?.getMultiStepCheckDefaults(), Session.multiStepCheckDefaults, props.group?.getCheckDefaults(), Session.checkDefaults);
|
|
73
67
|
}
|
|
74
68
|
applyConfigDefaults(props) {
|
|
75
69
|
const config = super.applyConfigDefaults(props);
|
|
@@ -78,23 +72,23 @@ class MultiStepCheck extends check_1.RuntimeCheck {
|
|
|
78
72
|
return config;
|
|
79
73
|
}
|
|
80
74
|
static async bundle(bundler, entry, runtimeId) {
|
|
81
|
-
const runtime =
|
|
75
|
+
const runtime = Session.getRuntime(runtimeId);
|
|
82
76
|
if (!runtime) {
|
|
83
77
|
throw new Error(`${runtimeId} is not supported`);
|
|
84
78
|
}
|
|
85
|
-
const parser =
|
|
79
|
+
const parser = Session.getParser(runtime);
|
|
86
80
|
const parsed = await parser.parse(entry);
|
|
87
81
|
// Maybe we can get the parsed deps with the content immediately
|
|
88
82
|
const deps = [];
|
|
89
83
|
for (const { filePath, content } of parsed.dependencies) {
|
|
90
|
-
deps.push(
|
|
91
|
-
path:
|
|
84
|
+
deps.push(Session.registerSharedFile({
|
|
85
|
+
path: Session.relativePosixPath(filePath),
|
|
92
86
|
content,
|
|
93
87
|
}));
|
|
94
88
|
}
|
|
95
89
|
return {
|
|
96
90
|
script: parsed.entrypoint.content,
|
|
97
|
-
scriptPath:
|
|
91
|
+
scriptPath: Session.relativePosixPath(parsed.entrypoint.filePath),
|
|
98
92
|
dependencies: deps,
|
|
99
93
|
};
|
|
100
94
|
}
|
|
@@ -102,8 +96,8 @@ class MultiStepCheck extends check_1.RuntimeCheck {
|
|
|
102
96
|
return this.__checkFilePath;
|
|
103
97
|
}
|
|
104
98
|
async bundle(bundler) {
|
|
105
|
-
return new
|
|
106
|
-
if (
|
|
99
|
+
return new MultiStepCheckBundle(this, await (async () => {
|
|
100
|
+
if (isEntrypoint(this.code)) {
|
|
107
101
|
const bundle = await MultiStepCheck.bundle(bundler, this.resolveContentFilePath(this.code.entrypoint), this.runtimeId);
|
|
108
102
|
if (!bundle.script) {
|
|
109
103
|
throw new Error(`The "code" property must not point to an empty file.`);
|
|
@@ -119,10 +113,9 @@ class MultiStepCheck extends check_1.RuntimeCheck {
|
|
|
119
113
|
synthesize() {
|
|
120
114
|
return {
|
|
121
115
|
...super.synthesize(),
|
|
122
|
-
checkType:
|
|
116
|
+
checkType: CheckTypes.MULTI_STEP,
|
|
123
117
|
playwrightConfig: this.playwrightConfig,
|
|
124
118
|
};
|
|
125
119
|
}
|
|
126
120
|
}
|
|
127
|
-
exports.MultiStepCheck = MultiStepCheck;
|
|
128
121
|
//# sourceMappingURL=multi-step-check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-step-check.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-step-check.js","sourceRoot":"","sources":["../../src/constructs/multi-step-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAEjC,OAAO,EAAc,YAAY,EAAqB,MAAM,YAAY,CAAA;AACxE,OAAO,EAAE,OAAO,EAAiB,MAAM,cAAc,CAAA;AACrD,OAAO,EAAuB,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C,OAAO,EAAE,8BAA8B,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAChH,OAAO,EAAE,oBAAoB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OAAgB;QAC5B,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;YACtD,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC5B,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,CACxC,OAAO,EACP,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EACjD,IAAI,CAAC,SAAS,CACf,CAAA;gBACD,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;oBACnB,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;gBACzE,CAAC;gBACD,OAAO,MAAM,CAAA;YACf,CAAC;YAED,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAA;YAChC,OAAO;gBACL,MAAM;aACP,CAAA;QACH,CAAC,CAAC,EAAE,CAAC,CAAA;IACP,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,SAAS,EAAE,UAAU,CAAC,UAAU;YAChC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;SACxC,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Codegen, Context } from './internal/codegen';
|
|
2
|
-
import { AlertChannelResource } from './alert-channel-codegen';
|
|
1
|
+
import { Codegen, Context } from './internal/codegen/index.js';
|
|
2
|
+
import { AlertChannelResource } from './alert-channel-codegen.js';
|
|
3
3
|
export interface OpsgenieAlertChannelResource extends AlertChannelResource {
|
|
4
4
|
type: 'OPSGENIE';
|
|
5
5
|
config: {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const codegen_1 = require("./internal/codegen");
|
|
5
|
-
const sourcegen_1 = require("../sourcegen");
|
|
6
|
-
const alert_channel_codegen_1 = require("./alert-channel-codegen");
|
|
1
|
+
import { Codegen } from './internal/codegen/index.js';
|
|
2
|
+
import { decl, expr, ident } from '../sourcegen/index.js';
|
|
3
|
+
import { buildAlertChannelProps } from './alert-channel-codegen.js';
|
|
7
4
|
const construct = 'OpsgenieAlertChannel';
|
|
8
|
-
class OpsgenieAlertChannelCodegen extends
|
|
5
|
+
export class OpsgenieAlertChannelCodegen extends Codegen {
|
|
9
6
|
describe(resource) {
|
|
10
7
|
return `Opsgenie Alert Channel: ${resource.config.name}`;
|
|
11
8
|
}
|
|
@@ -20,8 +17,8 @@ class OpsgenieAlertChannelCodegen extends codegen_1.Codegen {
|
|
|
20
17
|
const { id, file } = context.lookupAlertChannel(resource.id);
|
|
21
18
|
file.namedImport(construct, 'checkly/constructs');
|
|
22
19
|
const { config } = resource;
|
|
23
|
-
file.section(
|
|
24
|
-
builder.variable(
|
|
20
|
+
file.section(decl(id, builder => {
|
|
21
|
+
builder.variable(expr(ident(construct), builder => {
|
|
25
22
|
builder.new(builder => {
|
|
26
23
|
builder.string(logicalId);
|
|
27
24
|
builder.object(builder => {
|
|
@@ -29,7 +26,7 @@ class OpsgenieAlertChannelCodegen extends codegen_1.Codegen {
|
|
|
29
26
|
builder.string('apiKey', config.apiKey);
|
|
30
27
|
builder.string('region', config.region);
|
|
31
28
|
builder.string('priority', config.priority);
|
|
32
|
-
|
|
29
|
+
buildAlertChannelProps(builder, resource);
|
|
33
30
|
});
|
|
34
31
|
});
|
|
35
32
|
}));
|
|
@@ -37,5 +34,4 @@ class OpsgenieAlertChannelCodegen extends codegen_1.Codegen {
|
|
|
37
34
|
}));
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
|
-
exports.OpsgenieAlertChannelCodegen = OpsgenieAlertChannelCodegen;
|
|
41
37
|
//# sourceMappingURL=opsgenie-alert-channel-codegen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opsgenie-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/opsgenie-alert-channel-codegen.ts"],"names":[],"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B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE;gBAChD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;oBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;oBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;wBACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;wBACnC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;wBACvC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;wBACvC,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAA;wBAE3C,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;oBAC3C,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertChannel, AlertChannelProps } from './alert-channel';
|
|
1
|
+
import { AlertChannel, AlertChannelProps } from './alert-channel.js';
|
|
2
2
|
export type OpsgeniePriority = 'P1' | 'P2' | 'P3' | 'P4' | 'P5';
|
|
3
3
|
export type OpsgenieRegion = 'EU' | 'US';
|
|
4
4
|
export interface OpsgenieAlertChannelProps extends AlertChannelProps {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.OpsgenieAlertChannel = void 0;
|
|
4
|
-
const alert_channel_1 = require("./alert-channel");
|
|
5
|
-
const project_1 = require("./project");
|
|
1
|
+
import { AlertChannel } from './alert-channel.js';
|
|
2
|
+
import { Session } from './project.js';
|
|
6
3
|
/**
|
|
7
4
|
* Creates an Opsgenie Alert Channel
|
|
8
5
|
*
|
|
@@ -10,7 +7,7 @@ const project_1 = require("./project");
|
|
|
10
7
|
*
|
|
11
8
|
* This class make use of the Alert Channel endpoints.
|
|
12
9
|
*/
|
|
13
|
-
class OpsgenieAlertChannel extends
|
|
10
|
+
export class OpsgenieAlertChannel extends AlertChannel {
|
|
14
11
|
name;
|
|
15
12
|
apiKey;
|
|
16
13
|
region;
|
|
@@ -29,7 +26,7 @@ class OpsgenieAlertChannel extends alert_channel_1.AlertChannel {
|
|
|
29
26
|
this.apiKey = props.apiKey;
|
|
30
27
|
this.region = props.region;
|
|
31
28
|
this.priority = props.priority;
|
|
32
|
-
|
|
29
|
+
Session.registerConstruct(this);
|
|
33
30
|
}
|
|
34
31
|
describe() {
|
|
35
32
|
return `OpsgenieAlertChannel:${this.logicalId}`;
|
|
@@ -47,5 +44,4 @@ class OpsgenieAlertChannel extends alert_channel_1.AlertChannel {
|
|
|
47
44
|
};
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
|
-
exports.OpsgenieAlertChannel = OpsgenieAlertChannel;
|
|
51
47
|
//# sourceMappingURL=opsgenie-alert-channel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opsgenie-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/opsgenie-alert-channel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"opsgenie-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/opsgenie-alert-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AA0BtC;;;;;;GAMG;AACH,MAAM,OAAO,oBAAqB,SAAQ,YAAY;IACpD,IAAI,CAAQ;IACZ,MAAM,CAAQ;IACd,MAAM,CAAgB;IACtB,QAAQ,CAAkB;IAC1B;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAAgC;QAC9D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,QAAQ;QACN,OAAO,wBAAwB,IAAI,CAAC,SAAS,EAAE,CAAA;IACjD,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB;SACF,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Codegen, Context } from './internal/codegen';
|
|
2
|
-
import { AlertChannelResource } from './alert-channel-codegen';
|
|
1
|
+
import { Codegen, Context } from './internal/codegen/index.js';
|
|
2
|
+
import { AlertChannelResource } from './alert-channel-codegen.js';
|
|
3
3
|
export interface PagerdutyAlertChannelResource extends AlertChannelResource {
|
|
4
4
|
type: 'PAGERDUTY';
|
|
5
5
|
config: {
|