Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@figuredev/business-config-sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/business-config-sdk - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

import { UserContext } from "./utils";
import { PhysicalPrinterDTO, PrinterDTO } from "./printers";
import { PhysicalPrinterDTO, PrinterDTO, PrinterType } from "./printers";
import { AssignmentDTO } from "./assignments";

@@ -24,2 +24,5 @@ import { SettingDTO } from "./settings";

};
export declare type GetPrintersQueryParams = {
printerType?: PrinterType;
};
export declare class BusinessConfigClient {

@@ -32,3 +35,3 @@ private config;

getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>;
getPrinters(ctx: UserContext): Promise<PrinterDTO[]>;
getPrinters(ctx: UserContext, params?: GetPrintersQueryParams): Promise<PrinterDTO[]>;
getPhysicalPrinters(ctx: UserContext): Promise<PhysicalPrinterDTO[]>;

@@ -35,0 +38,0 @@ getSettings(ctx: UserContext, params: GetSettingsQueryParams): Promise<SettingDTO[]>;

@@ -74,3 +74,3 @@ "use strict";

}
getPrinters(ctx) {
getPrinters(ctx, params = {}) {
return __awaiter(this, void 0, void 0, function* () {

@@ -83,2 +83,5 @@ return yield axios_1.default

headers: Object.assign(Object.assign(Object.assign({ "fgr-service-token": this.config.secret }, (ctx.accountId ? { "twbrds-account-id": ctx.accountId } : null)), (ctx.locationId ? { "twbrds-location-id": ctx.locationId } : null)), (ctx.terminalId ? { "twbrds-terminal-id": ctx.terminalId } : null)),
params: {
printerType: params.printerType
}
})

@@ -85,0 +88,0 @@ .then((r) => r.data);

{
"name": "@figuredev/business-config-sdk",
"version": "0.9.5",
"version": "0.9.6",
"license": "ISC",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet