@shipengine/alchemy 0.5.11 → 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 +7 -2
  2. package/index.mjs +7 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -7713,8 +7713,10 @@ class RatesAPI {
7713
7713
  class SalesOrderShipmentsAPI {
7714
7714
  constructor(client) {
7715
7715
  this.client = client;
7716
- this.list = (params = {}) => {
7717
- 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
+ });
7718
7720
  };
7719
7721
  this.get = (shipmentId) => {
7720
7722
  return this.client.get(`/v-beta/shipments/${shipmentId}`);
@@ -7777,6 +7779,9 @@ class ShipmentsAPI {
7777
7779
  createdAtStart !== void 0 ? { params: { createdAtStart } } : void 0
7778
7780
  );
7779
7781
  };
7782
+ this.list = (options) => {
7783
+ return this.client.get("/v1/shipments", { params: options });
7784
+ };
7780
7785
  this.create = (...shipments) => __async$p(this, null, function* () {
7781
7786
  return this.client.post("/v1/shipments", {
7782
7787
  shipments
package/index.mjs CHANGED
@@ -7691,8 +7691,10 @@ class RatesAPI {
7691
7691
  class SalesOrderShipmentsAPI {
7692
7692
  constructor(client) {
7693
7693
  this.client = client;
7694
- this.list = (params = {}) => {
7695
- 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
+ });
7696
7698
  };
7697
7699
  this.get = (shipmentId) => {
7698
7700
  return this.client.get(`/v-beta/shipments/${shipmentId}`);
@@ -7755,6 +7757,9 @@ class ShipmentsAPI {
7755
7757
  createdAtStart !== void 0 ? { params: { createdAtStart } } : void 0
7756
7758
  );
7757
7759
  };
7760
+ this.list = (options) => {
7761
+ return this.client.get("/v1/shipments", { params: options });
7762
+ };
7758
7763
  this.create = (...shipments) => __async$p(this, null, function* () {
7759
7764
  return this.client.post("/v1/shipments", {
7760
7765
  shipments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {