@shipengine/js-api 0.40.0 → 0.40.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.
@@ -89,7 +89,7 @@ export declare enum MetadataSatisfyingFormTypes {
89
89
  Address = "address",
90
90
  CreditCard = "credit_card",
91
91
  StampsAccountCredentials = "stamps_account_credentials",
92
- StampSellerLabelProvider = "stamps_seller_label_provider",
92
+ StampsSellerLabelProvider = "stamps_seller_label_provider",
93
93
  Unknown = "unknown"
94
94
  }
95
95
  export type MetadataRegistrationRequirement = {
package/index.js CHANGED
@@ -66,7 +66,7 @@ var MetadataSatisfyingFormTypes = /* @__PURE__ */ ((MetadataSatisfyingFormTypes2
66
66
  MetadataSatisfyingFormTypes2["Address"] = "address";
67
67
  MetadataSatisfyingFormTypes2["CreditCard"] = "credit_card";
68
68
  MetadataSatisfyingFormTypes2["StampsAccountCredentials"] = "stamps_account_credentials";
69
- MetadataSatisfyingFormTypes2["StampSellerLabelProvider"] = "stamps_seller_label_provider";
69
+ MetadataSatisfyingFormTypes2["StampsSellerLabelProvider"] = "stamps_seller_label_provider";
70
70
  MetadataSatisfyingFormTypes2["Unknown"] = "unknown";
71
71
  return MetadataSatisfyingFormTypes2;
72
72
  })(MetadataSatisfyingFormTypes || {});
package/index.mjs CHANGED
@@ -62,7 +62,7 @@ var MetadataSatisfyingFormTypes = /* @__PURE__ */ ((MetadataSatisfyingFormTypes2
62
62
  MetadataSatisfyingFormTypes2["Address"] = "address";
63
63
  MetadataSatisfyingFormTypes2["CreditCard"] = "credit_card";
64
64
  MetadataSatisfyingFormTypes2["StampsAccountCredentials"] = "stamps_account_credentials";
65
- MetadataSatisfyingFormTypes2["StampSellerLabelProvider"] = "stamps_seller_label_provider";
65
+ MetadataSatisfyingFormTypes2["StampsSellerLabelProvider"] = "stamps_seller_label_provider";
66
66
  MetadataSatisfyingFormTypes2["Unknown"] = "unknown";
67
67
  return MetadataSatisfyingFormTypes2;
68
68
  })(MetadataSatisfyingFormTypes || {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -18,4 +18,4 @@
18
18
  "peerDependencies": {
19
19
  "axios": "^0.26.1"
20
20
  }
21
- }
21
+ }
@@ -1,6 +1,5 @@
1
1
  import { AxiosInstance } from "axios";
2
- import { RequiredFields } from "../types";
3
- import { ShippingRule } from "./types";
2
+ import { ShippingRule, ShippingRuleInput } from "./types";
4
3
  /**
5
4
  * # Shipping Rules API module - /v1/shipping_rules
6
5
  */
@@ -16,5 +15,5 @@ export declare class ShippingRulesAPI {
16
15
  /**
17
16
  * The `create` method creates a new shipping rule for a given user.
18
17
  */
19
- create: (shippingRule: ShippingRule) => Promise<import("axios").AxiosResponse<RequiredFields<ShippingRule, "id">, any>>;
18
+ create: (shippingRule: ShippingRuleInput) => Promise<import("axios").AxiosResponse<ShippingRule, any>>;
20
19
  }
@@ -35,7 +35,7 @@ export interface ShippingRule {
35
35
  };
36
36
  deleted?: boolean;
37
37
  deletedAt?: ISOString;
38
- id?: string;
38
+ id: string;
39
39
  name: string;
40
40
  rules?: [
41
41
  {
@@ -47,4 +47,8 @@ export interface ShippingRule {
47
47
  ];
48
48
  updatedAt?: ISOString;
49
49
  }
50
+ /**
51
+ * @category Entities
52
+ */
53
+ export type ShippingRuleInput = Omit<ShippingRule, "id">;
50
54
  export {};