@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.64 to 0.15.65
@@ -5,5 +5,1 @@ export interface AccountDTO { | ||
} | ||
export interface PreparedImageUploadDTO { | ||
signedRequest: string; | ||
url: string; | ||
} |
import { Maybe, TimeSpan } from "./utils"; | ||
export declare type MatchCategoriesRequestItem = { | ||
id: string; | ||
name?: Maybe<string>; | ||
productId?: Maybe<string>; | ||
modifierId?: Maybe<string>; | ||
name?: string | null; | ||
productId?: string | null; | ||
children?: MatchCategoriesRequestItem[]; | ||
@@ -14,3 +13,2 @@ }; | ||
parentCategoryId?: string | null; | ||
/** @deprecated */ | ||
groupId?: string | null; | ||
@@ -20,7 +18,2 @@ cardProgramId?: string | null; | ||
children?: MatchCategoriesResponseItem[]; | ||
group?: { | ||
id: string; | ||
name: string; | ||
isExclusion: boolean; | ||
}; | ||
}; | ||
@@ -27,0 +20,0 @@ export declare type CategoryDTO = { |
@@ -6,3 +6,2 @@ import { Maybe } from "./utils"; | ||
shipday?: ShipDayCredentialsDTO; | ||
"uber-direct"?: UberDirectCredentialsDTO; | ||
credentials?: { | ||
@@ -12,3 +11,2 @@ onfleet?: OnFleetCredentialsDTO; | ||
shipday?: ShipDayCredentialsDTO; | ||
"uber-direct"?: UberDirectCredentialsDTO; | ||
}; | ||
@@ -30,5 +28,2 @@ fee?: DeliveryFeeConfigDTO; | ||
}; | ||
export declare type UberDirectCredentialsDTO = { | ||
organizationId?: Maybe<string>; | ||
}; | ||
export declare type DeliveryFeeConfigDTO = { | ||
@@ -35,0 +30,0 @@ base?: number; |
@@ -1,13 +0,9 @@ | ||
import { Maybe } from "./utils"; | ||
export declare type EmailSettingDTO = { | ||
logoUrl?: Maybe<string>; | ||
header?: Maybe<string[]>; | ||
footer?: Maybe<string[]>; | ||
businessInfo?: Maybe<string[]>; | ||
logoUrl?: string; | ||
header?: string[]; | ||
footer?: string[]; | ||
businessInfo?: string[]; | ||
showSocialButtons?: boolean; | ||
showFeedbackLinks?: boolean; | ||
showBarcode?: boolean; | ||
cashDiscountCustomText?: Maybe<string>; | ||
serviceFeeCustomText?: Maybe<string>; | ||
cardSurchargeCustomText?: Maybe<string>; | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { AccountDTO } from "./account"; | ||
import { AssignmentDTO } from "./assignments"; | ||
@@ -9,4 +9,2 @@ import { CategoryDTO, CategoryReportDTO, MatchCategoriesRequestItem, MatchCategoriesResponseItem, ModifierGroupDTO } from "./category"; | ||
import { LocationDTO, LocationPreviewDTO } from "./location"; | ||
import { MenuDTO } from "./menu"; | ||
import { OnlineOrderingThemeDTO } from "./onlineOrdering"; | ||
import { PaymentSettingDTO } from "./payment"; | ||
@@ -43,7 +41,2 @@ import { PricingDTO } from "./pricing"; | ||
}; | ||
export declare type GetMenuQueryParams = { | ||
applyOverride?: boolean; | ||
locationId?: string; | ||
serviceId?: string; | ||
}; | ||
export declare type GetSettingsQueryParams = { | ||
@@ -93,7 +86,5 @@ 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>; | ||
getEmailSettings(ctx: UserContext, id: string): 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>; | ||
@@ -124,4 +115,3 @@ getTerminalPreviews(ctx: UserContext, params: GetTerminalPreviewsQueryParams): Promise<TerminalPreviewDTO[]>; | ||
getDeliverySettings(ctx: UserContext, params: GetDeliverySettingsQueryParams): Promise<DeliverySettingDTO>; | ||
getMenu(ctx: UserContext, params: GetMenuQueryParams): Promise<MenuDTO>; | ||
} | ||
export {}; |
@@ -31,20 +31,6 @@ "use strict"; | ||
} | ||
getPreparedImageUploadUrl(ctx, filename, fileType) { | ||
getEmailSettings(ctx, id) { | ||
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) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
@@ -79,12 +65,2 @@ url: `/email/setting`, | ||
} | ||
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) { | ||
@@ -382,19 +358,4 @@ 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,4 +75,3 @@ import { Maybe } from "fgr-lib-backend/lib/types"; | ||
Dejavoo = "dejavoo", | ||
TSYS = "tsys", | ||
PayU = "payu" | ||
TSYS = "tsys" | ||
} |
@@ -17,4 +17,3 @@ "use strict"; | ||
PaymentGatewayDTO["TSYS"] = "tsys"; | ||
PaymentGatewayDTO["PayU"] = "payu"; | ||
})(PaymentGatewayDTO = exports.PaymentGatewayDTO || (exports.PaymentGatewayDTO = {})); | ||
//# sourceMappingURL=payment.js.map |
import { TimeAvailabilityInfoDTO } from "./location"; | ||
import { Maybe } from "./utils"; | ||
export declare type TerminalDTO = { | ||
@@ -22,3 +21,7 @@ id: string; | ||
aggregatorType?: TerminalAggregatorType; | ||
metadata?: TerminalMetadataDTO; | ||
metadata?: { | ||
onlineOrdering?: { | ||
status?: TerminalOnlineOrderingStatus; | ||
}; | ||
}; | ||
}; | ||
@@ -35,15 +38,3 @@ export declare type TerminalPreviewDTO = { | ||
aggregatorConfig?: TerminalAggregatorConfigDTO; | ||
metadata?: TerminalMetadataDTO; | ||
}; | ||
export declare type TerminalMetadataDTO = { | ||
onlineOrdering?: { | ||
status?: TerminalOnlineOrderingStatusDTO; | ||
menuUpdateStatus?: OnlineOrderingMenuUpdateStatusDTO; | ||
priceMultiplier?: number; | ||
}; | ||
KDS?: Maybe<KDSMetadataDTO>; | ||
}; | ||
export declare type KDSMetadataDTO = { | ||
isExpediter?: Maybe<boolean>; | ||
}; | ||
export declare enum UniqueGeneratorStrategyDTO { | ||
@@ -76,3 +67,3 @@ Random = "random", | ||
} | ||
export declare enum TerminalOnlineOrderingStatusDTO { | ||
export declare enum TerminalOnlineOrderingStatus { | ||
Pending = "pending", | ||
@@ -84,7 +75,2 @@ Active = "active", | ||
} | ||
export declare enum OnlineOrderingMenuUpdateStatusDTO { | ||
InProgress = "in-progress", | ||
Completed = "completed", | ||
Failed = "failed" | ||
} | ||
export declare type TerminalAggregatorConfigUberDTO = { | ||
@@ -91,0 +77,0 @@ storeId: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TerminalType = exports.OnlineOrderingMenuUpdateStatusDTO = exports.TerminalOnlineOrderingStatusDTO = exports.TerminalAggregatorType = exports.UniqueGeneratorStrategyDTO = void 0; | ||
exports.TerminalType = exports.TerminalOnlineOrderingStatus = exports.TerminalAggregatorType = exports.UniqueGeneratorStrategyDTO = void 0; | ||
var UniqueGeneratorStrategyDTO; | ||
@@ -19,16 +19,10 @@ (function (UniqueGeneratorStrategyDTO) { | ||
})(TerminalAggregatorType = exports.TerminalAggregatorType || (exports.TerminalAggregatorType = {})); | ||
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 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 TerminalType; | ||
@@ -35,0 +29,0 @@ (function (TerminalType) { |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.64", | ||
"version": "0.15.65", | ||
"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
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
65693
62
1405