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
3
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.2 to 0.9.3

lib/location.d.ts

2

lib/index.d.ts

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

import { AccountDTO } from "./account";
import { LocationDTO } from "./location";
declare type BusinessConfigClientConfig = {

@@ -25,2 +26,3 @@ baseUrl: string;

getAccount(ctx: UserContext, id: string): Promise<AccountDTO | null>;
getLocation(ctx: UserContext, id: string): Promise<LocationDTO | null>;
getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>;

@@ -27,0 +29,0 @@ getPrinters(ctx: UserContext): Promise<PrinterDTO[]>;

@@ -30,2 +30,14 @@ "use strict";

}
getLocation(ctx, id) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "GET",
url: `/location/${id}`,
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)),
})
.then((r) => r.data);
});
}
getAssignments(ctx, params) {

@@ -32,0 +44,0 @@ return __awaiter(this, void 0, void 0, function* () {

2

package.json
{
"name": "@figuredev/business-config-sdk",
"version": "0.9.2",
"version": "0.9.3",
"license": "ISC",

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

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