forked from EasyPost/easypost-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasypost.legacy.js.map
1 lines (1 loc) · 67.3 KB
/
easypost.legacy.js.map
1
{"version":3,"sources":["webpack:///webpack/bootstrap 60914e1c0be55ffd8c83","webpack:///external \"proptypes\"","webpack:///./resources/base.js","webpack:///external \"nodent-runtime\"","webpack:///./resources/address.js","webpack:///./errors/error.js","webpack:///./resources/tracker.js","webpack:///./resources/shipment.js","webpack:///./resources/batch.js","webpack:///./resources/carrierAccount.js","webpack:///./resources/customsInfo.js","webpack:///./resources/customsItem.js","webpack:///./resources/insurance.js","webpack:///./resources/parcel.js","webpack:///./easypost.js","webpack:///external \"superagent\"","webpack:///external \"os\"","webpack:///../package.json","webpack:///./errors/validation.js","webpack:///./errors/notImplemented.js","webpack:///./resources/apiKey.js","webpack:///./resources/carrierType.js","webpack:///./resources/order.js","webpack:///./resources/pickup.js","webpack:///./resources/report.js","webpack:///./resources/scan_form.js","webpack:///./resources/user.js","webpack:///./resources/webhook.js","webpack:///./errors/request.js"],"names":["_validationErrors","mapProps","_url","get","create","body","Promise","reject","query","unwrapAll","map","bind","Error","_name","del","key","Array","isArray","toJSON","Object","keys","constructor","propTypes","reduce","toString","forEach","this","args","id","validateProperties","wrapJSON","put","post","retrieve","delete","jsonIdKeys","includes","notImplemented","address","string","object","mode","street1","street2","city","state","zip","country","residential","bool","carrier_facility","name","company","phone","email","federal_tax_id","state_tax_id","verify","array","verify_strict","verifications","ErrorClass","captureStackTrace","defineProperty","value","reference","tracking_code","status","signed_by","weight","number","est_delivery_date","shipment_id","carrier","tracking_details","carrier_detail","public_url","fees","created_at","oneOfType","updated_at","verifyParameters","rate","insurance","rpc","file_format","amount","is_return","rates","toLowerCase","filter","service","parseFloat","to_address","shape","from_address","return_address","buyer_address","parcel","customs_info","carrier_accounts","arrayOf","carrier_account","scan_form","forms","selected_rate","postage_label","messages","options","services","usps_zone","tracker","refund_status","batch_id","batch_status","batch_message","DEFAULT_LABEL_FORMAT","shipments","num_shipments","label_url","pickup","type","fields","clone","description","readable","credentials","test_credentials","customs_certify","customs_signer","contents_type","contents_explanation","restriction_type","eel_pfc","customs_items","quantity","hs_tariff_number","code","origin_country","currency","provider","provider_id","fee","length","width","height","predefined_package","MS_SECOND","DEFAULT_TIMEOUT","DEFAULT_BASE_URL","UA_INFO","client_version","version","lang","lang_version","process","publisher","platform","EASYPOST_UA_HEADER","DEFAULT_HEADERS","JSON","stringify","METHODS","GET","POST","PUT","PATCH","DELETE","RESOURCES","Address","ApiKey","Batch","CarrierAccount","CarrierType","CustomsInfo","CustomsItem","Insurance","Order","Parcel","Pickup","Report","ScanForm","Shipment","Tracker","User","Webhook","API","timeout","baseUrl","agent","window","indexOf","buildPath","accept","set","buildHeaders","auth","send","response","request","createMessage","NAME","STATUS","ValidationError","errors","NotImplementedError","user_id","children","concat","convertKeyMap","logo","min_datetime","max_datetime","is_account_address","instructions","confirmation","shipment","batch","proptypes","pickup_rates","constructUrl","start_date","end_date","include_children","url","url_expires_at","send_email","message","tracking_codes","form_url","form_file_type","parent_id","phone_number","balance","price_per_shipment","recharge_amount","secondary_recharge_amount","recharge_threshold","disabled_at","RequestError","error","detail"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AC7DA,sC;;;;;;;m5CCGe,0CAgEX,YAAuB,8FAPvBA,iBAOuB,CAPH,IAOG,CACrB,KAAKC,QAAL,GACD,CAlEU,mGAQ0B,CACnC,GAAI,CACF,GAAM,GAAM,UA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e,+MACS,qBADT,IAEJ1B,KAFI,CAEI,SAFJ,GAGJX,IAHI,CAGG,UAHH,GAIJa,GAJI,CAIE,SAJF,GAMJO,SANI,CAMQ,CACjBM,GAAI,oBAAEW,MADW,CAEjBC,OAAQ,oBAAED,MAFO,CAGjBE,KAAM,oBAAEF,MAHS,CAIjByL,IAAK,oBAAEzL,MAJU,CAKjBuM,YAAa,oBAAE/J,SAAF,CAAY,CAAC,oBAAEvC,MAAH,CAAW,oBAAED,MAAb,CAAZ,CALI,CANR,G;;;;;;;iGCHf,yE,urBAEO,GAAMiK,qCAAgB,mEAAtB,CAIMC,kBAAO,cAJb,CAMcsC,YANd,aAQL,eAAwB,CAEtB,2BAAI,EAAJ,CAAc,KAAM,IAAInO,MAAJ,CAAU,iCAAV,CAAN,CAEd,GAAmB,QAAf,UAAJ,CACE,KAAM,IAAIA,MAAJ,CAAU,+BAAV,CAAN,CAGF,GAAM,GAAU4L,cAAc,EAAMrI,MAAN,EAAgB,EAAMsE,IAApC,GAAhB,yFARsB,MAWtB,GAAKuG,KAAL,EAXsB,CAatB,EAAK7L,IAAL,CAAYsJ,IAbU,CActB,EAAKtI,MAAL,CAAc,EAAMA,MAAN,EAAgB,EAAMsE,IAdd,CAgBlB,EAAMpI,IAhBY,GAiBpB,EAAK4O,MAAL,CAAc,EAAM5O,IAAN,CAAW2O,KAAX,CAAiBb,OAjBX,CAkBpB,EAAKvB,MAAL,CAAc,EAAMvM,IAAN,CAAW2O,KAAX,CAAiBpC,MAlBX,GAoBvB,CA5BI,0C,gBAMcmC,Y","file":"easypost.legacy.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 13);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 60914e1c0be55ffd8c83","module.exports = require(\"proptypes\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"proptypes\"\n// module id = 0\n// module chunks = 0","import ValidationError from '../errors/validation';\nimport NotImplementedError from '../errors/notImplemented';\n\nexport default api => (\n class Base {\n static _url = null;\n static _name = null;\n static key = null;\n static propTypes = {};\n static jsonIdKeys = [];\n\n static async retrieve(id, urlPrefix) {\n try {\n const url = urlPrefix ? `${urlPrefix}/${id}` : `${this._url}/${id}`;\n const res = (await api.get(url));\n return this.create(res.body);\n } catch (e) {\n return Promise.reject(e);\n }\n }\n\n static async all(query = {}, url) {\n try {\n url = url || this._url;\n const res = await api.get(url, { query });\n return this.unwrapAll(res.body).map(this.create.bind(this));\n } catch (e) {\n return Promise.reject(e);\n }\n }\n\n static async delete(id) {\n if (!id) {\n throw new Error(`No id was passed into ${this._name} delete()`);\n }\n\n try {\n return await api.del(`${this._url}/${id}`);\n } catch (e) {\n return Promise.reject(e);\n }\n }\n\n static notImplemented(fnName) {\n return Promise.reject(new NotImplementedError(fnName, this._url));\n }\n\n static wrapJSON(json) {\n return { [this.key]: json };\n }\n\n static create(data) {\n return new this(data);\n }\n\n static unwrapAll(data) {\n if (Array.isArray(data)) return data;\n return data[this._url];\n }\n\n _validationErrors = null;\n\n // suppressVAlidation is used when creating objects from API responses-\n // the API returns keys that we don't later on use for creating or editing.\n // We want access to read these, but we don't want to throw validation\n // errors; they're valid, but read-only. Note to self: maybe add a readonly\n // type that uses getters and setters?\n constructor(data = {}) {\n this.mapProps(data);\n }\n\n validateProperties(throwOnFailure = true) {\n this._validationErrors = null;\n const props = this.toJSON();\n\n // Loop through proptypes and match them against props; this will catch\n // issues such as isRequred or type mismatches.\n const errors = Object.keys(this.constructor.propTypes).reduce((errorHash, key) => {\n const err = this.constructor.propTypes[key](props, key, `${this.constructor._name}`, 'prop', key);\n\n if (err) {\n /* eslint no-param-reassign: 0 */\n errorHash = errorHash || {};\n errorHash[key] = err.toString();\n return errorHash;\n }\n\n return errorHash;\n }, false);\n\n this._validationErrors = errors || null;\n\n if (errors && throwOnFailure) {\n throw new ValidationError(errors, this.constructor._name);\n }\n\n return errors;\n }\n\n // Map data props to `this`, so that it can be used easily. Someday, we'll\n // have cross browser proxy support and do neat getter/setter things. For\n // now, just map it on the instance.\n mapProps(data) {\n Object.keys(data).forEach((key) => {\n this[key] = data[key];\n });\n }\n\n verifyParameters(parameters = {}, ...args) {\n if (parameters.this) {\n parameters.this.forEach((p) => {\n if (!this[p]) {\n throw new Error(`Object requires ${p} to be set.`);\n }\n });\n }\n\n if (parameters.args) {\n parameters.args.forEach((p, i) => {\n if (!args[i]) {\n throw new Error(`Missing parameter: ${p}`);\n }\n });\n }\n }\n\n async rpc(path, body, pathPrefix, method = 'post') {\n const slashPath = path ? `/${path}` : '';\n const prefix = pathPrefix || this.constructor._url;\n const url = `${prefix}/${this.id}${slashPath}`;\n\n try {\n let res;\n\n if (method === 'get') {\n res = await api[method](url, { query: body });\n } else if (body) {\n res = await api[method](url, { body });\n } else {\n res = await api[method](url);\n }\n\n this.mapProps(res.body);\n return this;\n } catch (e) {\n throw e;\n }\n }\n\n async save() {\n try {\n this.validateProperties();\n } catch (e) {\n return Promise.reject(e);\n }\n\n try {\n const data = this.constructor.wrapJSON(this.toJSON());\n\n let res;\n\n if (this.id) {\n res = await api.put(`${this._url || this.constructor._url}/${this.id}`, { body: data });\n } else {\n res = await api.post(this._url || this.constructor._url, { body: data });\n }\n\n this.mapProps(res.body);\n return this;\n } catch (e) {\n throw (e);\n }\n }\n\n async retrieve() {\n if (this.id) {\n const res = await this.constructor.retrieve(this.id);\n const props = res.toJSON();\n\n Object.keys(props).forEach((k) => {\n this[k] = props[k];\n });\n } else {\n throw new Error('Cannot retrieve an object without an id.');\n }\n }\n\n async delete() {\n if (this.id) {\n await this.constructor.delete(this.id);\n return this;\n }\n\n throw new Error('Cannot delete an object without an id.');\n }\n\n toJSON() {\n const idKeys = this.constructor.jsonIdKeys;\n\n return Object.keys(this.constructor.propTypes).reduce((json, key) => {\n if (this[key]) {\n if (idKeys.includes(key) && typeof this[key] !== 'object') {\n json[key] = { id: this[key] };\n return json;\n } else if (idKeys.includes(key) && this[key].id) {\n json[key] = { id: this[key].id };\n return json;\n }\n\n // unwrap the json if it's an object instance\n if (this[key].toJSON) {\n json[key] = this[key].toJSON();\n return json;\n }\n\n json[key] = this[key];\n return json;\n }\n\n return json;\n }, {});\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/base.js","module.exports = require(\"nodent-runtime\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"nodent-runtime\"\n// module id = 2\n// module chunks = 0","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class Address extends base(api) {\n static _name = 'Address';\n static _url = 'addresses';\n static key = 'address';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n mode: T.string,\n street1: T.string,\n street2: T.string,\n city: T.string,\n state: T.string,\n zip: T.string,\n country: T.string,\n residential: T.bool,\n carrier_facility: T.string,\n name: T.string,\n company: T.string,\n phone: T.string,\n email: T.string,\n federal_tax_id: T.string,\n state_tax_id: T.string,\n verify: T.array,\n verify_strict: T.array,\n verifications: T.object,\n }\n\n static all() {\n return this.notImplemented('all');\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n // Object format is { address: { ... }, verify: [ ] }, so we need to pull\n // the verify properties to the top level when wrapping.\n static wrapJSON(json) {\n const topLevelKeys = ['verify', 'verify_strict'];\n\n return Object.keys(json).reduce((j, k) => {\n /* eslint no-param-reassign: 0 */\n if (topLevelKeys.includes(k)) {\n j[k] = json[k];\n return j;\n }\n\n j.address[k] = json[k];\n return j;\n }, { address: {} });\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/address.js","export default class ErrorClass {\n constructor(message) {\n /* eslint no-prototype-builtins: 0 */\n Error.captureStackTrace(this, this.constructor);\n\n Object.defineProperty(this, 'message', {\n value: message,\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./errors/error.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class Tracker extends base(api) {\n static _name = 'Tracker';\n static _url = 'trackers';\n static key = 'tracker';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n reference: T.string,\n mode: T.string,\n tracking_code: T.string,\n status: T.string,\n signed_by: T.string,\n weight: T.number,\n est_delivery_date: T.object,\n shipment_id: T.string,\n carrier: T.string,\n tracking_details: T.object,\n carrier_detail: T.object,\n public_url: T.string,\n fees: T.array,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/tracker.js","import T from 'proptypes';\nimport base from './base';\nimport address from './address';\nimport parcel from './parcel';\nimport customsInfo from './customsInfo';\nimport insurance from './insurance';\nimport tracker from './tracker';\n\nexport default (api) => {\n const Address = address(api);\n const Parcel = parcel(api);\n const CustomsInfo = customsInfo(api);\n const Insurance = insurance(api);\n const Tracker = tracker(api);\n\n return class Shipment extends base(api) {\n static _name = 'Shipment';\n static _url = 'shipments';\n static key = 'shipment';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n reference: T.string,\n mode: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n to_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n from_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n return_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n buyer_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n parcel: T.oneOfType([T.string, T.shape(Parcel.propTypes)]),\n customs_info: T.oneOfType([T.string, T.shape(CustomsInfo.propTypes)]),\n carrier_accounts: T.arrayOf(T.string),\n carrier_account: T.string,\n scan_form: T.oneOfType([T.string, T.object]),\n forms: T.array,\n insurance: T.oneOfType([T.string, T.shape(Insurance.propTypes)]),\n rates: T.arrayOf(T.object),\n selected_rate: T.object,\n postage_label: T.object,\n messages: T.array,\n options: T.object,\n is_return: T.bool,\n tracking_code: T.string,\n service: T.string,\n services: T.arrayOf(T.string),\n usps_zone: T.string,\n status: T.string,\n tracker: T.oneOfType([T.string, T.shape(Tracker.propTypes)]),\n fees: T.array,\n refund_status: T.string,\n batch_id: T.string,\n batch_status: T.string,\n batch_message: T.string,\n }\n\n static jsonIdKeys = [\n 'to_address',\n 'from_address',\n 'return_address',\n 'buyer_address',\n 'parcel',\n 'customs_info',\n 'carrier_accounts',\n 'insurance',\n 'tracker',\n ]\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n async buy(rate, insuranceAmount) {\n this.verifyParameters({\n this: ['id'],\n args: ['rate'],\n }, rate);\n\n let rateId = rate;\n\n if (typeof rate === 'object') {\n rateId = rate.id;\n }\n\n const data = {\n rate: {\n id: rateId,\n },\n };\n\n if (insuranceAmount) {\n data.insurance = insuranceAmount;\n }\n\n return this.rpc('buy', data);\n }\n\n async convertLabelFormat(format) {\n this.verifyParameters({\n this: ['id'],\n args: ['format'],\n }, format);\n\n return this.rpc('label', { file_format: format }, undefined, 'get');\n }\n\n async regenerateRates() {\n this.verifyParameters({\n this: ['id'],\n });\n\n return this.rpc('rates', undefined, undefined, 'get');\n }\n\n async insure(amount) {\n this.verifyParameters({\n this: ['id'],\n args: ['amount'],\n }, amount);\n\n return this.rpc('insure', { amount });\n }\n\n async refund() {\n this.verifyParameters({\n this: ['id'],\n });\n\n return this.rpc('refund');\n }\n\n async return() {\n this.verifyParameters({\n this: ['id', 'to_address', 'from_address'],\n });\n\n const data = this.toJSON();\n data.is_return = true;\n return this.rpc('', data);\n }\n\n lowestRate(carriers, services) {\n let rates = this.rates || [];\n\n if (carriers) {\n const carriersLower = carriers.map(c => c.toLowerCase());\n rates = rates.filter(r => carriersLower.includes(r.carrier.toLowerCase()));\n }\n\n if (services) {\n const servicesLower = services.map(s => s.toLowerCase());\n rates = rates.filter(r => servicesLower.includes(r.service.toLowerCase()));\n }\n\n return rates.reduce((lowest, rate) => {\n if (parseFloat(rate.rate) < parseFloat(lowest.rate)) {\n return rate;\n }\n\n return lowest;\n }, rates[0]);\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./resources/shipment.js","import T from 'proptypes';\nimport base from './base';\n\nexport const DEFAULT_LABEL_FORMAT = 'pdf';\n\nexport default api => (\n class Batch extends base(api) {\n static _name = 'Batch';\n static _url = 'batches';\n static key = 'batch';\n\n static propTypes = {\n id: T.string,\n reference: T.string,\n object: T.string,\n mode: T.string,\n state: T.string,\n num_shipments: T.number,\n shipments: T.array,\n status: T.object,\n label_url: T.string,\n scan_form: T.object,\n pickup: T.object,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n addShipment(shipmentId) {\n this.verifyParameters({\n this: ['id'],\n args: ['shipmentId'],\n }, shipmentId);\n\n return this.rpc('add_shipments', { shipments: [{ id: shipmentId }] });\n }\n\n addShipments(shipmentIds) {\n this.verifyParameters({\n this: ['id'],\n args: ['shipmentIds'],\n }, shipmentIds);\n\n return this.rpc('add_shipments', { shipments: shipmentIds.map(s => ({ id: s })) });\n }\n\n removeShipment(shipmentId) {\n this.verifyParameters({\n this: ['id'],\n args: ['shipmentId'],\n }, shipmentId);\n\n return this.rpc('remove_shipments', { shipments: [{ id: shipmentId }] });\n }\n\n removeShipments(shipmentIds) {\n this.verifyParameters({\n this: ['id'],\n args: ['shipmentIds'],\n }, shipmentIds);\n\n return this.rpc('remove_shipments', { shipments: shipmentIds.map(s => ({ id: s })) });\n }\n\n generateLabel(fileFormat = DEFAULT_LABEL_FORMAT) {\n this.verifyParameters({\n this: ['id'],\n args: ['fileFormat'],\n }, fileFormat);\n\n return this.rpc('label', { file_format: fileFormat });\n }\n\n createScanForm() {\n this.verifyParameters({\n this: ['id'],\n });\n\n return this.rpc('scan_form');\n }\n\n buy() {\n this.verifyParameters({\n this: ['id', 'shipments'],\n });\n\n return this.rpc('buy');\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/batch.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class CarrierAccount extends base(api) {\n static _name = 'CarrierAccount';\n static _url = 'carrier_accounts';\n static key = 'carrier_account';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n type: T.string,\n fields: T.object,\n clone: T.bool,\n description: T.string,\n reference: T.string,\n readable: T.string,\n credentials: T.object,\n test_credentials: T.object,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/carrierAccount.js","import T from 'proptypes';\nimport base from './base';\nimport customsItem from './customsItem';\n\nexport default (api) => {\n const CustomsItem = customsItem(api);\n\n return class CustomsInfo extends base(api) {\n static _name = 'CustomsInfo';\n static _url = 'customs_infos';\n static key = 'customs_info';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n mode: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n customs_certify: T.bool,\n customs_signer: T.string,\n contents_type: T.string,\n contents_explanation: T.string,\n restriction_type: T.string,\n eel_pfc: T.string,\n customs_items: T.arrayOf(T.shape(CustomsItem.propTypes)),\n }\n\n static all() {\n return super.notImplemented('all');\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./resources/customsInfo.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class CustomsItem extends base(api) {\n static _name = 'CustomsItem';\n static _url = 'customs_items';\n static key = 'customs_item';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n mode: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n description: T.string,\n quantity: T.number,\n value: T.string, // decimal, so use as a string instead of a number\n weight: T.number,\n hs_tariff_number: T.string,\n code: T.string,\n origin_country: T.string,\n currency: T.string,\n }\n\n static all() {\n return this.notImplemented('all');\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n constructor(data) {\n let { value } = data;\n\n if (value && typeof value !== 'string') {\n value = value.toString();\n }\n\n super({ ...data, value });\n }\n\n async save() {\n if (this.value && typeof this.value !== 'string') {\n this.value = this.value.toString();\n }\n\n return super.save();\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/customsItem.js","import T from 'proptypes';\nimport base from './base';\nimport address from './address';\nimport tracker from './tracker';\n\nexport default (api) => {\n const Address = address(api);\n const Tracker = tracker(api);\n\n return class Insurance extends base(api) {\n static _name = 'Insurance';\n static _url = 'insurances';\n static key = 'insurance';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n reference: T.string,\n mode: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n amount: T.string,\n provider: T.string,\n provider_id: T.string,\n shipment_id: T.string,\n tracking_code: T.string,\n status: T.string,\n tracker: T.oneOfType([T.string, T.shape(Tracker.propTypes)]),\n to_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n from_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n fee: T.object,\n messages: T.array,\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./resources/insurance.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class Parcel extends base(api) {\n static _name = 'Parcel';\n static _url = 'parcels';\n static key ='parcel';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n mode: T.string,\n length: T.number,\n width: T.number,\n height: T.number,\n predefined_package: T.string,\n weight: T.number,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n }\n\n static all() {\n return this.notImplemented('all');\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/parcel.js","import superagent from 'superagent';\nimport os from 'os';\n\nimport pkg from '../package.json';\n\nimport Address from './resources/address';\nimport ApiKey from './resources/apiKey';\nimport Batch from './resources/batch';\nimport CarrierAccount from './resources/carrierAccount';\nimport CarrierType from './resources/carrierType';\nimport CustomsInfo from './resources/customsInfo';\nimport CustomsItem from './resources/customsItem';\nimport Insurance from './resources/insurance';\nimport Order from './resources/order';\nimport Parcel from './resources/parcel';\nimport Pickup from './resources/pickup';\nimport Report from './resources/report';\nimport ScanForm from './resources/scan_form';\nimport Shipment from './resources/shipment';\nimport Tracker from './resources/tracker';\nimport User from './resources/user';\nimport Webhook from './resources/webhook';\n\nimport RequestError from './errors/request';\n\nexport const MS_SECOND = 1000;\nexport const DEFAULT_TIMEOUT = 120 * MS_SECOND;\nexport const DEFAULT_BASE_URL = 'https://api.easypost.com/v2/';\n\nexport const UA_INFO = {\n client_version: pkg.version,\n lang: 'nodejs',\n lang_version: process.version,\n publisher: 'easypost',\n platform: os.platform(),\n};\n\nexport const EASYPOST_UA_HEADER = 'X-EasyPost-Client-User-Agent';\n\nexport const DEFAULT_HEADERS = {\n 'Accept-Encoding': 'gzip,deflate,sdch,br',\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'User-Agent': `EasyPost/v2 NodejsClient/${pkg.version}`,\n [EASYPOST_UA_HEADER]: JSON.stringify(UA_INFO),\n};\n\n// Map HTTP methods to superagent methods.\nexport const METHODS = {\n GET: 'get',\n POST: 'post',\n PUT: 'put',\n PATCH: 'patch',\n DELETE: 'del',\n};\n\nexport const RESOURCES = {\n Address,\n ApiKey,\n Batch,\n CarrierAccount,\n CarrierType,\n CustomsInfo,\n CustomsItem,\n Insurance,\n Order,\n Parcel,\n Pickup,\n Report,\n ScanForm,\n Shipment,\n Tracker,\n User,\n Webhook,\n};\n\nexport default class API {\n // Build request headers to be sent by default with each request, combined\n // (or overridden) by any additional headers\n static buildHeaders(additionalHeaders = {}) {\n const headers = {\n ...DEFAULT_HEADERS,\n ...additionalHeaders,\n };\n\n if (typeof window === 'undefined') {\n return headers;\n }\n\n delete headers['User-Agent'];\n delete headers['Accept-Encoding'];\n return headers;\n }\n\n constructor(key, options = {}) {\n if (!key) {\n throw new Error('No API key supplied. Pass in an API key as the first argument.');\n }\n\n this.key = key;\n this.timeout = options.timeout || DEFAULT_TIMEOUT;\n this.baseUrl = options.baseUrl || DEFAULT_BASE_URL;\n this.agent = superagent;\n\n Object.keys(RESOURCES).forEach((c) => {\n this[c] = RESOURCES[c](this);\n });\n }\n\n // If the path passed in is a full URI, use it; otherwise, prepend the base\n // url from the api.\n buildPath(path = '') {\n if (path.indexOf('http') === 0) {\n return path;\n }\n\n return this.baseUrl + path;\n }\n\n async request(path = '', method = METHODS.GET, params = {}, headers = {}) {\n const {\n query,\n body,\n } = params;\n\n const req = this.agent[method](this.buildPath(path))\n .accept('json')\n .set('Content-Type', 'application/json')\n .set(API.buildHeaders(headers))\n .auth(this.key);\n\n if (body) { req.send(body); }\n\n if (query) { req.query(query); }\n\n try {\n const res = await req;\n return res;\n } catch (e) {\n if (e.response && e.response.body) {\n throw new RequestError(e.response.body, path);\n }\n\n throw e;\n }\n }\n\n get(path, params, headers) { return this.request(path, METHODS.GET, params, headers); }\n post(path, params, headers) { return this.request(path, METHODS.POST, params, headers); }\n put(path, params, headers) { return this.request(path, METHODS.PUT, params, headers); }\n patch(path, params, headers) { return this.request(path, METHODS.PATCH, params, headers); }\n del(path, params, headers) { return this.request(path, METHODS.DELETE, params, headers); }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./easypost.js","module.exports = require(\"superagent\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"superagent\"\n// module id = 14\n// module chunks = 0","module.exports = require(\"os\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"os\"\n// module id = 15\n// module chunks = 0","module.exports = {\"name\":\"@easypost/api\",\"description\":\"EasyPost Node Client Library\",\"version\":\"3.2.0\",\"author\":\"Easypost Engineering <[email protected]>\",\"homepage\":\"https://easypost.com\",\"bin\":{\"easypost\":\"./repl.js\"},\"repository\":{\"type\":\"git\",\"url\":\"git://github.com/easypost/easypost-node.git\"},\"main\":\"index.js\",\"engines\":{\"node\":\">= v0.10.0\"},\"scripts\":{\"test\":\"eslint src && mocha --require ./test/common.js --compilers js:babel-register --recursive ./test\",\"test:coverage\":\"cross-env NODE_ENV=test nyc mocha --recursive ./test\",\"build\":\"webpack --config webpack.config.js\",\"lint\":\"eslint src\",\"watch\":\"webpack --watch --config webpack.config.js\",\"repl\":\"./repl.js --local\"},\"dependencies\":{\"babel-polyfill\":\"^6.23.0\",\"nodent-runtime\":\"^3.0.4\",\"proptypes\":\"^1.1.0\",\"regenerator-runtime\":\"^0.11.0\",\"source-map-support\":\"^0.5.0\",\"superagent\":\"^3.8.0\",\"yargs\":\"^10.0.3\"},\"devDependencies\":{\"babel-core\":\"^6.24.1\",\"babel-eslint\":\"^8.0.1\",\"babel-loader\":\"^7.0.0\",\"babel-plugin-istanbul\":\"^4.1.1\",\"babel-preset-env\":\"^1.6.1\",\"babel-preset-minify\":\"^0.2.0\",\"babel-preset-stage-2\":\"^6.24.1\",\"babel-register\":\"^6.24.1\",\"chai\":\"^3.5.0\",\"chai-as-promised\":\"^7.1.1\",\"cross-env\":\"^5.1.1\",\"eslint\":\"^4.10.0\",\"eslint-config-airbnb-base\":\"^12.1.0\",\"eslint-import-resolver-webpack\":\"^0.8.1\",\"eslint-plugin-import\":\"^2.2.0\",\"fast-async\":\"^6.3.0\",\"json-loader\":\"^0.5.4\",\"mocha\":\"^4.0.1\",\"nyc\":\"^11.2.1\",\"sinon\":\"^4.0.2\",\"sinon-chai\":\"^2.9.0\",\"vows\":\"~0.8.1\",\"webpack\":\"^3.8.1\",\"webpack-node-externals\":\"^1.5.4\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../package.json\n// module id = 16\n// module chunks = 0","import Error from './error';\n\nexport const createMessage = className => (\n `Failed validating ${className}. View \\`e.errors\\` for details.`\n);\n\nexport const NAME = 'ValidationError';\nexport const STATUS = 422;\n\nexport default class ValidationError extends Error {\n constructor(errors, className) {\n const message = createMessage(className);\n super(message);\n\n this.name = NAME;\n this.errors = errors;\n this.status = STATUS;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./errors/validation.js","import Error from './error';\n\nexport const NAME = 'NotImplementedError';\nexport const STATUS = 405;\n\nexport const createMessage = (method, endpoint) => (\n `Method ${method} not implemented for api endpoint ${endpoint}`\n);\n\nexport default class NotImplementedError extends Error {\n constructor(method, endpoint) {\n const message = createMessage(method, endpoint);\n super(message);\n\n this.name = NAME;\n this.status = STATUS;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./errors/notImplemented.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class ApiKey extends base(api) {\n static _name = 'ApiKey';\n static _url = 'api_keys';\n\n static propTypes = {\n id: T.string,\n keys: T.array,\n children: T.array,\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n static retrieve() {\n return this.notImplemented('retrieve');\n }\n\n async save() {\n return this.constructor.notImplemented('save');\n }\n\n static convertKeyMap(data) {\n if (!data.keys) { return []; }\n\n let res = data.keys.map(k => ({ ...k, user_id: data.id }));\n\n if (data.children && data.children.length) {\n res = res.concat(data.children.reduce((arr, d) => arr.concat(this.convertKeyMap(d)), []));\n }\n\n return res;\n }\n\n static unwrapAll(data) {\n return this.convertKeyMap(data);\n }\n\n enable() {\n this.verifyParameters({\n this: ['id'],\n });\n\n return this.rpc('enable', undefined, this.constructor._url);\n }\n\n disable() {\n this.verifyParameters({\n this: ['id'],\n });\n\n return this.rpc('disable', undefined, this.constructor._url);\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/apiKey.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class CarrierType extends base(api) {\n static _name = 'CarrierType';\n static _url = 'carrier_types';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n type: T.string,\n readable: T.string,\n logo: T.string,\n fields: T.object,\n }\n\n static retrieve() {\n return super.notImplemented('retrieve');\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n async save() {\n return this.constructor.notImplemented('save');\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/carrierType.js","import T from 'proptypes';\n\nimport address from './address';\nimport shipment from './shipment';\nimport base from './base';\n\nexport default (api) => {\n const Address = address(api);\n const Shipment = shipment(api);\n\n return class Order extends base(api) {\n static _name = 'Order';\n static _url = 'orders';\n static key = 'order';\n\n static propTypes = {\n id: T.string,\n reference: T.string,\n object: T.string,\n mode: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n to_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n from_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n return_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n buyer_address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n shipments: T.arrayOf(T.shape(Shipment.propTypes)),\n rates: T.arrayOf(T.object),\n messages: T.arrayOf(T.object),\n is_return: T.bool,\n carrier_accounts: T.arrayOf(T.oneOfType([T.string, T.object])),\n }\n\n static jsonIdKeys = [\n 'to_address',\n 'from_address',\n 'return_address',\n 'buyer_address',\n ]\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n async buy(carrier, service) {\n this.verifyParameters({\n this: ['id'],\n args: ['carrier', 'service'],\n }, carrier, service);\n\n return this.rpc('buy', { carrier, service });\n }\n\n async getRates() {\n return this.rpc('rates', undefined, undefined, 'get');\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./resources/order.js","import T from 'proptypes';\nimport base from './base';\nimport shipment from './shipment';\nimport batch from './batch';\nimport address from './address';\nimport carrierAccount from './carrierAccount';\n\nexport default (api) => {\n const Shipment = shipment(api);\n const Address = address(api);\n const Batch = batch(api);\n const CarrierAccount = carrierAccount(api);\n\n return class Pickup extends base(api) {\n static _name = 'Pickup';\n static _url = 'pickups';\n static key = 'pickup';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n reference: T.string,\n mode: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n min_datetime: T.oneOfType([T.object, T.string]),\n max_datetime: T.oneOfType([T.object, T.string]),\n is_account_address: T.bool,\n instructions: T.string,\n messages: T.object,\n confirmation: T.string,\n address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n shipment: T.oneOfType([T.string, T.shape(Shipment.propTypes)]),\n batch: T.oneOfType([T.string, T.shape(Batch.propTypes)]),\n carrier_accounts: T.arrayOf(T.oneOfType([T.string, T.shape(CarrierAccount.proptypes)])),\n pickup_rates: T.object,\n }\n\n static jsonIdKeys = [\n 'address',\n 'shipment',\n 'batch',\n ]\n\n static all() {\n return this.notImplemented('all');\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n async buy(carrier, service) {\n this.verifyParameters({\n this: ['id'],\n args: ['carrier', 'service'],\n }, carrier, service);\n\n return this.rpc('buy', { carrier, service });\n }\n\n async cancel() {\n this.verifyParameters({\n this: ['id'],\n });\n\n return this.rpc('cancel');\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./resources/pickup.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class Report extends base(api) {\n static _url = 'reports';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n type: T.string,\n mode: T.string,\n status: T.string,\n start_date: T.string,\n end_date: T.string,\n include_children: T.bool,\n url: T.string,\n url_expires_at: T.oneOfType([T.object, T.string]),\n send_email: T.bool,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n }\n\n constructor(data = {}) {\n super(data);\n if (data.type) { this._url = this.constructor.constructUrl(data.type); }\n }\n\n static constructUrl(type) {\n return `reports/${type}`;\n }\n\n static async all(type, query = {}) {\n return super.all(query, this.constructUrl(type));\n }\n\n static wrapJSON(json) {\n return json;\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/report.js","import T from 'proptypes';\nimport base from './base';\nimport address from './address';\n\nexport default (api) => {\n const Address = address(api);\n\n return class ScanForm extends base(api) {\n static _name = 'ScanForm';\n static _url = 'scan_forms';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n status: T.string,\n message: T.string,\n address: T.oneOfType([T.string, T.shape(Address.propTypes)]),\n tracking_codes: T.arrayOf(T.string),\n form_url: T.string,\n form_file_type: T.string,\n batch_id: T.string,\n created_at: T.oneOfType([T.object, T.string]),\n updated_at: T.oneOfType([T.object, T.string]),\n }\n\n static delete() {\n return this.notImplemented('delete');\n }\n\n static wrapJSON(json) {\n return json;\n }\n\n toJSON() {\n if (this.shipments) {\n return {\n shipments: this.shipments.map((s) => {\n if (typeof s === 'string') {\n return { id: s };\n }\n\n return { id: s.id };\n }),\n };\n }\n\n return super.toJSON();\n }\n };\n};\n\n\n\n// WEBPACK FOOTER //\n// ./resources/scan_form.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class User extends base(api) {\n static _name = 'User';\n static _url = 'users';\n static key = 'user';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n parent_id: T.string,\n name: T.string,\n email: T.string,\n phone_number: T.string,\n children: T.array,\n\n // api sends back numbers as strings, even though we want numbers\n balance: T.oneOfType([T.object, T.string]),\n price_per_shipment: T.oneOfType([T.object, T.string]),\n recharge_amount: T.oneOfType([T.object, T.string]),\n secondary_recharge_amount: T.oneOfType([T.object, T.string]),\n recharge_threshold: T.oneOfType([T.object, T.string]),\n }\n\n static all() {\n return this.notImplemented('all');\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/user.js","import T from 'proptypes';\nimport base from './base';\n\nexport default api => (\n class Webhook extends base(api) {\n static _name = 'Webhook';\n static _url = 'webhooks';\n static key = 'webhook';\n\n static propTypes = {\n id: T.string,\n object: T.string,\n mode: T.string,\n url: T.string,\n disabled_at: T.oneOfType([T.object, T.string]),\n }\n }\n);\n\n\n\n// WEBPACK FOOTER //\n// ./resources/webhook.js","import FakeError from './error';\n\nexport const createMessage = (status, url) => (\n `Status ${status} returned from API request to ${url}`\n);\n\nexport const NAME = 'RequestError';\n\nexport default class RequestError extends FakeError {\n /* eslint consistent-return: 0 */\n constructor(error, url) {\n // Make sure an error and url were actually passed in\n if (!error) { throw new Error('No error passed to RequestError'); }\n\n if (typeof url !== 'string') {\n throw new Error('No url passed to RequestError');\n }\n\n const message = createMessage(error.status || error.code, url);\n\n super(message);\n this.error = error;\n\n this.name = NAME;\n this.status = error.status || error.code;\n\n if (error.body) {\n this.detail = error.body.error.message;\n this.errors = error.body.error.errors;\n }\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./errors/request.js"],"sourceRoot":""}