@shipengine/alchemy 0.5.10 → 0.5.12

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.
Files changed (3) hide show
  1. package/index.js +15 -2
  2. package/index.mjs +15 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -5354,6 +5354,14 @@ class CarriersAPI {
5354
5354
  }
5355
5355
  });
5356
5356
  };
5357
+ this.getServices = (carrierId) => {
5358
+ return this.client.get(`/v1/carriers/${carrierId}/services`);
5359
+ };
5360
+ this.getRatePackageFormats = (carrierId) => {
5361
+ return this.client.get(
5362
+ `/v1/carriers/${carrierId}/rate_package_formats`
5363
+ );
5364
+ };
5357
5365
  this.getCountries = (carrierId) => {
5358
5366
  return this.client.get(`/v1/carriers/${carrierId}/countries`);
5359
5367
  };
@@ -7705,8 +7713,10 @@ class RatesAPI {
7705
7713
  class SalesOrderShipmentsAPI {
7706
7714
  constructor(client) {
7707
7715
  this.client = client;
7708
- this.list = (params = {}) => {
7709
- return this.client.post("/v-beta/shipments/list", params);
7716
+ this.list = (body = {}, params) => {
7717
+ return this.client.post("/v-beta/shipments/list", body, {
7718
+ params
7719
+ });
7710
7720
  };
7711
7721
  this.get = (shipmentId) => {
7712
7722
  return this.client.get(`/v-beta/shipments/${shipmentId}`);
@@ -7769,6 +7779,9 @@ class ShipmentsAPI {
7769
7779
  createdAtStart !== void 0 ? { params: { createdAtStart } } : void 0
7770
7780
  );
7771
7781
  };
7782
+ this.list = (options) => {
7783
+ return this.client.get("/v1/shipments", { params: options });
7784
+ };
7772
7785
  this.create = (...shipments) => __async$p(this, null, function* () {
7773
7786
  return this.client.post("/v1/shipments", {
7774
7787
  shipments
package/index.mjs CHANGED
@@ -5332,6 +5332,14 @@ class CarriersAPI {
5332
5332
  }
5333
5333
  });
5334
5334
  };
5335
+ this.getServices = (carrierId) => {
5336
+ return this.client.get(`/v1/carriers/${carrierId}/services`);
5337
+ };
5338
+ this.getRatePackageFormats = (carrierId) => {
5339
+ return this.client.get(
5340
+ `/v1/carriers/${carrierId}/rate_package_formats`
5341
+ );
5342
+ };
5335
5343
  this.getCountries = (carrierId) => {
5336
5344
  return this.client.get(`/v1/carriers/${carrierId}/countries`);
5337
5345
  };
@@ -7683,8 +7691,10 @@ class RatesAPI {
7683
7691
  class SalesOrderShipmentsAPI {
7684
7692
  constructor(client) {
7685
7693
  this.client = client;
7686
- this.list = (params = {}) => {
7687
- return this.client.post("/v-beta/shipments/list", params);
7694
+ this.list = (body = {}, params) => {
7695
+ return this.client.post("/v-beta/shipments/list", body, {
7696
+ params
7697
+ });
7688
7698
  };
7689
7699
  this.get = (shipmentId) => {
7690
7700
  return this.client.get(`/v-beta/shipments/${shipmentId}`);
@@ -7747,6 +7757,9 @@ class ShipmentsAPI {
7747
7757
  createdAtStart !== void 0 ? { params: { createdAtStart } } : void 0
7748
7758
  );
7749
7759
  };
7760
+ this.list = (options) => {
7761
+ return this.client.get("/v1/shipments", { params: options });
7762
+ };
7750
7763
  this.create = (...shipments) => __async$p(this, null, function* () {
7751
7764
  return this.client.post("/v1/shipments", {
7752
7765
  shipments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {