@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.44 to 0.15.45
@@ -5,5 +5,7 @@ import { AccountDTO } from "./account"; | ||
import { DeliverySettingDTO } from "./delivery"; | ||
import { EmailSettingDTO } from "./email"; | ||
import { EmployeeDTO } from "./employee"; | ||
import { OrderEmailIntegrationConfigDTO } from "./integrations"; | ||
import { LocationDTO, LocationPreviewDTO } from "./location"; | ||
import { OnlineOrderingThemeDTO } from "./onlineOrdering"; | ||
import { PaymentSettingDTO } from "./payment"; | ||
@@ -84,4 +86,6 @@ import { PricingDTO } from "./pricing"; | ||
getAccount(ctx: UserContext, id: string): Promise<AccountDTO | null>; | ||
getEmailSettings(ctx: UserContext): Promise<EmailSettingDTO | null>; | ||
getLocation(ctx: UserContext, id: string): Promise<LocationDTO | null>; | ||
getLocationPreviews(ctx: UserContext, params: GetLocationPreviewsQueryParams): Promise<LocationPreviewDTO[]>; | ||
getOnlineOrderingTheme(ctx: UserContext): Promise<OnlineOrderingThemeDTO | null>; | ||
getTerminal(ctx: UserContext, id: string): Promise<TerminalDTO | null>; | ||
@@ -88,0 +92,0 @@ getTerminalPreviews(ctx: UserContext, params: GetTerminalPreviewsQueryParams): Promise<TerminalPreviewDTO[]>; |
@@ -31,2 +31,12 @@ "use strict"; | ||
} | ||
getEmailSettings(ctx) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/email/setting`, | ||
headers: this.prepareHeaders(ctx), | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getLocation(ctx, id) { | ||
@@ -55,2 +65,12 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
getOnlineOrderingTheme(ctx) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/online-ordering/theme`, | ||
headers: this.prepareHeaders(ctx), | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getTerminal(ctx, id) { | ||
@@ -57,0 +77,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.44", | ||
"version": "0.15.45", | ||
"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
67267
65
1438