@pulumiverse/vercel 0.15.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.
Files changed (65) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +55 -0
  3. package/alias.d.ts +77 -0
  4. package/alias.js +64 -0
  5. package/alias.js.map +1 -0
  6. package/config/index.d.ts +1 -0
  7. package/config/index.js +21 -0
  8. package/config/index.js.map +1 -0
  9. package/config/vars.d.ts +10 -0
  10. package/config/vars.js +19 -0
  11. package/config/vars.js.map +1 -0
  12. package/deployment.d.ts +177 -0
  13. package/deployment.js +72 -0
  14. package/deployment.js.map +1 -0
  15. package/dnsRecord.d.ts +240 -0
  16. package/dnsRecord.js +154 -0
  17. package/dnsRecord.js.map +1 -0
  18. package/getAlias.d.ts +60 -0
  19. package/getAlias.js +30 -0
  20. package/getAlias.js.map +1 -0
  21. package/getFile.d.ts +79 -0
  22. package/getFile.js +67 -0
  23. package/getFile.js.map +1 -0
  24. package/getPrebuiltProject.d.ts +31 -0
  25. package/getPrebuiltProject.js +19 -0
  26. package/getPrebuiltProject.js.map +1 -0
  27. package/getProject.d.ts +146 -0
  28. package/getProject.js +59 -0
  29. package/getProject.js.map +1 -0
  30. package/getProjectDirectory.d.ts +31 -0
  31. package/getProjectDirectory.js +19 -0
  32. package/getProjectDirectory.js.map +1 -0
  33. package/index.d.ts +42 -0
  34. package/index.js +83 -0
  35. package/index.js.map +1 -0
  36. package/package.json +28 -0
  37. package/package.json.bak +28 -0
  38. package/project.d.ts +275 -0
  39. package/project.js +118 -0
  40. package/project.js.map +1 -0
  41. package/projectDomain.d.ts +152 -0
  42. package/projectDomain.js +109 -0
  43. package/projectDomain.js.map +1 -0
  44. package/projectEnvironmentVariable.d.ts +152 -0
  45. package/projectEnvironmentVariable.js +117 -0
  46. package/projectEnvironmentVariable.js.map +1 -0
  47. package/provider.d.ts +47 -0
  48. package/provider.js +48 -0
  49. package/provider.js.map +1 -0
  50. package/scripts/install-pulumi-plugin.js +26 -0
  51. package/sharedEnvironmentVariable.d.ts +131 -0
  52. package/sharedEnvironmentVariable.js +106 -0
  53. package/sharedEnvironmentVariable.js.map +1 -0
  54. package/types/index.d.ts +3 -0
  55. package/types/index.js +11 -0
  56. package/types/index.js.map +1 -0
  57. package/types/input.d.ts +105 -0
  58. package/types/input.js +5 -0
  59. package/types/input.js.map +1 -0
  60. package/types/output.d.ts +140 -0
  61. package/types/output.js +5 -0
  62. package/types/output.js.map +1 -0
  63. package/utilities.d.ts +4 -0
  64. package/utilities.js +69 -0
  65. package/utilities.js.map +1 -0
