arky-sdk 0.7.16 → 0.7.17
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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +7 -1
- package/dist/types.d.ts +7 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1689,6 +1689,15 @@ var createFormApi = (apiConfig) => {
|
|
|
1689
1689
|
`/v1/businesses/${targetBusinessId}/forms/${params.formId}/submissions/${params.id}`,
|
|
1690
1690
|
options
|
|
1691
1691
|
);
|
|
1692
|
+
},
|
|
1693
|
+
async updateSubmission(params, options) {
|
|
1694
|
+
const { businessId, formId, id, ...payload } = params;
|
|
1695
|
+
const targetBusinessId = businessId || apiConfig.businessId;
|
|
1696
|
+
return apiConfig.httpClient.put(
|
|
1697
|
+
`/v1/businesses/${targetBusinessId}/forms/${formId}/submissions/${id}`,
|
|
1698
|
+
{ ...payload, formId, businessId: targetBusinessId, id },
|
|
1699
|
+
options
|
|
1700
|
+
);
|
|
1692
1701
|
}
|
|
1693
1702
|
};
|
|
1694
1703
|
};
|