@figuredev/business-config-sdk
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -8,3 +8,3 @@ import { UserContext } from "./utils"; | ||
import { TerminalDTO, TerminalPreviewDTO } from "./terminal"; | ||
import { SchematizedTabsDTO } from "./schematized"; | ||
import { SchematizedLayoutDTO, SchematizedLayoutsDTO } from "./schematized"; | ||
import { EmployeeDTO } from "./employee"; | ||
@@ -64,3 +64,5 @@ import { PromotionDTO } from "./promotion"; | ||
getSettings(ctx: UserContext, params: GetSettingsQueryParams): Promise<SettingDTO[]>; | ||
getSchematized(ctx: UserContext, params?: GetSchematizedQueryParams): Promise<SchematizedTabsDTO>; | ||
/** @deprecated in favor of getSchematizedLayouts **/ | ||
getSchematized(ctx: UserContext, params?: GetSchematizedQueryParams): Promise<SchematizedLayoutDTO>; | ||
getSchematizedLayouts(ctx: UserContext, params?: GetSchematizedQueryParams): Promise<SchematizedLayoutsDTO>; | ||
getPromotions(ctx: UserContext, params?: GetPromotionsQueryParams): Promise<PromotionDTO[]>; | ||
@@ -67,0 +69,0 @@ getPromotionById(ctx: UserContext, id: string): Promise<PromotionDTO>; |
@@ -196,2 +196,3 @@ "use strict"; | ||
} | ||
/** @deprecated in favor of getSchematizedLayouts **/ | ||
getSchematized(ctx, params) { | ||
@@ -203,2 +204,15 @@ return __awaiter(this, void 0, void 0, function* () { | ||
method: "GET", | ||
url: "/schematized", | ||
headers: this.prepareHeaders(ctx), | ||
params: params, | ||
}) | ||
.then((r) => r.data); | ||
}); | ||
} | ||
getSchematizedLayouts(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield axios_1.default | ||
.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/schematized/v2", | ||
@@ -205,0 +219,0 @@ headers: this.prepareHeaders(ctx), |
@@ -44,4 +44,4 @@ export declare enum SchematizedTileType { | ||
}; | ||
export declare type SchematizedTabsDTO = { | ||
tabs: SchematizedLayoutDTO[]; | ||
export declare type SchematizedLayoutsDTO = { | ||
layouts: SchematizedLayoutDTO[]; | ||
}; |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -7,8 +7,9 @@ ## Business Config Service SDK | ||
2. Increment version in package.json | ||
3. Call `npm publish --access public` | ||
1. small fixes - patch version 0.0.x | ||
2. breaking changes - minor version 0.x.0 | ||
3. Document your changes in `CHANGELOG.md` | ||
4. Call `npm publish --access public` | ||
### CHANGELOG | ||
#### v0.11.0 | ||
1. `SDK.getSchematized()` return value changed. Now it returns tabs object. | ||
For a list of changes see `CHANGELOG.md`. |
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
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
33617
42
686
15