@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.19 to 0.15.20
@@ -47,2 +47,8 @@ import { Maybe, TimeSpan } from "./utils"; | ||
}; | ||
export declare type CategoryReportDTO = { | ||
id: string; | ||
name: string; | ||
type: CategoryTypeDTO; | ||
parentId?: string; | ||
}; | ||
export declare enum CategoryTypeDTO { | ||
@@ -49,0 +55,0 @@ Category = "category", |
import { AccountDTO } from "./account"; | ||
import { AssignmentDTO } from "./assignments"; | ||
import { CategoryDTO, MatchCategoriesRequestItem, MatchCategoriesResponseItem, ModifierGroupDTO } from "./category"; | ||
import { CategoryDTO, CategoryReportDTO, MatchCategoriesRequestItem, MatchCategoriesResponseItem, ModifierGroupDTO } from "./category"; | ||
import { DeliverySettingDTO } from "./delivery"; | ||
@@ -110,4 +110,5 @@ import { EmployeeDTO } from "./employee"; | ||
getCategories(ctx: UserContext, params: GetCategoriesQueryParams): Promise<CategoryDTO[]>; | ||
getCategoriesForReports(ctx: UserContext): Promise<CategoryReportDTO[]>; | ||
getDeliverySettings(ctx: UserContext, params: GetDeliverySettingsQueryParams): Promise<DeliverySettingDTO>; | ||
} | ||
export {}; |
@@ -322,2 +322,13 @@ "use strict"; | ||
} | ||
getCategoriesForReports(ctx) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/category/reports", | ||
headers: this.prepareHeaders(ctx), | ||
params: {}, | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getDeliverySettings(ctx, params) { | ||
@@ -324,0 +335,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.19", | ||
"version": "0.15.20", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1284
60543
59
1