@parra/parra-js-sdk 0.3.607 → 0.3.609

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.
@@ -777,84 +777,6 @@ export interface Link {
777
777
  proxy: boolean;
778
778
  rewrite: boolean;
779
779
  }
780
- export interface CreateCheckoutSessionRequestBody {
781
- plan_id: string;
782
- success_url?: string | null;
783
- cancel_url?: string | null;
784
- }
785
- export interface CheckoutSession {
786
- url: string;
787
- }
788
- export declare enum Currency {
789
- usd = "usd"
790
- }
791
- export interface Price {
792
- currency: Currency;
793
- amount: number;
794
- }
795
- export declare enum Interval {
796
- monthly = "monthly",
797
- annual = "annual"
798
- }
799
- export interface UnitPrice {
800
- currency: Currency;
801
- amount: number;
802
- interval: Interval;
803
- }
804
- export interface Plan {
805
- id: string;
806
- created_at: string;
807
- updated_at: string;
808
- deleted_at?: string | null;
809
- tier: string;
810
- interval: string;
811
- price: Price;
812
- discounted_price?: Price;
813
- unit_price: UnitPrice;
814
- context?: string | null;
815
- }
816
- export declare enum SubscriptionStatus {
817
- incomplete = "incomplete",
818
- incompleteExpired = "incomplete_expired",
819
- trialing = "trialing",
820
- active = "active",
821
- pastDue = "past_due",
822
- canceled = "canceled",
823
- unpaid = "unpaid"
824
- }
825
- export interface SubscriptionItem {
826
- id: string;
827
- created_at: string;
828
- updated_at: string;
829
- deleted_at?: string | null;
830
- plan_id: string;
831
- quantity: number;
832
- }
833
- export interface Subscription {
834
- id: string;
835
- created_at: string;
836
- updated_at: string;
837
- deleted_at?: string | null;
838
- customer_id: string;
839
- status: SubscriptionStatus;
840
- cancel_at?: string | null;
841
- cancel_at_period_end?: boolean | null;
842
- canceled_at?: string | null;
843
- current_period_start?: string | null;
844
- current_period_end?: string | null;
845
- start_date?: string | null;
846
- ended_at?: string | null;
847
- trial_start?: string | null;
848
- trial_end?: string | null;
849
- items: Array<SubscriptionItem>;
850
- }
851
- export interface TenantPlansResponse {
852
- plans?: Array<Plan>;
853
- subscriptions?: Array<Subscription>;
854
- }
855
- export interface BillingPortalSession {
856
- url: string;
857
- }
858
780
  export interface CreateEmailSubscriberRequestBody {
859
781
  email: string;
860
782
  }
@@ -1113,6 +1035,22 @@ export interface AppArticleCollectionResponse {
1113
1035
  total_count: number;
1114
1036
  data: Array<AppArticleStub>;
1115
1037
  }
1038
+ export declare enum Currency {
1039
+ usd = "usd"
1040
+ }
1041
+ export interface Price {
1042
+ currency: Currency;
1043
+ amount: number;
1044
+ }
1045
+ export declare enum Interval {
1046
+ monthly = "monthly",
1047
+ annual = "annual"
1048
+ }
1049
+ export interface UnitPrice {
1050
+ currency: Currency;
1051
+ amount: number;
1052
+ interval: Interval;
1053
+ }
1116
1054
  export type AnyPrice = Price | UnitPrice;
