@activepieces/piece-coralogix 0.1.3 → 0.1.4

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 (57) hide show
  1. package/package.json +7 -12
  2. package/src/index.js +22 -61
  3. package/src/index.d.ts +0 -6
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/acknowledge-incidents.d.ts +0 -8
  7. package/src/lib/actions/acknowledge-incidents.d.ts.map +0 -1
  8. package/src/lib/actions/acknowledge-incidents.js +0 -38
  9. package/src/lib/actions/acknowledge-incidents.js.map +0 -1
  10. package/src/lib/actions/assign-incidents.d.ts +0 -9
  11. package/src/lib/actions/assign-incidents.d.ts.map +0 -1
  12. package/src/lib/actions/assign-incidents.js +0 -41
  13. package/src/lib/actions/assign-incidents.js.map +0 -1
  14. package/src/lib/actions/close-incidents.d.ts +0 -8
  15. package/src/lib/actions/close-incidents.d.ts.map +0 -1
  16. package/src/lib/actions/close-incidents.js +0 -36
  17. package/src/lib/actions/close-incidents.js.map +0 -1
  18. package/src/lib/actions/get-incident-by-id.d.ts +0 -8
  19. package/src/lib/actions/get-incident-by-id.d.ts.map +0 -1
  20. package/src/lib/actions/get-incident-by-id.js +0 -32
  21. package/src/lib/actions/get-incident-by-id.js.map +0 -1
  22. package/src/lib/actions/get-incident-events.d.ts +0 -8
  23. package/src/lib/actions/get-incident-events.d.ts.map +0 -1
  24. package/src/lib/actions/get-incident-events.js +0 -30
  25. package/src/lib/actions/get-incident-events.js.map +0 -1
  26. package/src/lib/actions/list-incidents.d.ts +0 -12
  27. package/src/lib/actions/list-incidents.d.ts.map +0 -1
  28. package/src/lib/actions/list-incidents.js +0 -85
  29. package/src/lib/actions/list-incidents.js.map +0 -1
  30. package/src/lib/actions/resolve-incidents.d.ts +0 -8
  31. package/src/lib/actions/resolve-incidents.d.ts.map +0 -1
  32. package/src/lib/actions/resolve-incidents.js +0 -36
  33. package/src/lib/actions/resolve-incidents.js.map +0 -1
  34. package/src/lib/actions/send-logs.d.ts +0 -18
  35. package/src/lib/actions/send-logs.d.ts.map +0 -1
  36. package/src/lib/actions/send-logs.js +0 -113
  37. package/src/lib/actions/send-logs.js.map +0 -1
  38. package/src/lib/actions/set-alert-active.d.ts +0 -9
  39. package/src/lib/actions/set-alert-active.d.ts.map +0 -1
  40. package/src/lib/actions/set-alert-active.js +0 -37
  41. package/src/lib/actions/set-alert-active.js.map +0 -1
  42. package/src/lib/common/auth.d.ts +0 -6
  43. package/src/lib/common/auth.d.ts.map +0 -1
  44. package/src/lib/common/auth.js +0 -39
  45. package/src/lib/common/auth.js.map +0 -1
  46. package/src/lib/common/client.d.ts +0 -8
  47. package/src/lib/common/client.d.ts.map +0 -1
  48. package/src/lib/common/client.js +0 -39
  49. package/src/lib/common/client.js.map +0 -1
  50. package/src/lib/triggers/new-alert-event.d.ts +0 -27
  51. package/src/lib/triggers/new-alert-event.d.ts.map +0 -1
  52. package/src/lib/triggers/new-alert-event.js +0 -98
  53. package/src/lib/triggers/new-alert-event.js.map +0 -1
  54. package/src/lib/triggers/new-incident.d.ts +0 -27
  55. package/src/lib/triggers/new-incident.d.ts.map +0 -1
  56. package/src/lib/triggers/new-incident.js +0 -81
  57. package/src/lib/triggers/new-incident.js.map +0 -1
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.closeIncidents = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.closeIncidents = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'closeIncidents',
12
- displayName: 'Close Incidents',
13
- description: 'Close one or more Coralogix incidents (e.g. false positives or noise). Use Resolve for incidents that were actually fixed.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Closes one or more Coralogix incidents by incident ID; choose this for false positives or noise rather than Resolve Incidents (which is for incidents that were genuinely fixed). Idempotent: re-closing already-closed incidents yields the same state.', idempotent: true },
16
- requireAuth: true,
17
- props: {
18
- incidentIds: pieces_framework_1.Property.Array({
19
- displayName: 'Incident IDs',
20
- description: 'List of incident IDs to close. Find the ID in Coralogix → Alerts → Incidents → click an incident → copy the ID from the URL.',
21
- required: true,
22
- defaultValue: [],
23
- }),
24
- },
25
- run(_a) {
26
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
27
- var _b;
28
- const incidentIds = ((_b = propsValue.incidentIds) !== null && _b !== void 0 ? _b : []);
29
- const queryString = incidentIds
30
- .map((id) => `incident_ids=${encodeURIComponent(id)}`)
31
- .join('&');
32
- return yield (0, client_1.makeRequest)(auth, 'management', pieces_common_1.HttpMethod.POST, `/mgmt/openapi/latest/incidents/incidents/v1/close?${queryString}`);
33
- });
34
- },
35
- });
36
- //# sourceMappingURL=close-incidents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"close-incidents.js","sourceRoot":"","sources":["../../../../src/lib/actions/close-incidents.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,4HAA4H;IACzI,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,0PAA0P,EAAE,UAAU,EAAE,IAAI,EAAE;IACzS,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC1B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,8HAA8H;YAC3I,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,EAAE;SACjB,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;;YAC5B,MAAM,WAAW,GAAG,CAAC,MAAA,UAAU,CAAC,WAAW,mCAAI,EAAE,CAAa,CAAC;YAE/D,MAAM,WAAW,GAAG,WAAW;iBAC5B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC;iBACrD,IAAI,CAAC,GAAG,CAAC,CAAC;YAEb,OAAO,MAAM,IAAA,oBAAW,EACtB,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,IAAI,EACf,qDAAqD,WAAW,EAAE,CACnE,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const getIncidentById: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>, {
6
- incidentId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=get-incident-by-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-incident-by-id.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-incident-by-id.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;EA6B1B,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIncidentById = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.getIncidentById = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'getIncidentById',
12
- displayName: 'Get Incident By ID',
13
- description: 'Retrieve a Coralogix incident by its incident ID.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Fetches a single Coralogix incident by its incident ID. Use to inspect full details of a known incident (e.g. one surfaced by List Incidents or a trigger). Read-only and idempotent.', idempotent: true },
16
- requireAuth: true,
17
- props: {
18
- incidentId: pieces_framework_1.Property.ShortText({
19
- displayName: 'Incident ID',
20
- description: 'The Coralogix incident ID to retrieve.',
21
- required: true,
22
- }),
23
- },
24
- run(_a) {
25
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
26
- const incidentId = propsValue.incidentId;
27
- const response = yield (0, client_1.makeRequest)(auth, 'management', pieces_common_1.HttpMethod.GET, `/mgmt/openapi/latest/incidents/incidents/v1/${encodeURIComponent(incidentId)}`);
28
- return response;
29
- });
30
- },
31
- });
32
- //# sourceMappingURL=get-incident-by-id.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-incident-by-id.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-incident-by-id.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,uLAAuL,EAAE,UAAU,EAAE,IAAI,EAAE;IACtO,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;YAEzC,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,GAAG,EACd,+CAA+C,kBAAkB,CAC/D,UAAU,CACX,EAAE,CACJ,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const getIncidentEvents: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>, {
6
- incidentId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- }>;
8
- //# sourceMappingURL=get-incident-events.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-incident-events.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-incident-events.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;;;;;EA0B5B,CAAC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIncidentEvents = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.getIncidentEvents = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'getIncidentEvents',
12
- displayName: 'Get Incident Events',
13
- description: 'Get related events for a specific incident.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Retrieves the timeline of related events for a single Coralogix incident, given its incident ID. Use to trace how an incident evolved before deciding how to act on it. Read-only and idempotent.', idempotent: true },
16
- requireAuth: true,
17
- props: {
18
- incidentId: pieces_framework_1.Property.ShortText({
19
- displayName: 'Incident ID',
20
- required: true,
21
- }),
22
- },
23
- run(_a) {
24
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
25
- const incidentId = propsValue.incidentId;
26
- return yield (0, client_1.makeRequest)(auth, 'management', pieces_common_1.HttpMethod.GET, `/mgmt/openapi/latest/incidents/incidents/v1/${encodeURIComponent(incidentId)}/events`);
27
- });
28
- },
29
- });
30
- //# sourceMappingURL=get-incident-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-incident-events.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-incident-events.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,qEAAwE;AACxE,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,mMAAmM,EAAE,UAAU,EAAE,IAAI,EAAE;IAClP,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;YAEzC,OAAO,MAAM,IAAA,oBAAW,EACtB,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,GAAG,EACd,+CAA+C,kBAAkB,CAC/D,UAAU,CACX,SAAS,CACX,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- export declare const listIncidents: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>, {
6
- status: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
7
- severity: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
8
- applicationName: import("@activepieces/pieces-framework").ArrayProperty<false>;
9
- subsystemName: import("@activepieces/pieces-framework").ArrayProperty<false>;
10
- pageSize: import("@activepieces/pieces-framework").NumberProperty<false>;
11
- }>;
12
- //# sourceMappingURL=list-incidents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-incidents.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-incidents.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;;;;;EA2FxB,CAAC"}
@@ -1,85 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listIncidents = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.listIncidents = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'listIncidents',
12
- displayName: 'List Incidents',
13
- description: 'Retrieve a filtered list of Coralogix incidents.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Lists Coralogix incidents, optionally filtered by status, severity, application, and subsystem; leave all filters empty to return every incident. Use to discover incidents and their IDs before acting on them, or to report on current incident state. Read-only and idempotent.', idempotent: true },
16
- requireAuth: true,
17
- props: {
18
- status: pieces_framework_1.Property.StaticMultiSelectDropdown({
19
- displayName: 'Status',
20
- description: 'Filter by incident status. Leave empty to return all.',
21
- required: false,
22
- options: {
23
- options: [
24
- { label: 'Triggered', value: 'INCIDENT_STATUS_TRIGGERED' },
25
- { label: 'Acknowledged', value: 'INCIDENT_STATUS_ACKNOWLEDGED' },
26
- { label: 'Resolved', value: 'INCIDENT_STATUS_RESOLVED' },
27
- ],
28
- },
29
- }),
30
- severity: pieces_framework_1.Property.StaticMultiSelectDropdown({
31
- displayName: 'Severity',
32
- description: 'Filter by incident severity. Leave empty to return all.',
33
- required: false,
34
- options: {
35
- options: [
36
- { label: 'Critical', value: 'INCIDENT_SEVERITY_CRITICAL' },
37
- { label: 'Error', value: 'INCIDENT_SEVERITY_ERROR' },
38
- { label: 'Warning', value: 'INCIDENT_SEVERITY_WARNING' },
39
- { label: 'Info', value: 'INCIDENT_SEVERITY_INFO' },
40
- { label: 'Low', value: 'INCIDENT_SEVERITY_LOW' },
41
- ],
42
- },
43
- }),
44
- applicationName: pieces_framework_1.Property.Array({
45
- displayName: 'Application Names',
46
- description: 'Filter by application name(s). Leave empty to return all.',
47
- required: false,
48
- defaultValue: [],
49
- }),
50
- subsystemName: pieces_framework_1.Property.Array({
51
- displayName: 'Subsystem Names',
52
- description: 'Filter by subsystem name(s). Leave empty to return all.',
53
- required: false,
54
- defaultValue: [],
55
- }),
56
- pageSize: pieces_framework_1.Property.Number({
57
- displayName: 'Page Size',
58
- description: 'Maximum number of incidents to return.',
59
- required: false,
60
- defaultValue: 20,
61
- }),
62
- },
63
- run(_a) {
64
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
65
- const { status, severity, applicationName, subsystemName, pageSize } = propsValue;
66
- const params = [];
67
- if (status && status.length > 0) {
68
- status.forEach((s) => params.push(`filter.status=${encodeURIComponent(s)}`));
69
- }
70
- if (severity && severity.length > 0) {
71
- severity.forEach((s) => params.push(`filter.severity=${encodeURIComponent(s)}`));
72
- }
73
- if (applicationName && applicationName.length > 0) {
74
- applicationName.forEach((a) => params.push(`filter.applicationName=${encodeURIComponent(a)}`));
75
- }
76
- if (subsystemName && subsystemName.length > 0) {
77
- subsystemName.forEach((s) => params.push(`filter.subsystemName=${encodeURIComponent(s)}`));
78
- }
79
- params.push(`pagination.pageSize=${pageSize !== null && pageSize !== void 0 ? pageSize : 20}`);
80
- const queryString = params.join('&');
81
- return yield (0, client_1.makeRequest)(auth, 'management', pieces_common_1.HttpMethod.POST, `/mgmt/openapi/latest/incidents/incidents/v1?${queryString}`);
82
- });
83
- },
84
- });
85
- //# sourceMappingURL=list-incidents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-incidents.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-incidents.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,kDAAkD;IAC/D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,oRAAoR,EAAE,UAAU,EAAE,IAAI,EAAE;IACnU,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,yBAAyB,CAAC;YACzC,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,2BAA2B,EAAE;oBAC1D,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,8BAA8B,EAAE;oBAChE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,0BAA0B,EAAE;iBACzD;aACF;SACF,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,yBAAyB,CAAC;YAC3C,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,KAAK;YACf,O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C,CACtD,CAAC;YACJ,CAAC;YACD,IAAI,QAAQ,IAAK,QAAqB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACjD,QAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,MAAM,CAAC,IAAI,CAAC,mBAAmB,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CACxD,CAAC;YACJ,CAAC;YACD,IAAI,eAAe,IAAK,eAA4B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC/D,eAA4B,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAC1C,MAAM,CAAC,IAAI,CAAC,0BAA0B,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAC/D,CAAC;YACJ,CAAC;YACD,IAAI,aAAa,IAAK,aAA0B,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC3D,aAA0B,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACxC,MAAM,CAAC,IAAI,CAAC,wBAAwB,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAC7D,CAAC;YACJ,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,uBAAuB,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,EAAE,CAAC,CAAC;YAErD,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAErC,OAAO,MAAM,IAAA,oBAAW,EACtB,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,IAAI,EACf,+CAA+C,WAAW,EAAE,CAC7D,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const resolveIncidents: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>, {
6
- incidentIds: import("@activepieces/pieces-framework").ArrayProperty<true>;
7
- }>;
8
- //# sourceMappingURL=resolve-incidents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-incidents.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/resolve-incidents.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;EA8B3B,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveIncidents = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.resolveIncidents = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'resolveIncidents',
12
- displayName: 'Resolve Incidents',
13
- description: 'Mark one or more Coralogix incidents as resolved.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Marks one or more Coralogix incidents as resolved by incident ID; choose this for incidents that were actually fixed (use Close Incidents for false positives or noise). Idempotent: re-resolving already-resolved incidents yields the same state.', idempotent: true },
16
- requireAuth: true,
17
- props: {
18
- incidentIds: pieces_framework_1.Property.Array({
19
- displayName: 'Incident IDs',
20
- description: 'List of incident IDs to resolve. Find the ID in Coralogix → Alerts → Incidents → click an incident → copy the ID from the URL.',
21
- required: true,
22
- defaultValue: [],
23
- }),
24
- },
25
- run(_a) {
26
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
27
- var _b;
28
- const incidentIds = ((_b = propsValue.incidentIds) !== null && _b !== void 0 ? _b : []);
29
- const queryString = incidentIds
30
- .map((id) => `incident_ids=${encodeURIComponent(id)}`)
31
- .join('&');
32
- return yield (0, client_1.makeRequest)(auth, 'management', pieces_common_1.HttpMethod.POST, `/mgmt/openapi/latest/incidents/incidents/v1/resolve?${queryString}`);
33
- });
34
- },
35
- });
36
- //# sourceMappingURL=resolve-incidents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-incidents.js","sourceRoot":"","sources":["../../../../src/lib/actions/resolve-incidents.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,qPAAqP,EAAE,UAAU,EAAE,IAAI,EAAE;IACpS,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC1B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,gIAAgI;YAC7I,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,EAAE;SACjB,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;;YAC5B,MAAM,WAAW,GAAG,CAAC,MAAA,UAAU,CAAC,WAAW,mCAAI,EAAE,CAAa,CAAC;YAE/D,MAAM,WAAW,GAAG,WAAW;iBAC5B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC;iBACrD,IAAI,CAAC,GAAG,CAAC,CAAC;YAEb,OAAO,MAAM,IAAA,oBAAW,EACtB,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,IAAI,EACf,uDAAuD,WAAW,EAAE,CACrE,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- export declare const sendLogs: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>, {
6
- text: import("@activepieces/pieces-framework").LongTextProperty<true>;
7
- applicationName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
- subsystemName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
- severity: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
10
- category: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
- className: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
- computerName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
- methodName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
- threadId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
- timestamp: import("@activepieces/pieces-framework").NumberProperty<false>;
16
- hiResTimestamp: import("@activepieces/pieces-framework").ShortTextProperty<false>;
17
- }>;
18
- //# sourceMappingURL=send-logs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"send-logs.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-logs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;EAsHnB,CAAC"}
@@ -1,113 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sendLogs = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.sendLogs = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'sendLogs',
12
- displayName: 'Send Logs',
13
- description: 'Send a single log to Coralogix Log Ingestion API.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Ingests a single log record into Coralogix via the log-ingestion API, tagged with an application and subsystem name and an optional severity. Use to emit a custom log or event from a flow. Not idempotent: each call appends a new log entry.', idempotent: false },
16
- requireAuth: true,
17
- props: {
18
- text: pieces_framework_1.Property.LongText({
19
- displayName: 'Log Message',
20
- description: 'The log message text or a JSON string.',
21
- required: true,
22
- }),
23
- applicationName: pieces_framework_1.Property.ShortText({
24
- displayName: 'Application Name',
25
- description: 'The application name for this log.',
26
- required: true,
27
- defaultValue: 'my-app',
28
- }),
29
- subsystemName: pieces_framework_1.Property.ShortText({
30
- displayName: 'Subsystem Name',
31
- description: 'The subsystem name for this log.',
32
- required: true,
33
- defaultValue: 'auth-service',
34
- }),
35
- severity: pieces_framework_1.Property.StaticDropdown({
36
- displayName: 'Severity',
37
- required: false,
38
- options: {
39
- options: [
40
- { label: 'Debug (1)', value: 1 },
41
- { label: 'Verbose (2)', value: 2 },
42
- { label: 'Info (3)', value: 3 },
43
- { label: 'Warn (4)', value: 4 },
44
- { label: 'Error (5)', value: 5 },
45
- { label: 'Critical (6)', value: 6 },
46
- ],
47
- },
48
- }),
49
- category: pieces_framework_1.Property.ShortText({
50
- displayName: 'Category',
51
- required: false,
52
- }),
53
- className: pieces_framework_1.Property.ShortText({
54
- displayName: 'Class Name',
55
- required: false,
56
- }),
57
- computerName: pieces_framework_1.Property.ShortText({
58
- displayName: 'Computer Name',
59
- required: false,
60
- }),
61
- methodName: pieces_framework_1.Property.ShortText({
62
- displayName: 'Method Name',
63
- required: false,
64
- }),
65
- threadId: pieces_framework_1.Property.ShortText({
66
- displayName: 'Thread ID',
67
- required: false,
68
- }),
69
- timestamp: pieces_framework_1.Property.Number({
70
- displayName: 'Timestamp',
71
- description: 'UTC milliseconds since 1970. Leave empty to use ingestion time.',
72
- required: false,
73
- }),
74
- hiResTimestamp: pieces_framework_1.Property.ShortText({
75
- displayName: 'High Resolution Timestamp',
76
- description: 'UTC nanoseconds since 1970 as a string. Optional alternative to timestamp.',
77
- required: false,
78
- }),
79
- },
80
- run(_a) {
81
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
82
- const { text, applicationName, subsystemName, severity, category, className, computerName, methodName, threadId, timestamp, hiResTimestamp, } = propsValue;
83
- const logRecord = {
84
- applicationName,
85
- subsystemName,
86
- };
87
- logRecord['text'] = text;
88
- if (severity !== undefined && severity !== null)
89
- logRecord['severity'] = Number(severity);
90
- if (category)
91
- logRecord['category'] = category;
92
- if (className)
93
- logRecord['className'] = className;
94
- if (computerName)
95
- logRecord['computerName'] = computerName;
96
- if (methodName)
97
- logRecord['methodName'] = methodName;
98
- if (threadId)
99
- logRecord['threadId'] = threadId;
100
- if (timestamp !== undefined)
101
- logRecord['timestamp'] = timestamp;
102
- if (hiResTimestamp)
103
- logRecord['hiResTimestamp'] = hiResTimestamp;
104
- const response = yield (0, client_1.makeRequest)(auth, 'ingestion', pieces_common_1.HttpMethod.POST, `/logs/v1/singles`, [logRecord]);
105
- return {
106
- success: true,
107
- sent: 1,
108
- response,
109
- };
110
- });
111
- },
112
- });
113
- //# sourceMappingURL=send-logs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"send-logs.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-logs.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,QAAQ,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,mDAAmD;IAChE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,iPAAiP,EAAE,UAAU,EAAE,KAAK,EAAE;IACjS,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAA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S,KAAK,SAAS;gBAAE,SAAS,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;YAChE,IAAI,cAAc;gBAAE,SAAS,CAAC,gBAAgB,CAAC,GAAG,cAAc,CAAC;YAEjE,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,IAAI,EACJ,WAAW,EACX,0BAAU,CAAC,IAAI,EACf,kBAAkB,EAClB,CAAC,SAAS,CAAC,CACZ,CAAC;YAEF,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,CAAC;gBACP,QAAQ;aACT,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const setAlertActive: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>, {
6
- alertId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- active: import("@activepieces/pieces-framework").CheckboxProperty<true>;
8
- }>;
9
- //# sourceMappingURL=set-alert-active.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-alert-active.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/set-alert-active.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;;;EAiCzB,CAAC"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setAlertActive = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const auth_1 = require("../common/auth");
8
- const client_1 = require("../common/client");
9
- exports.setAlertActive = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.coralogixAuth,
11
- name: 'setAlertActive',
12
- displayName: 'Enable / Disable Alert',
13
- description: 'Enable or disable a Coralogix alert definition. Use this to mute alerts during maintenance windows.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Enables or disables a Coralogix alert definition by alert ID, controlled by an enable/disable flag. Use to mute an alert during a maintenance window and re-enable it afterward. Idempotent: setting the alert to a state it is already in has no further effect.', idempotent: true },
16
- requireAuth: true,
17
- props: {
18
- alertId: pieces_framework_1.Property.ShortText({
19
- displayName: 'Alert ID',
20
- description: 'The ID of the alert to enable or disable. Use the "List Alert Definitions" action to find IDs.',
21
- required: true,
22
- }),
23
- active: pieces_framework_1.Property.Checkbox({
24
- displayName: 'Enable Alert',
25
- description: 'Turn ON to enable the alert, turn OFF to disable it.',
26
- required: true,
27
- defaultValue: true,
28
- }),
29
- },
30
- run(_a) {
31
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
32
- const { alertId, active } = propsValue;
33
- return yield (0, client_1.makeRequest)(auth, 'management', pieces_common_1.HttpMethod.POST, `/mgmt/openapi/latest/alerts/alerts-general/v3/${encodeURIComponent(alertId)}:setActive?active=${active}`);
34
- });
35
- },
36
- });
37
- //# sourceMappingURL=set-alert-active.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-alert-active.js","sourceRoot":"","sources":["../../../../src/lib/actions/set-alert-active.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+C;AAC/C,6CAA+C;AAElC,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,wBAAwB;IACrC,WAAW,EACT,qGAAqG;IACvG,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,mQAAmQ,EAAE,UAAU,EAAE,IAAI,EAAE;IAClT,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EACT,gGAAgG;YAClG,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,sDAAsD;YACnE,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;SACnB,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;YAEvC,OAAO,MAAM,IAAA,oBAAW,EACtB,IAAI,EACJ,YAAY,EACZ,0BAAU,CAAC,IAAI,EACf,iDAAiD,kBAAkB,CAAC,OAAO,CAAC,qBAAqB,MAAM,EAAE,CAC1G,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const coralogixAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- personalOrTeamApiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- sendYourDataApiKey: import("@activepieces/pieces-framework").SecretTextProperty<false>;
4
- coralogixDomain: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- }>;
6
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;EAqCxB,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.coralogixAuth = void 0;
4
- const pieces_framework_1 = require("@activepieces/pieces-framework");
5
- exports.coralogixAuth = pieces_framework_1.PieceAuth.CustomAuth({
6
- displayName: 'Coralogix Credentials',
7
- description: 'Management API uses api.coralogix.com. Select ingestion region domain and provide both API keys.',
8
- required: true,
9
- props: {
10
- personalOrTeamApiKey: pieces_framework_1.PieceAuth.SecretText({
11
- displayName: 'Personal/Team API Key',
12
- description: 'Used for Coralogix management APIs (for example alert definitions, incidents, dashboards).',
13
- required: true,
14
- }),
15
- sendYourDataApiKey: pieces_framework_1.PieceAuth.SecretText({
16
- displayName: 'Send-Your-Data API Key',
17
- description: 'Used for Coralogix ingestion APIs (for example /logs/v1/singles). Find it in Settings → API Keys → Send Your Data.',
18
- required: false,
19
- }),
20
- coralogixDomain: pieces_framework_1.Property.StaticDropdown({
21
- displayName: 'Ingestion Region Domain',
22
- description: 'Select your Coralogix regional domain for ingestion endpoints.',
23
- required: true,
24
- defaultValue: 'eu1.coralogix.com',
25
- options: {
26
- options: [
27
- { label: 'EU1 (<team>.coralogix.com)', value: 'eu1.coralogix.com' },
28
- { label: 'EU2 (<team>.app.eu2.coralogix.com)', value: 'eu2.coralogix.com' },
29
- { label: 'US1 (<team>.app.coralogix.us)', value: 'us1.coralogix.com' },
30
- { label: 'US2 (<team>.app.cx498.coralogix.com)', value: 'us2.coralogix.com' },
31
- { label: 'AP1 (<team>.app.coralogix.in)', value: 'ap1.coralogix.com' },
32
- { label: 'AP2 (<team>.app.coralogixsg.com)', value: 'ap2.coralogix.com' },
33
- { label: 'AP3 (<team>.app.ap3.coralogix.com)', value: 'ap3.coralogix.com' },
34
- ],
35
- },
36
- }),
37
- },
38
- });
39
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AAExD,QAAA,aAAa,GAAG,4BAAS,CAAC,UAAU,CAAC;IAChD,WAAW,EAAE,uBAAuB;IACpC,WAAW,EACT,kGAAkG;IACpG,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,oBAAoB,EAAE,4BAAS,CAAC,UAAU,CAAC;YACzC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,4FAA4F;YAC9F,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,kBAAkB,EAAE,4BAAS,CAAC,UAAU,CAAC;YACvC,WAAW,EAAE,wBAAwB;YACrC,WAAW,EACT,oHAAoH;YACtH,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,eAAe,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACvC,WAAW,EAAE,yBAAyB;YACtC,WAAW,EACT,gEAAgE;YAClE,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,mBAAmB;YACjC,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,4BAA4B,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBACnE,EAAE,KAAK,EAAE,oCAAoC,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBAC3E,EAAE,KAAK,EAAE,+BAA+B,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBACtE,EAAE,KAAK,EAAE,sCAAsC,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBAC7E,EAAE,KAAK,EAAE,+BAA+B,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBACtE,EAAE,KAAK,EAAE,kCAAkC,EAAE,KAAK,EAAE,mBAAmB,EAAE;oBACzE,EAAE,KAAK,EAAE,oCAAoC,EAAE,KAAK,EAAE,mBAAmB,EAAE;iBAC5E;aACF;SACF,CAAC;KACH;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { HttpMethod, QueryParams } from '@activepieces/pieces-common';
2
- import { coralogixAuth } from './auth';
3
- import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
4
- type CoralogixApiType = 'management' | 'ingestion';
5
- export declare const MANAGEMENT_DOMAIN: Record<string, string>;
6
- export declare function makeRequest(auth: AppConnectionValueForAuthProperty<typeof coralogixAuth>, apiType: CoralogixApiType, method: HttpMethod, path: string, body?: unknown, queryParams?: QueryParams): Promise<any>;
7
- export {};
8
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,WAAW,EAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAEnF,KAAK,gBAAgB,GAAG,YAAY,GAAG,WAAW,CAAC;AAEnD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQpD,CAAC;AAEF,wBAAsB,WAAW,CAC/B,IAAI,EAAE,iCAAiC,CAAC,OAAO,aAAa,CAAC,EAC7D,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,EACd,WAAW,CAAC,EAAE,WAAW,gBAuB1B"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MANAGEMENT_DOMAIN = void 0;
4
- exports.makeRequest = makeRequest;
5
- const tslib_1 = require("tslib");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- exports.MANAGEMENT_DOMAIN = {
8
- 'eu1.coralogix.com': 'api.coralogix.com',
9
- 'eu2.coralogix.com': 'api.eu2.coralogix.com',
10
- 'us1.coralogix.com': 'api.coralogix.us',
11
- 'us2.coralogix.com': 'api.cx498.coralogix.com',
12
- 'ap1.coralogix.com': 'api.coralogix.in',
13
- 'ap2.coralogix.com': 'api.coralogixsg.com',
14
- 'ap3.coralogix.com': 'api.ap3.coralogix.com',
15
- };
16
- function makeRequest(auth, apiType, method, path, body, queryParams) {
17
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
18
- var _a;
19
- const coralogixDomain = auth.props.coralogixDomain;
20
- const domain = apiType === 'management'
21
- ? (_a = exports.MANAGEMENT_DOMAIN[coralogixDomain]) !== null && _a !== void 0 ? _a : 'api.coralogix.com'
22
- : `ingress.${coralogixDomain}`;
23
- const apiKey = apiType === 'management'
24
- ? auth.props.personalOrTeamApiKey
25
- : auth.props.sendYourDataApiKey;
26
- const response = yield pieces_common_1.httpClient.sendRequest({
27
- method,
28
- url: `https://${domain}${path}`,
29
- headers: {
30
- Authorization: `Bearer ${apiKey}`,
31
- 'Content-Type': 'application/json',
32
- },
33
- queryParams,
34
- body,
35
- });
36
- return response.body;
37
- });
38
- }
39
- //# sourceMappingURL=client.js.map