@shipengine/alchemy 0.4.13 → 0.4.14

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 -7
  2. package/index.mjs +3 -7
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -8564,14 +8564,10 @@ var __async$9 = (__this, __arguments, generator) => {
8564
8564
  });
8565
8565
  };
8566
8566
  const useUpdateAccountSettings = () => {
8567
+ const { client } = useShipEngine();
8567
8568
  return reactQuery.useMutation({
8568
- mutationFn: (_settings) => __async$9(void 0, null, function* () {
8569
- const result = yield Promise.resolve({
8570
- data: { defaultLabelLayout: "4x6", dimension: "inch", weight: "ounce" },
8571
- errors: [],
8572
- isLoading: false,
8573
- isValidating: false
8574
- });
8569
+ mutationFn: (settings) => __async$9(void 0, null, function* () {
8570
+ const result = yield client.accountSettings.update(settings);
8575
8571
  return result.data;
8576
8572
  }),
8577
8573
  mutationKey: ["useUpdateAccountSettings"],
package/index.mjs CHANGED
@@ -8542,14 +8542,10 @@ var __async$9 = (__this, __arguments, generator) => {
8542
8542
  });
8543
8543
  };
8544
8544
  const useUpdateAccountSettings = () => {
8545
+ const { client } = useShipEngine();
8545
8546
  return useMutation({
8546
- mutationFn: (_settings) => __async$9(void 0, null, function* () {
8547
- const result = yield Promise.resolve({
8548
- data: { defaultLabelLayout: "4x6", dimension: "inch", weight: "ounce" },
8549
- errors: [],
8550
- isLoading: false,
8551
- isValidating: false
8552
- });
8547
+ mutationFn: (settings) => __async$9(void 0, null, function* () {
8548
+ const result = yield client.accountSettings.update(settings);
8553
8549
  return result.data;
8554
8550
  }),
8555
8551
  mutationKey: ["useUpdateAccountSettings"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {