@shipengine/js-api 0.48.0 → 0.48.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/labels/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
+ import { PageableResult } from "../resources";
2
3
  import { Label, LabelLayout, VoidRequest } from "./types";
3
4
  /**
4
5
  * # Labels API - Create Label Options
@@ -42,6 +43,9 @@ export interface ListLabelsParams {
42
43
  */
43
44
  shipmentId?: string;
44
45
  }
46
+ export type ListLabelsResult = {
47
+ labels: Label[];
48
+ } & PageableResult;
45
49
  /**
46
50
  * # Labels API module - /v1/labels
47
51
  */
@@ -55,9 +59,7 @@ export declare class LabelsAPI {
55
59
  /**
56
60
  * The `list` method retrieves a list of labels created by a given user.
57
61
  */
58
- list: (params?: ListLabelsParams) => Promise<import("axios").AxiosResponse<{
59
- labels: Label[];
60
- }, any>>;
62
+ list: (params?: ListLabelsParams) => Promise<import("axios").AxiosResponse<ListLabelsResult, any>>;
61
63
  /**
62
64
  * The `createByRateId` allows you to create a shipping label by using a `rateId`
63
65
  * which is a unique identifier tied to a specific rate.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -2,19 +2,19 @@ import { ISOString } from "../resources";
2
2
  /**
3
3
  * @category Entities
4
4
  */
5
- type RuleIdentifier = "MAX_DIMENSION" | "NUMBER_OF_PACKAGES" | "SHIP_FROM_ADDRESS_RESIDENTIAL_INDICATOR" | "SHIP_FROM_COUNTRY_CODE" | "SHIP_TO_ADDRESS_RESIDENTIAL_INDICATOR" | "SHIP_TO_COUNTRY_CODE" | "SHIP_TO_POSTAL_CODE" | "SHIP_FROM_POSTAL_CODE" | "SHIPMENT_VALUE" | "WAREHOUSE_ID" | "WEIGHT";
5
+ export type RuleIdentifier = "MAX_DIMENSION" | "NUMBER_OF_PACKAGES" | "SHIP_FROM_ADDRESS_RESIDENTIAL_INDICATOR" | "SHIP_FROM_COUNTRY_CODE" | "SHIP_TO_ADDRESS_RESIDENTIAL_INDICATOR" | "SHIP_TO_COUNTRY_CODE" | "SHIP_TO_POSTAL_CODE" | "SHIP_FROM_POSTAL_CODE" | "SHIPMENT_VALUE" | "WAREHOUSE_ID" | "WEIGHT";
6
6
  /**
7
7
  * @category Entities
8
8
  */
9
- type RuleOperation = "IS" | "IS_LESS_THAN" | "IS_GREATER_THAN" | "IS_NOT" | "IN" | "NOT_IN" | "STARTS_WITH" | "IS_LESS_OR_EQUAL_TO" | "IS_GREATER_OR_EQUAL_TO";
9
+ export type RuleOperation = "IS" | "IS_LESS_THAN" | "IS_GREATER_THAN" | "IS_NOT" | "IN" | "NOT_IN" | "STARTS_WITH" | "IS_LESS_OR_EQUAL_TO" | "IS_GREATER_OR_EQUAL_TO";
10
10
  /**
11
11
  * @category Entities
12
12
  */
13
- type RuleValueType = "STRING" | "LIST" | "INTEGER" | "DECIMAL";
13
+ export type RuleValueType = "STRING" | "LIST" | "INTEGER" | "DECIMAL";
14
14
  /**
15
15
  * @category Entities
16
16
  */
17
- type RuleValueField = "SELECT" | "MULTISELECT" | "FIELD";
17
+ export type RuleValueField = "SELECT" | "MULTISELECT" | "FIELD";
18
18
  /**
19
19
  * @category Entities
20
20
  */
@@ -68,4 +68,3 @@ export interface RuleConditionsOptions {
68
68
  valueOptions?: string[];
69
69
  valueType: RuleValueType;
70
70
  }
71
- export {};