pulumi-posthog 0.0.1 → 1.0.1

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/bin/alert.d.ts ADDED
@@ -0,0 +1,180 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Alert extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Alert resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertState, opts?: pulumi.CustomResourceOptions): Alert;
13
+ /**
14
+ * Returns true if the given object is an instance of Alert. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is Alert;
18
+ /**
19
+ * How often to check the alert: <span pulumi-lang-nodejs="`hourly`" pulumi-lang-dotnet="`Hourly`" pulumi-lang-go="`hourly`" pulumi-lang-python="`hourly`" pulumi-lang-yaml="`hourly`" pulumi-lang-java="`hourly`">`hourly`</span>, <span pulumi-lang-nodejs="`daily`" pulumi-lang-dotnet="`Daily`" pulumi-lang-go="`daily`" pulumi-lang-python="`daily`" pulumi-lang-yaml="`daily`" pulumi-lang-java="`daily`">`daily`</span>, <span pulumi-lang-nodejs="`weekly`" pulumi-lang-dotnet="`Weekly`" pulumi-lang-go="`weekly`" pulumi-lang-python="`weekly`" pulumi-lang-yaml="`weekly`" pulumi-lang-java="`weekly`">`weekly`</span>, or <span pulumi-lang-nodejs="`monthly`" pulumi-lang-dotnet="`Monthly`" pulumi-lang-go="`monthly`" pulumi-lang-python="`monthly`" pulumi-lang-yaml="`monthly`" pulumi-lang-java="`monthly`">`monthly`</span>.
20
+ */
21
+ readonly calculationInterval: pulumi.Output<string>;
22
+ /**
23
+ * Whether to check the ongoing (incomplete) interval. When false, only completed intervals are checked.
24
+ */
25
+ readonly checkOngoingInterval: pulumi.Output<boolean>;
26
+ /**
27
+ * Condition type: <span pulumi-lang-nodejs="`absoluteValue`" pulumi-lang-dotnet="`AbsoluteValue`" pulumi-lang-go="`absoluteValue`" pulumi-lang-python="`absolute_value`" pulumi-lang-yaml="`absoluteValue`" pulumi-lang-java="`absoluteValue`">`absolute_value`</span>, <span pulumi-lang-nodejs="`relativeIncrease`" pulumi-lang-dotnet="`RelativeIncrease`" pulumi-lang-go="`relativeIncrease`" pulumi-lang-python="`relative_increase`" pulumi-lang-yaml="`relativeIncrease`" pulumi-lang-java="`relativeIncrease`">`relative_increase`</span>, or <span pulumi-lang-nodejs="`relativeDecrease`" pulumi-lang-dotnet="`RelativeDecrease`" pulumi-lang-go="`relativeDecrease`" pulumi-lang-python="`relative_decrease`" pulumi-lang-yaml="`relativeDecrease`" pulumi-lang-java="`relativeDecrease`">`relative_decrease`</span>.
28
+ */
29
+ readonly conditionType: pulumi.Output<string>;
30
+ /**
31
+ * Whether the alert is enabled. Defaults to true.
32
+ */
33
+ readonly enabled: pulumi.Output<boolean>;
34
+ /**
35
+ * ID of the insight this alert monitors.
36
+ */
37
+ readonly insight: pulumi.Output<number>;
38
+ /**
39
+ * Name of the alert.
40
+ */
41
+ readonly name: pulumi.Output<string>;
42
+ /**
43
+ * Index of the trend series to monitor (0-based). Used for trends alerts.
44
+ */
45
+ readonly seriesIndex: pulumi.Output<number>;
46
+ /**
47
+ * Whether to skip checking the alert on weekends.
48
+ */
49
+ readonly skipWeekend: pulumi.Output<boolean>;
50
+ /**
51
+ * List of user IDs to notify when the alert fires.
52
+ */
53
+ readonly subscribedUsers: pulumi.Output<number[]>;
54
+ /**
55
+ * Lower bound of the threshold. Alert fires when value goes below this.
56
+ */
57
+ readonly thresholdLower: pulumi.Output<number | undefined>;
58
+ /**
59
+ * Type of threshold: <span pulumi-lang-nodejs="`absolute`" pulumi-lang-dotnet="`Absolute`" pulumi-lang-go="`absolute`" pulumi-lang-python="`absolute`" pulumi-lang-yaml="`absolute`" pulumi-lang-java="`absolute`">`absolute`</span> for fixed values, <span pulumi-lang-nodejs="`percentage`" pulumi-lang-dotnet="`Percentage`" pulumi-lang-go="`percentage`" pulumi-lang-python="`percentage`" pulumi-lang-yaml="`percentage`" pulumi-lang-java="`percentage`">`percentage`</span> for relative changes.
60
+ */
61
+ readonly thresholdType: pulumi.Output<string>;
62
+ /**
63
+ * Upper bound of the threshold. Alert fires when value goes above this.
64
+ */
65
+ readonly thresholdUpper: pulumi.Output<number | undefined>;
66
+ /**
67
+ * Create a Alert resource with the given unique name, arguments, and options.
68
+ *
69
+ * @param name The _unique_ name of the resource.
70
+ * @param args The arguments to use to populate this resource's properties.
71
+ * @param opts A bag of options that control this resource's behavior.
72
+ */
73
+ constructor(name: string, args: AlertArgs, opts?: pulumi.CustomResourceOptions);
74
+ }
75
+ /**
76
+ * Input properties used for looking up and filtering Alert resources.
77
+ */
78
+ export interface AlertState {
79
+ /**
80
+ * How often to check the alert: <span pulumi-lang-nodejs="`hourly`" pulumi-lang-dotnet="`Hourly`" pulumi-lang-go="`hourly`" pulumi-lang-python="`hourly`" pulumi-lang-yaml="`hourly`" pulumi-lang-java="`hourly`">`hourly`</span>, <span pulumi-lang-nodejs="`daily`" pulumi-lang-dotnet="`Daily`" pulumi-lang-go="`daily`" pulumi-lang-python="`daily`" pulumi-lang-yaml="`daily`" pulumi-lang-java="`daily`">`daily`</span>, <span pulumi-lang-nodejs="`weekly`" pulumi-lang-dotnet="`Weekly`" pulumi-lang-go="`weekly`" pulumi-lang-python="`weekly`" pulumi-lang-yaml="`weekly`" pulumi-lang-java="`weekly`">`weekly`</span>, or <span pulumi-lang-nodejs="`monthly`" pulumi-lang-dotnet="`Monthly`" pulumi-lang-go="`monthly`" pulumi-lang-python="`monthly`" pulumi-lang-yaml="`monthly`" pulumi-lang-java="`monthly`">`monthly`</span>.
81
+ */
82
+ calculationInterval?: pulumi.Input<string>;
83
+ /**
84
+ * Whether to check the ongoing (incomplete) interval. When false, only completed intervals are checked.
85
+ */
86
+ checkOngoingInterval?: pulumi.Input<boolean>;
87
+ /**
88
+ * Condition type: <span pulumi-lang-nodejs="`absoluteValue`" pulumi-lang-dotnet="`AbsoluteValue`" pulumi-lang-go="`absoluteValue`" pulumi-lang-python="`absolute_value`" pulumi-lang-yaml="`absoluteValue`" pulumi-lang-java="`absoluteValue`">`absolute_value`</span>, <span pulumi-lang-nodejs="`relativeIncrease`" pulumi-lang-dotnet="`RelativeIncrease`" pulumi-lang-go="`relativeIncrease`" pulumi-lang-python="`relative_increase`" pulumi-lang-yaml="`relativeIncrease`" pulumi-lang-java="`relativeIncrease`">`relative_increase`</span>, or <span pulumi-lang-nodejs="`relativeDecrease`" pulumi-lang-dotnet="`RelativeDecrease`" pulumi-lang-go="`relativeDecrease`" pulumi-lang-python="`relative_decrease`" pulumi-lang-yaml="`relativeDecrease`" pulumi-lang-java="`relativeDecrease`">`relative_decrease`</span>.
89
+ */
90
+ conditionType?: pulumi.Input<string>;
91
+ /**
92
+ * Whether the alert is enabled. Defaults to true.
93
+ */
94
+ enabled?: pulumi.Input<boolean>;
95
+ /**
96
+ * ID of the insight this alert monitors.
97
+ */
98
+ insight?: pulumi.Input<number>;
99
+ /**
100
+ * Name of the alert.
101
+ */
102
+ name?: pulumi.Input<string>;
103
+ /**
104
+ * Index of the trend series to monitor (0-based). Used for trends alerts.
105
+ */
106
+ seriesIndex?: pulumi.Input<number>;
107
+ /**
108
+ * Whether to skip checking the alert on weekends.
109
+ */
110
+ skipWeekend?: pulumi.Input<boolean>;
111
+ /**
112
+ * List of user IDs to notify when the alert fires.
113
+ */
114
+ subscribedUsers?: pulumi.Input<pulumi.Input<number>[]>;
115
+ /**
116
+ * Lower bound of the threshold. Alert fires when value goes below this.
117
+ */
118
+ thresholdLower?: pulumi.Input<number>;
119
+ /**
120
+ * Type of threshold: <span pulumi-lang-nodejs="`absolute`" pulumi-lang-dotnet="`Absolute`" pulumi-lang-go="`absolute`" pulumi-lang-python="`absolute`" pulumi-lang-yaml="`absolute`" pulumi-lang-java="`absolute`">`absolute`</span> for fixed values, <span pulumi-lang-nodejs="`percentage`" pulumi-lang-dotnet="`Percentage`" pulumi-lang-go="`percentage`" pulumi-lang-python="`percentage`" pulumi-lang-yaml="`percentage`" pulumi-lang-java="`percentage`">`percentage`</span> for relative changes.
121
+ */
122
+ thresholdType?: pulumi.Input<string>;
123
+ /**
124
+ * Upper bound of the threshold. Alert fires when value goes above this.
125
+ */
126
+ thresholdUpper?: pulumi.Input<number>;
127
+ }
128
+ /**
129
+ * The set of arguments for constructing a Alert resource.
130
+ */
131
+ export interface AlertArgs {
132
+ /**
133
+ * How often to check the alert: <span pulumi-lang-nodejs="`hourly`" pulumi-lang-dotnet="`Hourly`" pulumi-lang-go="`hourly`" pulumi-lang-python="`hourly`" pulumi-lang-yaml="`hourly`" pulumi-lang-java="`hourly`">`hourly`</span>, <span pulumi-lang-nodejs="`daily`" pulumi-lang-dotnet="`Daily`" pulumi-lang-go="`daily`" pulumi-lang-python="`daily`" pulumi-lang-yaml="`daily`" pulumi-lang-java="`daily`">`daily`</span>, <span pulumi-lang-nodejs="`weekly`" pulumi-lang-dotnet="`Weekly`" pulumi-lang-go="`weekly`" pulumi-lang-python="`weekly`" pulumi-lang-yaml="`weekly`" pulumi-lang-java="`weekly`">`weekly`</span>, or <span pulumi-lang-nodejs="`monthly`" pulumi-lang-dotnet="`Monthly`" pulumi-lang-go="`monthly`" pulumi-lang-python="`monthly`" pulumi-lang-yaml="`monthly`" pulumi-lang-java="`monthly`">`monthly`</span>.
134
+ */
135
+ calculationInterval?: pulumi.Input<string>;
136
+ /**
137
+ * Whether to check the ongoing (incomplete) interval. When false, only completed intervals are checked.
138
+ */
139
+ checkOngoingInterval?: pulumi.Input<boolean>;
140
+ /**
141
+ * Condition type: <span pulumi-lang-nodejs="`absoluteValue`" pulumi-lang-dotnet="`AbsoluteValue`" pulumi-lang-go="`absoluteValue`" pulumi-lang-python="`absolute_value`" pulumi-lang-yaml="`absoluteValue`" pulumi-lang-java="`absoluteValue`">`absolute_value`</span>, <span pulumi-lang-nodejs="`relativeIncrease`" pulumi-lang-dotnet="`RelativeIncrease`" pulumi-lang-go="`relativeIncrease`" pulumi-lang-python="`relative_increase`" pulumi-lang-yaml="`relativeIncrease`" pulumi-lang-java="`relativeIncrease`">`relative_increase`</span>, or <span pulumi-lang-nodejs="`relativeDecrease`" pulumi-lang-dotnet="`RelativeDecrease`" pulumi-lang-go="`relativeDecrease`" pulumi-lang-python="`relative_decrease`" pulumi-lang-yaml="`relativeDecrease`" pulumi-lang-java="`relativeDecrease`">`relative_decrease`</span>.
142
+ */
143
+ conditionType?: pulumi.Input<string>;
144
+ /**
145
+ * Whether the alert is enabled. Defaults to true.
146
+ */
147
+ enabled?: pulumi.Input<boolean>;
148
+ /**
149
+ * ID of the insight this alert monitors.
150
+ */
151
+ insight: pulumi.Input<number>;
152
+ /**
153
+ * Name of the alert.
154
+ */
155
+ name?: pulumi.Input<string>;
156
+ /**
157
+ * Index of the trend series to monitor (0-based). Used for trends alerts.
158
+ */
159
+ seriesIndex?: pulumi.Input<number>;
160
+ /**
161
+ * Whether to skip checking the alert on weekends.
162
+ */
163
+ skipWeekend?: pulumi.Input<boolean>;
164
+ /**
165
+ * List of user IDs to notify when the alert fires.
166
+ */
167
+ subscribedUsers: pulumi.Input<pulumi.Input<number>[]>;
168
+ /**
169
+ * Lower bound of the threshold. Alert fires when value goes below this.
170
+ */
171
+ thresholdLower?: pulumi.Input<number>;
172
+ /**
173
+ * Type of threshold: <span pulumi-lang-nodejs="`absolute`" pulumi-lang-dotnet="`Absolute`" pulumi-lang-go="`absolute`" pulumi-lang-python="`absolute`" pulumi-lang-yaml="`absolute`" pulumi-lang-java="`absolute`">`absolute`</span> for fixed values, <span pulumi-lang-nodejs="`percentage`" pulumi-lang-dotnet="`Percentage`" pulumi-lang-go="`percentage`" pulumi-lang-python="`percentage`" pulumi-lang-yaml="`percentage`" pulumi-lang-java="`percentage`">`percentage`</span> for relative changes.
174
+ */
175
+ thresholdType: pulumi.Input<string>;
176
+ /**
177
+ * Upper bound of the threshold. Alert fires when value goes above this.
178
+ */
179
+ thresholdUpper?: pulumi.Input<number>;
180
+ }
package/bin/alert.js ADDED
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Alert = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Alert extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Alert resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new Alert(name, state, { ...opts, id: id });
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of Alert. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === Alert.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["calculationInterval"] = state?.calculationInterval;
37
+ resourceInputs["checkOngoingInterval"] = state?.checkOngoingInterval;
38
+ resourceInputs["conditionType"] = state?.conditionType;
39
+ resourceInputs["enabled"] = state?.enabled;
40
+ resourceInputs["insight"] = state?.insight;
41
+ resourceInputs["name"] = state?.name;
42
+ resourceInputs["seriesIndex"] = state?.seriesIndex;
43
+ resourceInputs["skipWeekend"] = state?.skipWeekend;
44
+ resourceInputs["subscribedUsers"] = state?.subscribedUsers;
45
+ resourceInputs["thresholdLower"] = state?.thresholdLower;
46
+ resourceInputs["thresholdType"] = state?.thresholdType;
47
+ resourceInputs["thresholdUpper"] = state?.thresholdUpper;
48
+ }
49
+ else {
50
+ const args = argsOrState;
51
+ if (args?.insight === undefined && !opts.urn) {
52
+ throw new Error("Missing required property 'insight'");
53
+ }
54
+ if (args?.subscribedUsers === undefined && !opts.urn) {
55
+ throw new Error("Missing required property 'subscribedUsers'");
56
+ }
57
+ if (args?.thresholdType === undefined && !opts.urn) {
58
+ throw new Error("Missing required property 'thresholdType'");
59
+ }
60
+ resourceInputs["calculationInterval"] = args?.calculationInterval;
61
+ resourceInputs["checkOngoingInterval"] = args?.checkOngoingInterval;
62
+ resourceInputs["conditionType"] = args?.conditionType;
63
+ resourceInputs["enabled"] = args?.enabled;
64
+ resourceInputs["insight"] = args?.insight;
65
+ resourceInputs["name"] = args?.name;
66
+ resourceInputs["seriesIndex"] = args?.seriesIndex;
67
+ resourceInputs["skipWeekend"] = args?.skipWeekend;
68
+ resourceInputs["subscribedUsers"] = args?.subscribedUsers;
69
+ resourceInputs["thresholdLower"] = args?.thresholdLower;
70
+ resourceInputs["thresholdType"] = args?.thresholdType;
71
+ resourceInputs["thresholdUpper"] = args?.thresholdUpper;
72
+ }
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
74
+ super(Alert.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
75
+ }
76
+ }
77
+ exports.Alert = Alert;
78
+ /** @internal */
79
+ Alert.__pulumiType = 'posthog:index/alert:Alert';
80
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../alert.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,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CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;QAC5D,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACxG,CAAC;;AAhIL,sBAiIC;AAnHG,gBAAgB;AACO,kBAAY,GAAG,2BAA2B,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./vars";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ // Export members:
20
+ __exportStar(require("./vars"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * PostHog personal API key. Can be set via `POSTHOG_API_KEY` environment variable.
3
+ */
4
+ export declare const apiKey: string | undefined;
5
+ /**
6
+ * Base URL for the PostHog API. Defaults to `https://us.posthog.com`. Can be set via `POSTHOG_HOST`
7
+ */
8
+ export declare const host: string | undefined;
9
+ /**
10
+ * Default project ID (environment) to target. Can be set via `POSTHOG_PROJECT_ID` environment variable.
11
+ */
12
+ export declare const projectId: string | undefined;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ const pulumi = require("@pulumi/pulumi");
6
+ const __config = new pulumi.Config("posthog");
7
+ Object.defineProperty(exports, "apiKey", {
8
+ get() {
9
+ return __config.get("apiKey");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "host", {
14
+ get() {
15
+ return __config.get("host");
16
+ },
17
+ enumerable: true,
18
+ });
19
+ Object.defineProperty(exports, "projectId", {
20
+ get() {
21
+ return __config.get("projectId");
22
+ },
23
+ enumerable: true,
24
+ });
25
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAM9C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;IACnC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Dashboard extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Dashboard resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardState, opts?: pulumi.CustomResourceOptions): Dashboard;
13
+ /**
14
+ * Returns true if the given object is an instance of Dashboard. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is Dashboard;
18
+ /**
19
+ * Dashboard ID
20
+ */
21
+ readonly dashboardId: pulumi.Output<number>;
22
+ /**
23
+ * Whether the dashboard is deleted (soft delete)
24
+ */
25
+ readonly deleted: pulumi.Output<boolean>;
26
+ /**
27
+ * Dashboard description
28
+ */
29
+ readonly description: pulumi.Output<string | undefined>;
30
+ /**
31
+ * Dashboard name
32
+ */
33
+ readonly name: pulumi.Output<string>;
34
+ /**
35
+ * Whether the dashboard is pinned
36
+ */
37
+ readonly pinned: pulumi.Output<boolean>;
38
+ /**
39
+ * Set of tags for the dashboard
40
+ */
41
+ readonly tags: pulumi.Output<string[] | undefined>;
42
+ /**
43
+ * Create a Dashboard resource with the given unique name, arguments, and options.
44
+ *
45
+ * @param name The _unique_ name of the resource.
46
+ * @param args The arguments to use to populate this resource's properties.
47
+ * @param opts A bag of options that control this resource's behavior.
48
+ */
49
+ constructor(name: string, args?: DashboardArgs, opts?: pulumi.CustomResourceOptions);
50
+ }
51
+ /**
52
+ * Input properties used for looking up and filtering Dashboard resources.
53
+ */
54
+ export interface DashboardState {
55
+ /**
56
+ * Dashboard ID
57
+ */
58
+ dashboardId?: pulumi.Input<number>;
59
+ /**
60
+ * Whether the dashboard is deleted (soft delete)
61
+ */
62
+ deleted?: pulumi.Input<boolean>;
63
+ /**
64
+ * Dashboard description
65
+ */
66
+ description?: pulumi.Input<string>;
67
+ /**
68
+ * Dashboard name
69
+ */
70
+ name?: pulumi.Input<string>;
71
+ /**
72
+ * Whether the dashboard is pinned
73
+ */
74
+ pinned?: pulumi.Input<boolean>;
75
+ /**
76
+ * Set of tags for the dashboard
77
+ */
78
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
79
+ }
80
+ /**
81
+ * The set of arguments for constructing a Dashboard resource.
82
+ */
83
+ export interface DashboardArgs {
84
+ /**
85
+ * Whether the dashboard is deleted (soft delete)
86
+ */
87
+ deleted?: pulumi.Input<boolean>;
88
+ /**
89
+ * Dashboard description
90
+ */
91
+ description?: pulumi.Input<string>;
92
+ /**
93
+ * Dashboard name
94
+ */
95
+ name?: pulumi.Input<string>;
96
+ /**
97
+ * Whether the dashboard is pinned
98
+ */
99
+ pinned?: pulumi.Input<boolean>;
100
+ /**
101
+ * Set of tags for the dashboard
102
+ */
103
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
104
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Dashboard = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Dashboard extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Dashboard resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new Dashboard(name, state, { ...opts, id: id });
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of Dashboard. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === Dashboard.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["dashboardId"] = state?.dashboardId;
37
+ resourceInputs["deleted"] = state?.deleted;
38
+ resourceInputs["description"] = state?.description;
39
+ resourceInputs["name"] = state?.name;
40
+ resourceInputs["pinned"] = state?.pinned;
41
+ resourceInputs["tags"] = state?.tags;
42
+ }
43
+ else {
44
+ const args = argsOrState;
45
+ resourceInputs["deleted"] = args?.deleted;
46
+ resourceInputs["description"] = args?.description;
47
+ resourceInputs["name"] = args?.name;
48
+ resourceInputs["pinned"] = args?.pinned;
49
+ resourceInputs["tags"] = args?.tags;
50
+ resourceInputs["dashboardId"] = undefined /*out*/;
51
+ }
52
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
53
+ super(Dashboard.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
54
+ }
55
+ }
56
+ exports.Dashboard = Dashboard;
57
+ /** @internal */
58
+ Dashboard.__pulumiType = 'posthog:index/dashboard:Dashboard';
59
+ //# sourceMappingURL=dashboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../dashboard.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;QACzC,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;QACtD,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC5G,CAAC;;AAnFL,8BAoFC;AAtEG,gBAAgB;AACO,sBAAY,GAAG,mCAAmC,CAAC"}
@@ -0,0 +1,116 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class FeatureFlag extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing FeatureFlag resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FeatureFlagState, opts?: pulumi.CustomResourceOptions): FeatureFlag;
13
+ /**
14
+ * Returns true if the given object is an instance of FeatureFlag. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is FeatureFlag;
18
+ /**
19
+ * Whether the feature flag is active
20
+ */
21
+ readonly active: pulumi.Output<boolean>;
22
+ /**
23
+ * Feature Flag ID
24
+ */
25
+ readonly featureFlagId: pulumi.Output<number>;
26
+ /**
27
+ * Feature flag filters as JSON
28
+ */
29
+ readonly filters: pulumi.Output<string>;
30
+ /**
31
+ * Feature flag key (unique identifier)
32
+ */
33
+ readonly key: pulumi.Output<string>;
34
+ /**
35
+ * Feature flag name/description
36
+ */
37
+ readonly name: pulumi.Output<string>;
38
+ /**
39
+ * Rollout percentage (0-100)
40
+ */
41
+ readonly rolloutPercentage: pulumi.Output<number>;
42
+ /**
43
+ * Set of tags for the feature flag
44
+ */
45
+ readonly tags: pulumi.Output<string[] | undefined>;
46
+ /**
47
+ * Create a FeatureFlag resource with the given unique name, arguments, and options.
48
+ *
49
+ * @param name The _unique_ name of the resource.
50
+ * @param args The arguments to use to populate this resource's properties.
51
+ * @param opts A bag of options that control this resource's behavior.
52
+ */
53
+ constructor(name: string, args: FeatureFlagArgs, opts?: pulumi.CustomResourceOptions);
54
+ }
55
+ /**
56
+ * Input properties used for looking up and filtering FeatureFlag resources.
57
+ */
58
+ export interface FeatureFlagState {
59
+ /**
60
+ * Whether the feature flag is active
61
+ */
62
+ active?: pulumi.Input<boolean>;
63
+ /**
64
+ * Feature Flag ID
65
+ */
66
+ featureFlagId?: pulumi.Input<number>;
67
+ /**
68
+ * Feature flag filters as JSON
69
+ */
70
+ filters?: pulumi.Input<string>;
71
+ /**
72
+ * Feature flag key (unique identifier)
73
+ */
74
+ key?: pulumi.Input<string>;
75
+ /**
76
+ * Feature flag name/description
77
+ */
78
+ name?: pulumi.Input<string>;
79
+ /**
80
+ * Rollout percentage (0-100)
81
+ */
82
+ rolloutPercentage?: pulumi.Input<number>;
83
+ /**
84
+ * Set of tags for the feature flag
85
+ */
86
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
87
+ }
88
+ /**
89
+ * The set of arguments for constructing a FeatureFlag resource.
90
+ */
91
+ export interface FeatureFlagArgs {
92
+ /**
93
+ * Whether the feature flag is active
94
+ */
95
+ active?: pulumi.Input<boolean>;
96
+ /**
97
+ * Feature flag filters as JSON
98
+ */
99
+ filters?: pulumi.Input<string>;
100
+ /**
101
+ * Feature flag key (unique identifier)
102
+ */
103
+ key: pulumi.Input<string>;
104
+ /**
105
+ * Feature flag name/description
106
+ */
107
+ name?: pulumi.Input<string>;
108
+ /**
109
+ * Rollout percentage (0-100)
110
+ */
111
+ rolloutPercentage?: pulumi.Input<number>;
112
+ /**
113
+ * Set of tags for the feature flag
114
+ */
115
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
116
+ }