@shipengine/alchemy 5.1.9 → 5.1.11
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/index.js +100 -33
- package/index.mjs +100 -34
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13670,7 +13670,7 @@ var ipaddr = {
|
|
|
13670
13670
|
}).call(commonjsGlobal);
|
|
13671
13671
|
} (ipaddr));
|
|
13672
13672
|
|
|
13673
|
-
var __async$
|
|
13673
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
13674
13674
|
return new Promise((resolve, reject) => {
|
|
13675
13675
|
var fulfilled = (value) => {
|
|
13676
13676
|
try {
|
|
@@ -13690,7 +13690,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
13690
13690
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13691
13691
|
});
|
|
13692
13692
|
};
|
|
13693
|
-
const getEndUserIpAddress = () => __async$
|
|
13693
|
+
const getEndUserIpAddress = () => __async$G(void 0, null, function* () {
|
|
13694
13694
|
try {
|
|
13695
13695
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13696
13696
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13733,7 +13733,7 @@ var __objRest$c = (source, exclude) => {
|
|
|
13733
13733
|
}
|
|
13734
13734
|
return target;
|
|
13735
13735
|
};
|
|
13736
|
-
var __async$
|
|
13736
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
13737
13737
|
return new Promise((resolve, reject) => {
|
|
13738
13738
|
var fulfilled = (value) => {
|
|
13739
13739
|
try {
|
|
@@ -13771,7 +13771,7 @@ class CarriersAPI {
|
|
|
13771
13771
|
/**
|
|
13772
13772
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13773
13773
|
*/
|
|
13774
|
-
this.connect = (_a) => __async$
|
|
13774
|
+
this.connect = (_a) => __async$F(this, null, function* () {
|
|
13775
13775
|
var _b = _a, { carrierCode } = _b, connection = __objRest$c(_b, ["carrierCode"]);
|
|
13776
13776
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13777
13777
|
if (!endUserIpAddress)
|
|
@@ -13855,6 +13855,26 @@ class CarriersAPI {
|
|
|
13855
13855
|
}
|
|
13856
13856
|
}
|
|
13857
13857
|
|
|
13858
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
13859
|
+
return new Promise((resolve, reject) => {
|
|
13860
|
+
var fulfilled = (value) => {
|
|
13861
|
+
try {
|
|
13862
|
+
step(generator.next(value));
|
|
13863
|
+
} catch (e) {
|
|
13864
|
+
reject(e);
|
|
13865
|
+
}
|
|
13866
|
+
};
|
|
13867
|
+
var rejected = (value) => {
|
|
13868
|
+
try {
|
|
13869
|
+
step(generator.throw(value));
|
|
13870
|
+
} catch (e) {
|
|
13871
|
+
reject(e);
|
|
13872
|
+
}
|
|
13873
|
+
};
|
|
13874
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
13875
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
13876
|
+
});
|
|
13877
|
+
};
|
|
13858
13878
|
class ConnectionsAPI {
|
|
13859
13879
|
constructor(client) {
|
|
13860
13880
|
this.client = client;
|
|
@@ -13874,6 +13894,15 @@ class ConnectionsAPI {
|
|
|
13874
13894
|
{ params }
|
|
13875
13895
|
);
|
|
13876
13896
|
};
|
|
13897
|
+
/**
|
|
13898
|
+
* The `connectCarrier` method connects a carrier to account.
|
|
13899
|
+
*/
|
|
13900
|
+
this.connectCarrier = (carrierName, formData) => __async$E(this, null, function* () {
|
|
13901
|
+
return yield this.client.post(
|
|
13902
|
+
`/v1/connections/carriers/${carrierName}`,
|
|
13903
|
+
formData
|
|
13904
|
+
);
|
|
13905
|
+
});
|
|
13877
13906
|
this.client = client;
|
|
13878
13907
|
}
|
|
13879
13908
|
}
|
|
@@ -16103,7 +16132,7 @@ var __spreadValues$6 = (a, b) => {
|
|
|
16103
16132
|
}
|
|
16104
16133
|
return a;
|
|
16105
16134
|
};
|
|
16106
|
-
var __async$
|
|
16135
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
16107
16136
|
return new Promise((resolve, reject) => {
|
|
16108
16137
|
var fulfilled = (value) => {
|
|
16109
16138
|
try {
|
|
@@ -16142,7 +16171,7 @@ class FundingSourcesAPI {
|
|
|
16142
16171
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16143
16172
|
* payment information to be collected from the user.
|
|
16144
16173
|
*/
|
|
16145
|
-
this.create = (createFundingSource) => __async$
|
|
16174
|
+
this.create = (createFundingSource) => __async$D(this, null, function* () {
|
|
16146
16175
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16147
16176
|
if (!endUserIpAddress)
|
|
16148
16177
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16155,7 +16184,7 @@ class FundingSourcesAPI {
|
|
|
16155
16184
|
* user to update the billing address or payment information associated with the
|
|
16156
16185
|
* funding source.
|
|
16157
16186
|
*/
|
|
16158
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16187
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$D(this, null, function* () {
|
|
16159
16188
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16160
16189
|
if (!endUserIpAddress)
|
|
16161
16190
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16172,7 +16201,7 @@ class FundingSourcesAPI {
|
|
|
16172
16201
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16173
16202
|
* it with a given funding source.
|
|
16174
16203
|
*/
|
|
16175
|
-
this.registerCarrier = (carrier) => __async$
|
|
16204
|
+
this.registerCarrier = (carrier) => __async$D(this, null, function* () {
|
|
16176
16205
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16177
16206
|
if (!endUserIpAddress)
|
|
16178
16207
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16183,7 +16212,7 @@ class FundingSourcesAPI {
|
|
|
16183
16212
|
/**
|
|
16184
16213
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16185
16214
|
*/
|
|
16186
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16215
|
+
this.addFunds = (amount, fundingSourceId) => __async$D(this, null, function* () {
|
|
16187
16216
|
return yield this.client.put(
|
|
16188
16217
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16189
16218
|
amount
|
|
@@ -16193,7 +16222,7 @@ class FundingSourcesAPI {
|
|
|
16193
16222
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16194
16223
|
* and attaching carriers
|
|
16195
16224
|
*/
|
|
16196
|
-
this.metadata = () => __async$
|
|
16225
|
+
this.metadata = () => __async$D(this, null, function* () {
|
|
16197
16226
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16198
16227
|
});
|
|
16199
16228
|
/**
|
|
@@ -16487,7 +16516,7 @@ class ServicePointsAPI {
|
|
|
16487
16516
|
}
|
|
16488
16517
|
}
|
|
16489
16518
|
|
|
16490
|
-
var __async$
|
|
16519
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
16491
16520
|
return new Promise((resolve, reject) => {
|
|
16492
16521
|
var fulfilled = (value) => {
|
|
16493
16522
|
try {
|
|
@@ -16530,7 +16559,7 @@ class ShipmentsAPI {
|
|
|
16530
16559
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16531
16560
|
* items passed into this method.
|
|
16532
16561
|
*/
|
|
16533
|
-
this.create = (...shipments) => __async$
|
|
16562
|
+
this.create = (...shipments) => __async$C(this, null, function* () {
|
|
16534
16563
|
return this.client.post("/v1/shipments", {
|
|
16535
16564
|
shipments
|
|
16536
16565
|
});
|
|
@@ -16653,7 +16682,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
16653
16682
|
return a;
|
|
16654
16683
|
};
|
|
16655
16684
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
16656
|
-
var __async$
|
|
16685
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
16657
16686
|
return new Promise((resolve, reject) => {
|
|
16658
16687
|
var fulfilled = (value) => {
|
|
16659
16688
|
try {
|
|
@@ -16747,7 +16776,7 @@ class ShipEngineAPI {
|
|
|
16747
16776
|
);
|
|
16748
16777
|
return res;
|
|
16749
16778
|
},
|
|
16750
|
-
(err) => __async$
|
|
16779
|
+
(err) => __async$B(this, null, function* () {
|
|
16751
16780
|
var _a, _b, _c, _d, _e;
|
|
16752
16781
|
logger$1.error(
|
|
16753
16782
|
{ err, req: err.config, res: err.response },
|
|
@@ -17053,7 +17082,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
17053
17082
|
throw error;
|
|
17054
17083
|
});
|
|
17055
17084
|
|
|
17056
|
-
var __async$
|
|
17085
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
17057
17086
|
return new Promise((resolve, reject) => {
|
|
17058
17087
|
var fulfilled = (value) => {
|
|
17059
17088
|
try {
|
|
@@ -17076,7 +17105,7 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
17076
17105
|
const useCreateAccountImage = () => {
|
|
17077
17106
|
const { client } = useShipEngine();
|
|
17078
17107
|
return reactQuery.useMutation({
|
|
17079
|
-
mutationFn: (data) => __async$
|
|
17108
|
+
mutationFn: (data) => __async$A(void 0, null, function* () {
|
|
17080
17109
|
const result = yield client.accountSettings.createImage(data);
|
|
17081
17110
|
return result.data;
|
|
17082
17111
|
}),
|
|
@@ -17085,7 +17114,7 @@ const useCreateAccountImage = () => {
|
|
|
17085
17114
|
});
|
|
17086
17115
|
};
|
|
17087
17116
|
|
|
17088
|
-
var __async$
|
|
17117
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
17089
17118
|
return new Promise((resolve, reject) => {
|
|
17090
17119
|
var fulfilled = (value) => {
|
|
17091
17120
|
try {
|
|
@@ -17108,7 +17137,7 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
17108
17137
|
const useDeleteAccountImage = () => {
|
|
17109
17138
|
const { client } = useShipEngine();
|
|
17110
17139
|
return reactQuery.useMutation({
|
|
17111
|
-
mutationFn: (labelImageId) => __async$
|
|
17140
|
+
mutationFn: (labelImageId) => __async$z(void 0, null, function* () {
|
|
17112
17141
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
17113
17142
|
return result.data;
|
|
17114
17143
|
}),
|
|
@@ -17137,7 +17166,7 @@ const useGetAccountSettings = () => {
|
|
|
17137
17166
|
});
|
|
17138
17167
|
};
|
|
17139
17168
|
|
|
17140
|
-
var __async$
|
|
17169
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
17141
17170
|
return new Promise((resolve, reject) => {
|
|
17142
17171
|
var fulfilled = (value) => {
|
|
17143
17172
|
try {
|
|
@@ -17160,7 +17189,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
17160
17189
|
const useUpdateAccountImage = () => {
|
|
17161
17190
|
const { client } = useShipEngine();
|
|
17162
17191
|
return reactQuery.useMutation({
|
|
17163
|
-
mutationFn: (data) => __async$
|
|
17192
|
+
mutationFn: (data) => __async$y(void 0, null, function* () {
|
|
17164
17193
|
const result = yield client.accountSettings.updateImage(data);
|
|
17165
17194
|
return result.data;
|
|
17166
17195
|
}),
|
|
@@ -17169,7 +17198,7 @@ const useUpdateAccountImage = () => {
|
|
|
17169
17198
|
});
|
|
17170
17199
|
};
|
|
17171
17200
|
|
|
17172
|
-
var __async$
|
|
17201
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
17173
17202
|
return new Promise((resolve, reject) => {
|
|
17174
17203
|
var fulfilled = (value) => {
|
|
17175
17204
|
try {
|
|
@@ -17192,7 +17221,7 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
17192
17221
|
const useUpdateAccountSettings = () => {
|
|
17193
17222
|
const { client } = useShipEngine();
|
|
17194
17223
|
return reactQuery.useMutation({
|
|
17195
|
-
mutationFn: (settings) => __async$
|
|
17224
|
+
mutationFn: (settings) => __async$x(void 0, null, function* () {
|
|
17196
17225
|
const result = yield client.accountSettings.update(settings);
|
|
17197
17226
|
return result.data;
|
|
17198
17227
|
}),
|
|
@@ -17201,7 +17230,7 @@ const useUpdateAccountSettings = () => {
|
|
|
17201
17230
|
});
|
|
17202
17231
|
};
|
|
17203
17232
|
|
|
17204
|
-
var __async$
|
|
17233
|
+
var __async$w = (__this, __arguments, generator) => {
|
|
17205
17234
|
return new Promise((resolve, reject) => {
|
|
17206
17235
|
var fulfilled = (value) => {
|
|
17207
17236
|
try {
|
|
@@ -17224,7 +17253,7 @@ var __async$v = (__this, __arguments, generator) => {
|
|
|
17224
17253
|
const useParseAddress = () => {
|
|
17225
17254
|
const { client } = useShipEngine();
|
|
17226
17255
|
return reactQuery.useMutation({
|
|
17227
|
-
mutationFn: (_0) => __async$
|
|
17256
|
+
mutationFn: (_0) => __async$w(void 0, [_0], function* ({ address, text }) {
|
|
17228
17257
|
const result = yield client.addresses.parse(text, address);
|
|
17229
17258
|
return result.data;
|
|
17230
17259
|
}),
|
|
@@ -17233,7 +17262,7 @@ const useParseAddress = () => {
|
|
|
17233
17262
|
});
|
|
17234
17263
|
};
|
|
17235
17264
|
|
|
17236
|
-
var __async$
|
|
17265
|
+
var __async$v = (__this, __arguments, generator) => {
|
|
17237
17266
|
return new Promise((resolve, reject) => {
|
|
17238
17267
|
var fulfilled = (value) => {
|
|
17239
17268
|
try {
|
|
@@ -17256,7 +17285,7 @@ var __async$u = (__this, __arguments, generator) => {
|
|
|
17256
17285
|
const useValidateAddresses = () => {
|
|
17257
17286
|
const { client } = useShipEngine();
|
|
17258
17287
|
return reactQuery.useMutation({
|
|
17259
|
-
mutationFn: (addresses) => __async$
|
|
17288
|
+
mutationFn: (addresses) => __async$v(void 0, null, function* () {
|
|
17260
17289
|
const result = yield client.addresses.validate(addresses);
|
|
17261
17290
|
return result.data;
|
|
17262
17291
|
}),
|
|
@@ -17265,7 +17294,7 @@ const useValidateAddresses = () => {
|
|
|
17265
17294
|
});
|
|
17266
17295
|
};
|
|
17267
17296
|
|
|
17268
|
-
var __async$
|
|
17297
|
+
var __async$u = (__this, __arguments, generator) => {
|
|
17269
17298
|
return new Promise((resolve, reject) => {
|
|
17270
17299
|
var fulfilled = (value) => {
|
|
17271
17300
|
try {
|
|
@@ -17288,7 +17317,7 @@ var __async$t = (__this, __arguments, generator) => {
|
|
|
17288
17317
|
const useAddFunds = () => {
|
|
17289
17318
|
const { client } = useShipEngine();
|
|
17290
17319
|
return reactQuery.useMutation({
|
|
17291
|
-
mutationFn: (_0) => __async$
|
|
17320
|
+
mutationFn: (_0) => __async$u(void 0, [_0], function* ({ carrierId, funds }) {
|
|
17292
17321
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
17293
17322
|
return result.data;
|
|
17294
17323
|
}),
|
|
@@ -17297,7 +17326,7 @@ const useAddFunds = () => {
|
|
|
17297
17326
|
});
|
|
17298
17327
|
};
|
|
17299
17328
|
|
|
17300
|
-
var __async$
|
|
17329
|
+
var __async$t = (__this, __arguments, generator) => {
|
|
17301
17330
|
return new Promise((resolve, reject) => {
|
|
17302
17331
|
var fulfilled = (value) => {
|
|
17303
17332
|
try {
|
|
@@ -17320,7 +17349,7 @@ var __async$s = (__this, __arguments, generator) => {
|
|
|
17320
17349
|
const useConnectCarrier = () => {
|
|
17321
17350
|
const { client } = useShipEngine();
|
|
17322
17351
|
return reactQuery.useMutation({
|
|
17323
|
-
mutationFn: (params) => __async$
|
|
17352
|
+
mutationFn: (params) => __async$t(void 0, null, function* () {
|
|
17324
17353
|
const result = yield client.carriers.connect(params);
|
|
17325
17354
|
return result.data;
|
|
17326
17355
|
}),
|
|
@@ -17454,7 +17483,7 @@ var __objRest$b = (source, exclude) => {
|
|
|
17454
17483
|
}
|
|
17455
17484
|
return target;
|
|
17456
17485
|
};
|
|
17457
|
-
var __async$
|
|
17486
|
+
var __async$s = (__this, __arguments, generator) => {
|
|
17458
17487
|
return new Promise((resolve, reject) => {
|
|
17459
17488
|
var fulfilled = (value) => {
|
|
17460
17489
|
try {
|
|
@@ -17478,7 +17507,7 @@ const useUpdateAutoFunding = () => {
|
|
|
17478
17507
|
const { client } = useShipEngine();
|
|
17479
17508
|
const queryClient = reactQuery.useQueryClient();
|
|
17480
17509
|
return reactQuery.useMutation({
|
|
17481
|
-
mutationFn: (_a) => __async$
|
|
17510
|
+
mutationFn: (_a) => __async$s(void 0, null, function* () {
|
|
17482
17511
|
var _b = _a, { carrierId } = _b, options = __objRest$b(_b, ["carrierId"]);
|
|
17483
17512
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
17484
17513
|
return result.data;
|
|
@@ -17562,6 +17591,41 @@ const useListCarrierConnections = (_params) => {
|
|
|
17562
17591
|
});
|
|
17563
17592
|
};
|
|
17564
17593
|
|
|
17594
|
+
var __async$r = (__this, __arguments, generator) => {
|
|
17595
|
+
return new Promise((resolve, reject) => {
|
|
17596
|
+
var fulfilled = (value) => {
|
|
17597
|
+
try {
|
|
17598
|
+
step(generator.next(value));
|
|
17599
|
+
} catch (e) {
|
|
17600
|
+
reject(e);
|
|
17601
|
+
}
|
|
17602
|
+
};
|
|
17603
|
+
var rejected = (value) => {
|
|
17604
|
+
try {
|
|
17605
|
+
step(generator.throw(value));
|
|
17606
|
+
} catch (e) {
|
|
17607
|
+
reject(e);
|
|
17608
|
+
}
|
|
17609
|
+
};
|
|
17610
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
17611
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
17612
|
+
});
|
|
17613
|
+
};
|
|
17614
|
+
const useConnectCarrierAccount = () => {
|
|
17615
|
+
const { client } = useShipEngine();
|
|
17616
|
+
return reactQuery.useMutation({
|
|
17617
|
+
mutationFn: (_0) => __async$r(void 0, [_0], function* ({ carrierName, formData }) {
|
|
17618
|
+
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
17619
|
+
if (result.status > 300 && result.status < 309) {
|
|
17620
|
+
result.data.redirectUrl = result.request.res.responseUrl;
|
|
17621
|
+
}
|
|
17622
|
+
return result.data;
|
|
17623
|
+
}),
|
|
17624
|
+
mutationKey: ["useConnectCarrierAccount"],
|
|
17625
|
+
onError
|
|
17626
|
+
});
|
|
17627
|
+
};
|
|
17628
|
+
|
|
17565
17629
|
const useListCustomPackageTypes = () => {
|
|
17566
17630
|
const { client } = useShipEngine();
|
|
17567
17631
|
return reactQuery.useQuery({
|
|
@@ -18897,9 +18961,11 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
18897
18961
|
const useListServicePoints = (options) => {
|
|
18898
18962
|
const { client } = useShipEngine();
|
|
18899
18963
|
return reactQuery.useQuery({
|
|
18964
|
+
enabled: options.providers.length > 0,
|
|
18900
18965
|
onError,
|
|
18901
18966
|
queryFn: () => client.servicePoints.list(options),
|
|
18902
|
-
queryKey: ["useListServicePoints"],
|
|
18967
|
+
queryKey: ["useListServicePoints", options],
|
|
18968
|
+
retry: false,
|
|
18903
18969
|
select: (result) => result.data
|
|
18904
18970
|
});
|
|
18905
18971
|
};
|
|
@@ -20100,6 +20166,7 @@ exports.useAddInsuranceFunds = useAddInsuranceFunds;
|
|
|
20100
20166
|
exports.useAlchemy = useAlchemy;
|
|
20101
20167
|
exports.useCalculateRates = useCalculateRates;
|
|
20102
20168
|
exports.useConnectCarrier = useConnectCarrier;
|
|
20169
|
+
exports.useConnectCarrierAccount = useConnectCarrierAccount;
|
|
20103
20170
|
exports.useCreateAccountImage = useCreateAccountImage;
|
|
20104
20171
|
exports.useCreateFundingSource = useCreateFundingSource;
|
|
20105
20172
|
exports.useCreateLabel = useCreateLabel;
|
package/index.mjs
CHANGED
|
@@ -13648,7 +13648,7 @@ var ipaddr = {
|
|
|
13648
13648
|
}).call(commonjsGlobal);
|
|
13649
13649
|
} (ipaddr));
|
|
13650
13650
|
|
|
13651
|
-
var __async$
|
|
13651
|
+
var __async$G = (__this, __arguments, generator) => {
|
|
13652
13652
|
return new Promise((resolve, reject) => {
|
|
13653
13653
|
var fulfilled = (value) => {
|
|
13654
13654
|
try {
|
|
@@ -13668,7 +13668,7 @@ var __async$E = (__this, __arguments, generator) => {
|
|
|
13668
13668
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
13669
13669
|
});
|
|
13670
13670
|
};
|
|
13671
|
-
const getEndUserIpAddress = () => __async$
|
|
13671
|
+
const getEndUserIpAddress = () => __async$G(void 0, null, function* () {
|
|
13672
13672
|
try {
|
|
13673
13673
|
const response = yield axios.get("https://api.ipify.org/?format=json");
|
|
13674
13674
|
if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
|
|
@@ -13711,7 +13711,7 @@ var __objRest$c = (source, exclude) => {
|
|
|
13711
13711
|
}
|
|
13712
13712
|
return target;
|
|
13713
13713
|
};
|
|
13714
|
-
var __async$
|
|
13714
|
+
var __async$F = (__this, __arguments, generator) => {
|
|
13715
13715
|
return new Promise((resolve, reject) => {
|
|
13716
13716
|
var fulfilled = (value) => {
|
|
13717
13717
|
try {
|
|
@@ -13749,7 +13749,7 @@ class CarriersAPI {
|
|
|
13749
13749
|
/**
|
|
13750
13750
|
* The `connect` method connects a carrier account to a user's ShipEngine account.
|
|
13751
13751
|
*/
|
|
13752
|
-
this.connect = (_a) => __async$
|
|
13752
|
+
this.connect = (_a) => __async$F(this, null, function* () {
|
|
13753
13753
|
var _b = _a, { carrierCode } = _b, connection = __objRest$c(_b, ["carrierCode"]);
|
|
13754
13754
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
13755
13755
|
if (!endUserIpAddress)
|
|
@@ -13833,6 +13833,26 @@ class CarriersAPI {
|
|
|
13833
13833
|
}
|
|
13834
13834
|
}
|
|
13835
13835
|
|
|
13836
|
+
var __async$E = (__this, __arguments, generator) => {
|
|
13837
|
+
return new Promise((resolve, reject) => {
|
|
13838
|
+
var fulfilled = (value) => {
|
|
13839
|
+
try {
|
|
13840
|
+
step(generator.next(value));
|
|
13841
|
+
} catch (e) {
|
|
13842
|
+
reject(e);
|
|
13843
|
+
}
|
|
13844
|
+
};
|
|
13845
|
+
var rejected = (value) => {
|
|
13846
|
+
try {
|
|
13847
|
+
step(generator.throw(value));
|
|
13848
|
+
} catch (e) {
|
|
13849
|
+
reject(e);
|
|
13850
|
+
}
|
|
13851
|
+
};
|
|
13852
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
13853
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
13854
|
+
});
|
|
13855
|
+
};
|
|
13836
13856
|
class ConnectionsAPI {
|
|
13837
13857
|
constructor(client) {
|
|
13838
13858
|
this.client = client;
|
|
@@ -13852,6 +13872,15 @@ class ConnectionsAPI {
|
|
|
13852
13872
|
{ params }
|
|
13853
13873
|
);
|
|
13854
13874
|
};
|
|
13875
|
+
/**
|
|
13876
|
+
* The `connectCarrier` method connects a carrier to account.
|
|
13877
|
+
*/
|
|
13878
|
+
this.connectCarrier = (carrierName, formData) => __async$E(this, null, function* () {
|
|
13879
|
+
return yield this.client.post(
|
|
13880
|
+
`/v1/connections/carriers/${carrierName}`,
|
|
13881
|
+
formData
|
|
13882
|
+
);
|
|
13883
|
+
});
|
|
13855
13884
|
this.client = client;
|
|
13856
13885
|
}
|
|
13857
13886
|
}
|
|
@@ -16081,7 +16110,7 @@ var __spreadValues$6 = (a, b) => {
|
|
|
16081
16110
|
}
|
|
16082
16111
|
return a;
|
|
16083
16112
|
};
|
|
16084
|
-
var __async$
|
|
16113
|
+
var __async$D = (__this, __arguments, generator) => {
|
|
16085
16114
|
return new Promise((resolve, reject) => {
|
|
16086
16115
|
var fulfilled = (value) => {
|
|
16087
16116
|
try {
|
|
@@ -16120,7 +16149,7 @@ class FundingSourcesAPI {
|
|
|
16120
16149
|
* The `create` method creates a new funding source for a given user. This requires
|
|
16121
16150
|
* payment information to be collected from the user.
|
|
16122
16151
|
*/
|
|
16123
|
-
this.create = (createFundingSource) => __async$
|
|
16152
|
+
this.create = (createFundingSource) => __async$D(this, null, function* () {
|
|
16124
16153
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16125
16154
|
if (!endUserIpAddress)
|
|
16126
16155
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16133,7 +16162,7 @@ class FundingSourcesAPI {
|
|
|
16133
16162
|
* user to update the billing address or payment information associated with the
|
|
16134
16163
|
* funding source.
|
|
16135
16164
|
*/
|
|
16136
|
-
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$
|
|
16165
|
+
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$D(this, null, function* () {
|
|
16137
16166
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16138
16167
|
if (!endUserIpAddress)
|
|
16139
16168
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16150,7 +16179,7 @@ class FundingSourcesAPI {
|
|
|
16150
16179
|
* The `registerCarrier` method registers a carrier account and associates
|
|
16151
16180
|
* it with a given funding source.
|
|
16152
16181
|
*/
|
|
16153
|
-
this.registerCarrier = (carrier) => __async$
|
|
16182
|
+
this.registerCarrier = (carrier) => __async$D(this, null, function* () {
|
|
16154
16183
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16155
16184
|
if (!endUserIpAddress)
|
|
16156
16185
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16161,7 +16190,7 @@ class FundingSourcesAPI {
|
|
|
16161
16190
|
/**
|
|
16162
16191
|
* The `addFunds` method allows you to add funds to a funding source.
|
|
16163
16192
|
*/
|
|
16164
|
-
this.addFunds = (amount, fundingSourceId) => __async$
|
|
16193
|
+
this.addFunds = (amount, fundingSourceId) => __async$D(this, null, function* () {
|
|
16165
16194
|
return yield this.client.put(
|
|
16166
16195
|
`/v1/funding_sources/${fundingSourceId}/add_funds`,
|
|
16167
16196
|
amount
|
|
@@ -16171,7 +16200,7 @@ class FundingSourcesAPI {
|
|
|
16171
16200
|
* The `metadata` method returns seller-specific requirements for creating funding sources
|
|
16172
16201
|
* and attaching carriers
|
|
16173
16202
|
*/
|
|
16174
|
-
this.metadata = () => __async$
|
|
16203
|
+
this.metadata = () => __async$D(this, null, function* () {
|
|
16175
16204
|
return yield this.client.get("/v1/funding_sources/metadata");
|
|
16176
16205
|
});
|
|
16177
16206
|
/**
|
|
@@ -16465,7 +16494,7 @@ class ServicePointsAPI {
|
|
|
16465
16494
|
}
|
|
16466
16495
|
}
|
|
16467
16496
|
|
|
16468
|
-
var __async$
|
|
16497
|
+
var __async$C = (__this, __arguments, generator) => {
|
|
16469
16498
|
return new Promise((resolve, reject) => {
|
|
16470
16499
|
var fulfilled = (value) => {
|
|
16471
16500
|
try {
|
|
@@ -16508,7 +16537,7 @@ class ShipmentsAPI {
|
|
|
16508
16537
|
* The `create` method allows for creating shipments based on a list of shipment
|
|
16509
16538
|
* items passed into this method.
|
|
16510
16539
|
*/
|
|
16511
|
-
this.create = (...shipments) => __async$
|
|
16540
|
+
this.create = (...shipments) => __async$C(this, null, function* () {
|
|
16512
16541
|
return this.client.post("/v1/shipments", {
|
|
16513
16542
|
shipments
|
|
16514
16543
|
});
|
|
@@ -16631,7 +16660,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
16631
16660
|
return a;
|
|
16632
16661
|
};
|
|
16633
16662
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
16634
|
-
var __async$
|
|
16663
|
+
var __async$B = (__this, __arguments, generator) => {
|
|
16635
16664
|
return new Promise((resolve, reject) => {
|
|
16636
16665
|
var fulfilled = (value) => {
|
|
16637
16666
|
try {
|
|
@@ -16725,7 +16754,7 @@ class ShipEngineAPI {
|
|
|
16725
16754
|
);
|
|
16726
16755
|
return res;
|
|
16727
16756
|
},
|
|
16728
|
-
(err) => __async$
|
|
16757
|
+
(err) => __async$B(this, null, function* () {
|
|
16729
16758
|
var _a, _b, _c, _d, _e;
|
|
16730
16759
|
logger$1.error(
|
|
16731
16760
|
{ err, req: err.config, res: err.response },
|
|
@@ -17031,7 +17060,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
|
|
|
17031
17060
|
throw error;
|
|
17032
17061
|
});
|
|
17033
17062
|
|
|
17034
|
-
var __async$
|
|
17063
|
+
var __async$A = (__this, __arguments, generator) => {
|
|
17035
17064
|
return new Promise((resolve, reject) => {
|
|
17036
17065
|
var fulfilled = (value) => {
|
|
17037
17066
|
try {
|
|
@@ -17054,7 +17083,7 @@ var __async$z = (__this, __arguments, generator) => {
|
|
|
17054
17083
|
const useCreateAccountImage = () => {
|
|
17055
17084
|
const { client } = useShipEngine();
|
|
17056
17085
|
return useMutation({
|
|
17057
|
-
mutationFn: (data) => __async$
|
|
17086
|
+
mutationFn: (data) => __async$A(void 0, null, function* () {
|
|
17058
17087
|
const result = yield client.accountSettings.createImage(data);
|
|
17059
17088
|
return result.data;
|
|
17060
17089
|
}),
|
|
@@ -17063,7 +17092,7 @@ const useCreateAccountImage = () => {
|
|
|
17063
17092
|
});
|
|
17064
17093
|
};
|
|
17065
17094
|
|
|
17066
|
-
var __async$
|
|
17095
|
+
var __async$z = (__this, __arguments, generator) => {
|
|
17067
17096
|
return new Promise((resolve, reject) => {
|
|
17068
17097
|
var fulfilled = (value) => {
|
|
17069
17098
|
try {
|
|
@@ -17086,7 +17115,7 @@ var __async$y = (__this, __arguments, generator) => {
|
|
|
17086
17115
|
const useDeleteAccountImage = () => {
|
|
17087
17116
|
const { client } = useShipEngine();
|
|
17088
17117
|
return useMutation({
|
|
17089
|
-
mutationFn: (labelImageId) => __async$
|
|
17118
|
+
mutationFn: (labelImageId) => __async$z(void 0, null, function* () {
|
|
17090
17119
|
const result = yield client.accountSettings.deleteImage(labelImageId);
|
|
17091
17120
|
return result.data;
|
|
17092
17121
|
}),
|
|
@@ -17115,7 +17144,7 @@ const useGetAccountSettings = () => {
|
|
|
17115
17144
|
});
|
|
17116
17145
|
};
|
|
17117
17146
|
|
|
17118
|
-
var __async$
|
|
17147
|
+
var __async$y = (__this, __arguments, generator) => {
|
|
17119
17148
|
return new Promise((resolve, reject) => {
|
|
17120
17149
|
var fulfilled = (value) => {
|
|
17121
17150
|
try {
|
|
@@ -17138,7 +17167,7 @@ var __async$x = (__this, __arguments, generator) => {
|
|
|
17138
17167
|
const useUpdateAccountImage = () => {
|
|
17139
17168
|
const { client } = useShipEngine();
|
|
17140
17169
|
return useMutation({
|
|
17141
|
-
mutationFn: (data) => __async$
|
|
17170
|
+
mutationFn: (data) => __async$y(void 0, null, function* () {
|
|
17142
17171
|
const result = yield client.accountSettings.updateImage(data);
|
|
17143
17172
|
return result.data;
|
|
17144
17173
|
}),
|
|
@@ -17147,7 +17176,7 @@ const useUpdateAccountImage = () => {
|
|
|
17147
17176
|
});
|
|
17148
17177
|
};
|
|
17149
17178
|
|
|
17150
|
-
var __async$
|
|
17179
|
+
var __async$x = (__this, __arguments, generator) => {
|
|
17151
17180
|
return new Promise((resolve, reject) => {
|
|
17152
17181
|
var fulfilled = (value) => {
|
|
17153
17182
|
try {
|
|
@@ -17170,7 +17199,7 @@ var __async$w = (__this, __arguments, generator) => {
|
|
|
17170
17199
|
const useUpdateAccountSettings = () => {
|
|
17171
17200
|
const { client } = useShipEngine();
|
|
17172
17201
|
return useMutation({
|
|
17173
|
-
mutationFn: (settings) => __async$
|
|
17202
|
+
mutationFn: (settings) => __async$x(void 0, null, function* () {
|
|
17174
17203
|
const result = yield client.accountSettings.update(settings);
|
|
17175
17204
|
return result.data;
|
|
17176
17205
|
}),
|
|
@@ -17179,7 +17208,7 @@ const useUpdateAccountSettings = () => {
|
|
|
17179
17208
|
});
|
|
17180
17209
|
};
|
|
17181
17210
|
|
|
17182
|
-
var __async$
|
|
17211
|
+
var __async$w = (__this, __arguments, generator) => {
|
|
17183
17212
|
return new Promise((resolve, reject) => {
|
|
17184
17213
|
var fulfilled = (value) => {
|
|
17185
17214
|
try {
|
|
@@ -17202,7 +17231,7 @@ var __async$v = (__this, __arguments, generator) => {
|
|
|
17202
17231
|
const useParseAddress = () => {
|
|
17203
17232
|
const { client } = useShipEngine();
|
|
17204
17233
|
return useMutation({
|
|
17205
|
-
mutationFn: (_0) => __async$
|
|
17234
|
+
mutationFn: (_0) => __async$w(void 0, [_0], function* ({ address, text }) {
|
|
17206
17235
|
const result = yield client.addresses.parse(text, address);
|
|
17207
17236
|
return result.data;
|
|
17208
17237
|
}),
|
|
@@ -17211,7 +17240,7 @@ const useParseAddress = () => {
|
|
|
17211
17240
|
});
|
|
17212
17241
|
};
|
|
17213
17242
|
|
|
17214
|
-
var __async$
|
|
17243
|
+
var __async$v = (__this, __arguments, generator) => {
|
|
17215
17244
|
return new Promise((resolve, reject) => {
|
|
17216
17245
|
var fulfilled = (value) => {
|
|
17217
17246
|
try {
|
|
@@ -17234,7 +17263,7 @@ var __async$u = (__this, __arguments, generator) => {
|
|
|
17234
17263
|
const useValidateAddresses = () => {
|
|
17235
17264
|
const { client } = useShipEngine();
|
|
17236
17265
|
return useMutation({
|
|
17237
|
-
mutationFn: (addresses) => __async$
|
|
17266
|
+
mutationFn: (addresses) => __async$v(void 0, null, function* () {
|
|
17238
17267
|
const result = yield client.addresses.validate(addresses);
|
|
17239
17268
|
return result.data;
|
|
17240
17269
|
}),
|
|
@@ -17243,7 +17272,7 @@ const useValidateAddresses = () => {
|
|
|
17243
17272
|
});
|
|
17244
17273
|
};
|
|
17245
17274
|
|
|
17246
|
-
var __async$
|
|
17275
|
+
var __async$u = (__this, __arguments, generator) => {
|
|
17247
17276
|
return new Promise((resolve, reject) => {
|
|
17248
17277
|
var fulfilled = (value) => {
|
|
17249
17278
|
try {
|
|
@@ -17266,7 +17295,7 @@ var __async$t = (__this, __arguments, generator) => {
|
|
|
17266
17295
|
const useAddFunds = () => {
|
|
17267
17296
|
const { client } = useShipEngine();
|
|
17268
17297
|
return useMutation({
|
|
17269
|
-
mutationFn: (_0) => __async$
|
|
17298
|
+
mutationFn: (_0) => __async$u(void 0, [_0], function* ({ carrierId, funds }) {
|
|
17270
17299
|
const result = yield client.carriers.addFunds(carrierId, funds);
|
|
17271
17300
|
return result.data;
|
|
17272
17301
|
}),
|
|
@@ -17275,7 +17304,7 @@ const useAddFunds = () => {
|
|
|
17275
17304
|
});
|
|
17276
17305
|
};
|
|
17277
17306
|
|
|
17278
|
-
var __async$
|
|
17307
|
+
var __async$t = (__this, __arguments, generator) => {
|
|
17279
17308
|
return new Promise((resolve, reject) => {
|
|
17280
17309
|
var fulfilled = (value) => {
|
|
17281
17310
|
try {
|
|
@@ -17298,7 +17327,7 @@ var __async$s = (__this, __arguments, generator) => {
|
|
|
17298
17327
|
const useConnectCarrier = () => {
|
|
17299
17328
|
const { client } = useShipEngine();
|
|
17300
17329
|
return useMutation({
|
|
17301
|
-
mutationFn: (params) => __async$
|
|
17330
|
+
mutationFn: (params) => __async$t(void 0, null, function* () {
|
|
17302
17331
|
const result = yield client.carriers.connect(params);
|
|
17303
17332
|
return result.data;
|
|
17304
17333
|
}),
|
|
@@ -17432,7 +17461,7 @@ var __objRest$b = (source, exclude) => {
|
|
|
17432
17461
|
}
|
|
17433
17462
|
return target;
|
|
17434
17463
|
};
|
|
17435
|
-
var __async$
|
|
17464
|
+
var __async$s = (__this, __arguments, generator) => {
|
|
17436
17465
|
return new Promise((resolve, reject) => {
|
|
17437
17466
|
var fulfilled = (value) => {
|
|
17438
17467
|
try {
|
|
@@ -17456,7 +17485,7 @@ const useUpdateAutoFunding = () => {
|
|
|
17456
17485
|
const { client } = useShipEngine();
|
|
17457
17486
|
const queryClient = useQueryClient();
|
|
17458
17487
|
return useMutation({
|
|
17459
|
-
mutationFn: (_a) => __async$
|
|
17488
|
+
mutationFn: (_a) => __async$s(void 0, null, function* () {
|
|
17460
17489
|
var _b = _a, { carrierId } = _b, options = __objRest$b(_b, ["carrierId"]);
|
|
17461
17490
|
const result = yield client.carriers.updateAutoFunding(carrierId, options);
|
|
17462
17491
|
return result.data;
|
|
@@ -17540,6 +17569,41 @@ const useListCarrierConnections = (_params) => {
|
|
|
17540
17569
|
});
|
|
17541
17570
|
};
|
|
17542
17571
|
|
|
17572
|
+
var __async$r = (__this, __arguments, generator) => {
|
|
17573
|
+
return new Promise((resolve, reject) => {
|
|
17574
|
+
var fulfilled = (value) => {
|
|
17575
|
+
try {
|
|
17576
|
+
step(generator.next(value));
|
|
17577
|
+
} catch (e) {
|
|
17578
|
+
reject(e);
|
|
17579
|
+
}
|
|
17580
|
+
};
|
|
17581
|
+
var rejected = (value) => {
|
|
17582
|
+
try {
|
|
17583
|
+
step(generator.throw(value));
|
|
17584
|
+
} catch (e) {
|
|
17585
|
+
reject(e);
|
|
17586
|
+
}
|
|
17587
|
+
};
|
|
17588
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
17589
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
17590
|
+
});
|
|
17591
|
+
};
|
|
17592
|
+
const useConnectCarrierAccount = () => {
|
|
17593
|
+
const { client } = useShipEngine();
|
|
17594
|
+
return useMutation({
|
|
17595
|
+
mutationFn: (_0) => __async$r(void 0, [_0], function* ({ carrierName, formData }) {
|
|
17596
|
+
const result = yield client.connections.connectCarrier(carrierName, formData);
|
|
17597
|
+
if (result.status > 300 && result.status < 309) {
|
|
17598
|
+
result.data.redirectUrl = result.request.res.responseUrl;
|
|
17599
|
+
}
|
|
17600
|
+
return result.data;
|
|
17601
|
+
}),
|
|
17602
|
+
mutationKey: ["useConnectCarrierAccount"],
|
|
17603
|
+
onError
|
|
17604
|
+
});
|
|
17605
|
+
};
|
|
17606
|
+
|
|
17543
17607
|
const useListCustomPackageTypes = () => {
|
|
17544
17608
|
const { client } = useShipEngine();
|
|
17545
17609
|
return useQuery({
|
|
@@ -18875,9 +18939,11 @@ const useUpdateAccountBillingPlan = () => {
|
|
|
18875
18939
|
const useListServicePoints = (options) => {
|
|
18876
18940
|
const { client } = useShipEngine();
|
|
18877
18941
|
return useQuery({
|
|
18942
|
+
enabled: options.providers.length > 0,
|
|
18878
18943
|
onError,
|
|
18879
18944
|
queryFn: () => client.servicePoints.list(options),
|
|
18880
|
-
queryKey: ["useListServicePoints"],
|
|
18945
|
+
queryKey: ["useListServicePoints", options],
|
|
18946
|
+
retry: false,
|
|
18881
18947
|
select: (result) => result.data
|
|
18882
18948
|
});
|
|
18883
18949
|
};
|
|
@@ -20022,4 +20088,4 @@ const alchemy = {
|
|
|
20022
20088
|
createElement
|
|
20023
20089
|
};
|
|
20024
20090
|
|
|
20025
|
-
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useDeactivateOrderSource, useDeleteAccountImage, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
|
|
20091
|
+
export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAlchemy, useCalculateRates, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useDeactivateOrderSource, useDeleteAccountImage, useDeleteRateCard, useDeleteShippingRule, useDeleteWarehouse, useDownloadRateCard, useEditShippingRule, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListServicePoints, useListShipments, useListShippingRules, useListWarehouses, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
|