@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.
- package/funding-sources/types.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/shipping-rules/api.d.ts +2 -3
- package/shipping-rules/types.d.ts +5 -1
|
@@ -89,7 +89,7 @@ export declare enum MetadataSatisfyingFormTypes {
|
|
|
89
89
|
Address = "address",
|
|
90
90
|
CreditCard = "credit_card",
|
|
91
91
|
StampsAccountCredentials = "stamps_account_credentials",
|
|
92
|
-
|
|
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["
|
|
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["
|
|
65
|
+
MetadataSatisfyingFormTypes2["StampsSellerLabelProvider"] = "stamps_seller_label_provider";
|
|
66
66
|
MetadataSatisfyingFormTypes2["Unknown"] = "unknown";
|
|
67
67
|
return MetadataSatisfyingFormTypes2;
|
|
68
68
|
})(MetadataSatisfyingFormTypes || {});
|
package/package.json
CHANGED
package/shipping-rules/api.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import {
|
|
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:
|
|
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
|
|
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 {};
|