@parra/parra-js-sdk 0.3.317 → 0.3.319

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.
@@ -785,7 +785,7 @@ export interface CreateCreatorAttachmentAttachmentRequestBody {
785
785
  export interface CreateCreatorUpdateRequestBody {
786
786
  publish?: boolean | null;
787
787
  title: string;
788
- description?: string;
788
+ body?: string;
789
789
  attachments?: Array<CreateCreatorAttachmentAttachmentRequestBody>;
790
790
  }
791
791
  export declare enum CreatorUpdateStatus {
@@ -802,6 +802,30 @@ export interface CreatorUpdateAttachmentStub {
802
802
  id: string;
803
803
  image?: ImageAssetStub | null;
804
804
  }
805
+ export declare enum CreatorUpdateChannelType {
806
+ feed = "feed",
807
+ notification = "notification"
808
+ }
809
+ export interface CreatorUpdateChannelFeedData {
810
+ feed_view_id: string;
811
+ }
812
+ export interface CreatorUpdateChannelNotificationData {
813
+ notification_template_id: string;
814
+ notification_title?: string | null;
815
+ notification_body?: string | null;
816
+ }
817
+ export type CreatorUpdateChannelData = CreatorUpdateChannelFeedData | CreatorUpdateChannelNotificationData;
818
+ export interface CreatorUpdateChannel {
819
+ id: string;
820
+ created_at: string;
821
+ updated_at: string;
822
+ deleted_at?: string | null;
823
+ type: CreatorUpdateChannelType;
824
+ data: CreatorUpdateChannelData;
825
+ delivered?: boolean | null;
826
+ delivered_at?: string | null;
827
+ disabled?: boolean;
828
+ }
805
829
  export interface CreatorUpdate {
806
830
  id: string;
807
831
  created_at: string;
@@ -810,10 +834,11 @@ export interface CreatorUpdate {
810
834
  tenant_id: string;
811
835
  status: CreatorUpdateStatus;
812
836
  title: string;
813
- description?: string;
837
+ body?: string;
814
838
  sender?: CreatorUpdateSenderStub;
815
839
  template?: CreatorUpdateSenderStub;
816
- attachments?: Array<CreatorUpdateAttachmentStub>;
840
+ attachments: Array<CreatorUpdateAttachmentStub>;
841
+ channels: Array<CreatorUpdateChannel>;
817
842
  }
818
843
  export interface CreatorUpdateCollectionResponse {
819
844
  page: number;
@@ -824,7 +849,7 @@ export interface CreatorUpdateCollectionResponse {
824
849
  }
825
850
  export interface UpdateCreatorUpdateRequestBody {
826
851
  title?: string;
827
- description?: string;
852
+ body?: string;
828
853
  }
829
854
  export declare enum FeedItemType {
830
855
  youtubeVideo = "youtube_video",
@@ -863,7 +888,7 @@ export interface YoutubeVideo {
863
888
  description?: string;
864
889
  thumbnails: YoutubeThumbnails;
865
890
  published_at: string;
866
- live_broadcast_content: string;
891
+ live_broadcast_content?: string | null;
867
892
  statistics?: YoutubeStatistics | null;
868
893
  }
869
894
  export interface ContentCardBackground {
@@ -888,7 +913,7 @@ export interface CreatorUpdateAppStub {
888
913
  updated_at: string;
889
914
  deleted_at?: string | null;
890
915
  title: string;
891
- description?: string;
916
+ body?: string;
892
917
  sender?: CreatorUpdateSenderStub | null;
893
918
  attachments?: Array<CreatorUpdateAttachmentStub>;
894
919
  }
package/dist/ParraAPI.js CHANGED
@@ -11,8 +11,8 @@ 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.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.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.CreatorUpdateStatus = 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
- exports.PolicyDocumentVersionStatus = void 0;
14
+ 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.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = 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
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -125,6 +125,11 @@ var CreatorUpdateStatus;
125
125
  CreatorUpdateStatus["draft"] = "draft";
126
126
  CreatorUpdateStatus["published"] = "published";
127
127
  })(CreatorUpdateStatus || (exports.CreatorUpdateStatus = CreatorUpdateStatus = {}));
128
+ var CreatorUpdateChannelType;
129
+ (function (CreatorUpdateChannelType) {
130
+ CreatorUpdateChannelType["feed"] = "feed";
131
+ CreatorUpdateChannelType["notification"] = "notification";
132
+ })(CreatorUpdateChannelType || (exports.CreatorUpdateChannelType = CreatorUpdateChannelType = {}));
128
133
  var FeedItemType;
129
134
  (function (FeedItemType) {
130
135
  FeedItemType["youtubeVideo"] = "youtube_video";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.317",
3
+ "version": "0.3.319",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",