@code.store/arcxp-sdk-ts 5.1.8 → 5.2.0

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
@@ -208,6 +208,10 @@ class ArcDraft extends ArcAbstractAPI {
208
208
  const { data } = await this.client.get(`/${type}/${id}/circulation`, { params: { after } });
209
209
  return data;
210
210
  }
211
+ async deleteCirculation(id, website, type = 'story') {
212
+ const { data } = await this.client.delete(`/${type}/${id}/circulation/${website}`);
213
+ return data;
214
+ }
211
215
  async getRevisions(id, type = 'story', after) {
212
216
  const { data } = await this.client.get(`/${type}/${id}/revision`, { params: { after } });
213
217
  return data;
@@ -766,6 +770,10 @@ class ArcSite extends ArcAbstractAPI {
766
770
  const { data } = await this.client.get('/website');
767
771
  return data;
768
772
  }
773
+ async deleteWebsite(website) {
774
+ const { data } = await this.client.delete(`/website/${website}`);
775
+ return data;
776
+ }
769
777
  async putLink(link) {
770
778
  const { data } = await this.client.put(`/website/${link._website}/link/${link._id}`, link);
771
779
  return data;