@shipengine/react-api 3.9.0 → 3.10.0

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.
Files changed (3) hide show
  1. package/index.js +3 -3
  2. package/index.mjs +3 -3
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1178,7 +1178,7 @@ const useCreateInvoiceAddress = (params) => {
1178
1178
  return reactQuery.useMutation(__spreadProps$h(__spreadValues$i({}, params), {
1179
1179
  mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
1180
1180
  const result = yield client.invoiceAddress.create(invoiceAddress);
1181
- return result.data.invoiceAddress;
1181
+ return result.data;
1182
1182
  }),
1183
1183
  mutationKey: ["useCreateInvoiceAddress"],
1184
1184
  onError
@@ -1229,7 +1229,7 @@ const useUpdateInvoiceAddress = (params) => {
1229
1229
  return reactQuery.useMutation(__spreadProps$g(__spreadValues$h({}, params), {
1230
1230
  mutationFn: (invoiceAddress) => __async$w(void 0, null, function* () {
1231
1231
  const result = yield client.invoiceAddress.update(invoiceAddress);
1232
- return result.data.invoiceAddress;
1232
+ return result.data;
1233
1233
  }),
1234
1234
  mutationKey: ["useUpdateInvoiceAddress"],
1235
1235
  onError
@@ -1261,7 +1261,7 @@ const useGetInvoiceAddress = (params) => {
1261
1261
  onError,
1262
1262
  queryFn: () => client.invoiceAddress.get(),
1263
1263
  queryKey: ["useGetInvoiceAddress"],
1264
- select: (result) => result.data.invoiceAddress
1264
+ select: (result) => result.data
1265
1265
  }));
1266
1266
  };
1267
1267
 
package/index.mjs CHANGED
@@ -1175,7 +1175,7 @@ const useCreateInvoiceAddress = (params) => {
1175
1175
  return useMutation(__spreadProps$h(__spreadValues$i({}, params), {
1176
1176
  mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
1177
1177
  const result = yield client.invoiceAddress.create(invoiceAddress);
1178
- return result.data.invoiceAddress;
1178
+ return result.data;
1179
1179
  }),
1180
1180
  mutationKey: ["useCreateInvoiceAddress"],
1181
1181
  onError
@@ -1226,7 +1226,7 @@ const useUpdateInvoiceAddress = (params) => {
1226
1226
  return useMutation(__spreadProps$g(__spreadValues$h({}, params), {
1227
1227
  mutationFn: (invoiceAddress) => __async$w(void 0, null, function* () {
1228
1228
  const result = yield client.invoiceAddress.update(invoiceAddress);
1229
- return result.data.invoiceAddress;
1229
+ return result.data;
1230
1230
  }),
1231
1231
  mutationKey: ["useUpdateInvoiceAddress"],
1232
1232
  onError
@@ -1258,7 +1258,7 @@ const useGetInvoiceAddress = (params) => {
1258
1258
  onError,
1259
1259
  queryFn: () => client.invoiceAddress.get(),
1260
1260
  queryKey: ["useGetInvoiceAddress"],
1261
- select: (result) => result.data.invoiceAddress
1261
+ select: (result) => result.data
1262
1262
  }));
1263
1263
  };
1264
1264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {