@figuredev/business-config-sdk
Advanced tools
Comparing version 0.9.21 to 0.9.22
@@ -9,2 +9,3 @@ import { UserContext } from "./utils"; | ||
import { SchematizedLayoutDTO } from "./schematized"; | ||
import { EmployeeDTO } from "./employee"; | ||
import { PromotionDTO } from "./promotion"; | ||
@@ -55,2 +56,3 @@ import { PricingDTO } from "./pricing"; | ||
getTerminalPreviews(ctx: UserContext, params: GetTerminalPreviewsQueryParams): Promise<TerminalPreviewDTO[]>; | ||
getEmployee(ctx: UserContext, id: string): Promise<EmployeeDTO | null>; | ||
getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>; | ||
@@ -57,0 +59,0 @@ retrievePricingForPromoCode(ctx: UserContext, promoCode: string): Promise<PricingDTO | null>; |
@@ -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) { | ||
@@ -89,0 +101,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -7,3 +7,5 @@ import { TimeAvailabilityInfoDTO } from "./location"; | ||
accountId: string; | ||
accountName?: string; | ||
locationId: string; | ||
locationName?: string; | ||
prefix?: string; | ||
@@ -10,0 +12,0 @@ isActive: boolean; |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.9.21", | ||
"version": "0.9.22", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
30281
41
642