@parra/parra-js-sdk 0.3.388 → 0.3.390
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ParraAPI.d.ts +14 -2
- package/dist/ParraAPI.js +14 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -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;
|
@@ -1140,7 +1149,7 @@ export interface CreateCreatorAttachmentAttachmentRequestBody {
|
|
1140
1149
|
export interface CreateCreatorUpdateRequestBody {
|
1141
1150
|
publish?: boolean | null;
|
1142
1151
|
template_id?: string | null;
|
1143
|
-
title
|
1152
|
+
title?: string | null;
|
1144
1153
|
body?: string | null;
|
1145
1154
|
attachments?: Array<CreateCreatorAttachmentAttachmentRequestBody>;
|
1146
1155
|
}
|
@@ -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;
|
@@ -4220,7 +4232,7 @@ declare class ParraAPI {
|
|
4220
4232
|
}, options?: Options) => Promise<CreatorUpdateTemplateCollectionResponse>;
|
4221
4233
|
updateCreatorUpdateTemplateById: (tenant_id: string, creator_update_template_id: string, body?: UpdateCreatorUpdateTemplateRequestBody, options?: Options) => Promise<CreatorUpdateTemplate>;
|
4222
4234
|
deleteCreatorUpdateTemplateById: (tenant_id: string, creator_update_template_id: string, options?: Options) => Promise<Response>;
|
4223
|
-
createCreatorUpdateForTenant: (tenant_id: string, body
|
4235
|
+
createCreatorUpdateForTenant: (tenant_id: string, body?: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
4224
4236
|
paginateCreatorUpdatesForTenant: (tenant_id: string, query?: {
|
4225
4237
|
$select?: string;
|
4226
4238
|
$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));
|