@shipengine/alchemy 6.0.23 → 6.0.24
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 +5 -9
- package/index.mjs +5 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -16343,17 +16343,13 @@ class InvoiceAddressAPI {
|
|
|
16343
16343
|
* The `create` method creates a new invoice address for a given user.
|
|
16344
16344
|
*/
|
|
16345
16345
|
this.create = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16346
|
-
return yield this.client.post("/v1/invoice_address",
|
|
16347
|
-
invoiceAddress
|
|
16348
|
-
});
|
|
16346
|
+
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16349
16347
|
});
|
|
16350
16348
|
/**
|
|
16351
16349
|
* The `update` method updates a invoice address for a given user.
|
|
16352
16350
|
*/
|
|
16353
16351
|
this.update = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16354
|
-
return yield this.client.put("/v1/invoice_address",
|
|
16355
|
-
invoiceAddress
|
|
16356
|
-
});
|
|
16352
|
+
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16357
16353
|
});
|
|
16358
16354
|
this.client = client;
|
|
16359
16355
|
}
|
|
@@ -35780,7 +35776,7 @@ const useCreateInvoiceAddress = (params) => {
|
|
|
35780
35776
|
return reactQuery.useMutation(__spreadProps$h(__spreadValues$k({}, params), {
|
|
35781
35777
|
mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
|
|
35782
35778
|
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35783
|
-
return result.data
|
|
35779
|
+
return result.data;
|
|
35784
35780
|
}),
|
|
35785
35781
|
mutationKey: ["useCreateInvoiceAddress"],
|
|
35786
35782
|
onError
|
|
@@ -35831,7 +35827,7 @@ const useUpdateInvoiceAddress = (params) => {
|
|
|
35831
35827
|
return reactQuery.useMutation(__spreadProps$g(__spreadValues$j({}, params), {
|
|
35832
35828
|
mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
|
|
35833
35829
|
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
35834
|
-
return result.data
|
|
35830
|
+
return result.data;
|
|
35835
35831
|
}),
|
|
35836
35832
|
mutationKey: ["useUpdateInvoiceAddress"],
|
|
35837
35833
|
onError
|
|
@@ -35863,7 +35859,7 @@ const useGetInvoiceAddress = (params) => {
|
|
|
35863
35859
|
onError,
|
|
35864
35860
|
queryFn: () => client.invoiceAddress.get(),
|
|
35865
35861
|
queryKey: ["useGetInvoiceAddress"],
|
|
35866
|
-
select: (result) => result.data
|
|
35862
|
+
select: (result) => result.data
|
|
35867
35863
|
}));
|
|
35868
35864
|
};
|
|
35869
35865
|
|
package/index.mjs
CHANGED
|
@@ -16321,17 +16321,13 @@ class InvoiceAddressAPI {
|
|
|
16321
16321
|
* The `create` method creates a new invoice address for a given user.
|
|
16322
16322
|
*/
|
|
16323
16323
|
this.create = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16324
|
-
return yield this.client.post("/v1/invoice_address",
|
|
16325
|
-
invoiceAddress
|
|
16326
|
-
});
|
|
16324
|
+
return yield this.client.post("/v1/invoice_address", invoiceAddress);
|
|
16327
16325
|
});
|
|
16328
16326
|
/**
|
|
16329
16327
|
* The `update` method updates a invoice address for a given user.
|
|
16330
16328
|
*/
|
|
16331
16329
|
this.update = (invoiceAddress) => __async$T(this, null, function* () {
|
|
16332
|
-
return yield this.client.put("/v1/invoice_address",
|
|
16333
|
-
invoiceAddress
|
|
16334
|
-
});
|
|
16330
|
+
return yield this.client.put("/v1/invoice_address", invoiceAddress);
|
|
16335
16331
|
});
|
|
16336
16332
|
this.client = client;
|
|
16337
16333
|
}
|
|
@@ -35758,7 +35754,7 @@ const useCreateInvoiceAddress = (params) => {
|
|
|
35758
35754
|
return useMutation(__spreadProps$h(__spreadValues$k({}, params), {
|
|
35759
35755
|
mutationFn: (invoiceAddress) => __async$y(void 0, null, function* () {
|
|
35760
35756
|
const result = yield client.invoiceAddress.create(invoiceAddress);
|
|
35761
|
-
return result.data
|
|
35757
|
+
return result.data;
|
|
35762
35758
|
}),
|
|
35763
35759
|
mutationKey: ["useCreateInvoiceAddress"],
|
|
35764
35760
|
onError
|
|
@@ -35809,7 +35805,7 @@ const useUpdateInvoiceAddress = (params) => {
|
|
|
35809
35805
|
return useMutation(__spreadProps$g(__spreadValues$j({}, params), {
|
|
35810
35806
|
mutationFn: (invoiceAddress) => __async$x(void 0, null, function* () {
|
|
35811
35807
|
const result = yield client.invoiceAddress.update(invoiceAddress);
|
|
35812
|
-
return result.data
|
|
35808
|
+
return result.data;
|
|
35813
35809
|
}),
|
|
35814
35810
|
mutationKey: ["useUpdateInvoiceAddress"],
|
|
35815
35811
|
onError
|
|
@@ -35841,7 +35837,7 @@ const useGetInvoiceAddress = (params) => {
|
|
|
35841
35837
|
onError,
|
|
35842
35838
|
queryFn: () => client.invoiceAddress.get(),
|
|
35843
35839
|
queryKey: ["useGetInvoiceAddress"],
|
|
35844
|
-
select: (result) => result.data
|
|
35840
|
+
select: (result) => result.data
|
|
35845
35841
|
}));
|
|
35846
35842
|
};
|
|
35847
35843
|
|