@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.45 to 0.15.46
@@ -10,2 +10,3 @@ import { AccountDTO } from "./account"; | ||
import { OnlineOrderingThemeDTO } from "./onlineOrdering"; | ||
import { MenuDTO } from "./menu"; | ||
import { PaymentSettingDTO } from "./payment"; | ||
@@ -42,2 +43,7 @@ import { PricingDTO } from "./pricing"; | ||
}; | ||
export declare type GetMenuQueryParams = { | ||
applyOverride?: boolean; | ||
locationId?: string; | ||
serviceId?: string; | ||
}; | ||
export declare type GetSettingsQueryParams = { | ||
@@ -116,3 +122,4 @@ locationId?: string; | ||
getDeliverySettings(ctx: UserContext, params: GetDeliverySettingsQueryParams): Promise<DeliverySettingDTO>; | ||
getMenu(ctx: UserContext, params: GetMenuQueryParams): Promise<MenuDTO>; | ||
} | ||
export {}; |
@@ -366,4 +366,19 @@ "use strict"; | ||
} | ||
getMenu(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/menu", | ||
headers: this.prepareHeaders(ctx), | ||
params: { | ||
applyOverride: params.applyOverride, | ||
locationId: params.locationId, | ||
serviceId: params.serviceId, | ||
}, | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
} | ||
exports.BusinessConfigClient = BusinessConfigClient; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.45", | ||
"version": "0.15.46", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
70857
68
1544