@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.65 to 0.15.66
@@ -5,1 +5,5 @@ export interface AccountDTO { | ||
} | ||
export interface PreparedImageUploadDTO { | ||
signedRequest: string; | ||
url: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare type AssignmentDTO = { | ||
export type AssignmentDTO = { | ||
id: string; | ||
@@ -12,3 +12,3 @@ name: string; | ||
}; | ||
export declare type AssignmentConfigDTO = { | ||
export type AssignmentConfigDTO = { | ||
customerRequired?: boolean; | ||
@@ -15,0 +15,0 @@ guestCountRequired?: boolean; |
import { Maybe, TimeSpan } from "./utils"; | ||
export declare type MatchCategoriesRequestItem = { | ||
export type MatchCategoriesRequestItem = { | ||
id: string; | ||
name?: string | null; | ||
productId?: string | null; | ||
name?: Maybe<string>; | ||
productId?: Maybe<string>; | ||
modifierId?: Maybe<string>; | ||
children?: MatchCategoriesRequestItem[]; | ||
}; | ||
export declare type MatchCategoriesResponseItem = { | ||
export type MatchCategoriesResponseItem = { | ||
id: string; | ||
@@ -13,2 +14,3 @@ name?: string | null; | ||
parentCategoryId?: string | null; | ||
/** @deprecated */ | ||
groupId?: string | null; | ||
@@ -18,4 +20,9 @@ cardProgramId?: string | null; | ||
children?: MatchCategoriesResponseItem[]; | ||
group?: { | ||
id: string; | ||
name: string; | ||
isExclusion: boolean; | ||
}; | ||
}; | ||
export declare type CategoryDTO = { | ||
export type CategoryDTO = { | ||
id: string; | ||
@@ -52,3 +59,3 @@ name: string; | ||
}; | ||
export declare type CategoryConfigDTO = { | ||
export type CategoryConfigDTO = { | ||
pos: Record<string, any>; | ||
@@ -58,3 +65,3 @@ kiosk: Record<string, any>; | ||
}; | ||
export declare type CategoryReportDTO = { | ||
export type CategoryReportDTO = { | ||
id: string; | ||
@@ -121,3 +128,3 @@ name: string; | ||
} | ||
export declare type CategoryTaxesDTO = { | ||
export type CategoryTaxesDTO = { | ||
id: string; | ||
@@ -136,3 +143,3 @@ name: string; | ||
}; | ||
export declare type CategoryImageDTO = { | ||
export type CategoryImageDTO = { | ||
id: string; | ||
@@ -142,3 +149,3 @@ path: string; | ||
}; | ||
export declare type CategoryModifierGroupDTO = { | ||
export type CategoryModifierGroupDTO = { | ||
id: string; | ||
@@ -159,3 +166,3 @@ categoryToCategoryGroupId: string; | ||
}; | ||
export declare type CategoryModifierDTO = { | ||
export type CategoryModifierDTO = { | ||
id: string; | ||
@@ -172,3 +179,3 @@ name: string; | ||
}; | ||
export declare type CategoryOptionGroupDTO = { | ||
export type CategoryOptionGroupDTO = { | ||
id: string; | ||
@@ -182,3 +189,3 @@ categoryToCategoryGroupId: string; | ||
}; | ||
export declare type CategoryOptionDTO = { | ||
export type CategoryOptionDTO = { | ||
id: string; | ||
@@ -193,3 +200,3 @@ name: string; | ||
}; | ||
export declare type CategoryPricingDTO = { | ||
export type CategoryPricingDTO = { | ||
id: string; | ||
@@ -209,3 +216,3 @@ name: string; | ||
}; | ||
export declare type ModifierGroupDTO = { | ||
export type ModifierGroupDTO = { | ||
id: string; | ||
@@ -228,3 +235,3 @@ name: string; | ||
}; | ||
export declare type GroupAddedToProductDTO = { | ||
export type GroupAddedToProductDTO = { | ||
id: string; | ||
@@ -235,3 +242,3 @@ name: string; | ||
}; | ||
export declare type ModifierGroupItemDTO = { | ||
export type ModifierGroupItemDTO = { | ||
id: string; | ||
@@ -238,0 +245,0 @@ isActive: boolean; |
@@ -10,3 +10,3 @@ "use strict"; | ||
CategoryTypeDTO["Modifier"] = "modifier"; | ||
})(CategoryTypeDTO = exports.CategoryTypeDTO || (exports.CategoryTypeDTO = {})); | ||
})(CategoryTypeDTO || (exports.CategoryTypeDTO = CategoryTypeDTO = {})); | ||
var CategoryGroupTypeDTO; | ||
@@ -16,3 +16,3 @@ (function (CategoryGroupTypeDTO) { | ||
CategoryGroupTypeDTO["Modifier"] = "modifier"; | ||
})(CategoryGroupTypeDTO = exports.CategoryGroupTypeDTO || (exports.CategoryGroupTypeDTO = {})); | ||
})(CategoryGroupTypeDTO || (exports.CategoryGroupTypeDTO = CategoryGroupTypeDTO = {})); | ||
var CategoryPricingTypeDTO; | ||
@@ -24,3 +24,3 @@ (function (CategoryPricingTypeDTO) { | ||
CategoryPricingTypeDTO["SetInOptions"] = "setInOptions"; | ||
})(CategoryPricingTypeDTO = exports.CategoryPricingTypeDTO || (exports.CategoryPricingTypeDTO = {})); | ||
})(CategoryPricingTypeDTO || (exports.CategoryPricingTypeDTO = CategoryPricingTypeDTO = {})); | ||
var ProductCateringTypeDTO; | ||
@@ -37,3 +37,3 @@ (function (ProductCateringTypeDTO) { | ||
ProductCateringTypeDTO["Batch"] = "batch"; | ||
})(ProductCateringTypeDTO = exports.ProductCateringTypeDTO || (exports.ProductCateringTypeDTO = {})); | ||
})(ProductCateringTypeDTO || (exports.ProductCateringTypeDTO = ProductCateringTypeDTO = {})); | ||
var ProductUnitTypeDTO; | ||
@@ -68,3 +68,3 @@ (function (ProductUnitTypeDTO) { | ||
ProductUnitTypeDTO["SquareFeet"] = "squareFeet"; | ||
})(ProductUnitTypeDTO = exports.ProductUnitTypeDTO || (exports.ProductUnitTypeDTO = {})); | ||
})(ProductUnitTypeDTO || (exports.ProductUnitTypeDTO = ProductUnitTypeDTO = {})); | ||
//# sourceMappingURL=category.js.map |
import { Maybe } from "./utils"; | ||
export declare type DeliverySettingDTO = { | ||
export type DeliverySettingDTO = { | ||
onfleet?: OnFleetCredentialsDTO; | ||
relay?: RelayCredentialsDTO; | ||
shipday?: ShipDayCredentialsDTO; | ||
"uber-direct"?: UberDirectCredentialsDTO; | ||
credentials?: { | ||
@@ -10,2 +11,3 @@ onfleet?: OnFleetCredentialsDTO; | ||
shipday?: ShipDayCredentialsDTO; | ||
"uber-direct"?: UberDirectCredentialsDTO; | ||
}; | ||
@@ -15,15 +17,18 @@ fee?: DeliveryFeeConfigDTO; | ||
}; | ||
export declare type OnFleetCredentialsDTO = { | ||
export type OnFleetCredentialsDTO = { | ||
apiKey?: Maybe<string>; | ||
webhookSecret?: Maybe<string>; | ||
}; | ||
export declare type RelayCredentialsDTO = { | ||
export type RelayCredentialsDTO = { | ||
apiKey?: Maybe<string>; | ||
producerLocationKey?: Maybe<string>; | ||
}; | ||
export declare type ShipDayCredentialsDTO = { | ||
export type ShipDayCredentialsDTO = { | ||
apiKey?: Maybe<string>; | ||
webhookSecret?: Maybe<string>; | ||
}; | ||
export declare type DeliveryFeeConfigDTO = { | ||
export type UberDirectCredentialsDTO = { | ||
organizationId?: Maybe<string>; | ||
}; | ||
export type DeliveryFeeConfigDTO = { | ||
base?: number; | ||
@@ -36,3 +41,3 @@ distanceSurcharge?: { | ||
}; | ||
export declare type DeliveryAreaConfigDTO = { | ||
export type DeliveryAreaConfigDTO = { | ||
radius?: number; | ||
@@ -42,7 +47,7 @@ zipCodes?: string[]; | ||
}; | ||
export declare type MapZoneDTO = { | ||
export type MapZoneDTO = { | ||
fee?: number; | ||
shape: MapZoneShapeDTO; | ||
}; | ||
export declare type MapZoneShapeDTO = MapZonePointDTO[]; | ||
export declare type MapZonePointDTO = [number, number]; | ||
export type MapZoneShapeDTO = MapZonePointDTO[]; | ||
export type MapZonePointDTO = [number, number]; |
@@ -1,9 +0,13 @@ | ||
export declare type EmailSettingDTO = { | ||
logoUrl?: string; | ||
header?: string[]; | ||
footer?: string[]; | ||
businessInfo?: string[]; | ||
import { Maybe } from "./utils"; | ||
export type EmailSettingDTO = { | ||
logoUrl?: Maybe<string>; | ||
header?: Maybe<string[]>; | ||
footer?: Maybe<string[]>; | ||
businessInfo?: Maybe<string[]>; | ||
showSocialButtons?: boolean; | ||
showFeedbackLinks?: boolean; | ||
showBarcode?: boolean; | ||
cashDiscountCustomText?: Maybe<string>; | ||
serviceFeeCustomText?: Maybe<string>; | ||
cardSurchargeCustomText?: Maybe<string>; | ||
}; |
@@ -1,2 +0,2 @@ | ||
export declare type EmployeeDTO = { | ||
export type EmployeeDTO = { | ||
id: string; | ||
@@ -18,3 +18,3 @@ firstName: string; | ||
}; | ||
export declare type EmployeeAddressDTO = { | ||
export type EmployeeAddressDTO = { | ||
id: string; | ||
@@ -21,0 +21,0 @@ line1?: string; |
@@ -1,5 +0,6 @@ | ||
import { AccountDTO } from "./account"; | ||
import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { AssignmentDTO } from "./assignments"; | ||
import { CategoryDTO, CategoryReportDTO, MatchCategoriesRequestItem, MatchCategoriesResponseItem, ModifierGroupDTO } from "./category"; | ||
import { DeliverySettingDTO } from "./delivery"; | ||
import { AccountDomainInfoDTO } from "./domain"; | ||
import { EmailSettingDTO } from "./email"; | ||
@@ -9,2 +10,4 @@ import { EmployeeDTO } from "./employee"; | ||
import { LocationDTO, LocationPreviewDTO } from "./location"; | ||
import { MenuDTO } from "./menu"; | ||
import { OnlineOrderingThemeDTO } from "./onlineOrdering"; | ||
import { PaymentSettingDTO } from "./payment"; | ||
@@ -19,7 +22,7 @@ import { PricingDTO } from "./pricing"; | ||
import { UserContext } from "./utils"; | ||
declare type BusinessConfigClientConfig = { | ||
type BusinessConfigClientConfig = { | ||
baseUrl: string; | ||
secret: string; | ||
}; | ||
export declare type GetAssignmentsQueryParams = { | ||
export type GetAssignmentsQueryParams = { | ||
includeDeleted?: boolean; | ||
@@ -30,45 +33,50 @@ locationIds?: string[]; | ||
}; | ||
export declare type GetEmployeesQueryParams = { | ||
export type GetEmployeesQueryParams = { | ||
includeDeleted?: boolean; | ||
locationIds?: string[]; | ||
}; | ||
export declare type GetModifierGroupsQueryParams = { | ||
export type GetModifierGroupsQueryParams = { | ||
applyOverride?: boolean; | ||
locationId?: string; | ||
}; | ||
export declare type GetCategoriesQueryParams = { | ||
export type GetCategoriesQueryParams = { | ||
applyOverride?: boolean; | ||
locationId?: string; | ||
}; | ||
export declare type GetSettingsQueryParams = { | ||
export type GetMenuQueryParams = { | ||
applyOverride?: boolean; | ||
locationId?: string; | ||
serviceId?: string; | ||
}; | ||
export type GetSettingsQueryParams = { | ||
locationId?: string; | ||
terminalId?: string; | ||
keys?: string[]; | ||
}; | ||
export declare type GetPaymentSettingsQueryParams = { | ||
export type GetPaymentSettingsQueryParams = { | ||
locationId?: string; | ||
terminalId?: string; | ||
}; | ||
export declare type GetLocationPreviewsQueryParams = { | ||
export type GetLocationPreviewsQueryParams = { | ||
locationIds?: string[]; | ||
}; | ||
export declare type GetTerminalPreviewsQueryParams = { | ||
export type GetTerminalPreviewsQueryParams = { | ||
locationIds?: string[]; | ||
}; | ||
export declare type GetPrintersQueryParams = { | ||
export type GetPrintersQueryParams = { | ||
printerType?: PrinterType; | ||
}; | ||
export declare type GetSchematizedQueryParams = { | ||
export type GetSchematizedQueryParams = { | ||
locationId?: string; | ||
}; | ||
export declare type GetTableManagementQueryParams = { | ||
export type GetTableManagementQueryParams = { | ||
locationId?: string; | ||
}; | ||
export declare type GetPromotionsQueryParams = { | ||
export type GetPromotionsQueryParams = { | ||
locationIds?: string[]; | ||
}; | ||
export declare type MatchCategoriesQueryParams = { | ||
export type MatchCategoriesQueryParams = { | ||
items: MatchCategoriesRequestItem[]; | ||
}; | ||
export declare type GetDeliverySettingsQueryParams = { | ||
export type GetDeliverySettingsQueryParams = { | ||
locationId: string; | ||
@@ -87,5 +95,8 @@ terminalId?: string; | ||
getAccount(ctx: UserContext, id: string): Promise<AccountDTO | null>; | ||
getEmailSettings(ctx: UserContext, id: string): Promise<EmailSettingDTO | null>; | ||
getImportedDomains(ctx: UserContext, id: string): Promise<AccountDomainInfoDTO[]>; | ||
getPreparedImageUploadUrl(ctx: UserContext, filename: string, fileType: string): Promise<PreparedImageUploadDTO | 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>; | ||
@@ -116,3 +127,4 @@ getTerminalPreviews(ctx: UserContext, params: GetTerminalPreviewsQueryParams): Promise<TerminalPreviewDTO[]>; | ||
getDeliverySettings(ctx: UserContext, params: GetDeliverySettingsQueryParams): Promise<DeliverySettingDTO>; | ||
getMenu(ctx: UserContext, params: GetMenuQueryParams): Promise<MenuDTO>; | ||
} | ||
export {}; |
107
lib/index.js
@@ -23,3 +23,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -32,7 +32,31 @@ method: "GET", | ||
} | ||
getEmailSettings(ctx, id) { | ||
getImportedDomains(ctx, id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/domain", | ||
headers: this.prepareHeaders(ctx), | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getPreparedImageUploadUrl(ctx, filename, fileType) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield (0, 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 (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/email/setting`, | ||
@@ -45,3 +69,3 @@ headers: this.prepareHeaders(ctx), | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -56,3 +80,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -68,5 +92,15 @@ method: "GET", | ||
} | ||
getOnlineOrderingTheme(ctx) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: `/online-ordering/theme`, | ||
headers: this.prepareHeaders(ctx), | ||
}).then((r) => r.data); | ||
}); | ||
} | ||
getTerminal(ctx, id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -81,3 +115,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -95,3 +129,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -106,3 +140,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -121,3 +155,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -132,3 +166,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -149,3 +183,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -160,3 +194,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -171,3 +205,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -185,3 +219,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -196,3 +230,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -212,3 +246,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -228,3 +262,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -240,3 +274,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -252,3 +286,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -264,3 +298,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -276,3 +310,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -287,3 +321,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -301,3 +335,3 @@ method: "GET", | ||
} | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -315,3 +349,3 @@ method: "POST", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -329,3 +363,3 @@ method: "POST", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -344,3 +378,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -359,3 +393,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -371,3 +405,3 @@ method: "GET", | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield http_1.createHttpRequest({ | ||
return yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
@@ -384,4 +418,19 @@ method: "GET", | ||
} | ||
getMenu(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield (0, 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 |
@@ -1,2 +0,2 @@ | ||
export declare type OrderEmailIntegrationConfigDTO = { | ||
export type OrderEmailIntegrationConfigDTO = { | ||
address: string; | ||
@@ -3,0 +3,0 @@ accountId: string; |
@@ -1,2 +0,2 @@ | ||
export declare type LocationDTO = { | ||
export type LocationDTO = { | ||
id: string; | ||
@@ -12,3 +12,3 @@ name: string; | ||
}; | ||
export declare type LocationPreviewDTO = { | ||
export type LocationPreviewDTO = { | ||
id: string; | ||
@@ -20,3 +20,3 @@ name: string; | ||
}; | ||
export declare type StoreContactInfoDTO = { | ||
export type StoreContactInfoDTO = { | ||
websiteUrl?: string | null; | ||
@@ -31,3 +31,3 @@ emailAddress?: string | null; | ||
}; | ||
export declare type TimeAvailabilityInfoDTO = { | ||
export type TimeAvailabilityInfoDTO = { | ||
type?: TimeAvailabilityInfoType; | ||
@@ -42,3 +42,3 @@ spans: string[]; | ||
} | ||
export declare type AddressDTO = { | ||
export type AddressDTO = { | ||
line1: string | null; | ||
@@ -45,0 +45,0 @@ line2: string | null; |
@@ -9,3 +9,3 @@ "use strict"; | ||
TimeAvailabilityInfoType["PickUp"] = "pick-up"; | ||
})(TimeAvailabilityInfoType = exports.TimeAvailabilityInfoType || (exports.TimeAvailabilityInfoType = {})); | ||
})(TimeAvailabilityInfoType || (exports.TimeAvailabilityInfoType = TimeAvailabilityInfoType = {})); | ||
//# sourceMappingURL=location.js.map |
import { Maybe } from "fgr-lib-backend/lib/types"; | ||
export declare type PaymentSettingDTO = { | ||
export type PaymentSettingDTO = { | ||
bolt?: PaymentSettingBoltDTO; | ||
@@ -10,6 +10,6 @@ cardpointe?: PaymentSettingCardPointeDTO; | ||
}; | ||
export declare type PaymentSettingsConfigDTO = { | ||
export type PaymentSettingsConfigDTO = { | ||
selectedGateways: PaymentGatewayDTO[]; | ||
}; | ||
export declare type PaymentSettingBoltDTO = { | ||
export type PaymentSettingBoltDTO = { | ||
credentials: PaymentCredentialsBoltDTO; | ||
@@ -19,3 +19,3 @@ options?: PaymentOptionsBoltDTO; | ||
}; | ||
export declare type PaymentSettingCardPointeDTO = { | ||
export type PaymentSettingCardPointeDTO = { | ||
credentials: PaymentCredentialsCardPointeDTO; | ||
@@ -25,11 +25,11 @@ options?: PaymentOptionsCardPointeDTO; | ||
}; | ||
export declare type PaymentSettingConvergeDTO = { | ||
export type PaymentSettingConvergeDTO = { | ||
credentials: PaymentCredentialsConvergeDTO; | ||
paymentCardTokenScope?: Maybe<string>; | ||
}; | ||
export declare type PaymentSettingDejavooDTO = { | ||
export type PaymentSettingDejavooDTO = { | ||
credentials: PaymentCredentialsDejavooDTO; | ||
paymentCardTokenScope?: Maybe<string>; | ||
}; | ||
export declare type PaymentSettingTSysDTO = { | ||
export type PaymentSettingTSysDTO = { | ||
credentials: PaymentCredentialsTSysDTO; | ||
@@ -42,16 +42,16 @@ paymentCardTokenScope?: Maybe<string>; | ||
} | ||
export declare type PaymentOptionsBoltDTO = { | ||
export type PaymentOptionsBoltDTO = { | ||
audioEnabled?: boolean; | ||
}; | ||
export declare type PaymentOptionsCardPointeDTO = { | ||
export type PaymentOptionsCardPointeDTO = { | ||
enabledDevices?: PaymentOptionsCardPointeDeviceDTO[]; | ||
}; | ||
export declare type PaymentCredentialsBoltDTO = { | ||
export type PaymentCredentialsBoltDTO = { | ||
merchantId?: string; | ||
hsn?: string; | ||
}; | ||
export declare type PaymentCredentialsCardPointeDTO = { | ||
export type PaymentCredentialsCardPointeDTO = { | ||
merchantId?: string; | ||
}; | ||
export declare type PaymentCredentialsConvergeDTO = { | ||
export type PaymentCredentialsConvergeDTO = { | ||
merchantId?: string; | ||
@@ -63,7 +63,7 @@ userId?: string; | ||
}; | ||
export declare type PaymentCredentialsDejavooDTO = { | ||
export type PaymentCredentialsDejavooDTO = { | ||
registerId?: string; | ||
authKey?: string; | ||
}; | ||
export declare type PaymentCredentialsTSysDTO = { | ||
export type PaymentCredentialsTSysDTO = { | ||
merchantId?: string; | ||
@@ -80,3 +80,4 @@ userId?: string; | ||
Dejavoo = "dejavoo", | ||
TSYS = "tsys" | ||
TSYS = "tsys", | ||
PayU = "payu" | ||
} |
@@ -8,3 +8,3 @@ "use strict"; | ||
PaymentOptionsCardPointeDeviceDTO["IDTech"] = "idtech"; | ||
})(PaymentOptionsCardPointeDeviceDTO = exports.PaymentOptionsCardPointeDeviceDTO || (exports.PaymentOptionsCardPointeDeviceDTO = {})); | ||
})(PaymentOptionsCardPointeDeviceDTO || (exports.PaymentOptionsCardPointeDeviceDTO = PaymentOptionsCardPointeDeviceDTO = {})); | ||
var PaymentGatewayDTO; | ||
@@ -18,3 +18,4 @@ (function (PaymentGatewayDTO) { | ||
PaymentGatewayDTO["TSYS"] = "tsys"; | ||
})(PaymentGatewayDTO = exports.PaymentGatewayDTO || (exports.PaymentGatewayDTO = {})); | ||
PaymentGatewayDTO["PayU"] = "payu"; | ||
})(PaymentGatewayDTO || (exports.PaymentGatewayDTO = PaymentGatewayDTO = {})); | ||
//# sourceMappingURL=payment.js.map |
import { TimeSpanDTO } from "./common"; | ||
export declare type PricingDTO = { | ||
export type PricingDTO = { | ||
id: string; | ||
@@ -4,0 +4,0 @@ name: string; |
@@ -1,2 +0,2 @@ | ||
export declare type PrinterSettingsDTO = { | ||
export type PrinterSettingsDTO = { | ||
saleMerchantCopies: number | null; | ||
@@ -6,3 +6,3 @@ saleCustomerCopies: number | null; | ||
}; | ||
export declare type PrinterDTO = { | ||
export type PrinterDTO = { | ||
id: string; | ||
@@ -17,3 +17,3 @@ name: string; | ||
}; | ||
export declare type PhysicalPrinterDTO = { | ||
export type PhysicalPrinterDTO = { | ||
modelName: string; | ||
@@ -20,0 +20,0 @@ customName: string | null; |
@@ -10,3 +10,3 @@ "use strict"; | ||
PrinterType["Label"] = "label"; | ||
})(PrinterType = exports.PrinterType || (exports.PrinterType = {})); | ||
})(PrinterType || (exports.PrinterType = PrinterType = {})); | ||
//# sourceMappingURL=printers.js.map |
@@ -1,2 +0,2 @@ | ||
export declare type PromotionDTO = { | ||
export type PromotionDTO = { | ||
id: string; | ||
@@ -11,3 +11,3 @@ accountId: string; | ||
}; | ||
export declare type CouponConfigDTO = { | ||
export type CouponConfigDTO = { | ||
enableIssuing?: boolean; | ||
@@ -21,3 +21,3 @@ percentage?: number | null; | ||
}; | ||
export declare type CouponConfigConditionsDTO = { | ||
export type CouponConfigConditionsDTO = { | ||
minOrderTotal?: number | null; | ||
@@ -24,0 +24,0 @@ maxOrderTotal?: number | null; |
@@ -6,3 +6,3 @@ export declare enum SchematizedTileType { | ||
} | ||
export declare type SchematizedTileBaseDTO = { | ||
export type SchematizedTileBaseDTO = { | ||
id: string; | ||
@@ -16,7 +16,7 @@ position: [number, number]; | ||
}; | ||
export declare type SchematizedTileProductButtonDTO = SchematizedTileBaseDTO & { | ||
export type SchematizedTileProductButtonDTO = SchematizedTileBaseDTO & { | ||
type: SchematizedTileType.PRODUCT_BUTTON; | ||
categoryId: string; | ||
}; | ||
export declare type SchematizedTileFolderDTO = SchematizedTileBaseDTO & { | ||
export type SchematizedTileFolderDTO = SchematizedTileBaseDTO & { | ||
type: SchematizedTileType.FOLDER; | ||
@@ -26,7 +26,7 @@ categoryId?: string | null; | ||
}; | ||
export declare type SchematizedTileBackButtonDTO = SchematizedTileBaseDTO & { | ||
export type SchematizedTileBackButtonDTO = SchematizedTileBaseDTO & { | ||
type: SchematizedTileType.BACK_BUTTON; | ||
}; | ||
export declare type SchematizedTileDTO = SchematizedTileProductButtonDTO | SchematizedTileFolderDTO | SchematizedTileBackButtonDTO; | ||
export declare type SchematizedPageDTO = { | ||
export type SchematizedTileDTO = SchematizedTileProductButtonDTO | SchematizedTileFolderDTO | SchematizedTileBackButtonDTO; | ||
export type SchematizedPageDTO = { | ||
id: string; | ||
@@ -36,3 +36,3 @@ dimensions?: [number, number]; | ||
}; | ||
export declare type SchematizedPageGroupDTO = { | ||
export type SchematizedPageGroupDTO = { | ||
id: string; | ||
@@ -42,3 +42,3 @@ isRoot?: boolean; | ||
}; | ||
export declare type SchematizedLayoutDTO = { | ||
export type SchematizedLayoutDTO = { | ||
id: string; | ||
@@ -49,4 +49,4 @@ data: SchematizedPageGroupDTO[]; | ||
}; | ||
export declare type SchematizedLayoutsDTO = { | ||
export type SchematizedLayoutsDTO = { | ||
layouts: SchematizedLayoutDTO[]; | ||
}; |
@@ -9,3 +9,3 @@ "use strict"; | ||
SchematizedTileType["BACK_BUTTON"] = "back-button"; | ||
})(SchematizedTileType = exports.SchematizedTileType || (exports.SchematizedTileType = {})); | ||
})(SchematizedTileType || (exports.SchematizedTileType = SchematizedTileType = {})); | ||
//# sourceMappingURL=schematized.js.map |
@@ -1,2 +0,2 @@ | ||
export declare type SettingDTO = { | ||
export type SettingDTO = { | ||
id: string; | ||
@@ -3,0 +3,0 @@ key: string; |
@@ -1,5 +0,5 @@ | ||
export declare type TableManagementDTO = { | ||
export type TableManagementDTO = { | ||
rooms: TableManagementRoomDTO[]; | ||
}; | ||
export declare type TableManagementRoomDTO = { | ||
export type TableManagementRoomDTO = { | ||
id: string; | ||
@@ -19,3 +19,3 @@ name: string; | ||
} | ||
export declare type TableManagementTableDTO = { | ||
export type TableManagementTableDTO = { | ||
id: string; | ||
@@ -22,0 +22,0 @@ room_id: string; |
@@ -9,3 +9,3 @@ "use strict"; | ||
TableManagementTableShape["Square"] = "square"; | ||
})(TableManagementTableShape = exports.TableManagementTableShape || (exports.TableManagementTableShape = {})); | ||
})(TableManagementTableShape || (exports.TableManagementTableShape = TableManagementTableShape = {})); | ||
var TableManagementTableState; | ||
@@ -15,3 +15,3 @@ (function (TableManagementTableState) { | ||
TableManagementTableState["Blocked"] = "blocked"; | ||
})(TableManagementTableState = exports.TableManagementTableState || (exports.TableManagementTableState = {})); | ||
})(TableManagementTableState || (exports.TableManagementTableState = TableManagementTableState = {})); | ||
//# sourceMappingURL=tableManagement.js.map |
import { TimeAvailabilityInfoDTO } from "./location"; | ||
export declare type TerminalDTO = { | ||
import { Maybe } from "./utils"; | ||
export type TerminalDTO = { | ||
id: string; | ||
@@ -21,9 +22,5 @@ name: string; | ||
aggregatorType?: TerminalAggregatorType; | ||
metadata?: { | ||
onlineOrdering?: { | ||
status?: TerminalOnlineOrderingStatus; | ||
}; | ||
}; | ||
metadata?: TerminalMetadataDTO; | ||
}; | ||
export declare type TerminalPreviewDTO = { | ||
export type TerminalPreviewDTO = { | ||
id: string; | ||
@@ -38,3 +35,15 @@ name: string; | ||
aggregatorConfig?: TerminalAggregatorConfigDTO; | ||
metadata?: TerminalMetadataDTO; | ||
}; | ||
export type TerminalMetadataDTO = { | ||
onlineOrdering?: { | ||
status?: TerminalOnlineOrderingStatusDTO; | ||
menuUpdateStatus?: OnlineOrderingMenuUpdateStatusDTO; | ||
priceMultiplier?: number; | ||
}; | ||
KDS?: Maybe<KDSMetadataDTO>; | ||
}; | ||
export type KDSMetadataDTO = { | ||
isExpediter?: Maybe<boolean>; | ||
}; | ||
export declare enum UniqueGeneratorStrategyDTO { | ||
@@ -44,7 +53,7 @@ Random = "random", | ||
} | ||
export declare type TerminalMibConfigDTO = { | ||
export type TerminalMibConfigDTO = { | ||
url: string; | ||
slug?: string; | ||
}; | ||
export declare type TerminalAggregatorConfigDTO = { | ||
export type TerminalAggregatorConfigDTO = { | ||
type?: TerminalAggregatorType; | ||
@@ -68,3 +77,3 @@ uber?: TerminalAggregatorConfigUberDTO; | ||
} | ||
export declare enum TerminalOnlineOrderingStatus { | ||
export declare enum TerminalOnlineOrderingStatusDTO { | ||
Pending = "pending", | ||
@@ -76,13 +85,18 @@ Active = "active", | ||
} | ||
export declare type TerminalAggregatorConfigUberDTO = { | ||
export declare enum OnlineOrderingMenuUpdateStatusDTO { | ||
InProgress = "in-progress", | ||
Completed = "completed", | ||
Failed = "failed" | ||
} | ||
export type TerminalAggregatorConfigUberDTO = { | ||
storeId: string; | ||
name?: string; | ||
}; | ||
export declare type TerminalAggregatorConfigEmailDTO = { | ||
export type TerminalAggregatorConfigEmailDTO = { | ||
address: string; | ||
}; | ||
export declare type TerminalAggregatorConfigWestSideEatsDTO = { | ||
export type TerminalAggregatorConfigWestSideEatsDTO = { | ||
apiKey: string; | ||
}; | ||
export declare type TerminalAggregatorConfigFigureDTO = { | ||
export type TerminalAggregatorConfigFigureDTO = { | ||
storeId: string; | ||
@@ -89,0 +103,0 @@ storeName: 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; | ||
@@ -8,3 +8,3 @@ (function (UniqueGeneratorStrategyDTO) { | ||
UniqueGeneratorStrategyDTO["Sequential"] = "sequential"; | ||
})(UniqueGeneratorStrategyDTO = exports.UniqueGeneratorStrategyDTO || (exports.UniqueGeneratorStrategyDTO = {})); | ||
})(UniqueGeneratorStrategyDTO || (exports.UniqueGeneratorStrategyDTO = UniqueGeneratorStrategyDTO = {})); | ||
var TerminalAggregatorType; | ||
@@ -19,11 +19,17 @@ (function (TerminalAggregatorType) { | ||
TerminalAggregatorType["WestSideEats"] = "westsideeats"; | ||
})(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 = {})); | ||
})(TerminalAggregatorType || (exports.TerminalAggregatorType = 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 = TerminalOnlineOrderingStatusDTO = {})); | ||
var OnlineOrderingMenuUpdateStatusDTO; | ||
(function (OnlineOrderingMenuUpdateStatusDTO) { | ||
OnlineOrderingMenuUpdateStatusDTO["InProgress"] = "in-progress"; | ||
OnlineOrderingMenuUpdateStatusDTO["Completed"] = "completed"; | ||
OnlineOrderingMenuUpdateStatusDTO["Failed"] = "failed"; | ||
})(OnlineOrderingMenuUpdateStatusDTO || (exports.OnlineOrderingMenuUpdateStatusDTO = OnlineOrderingMenuUpdateStatusDTO = {})); | ||
var TerminalType; | ||
@@ -36,3 +42,3 @@ (function (TerminalType) { | ||
TerminalType["Aggregator"] = "aggregator"; | ||
})(TerminalType = exports.TerminalType || (exports.TerminalType = {})); | ||
})(TerminalType || (exports.TerminalType = TerminalType = {})); | ||
//# sourceMappingURL=terminal.js.map |
@@ -1,2 +0,2 @@ | ||
export declare type UserContext = { | ||
export type UserContext = { | ||
accountId?: string | null; | ||
@@ -6,4 +6,4 @@ locationId?: string | null; | ||
}; | ||
export declare type Maybe<T> = T | null; | ||
export declare type TimeSpan = { | ||
export type Maybe<T> = T | null; | ||
export type TimeSpan = { | ||
start: string; | ||
@@ -10,0 +10,0 @@ duration: number; |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.65", | ||
"version": "0.15.66", | ||
"license": "ISC", | ||
@@ -10,6 +10,6 @@ "files": [ | ||
"dependencies": { | ||
"axios": "^0.21.1" | ||
"axios": "1.4.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^4.3.5" | ||
"typescript": "5.1.6" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
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
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
75613
71
1668
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.21.4(transitive)
Updatedaxios@1.4.0