@parra/parra-js-sdk 0.3.388 → 0.3.389

Sign up to get free protection for your applications and to get access to all the features.
@@ -1054,6 +1054,15 @@ export interface FaqSectionItemStub {
1054
1054
  faq_id: string;
1055
1055
  section_id: string;
1056
1056
  }
1057
+ export interface UpdateContentCardRequestBody {
1058
+ title?: string;
1059
+ description?: string | null;
1060
+ display_title?: string | null;
1061
+ display_description?: string | null;
1062
+ action_url?: string | null;
1063
+ action_confirmation_message?: string | null;
1064
+ badge?: string | null;
1065
+ }
1057
1066
  export interface CreatorUpdateSender {
1058
1067
  id: string;
1059
1068
  created_at: string;
@@ -4196,6 +4205,9 @@ declare class ParraAPI {
4196
4205
  deleteFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<Response>;
4197
4206
  addFaqToSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, body: AddFaqToSectionRequestBody, options?: Options) => Promise<FaqSectionItemStub>;
4198
4207
  removeFaqFromSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, faq_section_item_id: string, options?: Options) => Promise<Response>;
4208
+ getContentCardById: (tenant_id: string, content_card_id: string, options?: Options) => Promise<ContentCard>;
4209
+ updateContentCardById: (tenant_id: string, content_card_id: string, body?: UpdateContentCardRequestBody, options?: Options) => Promise<ContentCard>;
4210
+ deleteContentCardById: (tenant_id: string, content_card_id: string, options?: Options) => Promise<Response>;
4199
4211
  paginateCreatorUpdateSendersForTenant: (tenant_id: string, query?: {
4200
4212
  $select?: string;
4201
4213
  $top?: number;
package/dist/ParraAPI.js CHANGED
@@ -750,6 +750,20 @@ var ParraAPI = /** @class */ (function () {
750
750
  if (options === void 0) { options = {}; }
751
751
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items/").concat(faq_section_item_id), __assign({ method: "delete" }, options));
752
752
  };
753
+ this.getContentCardById = function (tenant_id, content_card_id, options) {
754
+ if (options === void 0) { options = {}; }
755
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "get" }, options));
756
+ };
757
+ this.updateContentCardById = function (tenant_id, content_card_id, body, options) {
758
+ if (options === void 0) { options = {}; }
759
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
760
+ "content-type": "application/json",
761
+ } }, options));
762
+ };
763
+ this.deleteContentCardById = function (tenant_id, content_card_id, options) {
764
+ if (options === void 0) { options = {}; }
765
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "delete" }, options));
766
+ };
753
767
  this.paginateCreatorUpdateSendersForTenant = function (tenant_id, query, options) {
754
768
  if (options === void 0) { options = {}; }
755
769
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), __assign({ method: "get", query: query }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.388",
3
+ "version": "0.3.389",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",