@shipengine/js-api 0.45.1 → 0.45.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "0.45.1",
3
+ "version": "0.45.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -15,6 +15,14 @@ export interface ShippingRulesConditions {
15
15
  operation: RuleTypeCondition;
16
16
  value: string;
17
17
  }
18
+ /**
19
+ * @category Entities
20
+ */
21
+ export interface Rule {
22
+ conditions: ShippingRulesConditions[];
23
+ priority: number;
24
+ service: ShippingRuleSelectedService;
25
+ }
18
26
  /**
19
27
  * @category Entities
20
28
  */
@@ -34,13 +42,7 @@ export interface ShippingRule {
34
42
  deletedAt?: ISOString;
35
43
  id: string;
36
44
  name: string;
37
- rules?: [
38
- {
39
- conditions: ShippingRulesConditions[];
40
- priority: number;
41
- service: ShippingRuleSelectedService;
42
- }
43
- ];
45
+ rules?: Rule[];
44
46
  updatedAt?: ISOString;
45
47
  }
46
48
  /**