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
@@ -0,0 +1,141 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getEnv = getEnv;
15
+ exports.getEnvBoolean = getEnvBoolean;
16
+ exports.getEnvNumber = getEnvNumber;
17
+ exports.getVersion = getVersion;
18
+ exports.resourceOptsDefaults = resourceOptsDefaults;
19
+ exports.lazyLoad = lazyLoad;
20
+ exports.callAsync = callAsync;
21
+ exports.getPackage = getPackage;
22
+ const resproto = require("@pulumi/pulumi/proto/resource_pb");
23
+ const mutex = require("async-mutex");
24
+ const runtime = require("@pulumi/pulumi/runtime");
25
+ function getEnv(...vars) {
26
+ for (const v of vars) {
27
+ const value = process.env[v];
28
+ if (value) {
29
+ return value;
30
+ }
31
+ }
32
+ return undefined;
33
+ }
34
+ function getEnvBoolean(...vars) {
35
+ const s = getEnv(...vars);
36
+ if (s !== undefined) {
37
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
38
+ // Terraform uses internally when parsing boolean values.
39
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
40
+ return true;
41
+ }
42
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
43
+ return false;
44
+ }
45
+ }
46
+ return undefined;
47
+ }
48
+ function getEnvNumber(...vars) {
49
+ const s = getEnv(...vars);
50
+ if (s !== undefined) {
51
+ const f = parseFloat(s);
52
+ if (!isNaN(f)) {
53
+ return f;
54
+ }
55
+ }
56
+ return undefined;
57
+ }
58
+ function getVersion() {
59
+ let version = require('./package.json').version;
60
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
61
+ // If there is a v, strip it off.
62
+ if (version.indexOf('v') === 0) {
63
+ version = version.slice(1);
64
+ }
65
+ return version;
66
+ }
67
+ /** @internal */
68
+ function resourceOptsDefaults() {
69
+ return { version: getVersion() };
70
+ }
71
+ /** @internal */
72
+ function lazyLoad(exports, props, loadModule) {
73
+ for (let property of props) {
74
+ Object.defineProperty(exports, property, {
75
+ enumerable: true,
76
+ get: function () {
77
+ return loadModule()[property];
78
+ },
79
+ });
80
+ }
81
+ }
82
+ /** @internal */
83
+ function callAsync(tok, props, res, opts) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const o = runtime.call(tok, props, res);
86
+ const value = yield o.promise(true /*withUnknowns*/);
87
+ const isKnown = yield o.isKnown;
88
+ const isSecret = yield o.isSecret;
89
+ const problem = !isKnown ? "an unknown value"
90
+ : isSecret ? "a secret value"
91
+ : undefined;
92
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
93
+ if (problem) {
94
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
95
+ "This is an error in the provider, please report this to the provider developer.");
96
+ }
97
+ // Extract a single property if requested.
98
+ if (opts && opts.property) {
99
+ return value[opts.property];
100
+ }
101
+ return value;
102
+ });
103
+ }
104
+ const _packageLock = new mutex.Mutex();
105
+ var _packageRef = undefined;
106
+ function getPackage() {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ if (_packageRef === undefined) {
109
+ if (!runtime.supportsParameterization()) {
110
+ throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
111
+ }
112
+ yield _packageLock.acquire();
113
+ if (_packageRef === undefined) {
114
+ const monitor = runtime.getMonitor();
115
+ const params = new resproto.Parameterization();
116
+ params.setName("namecheap");
117
+ params.setVersion("2.2.0");
118
+ params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), c => c.charCodeAt(0)));
119
+ const req = new resproto.RegisterPackageRequest();
120
+ req.setName("terraform-provider");
121
+ req.setVersion("0.8.0");
122
+ req.setDownloadUrl("");
123
+ req.setParameterization(params);
124
+ const resp = yield new Promise((resolve, reject) => {
125
+ monitor.registerPackage(req, (err, resp) => {
126
+ if (err) {
127
+ reject(err);
128
+ }
129
+ else {
130
+ resolve(resp);
131
+ }
132
+ });
133
+ });
134
+ _packageRef = resp.getRef();
135
+ }
136
+ _packageLock.release();
137
+ }
138
+ return _packageRef;
139
+ });
140
+ }
141
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;AAQjF,wBAQC;AAED,sCAaC;AAED,oCASC;AAED,gCAQC;AAGD,oDAEC;AAGD,4BASC;AAGD,8BAwBC;AAID,gCAiCC;AAnID,6DAA6D;AAC7D,qCAAqC;AAErC,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,SAAgB,a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AAQ,EAAE,IAAS,EAAE,EAAE;wBACrD,IAAI,GAAG,EAAE,CAAC;4BACT,MAAM,CAAC,GAAG,CAAC,CAAC;wBACb,CAAC;6BAAM,CAAC;4BACP,OAAO,CAAC,IAAI,CAAC,CAAC;wBACf,CAAC;oBACF,CAAC,CAAC,CAAC;gBACJ,CAAC,CAAC,CAAC;gBACH,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7B,CAAC;YACD,YAAY,CAAC,OAAO,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,WAAqB,CAAC;IAC9B,CAAC;CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pulumi-namecheap",
3
3
  "description": "A Pulumi provider for managing Namecheap domain records and DNS configuration, dynamically bridged from the Terraform Namecheap provider with support for A, AAAA, CNAME, MX, TXT records and email services.",
