UNPKG

clayful

Version:

JavaScript & Node.js SDK for Clayful API

2 lines 45.2 kB
!function(){function e(t,r,o){function a(s,i){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(n)return n(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var m=r[s]={exports:{}};t[s][0].call(m.exports,function(e){return a(t[s][1][e]||e)},m,m.exports,e,t,r,o)}return r[s].exports}for(var n="function"==typeof require&&require,s=0;s<o.length;s++)a(o[s]);return a}return e}()({1:[function(e,t,r){"use strict";function o(e,t,r,o,a,n,s){this.stack=(new Error).stack,this.model=e,this.method=t,this.status=r,this.headers=o,this.code=a,this.message=n,this.validation=s}o.prototype=new Error,o.prototype.constructor=o,o.prototype.name="ClayfulError",o.prototype.isClayful=!0,t.exports=o},{}],2:[function(e,t,r){"use strict";var o=function(){function e(e,t){var r=[],o=!0,a=!1,n=void 0;try{for(var s,i=e[Symbol.iterator]();!(o=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw n}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=e("../clayful-error"),n=e("../util/assign"),s={baseUrl:"https://api.clayful.io",defaultHeaders:{},plugins:{request:null},listeners:{request:[],response:[]},Promise:"function"==typeof Promise?Promise:null};s.optionsToHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return e.language&&(t["Accept-Language"]=e.language),e.currency&&(t["Accept-Currency"]=e.currency),e.timeZone&&(t["Accept-Time-Zone"]=e.timeZone),e.client&&(t.Authorization="Bearer "+e.client),e.customer&&(t["Authorization-Customer"]=e.customer),e.reCAPTCHA&&(t["reCAPTCHA-Response"]=e.reCAPTCHA),e.debugLanguage&&(t["Accept-Debug-Language"]=e.debugLanguage),e.headers&&n(t,e.headers),t},s.getEndpoint=function(e){return""+s.baseUrl+e},s.normalizeQueryValues=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},s.wrapRequestCallback=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t?t.isClayful&&(e.error=t,s.trigger("response",e)):(e.response=r,s.trigger("response",e)),e.callback(t,r,e)}},s.extractRequestArguments=function(e){var t={httpMethod:e.httpMethod,payload:null,meta:{}},r=e.args.slice(e.params.length);t.requestUrl=e.params.reduce(function(t,r,o){return t.replace("{"+r+"}",e.args[o])},e.path),t.callback=r.pop(),"function"!=typeof t.callback&&(r.push(t.callback),t.callback=function(){},t.callback.Promise=s.Promise),"POST"!==e.httpMethod&&"PUT"!==e.httpMethod||e.withoutPayload||(t.payload=r.shift()||null);var o=r.shift()||{};return t.query=s.normalizeQueryValues(o.query||{}),t.headers=s.optionsToHeaders(o||{}),t.meta=o.meta||{},t},s.callAPI=function(e){var t=s.plugins.request,r=s.extractRequestArguments(e);n(r,{requestUrl:s.getEndpoint(r.requestUrl),modelName:e.modelName,methodName:e.methodName,usesFormData:e.usesFormData,error:null,response:null});var o=n({},s.defaultHeaders);r.headers=n(o,r.headers),s.trigger("request",r);var i=s.wrapRequestCallback(r);return r.callback.Promise&&(i.Promise=r.callback.Promise),t(r,a,i)},s.request=function(e,t){var r=e.module||"",a=r.split("."),i=o(a,2),u=i[0],c=i[1];if(!r)throw new Error("Request module name is required.");if(!s[u])throw new Error("Model '"+u+"' doesn't exist.");if(!s[u][c])throw new Error("Method '"+c+"' doesn't exist in "+u+".");var m=s[u]["_"+c]();e.params=e.params||{},e.payload=e.payload||null,e.options=n({query:e.query||{},headers:e.headers||{}},e.options||{});var l=m.params.map(function(t){return e.params[t]||""});return"POST"!==m.httpMethod&&"PUT"!==m.httpMethod||m.withoutPayload||l.push(e.payload),l.push(e.options),t&&l.push(t),s.callAPI(n(m,{args:l}))},s.setModels=function(e){var t=e(s.callAPI);return s.models=function(){var e=[];for(var r in t)e.push(r);return e},n(s,t)},s.config=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(s.defaultHeaders,s.optionsToHeaders(e))},s.install=function(e,t){s.plugins[e]=s.plugins[e]?s.plugins[e](t):t},s.on=function(e,t){var r=s.listeners[e];r&&r.push(t)},s.off=function(e,t){var r=s.listeners[e],o=r.indexOf(t);r.splice(o,1)},s.trigger=function(e,t){for(var r=s.listeners[e],o=0;o<r.length;o++)r[o](t)},s.formatImageUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];for(var o in t)r.push(o+"="+t[o]);return e+(r.length?"?"+r.join("&"):"")},s.formatNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof e)return"";var r=t.precision,a=t.delimiter,n=void 0===a?{}:a,s=n.thousands,i=void 0===s?"":s,u=n.decimal,c=void 0===u?".":u;if("number"==typeof r){var m=Math.pow(10,r);e=Math.round(e*m)/m}for(var l=String(e).split("."),p=o(l,2),d=p[0],h=p[1],f=void 0===h?"":h,g=d.split("").reverse(),M=[];g.length;)M.unshift(g.splice(0,3).reverse().join(""));if(r)for(var y=r-f.length,v=0;v<y;v++)f+="0";return[M.join(i),f].join(f?c:"")},s.formatPrice=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=s.formatNumber(e,t);if(!r)return"";var o=t.symbol,a=void 0===o?"":o,n=t.format;return(void 0===n?"{price}":n).replace("{symbol}",a).replace("{price}",r)},t.exports=s},{"../clayful-error":1,"../util/assign":30}],3:[function(e,t,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=e("../clayful"),n=e("../models-js"),s=e("../local-cart");a.defaultHeaders["Clayful-SDK"]="clayful-js",a.setModels(n),a.LocalCart=s,"object"===(void 0===t?"undefined":o(t))&&t.exports&&(t.exports=a),"object"===("undefined"==typeof window?"undefined":o(window))&&(window.Clayful=a)},{"../clayful":2,"../local-cart":4,"../models-js":15}],4:[function(e,t,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=e("../util/assign"),n={storage:"object"===("undefined"==typeof window?"undefined":o(window))?window.localStorage:null,storageKey:"__cartItems__",items:null};n.parseISOString=function(e){var t=e.split(/\D+/);return new Date(Date.UTC(t[0],--t[1],t[2],t[3],t[4],t[5],t[6]))},n.config=function(e){return a(n,e)},n.limitTotal=function(e){if(e){n.items.reduce(function(e,t){return e.concat(t,t.bundleItems||[])},[]).length>50&&(n.items=n.items.slice(1))}},n.loadItems=function(){return n.items=(n.items||JSON.parse(n.storage.getItem(n.storageKey)||"[]")).map(function(e){return e.addedAt="string"==typeof e.addedAt?n.parseISOString(e.addedAt):e.addedAt,e}),n.items},n.saveItems=function(){n.limitTotal(),n.storage.setItem(n.storageKey,JSON.stringify(n.items))},n.setItemDefaults=function(e){return[].concat(e,e.bundleItems||[]).forEach(function(e){e._id=e._id||(Math.random()+"").slice(2,17),e.shippingMethod=e.shippingMethod||null}),e},n.findItem=function(e,t){"string"!=typeof e||t||(t=e,e=n.items),e=e||[];for(var r=0;r<e.length;r++){var o=e[r];if(o._id===t+"")return o}return null},n.addItem=n.addItemForMe=function(e){if(e)return n.setItemDefaults(e),e.bundleItems=e.bundleItems||[],e.addedAt=new Date,n.items=n.loadItems().concat(e),n.saveItems(),e},n.updateItem=n.updateItemForMe=function(e,t){if(t){n.loadItems();var r=n.findItem(n.items,e);if(r){var o=t.bundleItems;if(delete t.bundleItems,a(r,t),o)if(r.bundleItems=r.bundleItems||[],o.length)r.bundleItems=o;else{for(var s in o)!function(e){var t=n.findItem(r.bundleItems,e),s=o[e];!t&&s&&r.bundleItems.push(s),t&&s&&a(t,s),null===s&&(r.bundleItems=r.bundleItems.filter(function(t){return t._id!==e}))}(s)}return n.setItemDefaults(r),n.saveItems(),r}}},n.deleteItem=n.deleteItemForMe=function(e){n.items=n.loadItems().filter(function(t){return t._id!==e+""}),n.saveItems()},n.empty=n.emptyForMe=function(){n.items=[],n.saveItems()},n.loadItems(),"object"===(void 0===t?"undefined":o(t))&&(t.exports=n),"object"===("undefined"==typeof window?"undefined":o(window))&&("object"===o(window.Clayful)?window.Clayful.LocalCart=n:window.Clayful={LocalCart:n})},{"../util/assign":30}],5:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Brand",path:"brands",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/brands/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/brands/{brandId}",params:["brandId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/brands",params:[]}},t}},{"../util/assign":30}],6:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Cart",path:"",addItemForMe:function(){return e(o(t._addItemForMe(),{args:Array.prototype.slice.call(arguments)}))},checkoutAsNonRegisteredForMe:function(){return e(o(t._checkoutAsNonRegisteredForMe(),{args:Array.prototype.slice.call(arguments)}))},checkoutForMe:function(){return e(o(t._checkoutForMe(),{args:Array.prototype.slice.call(arguments)}))},countItemsForMe:function(){return e(o(t._countItemsForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteItemForMe:function(){return e(o(t._deleteItemForMe(),{args:Array.prototype.slice.call(arguments)}))},emptyForMe:function(){return e(o(t._emptyForMe(),{args:Array.prototype.slice.call(arguments)}))},getAsNonRegisteredForMe:function(){return e(o(t._getAsNonRegisteredForMe(),{args:Array.prototype.slice.call(arguments)}))},getForMe:function(){return e(o(t._getForMe(),{args:Array.prototype.slice.call(arguments)}))},updateItemForMe:function(){return e(o(t._updateItemForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._addItemForMe=function(){return{modelName:t.name,methodName:"addItemForMe",httpMethod:"POST",path:"/v1/me/cart/items",params:[]}},t._checkoutAsNonRegisteredForMe=function(){return{modelName:t.name,methodName:"checkoutAsNonRegisteredForMe",httpMethod:"POST",path:"/v1/me/non-registered/cart/checkout/{type}",params:["type"]}},t._checkoutForMe=function(){return{modelName:t.name,methodName:"checkoutForMe",httpMethod:"POST",path:"/v1/me/cart/checkout/{type}",params:["type"]}},t._countItemsForMe=function(){return{modelName:t.name,methodName:"countItemsForMe",httpMethod:"GET",path:"/v1/me/cart/items/count",params:[]}},t._deleteItemForMe=function(){return{modelName:t.name,methodName:"deleteItemForMe",httpMethod:"DELETE",path:"/v1/me/cart/items/{itemId}",params:["itemId"]}},t._emptyForMe=function(){return{modelName:t.name,methodName:"emptyForMe",httpMethod:"DELETE",path:"/v1/me/cart/items",params:[]}},t._getAsNonRegisteredForMe=function(){return{modelName:t.name,methodName:"getAsNonRegisteredForMe",httpMethod:"POST",path:"/v1/me/non-registered/cart",params:[]}},t._getForMe=function(){return{modelName:t.name,methodName:"getForMe",httpMethod:"POST",path:"/v1/me/cart",params:[]}},t._updateItemForMe=function(){return{modelName:t.name,methodName:"updateItemForMe",httpMethod:"PUT",path:"/v1/me/cart/items/{itemId}",params:["itemId"]}},t}},{"../util/assign":30}],7:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Catalog",path:"catalogs",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/catalogs/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/catalogs/{catalogId}",params:["catalogId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/catalogs",params:[]}},t}},{"../util/assign":30}],8:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Collection",path:"collections",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/collections/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/collections/{collectionId}",params:["collectionId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/collections",params:[]}},t}},{"../util/assign":30}],9:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Country",path:"countries",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/countries/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/countries/{countryId}",params:["countryId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/countries",params:[]}},t}},{"../util/assign":30}],10:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Coupon",path:"coupons",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/coupons/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/coupons/{couponId}",params:["couponId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/coupons",params:[]}},t}},{"../util/assign":30}],11:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Currency",path:"currencies",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/currencies/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/currencies/{currencyId}",params:["currencyId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/currencies",params:[]}},t}},{"../util/assign":30}],12:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Customer",path:"customers",authenticate:function(){return e(o(t._authenticate(),{args:Array.prototype.slice.call(arguments)}))},authenticateBy3rdParty:function(){return e(o(t._authenticateBy3rdParty(),{args:Array.prototype.slice.call(arguments)}))},countCouponsForMe:function(){return e(o(t._countCouponsForMe(),{args:Array.prototype.slice.call(arguments)}))},createMe:function(){return e(o(t._createMe(),{args:Array.prototype.slice.call(arguments)}))},deleteCouponForMe:function(){return e(o(t._deleteCouponForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteMe:function(){return e(o(t._deleteMe(),{args:Array.prototype.slice.call(arguments)}))},getMe:function(){return e(o(t._getMe(),{args:Array.prototype.slice.call(arguments)}))},isAuthenticated:function(){return e(o(t._isAuthenticated(),{args:Array.prototype.slice.call(arguments)}))},listCouponsForMe:function(){return e(o(t._listCouponsForMe(),{args:Array.prototype.slice.call(arguments)}))},recoverCredential:function(){return e(o(t._recoverCredential(),{args:Array.prototype.slice.call(arguments)}))},requestVerification:function(){return e(o(t._requestVerification(),{args:Array.prototype.slice.call(arguments)}))},requestVerificationEmail:function(){return e(o(t._requestVerificationEmail(),{args:Array.prototype.slice.call(arguments)}))},resetPassword:function(){return e(o(t._resetPassword(),{args:Array.prototype.slice.call(arguments)}))},updateCredentialsForMe:function(){return e(o(t._updateCredentialsForMe(),{args:Array.prototype.slice.call(arguments)}))},updateMe:function(){return e(o(t._updateMe(),{args:Array.prototype.slice.call(arguments)}))},verify:function(){return e(o(t._verify(),{args:Array.prototype.slice.call(arguments)}))}};return t._authenticate=function(){return{modelName:t.name,methodName:"authenticate",httpMethod:"POST",path:"/v1/customers/auth",params:[]}},t._authenticateBy3rdParty=function(){return{modelName:t.name,methodName:"authenticateBy3rdParty",httpMethod:"POST",path:"/v1/customers/auth/{vendor}",params:["vendor"]}},t._countCouponsForMe=function(){return{modelName:t.name,methodName:"countCouponsForMe",httpMethod:"GET",path:"/v1/me/coupons/count",params:[]}},t._createMe=function(){return{modelName:t.name,methodName:"createMe",httpMethod:"POST",path:"/v1/me",params:[]}},t._deleteCouponForMe=function(){return{modelName:t.name,methodName:"deleteCouponForMe",httpMethod:"DELETE",path:"/v1/me/coupons/{couponId}",params:["couponId"]}},t._deleteMe=function(){return{modelName:t.name,methodName:"deleteMe",httpMethod:"DELETE",path:"/v1/me",params:[]}},t._getMe=function(){return{modelName:t.name,methodName:"getMe",httpMethod:"GET",path:"/v1/me",params:[]}},t._isAuthenticated=function(){return{modelName:t.name,methodName:"isAuthenticated",httpMethod:"GET",path:"/v1/customers/auth",params:[]}},t._listCouponsForMe=function(){return{modelName:t.name,methodName:"listCouponsForMe",httpMethod:"GET",path:"/v1/me/coupons",params:[]}},t._recoverCredential=function(){return{modelName:t.name,methodName:"recoverCredential",httpMethod:"POST",path:"/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}",params:["credentialField","recoveryMethod"]}},t._requestVerification=function(){return{modelName:t.name,methodName:"requestVerification",httpMethod:"POST",path:"/v1/customers/verifications/{channelSlug}",params:["channelSlug"]}},t._requestVerificationEmail=function(){return{modelName:t.name,methodName:"requestVerificationEmail",httpMethod:"POST",path:"/v1/customers/verifications/emails",params:[]}},t._resetPassword=function(){return{modelName:t.name,methodName:"resetPassword",httpMethod:"PUT",path:"/v1/customers/{customerId}/password",params:["customerId"]}},t._updateCredentialsForMe=function(){return{modelName:t.name,methodName:"updateCredentialsForMe",httpMethod:"PUT",path:"/v1/me/credentials",params:[]}},t._updateMe=function(){return{modelName:t.name,methodName:"updateMe",httpMethod:"PUT",path:"/v1/me",params:[]}},t._verify=function(){return{modelName:t.name,methodName:"verify",httpMethod:"POST",path:"/v1/customers/{customerId}/verified",params:["customerId"]}},t}},{"../util/assign":30}],13:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Group",path:"groups",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/groups/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/groups/{groupId}",params:["groupId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/groups",params:[]}},t}},{"../util/assign":30}],14:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Image",path:"images",countForMe:function(){return e(o(t._countForMe(),{args:Array.prototype.slice.call(arguments)}))},createForMe:function(){return e(o(t._createForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteForMe:function(){return e(o(t._deleteForMe(),{args:Array.prototype.slice.call(arguments)}))},getForMe:function(){return e(o(t._getForMe(),{args:Array.prototype.slice.call(arguments)}))},listForMe:function(){return e(o(t._listForMe(),{args:Array.prototype.slice.call(arguments)}))},updateForMe:function(){return e(o(t._updateForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._countForMe=function(){return{modelName:t.name,methodName:"countForMe",httpMethod:"GET",path:"/v1/me/images/count",params:[]}},t._createForMe=function(){return{modelName:t.name,methodName:"createForMe",httpMethod:"POST",path:"/v1/me/images",params:[],usesFormData:!0}},t._deleteForMe=function(){return{modelName:t.name,methodName:"deleteForMe",httpMethod:"DELETE",path:"/v1/me/images/{imageId}",params:["imageId"]}},t._getForMe=function(){return{modelName:t.name,methodName:"getForMe",httpMethod:"GET",path:"/v1/me/images/{imageId}",params:["imageId"]}},t._listForMe=function(){return{modelName:t.name,methodName:"listForMe",httpMethod:"GET",path:"/v1/me/images",params:[]}},t._updateForMe=function(){return{modelName:t.name,methodName:"updateForMe",httpMethod:"PUT",path:"/v1/me/images/{imageId}",params:["imageId"],usesFormData:!0}},t}},{"../util/assign":30}],15:[function(e,t,r){"use strict";t.exports=function(t){return{Brand:e("./brand.js")(t),Cart:e("./cart.js")(t),Catalog:e("./catalog.js")(t),Collection:e("./collection.js")(t),Country:e("./country.js")(t),Coupon:e("./coupon.js")(t),Currency:e("./currency.js")(t),Customer:e("./customer.js")(t),Group:e("./group.js")(t),Image:e("./image.js")(t),Order:e("./order.js")(t),OrderTag:e("./orderTag.js")(t),PaymentMethod:e("./paymentMethod.js")(t),Product:e("./product.js")(t),Review:e("./review.js")(t),ReviewComment:e("./reviewComment.js")(t),ShippingMethod:e("./shippingMethod.js")(t),ShippingPolicy:e("./shippingPolicy.js")(t),Store:e("./store.js")(t),Subscription:e("./subscription.js")(t),SubscriptionPlan:e("./subscriptionPlan.js")(t),TaxCategory:e("./taxCategory.js")(t),Vendor:e("./vendor.js")(t),WishList:e("./wishList.js")(t)}}},{"./brand.js":5,"./cart.js":6,"./catalog.js":7,"./collection.js":8,"./country.js":9,"./coupon.js":10,"./currency.js":11,"./customer.js":12,"./group.js":13,"./image.js":14,"./order.js":16,"./orderTag.js":17,"./paymentMethod.js":18,"./product.js":19,"./review.js":20,"./reviewComment.js":21,"./shippingMethod.js":22,"./shippingPolicy.js":23,"./store.js":24,"./subscription.js":25,"./subscriptionPlan.js":26,"./taxCategory.js":27,"./vendor.js":28,"./wishList.js":29}],16:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Order",path:"orders",authenticate:function(){return e(o(t._authenticate(),{args:Array.prototype.slice.call(arguments)}))},cancelForMe:function(){return e(o(t._cancelForMe(),{args:Array.prototype.slice.call(arguments)}))},cancelRefundForMe:function(){return e(o(t._cancelRefundForMe(),{args:Array.prototype.slice.call(arguments)}))},countForMe:function(){return e(o(t._countForMe(),{args:Array.prototype.slice.call(arguments)}))},createDownloadUrlForMe:function(){return e(o(t._createDownloadUrlForMe(),{args:Array.prototype.slice.call(arguments)}))},getForMe:function(){return e(o(t._getForMe(),{args:Array.prototype.slice.call(arguments)}))},listBySubscriptionForMe:function(){return e(o(t._listBySubscriptionForMe(),{args:Array.prototype.slice.call(arguments)}))},listForMe:function(){return e(o(t._listForMe(),{args:Array.prototype.slice.call(arguments)}))},markAsNotReceivedForMe:function(){return e(o(t._markAsNotReceivedForMe(),{args:Array.prototype.slice.call(arguments)}))},markAsReceivedForMe:function(){return e(o(t._markAsReceivedForMe(),{args:Array.prototype.slice.call(arguments)}))},requestRefundForMe:function(){return e(o(t._requestRefundForMe(),{args:Array.prototype.slice.call(arguments)}))},updateCancellationForMe:function(){return e(o(t._updateCancellationForMe(),{args:Array.prototype.slice.call(arguments)}))},updateForMe:function(){return e(o(t._updateForMe(),{args:Array.prototype.slice.call(arguments)}))},updateRefundCancellationForMe:function(){return e(o(t._updateRefundCancellationForMe(),{args:Array.prototype.slice.call(arguments)}))},updateRefundForMe:function(){return e(o(t._updateRefundForMe(),{args:Array.prototype.slice.call(arguments)}))},updateTransactionsForMe:function(){return e(o(t._updateTransactionsForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._authenticate=function(){return{modelName:t.name,methodName:"authenticate",httpMethod:"POST",path:"/v1/orders/{orderId}/auth",params:["orderId"]}},t._cancelForMe=function(){return{modelName:t.name,methodName:"cancelForMe",httpMethod:"POST",path:"/v1/me/orders/{orderId}/cancellation",params:["orderId"]}},t._cancelRefundForMe=function(){return{modelName:t.name,methodName:"cancelRefundForMe",httpMethod:"POST",path:"/v1/me/orders/{orderId}/refunds/{refundId}/cancellation",params:["orderId","refundId"]}},t._countForMe=function(){return{modelName:t.name,methodName:"countForMe",httpMethod:"GET",path:"/v1/me/orders/count",params:[]}},t._createDownloadUrlForMe=function(){return{modelName:t.name,methodName:"createDownloadUrlForMe",httpMethod:"POST",path:"/v1/me/orders/{orderId}/items/{itemId}/download/url",params:["orderId","itemId"],withoutPayload:!0}},t._getForMe=function(){return{modelName:t.name,methodName:"getForMe",httpMethod:"GET",path:"/v1/me/orders/{orderId}",params:["orderId"]}},t._listBySubscriptionForMe=function(){return{modelName:t.name,methodName:"listBySubscriptionForMe",httpMethod:"GET",path:"/v1/me/subscriptions/{subscriptionId}/orders",params:["subscriptionId"]}},t._listForMe=function(){return{modelName:t.name,methodName:"listForMe",httpMethod:"GET",path:"/v1/me/orders",params:[]}},t._markAsNotReceivedForMe=function(){return{modelName:t.name,methodName:"markAsNotReceivedForMe",httpMethod:"DELETE",path:"/v1/me/orders/{orderId}/received",params:["orderId"]}},t._markAsReceivedForMe=function(){return{modelName:t.name,methodName:"markAsReceivedForMe",httpMethod:"POST",path:"/v1/me/orders/{orderId}/received",params:["orderId"],withoutPayload:!0}},t._requestRefundForMe=function(){return{modelName:t.name,methodName:"requestRefundForMe",httpMethod:"POST",path:"/v1/me/orders/{orderId}/refunds",params:["orderId"]}},t._updateCancellationForMe=function(){return{modelName:t.name,methodName:"updateCancellationForMe",httpMethod:"PUT",path:"/v1/me/orders/{orderId}/cancellation",params:["orderId"]}},t._updateForMe=function(){return{modelName:t.name,methodName:"updateForMe",httpMethod:"PUT",path:"/v1/me/orders/{orderId}",params:["orderId"]}},t._updateRefundCancellationForMe=function(){return{modelName:t.name,methodName:"updateRefundCancellationForMe",httpMethod:"PUT",path:"/v1/me/orders/{orderId}/refunds/{refundId}/cancellation",params:["orderId","refundId"]}},t._updateRefundForMe=function(){return{modelName:t.name,methodName:"updateRefundForMe",httpMethod:"PUT",path:"/v1/me/orders/{orderId}/refunds/{refundId}",params:["orderId","refundId"]}},t._updateTransactionsForMe=function(){return{modelName:t.name,methodName:"updateTransactionsForMe",httpMethod:"PUT",path:"/v1/me/orders/{orderId}/transactions",params:["orderId"],withoutPayload:!0}},t}},{"../util/assign":30}],17:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"OrderTag",path:"orders/tags",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/orders/tags/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/orders/tags/{orderTagId}",params:["orderTagId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/orders/tags",params:[]}},t}},{"../util/assign":30}],18:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"PaymentMethod",path:"payments/methods",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/payments/methods/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/payments/methods/{paymentMethodId}",params:["paymentMethodId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/payments/methods",params:[]}},t}},{"../util/assign":30}],19:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Product",path:"products",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/products/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/products/{productId}",params:["productId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/products",params:[]}},t}},{"../util/assign":30}],20:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Review",path:"products/reviews",cancelFlagForMe:function(){return e(o(t._cancelFlagForMe(),{args:Array.prototype.slice.call(arguments)}))},cancelHelpedForMe:function(){return e(o(t._cancelHelpedForMe(),{args:Array.prototype.slice.call(arguments)}))},countPublished:function(){return e(o(t._countPublished(),{args:Array.prototype.slice.call(arguments)}))},createForMe:function(){return e(o(t._createForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteForMe:function(){return e(o(t._deleteForMe(),{args:Array.prototype.slice.call(arguments)}))},flagForMe:function(){return e(o(t._flagForMe(),{args:Array.prototype.slice.call(arguments)}))},getPublished:function(){return e(o(t._getPublished(),{args:Array.prototype.slice.call(arguments)}))},helpedForMe:function(){return e(o(t._helpedForMe(),{args:Array.prototype.slice.call(arguments)}))},listPublished:function(){return e(o(t._listPublished(),{args:Array.prototype.slice.call(arguments)}))},updateForMe:function(){return e(o(t._updateForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._cancelFlagForMe=function(){return{modelName:t.name,methodName:"cancelFlagForMe",httpMethod:"DELETE",path:"/v1/me/products/reviews/{reviewId}/flags",params:["reviewId"]}},t._cancelHelpedForMe=function(){return{modelName:t.name,methodName:"cancelHelpedForMe",httpMethod:"DELETE",path:"/v1/me/products/reviews/{reviewId}/helped/{upDown}",params:["reviewId","upDown"]}},t._countPublished=function(){return{modelName:t.name,methodName:"countPublished",httpMethod:"GET",path:"/v1/products/reviews/published/count", params:[]}},t._createForMe=function(){return{modelName:t.name,methodName:"createForMe",httpMethod:"POST",path:"/v1/me/products/reviews",params:[]}},t._deleteForMe=function(){return{modelName:t.name,methodName:"deleteForMe",httpMethod:"DELETE",path:"/v1/me/products/reviews/{reviewId}",params:["reviewId"]}},t._flagForMe=function(){return{modelName:t.name,methodName:"flagForMe",httpMethod:"POST",path:"/v1/me/products/reviews/{reviewId}/flags",params:["reviewId"],withoutPayload:!0}},t._getPublished=function(){return{modelName:t.name,methodName:"getPublished",httpMethod:"GET",path:"/v1/products/reviews/published/{reviewId}",params:["reviewId"]}},t._helpedForMe=function(){return{modelName:t.name,methodName:"helpedForMe",httpMethod:"POST",path:"/v1/me/products/reviews/{reviewId}/helped/{upDown}",params:["reviewId","upDown"],withoutPayload:!0}},t._listPublished=function(){return{modelName:t.name,methodName:"listPublished",httpMethod:"GET",path:"/v1/products/reviews/published",params:[]}},t._updateForMe=function(){return{modelName:t.name,methodName:"updateForMe",httpMethod:"PUT",path:"/v1/me/products/reviews/{reviewId}",params:["reviewId"]}},t}},{"../util/assign":30}],21:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"ReviewComment",path:"products/reviews/comments",cancelFlagForMe:function(){return e(o(t._cancelFlagForMe(),{args:Array.prototype.slice.call(arguments)}))},count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},createForMe:function(){return e(o(t._createForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteForMe:function(){return e(o(t._deleteForMe(),{args:Array.prototype.slice.call(arguments)}))},flagForMe:function(){return e(o(t._flagForMe(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))},updateForMe:function(){return e(o(t._updateForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._cancelFlagForMe=function(){return{modelName:t.name,methodName:"cancelFlagForMe",httpMethod:"DELETE",path:"/v1/me/products/reviews/comments/{reviewCommentId}/flags",params:["reviewCommentId"]}},t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/products/reviews/comments/count",params:[]}},t._createForMe=function(){return{modelName:t.name,methodName:"createForMe",httpMethod:"POST",path:"/v1/me/products/reviews/comments",params:[]}},t._deleteForMe=function(){return{modelName:t.name,methodName:"deleteForMe",httpMethod:"DELETE",path:"/v1/me/products/reviews/comments/{reviewCommentId}",params:["reviewCommentId"]}},t._flagForMe=function(){return{modelName:t.name,methodName:"flagForMe",httpMethod:"POST",path:"/v1/me/products/reviews/comments/{reviewCommentId}/flags",params:["reviewCommentId"],withoutPayload:!0}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/products/reviews/comments/{reviewCommentId}",params:["reviewCommentId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/products/reviews/comments",params:[]}},t._updateForMe=function(){return{modelName:t.name,methodName:"updateForMe",httpMethod:"PUT",path:"/v1/me/products/reviews/comments/{reviewCommentId}",params:["reviewCommentId"]}},t}},{"../util/assign":30}],22:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"ShippingMethod",path:"shipping/methods",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/shipping/methods/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/shipping/methods/{shippingMethodId}",params:["shippingMethodId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/shipping/methods",params:[]}},t}},{"../util/assign":30}],23:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"ShippingPolicy",path:"shipping/policies",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/shipping/policies/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/shipping/policies/{shippingPolicyId}",params:["shippingPolicyId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/shipping/policies",params:[]}},t}},{"../util/assign":30}],24:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Store",path:"store",get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))}};return t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/store",params:[]}},t}},{"../util/assign":30}],25:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Subscription",path:"subscriptions",authenticate:function(){return e(o(t._authenticate(),{args:Array.prototype.slice.call(arguments)}))},cancelForMe:function(){return e(o(t._cancelForMe(),{args:Array.prototype.slice.call(arguments)}))},countForMe:function(){return e(o(t._countForMe(),{args:Array.prototype.slice.call(arguments)}))},getForMe:function(){return e(o(t._getForMe(),{args:Array.prototype.slice.call(arguments)}))},listForMe:function(){return e(o(t._listForMe(),{args:Array.prototype.slice.call(arguments)}))},scheduleForMe:function(){return e(o(t._scheduleForMe(),{args:Array.prototype.slice.call(arguments)}))},updateCancellationForMe:function(){return e(o(t._updateCancellationForMe(),{args:Array.prototype.slice.call(arguments)}))},updateForMe:function(){return e(o(t._updateForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._authenticate=function(){return{modelName:t.name,methodName:"authenticate",httpMethod:"POST",path:"/v1/subscriptions/{subscriptionId}/auth",params:["subscriptionId"]}},t._cancelForMe=function(){return{modelName:t.name,methodName:"cancelForMe",httpMethod:"POST",path:"/v1/me/subscriptions/{subscriptionId}/cancellation",params:["subscriptionId"]}},t._countForMe=function(){return{modelName:t.name,methodName:"countForMe",httpMethod:"GET",path:"/v1/me/subscriptions/count",params:[]}},t._getForMe=function(){return{modelName:t.name,methodName:"getForMe",httpMethod:"GET",path:"/v1/me/subscriptions/{subscriptionId}",params:["subscriptionId"]}},t._listForMe=function(){return{modelName:t.name,methodName:"listForMe",httpMethod:"GET",path:"/v1/me/subscriptions",params:[]}},t._scheduleForMe=function(){return{modelName:t.name,methodName:"scheduleForMe",httpMethod:"POST",path:"/v1/me/subscriptions/{subscriptionId}/scheduled",params:["subscriptionId"]}},t._updateCancellationForMe=function(){return{modelName:t.name,methodName:"updateCancellationForMe",httpMethod:"PUT",path:"/v1/me/subscriptions/{subscriptionId}/cancellation",params:["subscriptionId"]}},t._updateForMe=function(){return{modelName:t.name,methodName:"updateForMe",httpMethod:"PUT",path:"/v1/me/subscriptions/{subscriptionId}",params:["subscriptionId"]}},t}},{"../util/assign":30}],26:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"SubscriptionPlan",path:"subscriptions/plans",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/subscriptions/plans/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/subscriptions/plans/{subscriptionPlanId}",params:["subscriptionPlanId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/subscriptions/plans",params:[]}},t}},{"../util/assign":30}],27:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"TaxCategory",path:"taxes/categories",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/taxes/categories/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/taxes/categories/{taxCategoryId}",params:["taxCategoryId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/taxes/categories",params:[]}},t}},{"../util/assign":30}],28:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"Vendor",path:"vendors",count:function(){return e(o(t._count(),{args:Array.prototype.slice.call(arguments)}))},get:function(){return e(o(t._get(),{args:Array.prototype.slice.call(arguments)}))},list:function(){return e(o(t._list(),{args:Array.prototype.slice.call(arguments)}))}};return t._count=function(){return{modelName:t.name,methodName:"count",httpMethod:"GET",path:"/v1/vendors/count",params:[]}},t._get=function(){return{modelName:t.name,methodName:"get",httpMethod:"GET",path:"/v1/vendors/{vendorId}",params:["vendorId"]}},t._list=function(){return{modelName:t.name,methodName:"list",httpMethod:"GET",path:"/v1/vendors",params:[]}},t}},{"../util/assign":30}],29:[function(e,t,r){"use strict";var o=e("../util/assign");t.exports=function(e){var t={name:"WishList",path:"wishlists",addItemForMe:function(){return e(o(t._addItemForMe(),{args:Array.prototype.slice.call(arguments)}))},countForMe:function(){return e(o(t._countForMe(),{args:Array.prototype.slice.call(arguments)}))},countProductsForMe:function(){return e(o(t._countProductsForMe(),{args:Array.prototype.slice.call(arguments)}))},createForMe:function(){return e(o(t._createForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteForMe:function(){return e(o(t._deleteForMe(),{args:Array.prototype.slice.call(arguments)}))},deleteItemForMe:function(){return e(o(t._deleteItemForMe(),{args:Array.prototype.slice.call(arguments)}))},emptyForMe:function(){return e(o(t._emptyForMe(),{args:Array.prototype.slice.call(arguments)}))},getForMe:function(){return e(o(t._getForMe(),{args:Array.prototype.slice.call(arguments)}))},listForMe:function(){return e(o(t._listForMe(),{args:Array.prototype.slice.call(arguments)}))},listProductsForMe:function(){return e(o(t._listProductsForMe(),{args:Array.prototype.slice.call(arguments)}))},updateForMe:function(){return e(o(t._updateForMe(),{args:Array.prototype.slice.call(arguments)}))}};return t._addItemForMe=function(){return{modelName:t.name,methodName:"addItemForMe",httpMethod:"POST",path:"/v1/me/wishlists/{wishListId}/items",params:["wishListId"]}},t._countForMe=function(){return{modelName:t.name,methodName:"countForMe",httpMethod:"GET",path:"/v1/me/wishlists/count",params:[]}},t._countProductsForMe=function(){return{modelName:t.name,methodName:"countProductsForMe",httpMethod:"GET",path:"/v1/me/wishlists/{wishListId}/products/count",params:["wishListId"]}},t._createForMe=function(){return{modelName:t.name,methodName:"createForMe",httpMethod:"POST",path:"/v1/me/wishlists",params:[]}},t._deleteForMe=function(){return{modelName:t.name,methodName:"deleteForMe",httpMethod:"DELETE",path:"/v1/me/wishlists/{wishListId}",params:["wishListId"]}},t._deleteItemForMe=function(){return{modelName:t.name,methodName:"deleteItemForMe",httpMethod:"DELETE",path:"/v1/me/wishlists/{wishListId}/items/{productId}",params:["wishListId","productId"]}},t._emptyForMe=function(){return{modelName:t.name,methodName:"emptyForMe",httpMethod:"DELETE",path:"/v1/me/wishlists/{wishListId}/items",params:["wishListId"]}},t._getForMe=function(){return{modelName:t.name,methodName:"getForMe",httpMethod:"GET",path:"/v1/me/wishlists/{wishListId}",params:["wishListId"]}},t._listForMe=function(){return{modelName:t.name,methodName:"listForMe",httpMethod:"GET",path:"/v1/me/wishlists",params:[]}},t._listProductsForMe=function(){return{modelName:t.name,methodName:"listProductsForMe",httpMethod:"GET",path:"/v1/me/wishlists/{wishListId}/products",params:["wishListId"]}},t._updateForMe=function(){return{modelName:t.name,methodName:"updateForMe",httpMethod:"PUT",path:"/v1/me/wishlists/{wishListId}",params:["wishListId"]}},t}},{"../util/assign":30}],30:[function(e,t,r){"use strict";t.exports=function(e,t){for(var r in t)e[r]=t[r];return e}},{}]},{},[3]);