arky-sdk 0.7.13 → 0.7.15

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