@parra/parra-js-sdk 0.3.305 → 0.3.306
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/ParraAPI.d.ts +2 -0
- package/dist/ParraAPI.js +8 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -3510,7 +3510,9 @@ declare class ParraAPI {
|
|
|
3510
3510
|
deleteFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<Response>;
|
|
3511
3511
|
createCreatorUpdateForTenant: (tenant_id: string, body: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
|
3512
3512
|
updateCreatorUpdate: (tenant_id: string, creator_update_id: string, body?: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
|
3513
|
+
deleteCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<Response>;
|
|
3513
3514
|
sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
|
|
3515
|
+
deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
|
|
3514
3516
|
paginateItemsForAppFeed: (tenant_id: string, application_id: string, feed_id_or_slug: string, query?: {
|
|
3515
3517
|
limit?: number;
|
|
3516
3518
|
offset?: number;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -555,10 +555,18 @@ var ParraAPI = /** @class */ (function () {
|
|
|
555
555
|
"content-type": "application/json",
|
|
556
556
|
} }, options));
|
|
557
557
|
};
|
|
558
|
+
this.deleteCreatorUpdate = function (tenant_id, creator_update_id, options) {
|
|
559
|
+
if (options === void 0) { options = {}; }
|
|
560
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), __assign({ method: "delete" }, options));
|
|
561
|
+
};
|
|
558
562
|
this.sendCreatorUpdateForTenant = function (tenant_id, creator_update_id, options) {
|
|
559
563
|
if (options === void 0) { options = {}; }
|
|
560
564
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/send"), __assign({ method: "post" }, options));
|
|
561
565
|
};
|
|
566
|
+
this.deleteAttachmentForCreatorUpdateById = function (tenant_id, creator_update_id, creator_update_attachment_id, options) {
|
|
567
|
+
if (options === void 0) { options = {}; }
|
|
568
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), __assign({ method: "delete" }, options));
|
|
569
|
+
};
|
|
562
570
|
this.paginateItemsForAppFeed = function (tenant_id, application_id, feed_id_or_slug, query, options) {
|
|
563
571
|
if (options === void 0) { options = {}; }
|
|
564
572
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/feeds/").concat(feed_id_or_slug, "/items"), __assign({ method: "get", query: query }, options));
|