@parra/parra-js-sdk 0.3.622 → 0.3.623

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.
@@ -733,6 +733,20 @@ export interface ContentCardCollectionResponse {
733
733
  total_count: number;
734
734
  data: Array<ContentCard>;
735
735
  }
736
+ export declare enum SiteIconType {
737
+ icon = "icon",
738
+ favicon = "favicon",
739
+ appleIcon = "apple-icon"
740
+ }
741
+ export interface SiteIcon {
742
+ id: string;
743
+ created_at: string;
744
+ updated_at: string;
745
+ deleted_at?: string | null;
746
+ type: SiteIconType;
747
+ size: number;
748
+ image: ImageAssetStub;
749
+ }
736
750
  export interface FeaturedApplicationLink {
737
751
  title: string;
738
752
  href: string;
@@ -780,6 +794,25 @@ export interface Link {
780
794
  export interface CreateEmailSubscriberRequestBody {
781
795
  email: string;
782
796
  }
797
+ export interface SiteIconStub {
798
+ id: string;
799
+ type: SiteIconType;
800
+ size: number;
801
+ image: ImageAssetStub;
802
+ }
803
+ export interface SiteStub {
804
+ id: string;
805
+ tenant_id: string;
806
+ name: string;
807
+ description: string;
808
+ }
809
+ export interface Site {
810
+ id: string;
811
+ tenant_id: string;
812
+ name: string;
813
+ description: string;
814
+ icons: Array<SiteIconStub>;
815
+ }
783
816
  export declare enum TagPool {
784
817
  content = "content"
785
818
  }
@@ -6996,12 +7029,16 @@ declare class ParraAPI {
6996
7029
  limit?: number;
6997
7030
  offset?: number;
6998
7031
  }, options?: Options) => Promise<ContentCardCollectionResponse>;
7032
+ updateSiteIcon: (tenant_id: string, site_id: string, site_icon_type: string, site_icon_size: number, body: UploadImageRequestBody, options?: Options) => Promise<SiteIcon>;
7033
+ deleteSiteIcon: (tenant_id: string, site_id: string, site_icon_type: string, site_icon_size: number, options?: Options) => Promise<Response>;
6999
7034
  updateBackgroundImageForContentCardById: (tenant_id: string, content_card_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ContentCard>;
7000
7035
  uploadAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
7001
7036
  uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
7002
7037
  listFeaturedApplications: (options?: Options) => Promise<Array<FeaturedApplication>>;
7003
7038
  getLinkByDomainAndKey: (link_domain: string, link_key: string, options?: Options) => Promise<Link>;
7004
7039
  createSubscriberForEmailAudienceById: (email_audience_id: string, body: CreateEmailSubscriberRequestBody, options?: Options) => Promise<Response>;
7040
+ getSiteForTenant: (tenant_id: string, options?: Options) => Promise<Site>;
7041
+ getSiteById: (tenant_id: string, site_id: string, options?: Options) => Promise<Site>;
7005
7042
  createTag: (tenant_id: string, body: CreateTagRequestBody, options?: Options) => Promise<Tag>;
7006
7043
  paginateTags: (tenant_id: string, query?: {
7007
7044
  pool?: string;
package/dist/ParraAPI.js CHANGED
@@ -11,9 +11,9 @@ 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.QrCodeLogoPaddingStyle = exports.TextTransform = exports.BorderRadiusType = exports.BorderStyle = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.DesignTokenType = exports.ThemeCornerRadiusStyle = exports.VideoType = exports.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ProductType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantBrand = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
- exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApiKeyType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = exports.HeadingTag = exports.QrCodeEcLevel = exports.QrCodeStyle = void 0;
16
- exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = void 0;
14
+ exports.TextTransform = exports.BorderRadiusType = exports.BorderStyle = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.DesignTokenType = exports.ThemeCornerRadiusStyle = exports.VideoType = exports.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ProductType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.SiteIconType = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantBrand = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
+ exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApiKeyType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = exports.HeadingTag = exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = void 0;
16
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = void 0;
17
17
  var TicketType;
18
18
  (function (TicketType) {
19
19
  TicketType["bug"] = "bug";
@@ -123,6 +123,12 @@ var FeedbackFormFieldType;
123
123
  FeedbackFormFieldType["input"] = "input";
124
124
  FeedbackFormFieldType["select"] = "select";
125
125
  })(FeedbackFormFieldType || (exports.FeedbackFormFieldType = FeedbackFormFieldType = {}));
126
+ var SiteIconType;
127
+ (function (SiteIconType) {
128
+ SiteIconType["icon"] = "icon";
129
+ SiteIconType["favicon"] = "favicon";
130
+ SiteIconType["appleIcon"] = "apple-icon";
131
+ })(SiteIconType || (exports.SiteIconType = SiteIconType = {}));
126
132
  var TagPool;
127
133
  (function (TagPool) {
128
134
  TagPool["content"] = "content";
@@ -817,6 +823,16 @@ var ParraAPI = /** @class */ (function () {
817
823
  if (options === void 0) { options = {}; }
818
824
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), method: "get", query: query }, options));
819
825
  };
826
+ this.updateSiteIcon = function (tenant_id, site_id, site_icon_type, site_icon_size, body, options) {
827
+ if (options === void 0) { options = {}; }
828
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/sites/").concat(site_id, "/icons/").concat(site_icon_type, "/").concat(site_icon_size), method: "put", body: JSON.stringify(body), headers: {
829
+ "content-type": "application/json",
830
+ } }, options));
831
+ };
832
+ this.deleteSiteIcon = function (tenant_id, site_id, site_icon_type, site_icon_size, options) {
833
+ if (options === void 0) { options = {}; }
834
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/sites/").concat(site_id, "/icons/").concat(site_icon_type, "/").concat(site_icon_size), method: "delete" }, options));
835
+ };
820
836
  this.updateBackgroundImageForContentCardById = function (tenant_id, content_card_id, body, options) {
821
837
  if (options === void 0) { options = {}; }
822
838
  var formData = new FormData();
@@ -858,6 +874,14 @@ var ParraAPI = /** @class */ (function () {
858
874
  "content-type": "application/json",
859
875
  }, raw: true }, options));
860
876
  };
877
+ this.getSiteForTenant = function (tenant_id, options) {
878
+ if (options === void 0) { options = {}; }
879
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/site"), method: "get" }, options));
880
+ };
881
+ this.getSiteById = function (tenant_id, site_id, options) {
882
+ if (options === void 0) { options = {}; }
883
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/sites/").concat(site_id), method: "get" }, options));
884
+ };
861
885
  this.createTag = function (tenant_id, body, options) {
862
886
  if (options === void 0) { options = {}; }
863
887
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tags"), 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.622",
3
+ "version": "0.3.623",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",