UNPKG

@shipengine/connect-order-source-api

Version:

This is the typescript/javascript definitions for the order source api

25 lines 945 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WeightSchema = exports.Weight = exports.WeightUnit = void 0; const tslib_1 = require("tslib"); const joi_1 = tslib_1.__importDefault(require("joi")); /** @description The unit describing the weight of an item */ var WeightUnit; (function (WeightUnit) { WeightUnit["Gram"] = "Gram"; WeightUnit["Ounce"] = "Ounce"; WeightUnit["Kilogram"] = "Kilogram"; WeightUnit["Pound"] = "Pound"; })(WeightUnit || (exports.WeightUnit = WeightUnit = {})); /** @description A measurement of weight */ class Weight { /** @description The unit this weight was measured in */ unit; /** @description The value of the weight in weight units */ value; } exports.Weight = Weight; exports.WeightSchema = joi_1.default.object({ unit: joi_1.default.string().required().valid('Gram', 'Ounce', 'Kilogram', 'Pound'), }); //# sourceMappingURL=weight.js.map