@parra/parra-js-sdk 0.3.608 → 0.3.610
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.
- package/dist/ParraAPI.d.ts +97 -82
- package/dist/ParraAPI.js +41 -37
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -295,6 +295,9 @@ export declare enum TenantArchetype {
|
|
295
295
|
contentCreator = "content_creator",
|
296
296
|
other = "other"
|
297
297
|
}
|
298
|
+
export declare enum TenantBrand {
|
299
|
+
contentPage = "content_page"
|
300
|
+
}
|
298
301
|
export interface CreateTenantRequestBody {
|
299
302
|
name: string;
|
300
303
|
subdomain?: string | null;
|
@@ -302,6 +305,7 @@ export interface CreateTenantRequestBody {
|
|
302
305
|
parent_tenant_id?: string | null;
|
303
306
|
archetype?: TenantArchetype | null;
|
304
307
|
archetype_other_description?: string | null;
|
308
|
+
brand?: TenantBrand | null;
|
305
309
|
}
|
306
310
|
export interface TenantAppInfoStub {
|
307
311
|
id: string;
|
@@ -314,6 +318,7 @@ export interface TenantAppInfoStub {
|
|
314
318
|
parent_tenant_id?: string | null;
|
315
319
|
archetype?: TenantArchetype | null;
|
316
320
|
archetype_other_description?: string | null;
|
321
|
+
brand?: TenantBrand | null;
|
317
322
|
display_name?: string | null;
|
318
323
|
logo?: ImageAssetStub | null;
|
319
324
|
issuer: string;
|
@@ -430,6 +435,7 @@ export interface TenantMemberTenantStub {
|
|
430
435
|
export interface TenantMemberTeamMemberStub {
|
431
436
|
id: string;
|
432
437
|
user_id: string;
|
438
|
+
admin?: boolean | null;
|
433
439
|
roles?: Array<string> | null;
|
434
440
|
}
|
435
441
|
export interface TenantMember {
|
@@ -777,84 +783,6 @@ export interface Link {
|
|
777
783
|
proxy: boolean;
|
778
784
|
rewrite: boolean;
|
779
785
|
}
|
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
786
|
export interface CreateEmailSubscriberRequestBody {
|
859
787
|
email: string;
|
860
788
|
}
|
@@ -1113,6 +1041,22 @@ export interface AppArticleCollectionResponse {
|
|
1113
1041
|
total_count: number;
|
1114
1042
|
data: Array<AppArticleStub>;
|
1115
1043
|
}
|
1044
|
+
export declare enum Currency {
|
1045
|
+
usd = "usd"
|
1046
|
+
}
|
1047
|
+
export interface Price {
|
1048
|
+
currency: Currency;
|
1049
|
+
amount: number;
|
1050
|
+
}
|
1051
|
+
export declare enum Interval {
|
1052
|
+
monthly = "monthly",
|
1053
|
+
annual = "annual"
|
1054
|
+
}
|
1055
|
+
export interface UnitPrice {
|
1056
|
+
currency: Currency;
|
1057
|
+
amount: number;
|
1058
|
+
interval: Interval;
|
1059
|
+
}
|
1116
1060
|
export type AnyPrice = Price | UnitPrice;
|
1117
1061
|
export declare enum CtaType {
|
1118
1062
|
url = "url",
|
@@ -1211,6 +1155,7 @@ export interface AppVideoFeedStub {
|
|
1211
1155
|
published_at: string;
|
1212
1156
|
live_broadcast_content?: string | null;
|
1213
1157
|
statistics?: YoutubeStatistics | null;
|
1158
|
+
slug?: string | null;
|
1214
1159
|
paywall?: AppPaywallConfiguration | null;
|
1215
1160
|
tags?: Array<TagStub>;
|
1216
1161
|
}
|
@@ -3814,6 +3759,7 @@ export interface VideoStub {
|
|
3814
3759
|
published_at: string;
|
3815
3760
|
live_broadcast_content?: string | null;
|
3816
3761
|
statistics?: YoutubeStatistics | null;
|
3762
|
+
slug?: string | null;
|
3817
3763
|
paywall?: AppPaywallConfiguration | null;
|
3818
3764
|
}
|
3819
3765
|
export interface Video {
|
@@ -3831,6 +3777,7 @@ export interface Video {
|
|
3831
3777
|
published_at: string;
|
3832
3778
|
live_broadcast_content?: string | null;
|
3833
3779
|
statistics?: YoutubeStatistics | null;
|
3780
|
+
slug?: string | null;
|
3834
3781
|
paywall?: AppPaywallConfiguration | null;
|
3835
3782
|
tags?: Array<TagStub>;
|
3836
3783
|
reaction_options?: Array<ReactionOptionGroup>;
|
@@ -3859,6 +3806,7 @@ export interface AppVideoStub {
|
|
3859
3806
|
published_at: string;
|
3860
3807
|
live_broadcast_content?: string | null;
|
3861
3808
|
statistics?: YoutubeStatistics | null;
|
3809
|
+
slug?: string | null;
|
3862
3810
|
paywall?: AppPaywallConfiguration | null;
|
3863
3811
|
tags?: Array<TagStub>;
|
3864
3812
|
reaction_options?: Array<ReactionOptionGroup>;
|
@@ -3887,6 +3835,7 @@ export interface AppVideo {
|
|
3887
3835
|
published_at: string;
|
3888
3836
|
live_broadcast_content?: string | null;
|
3889
3837
|
statistics?: YoutubeStatistics | null;
|
3838
|
+
slug?: string | null;
|
3890
3839
|
paywall?: AppPaywallConfiguration | null;
|
3891
3840
|
tags?: Array<TagStub>;
|
3892
3841
|
reaction_options?: Array<ReactionOptionGroup>;
|
@@ -5058,6 +5007,68 @@ export interface UpdateNotificationTopicRequestBody {
|
|
5058
5007
|
description?: string | null;
|
5059
5008
|
active?: boolean;
|
5060
5009
|
}
|
5010
|
+
export interface CreateCheckoutSessionRequestBody {
|
5011
|
+
plan_id: string;
|
5012
|
+
success_url?: string | null;
|
5013
|
+
cancel_url?: string | null;
|
5014
|
+
}
|
5015
|
+
export interface CheckoutSession {
|
5016
|
+
url: string;
|
5017
|
+
}
|
5018
|
+
export interface Plan {
|
5019
|
+
id: string;
|
5020
|
+
created_at: string;
|
5021
|
+
updated_at: string;
|
5022
|
+
deleted_at?: string | null;
|
5023
|
+
tier: string;
|
5024
|
+
interval: string;
|
5025
|
+
price: Price;
|
5026
|
+
discounted_price?: Price;
|
5027
|
+
unit_price: UnitPrice;
|
5028
|
+
context?: string | null;
|
5029
|
+
}
|
5030
|
+
export declare enum SubscriptionStatus {
|
5031
|
+
incomplete = "incomplete",
|
5032
|
+
incompleteExpired = "incomplete_expired",
|
5033
|
+
trialing = "trialing",
|
5034
|
+
active = "active",
|
5035
|
+
pastDue = "past_due",
|
5036
|
+
canceled = "canceled",
|
5037
|
+
unpaid = "unpaid"
|
5038
|
+
}
|
5039
|
+
export interface SubscriptionItem {
|
5040
|
+
id: string;
|
5041
|
+
created_at: string;
|
5042
|
+
updated_at: string;
|
5043
|
+
deleted_at?: string | null;
|
5044
|
+
plan_id: string;
|
5045
|
+
quantity: number;
|
5046
|
+
}
|
5047
|
+
export interface Subscription {
|
5048
|
+
id: string;
|
5049
|
+
created_at: string;
|
5050
|
+
updated_at: string;
|
5051
|
+
deleted_at?: string | null;
|
5052
|
+
customer_id: string;
|
5053
|
+
status: SubscriptionStatus;
|
5054
|
+
cancel_at?: string | null;
|
5055
|
+
cancel_at_period_end?: boolean | null;
|
5056
|
+
canceled_at?: string | null;
|
5057
|
+
current_period_start?: string | null;
|
5058
|
+
current_period_end?: string | null;
|
5059
|
+
start_date?: string | null;
|
5060
|
+
ended_at?: string | null;
|
5061
|
+
trial_start?: string | null;
|
5062
|
+
trial_end?: string | null;
|
5063
|
+
items: Array<SubscriptionItem>;
|
5064
|
+
}
|
5065
|
+
export interface TenantPlansResponse {
|
5066
|
+
plans?: Array<Plan>;
|
5067
|
+
subscriptions?: Array<Subscription>;
|
5068
|
+
}
|
5069
|
+
export interface BillingPortalSession {
|
5070
|
+
url: string;
|
5071
|
+
}
|
5061
5072
|
export interface CreateSettingsViewRequestBody {
|
5062
5073
|
title: string;
|
5063
5074
|
description?: string | null;
|
@@ -5866,6 +5877,7 @@ export interface Tenant {
|
|
5866
5877
|
parent_tenant_id?: string | null;
|
5867
5878
|
archetype?: TenantArchetype | null;
|
5868
5879
|
archetype_other_description?: string | null;
|
5880
|
+
brand?: TenantBrand | null;
|
5869
5881
|
display_name?: string | null;
|
5870
5882
|
logo?: ImageAssetStub | null;
|
5871
5883
|
issuer: string;
|
@@ -6314,6 +6326,8 @@ export interface TeamMember {
|
|
6314
6326
|
name: string;
|
6315
6327
|
email: string;
|
6316
6328
|
avatar?: ImageAssetStub;
|
6329
|
+
admin?: boolean | null;
|
6330
|
+
roles?: Array<string> | null;
|
6317
6331
|
}
|
6318
6332
|
export interface CreateRoleRequestBody {
|
6319
6333
|
name: string;
|
@@ -6451,6 +6465,7 @@ export interface CreateTenantForUserRequestBody {
|
|
6451
6465
|
is_test: boolean;
|
6452
6466
|
archetype?: TenantArchetype | null;
|
6453
6467
|
archetype_other_description?: string | null;
|
6468
|
+
brand?: TenantBrand | null;
|
6454
6469
|
}
|
6455
6470
|
export interface CreateMailSenderRequestBody {
|
6456
6471
|
name?: string | null;
|
@@ -6823,9 +6838,6 @@ declare class ParraAPI {
|
|
6823
6838
|
uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
6824
6839
|
listFeaturedApplications: (options?: Options) => Promise<Array<FeaturedApplication>>;
|
6825
6840
|
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
6841
|
createSubscriberForEmailAudienceById: (email_audience_id: string, body: CreateEmailSubscriberRequestBody, options?: Options) => Promise<Response>;
|
6830
6842
|
createTag: (tenant_id: string, body: CreateTagRequestBody, options?: Options) => Promise<Tag>;
|
6831
6843
|
paginateTags: (tenant_id: string, query?: {
|
@@ -7292,6 +7304,9 @@ declare class ParraAPI {
|
|
7292
7304
|
listNotificationTopics: (tenant_id: string, options?: Options) => Promise<Array<NotificationTopic>>;
|
7293
7305
|
updateNotificationTopicById: (tenant_id: string, notification_topic_id: string, body?: UpdateNotificationTopicRequestBody, options?: Options) => Promise<NotificationTopic>;
|
7294
7306
|
deleteNotificationTopicById: (tenant_id: string, notification_topic_id: string, options?: Options) => Promise<Response>;
|
7307
|
+
createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
|
7308
|
+
getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
|
7309
|
+
createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
|
7295
7310
|
listSchemas: (tenant_id: string, options?: Options) => Promise<Array<Schema>>;
|
7296
7311
|
getSchemaById: (tenant_id: string, schema_id: string, options?: Options) => Promise<Schema>;
|
7297
7312
|
createSettingsViewForTenant: (tenant_id: string, body: CreateSettingsViewRequestBody, options?: Options) => Promise<SettingsView>;
|
@@ -7387,7 +7402,7 @@ declare class ParraAPI {
|
|
7387
7402
|
createConnectionForIntegration: (tenant_id: string, integration_id: string, body?: CreateIntegrationConnectionRequestBody, options?: Options) => Promise<IntegrationConnection>;
|
7388
7403
|
getInvitationsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TenantInvitation>>;
|
7389
7404
|
createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody, options?: Options) => Promise<TenantInvitation>;
|
7390
|
-
|
7405
|
+
listTeamMembersForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TeamMember>>;
|
7391
7406
|
deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string, options?: Options) => Promise<Response>;
|
7392
7407
|
createRole: (tenant_id: string, body: CreateRoleRequestBody, options?: Options) => Promise<Role>;
|
7393
7408
|
listRoles: (tenant_id: string, options?: Options) => Promise<Array<Role>>;
|
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.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.
|
15
|
-
exports.
|
16
|
-
exports.PolicyDocumentVersionStatus = void 0;
|
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.Interval = exports.Currency = 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.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 = exports.HeadingTag = void 0;
|
16
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = void 0;
|
17
17
|
var TicketType;
|
18
18
|
(function (TicketType) {
|
19
19
|
TicketType["bug"] = "bug";
|
@@ -88,6 +88,10 @@ var TenantArchetype;
|
|
88
88
|
TenantArchetype["contentCreator"] = "content_creator";
|
89
89
|
TenantArchetype["other"] = "other";
|
90
90
|
})(TenantArchetype || (exports.TenantArchetype = TenantArchetype = {}));
|
91
|
+
var TenantBrand;
|
92
|
+
(function (TenantBrand) {
|
93
|
+
TenantBrand["contentPage"] = "content_page";
|
94
|
+
})(TenantBrand || (exports.TenantBrand = TenantBrand = {}));
|
91
95
|
var AppleSsoScope;
|
92
96
|
(function (AppleSsoScope) {
|
93
97
|
AppleSsoScope["fullName"] = "full_name";
|
@@ -119,25 +123,6 @@ var FeedbackFormFieldType;
|
|
119
123
|
FeedbackFormFieldType["input"] = "input";
|
120
124
|
FeedbackFormFieldType["select"] = "select";
|
121
125
|
})(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
126
|
var TagPool;
|
142
127
|
(function (TagPool) {
|
143
128
|
TagPool["content"] = "content";
|
@@ -154,6 +139,15 @@ var ReactionType;
|
|
154
139
|
ReactionType["emoji"] = "emoji";
|
155
140
|
ReactionType["custom"] = "custom";
|
156
141
|
})(ReactionType || (exports.ReactionType = ReactionType = {}));
|
142
|
+
var Currency;
|
143
|
+
(function (Currency) {
|
144
|
+
Currency["usd"] = "usd";
|
145
|
+
})(Currency || (exports.Currency = Currency = {}));
|
146
|
+
var Interval;
|
147
|
+
(function (Interval) {
|
148
|
+
Interval["monthly"] = "monthly";
|
149
|
+
Interval["annual"] = "annual";
|
150
|
+
})(Interval || (exports.Interval = Interval = {}));
|
157
151
|
var CtaType;
|
158
152
|
(function (CtaType) {
|
159
153
|
CtaType["url"] = "url";
|
@@ -533,6 +527,16 @@ var ApnsPushType;
|
|
533
527
|
ApnsPushType["voip"] = "voip";
|
534
528
|
ApnsPushType["mdm"] = "mdm";
|
535
529
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
530
|
+
var SubscriptionStatus;
|
531
|
+
(function (SubscriptionStatus) {
|
532
|
+
SubscriptionStatus["incomplete"] = "incomplete";
|
533
|
+
SubscriptionStatus["incompleteExpired"] = "incomplete_expired";
|
534
|
+
SubscriptionStatus["trialing"] = "trialing";
|
535
|
+
SubscriptionStatus["active"] = "active";
|
536
|
+
SubscriptionStatus["pastDue"] = "past_due";
|
537
|
+
SubscriptionStatus["canceled"] = "canceled";
|
538
|
+
SubscriptionStatus["unpaid"] = "unpaid";
|
539
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
536
540
|
var SettingsItemType;
|
537
541
|
(function (SettingsItemType) {
|
538
542
|
SettingsItemType["string"] = "string";
|
@@ -834,20 +838,6 @@ var ParraAPI = /** @class */ (function () {
|
|
834
838
|
if (options === void 0) { options = {}; }
|
835
839
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/links/domains/").concat(link_domain, "/keys/").concat(link_key), method: "get" }, options));
|
836
840
|
};
|
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
841
|
this.createSubscriberForEmailAudienceById = function (email_audience_id, body, options) {
|
852
842
|
if (options === void 0) { options = {}; }
|
853
843
|
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: {
|
@@ -2260,6 +2250,20 @@ var ParraAPI = /** @class */ (function () {
|
|
2260
2250
|
if (options === void 0) { options = {}; }
|
2261
2251
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), method: "delete" }, options));
|
2262
2252
|
};
|
2253
|
+
this.createCheckoutSession = function (body, options) {
|
2254
|
+
if (options === void 0) { options = {}; }
|
2255
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
|
2256
|
+
"content-type": "application/json",
|
2257
|
+
} }, options));
|
2258
|
+
};
|
2259
|
+
this.getPlansForTenantById = 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, "/plans"), method: "post" }, options));
|
2262
|
+
};
|
2263
|
+
this.createBillingPortalSession = function (tenant_id, options) {
|
2264
|
+
if (options === void 0) { options = {}; }
|
2265
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), method: "post" }, options));
|
2266
|
+
};
|
2263
2267
|
this.listSchemas = function (tenant_id, options) {
|
2264
2268
|
if (options === void 0) { options = {}; }
|
2265
2269
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/schemas"), method: "get" }, options));
|
@@ -2624,7 +2628,7 @@ var ParraAPI = /** @class */ (function () {
|
|
2624
2628
|
"content-type": "application/json",
|
2625
2629
|
} }, options));
|
2626
2630
|
};
|
2627
|
-
this.
|
2631
|
+
this.listTeamMembersForTenantById = function (tenant_id, options) {
|
2628
2632
|
if (options === void 0) { options = {}; }
|
2629
2633
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), method: "get" }, options));
|
2630
2634
|
};
|