@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
|
@@ -15,5 +15,6 @@ export declare class ArcDraft extends ArcAbstractAPI {
|
|
|
15
15
|
getRevision(id: string, revisionId: string, type?: string): Promise<Revision>;
|
|
16
16
|
createRedirect<P extends CreateRedirectPayload, R = P extends CreateExternalRedirectPayload ? ExternalRedirect : P extends CreateDocumentRedirectPayload ? DocumentRedirect : never>(website: string, websiteUrl: string, payload: P): Promise<R>;
|
|
17
17
|
getRedirect(website: string, websiteUrl: string): Promise<DocumentRedirect | ExternalRedirect>;
|
|
18
|
+
deleteRedirect(website: string, websiteUrl: string): Promise<DocumentRedirect | ExternalRedirect>;
|
|
18
19
|
updateDraftRevision(id: string, payload: UpdateDraftRevisionPayload, type?: string): Promise<Revision>;
|
|
19
20
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -248,6 +248,10 @@ class ArcDraft extends ArcAbstractAPI {
|
|
|
248
248
|
const { data } = await this.client.get(`/redirect/${website}/${websiteUrl}`);
|
|
249
249
|
return data;
|
|
250
250
|
}
|
|
251
|
+
async deleteRedirect(website, websiteUrl) {
|
|
252
|
+
const { data } = await this.client.delete(`/redirect/${website}/${websiteUrl}`);
|
|
253
|
+
return data;
|
|
254
|
+
}
|
|
251
255
|
async updateDraftRevision(id, payload, type = 'story') {
|
|
252
256
|
const { data } = await this.client.put(`/${type}/${id}/revision/draft`, payload);
|
|
253
257
|
return data;
|