@shipengine/alchemy 6.0.1 → 6.0.3
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 +12 -12
- package/index.mjs +12 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13957,20 +13957,20 @@ class ConnectionsAPI {
|
|
|
13957
13957
|
};
|
|
13958
13958
|
/**
|
|
13959
13959
|
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
13960
|
-
* identified by the `carrierName` and `
|
|
13960
|
+
* identified by the `carrierName` and `carrierId`.
|
|
13961
13961
|
*/
|
|
13962
|
-
this.getCarrierSettings = (carrierName,
|
|
13962
|
+
this.getCarrierSettings = (carrierName, carrierId) => {
|
|
13963
13963
|
return this.client.get(
|
|
13964
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
13964
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`
|
|
13965
13965
|
);
|
|
13966
13966
|
};
|
|
13967
13967
|
/**
|
|
13968
13968
|
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
13969
|
-
* identified by the `carrierName` and `
|
|
13969
|
+
* identified by the `carrierName` and `carrierId`.
|
|
13970
13970
|
*/
|
|
13971
|
-
this.updateCarrierSettings = (carrierName,
|
|
13971
|
+
this.updateCarrierSettings = (carrierName, carrierId, formData) => {
|
|
13972
13972
|
return this.client.put(
|
|
13973
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
13973
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`,
|
|
13974
13974
|
formData
|
|
13975
13975
|
);
|
|
13976
13976
|
};
|
|
@@ -35210,11 +35210,11 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35210
35210
|
"queryFnParams"
|
|
35211
35211
|
]);
|
|
35212
35212
|
const { client } = useShipEngine();
|
|
35213
|
-
const { carrierName,
|
|
35213
|
+
const { carrierName, carrierId } = queryFnParams;
|
|
35214
35214
|
return reactQuery.useQuery(__spreadProps$e(__spreadValues$g({}, params), {
|
|
35215
35215
|
onError,
|
|
35216
|
-
queryFn: () => client.connections.getCarrierSettings(carrierName,
|
|
35217
|
-
queryKey: ["useGetConnectionsCarrierSettings", carrierName,
|
|
35216
|
+
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35217
|
+
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
35218
35218
|
select: (result) => result.data
|
|
35219
35219
|
}));
|
|
35220
35220
|
};
|
|
@@ -35263,12 +35263,12 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
35263
35263
|
return reactQuery.useMutation(__spreadProps$d(__spreadValues$f({}, params), {
|
|
35264
35264
|
mutationFn: (_0) => __async$x(void 0, [_0], function* ({
|
|
35265
35265
|
carrierName,
|
|
35266
|
-
|
|
35266
|
+
carrierId,
|
|
35267
35267
|
formData
|
|
35268
35268
|
}) {
|
|
35269
35269
|
const result = yield client.connections.updateCarrierSettings(
|
|
35270
35270
|
carrierName,
|
|
35271
|
-
|
|
35271
|
+
carrierId,
|
|
35272
35272
|
formData
|
|
35273
35273
|
);
|
|
35274
35274
|
return result.data;
|
|
@@ -35635,7 +35635,7 @@ var __objRest$d = (source, exclude) => {
|
|
|
35635
35635
|
};
|
|
35636
35636
|
const useListLabels = (params) => {
|
|
35637
35637
|
const { client } = useShipEngine();
|
|
35638
|
-
const _a = params, { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35638
|
+
const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35639
35639
|
return reactQuery.useQuery(__spreadProps$c(__spreadValues$e({}, rest), {
|
|
35640
35640
|
onError,
|
|
35641
35641
|
queryFn: () => client.labels.list(queryFnParams),
|
package/index.mjs
CHANGED
|
@@ -13935,20 +13935,20 @@ class ConnectionsAPI {
|
|
|
13935
13935
|
};
|
|
13936
13936
|
/**
|
|
13937
13937
|
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
13938
|
-
* identified by the `carrierName` and `
|
|
13938
|
+
* identified by the `carrierName` and `carrierId`.
|
|
13939
13939
|
*/
|
|
13940
|
-
this.getCarrierSettings = (carrierName,
|
|
13940
|
+
this.getCarrierSettings = (carrierName, carrierId) => {
|
|
13941
13941
|
return this.client.get(
|
|
13942
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
13942
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`
|
|
13943
13943
|
);
|
|
13944
13944
|
};
|
|
13945
13945
|
/**
|
|
13946
13946
|
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
13947
|
-
* identified by the `carrierName` and `
|
|
13947
|
+
* identified by the `carrierName` and `carrierId`.
|
|
13948
13948
|
*/
|
|
13949
|
-
this.updateCarrierSettings = (carrierName,
|
|
13949
|
+
this.updateCarrierSettings = (carrierName, carrierId, formData) => {
|
|
13950
13950
|
return this.client.put(
|
|
13951
|
-
`/v1/connections/carriers/${carrierName}/${
|
|
13951
|
+
`/v1/connections/carriers/${carrierName}/${carrierId}/settings`,
|
|
13952
13952
|
formData
|
|
13953
13953
|
);
|
|
13954
13954
|
};
|
|
@@ -35188,11 +35188,11 @@ const useGetConnectionsCarrierSettings = (_a) => {
|
|
|
35188
35188
|
"queryFnParams"
|
|
35189
35189
|
]);
|
|
35190
35190
|
const { client } = useShipEngine();
|
|
35191
|
-
const { carrierName,
|
|
35191
|
+
const { carrierName, carrierId } = queryFnParams;
|
|
35192
35192
|
return useQuery(__spreadProps$e(__spreadValues$g({}, params), {
|
|
35193
35193
|
onError,
|
|
35194
|
-
queryFn: () => client.connections.getCarrierSettings(carrierName,
|
|
35195
|
-
queryKey: ["useGetConnectionsCarrierSettings", carrierName,
|
|
35194
|
+
queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
|
|
35195
|
+
queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
|
|
35196
35196
|
select: (result) => result.data
|
|
35197
35197
|
}));
|
|
35198
35198
|
};
|
|
@@ -35241,12 +35241,12 @@ const useUpdateConnectionsCarrierSettings = (params) => {
|
|
|
35241
35241
|
return useMutation(__spreadProps$d(__spreadValues$f({}, params), {
|
|
35242
35242
|
mutationFn: (_0) => __async$x(void 0, [_0], function* ({
|
|
35243
35243
|
carrierName,
|
|
35244
|
-
|
|
35244
|
+
carrierId,
|
|
35245
35245
|
formData
|
|
35246
35246
|
}) {
|
|
35247
35247
|
const result = yield client.connections.updateCarrierSettings(
|
|
35248
35248
|
carrierName,
|
|
35249
|
-
|
|
35249
|
+
carrierId,
|
|
35250
35250
|
formData
|
|
35251
35251
|
);
|
|
35252
35252
|
return result.data;
|
|
@@ -35613,7 +35613,7 @@ var __objRest$d = (source, exclude) => {
|
|
|
35613
35613
|
};
|
|
35614
35614
|
const useListLabels = (params) => {
|
|
35615
35615
|
const { client } = useShipEngine();
|
|
35616
|
-
const _a = params, { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35616
|
+
const _a = __spreadValues$e({}, params), { queryFnParams } = _a, rest = __objRest$d(_a, ["queryFnParams"]);
|
|
35617
35617
|
return useQuery(__spreadProps$c(__spreadValues$e({}, rest), {
|
|
35618
35618
|
onError,
|
|
35619
35619
|
queryFn: () => client.labels.list(queryFnParams),
|