4
- "version": "2.2.5",
4
+ "version": "2.2.7",
5
5
  "homepage": "https://github.com/hckhanh/pulumi-any-terraform",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,11 +9,11 @@
9
9
  "directory": "packages/namecheap"
10
10
  },
11
11
  "private": false,
12
- "main": "./bin/index.mjs",
13
- "module": "./bin/index.mjs",
14
- "types": "./bin/index.d.mts",
12
+ "main": "./bin/index.js",
13
+ "module": "./bin/index.js",
14
+ "types": "./bin/index.d.ts",
15
15
  "exports": {
16
- ".": "./bin/index.mjs",
16
+ ".": "./bin/index.js",
17
17
  "./package.json": "./package.json"
18
18
  },
19
19
  "dependencies": {
@@ -21,9 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@pulumi/pulumi": "3.188.0",
24
- "@types/node": "22.17.1",
25
- "@typescript/native-preview": "7.0.0-dev.20250810.1",
26
- "tsdown": "0.14.0",
24
+ "@types/node": "24.2.1",
27
25
  "typescript": "5.9.2"
28
26
  },
29
27
  "peerDependencies": {
@@ -1,37 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
- var __export = (target, all) => {
15
- for (var name in all) __defProp(target, name, {
16
- get: all[name],
17
- enumerable: true
18
- });
19
- };
20
- var __copyProps = (to, from, except, desc) => {
21
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
- key = keys[i];
23
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
24
- get: ((k) => from[k]).bind(null, key),
25
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
26
- });
27
- }
28
- return to;
29
- };
30
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
31
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
32
- value: mod,
33
- enumerable: true
34
- }) : target, mod));
35
-
36
- //#endregion
37
- export { __commonJS, __esm, __export, __reExport, __toESM };
@@ -1,8 +0,0 @@
1
- import { apiKey, apiUser, clientIp, useSandbox, userName } from "./vars.mjs";
2
-
3
- //#region config/index.d.ts
4
- declare namespace index_d_exports {
5
- export { apiKey, apiUser, clientIp, useSandbox, userName };
6
- }
7
- //#endregion
8
- export { index_d_exports };
@@ -1,9 +0,0 @@
1
- import { __reExport, __toESM } from "../_virtual/rolldown_runtime.mjs";
2
- import { require_vars } from "./vars.mjs";
3
-
4
- //#region config/index.ts
5
- var config_exports = {};
6
- __reExport(config_exports, /* @__PURE__ */ __toESM(require_vars()));
7
-
8
- //#endregion
9
- export { config_exports };
@@ -1,23 +0,0 @@
1
- //#region config/vars.d.ts
2
- /**
3
- * The namecheap API key
4
- */
5
- declare const apiKey: string | undefined;
6
- /**
7
- * A registered api user for namecheap
8
- */
9
- declare const apiUser: string | undefined;
10
- /**
11
- * Client IP address
12
- */
13
- declare const clientIp: string | undefined;
14
- /**
15
- * Use sandbox API endpoints
16
- */
17
- declare const useSandbox: boolean | undefined;
18
- /**
19
- * A registered user name for namecheap
20
- */
21
- declare const userName: string | undefined;
22
- //#endregion
23
- export { apiKey, apiUser, clientIp, useSandbox, userName };
@@ -1,42 +0,0 @@
1
- import { __commonJS } from "../_virtual/rolldown_runtime.mjs";
2
- import * as pulumi from "@pulumi/pulumi";
3
-
4
- //#region config/vars.ts
5
- var require_vars = /* @__PURE__ */ __commonJS({ "config/vars.ts": ((exports) => {
6
- const __config = new pulumi.Config("namecheap");
7
- Object.defineProperty(exports, "apiKey", {
8
- get() {
9
- return __config.get("apiKey");
10
- },
11
- enumerable: true
12
- });
13
- Object.defineProperty(exports, "apiUser", {
14
- get() {
15
- return __config.get("apiUser");
16
- },
17
- enumerable: true
18
- });
19
- Object.defineProperty(exports, "clientIp", {
20
- get() {
21
- return __config.get("clientIp");
22
- },
23
- enumerable: true
24
- });
25
- Object.defineProperty(exports, "useSandbox", {
26
- get() {
27
- return __config.getObject("useSandbox");
28
- },
29
- enumerable: true
30
- });
31
- Object.defineProperty(exports, "userName", {
32
- get() {
33
- return __config.get("userName");
34
- },
35
- enumerable: true
36
- });
37
- }) });
38
-
39
- //#endregion
40
- export default require_vars();
41
-
42
- export { require_vars };
@@ -1,89 +0,0 @@
1
- import { DomainRecordsRecord } from "./types/input.mjs";
2
- import { DomainRecordsRecord as DomainRecordsRecord$1 } from "./types/output.mjs";
3
- import * as pulumi from "@pulumi/pulumi";
4
-
5
- //#region domainRecords.d.ts
6
- declare class DomainRecords extends pulumi.CustomResource {
7
- /**
8
- * Get an existing DomainRecords resource's state with the given name, ID, and optional extra
9
- * properties used to qualify the lookup.
10
- *
11
- * @param name The _unique_ name of the resulting resource.
12
- * @param id The _unique_ provider ID of the resource to lookup.
13
- * @param state Any extra arguments used during the lookup.
14
- * @param opts Optional settings to control the behavior of the CustomResource.
15
- */
16
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainRecordsState, opts?: pulumi.CustomResourceOptions): DomainRecords;
17
- /** @internal */
18
- static readonly __pulumiType: string;
19
- /**
20
- * Returns true if the given object is an instance of DomainRecords. This is designed to work even
21
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
22
- */
23
- static isInstance(obj: any): obj is DomainRecords;
24
- /**
25
- * Purchased available domain name on your account
26
- */
27
- readonly domain!: pulumi.Output<string>;
28
- readonly domainRecordsId!: pulumi.Output<string>;
29
- /**
30
- * Possible values: NONE, MXE, MX, FWD, OX, GMAIL
31
- */
32
- readonly emailType!: pulumi.Output<string | undefined>;
33
- /**
34
- * Possible values: MERGE (default), OVERWRITE
35
- */
36
- readonly mode!: pulumi.Output<string | undefined>;
37
- readonly nameservers!: pulumi.Output<string[] | undefined>;
38
- readonly records!: pulumi.Output<DomainRecordsRecord$1[] | undefined>;
39
- /**
40
- * Create a DomainRecords resource with the given unique name, arguments, and options.
41
- *
42
- * @param name The _unique_ name of the resource.
43
- * @param args The arguments to use to populate this resource's properties.
44
- * @param opts A bag of options that control this resource's behavior.
45
- */
46
- constructor(name: string, args: DomainRecordsArgs, opts?: pulumi.CustomResourceOptions);
47
- }
48
- /**
49
- * Input properties used for looking up and filtering DomainRecords resources.
50
- */
51
- interface DomainRecordsState {
52
- /**
53
- * Purchased available domain name on your account
54
- */
55
- domain?: pulumi.Input<string>;
56
- domainRecordsId?: pulumi.Input<string>;
57
- /**
58
- * Possible values: NONE, MXE, MX, FWD, OX, GMAIL
59
- */
60
- emailType?: pulumi.Input<string>;
61
- /**
62
- * Possible values: MERGE (default), OVERWRITE
63
- */
64
- mode?: pulumi.Input<string>;
65
- nameservers?: pulumi.Input<pulumi.Input<string>[]>;
66
- records?: pulumi.Input<pulumi.Input<DomainRecordsRecord>[]>;
67
- }
68
- /**
69
- * The set of arguments for constructing a DomainRecords resource.
70
- */
71
- interface DomainRecordsArgs {
72
- /**
73
- * Purchased available domain name on your account
74
- */
75
- domain: pulumi.Input<string>;
76
- domainRecordsId?: pulumi.Input<string>;
77
- /**
78
- * Possible values: NONE, MXE, MX, FWD, OX, GMAIL
79
- */
80
- emailType?: pulumi.Input<string>;
81
- /**
82
- * Possible values: MERGE (default), OVERWRITE
83
- */
84
- mode?: pulumi.Input<string>;
85
- nameservers?: pulumi.Input<pulumi.Input<string>[]>;
86
- records?: pulumi.Input<pulumi.Input<DomainRecordsRecord>[]>;
87
- }
88
- //#endregion
89
- export { DomainRecords, DomainRecordsArgs, DomainRecordsState };
@@ -1,81 +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 domainRecords.ts
6
- var domainRecords_exports = {};
7
- __export(domainRecords_exports, { DomainRecords: () => DomainRecords });
8
- var DomainRecords;
9
- var init_domainRecords = __esm({ "domainRecords.ts": (() => {
10
- init_utilities();
11
- DomainRecords = class DomainRecords extends pulumi.CustomResource {
12
- /**
13
- * Get an existing DomainRecords resource's state with the given name, ID, and optional extra
14
- * properties used to qualify the lookup.
15
- *
16
- * @param name The _unique_ name of the resulting resource.
17
- * @param id The _unique_ provider ID of the resource to lookup.
18
- * @param state Any extra arguments used during the lookup.
19
- * @param opts Optional settings to control the behavior of the CustomResource.
20
- */
21
- static get(name, id, state, opts) {
22
- return new DomainRecords(name, state, {
23
- ...opts,
24
- id
25
- });
26
- }
27
- /** @internal */
28
- static __pulumiType = "namecheap:index/domainRecords:DomainRecords";
29
- /**
30
- * Returns true if the given object is an instance of DomainRecords. This is designed to work even
31
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
- */
33
- static isInstance(obj) {
34
- if (obj === void 0 || obj === null) return false;
35
- return obj["__pulumiType"] === DomainRecords.__pulumiType;
36
- }
37
- /**
38
- * Purchased available domain name on your account
39
- */
40
- domain;
41
- domainRecordsId;
42
- /**
43
- * Possible values: NONE, MXE, MX, FWD, OX, GMAIL
44
- */
45
- emailType;
46
- /**
47
- * Possible values: MERGE (default), OVERWRITE
48
- */
49
- mode;
50
- nameservers;
51
- records;
52
- constructor(name, argsOrState, opts) {
53
- let resourceInputs = {};
54
- opts = opts || {};
55
- if (opts.id) {
56
- const state = argsOrState;
57
- resourceInputs["domain"] = state ? state.domain : void 0;
58
- resourceInputs["domainRecordsId"] = state ? state.domainRecordsId : void 0;
59
- resourceInputs["emailType"] = state ? state.emailType : void 0;
60
- resourceInputs["mode"] = state ? state.mode : void 0;
61
- resourceInputs["nameservers"] = state ? state.nameservers : void 0;
62
- resourceInputs["records"] = state ? state.records : void 0;
63
- } else {
64
- const args = argsOrState;
65
- if ((!args || args.domain === void 0) && !opts.urn) throw new Error("Missing required property 'domain'");
66
- resourceInputs["domain"] = args ? args.domain : void 0;
67
- resourceInputs["domainRecordsId"] = args ? args.domainRecordsId : void 0;
68
- resourceInputs["emailType"] = args ? args.emailType : void 0;
69
- resourceInputs["mode"] = args ? args.mode : void 0;
70
- resourceInputs["nameservers"] = args ? args.nameservers : void 0;
71
- resourceInputs["records"] = args ? args.records : void 0;
72
- }
73
- opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
74
- super(DomainRecords.__pulumiType, name, resourceInputs, opts, false, getPackage());
75
- }
76
- };
77
- }) });
78
-
79
- //#endregion
80
- init_domainRecords();
81
- export { domainRecords_exports, init_domainRecords };
package/bin/index.d.mts DELETED
@@ -1,14 +0,0 @@
1
- import { DomainRecords, DomainRecordsArgs, DomainRecordsState } from "./domainRecords.mjs";
2
- import { Provider, ProviderArgs } from "./provider.mjs";
3
- import { index_d_exports } from "./config/index.mjs";
4
- import { index_d_exports as index_d_exports$1 } from "./types/index.mjs";
5
-
6
- //#region index.d.ts
7
- type DomainRecords$1 = DomainRecords;
8
- declare const DomainRecords$1: typeof DomainRecords;
9
- type Provider$1 = Provider;
10
- declare const Provider$1: typeof Provider;
11
- // Export sub-modules:
12
-
13
- //#endregion
14
- export { DomainRecords$1 as DomainRecords, type DomainRecordsArgs, type DomainRecordsState, Provider$1 as Provider, type ProviderArgs, index_d_exports as config, index_d_exports$1 as types };
package/bin/index.mjs DELETED
@@ -1,33 +0,0 @@
1
- import { getVersion, init_utilities, lazyLoad } from "./utilities.mjs";
2
- import { config_exports } from "./config/index.mjs";
3
- import { types_exports } from "./types/index.mjs";
4
- import { domainRecords_exports, init_domainRecords } from "./domainRecords.mjs";
5
- import { init_provider, provider_exports } from "./provider.mjs";
6
- import * as pulumi from "@pulumi/pulumi";
7
-
8
- //#region index.ts
9
- init_utilities();
10
- const DomainRecords = null;
11
- lazyLoad(exports, ["DomainRecords"], () => init_domainRecords());
12
- const Provider = null;
13
- lazyLoad(exports, ["Provider"], () => init_provider());
14
- const _module = {
15
- version: getVersion(),
16
- construct: (name, type, urn) => {
17
- switch (type) {
18
- case "namecheap:index/domainRecords:DomainRecords": return new DomainRecords(name, void 0, { urn });
19
- default: throw new Error(`unknown resource type ${type}`);
20
- }
21
- }
22
- };
23
- pulumi.runtime.registerResourceModule("namecheap", "index/domainRecords", _module);
24
- pulumi.runtime.registerResourcePackage("namecheap", {
25
- version: getVersion(),
26
- constructProvider: (name, type, urn) => {
27
- if (type !== "pulumi:providers:namecheap") throw new Error(`unknown provider type ${type}`);
28
- return new Provider(name, void 0, { urn });
29
- }
30
- });
31
-
32
- //#endregion
33
- export { DomainRecords, Provider, config_exports as config, types_exports as types };
package/bin/package.mjs DELETED
@@ -1,63 +0,0 @@
1
- import { __commonJS } from "./_virtual/rolldown_runtime.mjs";
2
-
3
- //#region package.json
4
- var require_package = /* @__PURE__ */ __commonJS({ "package.json": ((exports, module) => {
5
- module.exports = {
6
- "name": "pulumi-namecheap",
7
- "description": "A Pulumi provider for managing Namecheap domain records and DNS configuration, dynamically bridged from the Terraform Namecheap provider with support for A, AAAA, CNAME, MX, TXT records and email services.",
8
- "version": "2.2.5",
9
- "homepage": "https://github.com/hckhanh/pulumi-any-terraform",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/hckhanh/pulumi-any-terraform.git",
13
- "directory": "packages/namecheap"
14
- },
15
- "private": false,
16
- "main": "./bin/index.mjs",
17
- "module": "./bin/index.mjs",
18
- "types": "./bin/index.d.mts",
19
- "exports": {
20
- ".": "./bin/index.mjs",
21
- "./package.json": "./package.json"
22
- },
23
- "dependencies": { "async-mutex": "0.5.0" },
24
- "devDependencies": {
25
- "@pulumi/pulumi": "3.188.0",
26
- "@types/node": "22.17.1",
27
- "@typescript/native-preview": "7.0.0-dev.20250810.1",
28
- "tsdown": "0.14.0",
29
- "typescript": "5.9.2"
30
- },
31
- "peerDependencies": { "@pulumi/pulumi": ">=3.188.0" },
32
- "files": ["bin", "README.md"],
33
- "keywords": [
34
- "pulumi",
35
- "namecheap",
36
- "dns",
37
- "domain",
38
- "records",
39
- "terraform",
40
- "provider",
41
- "infrastructure",
42
- "domain-management",
43
- "dns-records",
44
- "email-service"
45
- ],
46
- "license": "MIT",
47
- "pulumi": {
48
- "resource": true,
49
- "name": "terraform-provider",
50
- "version": "0.8.0",
51
- "parameterization": {
52
- "name": "namecheap",
53
- "version": "2.2.0",
54
- "value": "eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="
55
- }
56
- }
57
- };
58
- }) });
59
-
60
- //#endregion
61
- export default require_package();
62
-
63
- export { require_package };
@@ -1,70 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
-
3
- //#region provider.d.ts
4
-
5
- /**
6
- * The provider type for the namecheap package. By default, resources use package-wide configuration
7
- * settings, however an explicit `Provider` instance may be created and passed during resource
8
- * construction to achieve fine-grained programmatic control over provider settings. See the
9
- * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
10
- */
11
- declare class Provider extends pulumi.ProviderResource {
12
- /** @internal */
13
- static readonly __pulumiType: string;
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: any): obj is Provider;
19
- /**
20
- * The namecheap API key
21
- */
22
- readonly apiKey!: pulumi.Output<string>;
23
- /**
24
- * A registered api user for namecheap
25
- */
26
- readonly apiUser!: pulumi.Output<string>;
27
- /**
28
- * Client IP address
29
- */
30
- readonly clientIp!: pulumi.Output<string | undefined>;
31
- /**
32
- * A registered user name for namecheap
33
- */
34
- readonly userName!: pulumi.Output<string>;
35
- /**
36
- * Create a Provider resource with the given unique name, arguments, and options.
37
- *
38
- * @param name The _unique_ name of the resource.
39
- * @param args The arguments to use to populate this resource's properties.
40
- * @param opts A bag of options that control this resource's behavior.
41
- */
42
- constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
43
- }
44
- /**
45
- * The set of arguments for constructing a Provider resource.
46
- */
47
- interface ProviderArgs {
48
- /**
49
- * The namecheap API key
50
- */
51
- apiKey: pulumi.Input<string>;
52
- /**
53
- * A registered api user for namecheap
54
- */
55
- apiUser: pulumi.Input<string>;
56
- /**
57
- * Client IP address
58
- */
59
- clientIp?: pulumi.Input<string>;
60
- /**
61
- * Use sandbox API endpoints
62
- */
63
- useSandbox?: pulumi.Input<boolean>;
64
- /**
65
- * A registered user name for namecheap
66
- */
67
- userName: pulumi.Input<string>;
68
- }
69
- //#endregion
70
- export { Provider, ProviderArgs };