1117
1055
  export declare enum CtaType {
1118
1056
  url = "url",
@@ -1211,6 +1149,7 @@ export interface AppVideoFeedStub {
1211
1149
  published_at: string;
1212
1150
  live_broadcast_content?: string | null;
1213
1151
  statistics?: YoutubeStatistics | null;
1152
+ slug?: string | null;
1214
1153
  paywall?: AppPaywallConfiguration | null;
1215
1154
  tags?: Array<TagStub>;
1216
1155
  }
@@ -3814,6 +3753,7 @@ export interface VideoStub {
3814
3753
  published_at: string;
3815
3754
  live_broadcast_content?: string | null;
3816
3755
  statistics?: YoutubeStatistics | null;
3756
+ slug?: string | null;
3817
3757
  paywall?: AppPaywallConfiguration | null;
3818
3758
  }
3819
3759
  export interface Video {
@@ -3831,6 +3771,7 @@ export interface Video {
3831
3771
  published_at: string;
3832
3772
  live_broadcast_content?: string | null;
3833
3773
  statistics?: YoutubeStatistics | null;
3774
+ slug?: string | null;
3834
3775
  paywall?: AppPaywallConfiguration | null;
3835
3776
  tags?: Array<TagStub>;
3836
3777
  reaction_options?: Array<ReactionOptionGroup>;
@@ -3859,6 +3800,7 @@ export interface AppVideoStub {
3859
3800
  published_at: string;
3860
3801
  live_broadcast_content?: string | null;
3861
3802
  statistics?: YoutubeStatistics | null;
3803
+ slug?: string | null;
3862
3804
  paywall?: AppPaywallConfiguration | null;
3863
3805
  tags?: Array<TagStub>;
3864
3806
  reaction_options?: Array<ReactionOptionGroup>;
@@ -3887,6 +3829,7 @@ export interface AppVideo {
3887
3829
  published_at: string;
3888
3830
  live_broadcast_content?: string | null;
3889
3831
  statistics?: YoutubeStatistics | null;
3832
+ slug?: string | null;
3890
3833
  paywall?: AppPaywallConfiguration | null;
3891
3834
  tags?: Array<TagStub>;
3892
3835
  reaction_options?: Array<ReactionOptionGroup>;
@@ -5058,6 +5001,68 @@ export interface UpdateNotificationTopicRequestBody {
5058
5001
  description?: string | null;
5059
5002
  active?: boolean;
5060
5003
  }
5004
+ export interface CreateCheckoutSessionRequestBody {
5005
+ plan_id: string;
5006
+ success_url?: string | null;
5007
+ cancel_url?: string | null;
5008
+ }
5009
+ export interface CheckoutSession {
5010
+ url: string;
5011
+ }
5012
+ export interface Plan {
5013
+ id: string;
5014
+ created_at: string;
5015
+ updated_at: string;
5016
+ deleted_at?: string | null;
5017
+ tier: string;
5018
+ interval: string;
5019
+ price: Price;
5020
+ discounted_price?: Price;
5021
+ unit_price: UnitPrice;
5022
+ context?: string | null;
5023
+ }
5024
+ export declare enum SubscriptionStatus {
5025
+ incomplete = "incomplete",
5026
+ incompleteExpired = "incomplete_expired",
5027
+ trialing = "trialing",
5028
+ active = "active",
5029
+ pastDue = "past_due",
5030
+ canceled = "canceled",
5031
+ unpaid = "unpaid"
5032
+ }
5033
+ export interface SubscriptionItem {
5034
+ id: string;
5035
+ created_at: string;
5036
+ updated_at: string;
5037
+ deleted_at?: string | null;
5038
+ plan_id: string;
5039
+ quantity: number;
5040
+ }
5041
+ export interface Subscription {
5042
+ id: string;
5043
+ created_at: string;
5044
+ updated_at: string;
5045
+ deleted_at?: string | null;
5046
+ customer_id: string;
5047
+ status: SubscriptionStatus;
5048
+ cancel_at?: string | null;
5049
+ cancel_at_period_end?: boolean | null;
5050
+ canceled_at?: string | null;
5051
+ current_period_start?: string | null;
5052
+ current_period_end?: string | null;
5053
+ start_date?: string | null;
5054
+ ended_at?: string | null;
5055
+ trial_start?: string | null;
5056
+ trial_end?: string | null;
5057
+ items: Array<SubscriptionItem>;
5058
+ }
5059
+ export interface TenantPlansResponse {
5060
+ plans?: Array<Plan>;
5061
+ subscriptions?: Array<Subscription>;
5062
+ }
5063
+ export interface BillingPortalSession {
5064
+ url: string;
5065
+ }
5061
5066
  export interface CreateSettingsViewRequestBody {
5062
5067
  title: string;
5063
5068
  description?: string | null;
@@ -6823,9 +6828,6 @@ declare class ParraAPI {
6823
6828
  uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
6824
6829
  listFeaturedApplications: (options?: Options) => Promise<Array<FeaturedApplication>>;
6825
6830
  getLinkByDomainAndKey: (link_domain: string, link_key: string, options?: Options) => Promise<Link>;
6826
- createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
6827
- getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
6828
- createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
6829
6831
  createSubscriberForEmailAudienceById: (email_audience_id: string, body: CreateEmailSubscriberRequestBody, options?: Options) => Promise<Response>;
6830
6832
  createTag: (tenant_id: string, body: CreateTagRequestBody, options?: Options) => Promise<Tag>;
6831
6833
  paginateTags: (tenant_id: string, query?: {
@@ -7035,6 +7037,11 @@ declare class ParraAPI {
7035
7037
  sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
7036
7038
  scheduleCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, body: ScheduleCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
7037
7039
  deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
7040
+ listSuggestedContentForTenant: (tenant_id: string, query?: {
7041
+ limit?: number;
7042
+ offset?: number;
7043
+ context?: string;
7044
+ }, options?: Options) => Promise<Array<ContentItem>>;
7038
7045
  createSocialAccountForTenant: (tenant_id: string, body?: CreateSocialAccountRequestBody, options?: Options) => Promise<SocialAccount>;
7039
7046
  listSocialAccountsForTenant: (tenant_id: string, query?: {
7040
7047
  include?: string;
@@ -7287,6 +7294,9 @@ declare class ParraAPI {
7287
7294
  listNotificationTopics: (tenant_id: string, options?: Options) => Promise<Array<NotificationTopic>>;
7288
7295
  updateNotificationTopicById: (tenant_id: string, notification_topic_id: string, body?: UpdateNotificationTopicRequestBody, options?: Options) => Promise<NotificationTopic>;
7289
7296
  deleteNotificationTopicById: (tenant_id: string, notification_topic_id: string, options?: Options) => Promise<Response>;
7297
+ createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
7298
+ getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
7299
+ createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
7290
7300
  listSchemas: (tenant_id: string, options?: Options) => Promise<Array<Schema>>;
7291
7301
  getSchemaById: (tenant_id: string, schema_id: string, options?: Options) => Promise<Schema>;
7292
7302
  createSettingsViewForTenant: (tenant_id: string, body: CreateSettingsViewRequestBody, options?: Options) => Promise<SettingsView>;
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.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = 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.ContentType = exports.CtaType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
- exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = 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.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = 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 = void 0;
14
+ exports.HeadingTag = exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = 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.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
+ exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = 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.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 = void 0;
16
16
  exports.PolicyDocumentVersionStatus = void 0;
17
17
  var TicketType;
18
18
  (function (TicketType) {
@@ -119,25 +119,6 @@ var FeedbackFormFieldType;
119
119
  FeedbackFormFieldType["input"] = "input";
120
120
  FeedbackFormFieldType["select"] = "select";
121
121
  })(FeedbackFormFieldType || (exports.FeedbackFormFieldType = FeedbackFormFieldType = {}));
122
- var Currency;
123
- (function (Currency) {
124
- Currency["usd"] = "usd";
125
- })(Currency || (exports.Currency = Currency = {}));
126
- var Interval;
127
- (function (Interval) {
128
- Interval["monthly"] = "monthly";
129
- Interval["annual"] = "annual";
130
- })(Interval || (exports.Interval = Interval = {}));
131
- var SubscriptionStatus;
132
- (function (SubscriptionStatus) {
133
- SubscriptionStatus["incomplete"] = "incomplete";
134
- SubscriptionStatus["incompleteExpired"] = "incomplete_expired";
135
- SubscriptionStatus["trialing"] = "trialing";
136
- SubscriptionStatus["active"] = "active";
137
- SubscriptionStatus["pastDue"] = "past_due";
138
- SubscriptionStatus["canceled"] = "canceled";
139
- SubscriptionStatus["unpaid"] = "unpaid";
140
- })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
141
122
  var TagPool;
142
123
  (function (TagPool) {
143
124
  TagPool["content"] = "content";
@@ -154,6 +135,15 @@ var ReactionType;
154
135
  ReactionType["emoji"] = "emoji";
155
136
  ReactionType["custom"] = "custom";
156
137
  })(ReactionType || (exports.ReactionType = ReactionType = {}));
138
+ var Currency;
139
+ (function (Currency) {
140
+ Currency["usd"] = "usd";
141
+ })(Currency || (exports.Currency = Currency = {}));
142
+ var Interval;
143
+ (function (Interval) {
144
+ Interval["monthly"] = "monthly";
145
+ Interval["annual"] = "annual";
146
+ })(Interval || (exports.Interval = Interval = {}));
157
147
  var CtaType;
158
148
  (function (CtaType) {
159
149
  CtaType["url"] = "url";
@@ -533,6 +523,16 @@ var ApnsPushType;
533
523
  ApnsPushType["voip"] = "voip";
534
524
  ApnsPushType["mdm"] = "mdm";
535
525
  })(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
526
+ var SubscriptionStatus;
527
+ (function (SubscriptionStatus) {
528
+ SubscriptionStatus["incomplete"] = "incomplete";
529
+ SubscriptionStatus["incompleteExpired"] = "incomplete_expired";
530
+ SubscriptionStatus["trialing"] = "trialing";
531
+ SubscriptionStatus["active"] = "active";
532
+ SubscriptionStatus["pastDue"] = "past_due";
533
+ SubscriptionStatus["canceled"] = "canceled";
534
+ SubscriptionStatus["unpaid"] = "unpaid";
535
+ })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
536
536
  var SettingsItemType;
537
537
  (function (SettingsItemType) {
538
538
  SettingsItemType["string"] = "string";
@@ -834,20 +834,6 @@ var ParraAPI = /** @class */ (function () {
834
834
  if (options === void 0) { options = {}; }
835
835
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/links/domains/").concat(link_domain, "/keys/").concat(link_key), method: "get" }, options));
836
836
  };
837
- this.createCheckoutSession = function (body, options) {
838
- if (options === void 0) { options = {}; }
839
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
840
- "content-type": "application/json",
841
- } }, options));
842
- };
843
- this.getPlansForTenantById = function (tenant_id, options) {
844
- if (options === void 0) { options = {}; }
845
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/plans"), method: "post" }, options));
846
- };
847
- this.createBillingPortalSession = function (tenant_id, options) {
848
- if (options === void 0) { options = {}; }
849
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), method: "post" }, options));
850
- };
851
837
  this.createSubscriberForEmailAudienceById = function (email_audience_id, body, options) {
852
838
  if (options === void 0) { options = {}; }
853
839
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/email/audiences/").concat(email_audience_id, "/subscribers"), method: "post", body: JSON.stringify(body), headers: {
@@ -1606,6 +1592,10 @@ var ParraAPI = /** @class */ (function () {
1606
1592
  if (options === void 0) { options = {}; }
1607
1593
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), method: "delete" }, options));
1608
1594
  };
1595
+ this.listSuggestedContentForTenant = function (tenant_id, query, options) {
1596
+ if (options === void 0) { options = {}; }
1597
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/content/suggested"), method: "get", query: query }, options));
1598
+ };
1609
1599
  this.createSocialAccountForTenant = function (tenant_id, body, options) {
1610
1600
  if (options === void 0) { options = {}; }
1611
1601
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts"), method: "post", body: JSON.stringify(body), headers: {
@@ -2256,6 +2246,20 @@ var ParraAPI = /** @class */ (function () {
2256
2246
  if (options === void 0) { options = {}; }
2257
2247
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), method: "delete" }, options));
2258
2248
  };
2249
+ this.createCheckoutSession = function (body, options) {
2250
+ if (options === void 0) { options = {}; }
2251
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
2252
+ "content-type": "application/json",
2253
+ } }, options));
2254
+ };
2255
+ this.getPlansForTenantById = function (tenant_id, options) {
2256
+ if (options === void 0) { options = {}; }
2257
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/plans"), method: "post" }, options));
2258
+ };
2259
+ this.createBillingPortalSession = function (tenant_id, options) {
2260
+ if (options === void 0) { options = {}; }
2261
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), method: "post" }, options));
2262
+ };
2259
2263
  this.listSchemas = function (tenant_id, options) {
2260
2264
  if (options === void 0) { options = {}; }
2261
2265
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/schemas"), method: "get" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.607",
3
+ "version": "0.3.609",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",