@figuredev/business-config-sdk
Advanced tools
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18117
296
0