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
9
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.15.77 to 0.15.78

10

lib/index.d.ts

@@ -21,3 +21,3 @@ import { AccountDTO, PreparedImageUploadDTO } from "./account";

import { TerminalDTO, TerminalPreviewDTO } from "./terminal";
import { TimeRecordLogDTO, TimeRecordReportResponseDTO } from "./timeRecord";
import { TimeRecordLogDTO, TimeRecordReportBreakResponseDTO, TimeRecordReportResponseDTO } from "./timeRecord";
import { UserContext } from "./utils";

@@ -98,2 +98,9 @@ type BusinessConfigClientConfig = {

};
export type GetTimeRecordBreaksQueryParams = {
accountId: string;
dateFrom: string;
dateTo: string;
locationIds?: string[];
employeeIds?: string[];
};
export declare class BusinessConfigClient {

@@ -146,3 +153,4 @@ private config;

getTimeRecordReport(ctx: UserContext, params: GetTimeRecordReportQueryParams): Promise<TimeRecordReportResponseDTO>;
getTimeRecordBreaks(ctx: UserContext, params: GetTimeRecordBreaksQueryParams): Promise<TimeRecordReportBreakResponseDTO[]>;
}
export {};

@@ -469,4 +469,16 @@ "use strict";

}
getTimeRecordBreaks(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
const { data } = yield (0, http_1.createHttpRequest)({
baseURL: this.config.baseUrl,
method: "GET",
url: "/time-record/break",
headers: this.prepareHeaders(ctx),
params: params,
});
return data;
});
}
}
exports.BusinessConfigClient = BusinessConfigClient;
//# sourceMappingURL=index.js.map

@@ -36,3 +36,3 @@ import { Maybe } from "./utils";

timezone?: Maybe<string>;
breaks: TimeRecordBreakDTO[];
breaks: TimeRecordBreakReportDTO[];
};

@@ -81,3 +81,8 @@ export type TimeRecordLogDTO = {

duration: Maybe<number>;
userAccountId: string;
employeeFullName?: Maybe<string>;
locationId: string;
locationName?: Maybe<string>;
};
export type TimeRecordBreakReportDTO = Omit<TimeRecordBreakDTO, "userAccountId" | "employeeFullName" | "locationId" | "locationName">;
export declare enum TimeRecordBreakTypeDTO {

@@ -98,1 +103,6 @@ Paid = "paid",

};
export type TimeRecordReportBreakResponseDTO = {
userAccountId: string;
employeeFullName?: Maybe<string>;
breaks: Omit<TimeRecordBreakDTO, "userAccountId" | "employeeFullName">[];
};

2

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