pulumi-namecheap 2.2.5 → 2.2.7

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 (48) hide show
  1. package/bin/config/index.d.ts +1 -0
  2. package/bin/config/index.js +21 -0
  3. package/bin/config/index.js.map +1 -0
  4. package/bin/config/vars.d.ts +20 -0
  5. package/bin/config/vars.js +37 -0
  6. package/bin/config/vars.js.map +1 -0
  7. package/bin/domainRecords.d.ts +83 -0
  8. package/bin/domainRecords.js +62 -0
  9. package/bin/domainRecords.js.map +1 -0
  10. package/bin/index.d.ts +9 -0
  11. package/bin/index.js +38 -0
  12. package/bin/index.js.map +1 -0
  13. package/bin/package.json +6 -8
  14. package/bin/provider.d.ts +63 -0
  15. package/bin/provider.js +58 -0
  16. package/bin/provider.js.map +1 -0
  17. package/bin/types/index.d.ts +3 -0
  18. package/bin/types/index.js +11 -0
  19. package/bin/types/index.js.map +1 -0
  20. package/bin/types/input.d.ts +23 -0
  21. package/bin/types/input.js +5 -0
  22. package/bin/types/input.js.map +1 -0
  23. package/bin/types/output.d.ts +22 -0
  24. package/bin/types/output.js +5 -0
  25. package/bin/types/output.js.map +1 -0
  26. package/bin/utilities.d.ts +5 -0
  27. package/bin/utilities.js +141 -0
  28. package/bin/utilities.js.map +1 -0
  29. package/package.json +6 -8
  30. package/bin/_virtual/rolldown_runtime.mjs +0 -37
  31. package/bin/config/index.d.mts +0 -8
  32. package/bin/config/index.mjs +0 -9
  33. package/bin/config/vars.d.mts +0 -23
  34. package/bin/config/vars.mjs +0 -42
  35. package/bin/domainRecords.d.mts +0 -89
  36. package/bin/domainRecords.mjs +0 -81
  37. package/bin/index.d.mts +0 -14
  38. package/bin/index.mjs +0 -33
  39. package/bin/package.mjs +0 -63
  40. package/bin/provider.d.mts +0 -70
  41. package/bin/provider.mjs +0 -64
  42. package/bin/types/index.d.mts +0 -9
  43. package/bin/types/index.mjs +0 -13
  44. package/bin/types/input.d.mts +0 -30
  45. package/bin/types/input.mjs +0 -5
  46. package/bin/types/output.d.mts +0 -27
  47. package/bin/types/output.mjs +0 -5
  48. package/bin/utilities.mjs +0 -61
package/bin/provider.mjs DELETED
@@ -1,64 +0,0 @@
1
- import { __esm, __export } from "./_virtual/rolldown_runtime.mjs";
2
- import { getPackage, init_utilities, resourceOptsDefaults } from "./utilities.mjs";
3
- import * as pulumi from "@pulumi/pulumi";
4
-
5
- //#region provider.ts
6
- var provider_exports = {};
7
- __export(provider_exports, { Provider: () => Provider });
8
- var Provider;
9
- var init_provider = __esm({ "provider.ts": (() => {
10
- init_utilities();
11
- Provider = class Provider extends pulumi.ProviderResource {
12
- /** @internal */
13
- static __pulumiType = "namecheap";
14
- /**
15
- * Returns true if the given object is an instance of Provider. This is designed to work even
16
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
- */
18
- static isInstance(obj) {
19
- if (obj === void 0 || obj === null) return false;
20
- return obj["__pulumiType"] === "pulumi:providers:" + Provider.__pulumiType;
21
- }
22
- /**
23
- * The namecheap API key
24
- */
25
- apiKey;
26
- /**
27
- * A registered api user for namecheap
28
- */
29
- apiUser;
30
- /**
31
- * Client IP address
32
- */
33
- clientIp;
34
- /**
35
- * A registered user name for namecheap
36
- */
37
- userName;
38
- /**
39
- * Create a Provider resource with the given unique name, arguments, and options.
40
- *
41
- * @param name The _unique_ name of the resource.
42
- * @param args The arguments to use to populate this resource's properties.
43
- * @param opts A bag of options that control this resource's behavior.
44
- */
45
- constructor(name, args, opts) {
46
- let resourceInputs = {};
47
- opts = opts || {};
48
- if ((!args || args.apiKey === void 0) && !opts.urn) throw new Error("Missing required property 'apiKey'");
49
- if ((!args || args.apiUser === void 0) && !opts.urn) throw new Error("Missing required property 'apiUser'");
50
- if ((!args || args.userName === void 0) && !opts.urn) throw new Error("Missing required property 'userName'");
51
- resourceInputs["apiKey"] = args ? args.apiKey : void 0;
52
- resourceInputs["apiUser"] = args ? args.apiUser : void 0;
53
- resourceInputs["clientIp"] = args ? args.clientIp : void 0;
54
- resourceInputs["useSandbox"] = pulumi.output(args ? args.useSandbox : void 0).apply(JSON.stringify);
55
- resourceInputs["userName"] = args ? args.userName : void 0;
56
- opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
57
- super(Provider.__pulumiType, name, resourceInputs, opts, false, getPackage());
58
- }
59
- };
60
- }) });
61
-
62
- //#endregion
63
- init_provider();
64
- export { init_provider, provider_exports };
@@ -1,9 +0,0 @@
1
- import { input_d_exports } from "./input.mjs";
2
- import { output_d_exports } from "./output.mjs";
3
-
4
- //#region types/index.d.ts
5
- declare namespace index_d_exports {
6
- export { input_d_exports as input, output_d_exports as output };
7
- }
8
- //#endregion
9
- export { index_d_exports };
@@ -1,13 +0,0 @@
1
- import { __export } from "../_virtual/rolldown_runtime.mjs";
2
- import { input_exports } from "./input.mjs";
3
- import { output_exports } from "./output.mjs";
4
-
5
- //#region types/index.ts
6
- var types_exports = {};
7
- __export(types_exports, {
8
- input: () => input_exports,
9
- output: () => output_exports
10
- });
11
-
12
- //#endregion
13
- export { types_exports };
@@ -1,30 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
-
3
- //#region types/input.d.ts
4
- declare namespace input_d_exports {
5
- export { DomainRecordsRecord };
6
- }
7
- interface DomainRecordsRecord {
8
- /**
9
- * Possible values are URL or IP address. The value for this parameter is based on record type
10
- */
11
- address: pulumi.Input<string>;
12
- /**
13
- * Sub-domain/hostname to create the record for
14
- */
15
- hostname: pulumi.Input<string>;
16
- /**
17
- * MX preference for host. Applicable for MX records only
18
- */
19
- mxPref?: pulumi.Input<number>;
20
- /**
21
- * Time to live for all record types. Possible values: any value between 60 to 60000
22
- */
23
- ttl?: pulumi.Input<number>;
24
- /**
25
- * Possible values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME
26
- */
27
- type: pulumi.Input<string>;
28
- }
29
- //#endregion
30
- export { DomainRecordsRecord, input_d_exports };
@@ -1,5 +0,0 @@
1
- //#region types/input.ts
2
- var input_exports = {};
3
-
4
- //#endregion
5
- export { input_exports };
@@ -1,27 +0,0 @@
1
- declare namespace output_d_exports {
2
- export { DomainRecordsRecord };
3
- }
4
- interface DomainRecordsRecord {
5
- /**
6
- * Possible values are URL or IP address. The value for this parameter is based on record type
7
- */
8
- address: string;
9
- /**
10
- * Sub-domain/hostname to create the record for
11
- */
12
- hostname: string;
13
- /**
14
- * MX preference for host. Applicable for MX records only
15
- */
16
- mxPref?: number;
17
- /**
18
- * Time to live for all record types. Possible values: any value between 60 to 60000
19
- */
20
- ttl?: number;
21
- /**
22
- * Possible values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME
23
- */
24
- type: string;
25
- }
26
- //#endregion
27
- export { DomainRecordsRecord, output_d_exports };
@@ -1,5 +0,0 @@
1
- //#region types/output.ts
2
- var output_exports = {};
3
-
4
- //#endregion
5
- export { output_exports };
package/bin/utilities.mjs DELETED
@@ -1,61 +0,0 @@
1
- import { __esm } from "./_virtual/rolldown_runtime.mjs";
2
- import { require_package } from "./package.mjs";
3
- import * as resproto from "@pulumi/pulumi/proto/resource_pb";
4
- import * as mutex from "async-mutex";
5
- import * as runtime from "@pulumi/pulumi/runtime";
6
-
7
- //#region utilities.ts
8
- function getVersion() {
9
- let version = require_package().version;
10
- if (version.indexOf("v") === 0) version = version.slice(1);
11
- return version;
12
- }
13
- /** @internal */
14
- function resourceOptsDefaults() {
15
- return { version: getVersion() };
16
- }
17
- /** @internal */
18
- function lazyLoad(exports, props, loadModule) {
19
- for (let property of props) Object.defineProperty(exports, property, {
20
- enumerable: true,
21
- get: function() {
22
- return loadModule()[property];
23
- }
24
- });
25
- }
26
- async function getPackage() {
27
- if (_packageRef === void 0) {
28
- if (!runtime.supportsParameterization()) throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
29
- await _packageLock.acquire();
30
- if (_packageRef === void 0) {
31
- const monitor = runtime.getMonitor();
32
- const params = new resproto.Parameterization();
33
- params.setName("namecheap");
34
- params.setVersion("2.2.0");
35
- params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), (c) => c.charCodeAt(0)));
36
- const req = new resproto.RegisterPackageRequest();
37
- req.setName("terraform-provider");
38
- req.setVersion("0.8.0");
39
- req.setDownloadUrl("");
40
- req.setParameterization(params);
41
- const resp = await new Promise((resolve, reject) => {
42
- monitor.registerPackage(req, (err, resp$1) => {
43
- if (err) reject(err);
44
- else resolve(resp$1);
45
- });
46
- });
47
- _packageRef = resp.getRef();
48
- }
49
- _packageLock.release();
50
- }
51
- return _packageRef;
52
- }
53
- var _packageLock, _packageRef;
54
- var init_utilities = __esm({ "utilities.ts": (() => {
55
- _packageLock = new mutex.Mutex();
56
- _packageRef = void 0;
57
- }) });
58
-
59
- //#endregion
60
- init_utilities();
61
- export { getPackage, getVersion, init_utilities, lazyLoad, resourceOptsDefaults };