checkly 6.0.1 → 6.1.0-prerelease-d4c1886
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/import/plan.d.ts +1 -0
- package/dist/commands/import/plan.js +92 -43
- package/dist/commands/import/plan.js.map +1 -1
- package/dist/commands/pw-test.d.ts +27 -0
- package/dist/commands/pw-test.js +316 -0
- package/dist/commands/pw-test.js.map +1 -0
- package/dist/commands/rules.d.ts +9 -0
- package/dist/commands/rules.js +126 -0
- package/dist/commands/rules.js.map +1 -0
- package/dist/commands/sync-playwright.d.ts +0 -3
- package/dist/commands/sync-playwright.js +5 -29
- package/dist/commands/sync-playwright.js.map +1 -1
- package/dist/commands/test.d.ts +0 -12
- package/dist/commands/test.js +15 -62
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/trigger.js +2 -2
- package/dist/commands/trigger.js.map +1 -1
- package/dist/constructs/alert-channel.d.ts +67 -12
- package/dist/constructs/alert-channel.js +30 -3
- package/dist/constructs/alert-channel.js.map +1 -1
- package/dist/constructs/alert-escalation-policy.d.ts +80 -0
- package/dist/constructs/alert-escalation-policy.js +20 -0
- package/dist/constructs/alert-escalation-policy.js.map +1 -1
- package/dist/constructs/api-assertion-codegen.d.ts +3 -0
- package/dist/constructs/api-assertion-codegen.js +23 -0
- package/dist/constructs/api-assertion-codegen.js.map +1 -0
- package/dist/constructs/api-assertion.d.ts +74 -0
- package/dist/constructs/api-assertion.js +85 -0
- package/dist/constructs/api-assertion.js.map +1 -0
- package/dist/constructs/api-check-bundle.d.ts +4 -4
- package/dist/constructs/api-check-codegen.d.ts +3 -5
- package/dist/constructs/api-check-codegen.js +4 -80
- package/dist/constructs/api-check-codegen.js.map +1 -1
- package/dist/constructs/api-check.d.ts +147 -46
- package/dist/constructs/api-check.js +114 -28
- package/dist/constructs/api-check.js.map +1 -1
- package/dist/constructs/api-request-codegen.d.ts +4 -0
- package/dist/constructs/api-request-codegen.js +68 -0
- package/dist/constructs/api-request-codegen.js.map +1 -0
- package/dist/constructs/api-request.d.ts +67 -0
- package/dist/constructs/api-request.js +3 -0
- package/dist/constructs/api-request.js.map +1 -0
- package/dist/constructs/browser-check-bundle.d.ts +3 -3
- package/dist/constructs/browser-check-codegen.d.ts +2 -2
- package/dist/constructs/browser-check-codegen.js +1 -1
- package/dist/constructs/browser-check-codegen.js.map +1 -1
- package/dist/constructs/browser-check.d.ts +50 -11
- package/dist/constructs/browser-check.js +47 -25
- package/dist/constructs/browser-check.js.map +1 -1
- package/dist/constructs/check-codegen.d.ts +11 -6
- package/dist/constructs/check-codegen.js +36 -24
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check-config.d.ts +3 -0
- package/dist/constructs/check-config.js +21 -0
- package/dist/constructs/check-config.js.map +1 -0
- package/dist/constructs/check-group-codegen.js +2 -2
- package/dist/constructs/check-group-codegen.js.map +1 -1
- package/dist/constructs/check-group-v1.js +2 -22
- package/dist/constructs/check-group-v1.js.map +1 -1
- package/dist/constructs/check-group-v2.js +2 -20
- package/dist/constructs/check-group-v2.js.map +1 -1
- package/dist/constructs/check.d.ts +190 -30
- package/dist/constructs/check.js +94 -48
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/construct.d.ts +86 -0
- package/dist/constructs/construct.js +51 -0
- package/dist/constructs/construct.js.map +1 -1
- package/dist/constructs/dashboard.d.ts +98 -16
- package/dist/constructs/dashboard.js.map +1 -1
- package/dist/constructs/diagnostics.d.ts +23 -0
- package/dist/constructs/diagnostics.js +10 -0
- package/dist/constructs/diagnostics.js.map +1 -1
- package/dist/constructs/environment-variable.d.ts +19 -0
- package/dist/constructs/frequency.d.ts +42 -0
- package/dist/constructs/frequency.js +42 -0
- package/dist/constructs/frequency.js.map +1 -1
- package/dist/constructs/heartbeat-monitor-codegen.d.ts +11 -0
- package/dist/constructs/{heartbeat-check-codegen.js → heartbeat-monitor-codegen.js} +10 -10
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -0
- package/dist/constructs/{heartbeat-check.d.ts → heartbeat-monitor.d.ts} +9 -13
- package/dist/constructs/{heartbeat-check.js → heartbeat-monitor.js} +10 -13
- package/dist/constructs/heartbeat-monitor.js.map +1 -0
- package/dist/constructs/http-header.d.ts +16 -0
- package/dist/constructs/http-request.d.ts +2 -0
- package/dist/constructs/http-request.js +3 -0
- package/dist/constructs/http-request.js.map +1 -0
- package/dist/constructs/index.d.ts +10 -2
- package/dist/constructs/index.js +10 -2
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/internal/common-diagnostics.d.ts +9 -0
- package/dist/constructs/internal/common-diagnostics.js +39 -0
- package/dist/constructs/internal/common-diagnostics.js.map +1 -0
- package/dist/constructs/ip.d.ts +2 -0
- package/dist/constructs/ip.js +3 -0
- package/dist/constructs/ip.js.map +1 -0
- package/dist/constructs/key-value-pair.d.ts +35 -0
- package/dist/constructs/monitor-codegen.d.ts +1 -0
- package/dist/constructs/monitor-codegen.js +6 -0
- package/dist/constructs/monitor-codegen.js.map +1 -0
- package/dist/constructs/monitor.d.ts +113 -0
- package/dist/constructs/monitor.js +21 -0
- package/dist/constructs/monitor.js.map +1 -0
- package/dist/constructs/multi-step-check-bundle.d.ts +3 -3
- package/dist/constructs/multi-step-check-codegen.d.ts +2 -2
- package/dist/constructs/multi-step-check-codegen.js +1 -1
- package/dist/constructs/multi-step-check-codegen.js.map +1 -1
- package/dist/constructs/multi-step-check.d.ts +8 -8
- package/dist/constructs/multi-step-check.js +4 -21
- package/dist/constructs/multi-step-check.js.map +1 -1
- package/dist/constructs/playwright-check-bundle.d.ts +2 -2
- package/dist/constructs/playwright-check.d.ts +6 -6
- package/dist/constructs/playwright-check.js +1 -1
- package/dist/constructs/playwright-check.js.map +1 -1
- package/dist/constructs/project.js +1 -1
- package/dist/constructs/project.js.map +1 -1
- package/dist/constructs/query-param.d.ts +16 -0
- package/dist/constructs/ref.d.ts +44 -0
- package/dist/constructs/ref.js +44 -0
- package/dist/constructs/ref.js.map +1 -1
- package/dist/constructs/retry-strategy.d.ts +78 -8
- package/dist/constructs/retry-strategy.js +33 -0
- package/dist/constructs/retry-strategy.js.map +1 -1
- package/dist/constructs/tcp-monitor-codegen.d.ts +15 -0
- package/dist/constructs/{tcp-check-codegen.js → tcp-monitor-codegen.js} +9 -9
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -0
- package/dist/constructs/{tcp-check.d.ts → tcp-monitor.d.ts} +70 -21
- package/dist/constructs/{tcp-check.js → tcp-monitor.js} +34 -13
- package/dist/constructs/tcp-monitor.js.map +1 -0
- package/dist/constructs/url-assertion-codegen.d.ts +3 -0
- package/dist/constructs/url-assertion-codegen.js +15 -0
- package/dist/constructs/url-assertion-codegen.js.map +1 -0
- package/dist/constructs/url-assertion.d.ts +60 -0
- package/dist/constructs/url-assertion.js +56 -0
- package/dist/constructs/url-assertion.js.map +1 -0
- package/dist/constructs/url-monitor-codegen.d.ts +13 -0
- package/dist/constructs/url-monitor-codegen.js +38 -0
- package/dist/constructs/url-monitor-codegen.js.map +1 -0
- package/dist/constructs/url-monitor.d.ts +146 -0
- package/dist/constructs/url-monitor.js +99 -0
- package/dist/constructs/url-monitor.js.map +1 -0
- package/dist/constructs/url-request-codegen.d.ts +4 -0
- package/dist/constructs/url-request-codegen.js +31 -0
- package/dist/constructs/url-request-codegen.js.map +1 -0
- package/dist/constructs/url-request.d.ts +65 -0
- package/dist/constructs/url-request.js +3 -0
- package/dist/constructs/url-request.js.map +1 -0
- package/dist/constructs/webhook-alert-channel.d.ts +1 -1
- package/dist/helpers/constants.d.ts +1 -0
- package/dist/helpers/constants.js +5 -0
- package/dist/helpers/constants.js.map +1 -0
- package/dist/helpers/test-helper.d.ts +16 -0
- package/dist/helpers/test-helper.js +72 -0
- package/dist/helpers/test-helper.js.map +1 -0
- package/dist/helpers/write-config-helpers.d.ts +5 -0
- package/dist/helpers/write-config-helpers.js +88 -0
- package/dist/helpers/write-config-helpers.js.map +1 -0
- package/dist/reporters/util.js +2 -2
- package/dist/reporters/util.js.map +1 -1
- package/dist/rest/api.js +6 -0
- package/dist/rest/api.js.map +1 -1
- package/dist/rules/checkly.rules.md +491 -0
- package/dist/services/checkly-config-loader.d.ts +3 -3
- package/dist/services/checkly-config-loader.js +6 -4
- package/dist/services/checkly-config-loader.js.map +1 -1
- package/dist/services/util.d.ts +2 -2
- package/dist/services/util.js +14 -14
- package/dist/services/util.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/oclif.manifest.json +150 -1
- package/package.json +7 -3
- package/dist/constructs/heartbeat-check-codegen.d.ts +0 -11
- package/dist/constructs/heartbeat-check-codegen.js.map +0 -1
- package/dist/constructs/heartbeat-check.js.map +0 -1
- package/dist/constructs/tcp-check-codegen.d.ts +0 -15
- package/dist/constructs/tcp-check-codegen.js.map +0 -1
- package/dist/constructs/tcp-check.js.map +0 -1
|
@@ -3,44 +3,130 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApiCheck =
|
|
6
|
+
exports.ApiCheck = void 0;
|
|
7
7
|
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
8
8
|
const check_1 = require("./check");
|
|
9
9
|
const project_1 = require("./project");
|
|
10
10
|
const construct_1 = require("./construct");
|
|
11
|
-
const assertion_1 = require("./internal/assertion");
|
|
12
11
|
const construct_diagnostics_1 = require("./construct-diagnostics");
|
|
13
12
|
const api_check_bundle_1 = require("./api-check-bundle");
|
|
14
|
-
class AssertionBuilder {
|
|
15
|
-
static statusCode() {
|
|
16
|
-
return new assertion_1.NumericAssertionBuilder('STATUS_CODE');
|
|
17
|
-
}
|
|
18
|
-
static jsonBody(property) {
|
|
19
|
-
return new assertion_1.GeneralAssertionBuilder('JSON_BODY', property);
|
|
20
|
-
}
|
|
21
|
-
static headers(property, regex) {
|
|
22
|
-
return new assertion_1.GeneralAssertionBuilder('HEADERS', property, regex);
|
|
23
|
-
}
|
|
24
|
-
static textBody(property) {
|
|
25
|
-
return new assertion_1.GeneralAssertionBuilder('TEXT_BODY', property);
|
|
26
|
-
}
|
|
27
|
-
/** @deprecated Use responseTime() instead */
|
|
28
|
-
static responseTme() {
|
|
29
|
-
return new assertion_1.NumericAssertionBuilder('RESPONSE_TIME');
|
|
30
|
-
}
|
|
31
|
-
static responseTime() {
|
|
32
|
-
return new assertion_1.NumericAssertionBuilder('RESPONSE_TIME');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.AssertionBuilder = AssertionBuilder;
|
|
36
13
|
/**
|
|
37
|
-
* Creates an API Check
|
|
14
|
+
* Creates an API Check to monitor HTTP endpoints and APIs.
|
|
15
|
+
*
|
|
16
|
+
* API checks allow you to monitor REST APIs, GraphQL endpoints, and any HTTP-based service.
|
|
17
|
+
* You can validate response status codes, response times, headers, and response body content.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* // Basic API check
|
|
22
|
+
* new ApiCheck('hello-api', {
|
|
23
|
+
* name: 'Hello API',
|
|
24
|
+
* request: {
|
|
25
|
+
* method: 'GET',
|
|
26
|
+
* url: 'https://api.example.com/hello',
|
|
27
|
+
* assertions: [
|
|
28
|
+
* AssertionBuilder.statusCode().equals(200)
|
|
29
|
+
* ]
|
|
30
|
+
* }
|
|
31
|
+
* })
|
|
32
|
+
*
|
|
33
|
+
* // Advanced API check with POST request
|
|
34
|
+
* new ApiCheck('user-api', {
|
|
35
|
+
* name: 'User API Check',
|
|
36
|
+
* frequency: Frequency.EVERY_5M,
|
|
37
|
+
* locations: ['us-east-1', 'eu-west-1'],
|
|
38
|
+
* request: {
|
|
39
|
+
* method: 'POST',
|
|
40
|
+
* url: 'https://api.example.com/users',
|
|
41
|
+
* headers: [{ key: 'Content-Type', value: 'application/json' }],
|
|
42
|
+
* body: JSON.stringify({ name: 'test-user' }),
|
|
43
|
+
* bodyType: 'JSON',
|
|
44
|
+
* assertions: [
|
|
45
|
+
* AssertionBuilder.statusCode().equals(201),
|
|
46
|
+
* AssertionBuilder.jsonBody('$.id').isNotNull(),
|
|
47
|
+
* AssertionBuilder.responseTime().lessThan(1000)
|
|
48
|
+
* ]
|
|
49
|
+
* },
|
|
50
|
+
* maxResponseTime: 5000,
|
|
51
|
+
* degradedResponseTime: 2000
|
|
52
|
+
* })
|
|
53
|
+
*
|
|
54
|
+
* // Error validation check (shouldFail required for error status checks)
|
|
55
|
+
* new ApiCheck('not-found-check', {
|
|
56
|
+
* name: 'Not Found Check',
|
|
57
|
+
* shouldFail: true,
|
|
58
|
+
* request: {
|
|
59
|
+
* method: 'GET',
|
|
60
|
+
* url: 'https://api.example.com/nonexistent',
|
|
61
|
+
* assertions: [
|
|
62
|
+
* AssertionBuilder.statusCode().equals(404)
|
|
63
|
+
* ]
|
|
64
|
+
* }
|
|
65
|
+
* })
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference}
|
|
69
|
+
* @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation}
|
|
70
|
+
*/
|
|
71
|
+
/**
|
|
72
|
+
* Creates an API Check to monitor HTTP endpoints and APIs.
|
|
73
|
+
*
|
|
74
|
+
* API checks allow you to monitor REST APIs, GraphQL endpoints, and any HTTP-based service.
|
|
75
|
+
* You can validate response status codes, response times, headers, and response body content.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* // Basic API check
|
|
80
|
+
* new ApiCheck('hello-api', {
|
|
81
|
+
* name: 'Hello API',
|
|
82
|
+
* request: {
|
|
83
|
+
* method: 'GET',
|
|
84
|
+
* url: 'https://api.example.com/hello',
|
|
85
|
+
* assertions: [
|
|
86
|
+
* AssertionBuilder.statusCode().equals(200)
|
|
87
|
+
* ]
|
|
88
|
+
* }
|
|
89
|
+
* })
|
|
90
|
+
*
|
|
91
|
+
* // Advanced API check with POST request
|
|
92
|
+
* new ApiCheck('user-api', {
|
|
93
|
+
* name: 'User API Check',
|
|
94
|
+
* frequency: Frequency.EVERY_5M,
|
|
95
|
+
* locations: ['us-east-1', 'eu-west-1'],
|
|
96
|
+
* request: {
|
|
97
|
+
* method: 'POST',
|
|
98
|
+
* url: 'https://api.example.com/users',
|
|
99
|
+
* headers: [{ key: 'Content-Type', value: 'application/json' }],
|
|
100
|
+
* body: JSON.stringify({ name: 'test-user' }),
|
|
101
|
+
* bodyType: 'JSON',
|
|
102
|
+
* assertions: [
|
|
103
|
+
* AssertionBuilder.statusCode().equals(201),
|
|
104
|
+
* AssertionBuilder.jsonBody('$.id').isNotNull(),
|
|
105
|
+
* AssertionBuilder.responseTime().lessThan(1000)
|
|
106
|
+
* ]
|
|
107
|
+
* },
|
|
108
|
+
* maxResponseTime: 5000,
|
|
109
|
+
* degradedResponseTime: 2000
|
|
110
|
+
* })
|
|
38
111
|
*
|
|
39
|
-
*
|
|
112
|
+
* // Error validation check (shouldFail required for error status checks)
|
|
113
|
+
* new ApiCheck('not-found-check', {
|
|
114
|
+
* name: 'Not Found Check',
|
|
115
|
+
* shouldFail: true,
|
|
116
|
+
* request: {
|
|
117
|
+
* method: 'GET',
|
|
118
|
+
* url: 'https://api.example.com/nonexistent',
|
|
119
|
+
* assertions: [
|
|
120
|
+
* AssertionBuilder.statusCode().equals(404)
|
|
121
|
+
* ]
|
|
122
|
+
* }
|
|
123
|
+
* })
|
|
124
|
+
* ```
|
|
40
125
|
*
|
|
41
|
-
*
|
|
126
|
+
* @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference}
|
|
127
|
+
* @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation}
|
|
42
128
|
*/
|
|
43
|
-
class ApiCheck extends check_1.
|
|
129
|
+
class ApiCheck extends check_1.RuntimeCheck {
|
|
44
130
|
request;
|
|
45
131
|
localSetupScript;
|
|
46
132
|
setupScript;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-check.js","sourceRoot":"","sources":["../../src/constructs/api-check.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAiC;AAEjC,
|
|
1
|
+
{"version":3,"file":"api-check.js","sourceRoot":"","sources":["../../src/constructs/api-check.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAiC;AAEjC,mCAAyD;AAGzD,uCAAkD;AAElD,2CAA0E;AAE1E,mEAAsG;AACtG,yDAAwE;AAwExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAa,QAAS,SAAQ,oBAAY;IAC/B,OAAO,CAAS;IAChB,gBAAgB,CAAS;IACzB,WAAW,CAAuB;IAClC,mBAAmB,CAAS;IAC5B,cAAc,CAAuB;IACrC,oBAAoB,CAAS;IAC7B,eAAe,CAAS;IAEjC;;;;;;;OAOG;IAEH,YAAa,SAAiB,EAAE,KAAoB;QAClD,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QAEvB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAA;QAC9C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QAC1C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAA;QACpD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACtD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;QAE5C,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC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,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC;YACjE,YAAY,EAAE,IAAI;SACnB,CAAA;IACH,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAA;IACH,CAAC;CACF;AA9KD,4BA8KC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GeneratedFile, Program, Value } from '../sourcegen';
|
|
2
|
+
import { Request } from './api-request';
|
|
3
|
+
import { Context } from './internal/codegen';
|
|
4
|
+
export declare function valueForRequest(program: Program, genfile: GeneratedFile, context: Context, request: Request): Value;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.valueForRequest = void 0;
|
|
4
|
+
const sourcegen_1 = require("../sourcegen");
|
|
5
|
+
const api_assertion_codegen_1 = require("./api-assertion-codegen");
|
|
6
|
+
const key_value_pair_codegen_1 = require("./key-value-pair-codegen");
|
|
7
|
+
function valueForRequest(program, genfile, context, request) {
|
|
8
|
+
return (0, sourcegen_1.object)(builder => {
|
|
9
|
+
builder.string('url', request.url);
|
|
10
|
+
builder.string('method', request.method);
|
|
11
|
+
if (request.ipFamily) {
|
|
12
|
+
builder.string('ipFamily', request.ipFamily);
|
|
13
|
+
}
|
|
14
|
+
if (request.followRedirects === false) {
|
|
15
|
+
builder.boolean('followRedirects', request.followRedirects);
|
|
16
|
+
}
|
|
17
|
+
if (request.skipSSL === true) {
|
|
18
|
+
builder.boolean('skipSSL', request.skipSSL);
|
|
19
|
+
}
|
|
20
|
+
if (request.body !== undefined && request.body !== '') {
|
|
21
|
+
builder.string('body', request.body);
|
|
22
|
+
}
|
|
23
|
+
if (request.bodyType && request.bodyType !== 'NONE') {
|
|
24
|
+
builder.string('bodyType', request.bodyType);
|
|
25
|
+
}
|
|
26
|
+
if (request.headers) {
|
|
27
|
+
const headers = request.headers;
|
|
28
|
+
if (headers.length > 0) {
|
|
29
|
+
builder.array('headers', builder => {
|
|
30
|
+
for (const header of headers) {
|
|
31
|
+
builder.value((0, key_value_pair_codegen_1.valueForKeyValuePair)(program, genfile, context, header));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (request.queryParameters) {
|
|
37
|
+
const queryParameters = request.queryParameters;
|
|
38
|
+
if (queryParameters.length > 0) {
|
|
39
|
+
builder.array('queryParameters', builder => {
|
|
40
|
+
for (const param of queryParameters) {
|
|
41
|
+
builder.value((0, key_value_pair_codegen_1.valueForKeyValuePair)(program, genfile, context, param));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (request.basicAuth) {
|
|
47
|
+
const basicAuth = request.basicAuth;
|
|
48
|
+
if (basicAuth.username !== '' && basicAuth.password !== '') {
|
|
49
|
+
builder.object('basicAuth', builder => {
|
|
50
|
+
builder.string('username', basicAuth.username);
|
|
51
|
+
builder.string('password', basicAuth.password);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (request.assertions) {
|
|
56
|
+
const assertions = request.assertions;
|
|
57
|
+
if (assertions.length > 0) {
|
|
58
|
+
builder.array('assertions', builder => {
|
|
59
|
+
for (const assertion of assertions) {
|
|
60
|
+
builder.value((0, api_assertion_codegen_1.valueForAssertion)(genfile, assertion));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
exports.valueForRequest = valueForRequest;
|
|
68
|
+
//# sourceMappingURL=api-request-codegen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-request-codegen.js","sourceRoot":"","sources":["../../src/constructs/api-request-codegen.ts"],"names":[],"mappings":";;;AAAA,4CAAoE;AACpE,mEAA2D;AAG3D,qEAA+D;AAE/D,SAAgB,eAAe,CAC7B,OAAgB,EAChB,OAAsB,EACtB,OAAgB,EAChB,OAAgB;IAEhB,OAAO,IAAA,kBAAM,EAAC,OAAO,CAAC,EAAE;QACtB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;QAClC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;QAExC,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;QAC9C,CAAC;QAED,IAAI,OAAO,CAAC,eAAe,KAAK,KAAK,EAAE,CAAC;YACtC,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;QAC7D,CAAC;QAED,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YAC7B,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;QAC7C,CAAC;QAED,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;YACtD,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QACtC,CAAC;QAED,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;YACpD,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;QAC9C,CAAC;QAED,IAAI,OAAO,CAAC,OAAO,EAA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AC,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YACvB,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;YACrC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE;oBACpC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;wBACnC,OAAO,CAAC,KAAK,CAAC,IAAA,yCAAiB,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA;oBACtD,CAAC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAzED,0CAyEC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Assertion } from './api-assertion';
|
|
2
|
+
import { HttpHeader } from './http-header';
|
|
3
|
+
import { HttpRequestMethod } from './http-request';
|
|
4
|
+
import { IPFamily } from './ip';
|
|
5
|
+
import { QueryParam } from './query-param';
|
|
6
|
+
/** HTTP request body types supported by API checks */
|
|
7
|
+
export type BodyType = 'JSON' | 'FORM' | 'RAW' | 'GRAPHQL' | 'NONE';
|
|
8
|
+
/**
|
|
9
|
+
* Basic authentication credentials for HTTP requests.
|
|
10
|
+
*/
|
|
11
|
+
export interface BasicAuth {
|
|
12
|
+
/** Username for basic authentication */
|
|
13
|
+
username: string;
|
|
14
|
+
/** Password for basic authentication */
|
|
15
|
+
password: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Configuration for an HTTP request in an API check.
|
|
19
|
+
* Defines all aspects of the HTTP request to be made.
|
|
20
|
+
*/
|
|
21
|
+
export interface Request {
|
|
22
|
+
/**
|
|
23
|
+
* The URL to make the request to.
|
|
24
|
+
* @maxLength 2048
|
|
25
|
+
* @example 'https://api.example.com/users'
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
* The HTTP method to use.
|
|
30
|
+
* Supported methods: GET, POST, PUT, HEAD, DELETE, PATCH
|
|
31
|
+
*/
|
|
32
|
+
method: HttpRequestMethod;
|
|
33
|
+
/**
|
|
34
|
+
* IP family version to use for network requests.
|
|
35
|
+
* @defaultValue 'IPv4'
|
|
36
|
+
*/
|
|
37
|
+
ipFamily?: IPFamily;
|
|
38
|
+
/**
|
|
39
|
+
* Whether to follow HTTP redirects automatically.
|
|
40
|
+
* @defaultValue true
|
|
41
|
+
*/
|
|
42
|
+
followRedirects?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to skip SSL certificate verification.
|
|
45
|
+
* @defaultValue false
|
|
46
|
+
*/
|
|
47
|
+
skipSSL?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Assertions to validate the HTTP response.
|
|
50
|
+
* Check the main Checkly documentation on assertions for specific values like regular expressions
|
|
51
|
+
* and JSON path descriptors you can use in the "property" field.
|
|
52
|
+
*/
|
|
53
|
+
assertions?: Array<Assertion>;
|
|
54
|
+
/** The request body content */
|
|
55
|
+
body?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The type of the request body.
|
|
58
|
+
* @defaultValue 'NONE'
|
|
59
|
+
*/
|
|
60
|
+
bodyType?: BodyType;
|
|
61
|
+
/** HTTP headers to include in the request */
|
|
62
|
+
headers?: Array<HttpHeader>;
|
|
63
|
+
/** Query parameters to include in the request URL */
|
|
64
|
+
queryParameters?: Array<QueryParam>;
|
|
65
|
+
/** Basic authentication credentials */
|
|
66
|
+
basicAuth?: BasicAuth;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-request.js","sourceRoot":"","sources":["../../src/constructs/api-request.ts"],"names":[],"mappings":""}
|
|
@@ -30,18 +30,18 @@ export declare class BrowserCheckBundle implements Bundle {
|
|
|
30
30
|
checkType: string;
|
|
31
31
|
sslCheckDomain: string | null;
|
|
32
32
|
playwrightConfig: import("./playwright-config").PlaywrightConfig | undefined;
|
|
33
|
+
runtimeId: string | undefined;
|
|
34
|
+
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
33
35
|
name: string;
|
|
34
36
|
activated: boolean | undefined;
|
|
35
37
|
muted: boolean | undefined;
|
|
36
38
|
shouldFail: boolean | undefined;
|
|
37
|
-
runtimeId: string | undefined;
|
|
38
39
|
locations: (keyof import("..").Region)[] | undefined;
|
|
39
40
|
privateLocations: undefined;
|
|
40
41
|
tags: string[] | undefined;
|
|
41
42
|
frequency: number | undefined;
|
|
42
43
|
frequencyOffset: number | undefined;
|
|
43
|
-
groupId: import("./ref").Ref |
|
|
44
|
-
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
44
|
+
groupId: import("./ref").Ref | null;
|
|
45
45
|
retryStrategy: import("./retry-strategy").RetryStrategy | null | undefined;
|
|
46
46
|
doubleCheck: boolean | undefined;
|
|
47
47
|
alertSettings: import("./alert-escalation-policy").AlertEscalation | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Codegen, Context } from './internal/codegen';
|
|
2
|
-
import {
|
|
2
|
+
import { RuntimeCheckResource } from './check-codegen';
|
|
3
3
|
import { PlaywrightConfigResource } from './playwright-config-codegen';
|
|
4
|
-
export interface BrowserCheckResource extends
|
|
4
|
+
export interface BrowserCheckResource extends RuntimeCheckResource {
|
|
5
5
|
checkType: 'BROWSER';
|
|
6
6
|
script: string;
|
|
7
7
|
scriptPath?: string;
|
|
@@ -38,7 +38,7 @@ class BrowserCheckCodegen extends codegen_1.Codegen {
|
|
|
38
38
|
if (resource.playwrightConfig) {
|
|
39
39
|
builder.value('playwrightConfig', (0, playwright_config_codegen_1.valueForPlaywrightConfig)(resource.playwrightConfig));
|
|
40
40
|
}
|
|
41
|
-
(0, check_codegen_1.
|
|
41
|
+
(0, check_codegen_1.buildRuntimeCheckProps)(this.program, file, builder, resource, context);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/browser-check-codegen.ts"],"names":[],"mappings":";;;AAAA,gDAAqE;AACrE,4CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"browser-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/browser-check-codegen.ts"],"names":[],"mappings":";;;AAAA,gDAAqE;AACrE,4CAA0C;AAC1C,mDAA8E;AAC9E,2EAAgG;AAUhG,MAAM,SAAS,GAAG,cAAc,CAAA;AAEhC,MAAa,mBAAoB,SAAQ,iBAA6B;IACpE,QAAQ,CAAE,QAA8B;QACtC,OAAO,kBAAkB,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC1C,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAA8B,EAAE,OAAgB;QAC1E,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,EAAE,QAAQ,CAAC,IAAI,EAAE;YAC3E,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,IAAA,gBAAI,EAAC,IAAA,iBAAK,EAAC,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,IAAA,wBAAc,EAAC,QAAQ,CAAC,MAAM,CAAC,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,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckProps, RuntimeCheck, RuntimeCheckProps } from './check';
|
|
2
2
|
import { Content, Entrypoint } from './construct';
|
|
3
3
|
import { PlaywrightConfig } from './playwright-config';
|
|
4
4
|
import { Diagnostics } from './diagnostics';
|
|
5
5
|
import { BrowserCheckBundle } from './browser-check-bundle';
|
|
6
|
-
|
|
6
|
+
import { ConfigDefaultsGetter } from './check-config';
|
|
7
|
+
export interface BrowserCheckProps extends RuntimeCheckProps {
|
|
7
8
|
/**
|
|
8
9
|
* A valid piece of Node.js javascript code describing a browser interaction
|
|
9
10
|
* with the Puppeteer or Playwright frameworks.
|
|
@@ -21,13 +22,52 @@ export interface BrowserCheckProps extends CheckProps {
|
|
|
21
22
|
playwrightConfig?: PlaywrightConfig;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
|
-
* Creates a Browser Check
|
|
25
|
+
* Creates a Browser Check to monitor web applications using Playwright.
|
|
25
26
|
*
|
|
26
|
-
*
|
|
27
|
+
* Browser checks allow you to monitor complex user interactions, page performance,
|
|
28
|
+
* and visual regressions. They run real browser scripts using Playwright to simulate
|
|
29
|
+
* user behavior and validate web application functionality.
|
|
27
30
|
*
|
|
28
|
-
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```typescript
|
|
33
|
+
* // Basic browser check with script file
|
|
34
|
+
* new BrowserCheck('login-flow', {
|
|
35
|
+
* name: 'User Login Flow',
|
|
36
|
+
* frequency: Frequency.EVERY_10M,
|
|
37
|
+
* locations: ['us-east-1', 'eu-west-1'],
|
|
38
|
+
* code: {
|
|
39
|
+
* entrypoint: path.join(__dirname, 'login.spec.js')
|
|
40
|
+
* }
|
|
41
|
+
* })
|
|
42
|
+
*
|
|
43
|
+
* // Browser check with inline code
|
|
44
|
+
* new BrowserCheck('homepage', {
|
|
45
|
+
* name: 'Homepage Check',
|
|
46
|
+
* frequency: Frequency.EVERY_5M,
|
|
47
|
+
* code: {
|
|
48
|
+
* content: `
|
|
49
|
+
* const { test, expect } = require('@playwright/test')
|
|
50
|
+
*
|
|
51
|
+
* test('homepage loads correctly', async ({ page }) => {
|
|
52
|
+
* await page.goto('https://example.com')
|
|
53
|
+
* await expect(page.locator('h1')).toContainText('Welcome')
|
|
54
|
+
* await expect(page).toHaveTitle(/Example/)
|
|
55
|
+
* })
|
|
56
|
+
* `
|
|
57
|
+
* },
|
|
58
|
+
* playwrightConfig: {
|
|
59
|
+
* use: {
|
|
60
|
+
* viewport: { width: 1280, height: 720 }
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* })
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#browsercheck | BrowserCheck API Reference}
|
|
67
|
+
* @see {@link https://www.checklyhq.com/docs/monitoring/browser-checks/ | Browser Checks Documentation}
|
|
68
|
+
* @see {@link https://playwright.dev/ | Playwright Documentation}
|
|
29
69
|
*/
|
|
30
|
-
export declare class BrowserCheck extends
|
|
70
|
+
export declare class BrowserCheck extends RuntimeCheck {
|
|
31
71
|
readonly code: Content | Entrypoint;
|
|
32
72
|
readonly sslCheckDomain?: string;
|
|
33
73
|
readonly playwrightConfig?: PlaywrightConfig;
|
|
@@ -39,9 +79,8 @@ export declare class BrowserCheck extends Check {
|
|
|
39
79
|
* {@link https://checklyhq.com/docs/cli/constructs-reference/#browsercheck Read more in the docs}
|
|
40
80
|
*/
|
|
41
81
|
constructor(logicalId: string, props: BrowserCheckProps);
|
|
82
|
+
protected configDefaultsGetter(props: CheckProps): ConfigDefaultsGetter;
|
|
42
83
|
validate(diagnostics: Diagnostics): Promise<void>;
|
|
43
|
-
private static applyDefaultBrowserCheckGroupConfig;
|
|
44
|
-
private static applyDefaultBrowserCheckConfig;
|
|
45
84
|
static bundle(entry: string, runtimeId?: string): Promise<{
|
|
46
85
|
script: string;
|
|
47
86
|
scriptPath: string;
|
|
@@ -57,18 +96,18 @@ export declare class BrowserCheck extends Check {
|
|
|
57
96
|
checkType: string;
|
|
58
97
|
sslCheckDomain: string | null;
|
|
59
98
|
playwrightConfig: PlaywrightConfig | undefined;
|
|
99
|
+
runtimeId: string | undefined;
|
|
100
|
+
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
60
101
|
name: string;
|
|
61
102
|
activated: boolean | undefined;
|
|
62
103
|
muted: boolean | undefined;
|
|
63
104
|
shouldFail: boolean | undefined;
|
|
64
|
-
runtimeId: string | undefined;
|
|
65
105
|
locations: (keyof import("..").Region)[] | undefined;
|
|
66
106
|
privateLocations: undefined;
|
|
67
107
|
tags: string[] | undefined;
|
|
68
108
|
frequency: number | undefined;
|
|
69
109
|
frequencyOffset: number | undefined;
|
|
70
|
-
groupId: import("./ref").Ref |
|
|
71
|
-
environmentVariables: import("./key-value-pair").default[] | undefined;
|
|
110
|
+
groupId: import("./ref").Ref | null;
|
|
72
111
|
retryStrategy: import("./retry-strategy").RetryStrategy | null | undefined;
|
|
73
112
|
doubleCheck: boolean | undefined;
|
|
74
113
|
alertSettings: import("./alert-escalation-policy").AlertEscalation | undefined;
|
|
@@ -13,14 +13,54 @@ const construct_1 = require("./construct");
|
|
|
13
13
|
const snapshot_service_1 = require("../services/snapshot-service");
|
|
14
14
|
const construct_diagnostics_1 = require("./construct-diagnostics");
|
|
15
15
|
const browser_check_bundle_1 = require("./browser-check-bundle");
|
|
16
|
+
const check_config_1 = require("./check-config");
|
|
16
17
|
/**
|
|
17
|
-
* Creates a Browser Check
|
|
18
|
+
* Creates a Browser Check to monitor web applications using Playwright.
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
+
* Browser checks allow you to monitor complex user interactions, page performance,
|
|
21
|
+
* and visual regressions. They run real browser scripts using Playwright to simulate
|
|
22
|
+
* user behavior and validate web application functionality.
|
|
20
23
|
*
|
|
21
|
-
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* // Basic browser check with script file
|
|
27
|
+
* new BrowserCheck('login-flow', {
|
|
28
|
+
* name: 'User Login Flow',
|
|
29
|
+
* frequency: Frequency.EVERY_10M,
|
|
30
|
+
* locations: ['us-east-1', 'eu-west-1'],
|
|
31
|
+
* code: {
|
|
32
|
+
* entrypoint: path.join(__dirname, 'login.spec.js')
|
|
33
|
+
* }
|
|
34
|
+
* })
|
|
35
|
+
*
|
|
36
|
+
* // Browser check with inline code
|
|
37
|
+
* new BrowserCheck('homepage', {
|
|
38
|
+
* name: 'Homepage Check',
|
|
39
|
+
* frequency: Frequency.EVERY_5M,
|
|
40
|
+
* code: {
|
|
41
|
+
* content: `
|
|
42
|
+
* const { test, expect } = require('@playwright/test')
|
|
43
|
+
*
|
|
44
|
+
* test('homepage loads correctly', async ({ page }) => {
|
|
45
|
+
* await page.goto('https://example.com')
|
|
46
|
+
* await expect(page.locator('h1')).toContainText('Welcome')
|
|
47
|
+
* await expect(page).toHaveTitle(/Example/)
|
|
48
|
+
* })
|
|
49
|
+
* `
|
|
50
|
+
* },
|
|
51
|
+
* playwrightConfig: {
|
|
52
|
+
* use: {
|
|
53
|
+
* viewport: { width: 1280, height: 720 }
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
56
|
+
* })
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#browsercheck | BrowserCheck API Reference}
|
|
60
|
+
* @see {@link https://www.checklyhq.com/docs/monitoring/browser-checks/ | Browser Checks Documentation}
|
|
61
|
+
* @see {@link https://playwright.dev/ | Playwright Documentation}
|
|
22
62
|
*/
|
|
23
|
-
class BrowserCheck extends check_1.
|
|
63
|
+
class BrowserCheck extends check_1.RuntimeCheck {
|
|
24
64
|
code;
|
|
25
65
|
sslCheckDomain;
|
|
26
66
|
playwrightConfig;
|
|
@@ -32,10 +72,6 @@ class BrowserCheck extends check_1.Check {
|
|
|
32
72
|
* {@link https://checklyhq.com/docs/cli/constructs-reference/#browsercheck Read more in the docs}
|
|
33
73
|
*/
|
|
34
74
|
constructor(logicalId, props) {
|
|
35
|
-
if (props.group) {
|
|
36
|
-
BrowserCheck.applyDefaultBrowserCheckGroupConfig(props, props.group.getBrowserCheckDefaults());
|
|
37
|
-
}
|
|
38
|
-
BrowserCheck.applyDefaultBrowserCheckConfig(props);
|
|
39
75
|
super(logicalId, props);
|
|
40
76
|
this.code = props.code;
|
|
41
77
|
this.sslCheckDomain = props.sslCheckDomain;
|
|
@@ -44,6 +80,9 @@ class BrowserCheck extends check_1.Check {
|
|
|
44
80
|
this.addSubscriptions();
|
|
45
81
|
this.addPrivateLocationCheckAssignments();
|
|
46
82
|
}
|
|
83
|
+
configDefaultsGetter(props) {
|
|
84
|
+
return (0, check_config_1.makeConfigDefaultsGetter)(props.group?.getBrowserCheckDefaults(), project_1.Session.browserCheckDefaults, props.group?.getCheckDefaults(), project_1.Session.checkDefaults);
|
|
85
|
+
}
|
|
47
86
|
async validate(diagnostics) {
|
|
48
87
|
if (!(0, construct_1.isEntrypoint)(this.code) && !(0, construct_1.isContent)(this.code)) {
|
|
49
88
|
diagnostics.add(new construct_diagnostics_1.InvalidPropertyValueDiagnostic('code', new Error(`Either "entrypoint" or "content" is required.`)));
|
|
@@ -64,23 +103,6 @@ class BrowserCheck extends check_1.Check {
|
|
|
64
103
|
}
|
|
65
104
|
}
|
|
66
105
|
}
|
|
67
|
-
static applyDefaultBrowserCheckGroupConfig(props, groupProps) {
|
|
68
|
-
let configKey;
|
|
69
|
-
for (configKey in groupProps) {
|
|
70
|
-
const newVal = props[configKey] ?? groupProps[configKey];
|
|
71
|
-
props[configKey] = newVal;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
static applyDefaultBrowserCheckConfig(props) {
|
|
75
|
-
if (!project_1.Session.browserCheckDefaults) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
let configKey;
|
|
79
|
-
for (configKey in project_1.Session.browserCheckDefaults) {
|
|
80
|
-
const newVal = props[configKey] ?? project_1.Session.browserCheckDefaults[configKey];
|
|
81
|
-
props[configKey] = newVal;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
106
|
static async bundle(entry, runtimeId) {
|
|
85
107
|
const runtime = project_1.Session.getRuntime(runtimeId);
|
|
86
108
|
if (!runtime) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-check.js","sourceRoot":"","sources":["../../src/constructs/browser-check.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAiC;AACjC,0DAA4B;AAE5B,
|
|
1
|
+
{"version":3,"file":"browser-check.js","sourceRoot":"","sources":["../../src/constructs/browser-check.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAiC;AACjC,0DAA4B;AAE5B,mCAAqE;AACrE,uCAAkD;AAClD,2CAA8C;AAC9C,2CAA0E;AAC1E,mEAA8D;AAG9D,mEAAwE;AACxE,iEAA2D;AAC3D,iDAA+E;AAoB/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,YAAa,SAAQ,oBAAY;IACnC,IAAI,CAAsB;IAC1B,cAAc,CAAS;IACvB,gBAAgB,CAAmB;IAE5C;;;;;;OAMG;IACH,YAAa,SAAiB,EAAE,KAAwB;QACtD,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QAEvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QAC1C,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAA;QAE9C,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;QAC/B,IAAI,CAAC,gBAAgB,EAAE,CAAA;QACvB,IAAI,CAAC,kCAAkC,EAAE,CAAA;IAC3C,CAAC;IAES,oBAAoB,CAAE,KAAiB;QAC/C,OAAO,IAAA,uCAAwB,EAC7B,KAAK,CAAC,KAAK,EAAE,uBAAuB,EAAE,EACtC,iBAAO,CAAC,oBA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