@shipengine/js-api 4.29.0 → 4.30.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.
@@ -38,6 +38,7 @@ export interface CarrierService {
38
38
  international: boolean;
39
39
  isMultiPackageSupported: boolean;
40
40
  name: string;
41
+ sendRates: boolean;
41
42
  serviceCode: string;
42
43
  }
43
44
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "4.29.0",
3
+ "version": "4.30.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -58,6 +58,10 @@ export interface ShippingRuleSelectedService {
58
58
  export type ShippingRuleSelectedServiceWithPriority = {
59
59
  priority: number;
60
60
  } & ShippingRuleSelectedService;
61
+ /**
62
+ * @category Entities
63
+ */
64
+ export type SortingByOptions = "cheapest" | "fastest" | null;
61
65
  export interface CommonShippingRule {
62
66
  code: string;
63
67
  createdAt?: ISOString;
@@ -79,6 +83,7 @@ export interface ConditionalShippingRule extends CommonShippingRule {
79
83
  export interface ServiceGroupShippingRule extends CommonShippingRule {
80
84
  exclusionRules?: ExclusionRule[];
81
85
  services: ShippingRuleSelectedServiceWithPriority[];
86
+ sortBy?: SortingByOptions;
82
87
  type: "SERVICE_GROUP";
83
88
  }
84
89
  export type ShippingRule = ConditionalShippingRule | ServiceGroupShippingRule;