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

@figuredev/business-config-sdk

Package Overview
Dependencies
Maintainers
5
Versions
147
Alerts
File Explorer

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.17 to 0.9.18

lib/promotion.d.ts

7

lib/index.d.ts

@@ -9,3 +9,3 @@ import { UserContext } from "./utils";

import { SchematizedLayoutDTO } from "./schematized";
import { EmployeeDTO } from "./employee";
import { PromotionDTO } from "./promotion";
declare type BusinessConfigClientConfig = {

@@ -37,2 +37,5 @@ baseUrl: string;

};
export declare type GetPromotionsQueryParams = {
locationIds?: string[];
};
export declare class BusinessConfigClient {

@@ -52,3 +55,2 @@ private config;

getTerminalPreviews(ctx: UserContext, params: GetTerminalPreviewsQueryParams): Promise<TerminalPreviewDTO[]>;
getEmployee(ctx: UserContext, id: string): Promise<EmployeeDTO | null>;
getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>;

@@ -59,3 +61,4 @@ getPrinters(ctx: UserContext, params?: GetPrintersQueryParams): Promise<PrinterDTO[]>;

getSchematized(ctx: UserContext, params?: GetSchematizedQueryParams): Promise<SchematizedLayoutDTO>;
getPromotions(ctx: UserContext, params?: GetPromotionsQueryParams): Promise<PromotionDTO[]>;
}
export {};

@@ -87,14 +87,2 @@ "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) {

@@ -174,4 +162,17 @@ return __awaiter(this, void 0, void 0, function* () {

}
getPromotions(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "GET",
url: "/promotion",
headers: this.prepareHeaders(ctx),
params: params,
})
.then((r) => r.data);
});
}
}
exports.BusinessConfigClient = BusinessConfigClient;
//# sourceMappingURL=index.js.map

@@ -7,5 +7,3 @@ import { TimeAvailabilityInfoDTO } from "./location";

accountId: string;
accountName?: string;
locationId: string;
locationName?: string;
prefix?: string;

@@ -12,0 +10,0 @@ isActive: boolean;

{
"name": "@figuredev/business-config-sdk",
"version": "0.9.17",
"version": "0.9.18",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc