@figuredev/business-config-sdk
Advanced tools
Comparing version 0.9.15 to 0.9.16
@@ -9,2 +9,3 @@ import { UserContext } from "./utils"; | ||
import { SchematizedLayoutDTO } from "./schematized"; | ||
import { EmployeeDTO } from "./employee"; | ||
declare type BusinessConfigClientConfig = { | ||
@@ -50,2 +51,3 @@ baseUrl: string; | ||
getTerminalPreviews(ctx: UserContext, params: GetTerminalPreviewsQueryParams): Promise<TerminalPreviewDTO[]>; | ||
getEmployee(ctx: UserContext, id: string): Promise<EmployeeDTO | null>; | ||
getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>; | ||
@@ -52,0 +54,0 @@ getPrinters(ctx: UserContext, params?: GetPrintersQueryParams): Promise<PrinterDTO[]>; |
@@ -87,2 +87,14 @@ "use strict"; | ||
} | ||
getEmployee(ctx, id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield axios_1.default | ||
.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/employee/${id}`, | ||
headers: this.prepareHeaders(ctx), | ||
}) | ||
.then((r) => r.data); | ||
}); | ||
} | ||
getAssignments(ctx, params) { | ||
@@ -114,4 +126,4 @@ return __awaiter(this, void 0, void 0, function* () { | ||
params: { | ||
printerType: params.printerType | ||
} | ||
printerType: params.printerType, | ||
}, | ||
}) | ||
@@ -158,3 +170,3 @@ .then((r) => r.data); | ||
headers: this.prepareHeaders(ctx), | ||
params: params | ||
params: params, | ||
}) | ||
@@ -161,0 +173,0 @@ .then((r) => r.data); |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.9.15", | ||
"version": "0.9.16", | ||
"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
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
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
24906
32
530
1