checkly 0.0.0-pr.1006.b6b3be2

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.
Files changed (314) hide show
  1. package/README.md +102 -0
  2. package/bin/run +5 -0
  3. package/bin/run.cmd +3 -0
  4. package/constructs.d.ts +1 -0
  5. package/constructs.js +2 -0
  6. package/dist/auth/index.d.ts +15 -0
  7. package/dist/auth/index.js +262 -0
  8. package/dist/auth/index.js.map +1 -0
  9. package/dist/commands/authCommand.d.ts +5 -0
  10. package/dist/commands/authCommand.js +37 -0
  11. package/dist/commands/authCommand.js.map +1 -0
  12. package/dist/commands/baseCommand.d.ts +13 -0
  13. package/dist/commands/baseCommand.js +48 -0
  14. package/dist/commands/baseCommand.js.map +1 -0
  15. package/dist/commands/deploy.d.ts +18 -0
  16. package/dist/commands/deploy.js +289 -0
  17. package/dist/commands/deploy.js.map +1 -0
  18. package/dist/commands/destroy.d.ts +10 -0
  19. package/dist/commands/destroy.js +84 -0
  20. package/dist/commands/destroy.js.map +1 -0
  21. package/dist/commands/env/add.d.ts +14 -0
  22. package/dist/commands/env/add.js +85 -0
  23. package/dist/commands/env/add.js.map +1 -0
  24. package/dist/commands/env/ls.d.ts +6 -0
  25. package/dist/commands/env/ls.js +44 -0
  26. package/dist/commands/env/ls.js.map +1 -0
  27. package/dist/commands/env/pull.d.ts +12 -0
  28. package/dist/commands/env/pull.js +99 -0
  29. package/dist/commands/env/pull.js.map +1 -0
  30. package/dist/commands/env/rm.d.ts +12 -0
  31. package/dist/commands/env/rm.js +82 -0
  32. package/dist/commands/env/rm.js.map +1 -0
  33. package/dist/commands/env/update.d.ts +14 -0
  34. package/dist/commands/env/update.js +88 -0
  35. package/dist/commands/env/update.js.map +1 -0
  36. package/dist/commands/help.d.ts +6 -0
  37. package/dist/commands/help.js +17 -0
  38. package/dist/commands/help.js.map +1 -0
  39. package/dist/commands/login.d.ts +13 -0
  40. package/dist/commands/login.js +134 -0
  41. package/dist/commands/login.js.map +1 -0
  42. package/dist/commands/logout.d.ts +9 -0
  43. package/dist/commands/logout.js +43 -0
  44. package/dist/commands/logout.js.map +1 -0
  45. package/dist/commands/runtimes.d.ts +6 -0
  46. package/dist/commands/runtimes.js +49 -0
  47. package/dist/commands/runtimes.js.map +1 -0
  48. package/dist/commands/switch.d.ts +9 -0
  49. package/dist/commands/switch.js +81 -0
  50. package/dist/commands/switch.js.map +1 -0
  51. package/dist/commands/sync-playwright.d.ts +10 -0
  52. package/dist/commands/sync-playwright.js +98 -0
  53. package/dist/commands/sync-playwright.js.map +1 -0
  54. package/dist/commands/test.d.ts +45 -0
  55. package/dist/commands/test.js +366 -0
  56. package/dist/commands/test.js.map +1 -0
  57. package/dist/commands/trigger.d.ts +37 -0
  58. package/dist/commands/trigger.js +242 -0
  59. package/dist/commands/trigger.js.map +1 -0
  60. package/dist/commands/whoami.d.ts +6 -0
  61. package/dist/commands/whoami.js +42 -0
  62. package/dist/commands/whoami.js.map +1 -0
  63. package/dist/config.d.ts +31 -0
  64. package/dist/config.js +8 -0
  65. package/dist/config.js.map +1 -0
  66. package/dist/constants.d.ts +7 -0
  67. package/dist/constants.js +10 -0
  68. package/dist/constants.js.map +1 -0
  69. package/dist/constructs/alert-channel-subscription.d.ts +44 -0
  70. package/dist/constructs/alert-channel-subscription.js +39 -0
  71. package/dist/constructs/alert-channel-subscription.js.map +1 -0
  72. package/dist/constructs/alert-channel.d.ts +53 -0
  73. package/dist/constructs/alert-channel.js +55 -0
  74. package/dist/constructs/alert-channel.js.map +1 -0
  75. package/dist/constructs/alert-escalation-policy.d.ts +34 -0
  76. package/dist/constructs/alert-escalation-policy.js +47 -0
  77. package/dist/constructs/alert-escalation-policy.js.map +1 -0
  78. package/dist/constructs/api-check.d.ts +187 -0
  79. package/dist/constructs/api-check.js +279 -0
  80. package/dist/constructs/api-check.js.map +1 -0
  81. package/dist/constructs/browser-check.d.ts +90 -0
  82. package/dist/constructs/browser-check.js +151 -0
  83. package/dist/constructs/browser-check.js.map +1 -0
  84. package/dist/constructs/check-group.d.ts +162 -0
  85. package/dist/constructs/check-group.js +208 -0
  86. package/dist/constructs/check-group.js.map +1 -0
  87. package/dist/constructs/check.d.ts +144 -0
  88. package/dist/constructs/check.js +133 -0
  89. package/dist/constructs/check.js.map +1 -0
  90. package/dist/constructs/construct.d.ts +17 -0
  91. package/dist/constructs/construct.js +22 -0
  92. package/dist/constructs/construct.js.map +1 -0
  93. package/dist/constructs/dashboard.d.ts +138 -0
  94. package/dist/constructs/dashboard.js +126 -0
  95. package/dist/constructs/dashboard.js.map +1 -0
  96. package/dist/constructs/email-alert-channel.d.ts +26 -0
  97. package/dist/constructs/email-alert-channel.js +37 -0
  98. package/dist/constructs/email-alert-channel.js.map +1 -0
  99. package/dist/constructs/environment-variable.d.ts +2 -0
  100. package/dist/constructs/environment-variable.js +3 -0
  101. package/dist/constructs/environment-variable.js.map +1 -0
  102. package/dist/constructs/frequency.d.ts +20 -0
  103. package/dist/constructs/frequency.js +26 -0
  104. package/dist/constructs/frequency.js.map +1 -0
  105. package/dist/constructs/heartbeat-check.d.ts +43 -0
  106. package/dist/constructs/heartbeat-check.js +61 -0
  107. package/dist/constructs/heartbeat-check.js.map +1 -0
  108. package/dist/constructs/http-header.d.ts +2 -0
  109. package/dist/constructs/http-header.js +3 -0
  110. package/dist/constructs/http-header.js.map +1 -0
  111. package/dist/constructs/index.d.ts +27 -0
  112. package/dist/constructs/index.js +44 -0
  113. package/dist/constructs/index.js.map +1 -0
  114. package/dist/constructs/key-value-pair.d.ts +6 -0
  115. package/dist/constructs/key-value-pair.js +3 -0
  116. package/dist/constructs/key-value-pair.js.map +1 -0
  117. package/dist/constructs/maintenance-window.d.ts +61 -0
  118. package/dist/constructs/maintenance-window.js +47 -0
  119. package/dist/constructs/maintenance-window.js.map +1 -0
  120. package/dist/constructs/multi-step-check.d.ts +65 -0
  121. package/dist/constructs/multi-step-check.js +153 -0
  122. package/dist/constructs/multi-step-check.js.map +1 -0
  123. package/dist/constructs/opsgenie-alert-channel.d.ts +45 -0
  124. package/dist/constructs/opsgenie-alert-channel.js +44 -0
  125. package/dist/constructs/opsgenie-alert-channel.js.map +1 -0
  126. package/dist/constructs/pagerduty-alert-channel.d.ts +39 -0
  127. package/dist/constructs/pagerduty-alert-channel.js +42 -0
  128. package/dist/constructs/pagerduty-alert-channel.js.map +1 -0
  129. package/dist/constructs/phone-call-alert-channel.d.ts +34 -0
  130. package/dist/constructs/phone-call-alert-channel.js +42 -0
  131. package/dist/constructs/phone-call-alert-channel.js.map +1 -0
  132. package/dist/constructs/playwright-config.d.ts +52 -0
  133. package/dist/constructs/playwright-config.js +3 -0
  134. package/dist/constructs/playwright-config.js.map +1 -0
  135. package/dist/constructs/private-location-check-assignment.d.ts +29 -0
  136. package/dist/constructs/private-location-check-assignment.js +35 -0
  137. package/dist/constructs/private-location-check-assignment.js.map +1 -0
  138. package/dist/constructs/private-location-group-assignment.d.ts +29 -0
  139. package/dist/constructs/private-location-group-assignment.js +35 -0
  140. package/dist/constructs/private-location-group-assignment.js.map +1 -0
  141. package/dist/constructs/private-location.d.ts +51 -0
  142. package/dist/constructs/private-location.js +61 -0
  143. package/dist/constructs/private-location.js.map +1 -0
  144. package/dist/constructs/project.d.ts +66 -0
  145. package/dist/constructs/project.js +155 -0
  146. package/dist/constructs/project.js.map +1 -0
  147. package/dist/constructs/query-param.d.ts +2 -0
  148. package/dist/constructs/query-param.js +3 -0
  149. package/dist/constructs/query-param.js.map +1 -0
  150. package/dist/constructs/ref.d.ts +5 -0
  151. package/dist/constructs/ref.js +13 -0
  152. package/dist/constructs/ref.js.map +1 -0
  153. package/dist/constructs/retry-strategy.d.ts +50 -0
  154. package/dist/constructs/retry-strategy.js +51 -0
  155. package/dist/constructs/retry-strategy.js.map +1 -0
  156. package/dist/constructs/slack-alert-channel.d.ts +26 -0
  157. package/dist/constructs/slack-alert-channel.js +40 -0
  158. package/dist/constructs/slack-alert-channel.js.map +1 -0
  159. package/dist/constructs/sms-alert-channel.d.ts +32 -0
  160. package/dist/constructs/sms-alert-channel.js +40 -0
  161. package/dist/constructs/sms-alert-channel.js.map +1 -0
  162. package/dist/constructs/validator-error.d.ts +2 -0
  163. package/dist/constructs/validator-error.js +7 -0
  164. package/dist/constructs/validator-error.js.map +1 -0
  165. package/dist/constructs/webhook-alert-channel.d.ts +67 -0
  166. package/dist/constructs/webhook-alert-channel.js +52 -0
  167. package/dist/constructs/webhook-alert-channel.js.map +1 -0
  168. package/dist/help/examples.d.ts +6 -0
  169. package/dist/help/examples.js +22 -0
  170. package/dist/help/examples.js.map +1 -0
  171. package/dist/help/help-extension.d.ts +7 -0
  172. package/dist/help/help-extension.js +59 -0
  173. package/dist/help/help-extension.js.map +1 -0
  174. package/dist/index.d.ts +3 -0
  175. package/dist/index.js +30 -0
  176. package/dist/index.js.map +1 -0
  177. package/dist/messages/common-messages.d.ts +5 -0
  178. package/dist/messages/common-messages.js +9 -0
  179. package/dist/messages/common-messages.js.map +1 -0
  180. package/dist/playwright/playwright-config-loader.d.ts +1 -0
  181. package/dist/playwright/playwright-config-loader.js +26 -0
  182. package/dist/playwright/playwright-config-loader.js.map +1 -0
  183. package/dist/playwright/playwright-config-template.d.ts +8 -0
  184. package/dist/playwright/playwright-config-template.js +78 -0
  185. package/dist/playwright/playwright-config-template.js.map +1 -0
  186. package/dist/reporters/abstract-list.d.ts +41 -0
  187. package/dist/reporters/abstract-list.js +171 -0
  188. package/dist/reporters/abstract-list.js.map +1 -0
  189. package/dist/reporters/ci.d.ts +12 -0
  190. package/dist/reporters/ci.js +34 -0
  191. package/dist/reporters/ci.js.map +1 -0
  192. package/dist/reporters/dot.d.ts +10 -0
  193. package/dist/reporters/dot.js +29 -0
  194. package/dist/reporters/dot.js.map +1 -0
  195. package/dist/reporters/github.d.ts +32 -0
  196. package/dist/reporters/github.js +119 -0
  197. package/dist/reporters/github.js.map +1 -0
  198. package/dist/reporters/json.d.ts +26 -0
  199. package/dist/reporters/json.js +101 -0
  200. package/dist/reporters/json.js.map +1 -0
  201. package/dist/reporters/list.d.ts +15 -0
  202. package/dist/reporters/list.js +85 -0
  203. package/dist/reporters/list.js.map +1 -0
  204. package/dist/reporters/reporter.d.ts +16 -0
  205. package/dist/reporters/reporter.js +29 -0
  206. package/dist/reporters/reporter.js.map +1 -0
  207. package/dist/reporters/util.d.ts +18 -0
  208. package/dist/reporters/util.js +325 -0
  209. package/dist/reporters/util.js.map +1 -0
  210. package/dist/rest/accounts.d.ts +12 -0
  211. package/dist/rest/accounts.js +15 -0
  212. package/dist/rest/accounts.js.map +1 -0
  213. package/dist/rest/api.d.ts +33 -0
  214. package/dist/rest/api.js +98 -0
  215. package/dist/rest/api.js.map +1 -0
  216. package/dist/rest/assets.d.ts +13 -0
  217. package/dist/rest/assets.js +30 -0
  218. package/dist/rest/assets.js.map +1 -0
  219. package/dist/rest/checkly-storage.d.ts +12 -0
  220. package/dist/rest/checkly-storage.js +15 -0
  221. package/dist/rest/checkly-storage.js.map +1 -0
  222. package/dist/rest/environment-variables.d.ts +17 -0
  223. package/dist/rest/environment-variables.js +25 -0
  224. package/dist/rest/environment-variables.js.map +1 -0
  225. package/dist/rest/heartbeat-checks.d.ts +11 -0
  226. package/dist/rest/heartbeat-checks.js +17 -0
  227. package/dist/rest/heartbeat-checks.js.map +1 -0
  228. package/dist/rest/locations.d.ts +11 -0
  229. package/dist/rest/locations.js +12 -0
  230. package/dist/rest/locations.js.map +1 -0
  231. package/dist/rest/private-locations.d.ts +10 -0
  232. package/dist/rest/private-locations.js +12 -0
  233. package/dist/rest/private-locations.js.map +1 -0
  234. package/dist/rest/projects.d.ts +46 -0
  235. package/dist/rest/projects.js +25 -0
  236. package/dist/rest/projects.js.map +1 -0
  237. package/dist/rest/runtimes.d.ts +16 -0
  238. package/dist/rest/runtimes.js +15 -0
  239. package/dist/rest/runtimes.js.map +1 -0
  240. package/dist/rest/test-sessions.d.ts +59 -0
  241. package/dist/rest/test-sessions.js +24 -0
  242. package/dist/rest/test-sessions.js.map +1 -0
  243. package/dist/rest/users.d.ts +12 -0
  244. package/dist/rest/users.js +12 -0
  245. package/dist/rest/users.js.map +1 -0
  246. package/dist/rest/util.d.ts +4 -0
  247. package/dist/rest/util.js +17 -0
  248. package/dist/rest/util.js.map +1 -0
  249. package/dist/services/abstract-check-runner.d.ts +60 -0
  250. package/dist/services/abstract-check-runner.js +225 -0
  251. package/dist/services/abstract-check-runner.js.map +1 -0
  252. package/dist/services/check-parser/collector.d.ts +33 -0
  253. package/dist/services/check-parser/collector.js +48 -0
  254. package/dist/services/check-parser/collector.js.map +1 -0
  255. package/dist/services/check-parser/errors.d.ts +8 -0
  256. package/dist/services/check-parser/errors.js +45 -0
  257. package/dist/services/check-parser/errors.js.map +1 -0
  258. package/dist/services/check-parser/package-files/index.d.ts +1 -0
  259. package/dist/services/check-parser/package-files/index.js +6 -0
  260. package/dist/services/check-parser/package-files/index.js.map +1 -0
  261. package/dist/services/check-parser/package-files/json-source-file.d.ts +13 -0
  262. package/dist/services/check-parser/package-files/json-source-file.js +34 -0
  263. package/dist/services/check-parser/package-files/json-source-file.js.map +1 -0
  264. package/dist/services/check-parser/package-files/loader.d.ts +7 -0
  265. package/dist/services/check-parser/package-files/loader.js +19 -0
  266. package/dist/services/check-parser/package-files/loader.js.map +1 -0
  267. package/dist/services/check-parser/package-files/package-json-file.d.ts +23 -0
  268. package/dist/services/check-parser/package-files/package-json-file.js +44 -0
  269. package/dist/services/check-parser/package-files/package-json-file.js.map +1 -0
  270. package/dist/services/check-parser/package-files/paths.d.ts +22 -0
  271. package/dist/services/check-parser/package-files/paths.js +108 -0
  272. package/dist/services/check-parser/package-files/paths.js.map +1 -0
  273. package/dist/services/check-parser/package-files/resolver.d.ts +32 -0
  274. package/dist/services/check-parser/package-files/resolver.js +186 -0
  275. package/dist/services/check-parser/package-files/resolver.js.map +1 -0
  276. package/dist/services/check-parser/package-files/source-file.d.ts +13 -0
  277. package/dist/services/check-parser/package-files/source-file.js +41 -0
  278. package/dist/services/check-parser/package-files/source-file.js.map +1 -0
  279. package/dist/services/check-parser/package-files/tsconfig-json-file.d.ts +68 -0
  280. package/dist/services/check-parser/package-files/tsconfig-json-file.js +119 -0
  281. package/dist/services/check-parser/package-files/tsconfig-json-file.js.map +1 -0
  282. package/dist/services/check-parser/parser.d.ts +32 -0
  283. package/dist/services/check-parser/parser.js +303 -0
  284. package/dist/services/check-parser/parser.js.map +1 -0
  285. package/dist/services/checkly-config-loader.d.ts +72 -0
  286. package/dist/services/checkly-config-loader.js +103 -0
  287. package/dist/services/checkly-config-loader.js.map +1 -0
  288. package/dist/services/config.d.ts +28 -0
  289. package/dist/services/config.js +99 -0
  290. package/dist/services/config.js.map +1 -0
  291. package/dist/services/project-parser.d.ts +21 -0
  292. package/dist/services/project-parser.js +192 -0
  293. package/dist/services/project-parser.js.map +1 -0
  294. package/dist/services/snapshot-service.d.ts +13 -0
  295. package/dist/services/snapshot-service.js +85 -0
  296. package/dist/services/snapshot-service.js.map +1 -0
  297. package/dist/services/socket-client.d.ts +4 -0
  298. package/dist/services/socket-client.js +88 -0
  299. package/dist/services/socket-client.js.map +1 -0
  300. package/dist/services/test-filters.d.ts +3 -0
  301. package/dist/services/test-filters.js +27 -0
  302. package/dist/services/test-filters.js.map +1 -0
  303. package/dist/services/test-runner.d.ts +24 -0
  304. package/dist/services/test-runner.js +91 -0
  305. package/dist/services/test-runner.js.map +1 -0
  306. package/dist/services/trigger-runner.d.ts +29 -0
  307. package/dist/services/trigger-runner.js +59 -0
  308. package/dist/services/trigger-runner.js.map +1 -0
  309. package/dist/services/util.d.ts +32 -0
  310. package/dist/services/util.js +244 -0
  311. package/dist/services/util.js.map +1 -0
  312. package/dist/tsconfig.tsbuildinfo +1 -0
  313. package/oclif.manifest.json +635 -0
  314. package/package.json +151 -0
@@ -0,0 +1,45 @@
1
+ import { AlertChannel, AlertChannelProps } from './alert-channel';
2
+ export type OpsgeniePriority = 'P1' | 'P2' | 'P3' | 'P4' | 'P5';
3
+ export type OpsgenieRegion = 'EU' | 'US';
4
+ export interface OpsgenieAlertChannelProps extends AlertChannelProps {
5
+ /**
6
+ * Friendly name to recognise the integration.
7
+ */
8
+ name: string;
9
+ /**
10
+ * An API key for your Opsgenie account. See our
11
+ * {@link https://www.checklyhq.com/docs/integrations/opsgenie/ docs} on where to create this API key
12
+ */
13
+ apiKey: string;
14
+ /**
15
+ * Configure the Opsgenie location, either `EU` or `US`.
16
+ */
17
+ region: OpsgenieRegion;
18
+ /**
19
+ * Configure the severity level, `P1` to `P5`.
20
+ */
21
+ priority: OpsgeniePriority;
22
+ }
23
+ /**
24
+ * Creates an Opsgenie Alert Channel
25
+ *
26
+ * @remarks
27
+ *
28
+ * This class make use of the Alert Channel endpoints.
29
+ */
30
+ export declare class OpsgenieAlertChannel extends AlertChannel {
31
+ name: string;
32
+ apiKey: string;
33
+ region: OpsgenieRegion;
34
+ priority: OpsgeniePriority;
35
+ /**
36
+ * Constructs the Opsgenie Alert Channel instance
37
+ *
38
+ * @param logicalId unique project-scoped resource name identification
39
+ * @param props Opsgenie alert channel configuration properties
40
+ *
41
+ * {@link https://checklyhq.com/docs/cli/constructs-reference/#opsgeniealertchannel Read more in the docs}
42
+ */
43
+ constructor(logicalId: string, props: OpsgenieAlertChannelProps);
44
+ synthesize(): any;
45
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpsgenieAlertChannel = void 0;
4
+ const alert_channel_1 = require("./alert-channel");
5
+ const project_1 = require("./project");
6
+ /**
7
+ * Creates an Opsgenie Alert Channel
8
+ *
9
+ * @remarks
10
+ *
11
+ * This class make use of the Alert Channel endpoints.
12
+ */
13
+ class OpsgenieAlertChannel extends alert_channel_1.AlertChannel {
14
+ /**
15
+ * Constructs the Opsgenie Alert Channel instance
16
+ *
17
+ * @param logicalId unique project-scoped resource name identification
18
+ * @param props Opsgenie alert channel configuration properties
19
+ *
20
+ * {@link https://checklyhq.com/docs/cli/constructs-reference/#opsgeniealertchannel Read more in the docs}
21
+ */
22
+ constructor(logicalId, props) {
23
+ super(logicalId, props);
24
+ this.name = props.name;
25
+ this.apiKey = props.apiKey;
26
+ this.region = props.region;
27
+ this.priority = props.priority;
28
+ project_1.Session.registerConstruct(this);
29
+ }
30
+ synthesize() {
31
+ return {
32
+ ...super.synthesize(),
33
+ type: 'OPSGENIE',
34
+ config: {
35
+ name: this.name,
36
+ apiKey: this.apiKey,
37
+ region: this.region,
38
+ priority: this.priority,
39
+ },
40
+ };
41
+ }
42
+ }
43
+ exports.OpsgenieAlertChannel = OpsgenieAlertChannel;
44
+ //# sourceMappingURL=opsgenie-alert-channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opsgenie-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/opsgenie-alert-channel.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AACjE,uCAAmC;AA0BnC;;;;;;GAMG;AACH,MAAa,oBAAqB,SAAQ,4BAAY;IAKpD;;;;;;;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,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,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;AAlCD,oDAkCC"}
@@ -0,0 +1,39 @@
1
+ import { AlertChannel, AlertChannelProps } from './alert-channel';
2
+ export interface PagerdutyAlertChannelProps extends AlertChannelProps {
3
+ /**
4
+ * The name of your Pagerduty account.
5
+ */
6
+ account?: string;
7
+ /**
8
+ * The name of your service defined in Pagerduty under which the alerts should be nested.
9
+ */
10
+ serviceName?: string;
11
+ /**
12
+ * The API key created by installing the Checkly integration in Pagerduty. You
13
+ * can {@link https://app.checklyhq.com/alerts/settings/channels/new/pagerduty install the Pagerduty alert channel}
14
+ * first from our UI to grab the `serviceKey`
15
+ */
16
+ serviceKey: string;
17
+ }
18
+ /**
19
+ * Creates an Pagerduty Alert Channel
20
+ *
21
+ * @remarks
22
+ *
23
+ * This class make use of the Alert Channel endpoints.
24
+ */
25
+ export declare class PagerdutyAlertChannel extends AlertChannel {
26
+ account?: string;
27
+ serviceName?: string;
28
+ serviceKey: string;
29
+ /**
30
+ * Constructs the Pagerduty Alert Channel instance
31
+ *
32
+ * @param logicalId unique project-scoped resource name identification
33
+ * @param props Pagerduty alert channel configuration properties
34
+ *
35
+ * {@link https://checklyhq.com/docs/cli/constructs-reference/#pagerdutyalertchannel Read more in the docs}
36
+ */
37
+ constructor(logicalId: string, props: PagerdutyAlertChannelProps);
38
+ synthesize(): any;
39
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PagerdutyAlertChannel = void 0;
4
+ const alert_channel_1 = require("./alert-channel");
5
+ const project_1 = require("./project");
6
+ /**
7
+ * Creates an Pagerduty Alert Channel
8
+ *
9
+ * @remarks
10
+ *
11
+ * This class make use of the Alert Channel endpoints.
12
+ */
13
+ class PagerdutyAlertChannel extends alert_channel_1.AlertChannel {
14
+ /**
15
+ * Constructs the Pagerduty Alert Channel instance
16
+ *
17
+ * @param logicalId unique project-scoped resource name identification
18
+ * @param props Pagerduty alert channel configuration properties
19
+ *
20
+ * {@link https://checklyhq.com/docs/cli/constructs-reference/#pagerdutyalertchannel Read more in the docs}
21
+ */
22
+ constructor(logicalId, props) {
23
+ super(logicalId, props);
24
+ this.account = props.account;
25
+ this.serviceName = props.serviceName;
26
+ this.serviceKey = props.serviceKey;
27
+ project_1.Session.registerConstruct(this);
28
+ }
29
+ synthesize() {
30
+ return {
31
+ ...super.synthesize(),
32
+ type: 'PAGERDUTY',
33
+ config: {
34
+ account: this.account,
35
+ serviceName: this.serviceName,
36
+ serviceKey: this.serviceKey,
37
+ },
38
+ };
39
+ }
40
+ }
41
+ exports.PagerdutyAlertChannel = PagerdutyAlertChannel;
42
+ //# sourceMappingURL=pagerduty-alert-channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagerduty-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/pagerduty-alert-channel.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AACjE,uCAAmC;AAmBnC;;;;;;GAMG;AACH,MAAa,qBAAsB,SAAQ,4BAAY;IAIrD;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAAiC;QAC/D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;QAClC,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B;SACF,CAAA;IACH,CAAC;CACF;AA/BD,sDA+BC"}
@@ -0,0 +1,34 @@
1
+ import { AlertChannel, AlertChannelProps } from './alert-channel';
2
+ export interface PhoneCallAlertChannelProps extends AlertChannelProps {
3
+ /**
4
+ * The phone number where to send the alert notifications.
5
+ */
6
+ phoneNumber: string;
7
+ /**
8
+ * The name of the alert channel.
9
+ */
10
+ name?: string;
11
+ }
12
+ /**
13
+ * Creates a Phone Call Alert Channel
14
+ *
15
+ * @remarks
16
+ *
17
+ * This class make use of the Alert Channel endpoints.
18
+ */
19
+ export declare class PhoneCallAlertChannel extends AlertChannel {
20
+ phoneNumber: string;
21
+ name?: string;
22
+ /**
23
+ * Constructs the Phone Call Alert Channel instance
24
+ *
25
+ * @param logicalId unique project-scoped resource name identification
26
+ * @param props Phone Call alert channel configuration properties
27
+ *
28
+ * {@link https://checklyhq.com/docs/cli/constructs-reference/#phonecallalertchannel Read more in the docs}
29
+ * {@link https://checklyhq.com/docs/alerting/phone-calls/#supported-countries-and-regions
30
+ * List of supported countries}
31
+ */
32
+ constructor(logicalId: string, props: PhoneCallAlertChannelProps);
33
+ synthesize(): any;
34
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhoneCallAlertChannel = void 0;
4
+ const alert_channel_1 = require("./alert-channel");
5
+ const project_1 = require("./project");
6
+ /**
7
+ * Creates a Phone Call Alert Channel
8
+ *
9
+ * @remarks
10
+ *
11
+ * This class make use of the Alert Channel endpoints.
12
+ */
13
+ class PhoneCallAlertChannel extends alert_channel_1.AlertChannel {
14
+ /**
15
+ * Constructs the Phone Call Alert Channel instance
16
+ *
17
+ * @param logicalId unique project-scoped resource name identification
18
+ * @param props Phone Call alert channel configuration properties
19
+ *
20
+ * {@link https://checklyhq.com/docs/cli/constructs-reference/#phonecallalertchannel Read more in the docs}
21
+ * {@link https://checklyhq.com/docs/alerting/phone-calls/#supported-countries-and-regions
22
+ * List of supported countries}
23
+ */
24
+ constructor(logicalId, props) {
25
+ super(logicalId, props);
26
+ this.phoneNumber = props.phoneNumber;
27
+ this.name = props.name;
28
+ project_1.Session.registerConstruct(this);
29
+ }
30
+ synthesize() {
31
+ return {
32
+ ...super.synthesize(),
33
+ type: 'CALL',
34
+ config: {
35
+ number: this.phoneNumber,
36
+ name: this.name,
37
+ },
38
+ };
39
+ }
40
+ }
41
+ exports.PhoneCallAlertChannel = PhoneCallAlertChannel;
42
+ //# sourceMappingURL=phone-call-alert-channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-call-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/phone-call-alert-channel.ts"],"names":[],"mappings":";;;AAAA,mDAAiE;AACjE,uCAAmC;AAanC;;;;;;GAMG;AACH,MAAa,qBAAsB,SAAQ,4BAAY;IAGrD;;;;;;;;;OASG;IACH,YAAa,SAAiB,EAAE,KAAiC;QAC/D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE;gBACN,MAAM,EAAE,IAAI,CAAC,WAAW;gBACxB,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB;SACF,CAAA;IACH,CAAC;CACF;AA9BD,sDA8BC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Ref: https://playwright.dev/docs/network#http-proxy
3
+ */
4
+ type HttpProxy = {
5
+ server: string;
6
+ username?: string;
7
+ password?: string;
8
+ };
9
+ export type Use = {
10
+ baseURL?: string;
11
+ colorScheme?: string;
12
+ geolocation?: {
13
+ longitude?: number;
14
+ latitude?: number;
15
+ accuracy?: number;
16
+ };
17
+ locale?: string;
18
+ permissions?: string[];
19
+ timezoneId?: string;
20
+ viewport?: {
21
+ width?: number;
22
+ height?: number;
23
+ };
24
+ deviceScaleFactor?: number;
25
+ hasTouch?: boolean;
26
+ isMobile?: boolean;
27
+ javaScriptEnabled?: boolean;
28
+ acceptDownloads?: boolean;
29
+ extraHTTPHeaders?: object;
30
+ httpCredentials?: object;
31
+ ignoreHTTPSErrors?: boolean;
32
+ offline?: boolean;
33
+ actionTimeout?: number;
34
+ navigationTimeout?: number;
35
+ testIdAttribute?: string;
36
+ launchOptions?: object;
37
+ contextOptions?: object;
38
+ bypassCSP?: boolean;
39
+ userAgent?: string;
40
+ proxy?: HttpProxy;
41
+ };
42
+ export type Expect = {
43
+ timeout?: number;
44
+ toHaveScreenshot?: object;
45
+ toMatchSnapshot?: object;
46
+ };
47
+ export type PlaywrightConfig = {
48
+ use?: Use;
49
+ expect?: Expect;
50
+ timeout?: number;
51
+ };
52
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=playwright-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playwright-config.js","sourceRoot":"","sources":["../../src/constructs/playwright-config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import { Ref } from './ref';
2
+ import { Construct } from './construct';
3
+ export interface PrivateLocationCheckAssignmentProps {
4
+ privateLocationId: Ref;
5
+ checkId?: Ref;
6
+ }
7
+ /**
8
+ * Creates an Private Location Assignment
9
+ *
10
+ * @remarks
11
+ *
12
+ * This class make use of the Private Location Assignment endpoints.
13
+ */
14
+ export declare class PrivateLocationCheckAssignment extends Construct {
15
+ privateLocationId: Ref;
16
+ checkId?: Ref;
17
+ static readonly __checklyType = "private-location-check-assignment";
18
+ /**
19
+ * Constructs the Private Location Assignment instance
20
+ *
21
+ * @param logicalId unique project-scoped resource name identification
22
+ * @param props private location assignment configuration properties
23
+ */
24
+ constructor(logicalId: string, props: PrivateLocationCheckAssignmentProps);
25
+ synthesize(): {
26
+ privateLocationId: Ref;
27
+ checkId: Ref | undefined;
28
+ };
29
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateLocationCheckAssignment = void 0;
4
+ const construct_1 = require("./construct");
5
+ const project_1 = require("./project");
6
+ /**
7
+ * Creates an Private Location Assignment
8
+ *
9
+ * @remarks
10
+ *
11
+ * This class make use of the Private Location Assignment endpoints.
12
+ */
13
+ class PrivateLocationCheckAssignment extends construct_1.Construct {
14
+ /**
15
+ * Constructs the Private Location Assignment instance
16
+ *
17
+ * @param logicalId unique project-scoped resource name identification
18
+ * @param props private location assignment configuration properties
19
+ */
20
+ constructor(logicalId, props) {
21
+ super(PrivateLocationCheckAssignment.__checklyType, logicalId);
22
+ this.privateLocationId = props.privateLocationId;
23
+ this.checkId = props.checkId;
24
+ project_1.Session.registerConstruct(this);
25
+ }
26
+ synthesize() {
27
+ return {
28
+ privateLocationId: this.privateLocationId,
29
+ checkId: this.checkId,
30
+ };
31
+ }
32
+ }
33
+ exports.PrivateLocationCheckAssignment = PrivateLocationCheckAssignment;
34
+ PrivateLocationCheckAssignment.__checklyType = 'private-location-check-assignment';
35
+ //# sourceMappingURL=private-location-check-assignment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-location-check-assignment.js","sourceRoot":"","sources":["../../src/constructs/private-location-check-assignment.ts"],"names":[],"mappings":";;;AACA,2CAAuC;AACvC,uCAAmC;AAOnC;;;;;;GAMG;AACH,MAAa,8BAA+B,SAAQ,qBAAS;IAM3D;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAA0C;QACxE,KAAK,CAAC,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAC9D,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;;AAxBH,wEAyBC;AArBiB,4CAAa,GAAG,mCAAmC,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { Ref } from './ref';
2
+ import { Construct } from './construct';
3
+ export interface PrivateLocationGroupAssignmentProps {
4
+ privateLocationId: Ref;
5
+ groupId?: Ref;
6
+ }
7
+ /**
8
+ * Creates an Private Location Group Assignment
9
+ *
10
+ * @remarks
11
+ *
12
+ * This class make use of the Private Location Group Assignment endpoints.
13
+ */
14
+ export declare class PrivateLocationGroupAssignment extends Construct {
15
+ privateLocationId: Ref;
16
+ groupId?: Ref;
17
+ static readonly __checklyType = "private-location-group-assignment";
18
+ /**
19
+ * Constructs the Private Location GroupAssignment instance
20
+ *
21
+ * @param logicalId unique project-scoped resource name identification
22
+ * @param props private location group assignment configuration properties
23
+ */
24
+ constructor(logicalId: string, props: PrivateLocationGroupAssignmentProps);
25
+ synthesize(): {
26
+ privateLocationId: Ref;
27
+ groupId: Ref | undefined;
28
+ };
29
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateLocationGroupAssignment = void 0;
4
+ const construct_1 = require("./construct");
5
+ const project_1 = require("./project");
6
+ /**
7
+ * Creates an Private Location Group Assignment
8
+ *
9
+ * @remarks
10
+ *
11
+ * This class make use of the Private Location Group Assignment endpoints.
12
+ */
13
+ class PrivateLocationGroupAssignment extends construct_1.Construct {
14
+ /**
15
+ * Constructs the Private Location GroupAssignment instance
16
+ *
17
+ * @param logicalId unique project-scoped resource name identification
18
+ * @param props private location group assignment configuration properties
19
+ */
20
+ constructor(logicalId, props) {
21
+ super(PrivateLocationGroupAssignment.__checklyType, logicalId);
22
+ this.privateLocationId = props.privateLocationId;
23
+ this.groupId = props.groupId;
24
+ project_1.Session.registerConstruct(this);
25
+ }
26
+ synthesize() {
27
+ return {
28
+ privateLocationId: this.privateLocationId,
29
+ groupId: this.groupId,
30
+ };
31
+ }
32
+ }
33
+ exports.PrivateLocationGroupAssignment = PrivateLocationGroupAssignment;
34
+ PrivateLocationGroupAssignment.__checklyType = 'private-location-group-assignment';
35
+ //# sourceMappingURL=private-location-group-assignment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-location-group-assignment.js","sourceRoot":"","sources":["../../src/constructs/private-location-group-assignment.ts"],"names":[],"mappings":";;;AACA,2CAAuC;AACvC,uCAAmC;AAOnC;;;;;;GAMG;AACH,MAAa,8BAA+B,SAAQ,qBAAS;IAM3D;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAA0C;QACxE,KAAK,CAAC,8BAA8B,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAC9D,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;;AAxBH,wEAyBC;AArBiB,4CAAa,GAAG,mCAAmC,CAAA"}
@@ -0,0 +1,51 @@
1
+ import { Construct } from './construct';
2
+ export type PrivateLocationIcon = 'alert' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-small-down' | 'arrow-small-left' | 'arrow-small-right' | 'arrow-small-up' | 'arrow-up' | 'beaker' | 'bell' | 'bold' | 'book' | 'bookmark' | 'briefcase' | 'broadcast' | 'browser' | 'bug' | 'calendar' | 'check' | 'checklist' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-slash' | 'circuit-board' | 'clippy' | 'clock' | 'cloud-download' | 'cloud-upload' | 'code' | 'comment' | 'comment-discussion' | 'credit-card' | 'dash' | 'dashboard' | 'database' | 'desktop-download' | 'device-camera' | 'device-camera-video' | 'device-desktop' | 'device-mobile' | 'diff' | 'diff-added' | 'diff-ignored' | 'diff-modified' | 'diff-removed' | 'diff-renamed' | 'ellipses' | 'ellipsis' | 'eye' | 'file' | 'file-binary' | 'file-code' | 'file-directory' | 'file-media' | 'file-pdf' | 'file-submodule' | 'file-symlink-directory' | 'file-symlink-file' | 'file-text' | 'file-zip' | 'flame' | 'fold' | 'gear' | 'gift' | 'gist' | 'gist-secret' | 'git-branch' | 'git-commit' | 'git-compare' | 'git-merge' | 'git-pull-request' | 'globe' | 'grabber' | 'graph' | 'heart' | 'history' | 'home' | 'horizontal-rule' | 'hubot' | 'inbox' | 'info' | 'issue-closed' | 'issue-opened' | 'issue-reopened' | 'italic' | 'jersey' | 'key' | 'keyboard' | 'law' | 'light-bulb' | 'link' | 'link-external' | 'list-ordered' | 'list-unordered' | 'location' | 'lock' | 'mail' | 'mail-read' | 'mail-reply' | 'markdown' | 'mark-github' | 'megaphone' | 'mention' | 'milestone' | 'mirror' | 'mortar-board' | 'mute' | 'no-newline' | 'octoface' | 'organization' | 'package' | 'paintcan' | 'pencil' | 'person' | 'pin' | 'plug' | 'plus' | 'plus-small' | 'primitive-dot' | 'primitive-square' | 'pulse' | 'question' | 'quote' | 'radio-tower' | 'reply' | 'repo' | 'repo-clone' | 'repo-force-push' | 'repo-forked' | 'repo-pull' | 'repo-push' | 'rocket' | 'rss' | 'ruby' | 'search' | 'server' | 'settings' | 'shield' | 'sign-in' | 'sign-out' | 'smiley' | 'squirrel' | 'star' | 'stop' | 'sync' | 'tag' | 'tasklist' | 'telescope' | 'terminal' | 'text-size' | 'three-bars' | 'thumbsdown' | 'thumbsup' | 'tools' | 'trashcan' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'triangle-up' | 'unfold' | 'unmute' | 'unverified' | 'verified' | 'versions' | 'watch' | 'x' | 'zap';
3
+ export interface PrivateLocationProps {
4
+ /**
5
+ * The name assigned to the private location.
6
+ */
7
+ name: string;
8
+ /**
9
+ * A valid slug name.
10
+ */
11
+ slugName: string;
12
+ /**
13
+ * An icon
14
+ */
15
+ icon?: PrivateLocationIcon;
16
+ /**
17
+ * Define a proxy for outgoing API check HTTP calls from your private location.
18
+ */
19
+ proxyUrl?: string;
20
+ }
21
+ declare class PrivateLocationWrapper extends Construct {
22
+ constructor(logicalId: string, physicalId: string | number);
23
+ synthesize(): null;
24
+ }
25
+ /**
26
+ * Creates a Private Location
27
+ *
28
+ * @remarks
29
+ *
30
+ * This class make use of the Private Location endpoints.
31
+ *
32
+ * {@link https://www.checklyhq.com/docs/cli/constructs-reference/#privatelocation Read more in the docs}
33
+ */
34
+ export declare class PrivateLocation extends Construct {
35
+ name: string;
36
+ slugName: string;
37
+ icon?: string;
38
+ proxyUrl?: string;
39
+ static readonly __checklyType = "private-location";
40
+ /**
41
+ * Constructs the Private Location instance
42
+ *
43
+ * @param logicalId unique project-scoped resource name identification
44
+ * @param props private location configuration properties
45
+ */
46
+ constructor(logicalId: string, props: PrivateLocationProps);
47
+ static fromId(id: string): PrivateLocationWrapper;
48
+ allowInChecklyConfig(): boolean;
49
+ synthesize(): any | null;
50
+ }
51
+ export {};
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivateLocation = void 0;
4
+ const construct_1 = require("./construct");
5
+ const project_1 = require("./project");
6
+ const validator_error_1 = require("./validator-error");
7
+ class PrivateLocationWrapper extends construct_1.Construct {
8
+ constructor(logicalId, physicalId) {
9
+ super(PrivateLocation.__checklyType, logicalId, physicalId, false);
10
+ project_1.Session.registerConstruct(this);
11
+ }
12
+ synthesize() {
13
+ return null;
14
+ }
15
+ }
16
+ /**
17
+ * Creates a Private Location
18
+ *
19
+ * @remarks
20
+ *
21
+ * This class make use of the Private Location endpoints.
22
+ *
23
+ * {@link https://www.checklyhq.com/docs/cli/constructs-reference/#privatelocation Read more in the docs}
24
+ */
25
+ class PrivateLocation extends construct_1.Construct {
26
+ /**
27
+ * Constructs the Private Location instance
28
+ *
29
+ * @param logicalId unique project-scoped resource name identification
30
+ * @param props private location configuration properties
31
+ */
32
+ constructor(logicalId, props) {
33
+ super(PrivateLocation.__checklyType, logicalId);
34
+ this.name = props.name;
35
+ this.slugName = props.slugName;
36
+ this.icon = props.icon;
37
+ this.proxyUrl = props.proxyUrl;
38
+ if (!/^((?!((us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|(north|south)?(east|west)?)-\d+))[a-zA-Z0-9-]{1,30})$/
39
+ .test(this.slugName)) {
40
+ throw new validator_error_1.ValidationError(`The "slugName" must differ from all AWS locations. (slugName='${this.slugName}')`);
41
+ }
42
+ project_1.Session.registerConstruct(this);
43
+ }
44
+ static fromId(id) {
45
+ return new PrivateLocationWrapper(`private-location-${id}`, id);
46
+ }
47
+ allowInChecklyConfig() {
48
+ return true;
49
+ }
50
+ synthesize() {
51
+ return {
52
+ name: this.name,
53
+ slugName: this.slugName,
54
+ icon: this.icon,
55
+ proxyUrl: this.proxyUrl,
56
+ };
57
+ }
58
+ }
59
+ exports.PrivateLocation = PrivateLocation;
60
+ PrivateLocation.__checklyType = 'private-location';
61
+ //# sourceMappingURL=private-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-location.js","sourceRoot":"","sources":["../../src/constructs/private-location.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,uCAAmC;AACnC,uDAAmD;AA4CnD,MAAM,sBAAuB,SAAQ,qBAAS;IAC5C,YAAa,SAAiB,EAAE,UAAyB;QACvD,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC,CAAA;QAClE,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAa,eAAgB,SAAQ,qBAAS;IAQ5C;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAA2B;QACzD,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAC/C,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAE9B,IAAI,CAAC,uGAAuG;aACzG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,iCAAe,CAAC,iEAAiE,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAA;QAC/G,CAAC;QAED,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,MAAM,CAAC,MAAM,CAAE,EAAU;QACvB,OAAO,IAAI,sBAAsB,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;IACjE,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU;QACR,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAA;IACH,CAAC;;AA5CH,0CA6CC;AAvCiB,6BAAa,GAAG,kBAAkB,CAAA"}
@@ -0,0 +1,66 @@
1
+ import { CheckConfigDefaults } from '../services/checkly-config-loader';
2
+ import { Construct } from './construct';
3
+ import type { Runtime } from '../rest/runtimes';
4
+ import { Check, AlertChannelSubscription, AlertChannel, CheckGroup, MaintenanceWindow, Dashboard, PrivateLocation, PrivateLocationCheckAssignment, PrivateLocationGroupAssignment } from './';
5
+ import { ResourceSync } from '../rest/projects';
6
+ import { PrivateLocationApi } from '../rest/private-locations';
7
+ export interface ProjectProps {
8
+ /**
9
+ * Friendly name for your project.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Git repository URL.
14
+ */
15
+ repoUrl?: string;
16
+ }
17
+ export interface ProjectData {
18
+ check: Record<string, Check>;
19
+ 'check-group': Record<string, CheckGroup>;
20
+ 'alert-channel': Record<string, AlertChannel>;
21
+ 'alert-channel-subscription': Record<string, AlertChannelSubscription>;
22
+ 'maintenance-window': Record<string, MaintenanceWindow>;
23
+ 'private-location': Record<string, PrivateLocation>;
24
+ 'private-location-check-assignment': Record<string, PrivateLocationCheckAssignment>;
25
+ 'private-location-group-assignment': Record<string, PrivateLocationGroupAssignment>;
26
+ dashboard: Record<string, Dashboard>;
27
+ }
28
+ export declare class Project extends Construct {
29
+ name: string;
30
+ repoUrl?: string;
31
+ logicalId: string;
32
+ data: ProjectData;
33
+ static readonly __checklyType = "project";
34
+ /**
35
+ * Constructs the Project instance
36
+ *
37
+ * @param logicalId unique project identifier
38
+ * @param props project configuration properties
39
+ */
40
+ constructor(logicalId: string, props: ProjectProps);
41
+ addResource(type: string, logicalId: string, resource: Construct): void;
42
+ synthesize(addTestOnly?: boolean): {
43
+ project: Pick<Project, 'logicalId' | 'name' | 'repoUrl'>;
44
+ resources: Array<ResourceSync>;
45
+ };
46
+ getTestOnlyConstructs(): Construct[];
47
+ getHeartbeatLogicalIds(): string[];
48
+ private synthesizeRecord;
49
+ }
50
+ export declare class Session {
51
+ static project?: Project;
52
+ static basePath?: string;
53
+ static checkDefaults?: CheckConfigDefaults;
54
+ static browserCheckDefaults?: CheckConfigDefaults;
55
+ static multiStepCheckDefaults?: CheckConfigDefaults;
56
+ static checkFilePath?: string;
57
+ static checkFileAbsolutePath?: string;
58
+ static availableRuntimes: Record<string, Runtime>;
59
+ static verifyRuntimeDependencies: boolean;
60
+ static loadingChecklyConfigFile: boolean;
61
+ static checklyConfigFileConstructs?: Construct[];
62
+ static privateLocations: PrivateLocationApi[];
63
+ static registerConstruct(construct: Construct): void;
64
+ static validateCreateConstruct(construct: Construct): void;
65
+ static getPrivateLocations(): Promise<PrivateLocationApi[]>;
66
+ }