@alphabite/medusa-sdk 0.7.7 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -345,11 +345,12 @@ interface EcontCity extends City {
345
345
  econtId?: number | string;
346
346
  regionName: string | null;
347
347
  }
348
- interface EcontOffice extends Office {
348
+ interface EcontOffice extends Omit<Office, 'isAPS'> {
349
349
  econtId?: number | string;
350
350
  fullAddress?: string;
351
351
  fullAddressEn?: string;
352
352
  postCode?: string;
353
+ isAPS?: boolean;
353
354
  regionName?: string;
354
355
  latitude?: number;
355
356
  longitude?: number;
@@ -488,12 +489,15 @@ interface ListCitiesInput {
488
489
  */
489
490
  q?: string;
490
491
  /**
491
- * Filter by whether the city has at least one Econt office
492
- * - `true`: only cities with offices (old default behavior)
493
- * - `false`: only cities/villages without offices
494
- * - omitted: all cities
492
+ * Filter to only return cities that have at least one Econt office
493
+ * - `true`: only cities with offices
494
+ * - omitted or `false`: all cities (default)
495
495
  */
496
- hasOffice?: boolean;
496
+ onlyWithOffices?: boolean;
497
+ /**
498
+ * Filter to only return cities that have at least one econtomat (APS) office
499
+ */
500
+ hasEcontomat?: boolean;
497
501
  /**
498
502
  * Comma-separated list of fields to include
499
503
  */
@@ -638,6 +642,10 @@ interface ListOfficesInput {
638
642
  * Econt specific office code (numeric)
639
643
  */
640
644
  econtOfficeCode?: string | number;
645
+ /**
646
+ * Filter to only return econtomat (APS / self-service 24/7) offices
647
+ */
648
+ isEcontomat?: boolean;
641
649
  }
642
650
  /**
643
651
  * Response containing list of Econt offices
package/dist/index.d.ts CHANGED
@@ -345,11 +345,12 @@ interface EcontCity extends City {
345
345
  econtId?: number | string;
346
346
  regionName: string | null;
347
347
  }
348
- interface EcontOffice extends Office {
348
+ interface EcontOffice extends Omit<Office, 'isAPS'> {
349
349
  econtId?: number | string;
350
350
  fullAddress?: string;
351
351
  fullAddressEn?: string;
352
352
  postCode?: string;
353
+ isAPS?: boolean;
353
354
  regionName?: string;
354
355
  latitude?: number;
355
356
  longitude?: number;
@@ -488,12 +489,15 @@ interface ListCitiesInput {
488
489
  */
489
490
  q?: string;
490
491
  /**
491
- * Filter by whether the city has at least one Econt office
492
- * - `true`: only cities with offices (old default behavior)
493
- * - `false`: only cities/villages without offices
494
- * - omitted: all cities
492
+ * Filter to only return cities that have at least one Econt office
493
+ * - `true`: only cities with offices
494
+ * - omitted or `false`: all cities (default)
495
495
  */
496
- hasOffice?: boolean;
496
+ onlyWithOffices?: boolean;
497
+ /**
498
+ * Filter to only return cities that have at least one econtomat (APS) office
499
+ */
500
+ hasEcontomat?: boolean;
497
501
  /**
498
502
  * Comma-separated list of fields to include
499
503
  */
@@ -638,6 +642,10 @@ interface ListOfficesInput {
638
642
  * Econt specific office code (numeric)
639
643
  */
640
644
  econtOfficeCode?: string | number;
645
+ /**
646
+ * Filter to only return econtomat (APS / self-service 24/7) offices
647
+ */
648
+ isEcontomat?: boolean;
641
649
  }
642
650
  /**
643
651
  * Response containing list of Econt offices
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var u=require('@medusajs/js-sdk');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var u__default=/*#__PURE__*/_interopDefault(u);var d={name:"wishlist",endpoints:(r,i)=>({create:async({...e},t)=>r.client.fetch("/store/wishlists",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({limit:e=10,offset:t=0,...s},n)=>r.client.fetch("/store/wishlists",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{limit:e,offset:t,...s}}),retrieve:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:t}),update:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"PUT",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),totalItemsCount:async({wishlist_id:e},t)=>r.client.fetch("store/wishlists/total-items-count",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{wishlist_id:e}}),transfer:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/transfer`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),share:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/share`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),import:async(e,t)=>r.client.fetch("/store/wishlists/import",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),addItem:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}/add-item`,{method:"POST",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),listItems:async({id:e,limit:t=10,offset:s=0,...n},o)=>r.client.fetch(`/store/wishlists/${e}/items`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...o},query:{limit:t,offset:s,...n}}),removeItem:async({wishlist_item_id:e,id:t},s)=>r.client.fetch(`/store/wishlists/${t}/items/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...s}})})};var p={name:"paypal",endpoints:(r,i)=>({createClientToken:async e=>r.client.fetch("/store/paypal/client-token",{method:"POST",headers:{...await i?.getAuthHeader?.(),...e}})})};var h={name:"reviews",endpoints:(r,i)=>({create:async(e,t)=>r.client.fetch("/store/reviews",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({...e},t)=>r.client.fetch("/store/products/reviews",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:e}),listProductReviews:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),aggregateCounts:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}/aggregate-counts`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/reviews/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),uploadImageFiles:async(e,t)=>r.client.fetch("/store/reviews/files/images/upload",{method:"POST",body:e.formData,headers:{...await i?.getAuthHeader?.(),...t,"content-type":null}})})};var g={name:"econt",endpoints:(r,i)=>({validateAddress:async(e,t)=>r.client.fetch("/store/econt/validate-address",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),listCities:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/cities",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listQuarters:async({cityId:e,countryCode:t="BGR",...s},n)=>r.client.fetch("/store/econt/quarters",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{cityId:e,countryCode:t,...s}}),listOffices:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/offices",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listStreets:async({cityId:e,...t},s)=>r.client.fetch("/store/econt/streets",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{cityId:e,...t}}),listRegions:async({...e},t)=>r.client.fetch("/store/econt/regions",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{...e}})})};var a=class extends u__default.default{constructor(i,e,t){super(i),this.options=t,this.medusaConfig=i;let s={};e.forEach(n=>{s[n.name]=n.endpoints(this,this.options,this.medusaConfig);}),this.alphabite=s;}};exports.AlphabiteMedusaSdk=a;exports.econtPlugin=g;exports.paypalPlugin=p;exports.reviewsPlugin=h;exports.wishlistPlugin=d;
1
+ 'use strict';var u=require('@medusajs/js-sdk');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var u__default=/*#__PURE__*/_interopDefault(u);var d={name:"wishlist",endpoints:(r,i)=>({create:async({...e},t)=>r.client.fetch("/store/wishlists",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({limit:e=10,offset:t=0,...s},n)=>r.client.fetch("/store/wishlists",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{limit:e,offset:t,...s}}),retrieve:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:t}),update:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"PUT",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),totalItemsCount:async({wishlist_id:e},t)=>r.client.fetch("store/wishlists/total-items-count",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{wishlist_id:e}}),transfer:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/transfer`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),share:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/share`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),import:async(e,t)=>r.client.fetch("/store/wishlists/import",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),addItem:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}/add-item`,{method:"POST",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),listItems:async({id:e,limit:t=10,offset:s=0,...n},o)=>r.client.fetch(`/store/wishlists/${e}/items`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...o},query:{limit:t,offset:s,...n}}),removeItem:async({wishlist_item_id:e,id:t},s)=>r.client.fetch(`/store/wishlists/${t}/items/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...s}})})};var p={name:"paypal",endpoints:(r,i)=>({createClientToken:async e=>r.client.fetch("/store/paypal/client-token",{method:"POST",headers:{...await i?.getAuthHeader?.(),...e}})})};var m={name:"reviews",endpoints:(r,i)=>({create:async(e,t)=>r.client.fetch("/store/reviews",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({...e},t)=>r.client.fetch("/store/products/reviews",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:e}),listProductReviews:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),aggregateCounts:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}/aggregate-counts`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/reviews/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),uploadImageFiles:async(e,t)=>r.client.fetch("/store/reviews/files/images/upload",{method:"POST",body:e.formData,headers:{...await i?.getAuthHeader?.(),...t,"content-type":null}})})};var g={name:"econt",endpoints:(r,i)=>({validateAddress:async(e,t)=>r.client.fetch("/store/econt/validate-address",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),listCities:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/cities",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listQuarters:async({cityId:e,countryCode:t="BGR",...s},n)=>r.client.fetch("/store/econt/quarters",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{cityId:e,countryCode:t,...s}}),listOffices:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/offices",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listStreets:async({cityId:e,...t},s)=>r.client.fetch("/store/econt/streets",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{cityId:e,...t}}),listRegions:async({...e},t)=>r.client.fetch("/store/econt/regions",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{...e}})})};var a=class extends u__default.default{constructor(i,e,t){super(i),this.options=t,this.medusaConfig=i;let s={};e.forEach(n=>{s[n.name]=n.endpoints(this,this.options,this.medusaConfig);}),this.alphabite=s;}};exports.AlphabiteMedusaSdk=a;exports.econtPlugin=g;exports.paypalPlugin=p;exports.reviewsPlugin=m;exports.wishlistPlugin=d;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import u from'@medusajs/js-sdk';var d={name:"wishlist",endpoints:(r,i)=>({create:async({...e},t)=>r.client.fetch("/store/wishlists",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({limit:e=10,offset:t=0,...s},n)=>r.client.fetch("/store/wishlists",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{limit:e,offset:t,...s}}),retrieve:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:t}),update:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"PUT",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),totalItemsCount:async({wishlist_id:e},t)=>r.client.fetch("store/wishlists/total-items-count",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{wishlist_id:e}}),transfer:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/transfer`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),share:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/share`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),import:async(e,t)=>r.client.fetch("/store/wishlists/import",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),addItem:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}/add-item`,{method:"POST",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),listItems:async({id:e,limit:t=10,offset:s=0,...n},o)=>r.client.fetch(`/store/wishlists/${e}/items`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...o},query:{limit:t,offset:s,...n}}),removeItem:async({wishlist_item_id:e,id:t},s)=>r.client.fetch(`/store/wishlists/${t}/items/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...s}})})};var p={name:"paypal",endpoints:(r,i)=>({createClientToken:async e=>r.client.fetch("/store/paypal/client-token",{method:"POST",headers:{...await i?.getAuthHeader?.(),...e}})})};var h={name:"reviews",endpoints:(r,i)=>({create:async(e,t)=>r.client.fetch("/store/reviews",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({...e},t)=>r.client.fetch("/store/products/reviews",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:e}),listProductReviews:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),aggregateCounts:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}/aggregate-counts`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/reviews/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),uploadImageFiles:async(e,t)=>r.client.fetch("/store/reviews/files/images/upload",{method:"POST",body:e.formData,headers:{...await i?.getAuthHeader?.(),...t,"content-type":null}})})};var g={name:"econt",endpoints:(r,i)=>({validateAddress:async(e,t)=>r.client.fetch("/store/econt/validate-address",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),listCities:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/cities",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listQuarters:async({cityId:e,countryCode:t="BGR",...s},n)=>r.client.fetch("/store/econt/quarters",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{cityId:e,countryCode:t,...s}}),listOffices:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/offices",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listStreets:async({cityId:e,...t},s)=>r.client.fetch("/store/econt/streets",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{cityId:e,...t}}),listRegions:async({...e},t)=>r.client.fetch("/store/econt/regions",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{...e}})})};var a=class extends u{constructor(i,e,t){super(i),this.options=t,this.medusaConfig=i;let s={};e.forEach(n=>{s[n.name]=n.endpoints(this,this.options,this.medusaConfig);}),this.alphabite=s;}};export{a as AlphabiteMedusaSdk,g as econtPlugin,p as paypalPlugin,h as reviewsPlugin,d as wishlistPlugin};
1
+ import u from'@medusajs/js-sdk';var d={name:"wishlist",endpoints:(r,i)=>({create:async({...e},t)=>r.client.fetch("/store/wishlists",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({limit:e=10,offset:t=0,...s},n)=>r.client.fetch("/store/wishlists",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{limit:e,offset:t,...s}}),retrieve:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:t}),update:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}`,{method:"PUT",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),totalItemsCount:async({wishlist_id:e},t)=>r.client.fetch("store/wishlists/total-items-count",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{wishlist_id:e}}),transfer:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/transfer`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),share:async({id:e},t)=>r.client.fetch(`/store/wishlists/${e}/share`,{method:"POST",headers:{...await i?.getAuthHeader?.(),...t}}),import:async(e,t)=>r.client.fetch("/store/wishlists/import",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),addItem:async({id:e,...t},s)=>r.client.fetch(`/store/wishlists/${e}/add-item`,{method:"POST",body:t,headers:{...await i?.getAuthHeader?.(),...s}}),listItems:async({id:e,limit:t=10,offset:s=0,...n},o)=>r.client.fetch(`/store/wishlists/${e}/items`,{method:"GET",headers:{...await i?.getAuthHeader?.(),...o},query:{limit:t,offset:s,...n}}),removeItem:async({wishlist_item_id:e,id:t},s)=>r.client.fetch(`/store/wishlists/${t}/items/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...s}})})};var p={name:"paypal",endpoints:(r,i)=>({createClientToken:async e=>r.client.fetch("/store/paypal/client-token",{method:"POST",headers:{...await i?.getAuthHeader?.(),...e}})})};var m={name:"reviews",endpoints:(r,i)=>({create:async(e,t)=>r.client.fetch("/store/reviews",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),list:async({...e},t)=>r.client.fetch("/store/products/reviews",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:e}),listProductReviews:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),aggregateCounts:async({product_id:e,...t},s)=>r.client.fetch(`/store/reviews/product/${e}/aggregate-counts`,{method:"GET",query:t,headers:{...await i?.getAuthHeader?.(),...s}}),delete:async({id:e},t)=>r.client.fetch(`/store/reviews/${e}`,{method:"DELETE",headers:{...await i?.getAuthHeader?.(),...t}}),uploadImageFiles:async(e,t)=>r.client.fetch("/store/reviews/files/images/upload",{method:"POST",body:e.formData,headers:{...await i?.getAuthHeader?.(),...t,"content-type":null}})})};var g={name:"econt",endpoints:(r,i)=>({validateAddress:async(e,t)=>r.client.fetch("/store/econt/validate-address",{method:"POST",body:e,headers:{...await i?.getAuthHeader?.(),...t}}),listCities:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/cities",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listQuarters:async({cityId:e,countryCode:t="BGR",...s},n)=>r.client.fetch("/store/econt/quarters",{method:"GET",headers:{...await i?.getAuthHeader?.(),...n},query:{cityId:e,countryCode:t,...s}}),listOffices:async({countryCode:e="BGR",...t},s)=>r.client.fetch("/store/econt/offices",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{countryCode:e,...t}}),listStreets:async({cityId:e,...t},s)=>r.client.fetch("/store/econt/streets",{method:"GET",headers:{...await i?.getAuthHeader?.(),...s},query:{cityId:e,...t}}),listRegions:async({...e},t)=>r.client.fetch("/store/econt/regions",{method:"GET",headers:{...await i?.getAuthHeader?.(),...t},query:{...e}})})};var a=class extends u{constructor(i,e,t){super(i),this.options=t,this.medusaConfig=i;let s={};e.forEach(n=>{s[n.name]=n.endpoints(this,this.options,this.medusaConfig);}),this.alphabite=s;}};export{a as AlphabiteMedusaSdk,g as econtPlugin,p as paypalPlugin,m as reviewsPlugin,d as wishlistPlugin};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphabite/medusa-sdk",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "description": "Extended Medusa utility sdk client, that adds Alphabite's plugins endpoints",
5
5
  "author": "Alphabite",
6
6
  "license": "MIT",