@parra/parra-js-sdk 0.3.362 → 0.3.364

Sign up to get free protection for your applications and to get access to all the features.
@@ -1008,6 +1008,82 @@ export interface FaqSectionItemStub {
1008
1008
  faq_id: string;
1009
1009
  section_id: string;
1010
1010
  }
1011
+ export interface CreatorUpdateSender {
1012
+ id: string;
1013
+ created_at: string;
1014
+ updated_at: string;
1015
+ deleted_at?: string | null;
1016
+ tenant_id: string;
1017
+ name: string;
1018
+ avatar?: ImageAssetStub | null;
1019
+ verified?: boolean;
1020
+ }
1021
+ export interface CreatorUpdateSenderCollectionResponse {
1022
+ page: number;
1023
+ page_count: number;
1024
+ page_size: number;
1025
+ total_count: number;
1026
+ data: Array<CreatorUpdateSender>;
1027
+ }
1028
+ export interface CreateCreatorUpdateSenderRequestBody {
1029
+ name: string;
1030
+ avatar?: ImageAssetStub | null;
1031
+ verified: boolean;
1032
+ }
1033
+ export interface UpdateCreatorUpdateSenderRequestBody {
1034
+ name?: string;
1035
+ avatar?: ImageAssetStub | null;
1036
+ verified?: boolean;
1037
+ }
1038
+ export declare enum CreatorUpdateVisibilityType {
1039
+ public = "public",
1040
+ private = "private"
1041
+ }
1042
+ export interface CreateCreatorUpdateTemplateRequestBody {
1043
+ name: string;
1044
+ description?: string | null;
1045
+ sender_id: string;
1046
+ feed_view_id: string;
1047
+ notification_template_id: string;
1048
+ entitlement_id?: string | null;
1049
+ post_visibility?: CreatorUpdateVisibilityType;
1050
+ attachment_visibility?: CreatorUpdateVisibilityType;
1051
+ }
1052
+ export interface CreatorUpdateVisibility {
1053
+ entitlement_id?: string | null;
1054
+ post_visibility: CreatorUpdateVisibilityType;
1055
+ attachment_visibility?: CreatorUpdateVisibilityType | null;
1056
+ }
1057
+ export interface CreatorUpdateTemplate {
1058
+ id: string;
1059
+ created_at: string;
1060
+ updated_at: string;
1061
+ deleted_at?: string | null;
1062
+ tenant_id: string;
1063
+ sender_id?: string;
1064
+ feed_view_id?: string;
1065
+ notification_template_id?: string;
1066
+ name: string;
1067
+ description?: string;
1068
+ visibility: CreatorUpdateVisibility;
1069
+ }
1070
+ export interface CreatorUpdateTemplateCollectionResponse {
1071
+ page: number;
1072
+ page_count: number;
1073
+ page_size: number;
1074
+ total_count: number;
1075
+ data: Array<CreatorUpdateTemplate>;
1076
+ }
1077
+ export interface UpdateCreatorUpdateTemplateRequestBody {
1078
+ name?: string;
1079
+ description?: string | null;
1080
+ sender_id?: string;
1081
+ feed_view_id?: string;
1082
+ notification_template_id?: string;
1083
+ entitlement_id?: string | null;
1084
+ post_visibility?: CreatorUpdateVisibilityType;
1085
+ attachment_visibility?: CreatorUpdateVisibilityType;
1086
+ }
1011
1087
  export interface CreateCreatorAttachmentAttachmentRequestBody {
1012
1088
  id: string;
1013
1089
  size: Size;
@@ -1036,15 +1112,6 @@ export interface CreatorUpdateAttachmentStub {
1036
1112
  id: string;
1037
1113
  image?: ImageAssetStub | null;
1038
1114
  }
1039
- export declare enum CreatorUpdateVisibilityType {
1040
- public = "public",
1041
- private = "private"
1042
- }
1043
- export interface CreatorUpdateVisibility {
1044
- entitlement_id?: string | null;
1045
- post_visibility: CreatorUpdateVisibilityType;
1046
- attachment_visibility?: CreatorUpdateVisibilityType | null;
1047
- }
1048
1115
  export declare enum CreatorUpdateChannelType {
1049
1116
  feed = "feed",
1050
1117
  notification = "notification"
@@ -3937,6 +4004,30 @@ declare class ParraAPI {
3937
4004
  deleteFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<Response>;
3938
4005
  addFaqToSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, body: AddFaqToSectionRequestBody, options?: Options) => Promise<FaqSectionItemStub>;
3939
4006
  removeFaqFromSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, faq_section_item_id: string, options?: Options) => Promise<Response>;
4007
+ paginateCreatorUpdateSendersForTenant: (tenant_id: string, query?: {
4008
+ $select?: string;
4009
+ $top?: number;
4010
+ $skip?: number;
4011
+ $orderby?: string;
4012
+ $filter?: string;
4013
+ $expand?: string;
4014
+ $search?: string;
4015
+ }, options?: Options) => Promise<CreatorUpdateSenderCollectionResponse>;
4016
+ createCreatorUpdateSenderForTenant: (tenant_id: string, body: CreateCreatorUpdateSenderRequestBody, options?: Options) => Promise<CreatorUpdateSender>;
4017
+ updateCreatorUpdateSenderById: (tenant_id: string, creator_update_sender_id: string, body?: UpdateCreatorUpdateSenderRequestBody, options?: Options) => Promise<CreatorUpdateSender>;
4018
+ deleteCreatorUpdateSenderById: (tenant_id: string, creator_update_sender_id: string, options?: Options) => Promise<Response>;
4019
+ createCreatorUpdateTemplateForTenant: (tenant_id: string, body: CreateCreatorUpdateTemplateRequestBody, options?: Options) => Promise<CreatorUpdateTemplate>;
4020
+ paginateCreatorUpdateTemplatesForTenant: (tenant_id: string, query?: {
4021
+ $select?: string;
4022
+ $top?: number;
4023
+ $skip?: number;
4024
+ $orderby?: string;
4025
+ $filter?: string;
4026
+ $expand?: string;
4027
+ $search?: string;
4028
+ }, options?: Options) => Promise<CreatorUpdateTemplateCollectionResponse>;
4029
+ updateCreatorUpdateTemplateById: (tenant_id: string, creator_update_template_id: string, body?: UpdateCreatorUpdateTemplateRequestBody, options?: Options) => Promise<CreatorUpdateTemplate>;
4030
+ deleteCreatorUpdateTemplateById: (tenant_id: string, creator_update_template_id: string, options?: Options) => Promise<Response>;
3940
4031
  createCreatorUpdateForTenant: (tenant_id: string, body: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
3941
4032
  paginateCreatorUpdatesForTenant: (tenant_id: string, query?: {
3942
4033
  $select?: string;
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.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.ReactionType = exports.FeedItemType = exports.CreatorUpdateChannelType = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateStatus = exports.FeedbackFormFieldType = exports.BillingSourceType = 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.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.ReactionType = exports.FeedItemType = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.FeedbackFormFieldType = exports.BillingSourceType = 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
  exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
@@ -130,16 +130,16 @@ var FeedbackFormFieldType;
130
130
  FeedbackFormFieldType["input"] = "input";
131
131
  FeedbackFormFieldType["select"] = "select";
132
132
  })(FeedbackFormFieldType || (exports.FeedbackFormFieldType = FeedbackFormFieldType = {}));
133
- var CreatorUpdateStatus;
134
- (function (CreatorUpdateStatus) {
135
- CreatorUpdateStatus["draft"] = "draft";
136
- CreatorUpdateStatus["published"] = "published";
137
- })(CreatorUpdateStatus || (exports.CreatorUpdateStatus = CreatorUpdateStatus = {}));
138
133
  var CreatorUpdateVisibilityType;
139
134
  (function (CreatorUpdateVisibilityType) {
140
135
  CreatorUpdateVisibilityType["public"] = "public";
141
136
  CreatorUpdateVisibilityType["private"] = "private";
142
137
  })(CreatorUpdateVisibilityType || (exports.CreatorUpdateVisibilityType = CreatorUpdateVisibilityType = {}));
138
+ var CreatorUpdateStatus;
139
+ (function (CreatorUpdateStatus) {
140
+ CreatorUpdateStatus["draft"] = "draft";
141
+ CreatorUpdateStatus["published"] = "published";
142
+ })(CreatorUpdateStatus || (exports.CreatorUpdateStatus = CreatorUpdateStatus = {}));
143
143
  var CreatorUpdateChannelType;
144
144
  (function (CreatorUpdateChannelType) {
145
145
  CreatorUpdateChannelType["feed"] = "feed";
@@ -708,6 +708,46 @@ var ParraAPI = /** @class */ (function () {
708
708
  if (options === void 0) { options = {}; }
709
709
  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));
710
710
  };
711
+ this.paginateCreatorUpdateSendersForTenant = function (tenant_id, query, options) {
712
+ if (options === void 0) { options = {}; }
713
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), __assign({ method: "get", query: query }, options));
714
+ };
715
+ this.createCreatorUpdateSenderForTenant = function (tenant_id, body, options) {
716
+ if (options === void 0) { options = {}; }
717
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), __assign({ method: "post", body: JSON.stringify(body), headers: {
718
+ "content-type": "application/json",
719
+ } }, options));
720
+ };
721
+ this.updateCreatorUpdateSenderById = function (tenant_id, creator_update_sender_id, body, options) {
722
+ if (options === void 0) { options = {}; }
723
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
724
+ "content-type": "application/json",
725
+ } }, options));
726
+ };
727
+ this.deleteCreatorUpdateSenderById = function (tenant_id, creator_update_sender_id, options) {
728
+ if (options === void 0) { options = {}; }
729
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), __assign({ method: "delete" }, options));
730
+ };
731
+ this.createCreatorUpdateTemplateForTenant = function (tenant_id, body, options) {
732
+ if (options === void 0) { options = {}; }
733
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
734
+ "content-type": "application/json",
735
+ } }, options));
736
+ };
737
+ this.paginateCreatorUpdateTemplatesForTenant = function (tenant_id, query, options) {
738
+ if (options === void 0) { options = {}; }
739
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates"), __assign({ method: "get", query: query }, options));
740
+ };
741
+ this.updateCreatorUpdateTemplateById = function (tenant_id, creator_update_template_id, body, options) {
742
+ if (options === void 0) { options = {}; }
743
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates/").concat(creator_update_template_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
744
+ "content-type": "application/json",
745
+ } }, options));
746
+ };
747
+ this.deleteCreatorUpdateTemplateById = function (tenant_id, creator_update_template_id, options) {
748
+ if (options === void 0) { options = {}; }
749
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates/").concat(creator_update_template_id), __assign({ method: "delete" }, options));
750
+ };
711
751
  this.createCreatorUpdateForTenant = function (tenant_id, body, options) {
712
752
  if (options === void 0) { options = {}; }
713
753
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.362",
3
+ "version": "0.3.364",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",