checkly 4.0.8 → 4.0.10-prerelease

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 (89) hide show
  1. package/README.md +2 -0
  2. package/constructs.js +1 -0
  3. package/dist/auth/index.js +1 -1
  4. package/dist/commands/baseCommand.js +3 -1
  5. package/dist/commands/baseCommand.js.map +1 -1
  6. package/dist/commands/deploy.d.ts +1 -0
  7. package/dist/commands/deploy.js +70 -22
  8. package/dist/commands/deploy.js.map +1 -1
  9. package/dist/commands/destroy.js +13 -2
  10. package/dist/commands/destroy.js.map +1 -1
  11. package/dist/commands/help.d.ts +6 -0
  12. package/dist/commands/help.js +14 -0
  13. package/dist/commands/help.js.map +1 -0
  14. package/dist/commands/login.d.ts +2 -4
  15. package/dist/commands/login.js +15 -31
  16. package/dist/commands/login.js.map +1 -1
  17. package/dist/commands/switch.js +4 -9
  18. package/dist/commands/switch.js.map +1 -1
  19. package/dist/commands/test.js +8 -2
  20. package/dist/commands/test.js.map +1 -1
  21. package/dist/commands/trigger.js +4 -3
  22. package/dist/commands/trigger.js.map +1 -1
  23. package/dist/constructs/api-check.d.ts +1 -1
  24. package/dist/constructs/api-check.js +1 -0
  25. package/dist/constructs/api-check.js.map +1 -1
  26. package/dist/constructs/browser-check.d.ts +1 -1
  27. package/dist/constructs/browser-check.js +1 -0
  28. package/dist/constructs/browser-check.js.map +1 -1
  29. package/dist/constructs/check-group.d.ts +5 -3
  30. package/dist/constructs/check-group.js +20 -1
  31. package/dist/constructs/check-group.js.map +1 -1
  32. package/dist/constructs/check.d.ts +9 -3
  33. package/dist/constructs/check.js +19 -1
  34. package/dist/constructs/check.js.map +1 -1
  35. package/dist/constructs/dashboard.d.ts +138 -0
  36. package/dist/constructs/dashboard.js +103 -0
  37. package/dist/constructs/dashboard.js.map +1 -0
  38. package/dist/constructs/index.d.ts +7 -0
  39. package/dist/constructs/index.js +7 -0
  40. package/dist/constructs/index.js.map +1 -1
  41. package/dist/constructs/maintenance-window.d.ts +61 -0
  42. package/dist/constructs/maintenance-window.js +47 -0
  43. package/dist/constructs/maintenance-window.js.map +1 -0
  44. package/dist/constructs/private-location-check-assignment.d.ts +29 -0
  45. package/dist/constructs/private-location-check-assignment.js +35 -0
  46. package/dist/constructs/private-location-check-assignment.js.map +1 -0
  47. package/dist/constructs/private-location-group-assignment.d.ts +29 -0
  48. package/dist/constructs/private-location-group-assignment.js +35 -0
  49. package/dist/constructs/private-location-group-assignment.js.map +1 -0
  50. package/dist/constructs/private-location.d.ts +49 -0
  51. package/dist/constructs/private-location.js +59 -0
  52. package/dist/constructs/private-location.js.map +1 -0
  53. package/dist/constructs/project.d.ts +10 -4
  54. package/dist/constructs/project.js +27 -2
  55. package/dist/constructs/project.js.map +1 -1
  56. package/dist/help/help-extension.js +5 -1
  57. package/dist/help/help-extension.js.map +1 -1
  58. package/dist/reporters/abstract-list.d.ts +7 -3
  59. package/dist/reporters/abstract-list.js +24 -7
  60. package/dist/reporters/abstract-list.js.map +1 -1
  61. package/dist/reporters/github.js.map +1 -1
  62. package/dist/reporters/list.d.ts +2 -0
  63. package/dist/reporters/list.js +10 -0
  64. package/dist/reporters/list.js.map +1 -1
  65. package/dist/reporters/reporter.d.ts +2 -0
  66. package/dist/reporters/reporter.js.map +1 -1
  67. package/dist/reporters/util.d.ts +4 -3
  68. package/dist/reporters/util.js +11 -6
  69. package/dist/reporters/util.js.map +1 -1
  70. package/dist/rest/api.js +20 -1
  71. package/dist/rest/api.js.map +1 -1
  72. package/dist/rest/private-locations.d.ts +3 -4
  73. package/dist/rest/private-locations.js.map +1 -1
  74. package/dist/rest/projects.d.ts +4 -1
  75. package/dist/rest/projects.js +2 -2
  76. package/dist/rest/projects.js.map +1 -1
  77. package/dist/services/abstract-check-runner.d.ts +4 -1
  78. package/dist/services/abstract-check-runner.js +31 -6
  79. package/dist/services/abstract-check-runner.js.map +1 -1
  80. package/dist/services/config.d.ts +8 -5
  81. package/dist/services/config.js +41 -30
  82. package/dist/services/config.js.map +1 -1
  83. package/dist/services/project-parser.js +57 -3
  84. package/dist/services/project-parser.js.map +1 -1
  85. package/dist/services/util.js +7 -7
  86. package/dist/services/util.js.map +1 -1
  87. package/dist/tsconfig.tsbuildinfo +1 -1
  88. package/oclif.manifest.json +21 -18
  89. package/package.json +11 -50
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Dashboard = void 0;
4
+ const fs = require("fs");
5
+ const construct_1 = require("./construct");
6
+ const project_1 = require("./project");
7
+ const path = require("path");
8
+ /**
9
+ * Creates a Dashboard
10
+ *
11
+ * @remarks
12
+ *
13
+ * This class make use of the Dashboard endpoints.
14
+ */
15
+ class Dashboard extends construct_1.Construct {
16
+ /**
17
+ * Constructs the Dashboard instance
18
+ *
19
+ * @param logicalId unique project-scoped resource name identification
20
+ * @param props dashboard configuration properties
21
+ *
22
+ * {@link https://checklyhq.com/docs/cli/constructs/#dashboard Read more in the docs}
23
+ */
24
+ constructor(logicalId, props) {
25
+ super(Dashboard.__checklyType, logicalId);
26
+ this.tags = props.tags;
27
+ this.customUrl = props.customUrl;
28
+ this.customDomain = props.customDomain;
29
+ this.logo = props.logo;
30
+ this.favicon = props.favicon;
31
+ this.link = props.link;
32
+ this.header = props.header;
33
+ this.description = props.description;
34
+ this.width = props.width;
35
+ this.refreshRate = props.refreshRate;
36
+ this.paginate = props.paginate;
37
+ this.paginationRate = props.paginationRate;
38
+ this.checksPerPage = props.checksPerPage;
39
+ this.useTagsAndOperator = props.useTagsAndOperator;
40
+ this.hideTags = props.hideTags;
41
+ this.enableIncidents = props.enableIncidents;
42
+ this.expandChecks = props.expandChecks;
43
+ this.showHeader = props.showHeader;
44
+ this.isPrivate = props.isPrivate;
45
+ this.showP95 = props.showP95;
46
+ this.showP99 = props.showP99;
47
+ if (!props.customUrl && !props.customDomain) {
48
+ throw new Error('Either a "customUrl" or "customDomain" must be specified.');
49
+ }
50
+ if (props.customCSS) {
51
+ if ('entrypoint' in props.customCSS) {
52
+ const entrypoint = props.customCSS.entrypoint;
53
+ let absoluteEntrypoint = null;
54
+ if (path.isAbsolute(entrypoint)) {
55
+ absoluteEntrypoint = entrypoint;
56
+ }
57
+ else {
58
+ if (!project_1.Session.checkFileAbsolutePath) {
59
+ throw new Error('You cannot use relative paths without the checkFileAbsolutePath in session');
60
+ }
61
+ absoluteEntrypoint = path.join(path.dirname(project_1.Session.checkFileAbsolutePath), entrypoint);
62
+ }
63
+ if (!fs.existsSync(absoluteEntrypoint)) {
64
+ throw new Error(`Unrecognized CSS code or file not found for 'customCSS' property in dashboard '${logicalId}'.`);
65
+ }
66
+ this.customCSS = String(fs.readFileSync(absoluteEntrypoint));
67
+ }
68
+ else if ('content' in props.customCSS) {
69
+ this.customCSS = props.customCSS.content;
70
+ }
71
+ }
72
+ project_1.Session.registerConstruct(this);
73
+ }
74
+ synthesize() {
75
+ return {
76
+ tags: this.tags,
77
+ customUrl: this.customUrl,
78
+ customDomain: this.customDomain,
79
+ logo: this.logo,
80
+ favicon: this.favicon,
81
+ link: this.link,
82
+ header: this.header,
83
+ description: this.description,
84
+ width: this.width,
85
+ refreshRate: this.refreshRate,
86
+ paginate: this.paginate,
87
+ paginationRate: this.paginationRate,
88
+ checksPerPage: this.checksPerPage,
89
+ useTagsAndOperator: this.useTagsAndOperator,
90
+ hideTags: this.hideTags,
91
+ enableIncidents: this.enableIncidents,
92
+ expandChecks: this.expandChecks,
93
+ showHeader: this.showHeader,
94
+ customCSS: this.customCSS,
95
+ isPrivate: this.isPrivate,
96
+ showP95: this.showP95,
97
+ showP99: this.showP99,
98
+ };
99
+ }
100
+ }
101
+ exports.Dashboard = Dashboard;
102
+ Dashboard.__checklyType = 'dashboard';
103
+ //# sourceMappingURL=dashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/constructs/dashboard.ts"],"names":[],"mappings":";;;AAAA,yBAAwB;AACxB,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,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;;AAhHH,8BAiHC;AAzFiB,uBAAa,GAAG,WAAW,CAAA"}
@@ -13,3 +13,10 @@ export * from './environment-variable';
13
13
  export * from './http-header';