package/types/index.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.output = exports.input = void 0;
6
+ // Export sub-modules:
7
+ const input = require("./input");
8
+ exports.input = input;
9
+ const output = require("./output");
10
+ exports.output = output;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,105 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export interface DeploymentProjectSettings {
3
+ /**
4
+ * The build command for this deployment. If omitted, this value will be taken from the project or automatically detected.
5
+ */
6
+ buildCommand?: pulumi.Input<string>;
7
+ /**
8
+ * The framework that is being used for this deployment. If omitted, no framework is selected.
9
+ */
10
+ framework?: pulumi.Input<string>;
11
+ /**
12
+ * The install command for this deployment. If omitted, this value will be taken from the project or automatically detected.
13
+ */
14
+ installCommand?: pulumi.Input<string>;
15
+ /**
16
+ * The output directory of the deployment. If omitted, this value will be taken from the project or automatically detected.
17
+ */
18
+ outputDirectory?: pulumi.Input<string>;
19
+ /**
20
+ * The name of a directory or relative path to the source code of your project. When null is used it will default to the project root.
21
+ */
22
+ rootDirectory?: pulumi.Input<string>;
23
+ }
24
+ export interface DnsRecordSrv {
25
+ /**
26
+ * The TCP or UDP port on which the service is to be found.
27
+ */
28
+ port: pulumi.Input<number>;
29
+ /**
30
+ * The priority of the target host, lower value means more preferred.
31
+ */
32
+ priority: pulumi.Input<number>;
33
+ /**
34
+ * The canonical hostname of the machine providing the service, ending in a dot.
35
+ */
36
+ target: pulumi.Input<string>;
37
+ /**
38
+ * A relative weight for records with the same priority, higher value means higher chance of getting picked.
39
+ */
40
+ weight: pulumi.Input<number>;
41
+ }
42
+ export interface GetProjectPasswordProtection {
43
+ /**
44
+ * If true, production deployments will also be protected
45
+ */
46
+ protectProduction?: boolean;
47
+ }
48
+ export interface GetProjectPasswordProtectionArgs {
49
+ /**
50
+ * If true, production deployments will also be protected
51
+ */
52
+ protectProduction?: pulumi.Input<boolean>;
53
+ }
54
+ export interface ProjectEnvironment {
55
+ /**
56
+ * The git branch of the Environment Variable.
57
+ */
58
+ gitBranch?: pulumi.Input<string>;
59
+ /**
60
+ * The ID of the Environment Variable.
61
+ */
62
+ id?: pulumi.Input<string>;
63
+ /**
64
+ * The name of the Environment Variable.
65
+ */
66
+ key: pulumi.Input<string>;
67
+ /**
68
+ * The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
69
+ */
70
+ targets: pulumi.Input<pulumi.Input<string>[]>;
71
+ /**
72
+ * The value of the Environment Variable.
73
+ */
74
+ value: pulumi.Input<string>;
75
+ }
76
+ export interface ProjectGitRepository {
77
+ /**
78
+ * By default, every commit pushed to the main branch will trigger a Production Deployment instead of the usual Preview Deployment. You can switch to a different branch here.
79
+ */
80
+ productionBranch?: pulumi.Input<string>;
81
+ /**
82
+ * The name of the git repository. For example: `vercel/next.js`.
83
+ */
84
+ repo: pulumi.Input<string>;
85
+ /**
86
+ * The git provider of the repository. Must be either `github`, `gitlab`, or `bitbucket`.
87
+ */
88
+ type: pulumi.Input<string>;
89
+ }
90
+ export interface ProjectPasswordProtection {
91
+ /**
92
+ * The password that visitors must enter to gain access to your Preview Deployments. Drift detection is not possible for this field.
93
+ */
94
+ password: pulumi.Input<string>;
95
+ /**
96
+ * If true, production deployments will also be protected
97
+ */
98
+ protectProduction?: pulumi.Input<boolean>;
99
+ }
100
+ export interface ProjectVercelAuthentication {
101
+ /**
102
+ * If true, production deployments will also be protected
103
+ */
104
+ protectProduction?: pulumi.Input<boolean>;
105
+ }
package/types/input.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
@@ -0,0 +1,140 @@
1
+ export interface DeploymentProjectSettings {
2
+ /**
3
+ * The build command for this deployment. If omitted, this value will be taken from the project or automatically detected.
4
+ */
5
+ buildCommand?: string;
6
+ /**
7
+ * The framework that is being used for this deployment. If omitted, no framework is selected.
8
+ */
9
+ framework?: string;
10
+ /**
11
+ * The install command for this deployment. If omitted, this value will be taken from the project or automatically detected.
12
+ */
13
+ installCommand?: string;
14
+ /**
15
+ * The output directory of the deployment. If omitted, this value will be taken from the project or automatically detected.
16
+ */
17
+ outputDirectory?: string;
18
+ /**
19
+ * The name of a directory or relative path to the source code of your project. When null is used it will default to the project root.
20
+ */
21
+ rootDirectory?: string;
22
+ }
23
+ export interface DnsRecordSrv {
24
+ /**
25
+ * The TCP or UDP port on which the service is to be found.
26
+ */
27
+ port: number;
28
+ /**
29
+ * The priority of the target host, lower value means more preferred.
30
+ */
31
+ priority: number;
32
+ /**
33
+ * The canonical hostname of the machine providing the service, ending in a dot.
34
+ */
35
+ target: string;
36
+ /**
37
+ * A relative weight for records with the same priority, higher value means higher chance of getting picked.
38
+ */
39
+ weight: number;
40
+ }
41
+ export interface GetProjectEnvironment {
42
+ /**
43
+ * The git branch of the environment variable.
44
+ */
45
+ gitBranch: string;
46
+ /**
47
+ * The ID of the environment variable
48
+ */
49
+ id: string;
50
+ /**
51
+ * The name of the environment variable.
52
+ */
53
+ key: string;
54
+ /**
55
+ * The environments that the environment variable should be present on. Valid targets are either `production`, `preview`, or `development`.
56
+ */
57
+ targets: string[];
58
+ /**
59
+ * The value of the environment variable.
60
+ */
61
+ value: string;
62
+ }
63
+ export interface GetProjectGitRepository {
64
+ /**
65
+ * By default, every commit pushed to the main branch will trigger a Production Deployment instead of the usual Preview Deployment. You can switch to a different branch here.
66
+ */
67
+ productionBranch: string;
68
+ /**
69
+ * The name of the git repository. For example: `vercel/next.js`.
70
+ */
71
+ repo: string;
72
+ /**
73
+ * The git provider of the repository. Must be either `github`, `gitlab`, or `bitbucket`.
74
+ */
75
+ type: string;
76
+ }
77
+ export interface GetProjectPasswordProtection {
78
+ /**
79
+ * If true, production deployments will also be protected
80
+ */
81
+ protectProduction: boolean;
82
+ }
83
+ export interface GetProjectVercelAuthentication {
84
+ /**
85
+ * If true, production deployments will also be protected
86
+ */
87
+ protectProduction: boolean;
88
+ }
89
+ export interface ProjectEnvironment {
90
+ /**
91
+ * The git branch of the Environment Variable.
92
+ */
93
+ gitBranch?: string;
94
+ /**
95
+ * The ID of the Environment Variable.
96
+ */
97
+ id: string;
98
+ /**
99
+ * The name of the Environment Variable.
100
+ */
101
+ key: string;
102
+ /**
103
+ * The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
104
+ */
105
+ targets: string[];
106
+ /**
107
+ * The value of the Environment Variable.
108
+ */
109
+ value: string;
110
+ }
111
+ export interface ProjectGitRepository {
112
+ /**
113
+ * By default, every commit pushed to the main branch will trigger a Production Deployment instead of the usual Preview Deployment. You can switch to a different branch here.
114
+ */
115
+ productionBranch: string;
116
+ /**
117
+ * The name of the git repository. For example: `vercel/next.js`.
118
+ */
119
+ repo: string;
120
+ /**
121
+ * The git provider of the repository. Must be either `github`, `gitlab`, or `bitbucket`.
122
+ */
123
+ type: string;
124
+ }
125
+ export interface ProjectPasswordProtection {
126
+ /**
127
+ * The password that visitors must enter to gain access to your Preview Deployments. Drift detection is not possible for this field.
128
+ */
129
+ password: string;
130
+ /**
131
+ * If true, production deployments will also be protected
132
+ */
133
+ protectProduction: boolean;
134
+ }
135
+ export interface ProjectVercelAuthentication {
136
+ /**
137
+ * If true, production deployments will also be protected
138
+ */
139
+ protectProduction: boolean;
140
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
package/utilities.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare function getEnv(...vars: string[]): string | undefined;
2
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
3
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
4
+ export declare function getVersion(): string;
package/utilities.js ADDED
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
6
+ function getEnv(...vars) {
7
+ for (const v of vars) {
8
+ const value = process.env[v];
9
+ if (value) {
10
+ return value;
11
+ }
12
+ }
13
+ return undefined;
14
+ }
15
+ exports.getEnv = getEnv;
16
+ function getEnvBoolean(...vars) {
17
+ const s = getEnv(...vars);
18
+ if (s !== undefined) {
19
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
20
+ // Terraform uses internally when parsing boolean values.
21
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
22
+ return true;
23
+ }
24
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
25
+ return false;
26
+ }
27
+ }
28
+ return undefined;
29
+ }
30
+ exports.getEnvBoolean = getEnvBoolean;
31
+ function getEnvNumber(...vars) {
32
+ const s = getEnv(...vars);
33
+ if (s !== undefined) {
34
+ const f = parseFloat(s);
35
+ if (!isNaN(f)) {
36
+ return f;
37
+ }
38
+ }
39
+ return undefined;
40
+ }
41
+ exports.getEnvNumber = getEnvNumber;
42
+ function getVersion() {
43
+ let version = require('./package.json').version;
44
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
45
+ // If there is a v, strip it off.
46
+ if (version.indexOf('v') === 0) {
47
+ version = version.slice(1);
48
+ }
49
+ return version;
50
+ }
51
+ exports.getVersion = getVersion;
52
+ /** @internal */
53
+ function resourceOptsDefaults() {
54
+ return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumiverse" };
55
+ }
56
+ exports.resourceOptsDefaults = resourceOptsDefaults;
57
+ /** @internal */
58
+ function lazyLoad(exports, props, loadModule) {
59
+ for (let property of props) {
60
+ Object.defineProperty(exports, property, {
61
+ enumerable: true,
62
+ get: function () {
63
+ return loadModule()[property];
64
+ },
65
+ });
66
+ }
67
+ }
68
+ exports.lazyLoad = lazyLoad;
69
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM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