arky-sdk 0.7.13 → 0.7.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.
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1662,10 +1662,11 @@ var createFormApi = (apiConfig) => {
|
|
|
1662
1662
|
);
|
|
1663
1663
|
},
|
|
1664
1664
|
async submit(params, options) {
|
|
1665
|
-
const
|
|
1665
|
+
const { businessId, formId, ...payload } = params;
|
|
1666
|
+
const targetBusinessId = businessId || apiConfig.businessId;
|
|
1666
1667
|
return apiConfig.httpClient.post(
|
|
1667
|
-
`/v1/businesses/${targetBusinessId}/forms/${
|
|
1668
|
-
{
|
|
1668
|
+
`/v1/businesses/${targetBusinessId}/forms/${formId}/submissions`,
|
|
1669
|
+
{ ...payload, formId, businessId: targetBusinessId },
|
|
1669
1670
|
options
|
|
1670
1671
|
);
|
|
1671
1672
|
},
|