@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.53 to 0.15.54
@@ -5,1 +5,5 @@ export interface AccountDTO { | ||
} | ||
export interface PreparedImageUploadDTO { | ||
signedRequest: string; | ||
url: string; | ||
} |
@@ -0,6 +1,7 @@ | ||
import { Maybe } from "./utils"; | ||
export declare type EmailSettingDTO = { | ||
logoUrl?: string; | ||
header?: string[]; | ||
footer?: string[]; | ||
businessInfo?: string[]; | ||
logoUrl?: Maybe<string>; | ||
header?: Maybe<string[]>; | ||
footer?: Maybe<string[]>; | ||
businessInfo?: Maybe<string[]>; | ||
showSocialButtons?: boolean; | ||
@@ -7,0 +8,0 @@ showFeedbackLinks?: boolean; |
@@ -1,2 +0,2 @@ | ||
import { AccountDTO } from "./account"; | ||
import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { AssignmentDTO } from "./assignments"; | ||
@@ -9,2 +9,3 @@ import { CategoryDTO, CategoryReportDTO, MatchCategoriesRequestItem, MatchCategoriesResponseItem, ModifierGroupDTO } from "./category"; | ||
import { LocationDTO, LocationPreviewDTO } from "./location"; | ||
import { MenuDTO } from "./menu"; | ||
import { OnlineOrderingThemeDTO } from "./onlineOrdering"; | ||
@@ -42,2 +43,7 @@ import { PaymentSettingDTO } from "./payment"; | ||
}; | ||
export declare type GetMenuQueryParams = { | ||
applyOverride?: boolean; | ||
locationId?: string; | ||
serviceId?: string; | ||
}; | ||
export declare type GetSettingsQueryParams = { | ||
@@ -87,2 +93,3 @@ locationId?: string; | ||
getAccount(ctx: UserContext, id: string): Promise<AccountDTO | null>; | ||
getPreparedImageUploadUrl(ctx: UserContext, filename: string, fileType: string): Promise<PreparedImageUploadDTO | null>; | ||
getEmailSettings(ctx: UserContext): Promise<EmailSettingDTO | null>; | ||
@@ -117,3 +124,4 @@ getLocation(ctx: UserContext, id: string): Promise<LocationDTO | null>; | ||
getDeliverySettings(ctx: UserContext, params: GetDeliverySettingsQueryParams): Promise<DeliverySettingDTO>; | ||
getMenu(ctx: UserContext, params: GetMenuQueryParams): Promise<MenuDTO>; | ||
} | ||
export {}; |
@@ -31,2 +31,16 @@ "use strict"; | ||
} | ||
getPreparedImageUploadUrl(ctx, filename, fileType) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "POST", | ||
url: `/account/image/prepare`, | ||
headers: this.prepareHeaders(ctx), | ||
data: { | ||
filename: filename, | ||
fileType: fileType, | ||
}, | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getEmailSettings(ctx) { | ||
@@ -367,4 +381,19 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
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 |
@@ -75,3 +75,4 @@ import { Maybe } from "fgr-lib-backend/lib/types"; | ||
Dejavoo = "dejavoo", | ||
TSYS = "tsys" | ||
TSYS = "tsys", | ||
PayU = "payu" | ||
} |
@@ -17,3 +17,4 @@ "use strict"; | ||
PaymentGatewayDTO["TSYS"] = "tsys"; | ||
PaymentGatewayDTO["PayU"] = "payu"; | ||
})(PaymentGatewayDTO = exports.PaymentGatewayDTO || (exports.PaymentGatewayDTO = {})); | ||
//# sourceMappingURL=payment.js.map |
@@ -21,7 +21,3 @@ import { TimeAvailabilityInfoDTO } from "./location"; | ||
aggregatorType?: TerminalAggregatorType; | ||
metadata?: { | ||
onlineOrdering?: { | ||
status?: TerminalOnlineOrderingStatus; | ||
}; | ||
}; | ||
metadata?: TerminalMetadataDTO; | ||
}; | ||
@@ -38,3 +34,10 @@ export declare type TerminalPreviewDTO = { | ||
aggregatorConfig?: TerminalAggregatorConfigDTO; | ||
metadata?: TerminalMetadataDTO; | ||
}; | ||
export declare type TerminalMetadataDTO = { | ||
onlineOrdering?: { | ||
status?: TerminalOnlineOrderingStatusDTO; | ||
menuUpdateStatus?: OnlineOrderingMenuUpdateStatusDTO; | ||
}; | ||
}; | ||
export declare enum UniqueGeneratorStrategyDTO { | ||
@@ -67,3 +70,3 @@ Random = "random", | ||
} | ||
export declare enum TerminalOnlineOrderingStatus { | ||
export declare enum TerminalOnlineOrderingStatusDTO { | ||
Pending = "pending", | ||
@@ -75,2 +78,7 @@ Active = "active", | ||
} | ||
export declare enum OnlineOrderingMenuUpdateStatusDTO { | ||
InProgress = "in-progress", | ||
Completed = "completed", | ||
Failed = "failed" | ||
} | ||
export declare type TerminalAggregatorConfigUberDTO = { | ||
@@ -77,0 +85,0 @@ storeId: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TerminalType = exports.TerminalOnlineOrderingStatus = exports.TerminalAggregatorType = exports.UniqueGeneratorStrategyDTO = void 0; | ||
exports.TerminalType = exports.OnlineOrderingMenuUpdateStatusDTO = exports.TerminalOnlineOrderingStatusDTO = exports.TerminalAggregatorType = exports.UniqueGeneratorStrategyDTO = void 0; | ||
var UniqueGeneratorStrategyDTO; | ||
@@ -19,10 +19,16 @@ (function (UniqueGeneratorStrategyDTO) { | ||
})(TerminalAggregatorType = exports.TerminalAggregatorType || (exports.TerminalAggregatorType = {})); | ||
var TerminalOnlineOrderingStatus; | ||
(function (TerminalOnlineOrderingStatus) { | ||
TerminalOnlineOrderingStatus["Pending"] = "pending"; | ||
TerminalOnlineOrderingStatus["Active"] = "active"; | ||
TerminalOnlineOrderingStatus["Paused"] = "paused"; | ||
TerminalOnlineOrderingStatus["PausedForPickup"] = "paused-for-pickup"; | ||
TerminalOnlineOrderingStatus["PausedForDelivery"] = "paused-for-delivery"; | ||
})(TerminalOnlineOrderingStatus = exports.TerminalOnlineOrderingStatus || (exports.TerminalOnlineOrderingStatus = {})); | ||
var TerminalOnlineOrderingStatusDTO; | ||
(function (TerminalOnlineOrderingStatusDTO) { | ||
TerminalOnlineOrderingStatusDTO["Pending"] = "pending"; | ||
TerminalOnlineOrderingStatusDTO["Active"] = "active"; | ||
TerminalOnlineOrderingStatusDTO["Paused"] = "paused"; | ||
TerminalOnlineOrderingStatusDTO["PausedForPickup"] = "paused-for-pickup"; | ||
TerminalOnlineOrderingStatusDTO["PausedForDelivery"] = "paused-for-delivery"; | ||
})(TerminalOnlineOrderingStatusDTO = exports.TerminalOnlineOrderingStatusDTO || (exports.TerminalOnlineOrderingStatusDTO = {})); | ||
var OnlineOrderingMenuUpdateStatusDTO; | ||
(function (OnlineOrderingMenuUpdateStatusDTO) { | ||
OnlineOrderingMenuUpdateStatusDTO["InProgress"] = "in-progress"; | ||
OnlineOrderingMenuUpdateStatusDTO["Completed"] = "completed"; | ||
OnlineOrderingMenuUpdateStatusDTO["Failed"] = "failed"; | ||
})(OnlineOrderingMenuUpdateStatusDTO = exports.OnlineOrderingMenuUpdateStatusDTO || (exports.OnlineOrderingMenuUpdateStatusDTO = {})); | ||
var TerminalType; | ||
@@ -29,0 +35,0 @@ (function (TerminalType) { |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.53", | ||
"version": "0.15.54", | ||
"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
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
73327
68
1595