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.3 to 0.9.4

6

lib/index.d.ts

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

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

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

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

@@ -28,2 +31,3 @@ private config;

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

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

@@ -42,2 +42,17 @@ "use strict";

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

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

@@ -9,2 +9,7 @@ export declare type LocationDTO = {

};
export declare type LocationPreviewDTO = {
id: string;
name: string;
timezone: string;
};
export declare type StoreContactInfoDTO = {

@@ -11,0 +16,0 @@ websiteUrl: string | null;

2

package.json
{
"name": "@figuredev/business-config-sdk",
"version": "0.9.3",
"version": "0.9.4",
"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