@parra/parra-js-sdk 0.3.241 → 0.3.243

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.
@@ -767,6 +767,61 @@ export interface CreateFaqSectionRequestBody {
767
767
  description?: string | null;
768
768
  display_description?: string | null;
769
769
  }
770
+ export declare enum FeedItemType {
771
+ youtubeVideo = "youtube_video",
772
+ contentCard = "content_card"
773
+ }
774
+ export interface YoutubeThumbnail {
775
+ url: string;
776
+ width: number;
777
+ height: number;
778
+ }
779
+ export interface YoutubeThumbnails {
780
+ default: YoutubeThumbnail;
781
+ medium: YoutubeThumbnail;
782
+ high: YoutubeThumbnail;
783
+ standard: YoutubeThumbnail;
784
+ maxres: YoutubeThumbnail;
785
+ }
786
+ export interface FeedItemYoutubeVideoData {
787
+ video_id: string;
788
+ title: string;
789
+ channel_title: string;
790
+ channel_id: string;
791
+ description?: string;
792
+ thumbnails: YoutubeThumbnails;
793
+ published_at: string;
794
+ live_broadcast_content: string;
795
+ }
796
+ export interface ContentCardAction {
797
+ url: string;
798
+ }
799
+ export interface ContentCard {
800
+ id: string;
801
+ created_at: string;
802
+ updated_at: string;
803
+ deleted_at?: string | null;
804
+ background_image: ImageAssetStub;
805
+ title?: string | null;
806
+ description?: string | null;
807
+ action?: ContentCardAction | null;
808
+ }
809
+ export type FeedItemData = FeedItemYoutubeVideoData | ContentCard;
810
+ export interface FeedItem {
811
+ id: string;
812
+ created_at: string;
813
+ updated_at: string;
814
+ deleted_at?: string | null;
815
+ type: FeedItemType;
816
+ data: FeedItemData;
817
+ }
818
+ export interface FeedItemCollectionResponse {
819
+ page: number;
820
+ page_count: number;
821
+ page_size: number;
822
+ total_count: number;
823
+ data: Array<FeedItem>;
824
+ }
770
825
  export interface SubmitFeedbackFormResponseBody {
771
826
  }
772
827
  export interface FeedbackFormSubmission {
@@ -3085,6 +3140,10 @@ declare class ParraAPI {
3085
3140
  getFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<FaqSection>;
3086
3141
  updateFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, body: UpdateFaqSectionRequestBody, options?: Options) => Promise<FaqSection>;
3087
3142
  deleteFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<Response>;
3143
+ getItemsForAppFeed: (tenant_id: string, application_id: string, feed_id_or_slug: string, query?: {
3144
+ limit?: number;
3145
+ offset?: number;
3146
+ }, options?: Options) => Promise<FeedItemCollectionResponse>;
3088
3147
  paginateFeedbackFormResponsesForTenantUser: (tenant_id: string, user_id: string, query?: {
3089
3148
  $select?: string;
3090
3149
  $top?: number;
package/dist/ParraAPI.js CHANGED
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
14
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
15
  var TicketType;
16
16
  (function (TicketType) {
17
17
  TicketType["bug"] = "bug";
@@ -118,6 +118,11 @@ var FeedbackFormFieldType;
118
118
  FeedbackFormFieldType["input"] = "input";
119
119
  FeedbackFormFieldType["select"] = "select";
120
120
  })(FeedbackFormFieldType || (exports.FeedbackFormFieldType = FeedbackFormFieldType = {}));
121
+ var FeedItemType;
122
+ (function (FeedItemType) {
123
+ FeedItemType["youtubeVideo"] = "youtube_video";
124
+ FeedItemType["contentCard"] = "content_card";
125
+ })(FeedItemType || (exports.FeedItemType = FeedItemType = {}));
121
126
  var QuestionType;
122
127
  (function (QuestionType) {
123
128
  QuestionType["choice"] = "choice";
@@ -520,6 +525,10 @@ var ParraAPI = /** @class */ (function () {
520
525
  if (options === void 0) { options = {}; }
521
526
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), __assign({ method: "delete" }, options));
522
527
  };
528
+ this.getItemsForAppFeed = function (tenant_id, application_id, feed_id_or_slug, query, options) {
529
+ if (options === void 0) { options = {}; }
530
+ 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));
531
+ };
523
532
  this.paginateFeedbackFormResponsesForTenantUser = function (tenant_id, user_id, query, options) {
524
533
  if (options === void 0) { options = {}; }
525
534
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/feedback/form/responses"), __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.241",
3
+ "version": "0.3.243",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",