49 lines
1.8 KiB
TypeScript
49 lines
1.8 KiB
TypeScript
export const CONST_KEYS = {
|
|
minRegularOrderValue: 'minRegularOrderValue',
|
|
freeDeliveryThreshold: 'freeDeliveryThreshold',
|
|
deliveryCharge: 'deliveryCharge',
|
|
flashFreeDeliveryThreshold: 'flashFreeDeliveryThreshold',
|
|
flashDeliveryCharge: 'flashDeliveryCharge',
|
|
platformFeePercent: 'platformFeePercent',
|
|
taxRate: 'taxRate',
|
|
tester: 'tester',
|
|
minOrderAmountForCoupon: 'minOrderAmountForCoupon',
|
|
maxCouponDiscount: 'maxCouponDiscount',
|
|
flashDeliverySlotId: 'flashDeliverySlotId',
|
|
readableOrderId: 'readableOrderId',
|
|
versionNum: 'versionNum',
|
|
playStoreUrl: 'playStoreUrl',
|
|
appStoreUrl: 'appStoreUrl',
|
|
popularItems: 'popularItems',
|
|
allItemsOrder: 'allItemsOrder',
|
|
isFlashDeliveryEnabled: 'isFlashDeliveryEnabled',
|
|
supportMobile: 'supportMobile',
|
|
supportEmail: 'supportEmail',
|
|
} as const;
|
|
|
|
export const CONST_LABELS: Record<ConstKey, string> = {
|
|
minRegularOrderValue: 'Minimum Regular Order Value',
|
|
freeDeliveryThreshold: 'Free Delivery Threshold',
|
|
deliveryCharge: 'Delivery Charge',
|
|
flashFreeDeliveryThreshold: 'Flash Free Delivery Threshold',
|
|
flashDeliveryCharge: 'Flash Delivery Charge',
|
|
platformFeePercent: 'Platform Fee Percent',
|
|
taxRate: 'Tax Rate',
|
|
tester: 'Tester',
|
|
minOrderAmountForCoupon: 'Minimum Order Amount for Coupon',
|
|
maxCouponDiscount: 'Maximum Coupon Discount',
|
|
flashDeliverySlotId: 'Flash Delivery Slot ID',
|
|
readableOrderId: 'Readable Order ID',
|
|
versionNum: 'Version Number',
|
|
playStoreUrl: 'Play Store URL',
|
|
appStoreUrl: 'App Store URL',
|
|
popularItems: 'Popular Items',
|
|
allItemsOrder: 'All Items Order',
|
|
isFlashDeliveryEnabled: 'Enable Flash Delivery',
|
|
supportMobile: 'Support Mobile',
|
|
supportEmail: 'Support Email',
|
|
};
|
|
|
|
export type ConstKey = (typeof CONST_KEYS)[keyof typeof CONST_KEYS];
|
|
|
|
export const CONST_KEYS_ARRAY = Object.values(CONST_KEYS) as ConstKey[];
|