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.84 to 0.15.85

10

lib/index.d.ts

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

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

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

};
export type GetTimeRecordsQueryParams = {
accountId: string;
dateFrom: string;
dateTo: string;
locationIds?: string[];
employeeIds?: string[];
};
export type GetTimeRecordReportQueryParams = {

@@ -152,2 +159,3 @@ accountId: string;

getTimeRecordLogs(ctx: UserContext, params: GetTimeRecordLogsQueryParams): Promise<TimeRecordLogDTO[]>;
getTimeRecords(ctx: UserContext, params: GetTimeRecordsQueryParams): Promise<TimeRecordDTO[]>;
getTimeRecordReport(ctx: UserContext, params: GetTimeRecordReportQueryParams): Promise<TimeRecordReportResponseDTO>;

@@ -154,0 +162,0 @@ getTimeRecordBreaks(ctx: UserContext, params: GetTimeRecordBreaksQueryParams): Promise<TimeRecordReportBreakResponseDTO[]>;

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

}
getTimeRecords(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",
headers: this.prepareHeaders(ctx),
params: params,
});
return data;
});
}
getTimeRecordReport(ctx, params) {

@@ -459,0 +471,0 @@ return __awaiter(this, void 0, void 0, function* () {

12

lib/timeRecord.d.ts

@@ -21,4 +21,2 @@ import { Maybe } from "./utils";

lastUpdateTimestamp?: string;
};
export type TimeRecordReportDTO = TimeRecordDTO & {
employeeFirstName?: Maybe<string>;

@@ -33,6 +31,2 @@ employeeMiddleName?: Maybe<string>;

clockOutLocationName?: Maybe<string>;
cost?: Maybe<number>;
duration?: Maybe<number>;
payableDuration?: Maybe<number>;
totalDuration?: Maybe<number>;
/** @deprecated */

@@ -44,2 +38,8 @@ timezone?: Maybe<string>;

};
export type TimeRecordReportDTO = TimeRecordDTO & {
cost?: Maybe<number>;
duration?: Maybe<number>;
payableDuration?: Maybe<number>;
totalDuration?: Maybe<number>;
};
export type TimeRecordLogDTO = {

@@ -46,0 +46,0 @@ id: string;

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