@shipengine/js-api 0.25.1 → 0.26.1

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/index.js CHANGED
@@ -3320,6 +3320,9 @@ class RateCardsAPI {
3320
3320
  }
3321
3321
  });
3322
3322
  };
3323
+ this.publish = (rateCardId) => {
3324
+ return this.client.post(`/v1/rate_cards/${rateCardId}/publish`);
3325
+ };
3323
3326
  this.client = client;
3324
3327
  }
3325
3328
  }
package/index.mjs CHANGED
@@ -3316,6 +3316,9 @@ class RateCardsAPI {
3316
3316
  }
3317
3317
  });
3318
3318
  };
3319
+ this.publish = (rateCardId) => {
3320
+ return this.client.post(`/v1/rate_cards/${rateCardId}/publish`);
3321
+ };
3319
3322
  this.client = client;
3320
3323
  }
3321
3324
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "0.25.1",
3
+ "version": "0.26.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -11,4 +11,5 @@ export declare class RateCardsAPI {
11
11
  update: (rateCard: RateCard) => Promise<import("axios").AxiosResponse<RateCard, any>>;
12
12
  download: (rateCardId: string) => Promise<import("axios").AxiosResponse<Blob, any>>;
13
13
  upload: (rateCardId: string, file: File) => Promise<import("axios").AxiosResponse<RateCard, any>>;
14
+ publish: (rateCardId: string) => Promise<import("axios").AxiosResponse<any, any>>;
14
15
  }
@@ -1,2 +1 @@
1
1
  export * from "./ip-address";
2
- export * from "./types";
File without changes