diff --git a/.gitignore b/.gitignore
index 629f3fa..7e97ea1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ ts/**/*.js
ts/**/*.js.map
.idea/
node_modules/
+nogit/
diff --git a/dist/cflare.classes.cflareaccount.d.ts b/dist/cflare.classes.cflareaccount.d.ts
new file mode 100644
index 0000000..3bb950e
--- /dev/null
+++ b/dist/cflare.classes.cflareaccount.d.ts
@@ -0,0 +1,15 @@
+export declare class CflareAccount {
+ private authEmail;
+ private authKey;
+ private authCheck();
+ constructor();
+ auth(optionsArg: {
+ email: string;
+ key: string;
+ }): void;
+ createRecord(): any;
+ removeRecord(): any;
+ listRecords(domainName: string): any;
+ listDomains(): any;
+ request(methodArg: string, routeArg: string): any;
+}
diff --git a/dist/cflare.classes.cflareaccount.js b/dist/cflare.classes.cflareaccount.js
new file mode 100644
index 0000000..7ad36ad
--- /dev/null
+++ b/dist/cflare.classes.cflareaccount.js
@@ -0,0 +1,67 @@
+"use strict";
+///
+var plugins = require("./cflare.plugins");
+var CflareAccount = (function () {
+ function CflareAccount() {
+ }
+ CflareAccount.prototype.authCheck = function () {
+ return (this.authEmail && this.authKey); //check if auth is available
+ };
+ ;
+ CflareAccount.prototype.auth = function (optionsArg) {
+ this.authEmail = optionsArg.email;
+ this.authKey = optionsArg.key;
+ };
+ CflareAccount.prototype.createRecord = function () {
+ var done = plugins.q.defer();
+ return done.promise;
+ };
+ ;
+ CflareAccount.prototype.removeRecord = function () {
+ var done = plugins.q.defer();
+ return done.promise;
+ };
+ ;
+ CflareAccount.prototype.listRecords = function (domainName) {
+ var done = plugins.q.defer();
+ return done.promise;
+ };
+ CflareAccount.prototype.listDomains = function () {
+ var done = plugins.q.defer();
+ this.request("GET", "/zones")
+ .then(function (responseArg) {
+ });
+ return done.promise;
+ };
+ ;
+ CflareAccount.prototype.request = function (methodArg, routeArg) {
+ var done = plugins.q.defer();
+ var options = {
+ method: methodArg,
+ url: "https://api.cloudflare.com/client/v4" + routeArg,
+ headers: {
+ "Content-Type": "application/json",
+ "X-Auth-Email": this.authEmail,
+ "X-Auth-Key": this.authKey
+ }
+ };
+ plugins.request(options, function (err, res, body) {
+ if (!err && res.statusCode == 200) {
+ var responseObj = JSON.parse(body);
+ done.resolve(responseObj);
+ }
+ else {
+ console.log(err);
+ console.log(res);
+ done.reject(err);
+ }
+ ;
+ });
+ return done.promise;
+ };
+ return CflareAccount;
+}());
+exports.CflareAccount = CflareAccount;
+;
+
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5jbGFzc2VzLmNmbGFyZWFjY291bnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUE0QztBQUM1QyxJQUFPLE9BQU8sV0FBVyxrQkFBa0IsQ0FBQyxDQUFDO0FBRzdDO0lBTUk7SUFFQSxDQUFDO0lBTE8saUNBQVMsR0FBakI7UUFDSSxNQUFNLENBQUMsQ0FBQyxJQUFJLENBQUMsU0FBUyxJQUFJLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLDRCQUE0QjtJQUN6RSxDQUFDOztJQUlELDRCQUFJLEdBQUosVUFBSyxVQUFvQztRQUNyQyxJQUFJLENBQUMsU0FBUyxHQUFHLFVBQVUsQ0FBQyxLQUFLLENBQUM7UUFDbEMsSUFBSSxDQUFDLE9BQU8sR0FBRyxVQUFVLENBQUMsR0FBRyxDQUFDO0lBQ2xDLENBQUM7SUFDRCxvQ0FBWSxHQUFaO1FBQ0ksSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUM3QixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN4QixDQUFDOztJQUNELG9DQUFZLEdBQVo7UUFDSSxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO1FBQ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cm4gZG9uZS5wcm9taXNlO1xyXG4gICAgfTtcclxuICAgIHJlcXVlc3QobWV0aG9kQXJnOnN0cmluZyxyb3V0ZUFyZzpzdHJpbmcpe1xyXG4gICAgICAgIGxldCBkb25lID0gcGx1Z2lucy5xLmRlZmVyKCk7XHJcbiAgICAgICAgbGV0IG9wdGlvbnMgPSB7XHJcbiAgICAgICAgICAgIG1ldGhvZDptZXRob2RBcmcsXHJcbiAgICAgICAgICAgIHVybDpcImh0dHBzOi8vYXBpLmNsb3VkZmxhcmUuY29tL2NsaWVudC92NFwiICsgcm91dGVBcmcsXHJcbiAgICAgICAgICAgIGhlYWRlcnM6e1xyXG4gICAgICAgICAgICAgICAgXCJDb250ZW50LVR5cGVcIjpcImFwcGxpY2F0aW9uL2pzb25cIixcclxuICAgICAgICAgICAgICAgIFwiWC1BdXRoLUVtYWlsXCI6dGhpcy5hdXRoRW1haWwsXHJcbiAgICAgICAgICAgICAgICBcIlgtQXV0aC1LZXlcIjp0aGlzLmF1dGhLZXlcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgICAgICBwbHVnaW5zLnJlcXVlc3Qob3B0aW9ucyxmdW5jdGlvbihlcnIsIHJlcywgYm9keSl7XHJcbiAgICAgICAgICAgIGlmICghZXJyICYmIHJlcy5zdGF0dXNDb2RlID09IDIwMCkge1xyXG4gICAgICAgICAgICAgICAgdmFyIHJlc3BvbnNlT2JqID0gSlNPTi5wYXJzZShib2R5KTtcclxuICAgICAgICAgICAgICAgIGRvbmUucmVzb2x2ZShyZXNwb25zZU9iaik7XHJcbiAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xyXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcclxuICAgICAgICAgICAgICAgIGRvbmUucmVqZWN0KGVycik7XHJcbiAgICAgICAgICAgIH07XHJcbiAgICAgICAgfSk7XHJcbiAgICAgICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcclxuICAgIH1cclxufTsiXX0=
diff --git a/dist/cflare.classes.helpers.d.ts b/dist/cflare.classes.helpers.d.ts
new file mode 100644
index 0000000..e69de29
diff --git a/dist/cflare.classes.helpers.js b/dist/cflare.classes.helpers.js
index a627a2d..53fb469 100644
--- a/dist/cflare.classes.helpers.js
+++ b/dist/cflare.classes.helpers.js
@@ -1,3 +1,3 @@
"use strict";
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZmxhcmUuY2xhc3Nlcy5oZWxwZXJzLmpzIiwic291cmNlc0NvbnRlbnQiOltdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZmxhcmUuY2xhc3Nlcy5oZWxwZXJzLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
diff --git a/dist/cflare.classes.js b/dist/cflare.classes.js
deleted file mode 100644
index 1131431..0000000
--- a/dist/cflare.classes.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-var cflare = (function () {
- function cflare() {
- }
- ;
- return cflare;
-}());
-;
-
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5jbGFzc2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFJQTtJQUdJO0lBRUEsQ0FBQzs7SUFFTCxhQUFDO0FBQUQsQ0FQQSxBQU9DLElBQUE7QUFBQSxDQUFDIiwiZmlsZSI6ImNmbGFyZS5jbGFzc2VzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuaW1wb3J0IHBsdWdpbnMgPSByZXF1aXJlKFwiLi9jZmxhcmUucGx1Z2luc1wiKTtcbmltcG9ydCBoZWxwZXJzID0gcmVxdWlyZShcIi4vY2ZsYXJlLmNsYXNzZXMuaGVscGVyc1wiKTtcblxuY2xhc3MgY2ZsYXJlIHtcbiAgICBwcml2YXRlIGF1dGhFbWFpbDpzdHJpbmc7XG4gICAgcHJpdmF0ZSBhdXRoS2V5OnN0cmluZztcbiAgICBjb25zdHJ1Y3Rvcigpe1xuICAgICAgICBcbiAgICB9O1xuICAgIFxufTsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/dist/cflare.plugins.d.ts b/dist/cflare.plugins.d.ts
new file mode 100644
index 0000000..ccda423
--- /dev/null
+++ b/dist/cflare.plugins.d.ts
@@ -0,0 +1,3 @@
+export declare let beautylog: any;
+export declare let q: any;
+export declare let request: any;
diff --git a/dist/cflare.plugins.js b/dist/cflare.plugins.js
index 3beae87..4077c00 100644
--- a/dist/cflare.plugins.js
+++ b/dist/cflare.plugins.js
@@ -1,6 +1,7 @@
"use strict";
///
exports.beautylog = require("beautylog");
+exports.q = require("q");
exports.request = require("request");
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQyIsImZpbGUiOiJjZmxhcmUucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCIuL3R5cGluZ3MvbWFpbi5kLnRzXCIgLz5cbmV4cG9ydCBsZXQgYmVhdXR5bG9nID0gcmVxdWlyZShcImJlYXV0eWxvZ1wiKTtcbmV4cG9ydCBsZXQgcmVxdWVzdCA9IHJlcXVpcmUoXCJyZXF1ZXN0XCIpOyJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNmbGFyZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsU0FBQyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNqQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDIiwiZmlsZSI6ImNmbGFyZS5wbHVnaW5zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxyXG5leHBvcnQgbGV0IGJlYXV0eWxvZyA9IHJlcXVpcmUoXCJiZWF1dHlsb2dcIik7XHJcbmV4cG9ydCBsZXQgcSA9IHJlcXVpcmUoXCJxXCIpO1xyXG5leHBvcnQgbGV0IHJlcXVlc3QgPSByZXF1aXJlKFwicmVxdWVzdFwiKTsiXX0=
diff --git a/dist/index.d.ts b/dist/index.d.ts
new file mode 100644
index 0000000..426510e
--- /dev/null
+++ b/dist/index.d.ts
@@ -0,0 +1 @@
+export { CflareAccount } from "./cflare.classes.cflareaccount";
diff --git a/dist/index.js b/dist/index.js
index 348fb0e..86126a2 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,3 +1,6 @@
"use strict";
+///
+var cflare_classes_cflareaccount_1 = require("./cflare.classes.cflareaccount");
+exports.CflareAccount = cflare_classes_cflareaccount_1.CflareAccount;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDNUMsNkNBQTRCLGdDQUFnQyxDQUFDO0FBQXJELHFFQUFxRCIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCIuL3R5cGluZ3MvbWFpbi5kLnRzXCIgLz5cclxuZXhwb3J0IHtDZmxhcmVBY2NvdW50fSBmcm9tIFwiLi9jZmxhcmUuY2xhc3Nlcy5jZmxhcmVhY2NvdW50XCI7Il19
diff --git a/package.json b/package.json
index 820e30c..abf13cb 100644
--- a/package.json
+++ b/package.json
@@ -21,11 +21,11 @@
},
"homepage": "https://github.com/pushrocks/cflare#readme",
"dependencies": {
- "beautylog": "^4.1.2",
+ "beautylog": "^5.0.0",
"q": "^1.4.1",
"request": "^2.72.0"
},
"devDependencies": {
- "npmts": "^5.0.4"
+ "npmts": "^5.1.5"
}
}
diff --git a/test/test.d.ts b/test/test.d.ts
new file mode 100644
index 0000000..e69de29
diff --git a/test/test.js b/test/test.js
new file mode 100644
index 0000000..709f334
--- /dev/null
+++ b/test/test.js
@@ -0,0 +1,11 @@
+"use strict";
+///
+var cflare = require("../dist/index");
+var nogit = require("../nogit/nogit.json");
+var testCflareAccount = new cflare.CflareAccount();
+testCflareAccount.auth({
+ email: nogit.cfemail,
+ key: nogit.cfkey
+});
+
+//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGdEQUFnRDtBQUNoRCxJQUFPLE1BQU0sV0FBVyxlQUFlLENBQUMsQ0FBQztBQUN6QyxJQUFJLEtBQUssR0FBRyxPQUFPLENBQUMscUJBQXFCLENBQUMsQ0FBQztBQUUzQyxJQUFJLGlCQUFpQixHQUFHLElBQUksTUFBTSxDQUFDLGFBQWEsRUFBRSxDQUFDO0FBQ25ELGlCQUFpQixDQUFDLElBQUksQ0FBQztJQUNuQixLQUFLLEVBQUUsS0FBSyxDQUFDLE9BQU87SUFDcEIsR0FBRyxFQUFFLEtBQUssQ0FBQyxLQUFLO0NBQ25CLENBQUMsQ0FBQyIsImZpbGUiOiJ0ZXN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4uL3RzL3R5cGluZ3MvbWFpbi5kLnRzXCIgLz5cclxuaW1wb3J0IGNmbGFyZSA9IHJlcXVpcmUoXCIuLi9kaXN0L2luZGV4XCIpO1xyXG5sZXQgbm9naXQgPSByZXF1aXJlKFwiLi4vbm9naXQvbm9naXQuanNvblwiKTtcclxuXHJcbmxldCB0ZXN0Q2ZsYXJlQWNjb3VudCA9IG5ldyBjZmxhcmUuQ2ZsYXJlQWNjb3VudCgpO1xyXG50ZXN0Q2ZsYXJlQWNjb3VudC5hdXRoKHtcclxuICAgIGVtYWlsOiBub2dpdC5jZmVtYWlsLFxyXG4gICAga2V5OiBub2dpdC5jZmtleVxyXG59KTtcclxuXHJcbiJdfQ==
diff --git a/test/test.ts b/test/test.ts
new file mode 100644
index 0000000..3debc2f
--- /dev/null
+++ b/test/test.ts
@@ -0,0 +1,10 @@
+///
+import cflare = require("../dist/index");
+let nogit = require("../nogit/nogit.json");
+
+let testCflareAccount = new cflare.CflareAccount();
+testCflareAccount.auth({
+ email: nogit.cfemail,
+ key: nogit.cfkey
+});
+
diff --git a/ts/cflare.classes.ts b/ts/cflare.classes.cflareaccount.ts
similarity index 98%
rename from ts/cflare.classes.ts
rename to ts/cflare.classes.cflareaccount.ts
index f06f809..d992042 100644
--- a/ts/cflare.classes.ts
+++ b/ts/cflare.classes.cflareaccount.ts
@@ -2,7 +2,7 @@
import plugins = require("./cflare.plugins");
import helpers = require("./cflare.classes.helpers");
-class cflare {
+export class CflareAccount {
private authEmail:string;
private authKey:string;
private authCheck(){
diff --git a/ts/index.ts b/ts/index.ts
index b53edbe..ce09afb 100644
--- a/ts/index.ts
+++ b/ts/index.ts
@@ -1,2 +1,2 @@
///
-import plugins = require("./cflare.plugins");
\ No newline at end of file
+export {CflareAccount} from "./cflare.classes.cflareaccount";
\ No newline at end of file