14
14
  export * from './query-param';
15
15
  export * from './frequency';
16
+ export * from './maintenance-window';
17
+ export * from './alert-channel';
18
+ export * from './private-location';
19
+ export * from './private-location-check-assignment';
20
+ export * from './private-location-group-assignment';
21
+ export * from './check';
22
+ export * from './dashboard';
@@ -29,4 +29,11 @@ __exportStar(require("./environment-variable"), exports);
29
29
  __exportStar(require("./http-header"), exports);
30
30
  __exportStar(require("./query-param"), exports);
31
31
  __exportStar(require("./frequency"), exports);
32
+ __exportStar(require("./maintenance-window"), exports);
33
+ __exportStar(require("./alert-channel"), exports);
34
+ __exportStar(require("./private-location"), exports);
35
+ __exportStar(require("./private-location-check-assignment"), exports);
36
+ __exportStar(require("./private-location-group-assignment"), exports);
37
+ __exportStar(require("./check"), exports);
38
+ __exportStar(require("./dashboard"), exports);
32
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constructs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,sDAAmC;AACnC,wDAAqC;AACrC,wDAAqC;AACrC,2DAAwC;AACxC,4DAAyC;AACzC,0DAAuC;AACvC,8CAA2B;AAC3B,kDAA+B;AAC/B,gDAA6B;AAC7B,+DAA4C;AAC5C,yDAAsC;AACtC,gDAA6B;AAC7B,gDAA6B;AAC7B,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constructs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,sDAAmC;AACnC,wDAAqC;AACrC,wDAAqC;AACrC,2DAAwC;AACxC,4DAAyC;AACzC,0DAAuC;AACvC,8CAA2B;AAC3B,kDAA+B;AAC/B,gDAA6B;AAC7B,+DAA4C;AAC5C,yDAAsC;AACtC,gDAA6B;AAC7B,gDAA6B;AAC7B,8CAA2B;AAC3B,uDAAoC;AACpC,kDAA+B;AAC/B,qDAAkC;AAClC,sEAAmD;AACnD,sEAAmD;AACnD,0CAAuB;AACvB,8CAA2B"}
@@ -0,0 +1,61 @@
1
+ import { Construct } from './construct';
2
+ export type MaintenanceWindowRepeatUnit = 'DAY' | 'WEEK' | 'MONTH';
3
+ export interface MaintenanceWindowProps {
4
+ /**
5
+ * The name of the maintenance window.
6
+ */
7
+ name: string;
8
+ /**
9
+ * A list of one or more tags that filter which checks are affected by the maintenance window.
10
+ */
11
+ tags: Array<string>;
12
+ /**
13
+ * The start date and time of the maintenance window in ISO 8601 format, "YYYY-MM-DDTHH:mm:ss.sssZ" as returned by
14
+ * `new Date()`
15
+ */
16
+ startsAt: Date;
17
+ /**
18
+ * The end date and time of the maintenance window in ISO 8601 format, "YYYY-MM-DDTHH:mm:ss.sssZ" as returned by
19
+ * `new Date()`
20
+ */
21
+ endsAt: Date;
22
+ /**
23
+ * The repeat interval of the maintenance window from the first occurrence.
24
+ */
25
+ repeatInterval?: number;
26
+ /**
27
+ * The repeat strategy for the maintenance window. This is mandatory when you specify a repeat interval.
28
+ */
29
+ repeatUnit?: MaintenanceWindowRepeatUnit;
30
+ /**
31
+ * The end date and time when the maintenance window should stop repeating.
32
+ */
33
+ repeatEndsAt?: Date;
34
+ }
35
+ /**
36
+ * Creates a Maintenance Window
37
+ *
38
+ * @remarks
39
+ *
40
+ * This class make use of the Maintenance Window endpoints.
41
+ */
42
+ export declare class MaintenanceWindow extends Construct {
43
+ name: string;
44
+ tags: Array<string>;
45
+ startsAt: Date;
46
+ endsAt: Date;
47
+ repeatInterval?: number;
48
+ repeatUnit?: MaintenanceWindowRepeatUnit;
49
+ repeatEndsAt?: Date;
50
+ static readonly __checklyType = "maintenance-window";
51
+ /**
52
+ * Constructs the Maintenance Window instance
53
+ *
54
+ * @param logicalId unique project-scoped resource name identification
55
+ * @param props maintenance window configuration properties
56
+ *
57
+ * {@link https://checklyhq.com/docs/cli/constructs/#maintenancewindow Read more in the docs}
58
+ */
59
+ constructor(logicalId: string, props: MaintenanceWindowProps);
60
+ synthesize(): any | null;
61
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaintenanceWindow = void 0;
4
+ const construct_1 = require("./construct");
5
+ const project_1 = require("./project");
6
+ /**
7
+ * Creates a Maintenance Window
8
+ *
9
+ * @remarks
10
+ *
11
+ * This class make use of the Maintenance Window endpoints.
12
+ */
13
+ class MaintenanceWindow extends construct_1.Construct {
14
+ /**
15
+ * Constructs the Maintenance Window instance
16
+ *
17
+ * @param logicalId unique project-scoped resource name identification
18
+ * @param props maintenance window configuration properties
19
+ *
20
+ * {@link https://checklyhq.com/docs/cli/constructs/#maintenancewindow Read more in the docs}
21
+ */
22
+ constructor(logicalId, props) {
23
+ super(MaintenanceWindow.__checklyType, logicalId);
24
+ this.name = props.name;
25
+ this.tags = props.tags;
26
+ this.startsAt = props.startsAt;
27
+ this.endsAt = props.endsAt;
28
+ this.repeatInterval = props.repeatInterval;
29
+ this.repeatUnit = props.repeatUnit;
30
+ this.repeatEndsAt = props.repeatEndsAt;
31
+ project_1.Session.registerConstruct(this);
32
+ }
33
+ synthesize() {
34
+ return {
35
+ name: this.name,
36
+ tags: this.tags,
37
+ startsAt: this.startsAt,
38
+ endsAt: this.endsAt,
39
+ repeatInterval: this.repeatInterval,
40
+ repeatUnit: this.repeatUnit,
41
+ repeatEndsAt: this.repeatEndsAt,
42
+ };
43
+ }
44
+ }
45
+ exports.MaintenanceWindow = MaintenanceWindow;
46
+ MaintenanceWindow.__checklyType = 'maintenance-window';
47
+ //# sourceMappingURL=maintenance-window.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maintenance-window.js","sourceRoot":"","sources":["../../src/constructs/maintenance-window.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,uCAAmC;AAqCnC;;;;;;GAMG;AACH,MAAa,iBAAkB,SAAQ,qBAAS;IAW9C;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAA6B;QAC3D,KAAK,CAAC,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QACjD,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QAC1C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QACtC,iBAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,UAAU;QACR,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAA;IACH,CAAC;;AAzCH,8CA0CC;AAjCiB,+BAAa,GAAG,oBAAoB,CAAA"}
@@ -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,49 @@
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 an Private Location
27
+ *
28
+ * @remarks
29
+ *
30
+ * This class make use of the Private Location endpoints.
31
+ */
32
+ export declare class PrivateLocation extends Construct {
33
+ name: string;
34
+ slugName: string;
35
+ icon?: string;
36
+ proxyUrl?: string;
37
+ static readonly __checklyType = "private-location";
38
+ /**
39
+ * Constructs the Private Location instance
40
+ *
41
+ * @param logicalId unique project-scoped resource name identification
42
+ * @param props private location configuration properties
43
+ */
44
+ constructor(logicalId: string, props: PrivateLocationProps);
45
+ static fromId(id: string): PrivateLocationWrapper;
46
+ allowInChecklyConfig(): boolean;
47
+ synthesize(): any | null;
48
+ }
49
+ export {};
@@ -0,0 +1,59 @@
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 an Private Location
18
+ *
19
+ * @remarks
20
+ *
21
+ * This class make use of the Private Location endpoints.
22
+ */
23
+ class PrivateLocation extends construct_1.Construct {
24
+ /**
25
+ * Constructs the Private Location instance
26
+ *
27
+ * @param logicalId unique project-scoped resource name identification
28
+ * @param props private location configuration properties
29
+ */
30
+ constructor(logicalId, props) {
31
+ super(PrivateLocation.__checklyType, logicalId);
32
+ this.name = props.name;
33
+ this.slugName = props.slugName;
34
+ this.icon = props.icon;
35
+ this.proxyUrl = props.proxyUrl;
36
+ if (!/^((?!((us(-gov)?|ap|ca|cn|eu|sa|af|me)-(central|(north|south)?(east|west)?)-\d+))[a-zA-Z0-9-]{1,30})$/
37
+ .test(this.slugName)) {
38
+ throw new validator_error_1.ValidationError(`The "slugName" must differ from all AWS locations. (slugName='${this.slugName}')`);
39
+ }
40
+ project_1.Session.registerConstruct(this);
41
+ }
42
+ static fromId(id) {
43
+ return new PrivateLocationWrapper(`private-location-${id}`, id);
44
+ }
45
+ allowInChecklyConfig() {
46
+ return true;
47
+ }
48
+ synthesize() {
49
+ return {
50
+ name: this.name,
51
+ slugName: this.slugName,
52
+ icon: this.icon,
53
+ proxyUrl: this.proxyUrl,
54
+ };
55
+ }
56
+ }
57
+ exports.PrivateLocation = PrivateLocation;
58
+ PrivateLocation.__checklyType = 'private-location';
59
+ //# 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;;;;;;GAMG;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;YACtB,MAAM,IAAI,iCAAe,CAAC,iEAAiE,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAA;SAC9G;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"}
@@ -1,11 +1,9 @@
1
1
  import { CheckConfigDefaults } from '../services/checkly-config-loader';
2
2
  import { Construct } from './construct';
3
3
  import type { Runtime } from '../rest/runtimes';
4
- import { Check } from './check';
5
- import { CheckGroup } from './check-group';
6
- import { AlertChannel } from './alert-channel';
7
- import { AlertChannelSubscription } from './alert-channel-subscription';
4
+ import { Check, AlertChannelSubscription, AlertChannel, CheckGroup, MaintenanceWindow, Dashboard, PrivateLocation, PrivateLocationCheckAssignment, PrivateLocationGroupAssignment } from './';
8
5
  import { ResourceSync } from '../rest/projects';
6
+ import { PrivateLocationApi } from '../rest/private-locations';
9
7
  export interface ProjectProps {
10
8
  /**
11
9
  * Friendly name for your project.
@@ -21,6 +19,11 @@ export interface ProjectData {
21
19
  'check-group': Record<string, CheckGroup>;
22
20
  'alert-channel': Record<string, AlertChannel>;
23
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>;
24
27
  }
25
28
  export declare class Project extends Construct {
26
29
  name: string;
@@ -40,6 +43,7 @@ export declare class Project extends Construct {
40
43
  project: Pick<Project, 'logicalId' | 'name' | 'repoUrl'>;
41
44
  resources: Array<ResourceSync>;
42
45
  };
46
+ getTestOnlyConstructs(): Construct[];
43
47
  private synthesizeRecord;
44
48
  }
45
49
  export declare class Session {
@@ -52,6 +56,8 @@ export declare class Session {
52
56
  static availableRuntimes: Record<string, Runtime>;
53
57
  static loadingChecklyConfigFile: boolean;
54
58
  static checklyConfigFileConstructs?: Construct[];
59
+ static privateLocations: PrivateLocationApi[];
55
60
  static registerConstruct(construct: Construct): void;
56
61
  static validateCreateConstruct(construct: Construct): void;
62
+ static getPrivateLocations(): Promise<PrivateLocationApi[]>;
57
63
  }
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Session = exports.Project = void 0;
4
+ const api = require("../rest/api");
4
5
  const construct_1 = require("./construct");
5
6
  const validator_error_1 = require("./validator-error");
6
- const check_1 = require("./check");
7
+ const _1 = require("./");
7
8
  class Project extends construct_1.Construct {
8
9
  /**
9
10
  * Constructs the Project instance
@@ -18,6 +19,11 @@ class Project extends construct_1.Construct {
18
19
  'check-group': {},
19
20
  'alert-channel': {},
20
21
  'alert-channel-subscription': {},
22
+ 'maintenance-window': {},
23
+ 'private-location': {},
24
+ 'private-location-check-assignment': {},
25
+ 'private-location-group-assignment': {},
26
+ dashboard: {},
21
27
  };
22
28
  if (!props.name) {
23
29
  // TODO: Can we collect a list of validation errors and return them all at once? This might be better UX.
@@ -46,12 +52,24 @@ class Project extends construct_1.Construct {
46
52
  ...this.synthesizeRecord(this.data['check-group']),
47
53
  ...this.synthesizeRecord(this.data['alert-channel']),
48
54
  ...this.synthesizeRecord(this.data['alert-channel-subscription']),
55
+ ...this.synthesizeRecord(this.data['maintenance-window']),
56
+ ...this.synthesizeRecord(this.data['private-location']),
57
+ ...this.synthesizeRecord(this.data['private-location-check-assignment']),
58
+ ...this.synthesizeRecord(this.data['private-location-group-assignment']),
59
+ ...this.synthesizeRecord(this.data.dashboard),
49
60
  ],
50
61
  };
51
62
  }
63
+ getTestOnlyConstructs() {
64
+ return Object
65
+ .values(this.data)
66
+ .flatMap((record) => Object
67
+ .values(record)
68
+ .filter((construct) => construct instanceof _1.Check && construct.testOnly));
69
+ }
52
70
  synthesizeRecord(record, addTestOnly = true) {
53
71
  return Object.entries(record)
54
- .filter(([, construct]) => construct instanceof check_1.Check ? !construct.testOnly || addTestOnly : true)
72
+ .filter(([, construct]) => construct instanceof _1.Check ? !construct.testOnly || addTestOnly : true)
55
73
  .map(([key, construct]) => ({
56
74
  logicalId: key,
57
75
  type: construct.type,
@@ -95,6 +113,13 @@ class Session {
95
113
  throw new Error(`Unable to create a construct '${construct.constructor.name}' outside a Checkly CLI project.`);
96
114
  }
97
115
  }
116
+ static async getPrivateLocations() {
117
+ if (!Session.privateLocations) {
118
+ const { data: privateLocations } = await api.privateLocations.getAll();
119
+ Session.privateLocations = privateLocations;
120
+ }
121
+ return Session.privateLocations;
122
+ }
98
123
  }
99
124
  exports.Session = Session;
100
125
  //# sourceMappingURL=project.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/constructs/project.ts"],"names":[],"mappings":";;;AACA,2CAAuC;AACvC,uDAAmD;AAGnD,mCAA+B;AAwB/B,MAAa,OAAQ,SAAQ,qBAAS;IAapC;;;;;OAKG;IACH,YAAa,SAAiB,EAAE,KAAmB;QACjD,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,SAAS,CAAC,CAAA;QAhBzC,SAAI,GAAg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/CD,0BA+CC"}
@@ -41,8 +41,12 @@ class ChecklyHelpClass extends core_1.Help {
41
41
  this.log(this.formatAllCommands(this.sortedCommands, this.sortedTopics));
42
42
  this.log('');
43
43
  }
44
+ this.log(this.section('ENVIRONMENT VARIABLES', `Running the CLI from your CI pipeline will need to export variables in the shell:\n
45
+ CHECKLY_ACCOUNT_ID Checkly account ID.
46
+ CHECKLY_API_KEY Checkly User API Key.
47
+ `));
44
48
  const examplesString = examples_1.default.reduce((accumulator, example) => {
45
- return accumulator + `\n- ${example.description}\n\n${this.indent('$ ' + example.command)}\n`;
49
+ return accumulator + `${example.description}\n\n${this.indent('$ ' + example.command)}\n\n`;
46
50
  }, '');
47
51
  this.log(this.section('EXAMPLES', examplesString));
48
52
  return Promise.resolve();