@space-runners/ablo-ts-sdk
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -8,2 +8,3 @@ import { IAbloOptions } from './interfaces/ablo-options.interface'; | ||
import { BackgroundRemoverService } from './services/background-removal'; | ||
import { StyleService } from './services/style'; | ||
export declare class Ablo { | ||
@@ -17,3 +18,4 @@ private axios; | ||
readonly removeBackground: BackgroundRemoverService; | ||
readonly style: StyleService; | ||
constructor(apiKey: string, options?: IAbloOptions); | ||
} |
@@ -11,2 +11,3 @@ "use strict"; | ||
const background_removal_1 = require("./services/background-removal"); | ||
const style_1 = require("./services/style"); | ||
class Ablo { | ||
@@ -27,4 +28,5 @@ constructor(apiKey, options = {}) { | ||
this.removeBackground = new background_removal_1.BackgroundRemoverService(this.axios); | ||
this.style = new style_1.StyleService(this.axios); | ||
} | ||
} | ||
exports.Ablo = Ablo; |
@@ -14,3 +14,3 @@ import { AxiosInstance } from 'axios'; | ||
*/ | ||
createCustomStyle: (params: ICreateCustomStyleRequest) => Promise<any>; | ||
createCustom: (params: ICreateCustomStyleRequest) => Promise<any>; | ||
/** | ||
@@ -20,3 +20,3 @@ * Retrieves all custom styles. | ||
*/ | ||
getCustomStyles: () => Promise<IStyle[]>; | ||
getCustom: () => Promise<IStyle[]>; | ||
/** | ||
@@ -23,0 +23,0 @@ * Retrieves all styles based on the provided template ID and pinned status. |
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
this.createCustomStyle = (params) => __awaiter(this, void 0, void 0, function* () { | ||
this.createCustom = (params) => __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield this.axios.post(`/${StyleService.ENTITY}`, params, { | ||
@@ -34,3 +34,3 @@ headers: { | ||
*/ | ||
this.getCustomStyles = () => __awaiter(this, void 0, void 0, function* () { | ||
this.getCustom = () => __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield this.axios.get(`/${StyleService.ENTITY}/${StyleService.CUSTOM}`); | ||
@@ -37,0 +37,0 @@ return data; |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A TypeScript SDK for Ablo Services", | ||
@@ -9,0 +9,0 @@ "main": "lib/index.js", |
33147
684