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