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 CHANGED
@@ -1664,10 +1664,11 @@ var createFormApi = (apiConfig) => {
1664
1664
  );
1665
1665
  },
1666
1666
  async submit(params, options) {
1667
- const targetBusinessId = params.businessId || apiConfig.businessId;
1667
+ const { businessId, formId, ...payload } = params;
1668
+ const targetBusinessId = businessId || apiConfig.businessId;
1668
1669
  return apiConfig.httpClient.post(
1669
- `/v1/businesses/${targetBusinessId}/forms/${params.formId}/submissions`,
1670
- { formId: params.formId, businessId: targetBusinessId, blocks: params.blocks },
1670
+ `/v1/businesses/${targetBusinessId}/forms/${formId}/submissions`,
1671
+ { ...payload, formId, businessId: targetBusinessId },
1671
1672
  options
1672
1673
  );
1673
1674
  },