Comparing version 1.0.3 to 1.0.4
@@ -1,2 +0,2 @@ | ||
declare class User { | ||
export declare class User { | ||
id: string; | ||
@@ -9,3 +9,3 @@ name: string; | ||
} | ||
declare class Link { | ||
export declare class Link { | ||
id: string; | ||
@@ -18,3 +18,3 @@ name: string; | ||
} | ||
declare class Folder { | ||
export declare class Folder { | ||
id: string; | ||
@@ -28,2 +28,17 @@ name: string; | ||
} | ||
export declare class Bookmark { | ||
id: string; | ||
name: string; | ||
folder: string; | ||
date: string; | ||
url: string; | ||
constructor(id: string, name: string, folder: string, date: string, url: string); | ||
} | ||
export declare class BookmarkFolder { | ||
id: string; | ||
name: string; | ||
folder: string; | ||
date: string; | ||
constructor(id: string, name: string, folder: string, date: string); | ||
} | ||
declare class APIResult { | ||
@@ -30,0 +45,0 @@ result: boolean; |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Lindle = void 0; | ||
exports.Lindle = exports.BookmarkFolder = exports.Bookmark = exports.Folder = exports.Link = exports.User = void 0; | ||
const axios_1 = require("axios"); | ||
@@ -26,2 +26,3 @@ const instance = axios_1.default.create(); | ||
} | ||
exports.User = User; | ||
class Link { | ||
@@ -36,2 +37,3 @@ constructor(id, name, url, folder, favourite) { | ||
} | ||
exports.Link = Link; | ||
class Folder { | ||
@@ -47,2 +49,3 @@ constructor(id, name, publicFolder, journeyLink, sharedEmails, links = []) { | ||
} | ||
exports.Folder = Folder; | ||
class Bookmark { | ||
@@ -57,2 +60,3 @@ constructor(id, name, folder, date, url) { | ||
} | ||
exports.Bookmark = Bookmark; | ||
class BookmarkFolder { | ||
@@ -66,2 +70,3 @@ constructor(id, name, folder, date) { | ||
} | ||
exports.BookmarkFolder = BookmarkFolder; | ||
class APIResult { | ||
@@ -168,3 +173,3 @@ constructor(result, message) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield instance.post(`${BASE_URL}/api/links/${id}`, { name, url, folder: folderId, favourite }, { headers: this.headers }); | ||
const res = yield instance.patch(`${BASE_URL}/api/links/${id}`, { name, url, folder: folderId, favourite }, { headers: this.headers }); | ||
const data = res.data; | ||
@@ -171,0 +176,0 @@ return new APIResult(data.result, data.message); |
{ | ||
"name": "lindle", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "The Nodes JS API for Lindle. Lindle is your ultimate solution for managing and organizing your web links with ease. This versatile Chrome extension empowers you to save, categorize, and access your online resources like never before", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
21173
305