@code.store/arcxp-sdk-ts 5.1.7 → 5.1.8
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/api/draft/index.d.ts +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -10
package/dist/index.js
CHANGED
|
@@ -224,6 +224,10 @@ class ArcDraft extends ArcAbstractAPI {
|
|
|
224
224
|
const { data } = await this.client.get(`/redirect/${website}/${websiteUrl}`);
|
|
225
225
|
return data;
|
|
226
226
|
}
|
|
227
|
+
async deleteRedirect(website, websiteUrl) {
|
|
228
|
+
const { data } = await this.client.delete(`/redirect/${website}/${websiteUrl}`);
|
|
229
|
+
return data;
|
|
230
|
+
}
|
|
227
231
|
async updateDraftRevision(id, payload, type = 'story') {
|
|
228
232
|
const { data } = await this.client.put(`/${type}/${id}/revision/draft`, payload);
|
|
229
233
|
return data;
|