@pulumi/newrelic 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alertChannel.d.ts +2 -1
- package/alertChannel.js +22 -22
- package/alertChannel.js.map +1 -1
- package/alertCondition.d.ts +8 -7
- package/alertCondition.js +22 -22
- package/alertCondition.js.map +1 -1
- package/alertMutingRule.d.ts +5 -4
- package/alertMutingRule.js +22 -22
- package/alertMutingRule.js.map +1 -1
- package/alertPolicy.js +20 -20
- package/alertPolicy.js.map +1 -1
- package/alertPolicyChannel.js +22 -22
- package/alertPolicyChannel.js.map +1 -1
- package/apiAccessKey.js +24 -22
- package/apiAccessKey.js.map +1 -1
- package/cloud/awsGovcloudIntegrations.d.ts +2 -1
- package/cloud/awsGovcloudIntegrations.js +22 -22
- package/cloud/awsGovcloudIntegrations.js.map +1 -1
- package/cloud/awsGovcloudLinkAccount.js +26 -24
- package/cloud/awsGovcloudLinkAccount.js.map +1 -1
- package/cloud/awsIntegrations.d.ts +2 -1
- package/cloud/awsIntegrations.js +22 -22
- package/cloud/awsIntegrations.js.map +1 -1
- package/cloud/awsLinkAccount.js +22 -22
- package/cloud/awsLinkAccount.js.map +1 -1
- package/cloud/azureIntegrations.d.ts +89 -64
- package/cloud/azureIntegrations.js +26 -22
- package/cloud/azureIntegrations.js.map +1 -1
- package/cloud/azureLinkAccount.js +25 -23
- package/cloud/azureLinkAccount.js.map +1 -1
- package/cloud/gcpIntegrations.d.ts +14 -1
- package/cloud/gcpIntegrations.js +24 -22
- package/cloud/gcpIntegrations.js.map +1 -1
- package/cloud/gcpLinkAccount.js +21 -21
- package/cloud/gcpLinkAccount.js.map +1 -1
- package/cloud/index.d.ts +24 -8
- package/cloud/index.js +25 -40
- package/cloud/index.js.map +1 -1
- package/entityTags.d.ts +2 -32
- package/entityTags.js +22 -53
- package/entityTags.js.map +1 -1
- package/eventsToMetricsRule.js +22 -22
- package/eventsToMetricsRule.js.map +1 -1
- package/getAlertChannel.d.ts +1 -1
- package/getAlertChannel.js.map +1 -1
- package/getEntity.d.ts +14 -4
- package/getEntity.js +1 -1
- package/getEntity.js.map +1 -1
- package/getObfuscationExpression.d.ts +65 -0
- package/getObfuscationExpression.js +48 -0
- package/getObfuscationExpression.js.map +1 -0
- package/index.d.ts +87 -26
- package/index.js +92 -81
- package/index.js.map +1 -1
- package/infraAlertCondition.d.ts +11 -10
- package/infraAlertCondition.js +22 -22
- package/infraAlertCondition.js.map +1 -1
- package/insights/event.d.ts +2 -1
- package/insights/event.js +17 -17
- package/insights/event.js.map +1 -1
- package/insights/index.d.ts +3 -1
- package/insights/index.js +4 -19
- package/insights/index.js.map +1 -1
- package/notificationChannel.d.ts +68 -13
- package/notificationChannel.js +88 -34
- package/notificationChannel.js.map +1 -1
- package/notificationDestination.d.ts +2 -1
- package/notificationDestination.js +22 -22
- package/notificationDestination.js.map +1 -1
- package/nrqlAlertCondition.d.ts +22 -21
- package/nrqlAlertCondition.js +27 -27
- package/nrqlAlertCondition.js.map +1 -1
- package/nrqlDropRule.js +22 -22
- package/nrqlDropRule.js.map +1 -1
- package/obfuscationExpression.d.ts +108 -0
- package/obfuscationExpression.js +82 -0
- package/obfuscationExpression.js.map +1 -0
- package/obfuscationRule.d.ts +143 -0
- package/obfuscationRule.js +101 -0
- package/obfuscationRule.js.map +1 -0
- package/oneDashboard.d.ts +113 -3
- package/oneDashboard.js +123 -24
- package/oneDashboard.js.map +1 -1
- package/oneDashboardJson.d.ts +3 -15
- package/oneDashboardJson.js +22 -34
- package/oneDashboardJson.js.map +1 -1
- package/oneDashboardRaw.d.ts +4 -1
- package/oneDashboardRaw.js +24 -22
- package/oneDashboardRaw.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/plugins/applicationSettings.js +22 -22
- package/plugins/applicationSettings.js.map +1 -1
- package/plugins/index.d.ts +6 -2
- package/plugins/index.js +7 -22
- package/plugins/index.js.map +1 -1
- package/plugins/workload.d.ts +120 -2
- package/plugins/workload.js +110 -23
- package/plugins/workload.js.map +1 -1
- package/provider.d.ts +3 -3
- package/provider.js +19 -14
- package/provider.js.map +1 -1
- package/serviceLevel.d.ts +2 -1
- package/serviceLevel.js +22 -22
- package/serviceLevel.js.map +1 -1
- package/synthetics/alertCondition.js +22 -22
- package/synthetics/alertCondition.js.map +1 -1
- package/synthetics/brokenLinksMonitor.d.ts +9 -8
- package/synthetics/brokenLinksMonitor.js +26 -26
- package/synthetics/brokenLinksMonitor.js.map +1 -1
- package/synthetics/certCheckMonitor.d.ts +6 -5
- package/synthetics/certCheckMonitor.js +26 -26
- package/synthetics/certCheckMonitor.js.map +1 -1
- package/synthetics/getPrivateLocation.d.ts +35 -0
- package/synthetics/getPrivateLocation.js +27 -0
- package/synthetics/getPrivateLocation.js.map +1 -1
- package/synthetics/getSecureCredential.d.ts +1 -0
- package/synthetics/getSecureCredential.js.map +1 -1
- package/synthetics/index.d.ts +33 -11
- package/synthetics/index.js +34 -45
- package/synthetics/index.js.map +1 -1
- package/synthetics/monitor.d.ts +29 -33
- package/synthetics/monitor.js +40 -45
- package/synthetics/monitor.js.map +1 -1
- package/synthetics/multiLocationAlertCondition.d.ts +2 -1
- package/synthetics/multiLocationAlertCondition.js +22 -22
- package/synthetics/multiLocationAlertCondition.js.map +1 -1
- package/synthetics/privateLocation.d.ts +7 -8
- package/synthetics/privateLocation.js +24 -25
- package/synthetics/privateLocation.js.map +1 -1
- package/synthetics/scriptMonitor.d.ts +15 -21
- package/synthetics/scriptMonitor.js +32 -39
- package/synthetics/scriptMonitor.js.map +1 -1
- package/synthetics/secureCredential.js +25 -23
- package/synthetics/secureCredential.js.map +1 -1
- package/synthetics/stepMonitor.d.ts +6 -5
- package/synthetics/stepMonitor.js +26 -26
- package/synthetics/stepMonitor.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +288 -72
- package/types/output.d.ts +282 -72
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
- package/workflow.d.ts +99 -112
- package/workflow.js +82 -105
- package/workflow.js.map +1 -1
|
@@ -14,8 +14,7 @@ const utilities = require("../utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as newrelic from "@pulumi/newrelic";
|
|
16
16
|
*
|
|
17
|
-
* const
|
|
18
|
-
* accountId: "NewRelic account ID",
|
|
17
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
19
18
|
* description: "The private location description",
|
|
20
19
|
* });
|
|
21
20
|
* ```
|
|
@@ -25,10 +24,32 @@ const utilities = require("../utilities");
|
|
|
25
24
|
* A Synthetics private location can be imported using the `guid`
|
|
26
25
|
*
|
|
27
26
|
* ```sh
|
|
28
|
-
* $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation
|
|
27
|
+
* $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
30
|
class PrivateLocation extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing PrivateLocation resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new PrivateLocation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of PrivateLocation. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === PrivateLocation.__pulumiType;
|
|
52
|
+
}
|
|
32
53
|
constructor(name, argsOrState, opts) {
|
|
33
54
|
let resourceInputs = {};
|
|
34
55
|
opts = opts || {};
|
|
@@ -60,28 +81,6 @@ class PrivateLocation extends pulumi.CustomResource {
|
|
|
60
81
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
61
82
|
super(PrivateLocation.__pulumiType, name, resourceInputs, opts);
|
|
62
83
|
}
|
|
63
|
-
/**
|
|
64
|
-
* Get an existing PrivateLocation resource's state with the given name, ID, and optional extra
|
|
65
|
-
* properties used to qualify the lookup.
|
|
66
|
-
*
|
|
67
|
-
* @param name The _unique_ name of the resulting resource.
|
|
68
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
-
* @param state Any extra arguments used during the lookup.
|
|
70
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
-
*/
|
|
72
|
-
static get(name, id, state, opts) {
|
|
73
|
-
return new PrivateLocation(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Returns true if the given object is an instance of PrivateLocation. This is designed to work even
|
|
77
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
-
*/
|
|
79
|
-
static isInstance(obj) {
|
|
80
|
-
if (obj === undefined || obj === null) {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
return obj['__pulumiType'] === PrivateLocation.__pulumiType;
|
|
84
|
-
}
|
|
85
84
|
}
|
|
86
85
|
exports.PrivateLocation = PrivateLocation;
|
|
87
86
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateLocation.js","sourceRoot":"","sources":["../../synthetics/privateLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"privateLocation.js","sourceRoot":"","sources":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AAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAlGL,0CAmGC;AArFG,gBAAgB;AACO,4BAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
3
4
|
/**
|
|
4
5
|
* Use this resource to create update, and delete a Script API or Script Browser Synthetics Monitor in New Relic.
|
|
5
6
|
*
|
|
@@ -7,8 +8,6 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
7
8
|
*
|
|
8
9
|
* ##### Type: `SCRIPT_API`
|
|
9
10
|
*
|
|
10
|
-
* > **NOTE:** The preferred runtime is `NODE_16.10.0` while configuring the `SCRIPT_API` monitor. The runtime fields `runtimeType`, `runtimeTypeVersion` and `scriptLanguage` are required. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
11
|
-
*
|
|
12
11
|
* ```typescript
|
|
13
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
13
|
* import * as newrelic from "@pulumi/newrelic";
|
|
@@ -21,7 +20,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
21
20
|
* period: "EVERY_6_HOURS",
|
|
22
21
|
* runtimeType: "NODE_API",
|
|
23
22
|
* runtimeTypeVersion: "16.10",
|
|
24
|
-
* script: "console.log('
|
|
23
|
+
* script: "console.log('it works!')",
|
|
25
24
|
* scriptLanguage: "JAVASCRIPT",
|
|
26
25
|
* status: "ENABLED",
|
|
27
26
|
* tags: [{
|
|
@@ -33,8 +32,6 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
33
32
|
* ```
|
|
34
33
|
* ##### Type: `SCRIPT_BROWSER`
|
|
35
34
|
*
|
|
36
|
-
* > **NOTE:** The preferred runtime is `CHROME_BROWSER_100` while configuring the `SCRIPT_BROWSER` monitor. The runtime fields `runtimeType`, `runtimeTypeVersion` and `scriptLanguage` are required. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
37
|
-
*
|
|
38
35
|
* ```typescript
|
|
39
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
37
|
* import * as newrelic from "@pulumi/newrelic";
|
|
@@ -50,13 +47,10 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
50
47
|
* runtimeTypeVersion: "100",
|
|
51
48
|
* script: "$browser.get('https://one.newrelic.com')",
|
|
52
49
|
* scriptLanguage: "JAVASCRIPT",
|
|
53
|
-
* status: "
|
|
50
|
+
* status: "ENABLED",
|
|
54
51
|
* tags: [{
|
|
55
52
|
* key: "some_key",
|
|
56
|
-
* values: [
|
|
57
|
-
* "some_value1",
|
|
58
|
-
* "some_value2",
|
|
59
|
-
* ],
|
|
53
|
+
* values: ["some_value"],
|
|
60
54
|
* }],
|
|
61
55
|
* type: "SCRIPT_BROWSER",
|
|
62
56
|
* });
|
|
@@ -76,13 +70,13 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
76
70
|
* import * as pulumi from "@pulumi/pulumi";
|
|
77
71
|
* import * as newrelic from "@pulumi/newrelic";
|
|
78
72
|
*
|
|
79
|
-
* const
|
|
80
|
-
* description: "
|
|
73
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
74
|
+
* description: "Example private location",
|
|
81
75
|
* verifiedScriptExecution: true,
|
|
82
76
|
* });
|
|
83
77
|
* const monitor = new newrelic.synthetics.ScriptMonitor("monitor", {
|
|
84
78
|
* locationPrivates: [{
|
|
85
|
-
* guid: "newrelic_synthetics_private_location.
|
|
79
|
+
* guid: "newrelic_synthetics_private_location.location.id",
|
|
86
80
|
* vsePassword: "secret",
|
|
87
81
|
* }],
|
|
88
82
|
* period: "EVERY_6_HOURS",
|
|
@@ -104,14 +98,14 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
104
98
|
* import * as pulumi from "@pulumi/pulumi";
|
|
105
99
|
* import * as newrelic from "@pulumi/newrelic";
|
|
106
100
|
*
|
|
107
|
-
* const
|
|
101
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
108
102
|
* description: "Test Description",
|
|
109
103
|
* verifiedScriptExecution: true,
|
|
110
104
|
* });
|
|
111
105
|
* const monitor = new newrelic.synthetics.ScriptMonitor("monitor", {
|
|
112
106
|
* enableScreenshotOnFailureAndScript: false,
|
|
113
107
|
* locationPrivates: [{
|
|
114
|
-
* guid: "newrelic_synthetics_private_location.
|
|
108
|
+
* guid: "newrelic_synthetics_private_location.location.id",
|
|
115
109
|
* vsePassword: "secret",
|
|
116
110
|
* }],
|
|
117
111
|
* period: "EVERY_HOUR",
|
|
@@ -119,7 +113,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
119
113
|
* runtimeTypeVersion: "100",
|
|
120
114
|
* script: "$browser.get('https://one.newrelic.com')",
|
|
121
115
|
* scriptLanguage: "JAVASCRIPT",
|
|
122
|
-
* status: "
|
|
116
|
+
* status: "ENABLED",
|
|
123
117
|
* tags: [{
|
|
124
118
|
* key: "some_key",
|
|
125
119
|
* values: ["some_value"],
|
|
@@ -133,7 +127,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
133
127
|
* Synthetics monitor scripts can be imported using the `guid`, e.g. bash
|
|
134
128
|
*
|
|
135
129
|
* ```sh
|
|
136
|
-
* $ pulumi import newrelic:synthetics/scriptMonitor:ScriptMonitor
|
|
130
|
+
* $ pulumi import newrelic:synthetics/scriptMonitor:ScriptMonitor monitor <guid>
|
|
137
131
|
* ```
|
|
138
132
|
*/
|
|
139
133
|
export declare class ScriptMonitor extends pulumi.CustomResource {
|
|
@@ -197,7 +191,7 @@ export declare class ScriptMonitor extends pulumi.CustomResource {
|
|
|
197
191
|
*/
|
|
198
192
|
readonly scriptLanguage: pulumi.Output<string | undefined>;
|
|
199
193
|
/**
|
|
200
|
-
* The run state of the monitor
|
|
194
|
+
* The run state of the monitor: `ENABLED` or `DISABLED`
|
|
201
195
|
*/
|
|
202
196
|
readonly status: pulumi.Output<string>;
|
|
203
197
|
/**
|
|
@@ -266,7 +260,7 @@ export interface ScriptMonitorState {
|
|
|
266
260
|
*/
|
|
267
261
|
scriptLanguage?: pulumi.Input<string>;
|
|
268
262
|
/**
|
|
269
|
-
* The run state of the monitor
|
|
263
|
+
* The run state of the monitor: `ENABLED` or `DISABLED`
|
|
270
264
|
*/
|
|
271
265
|
status?: pulumi.Input<string>;
|
|
272
266
|
/**
|
|
@@ -323,7 +317,7 @@ export interface ScriptMonitorArgs {
|
|
|
323
317
|
*/
|
|
324
318
|
scriptLanguage?: pulumi.Input<string>;
|
|
325
319
|
/**
|
|
326
|
-
* The run state of the monitor
|
|
320
|
+
* The run state of the monitor: `ENABLED` or `DISABLED`
|
|
327
321
|
*/
|
|
328
322
|
status: pulumi.Input<string>;
|
|
329
323
|
/**
|
|
@@ -12,8 +12,6 @@ const utilities = require("../utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ##### Type: `SCRIPT_API`
|
|
14
14
|
*
|
|
15
|
-
* > **NOTE:** The preferred runtime is `NODE_16.10.0` while configuring the `SCRIPT_API` monitor. The runtime fields `runtimeType`, `runtimeTypeVersion` and `scriptLanguage` are required. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
16
|
-
*
|
|
17
15
|
* ```typescript
|
|
18
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
17
|
* import * as newrelic from "@pulumi/newrelic";
|
|
@@ -26,7 +24,7 @@ const utilities = require("../utilities");
|
|
|
26
24
|
* period: "EVERY_6_HOURS",
|
|
27
25
|
* runtimeType: "NODE_API",
|
|
28
26
|
* runtimeTypeVersion: "16.10",
|
|
29
|
-
* script: "console.log('
|
|
27
|
+
* script: "console.log('it works!')",
|
|
30
28
|
* scriptLanguage: "JAVASCRIPT",
|
|
31
29
|
* status: "ENABLED",
|
|
32
30
|
* tags: [{
|
|
@@ -38,8 +36,6 @@ const utilities = require("../utilities");
|
|
|
38
36
|
* ```
|
|
39
37
|
* ##### Type: `SCRIPT_BROWSER`
|
|
40
38
|
*
|
|
41
|
-
* > **NOTE:** The preferred runtime is `CHROME_BROWSER_100` while configuring the `SCRIPT_BROWSER` monitor. The runtime fields `runtimeType`, `runtimeTypeVersion` and `scriptLanguage` are required. Other runtime may be deprecated in the future and receive fewer product updates.
|
|
42
|
-
*
|
|
43
39
|
* ```typescript
|
|
44
40
|
* import * as pulumi from "@pulumi/pulumi";
|
|
45
41
|
* import * as newrelic from "@pulumi/newrelic";
|
|
@@ -55,13 +51,10 @@ const utilities = require("../utilities");
|
|
|
55
51
|
* runtimeTypeVersion: "100",
|
|
56
52
|
* script: "$browser.get('https://one.newrelic.com')",
|
|
57
53
|
* scriptLanguage: "JAVASCRIPT",
|
|
58
|
-
* status: "
|
|
54
|
+
* status: "ENABLED",
|
|
59
55
|
* tags: [{
|
|
60
56
|
* key: "some_key",
|
|
61
|
-
* values: [
|
|
62
|
-
* "some_value1",
|
|
63
|
-
* "some_value2",
|
|
64
|
-
* ],
|
|
57
|
+
* values: ["some_value"],
|
|
65
58
|
* }],
|
|
66
59
|
* type: "SCRIPT_BROWSER",
|
|
67
60
|
* });
|
|
@@ -81,13 +74,13 @@ const utilities = require("../utilities");
|
|
|
81
74
|
* import * as pulumi from "@pulumi/pulumi";
|
|
82
75
|
* import * as newrelic from "@pulumi/newrelic";
|
|
83
76
|
*
|
|
84
|
-
* const
|
|
85
|
-
* description: "
|
|
77
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
78
|
+
* description: "Example private location",
|
|
86
79
|
* verifiedScriptExecution: true,
|
|
87
80
|
* });
|
|
88
81
|
* const monitor = new newrelic.synthetics.ScriptMonitor("monitor", {
|
|
89
82
|
* locationPrivates: [{
|
|
90
|
-
* guid: "newrelic_synthetics_private_location.
|
|
83
|
+
* guid: "newrelic_synthetics_private_location.location.id",
|
|
91
84
|
* vsePassword: "secret",
|
|
92
85
|
* }],
|
|
93
86
|
* period: "EVERY_6_HOURS",
|
|
@@ -109,14 +102,14 @@ const utilities = require("../utilities");
|
|
|
109
102
|
* import * as pulumi from "@pulumi/pulumi";
|
|
110
103
|
* import * as newrelic from "@pulumi/newrelic";
|
|
111
104
|
*
|
|
112
|
-
* const
|
|
105
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
113
106
|
* description: "Test Description",
|
|
114
107
|
* verifiedScriptExecution: true,
|
|
115
108
|
* });
|
|
116
109
|
* const monitor = new newrelic.synthetics.ScriptMonitor("monitor", {
|
|
117
110
|
* enableScreenshotOnFailureAndScript: false,
|
|
118
111
|
* locationPrivates: [{
|
|
119
|
-
* guid: "newrelic_synthetics_private_location.
|
|
112
|
+
* guid: "newrelic_synthetics_private_location.location.id",
|
|
120
113
|
* vsePassword: "secret",
|
|
121
114
|
* }],
|
|
122
115
|
* period: "EVERY_HOUR",
|
|
@@ -124,7 +117,7 @@ const utilities = require("../utilities");
|
|
|
124
117
|
* runtimeTypeVersion: "100",
|
|
125
118
|
* script: "$browser.get('https://one.newrelic.com')",
|
|
126
119
|
* scriptLanguage: "JAVASCRIPT",
|
|
127
|
-
* status: "
|
|
120
|
+
* status: "ENABLED",
|
|
128
121
|
* tags: [{
|
|
129
122
|
* key: "some_key",
|
|
130
123
|
* values: ["some_value"],
|
|
@@ -138,10 +131,32 @@ const utilities = require("../utilities");
|
|
|
138
131
|
* Synthetics monitor scripts can be imported using the `guid`, e.g. bash
|
|
139
132
|
*
|
|
140
133
|
* ```sh
|
|
141
|
-
* $ pulumi import newrelic:synthetics/scriptMonitor:ScriptMonitor
|
|
134
|
+
* $ pulumi import newrelic:synthetics/scriptMonitor:ScriptMonitor monitor <guid>
|
|
142
135
|
* ```
|
|
143
136
|
*/
|
|
144
137
|
class ScriptMonitor extends pulumi.CustomResource {
|
|
138
|
+
/**
|
|
139
|
+
* Get an existing ScriptMonitor resource's state with the given name, ID, and optional extra
|
|
140
|
+
* properties used to qualify the lookup.
|
|
141
|
+
*
|
|
142
|
+
* @param name The _unique_ name of the resulting resource.
|
|
143
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
144
|
+
* @param state Any extra arguments used during the lookup.
|
|
145
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
146
|
+
*/
|
|
147
|
+
static get(name, id, state, opts) {
|
|
148
|
+
return new ScriptMonitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Returns true if the given object is an instance of ScriptMonitor. This is designed to work even
|
|
152
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
153
|
+
*/
|
|
154
|
+
static isInstance(obj) {
|
|
155
|
+
if (obj === undefined || obj === null) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
return obj['__pulumiType'] === ScriptMonitor.__pulumiType;
|
|
159
|
+
}
|
|
145
160
|
constructor(name, argsOrState, opts) {
|
|
146
161
|
let resourceInputs = {};
|
|
147
162
|
opts = opts || {};
|
|
@@ -191,28 +206,6 @@ class ScriptMonitor extends pulumi.CustomResource {
|
|
|
191
206
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
192
207
|
super(ScriptMonitor.__pulumiType, name, resourceInputs, opts);
|
|
193
208
|
}
|
|
194
|
-
/**
|
|
195
|
-
* Get an existing ScriptMonitor resource's state with the given name, ID, and optional extra
|
|
196
|
-
* properties used to qualify the lookup.
|
|
197
|
-
*
|
|
198
|
-
* @param name The _unique_ name of the resulting resource.
|
|
199
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
200
|
-
* @param state Any extra arguments used during the lookup.
|
|
201
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
202
|
-
*/
|
|
203
|
-
static get(name, id, state, opts) {
|
|
204
|
-
return new ScriptMonitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Returns true if the given object is an instance of ScriptMonitor. This is designed to work even
|
|
208
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
209
|
-
*/
|
|
210
|
-
static isInstance(obj) {
|
|
211
|
-
if (obj === undefined || obj === null) {
|
|
212
|
-
return false;
|
|
213
|
-
}
|
|
214
|
-
return obj['__pulumiType'] === ScriptMonitor.__pulumiType;
|
|
215
|
-
}
|
|
216
209
|
}
|
|
217
210
|
exports.ScriptMonitor = ScriptMonitor;
|
|
218
211
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scriptMonitor.js","sourceRoot":"","sources":["../../synthetics/scriptMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"scriptMonitor.js","sourceRoot":"","sources":["../../synthetics/scriptMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgIG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IAC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,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA5IL,sCA6IC;AA/HG,gBAAgB;AACO,0BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -30,6 +30,28 @@ const utilities = require("../utilities");
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
class SecureCredential extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing SecureCredential resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new SecureCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of SecureCredential. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === SecureCredential.__pulumiType;
|
|
54
|
+
}
|
|
33
55
|
constructor(name, argsOrState, opts) {
|
|
34
56
|
let resourceInputs = {};
|
|
35
57
|
opts = opts || {};
|
|
@@ -53,33 +75,13 @@ class SecureCredential extends pulumi.CustomResource {
|
|
|
53
75
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
54
76
|
resourceInputs["key"] = args ? args.key : undefined;
|
|
55
77
|
resourceInputs["lastUpdated"] = args ? args.lastUpdated : undefined;
|
|
56
|
-
resourceInputs["value"] = args ? args.value : undefined;
|
|
78
|
+
resourceInputs["value"] = (args === null || args === void 0 ? void 0 : args.value) ? pulumi.secret(args.value) : undefined;
|
|
57
79
|
}
|
|
58
80
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
const secretOpts = { additionalSecretOutputs: ["value"] };
|
|
82
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
59
83
|
super(SecureCredential.__pulumiType, name, resourceInputs, opts);
|
|
60
84
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Get an existing SecureCredential resource's state with the given name, ID, and optional extra
|
|
63
|
-
* properties used to qualify the lookup.
|
|
64
|
-
*
|
|
65
|
-
* @param name The _unique_ name of the resulting resource.
|
|
66
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
-
* @param state Any extra arguments used during the lookup.
|
|
68
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
-
*/
|
|
70
|
-
static get(name, id, state, opts) {
|
|
71
|
-
return new SecureCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Returns true if the given object is an instance of SecureCredential. This is designed to work even
|
|
75
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
-
*/
|
|
77
|
-
static isInstance(obj) {
|
|
78
|
-
if (obj === undefined || obj === null) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
return obj['__pulumiType'] === SecureCredential.__pulumiType;
|
|
82
|
-
}
|
|
83
85
|
}
|
|
84
86
|
exports.SecureCredential = SecureCredential;
|
|
85
87
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secureCredential.js","sourceRoot":"","sources":["../../synthetics/secureCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"secureCredential.js","sourceRoot":"","sources":["../../synthetics/secureCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAA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CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AArFL,4CAsFC;AAxEG,gBAAgB;AACO,6BAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
3
4
|
/**
|
|
4
|
-
* Use this resource to create, update, and delete a
|
|
5
|
+
* Use this resource to create, update, and delete a Synthetics Step monitor in New Relic.
|
|
5
6
|
*
|
|
6
7
|
* ## Example Usage
|
|
7
8
|
*
|
|
@@ -41,13 +42,13 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
41
42
|
* import * as pulumi from "@pulumi/pulumi";
|
|
42
43
|
* import * as newrelic from "@pulumi/newrelic";
|
|
43
44
|
*
|
|
44
|
-
* const
|
|
45
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
45
46
|
* description: "Test Description",
|
|
46
47
|
* verifiedScriptExecution: true,
|
|
47
48
|
* });
|
|
48
49
|
* const bar = new newrelic.synthetics.StepMonitor("bar", {
|
|
49
50
|
* locationPrivates: [{
|
|
50
|
-
* guid: "newrelic_synthetics_private_location.
|
|
51
|
+
* guid: "newrelic_synthetics_private_location.location.id",
|
|
51
52
|
* vsePassword: "secret",
|
|
52
53
|
* }],
|
|
53
54
|
* period: "EVERY_6_HOURS",
|
|
@@ -70,7 +71,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
70
71
|
* Synthetics step monitor scripts can be imported using the `guid`, e.g. bash
|
|
71
72
|
*
|
|
72
73
|
* ```sh
|
|
73
|
-
* $ pulumi import newrelic:synthetics/stepMonitor:StepMonitor
|
|
74
|
+
* $ pulumi import newrelic:synthetics/stepMonitor:StepMonitor monitor <guid>
|
|
74
75
|
* ```
|
|
75
76
|
*/
|
|
76
77
|
export declare class StepMonitor extends pulumi.CustomResource {
|
|
@@ -6,7 +6,7 @@ exports.StepMonitor = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Use this resource to create, update, and delete a
|
|
9
|
+
* Use this resource to create, update, and delete a Synthetics Step monitor in New Relic.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -46,13 +46,13 @@ const utilities = require("../utilities");
|
|
|
46
46
|
* import * as pulumi from "@pulumi/pulumi";
|
|
47
47
|
* import * as newrelic from "@pulumi/newrelic";
|
|
48
48
|
*
|
|
49
|
-
* const
|
|
49
|
+
* const location = new newrelic.synthetics.PrivateLocation("location", {
|
|
50
50
|
* description: "Test Description",
|
|
51
51
|
* verifiedScriptExecution: true,
|
|
52
52
|
* });
|
|
53
53
|
* const bar = new newrelic.synthetics.StepMonitor("bar", {
|
|
54
54
|
* locationPrivates: [{
|
|
55
|
-
* guid: "newrelic_synthetics_private_location.
|
|
55
|
+
* guid: "newrelic_synthetics_private_location.location.id",
|
|
56
56
|
* vsePassword: "secret",
|
|
57
57
|
* }],
|
|
58
58
|
* period: "EVERY_6_HOURS",
|
|
@@ -75,10 +75,32 @@ const utilities = require("../utilities");
|
|
|
75
75
|
* Synthetics step monitor scripts can be imported using the `guid`, e.g. bash
|
|
76
76
|
*
|
|
77
77
|
* ```sh
|
|
78
|
-
* $ pulumi import newrelic:synthetics/stepMonitor:StepMonitor
|
|
78
|
+
* $ pulumi import newrelic:synthetics/stepMonitor:StepMonitor monitor <guid>
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
81
|
class StepMonitor extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing StepMonitor resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name, id, state, opts) {
|
|
92
|
+
return new StepMonitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Returns true if the given object is an instance of StepMonitor. This is designed to work even
|
|
96
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
97
|
+
*/
|
|
98
|
+
static isInstance(obj) {
|
|
99
|
+
if (obj === undefined || obj === null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
return obj['__pulumiType'] === StepMonitor.__pulumiType;
|
|
103
|
+
}
|
|
82
104
|
constructor(name, argsOrState, opts) {
|
|
83
105
|
let resourceInputs = {};
|
|
84
106
|
opts = opts || {};
|
|
@@ -120,28 +142,6 @@ class StepMonitor extends pulumi.CustomResource {
|
|
|
120
142
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
121
143
|
super(StepMonitor.__pulumiType, name, resourceInputs, opts);
|
|
122
144
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Get an existing StepMonitor resource's state with the given name, ID, and optional extra
|
|
125
|
-
* properties used to qualify the lookup.
|
|
126
|
-
*
|
|
127
|
-
* @param name The _unique_ name of the resulting resource.
|
|
128
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
129
|
-
* @param state Any extra arguments used during the lookup.
|
|
130
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
131
|
-
*/
|
|
132
|
-
static get(name, id, state, opts) {
|
|
133
|
-
return new StepMonitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Returns true if the given object is an instance of StepMonitor. This is designed to work even
|
|
137
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
138
|
-
*/
|
|
139
|
-
static isInstance(obj) {
|
|
140
|
-
if (obj === undefined || obj === null) {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
return obj['__pulumiType'] === StepMonitor.__pulumiType;
|
|
144
|
-
}
|
|
145
145
|
}
|
|
146
146
|
exports.StepMonitor = StepMonitor;
|
|
147
147
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepMonitor.js","sourceRoot":"","sources":["../../synthetics/stepMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"stepMonitor.js","sourceRoot":"","sources":["../../synthetics/stepMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;A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.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|