@shipengine/js-api 0.28.0 → 0.29.0

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
@@ -50,6 +50,12 @@ var Currency = /* @__PURE__ */ ((Currency2) => {
50
50
  return Currency2;
51
51
  })(Currency || {});
52
52
 
53
+ var RateCardStatus = /* @__PURE__ */ ((RateCardStatus2) => {
54
+ RateCardStatus2["DRAFT"] = "Draft";
55
+ RateCardStatus2["PUBLISHED"] = "Published";
56
+ return RateCardStatus2;
57
+ })(RateCardStatus || {});
58
+
53
59
  var ConfirmationType = /* @__PURE__ */ ((ConfirmationType2) => {
54
60
  ConfirmationType2["DELIVERY"] = "delivery";
55
61
  ConfirmationType2["SIGNATURE"] = "signature";
@@ -89,7 +95,8 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
89
95
  Currency,
90
96
  CustomsContentsType,
91
97
  CustomsNonDeliveryType,
92
- InsuranceProviderType
98
+ InsuranceProviderType,
99
+ RateCardStatus
93
100
  }, Symbol.toStringTag, { value: 'Module' }));
94
101
 
95
102
  class AccountSettingsAPI {
@@ -3655,6 +3662,7 @@ exports.InsuranceAPI = InsuranceAPI;
3655
3662
  exports.InsuranceProviderType = InsuranceProviderType;
3656
3663
  exports.LabelsAPI = LabelsAPI;
3657
3664
  exports.OrderSourcesAPI = OrderSourcesAPI;
3665
+ exports.RateCardStatus = RateCardStatus;
3658
3666
  exports.RateCardsAPI = RateCardsAPI;
3659
3667
  exports.RatesAPI = RatesAPI;
3660
3668
  exports.SE = types;
package/index.mjs CHANGED
@@ -46,6 +46,12 @@ var Currency = /* @__PURE__ */ ((Currency2) => {
46
46
  return Currency2;
47
47
  })(Currency || {});
48
48
 
49
+ var RateCardStatus = /* @__PURE__ */ ((RateCardStatus2) => {
50
+ RateCardStatus2["DRAFT"] = "Draft";
51
+ RateCardStatus2["PUBLISHED"] = "Published";
52
+ return RateCardStatus2;
53
+ })(RateCardStatus || {});
54
+
49
55
  var ConfirmationType = /* @__PURE__ */ ((ConfirmationType2) => {
50
56
  ConfirmationType2["DELIVERY"] = "delivery";
51
57
  ConfirmationType2["SIGNATURE"] = "signature";
@@ -85,7 +91,8 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
85
91
  Currency,
86
92
  CustomsContentsType,
87
93
  CustomsNonDeliveryType,
88
- InsuranceProviderType
94
+ InsuranceProviderType,
95
+ RateCardStatus
89
96
  }, Symbol.toStringTag, { value: 'Module' }));
90
97
 
91
98
  class AccountSettingsAPI {
@@ -3636,4 +3643,4 @@ class ShipEngineAPI {
3636
3643
  }
3637
3644
  }
3638
3645
 
3639
- export { AccountSettingsAPI, AddressesAPI, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, OrderSourcesAPI, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngineAPI, ShipmentsAPI, WarehousesAPI, getEndUserIpAddress, isCodedError, isCodedErrors };
3646
+ export { AccountSettingsAPI, AddressesAPI, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngineAPI, ShipmentsAPI, WarehousesAPI, getEndUserIpAddress, isCodedError, isCodedErrors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -54,6 +54,13 @@ export type RatePackageType = Pick<PackageRatingType, "packageId" | "name" | "de
54
54
  minMaxBands?: RateWeightBandMinMax[];
55
55
  };
56
56
  };
57
+ /**
58
+ * @category Entities
59
+ */
60
+ export declare enum RateCardStatus {
61
+ DRAFT = "Draft",
62
+ PUBLISHED = "Published"
63
+ }
57
64
  /**
58
65
  * @category Entities
59
66
  */
@@ -68,7 +75,7 @@ export interface RateCard {
68
75
  services?: RateService[];
69
76
  shipFrom?: ShipFromLocation;
70
77
  startDate?: ISOString;
71
- status?: string;
78
+ status?: RateCardStatus;
72
79
  surcharges?: RateSurcharge[];
73
80
  }
74
81
  /**