UNPKG

@etsoo/appscript

Version:

Applications shared TypeScript framework

89 lines (88 loc) 1.91 kB
import { RepeatOption } from "./RepeatOption"; /** * Product base units * 1 - 9 */ export var ProductBaseUnit; (function (ProductBaseUnit) { /** * Picese * 件 */ ProductBaseUnit[ProductBaseUnit["PC"] = 1] = "PC"; /** * Set * 套 */ ProductBaseUnit[ProductBaseUnit["SET"] = 2] = "SET"; })(ProductBaseUnit || (ProductBaseUnit = {})); var ProductAssetUnit; (function (ProductAssetUnit) { /** * Time * 次 */ ProductAssetUnit[ProductAssetUnit["TIME"] = 99] = "TIME"; /** * Money * 储值 */ ProductAssetUnit[ProductAssetUnit["MONEY"] = 100] = "MONEY"; })(ProductAssetUnit || (ProductAssetUnit = {})); /** * Product weight units * Range 40 - 49 */ export var ProductWeightUnit; (function (ProductWeightUnit) { /** * Gram * 克 */ ProductWeightUnit[ProductWeightUnit["GRAM"] = 40] = "GRAM"; /** * Half Kg * 斤 */ ProductWeightUnit[ProductWeightUnit["JIN"] = 41] = "JIN"; /** * Kilogram * 千克 */ ProductWeightUnit[ProductWeightUnit["KILOGRAM"] = 42] = "KILOGRAM"; /** * Ton * 吨 */ ProductWeightUnit[ProductWeightUnit["TON"] = 49] = "TON"; })(ProductWeightUnit || (ProductWeightUnit = {})); /** * Product other units */ export var ProductOtherUnit; (function (ProductOtherUnit) { /** * Cubic meter * 立方米 */ ProductOtherUnit[ProductOtherUnit["M3"] = 50] = "M3"; })(ProductOtherUnit || (ProductOtherUnit = {})); /** * Product units enum * Repeat options take range 10 - 39 * @see com.etsoo.CoreFramework.Business.ProductUnit */ export const ProductUnit = { ...ProductBaseUnit, ...RepeatOption, ...ProductAssetUnit, ...ProductWeightUnit, ...ProductOtherUnit }; /** * Product asset units enum */ export const AssetUnits = { ...RepeatOption, ...ProductAssetUnit };