Skip to content

Commit b9b5084

Browse files
committed
fix: some lint issues after merging some PRs
1 parent 08368ea commit b9b5084

9 files changed

Lines changed: 135 additions & 27 deletions

File tree

src/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const userAgent = getUserAgentString();
120120
* Builds request headers
121121
*/
122122
const buildHeaders = ({ apiKey, onBehalfOf }: NormalizedConfig) => {
123-
const headers: HeadersInit = {
123+
const headers: HeadersInit = {
124124
Accept: "application/json",
125125
"Content-Type": "application/json",
126126
"API-Key": apiKey,

src/create-label-from-rate/types/private-request.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
*/
77

88
export type CreateLabelFromRateRequestBody = PurchaseLabelWithoutShipment;
9-
export type ValidateAddress = "no_validation" | "validate_only" | "validate_and_clean";
9+
export type ValidateAddress =
10+
| "no_validation"
11+
| "validate_only"
12+
| "validate_and_clean";
1013
export type LabelLayout = "4x6" | "letter";
1114
export type LabelFormat = "pdf" | "png" | "zpl";
1215
export type LabelDownloadType = "url" | "inline";

src/create-label-from-rate/types/private-response.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export type Currency = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
1515
export type Currency1 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
1616
export type SeId2 = string;
1717
export type SeId3 = string;
18-
export type LabelChargeEvent = "carrier_default" | "on_creation" | "on_carrier_acceptance";
18+
export type LabelChargeEvent =
19+
| "carrier_default"
20+
| "on_creation"
21+
| "on_carrier_acceptance";
1922
export type ServiceCode = string;
2023
export type PackageCode = string;
2124
export type DateTime1 = string;

src/create-label-from-shipment-details/types/private-request.ts

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ export type OrderSourceName =
2929
| "woo_commerce"
3030
| "volusion";
3131
export type TaxableEntityType = "shipper" | "recipient";
32-
export type IdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec";
32+
export type IdentifierType =
33+
| "vat"
34+
| "eori"
35+
| "ssn"
36+
| "ein"
37+
| "tin"
38+
| "ioss"
39+
| "pan"
40+
| "voec";
3341
export type Address = PartialAddress;
3442
export type PostalCode = string;
3543
export type CountryCode = string;
@@ -50,18 +58,31 @@ export type DeliveryConfirmation =
5058
| "adult_signature"
5159
| "direct_signature"
5260
| "delivery_mailed";
53-
export type PackageContents = "merchandise" | "documents" | "gift" | "returned_goods" | "sample";
61+
export type PackageContents =
62+
| "merchandise"
63+
| "documents"
64+
| "gift"
65+
| "returned_goods"
66+
| "sample";
5467
export type NonDelivery = "return_to_sender" | "treat_as_abandoned";
5568
export type Currency = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
5669
export type CountryCode3 = string;
5770
export type CountryCode4 = string;
5871
export type BillToParty = "recipient" | "third_party";
5972
export type WeightUnit = "pound" | "ounce" | "gram" | "kilogram";
6073
export type OriginType = "pickup" | "drop_off";
61-
export type CollectOnDeliveryPaymentType = "any" | "cash" | "cash_equivalent" | "none";
74+
export type CollectOnDeliveryPaymentType =
75+
| "any"
76+
| "cash"
77+
| "cash_equivalent"
78+
| "none";
6279
export type Currency1 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
6380
export type OriginType1 = "pickup" | "drop_off";
64-
export type InsuranceProvider = "none" | "shipsurance" | "carrier" | "third_party";
81+
export type InsuranceProvider =
82+
| "none"
83+
| "shipsurance"
84+
| "carrier"
85+
| "third_party";
6586
export type OrderSourceName1 =
6687
| "amazon_ca"
6788
| "amazon_us"
@@ -83,9 +104,15 @@ export type OrderSourceName1 =
83104
| "walmart"
84105
| "woo_commerce"
85106
| "volusion";
86-
export type LabelChargeEvent = "carrier_default" | "on_creation" | "on_carrier_acceptance";
107+
export type LabelChargeEvent =
108+
| "carrier_default"
109+
| "on_creation"
110+
| "on_carrier_acceptance";
87111
export type SeId1 = string;
88-
export type ValidateAddress = "no_validation" | "validate_only" | "validate_and_clean";
112+
export type ValidateAddress =
113+
| "no_validation"
114+
| "validate_only"
115+
| "validate_and_clean";
89116
export type LabelDownloadType = "url" | "inline";
90117
export type LabelFormat = "pdf" | "png" | "zpl";
91118
export type DisplayScheme = "label" | "qr_code";

src/create-label-from-shipment-details/types/private-response.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export type Currency = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
1515
export type Currency1 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
1616
export type SeId2 = string;
1717
export type SeId3 = string;
18-
export type LabelChargeEvent = "carrier_default" | "on_creation" | "on_carrier_acceptance";
18+
export type LabelChargeEvent =
19+
| "carrier_default"
20+
| "on_creation"
21+
| "on_carrier_acceptance";
1922
export type ServiceCode = string;
2023
export type PackageCode = string;
2124
export type DateTime1 = string;

src/get-rates-with-shipment-details/types/private-request.ts

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8-
export type CalculateRatesRequestBody = CalculateRatesRequestBody1 & CalculateRatesRequestBody2;
8+
export type CalculateRatesRequestBody = CalculateRatesRequestBody1 &
9+
CalculateRatesRequestBody2;
910
export type CalculateRatesRequestBody1 = RateRequestOptions;
1011
export type SeId = string;
1112
export type Currency = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
1213
export type CalculateRatesRequestBody2 = ShipmentIdRequest | ShipmentRequest;
13-
export type AddressValidatingShipment = ValidateShipmentFields & PartialShipment;
14-
export type ValidateAddress = "no_validation" | "validate_only" | "validate_and_clean";
14+
export type AddressValidatingShipment = ValidateShipmentFields &
15+
PartialShipment;
16+
export type ValidateAddress =
17+
| "no_validation"
18+
| "validate_only"
19+
| "validate_and_clean";
1520
export type SeId1 = string;
1621
export type ServiceCode = string;
1722
export type OrderSourceName =
@@ -36,7 +41,15 @@ export type OrderSourceName =
3641
| "woo_commerce"
3742
| "volusion";
3843
export type TaxableEntityType = "shipper" | "recipient";
39-
export type IdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec";
44+
export type IdentifierType =
45+
| "vat"
46+
| "eori"
47+
| "ssn"
48+
| "ein"
49+
| "tin"
50+
| "ioss"
51+
| "pan"
52+
| "voec";
4053
export type Date = string;
4154
export type Address = PartialAddress;
4255
export type PostalCode = string;
@@ -58,18 +71,31 @@ export type DeliveryConfirmation =
5871
| "adult_signature"
5972
| "direct_signature"
6073
| "delivery_mailed";
61-
export type PackageContents = "merchandise" | "documents" | "gift" | "returned_goods" | "sample";
74+
export type PackageContents =
75+
| "merchandise"
76+
| "documents"
77+
| "gift"
78+
| "returned_goods"
79+
| "sample";
6280
export type NonDelivery = "return_to_sender" | "treat_as_abandoned";
6381
export type Currency1 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
6482
export type CountryCode3 = string;
6583
export type CountryCode4 = string;
6684
export type BillToParty = "recipient" | "third_party";
6785
export type WeightUnit = "pound" | "ounce" | "gram" | "kilogram";
6886
export type OriginType = "pickup" | "drop_off";
69-
export type CollectOnDeliveryPaymentType = "any" | "cash" | "cash_equivalent" | "none";
87+
export type CollectOnDeliveryPaymentType =
88+
| "any"
89+
| "cash"
90+
| "cash_equivalent"
91+
| "none";
7092
export type Currency2 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
7193
export type OriginType1 = "pickup" | "drop_off";
72-
export type InsuranceProvider = "none" | "shipsurance" | "carrier" | "third_party";
94+
export type InsuranceProvider =
95+
| "none"
96+
| "shipsurance"
97+
| "carrier"
98+
| "third_party";
7399
export type OrderSourceName1 =
74100
| "amazon_ca"
75101
| "amazon_us"

src/get-rates-with-shipment-details/types/private-response.ts

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,23 @@ export type OrderSourceName =
3131
| "woo_commerce"
3232
| "volusion";
3333
export type TaxableEntityType = "shipper" | "recipient";
34-
export type IdentifierType = "vat" | "eori" | "ssn" | "ein" | "tin" | "ioss" | "pan" | "voec";
34+
export type IdentifierType =
35+
| "vat"
36+
| "eori"
37+
| "ssn"
38+
| "ein"
39+
| "tin"
40+
| "ioss"
41+
| "pan"
42+
| "voec";
3543
export type Date = string;
3644
export type DateTime = string;
3745
export type DateTime1 = string;
38-
export type ShipmentStatus = "pending" | "processing" | "label_purchased" | "cancelled";
46+
export type ShipmentStatus =
47+
| "pending"
48+
| "processing"
49+
| "label_purchased"
50+
| "cancelled";
3951
export type Address = PartialAddress;
4052
export type PostalCode = string;
4153
export type CountryCode = string;
@@ -56,7 +68,12 @@ export type DeliveryConfirmation =
5668
| "adult_signature"
5769
| "direct_signature"
5870
| "delivery_mailed";
59-
export type PackageContents = "merchandise" | "documents" | "gift" | "returned_goods" | "sample";
71+
export type PackageContents =
72+
| "merchandise"
73+
| "documents"
74+
| "gift"
75+
| "returned_goods"
76+
| "sample";
6077
export type NonDelivery = "return_to_sender" | "treat_as_abandoned";
6178
export type SeId3 = string;
6279
export type Currency = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
@@ -65,10 +82,18 @@ export type CountryCode4 = string;
6582
export type BillToParty = "recipient" | "third_party";
6683
export type WeightUnit = "pound" | "ounce" | "gram" | "kilogram";
6784
export type OriginType = "pickup" | "drop_off";
68-
export type CollectOnDeliveryPaymentType = "any" | "cash" | "cash_equivalent" | "none";
85+
export type CollectOnDeliveryPaymentType =
86+
| "any"
87+
| "cash"
88+
| "cash_equivalent"
89+
| "none";
6990
export type Currency1 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
7091
export type OriginType1 = "pickup" | "drop_off";
71-
export type InsuranceProvider = "none" | "shipsurance" | "carrier" | "third_party";
92+
export type InsuranceProvider =
93+
| "none"
94+
| "shipsurance"
95+
| "carrier"
96+
| "third_party";
7297
export type OrderSourceName1 =
7398
| "amazon_ca"
7499
| "amazon_us"
@@ -115,13 +140,23 @@ export type Currency10 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
115140
export type Currency11 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
116141
export type Currency12 = "usd" | "cad" | "aud" | "gbp" | "eur" | "nzd";
117142
export type Date2 = string;
118-
export type ValidationStatus1 = "valid" | "invalid" | "has_warnings" | "unknown";
143+
export type ValidationStatus1 =
144+
| "valid"
145+
| "invalid"
146+
| "has_warnings"
147+
| "unknown";
119148
export type SeId8 = string;
120149
export type SeId9 = string;
121150
export type SeId10 = string;
122151
export type RateResponseStatus = "working" | "completed" | "partial" | "error";
123152
export type ErrorSource = "carrier" | "order_source" | "shipengine";
124-
export type ErrorType = "account_status" | "business_rules" | "validation" | "security" | "system" | "integrations";
153+
export type ErrorType =
154+
| "account_status"
155+
| "business_rules"
156+
| "validation"
157+
| "security"
158+
| "system"
159+
| "integrations";
125160
export type ErrorCode =
126161
| "auto_fund_not_supported"
127162
| "batch_cannot_be_modified"

src/list-carriers/types/private-response.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8-
export type ListCarriersResponseBody = ListCarriersResponseBody1 & ErrorResponseBody;
8+
export type ListCarriersResponseBody = ListCarriersResponseBody1 &
9+
ErrorResponseBody;
910
export type SeId = string;
1011
export type SeId1 = string;
1112
export type SeId2 = string;
@@ -15,7 +16,13 @@ export type PackageCode = string;
1516
export type DimensionUnit = "inch" | "centimeter";
1617
export type Uuid = string;
1718
export type ErrorSource = "carrier" | "order_source" | "shipengine";
18-
export type ErrorType = "account_status" | "business_rules" | "validation" | "security" | "system" | "integrations";
19+
export type ErrorType =
20+
| "account_status"
21+
| "business_rules"
22+
| "validation"
23+
| "security"
24+
| "system"
25+
| "integrations";
1926
export type ErrorCode =
2027
| "auto_fund_not_supported"
2128
| "batch_cannot_be_modified"

src/validate-addresses/types/private-response.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8-
export type AddressValidationStatus = "unverified" | "verified" | "warning" | "error";
8+
export type AddressValidationStatus =
9+
| "unverified"
10+
| "verified"
11+
| "warning"
12+
| "error";
913
export type Address = PartialAddress;
1014
export type PostalCode = string;
1115
export type CountryCode = string;

0 commit comments

Comments
 (0)