@parra/parra-js-sdk 0.3.629 → 0.3.631
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 +34 -1
- package/dist/ParraAPI.js +37 -5
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -287,7 +287,40 @@ export interface Domain {
|
|
287
287
|
url: string;
|
288
288
|
data?: DomainData | null;
|
289
289
|
}
|
290
|
+
export declare enum EntitlementType {
|
291
|
+
authentication = "authentication",
|
292
|
+
applications = "applications",
|
293
|
+
billing = "billing",
|
294
|
+
childTenants = "child_tenants",
|
295
|
+
externalDomains = "external_domains",
|
296
|
+
campaigns = "campaigns",
|
297
|
+
creatorHub = "creator_hub",
|
298
|
+
articles = "articles",
|
299
|
+
feeds = "feeds",
|
300
|
+
videos = "videos",
|
301
|
+
creators = "creators",
|
302
|
+
creatorUpdates = "creator_updates",
|
303
|
+
contentCards = "content_cards",
|
304
|
+
courses = "courses",
|
305
|
+
product = "product",
|
306
|
+
releases = "releases",
|
307
|
+
productBoard = "product_board",
|
308
|
+
forms = "forms",
|
309
|
+
mail = "mail",
|
310
|
+
notifications = "notifications",
|
311
|
+
links = "links",
|
312
|
+
legal = "legal",
|
313
|
+
brand = "brand",
|
314
|
+
support = "support",
|
315
|
+
teamMembers = "team_members",
|
316
|
+
users = "users",
|
317
|
+
contentPages = "content_pages",
|
318
|
+
externalProducts = "external_products",
|
319
|
+
sponsors = "sponsors"
|
320
|
+
}
|
290
321
|
export interface TenantEntitlement {
|
322
|
+
id: EntitlementType;
|
323
|
+
data?: object | null;
|
291
324
|
}
|
292
325
|
export declare enum TenantArchetype {
|
293
326
|
custom = "custom",
|
@@ -7526,7 +7559,7 @@ declare class ParraAPI {
|
|
7526
7559
|
listNotificationTopics: (tenant_id: string, options?: Options) => Promise<Array<NotificationTopic>>;
|
7527
7560
|
updateNotificationTopicById: (tenant_id: string, notification_topic_id: string, body?: UpdateNotificationTopicRequestBody, options?: Options) => Promise<NotificationTopic>;
|
7528
7561
|
deleteNotificationTopicById: (tenant_id: string, notification_topic_id: string, options?: Options) => Promise<Response>;
|
7529
|
-
createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
|
7562
|
+
createCheckoutSession: (tenant_id: string, body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
|
7530
7563
|
getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
|
7531
7564
|
createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
|
7532
7565
|
listSchemas: (tenant_id: string, options?: Options) => Promise<Array<Schema>>;
|
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.
|
15
|
-
exports.
|
16
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = void 0;
|
14
|
+
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.EntitlementType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
15
|
+
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 = exports.TextTransform = void 0;
|
16
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = void 0;
|
17
17
|
var TicketType;
|
18
18
|
(function (TicketType) {
|
19
19
|
TicketType["bug"] = "bug";
|
@@ -81,6 +81,38 @@ var DomainStatus;
|
|
81
81
|
DomainStatus["disabled"] = "disabled";
|
82
82
|
DomainStatus["deleted"] = "deleted";
|
83
83
|
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
84
|
+
var EntitlementType;
|
85
|
+
(function (EntitlementType) {
|
86
|
+
EntitlementType["authentication"] = "authentication";
|
87
|
+
EntitlementType["applications"] = "applications";
|
88
|
+
EntitlementType["billing"] = "billing";
|
89
|
+
EntitlementType["childTenants"] = "child_tenants";
|
90
|
+
EntitlementType["externalDomains"] = "external_domains";
|
91
|
+
EntitlementType["campaigns"] = "campaigns";
|
92
|
+
EntitlementType["creatorHub"] = "creator_hub";
|
93
|
+
EntitlementType["articles"] = "articles";
|
94
|
+
EntitlementType["feeds"] = "feeds";
|
95
|
+
EntitlementType["videos"] = "videos";
|
96
|
+
EntitlementType["creators"] = "creators";
|
97
|
+
EntitlementType["creatorUpdates"] = "creator_updates";
|
98
|
+
EntitlementType["contentCards"] = "content_cards";
|
99
|
+
EntitlementType["courses"] = "courses";
|
100
|
+
EntitlementType["product"] = "product";
|
101
|
+
EntitlementType["releases"] = "releases";
|
102
|
+
EntitlementType["productBoard"] = "product_board";
|
103
|
+
EntitlementType["forms"] = "forms";
|
104
|
+
EntitlementType["mail"] = "mail";
|
105
|
+
EntitlementType["notifications"] = "notifications";
|
106
|
+
EntitlementType["links"] = "links";
|
107
|
+
EntitlementType["legal"] = "legal";
|
108
|
+
EntitlementType["brand"] = "brand";
|
109
|
+
EntitlementType["support"] = "support";
|
110
|
+
EntitlementType["teamMembers"] = "team_members";
|
111
|
+
EntitlementType["users"] = "users";
|
112
|
+
EntitlementType["contentPages"] = "content_pages";
|
113
|
+
EntitlementType["externalProducts"] = "external_products";
|
114
|
+
EntitlementType["sponsors"] = "sponsors";
|
115
|
+
})(EntitlementType || (exports.EntitlementType = EntitlementType = {}));
|
84
116
|
var TenantArchetype;
|
85
117
|
(function (TenantArchetype) {
|
86
118
|
TenantArchetype["custom"] = "custom";
|
@@ -2335,9 +2367,9 @@ var ParraAPI = /** @class */ (function () {
|
|
2335
2367
|
if (options === void 0) { options = {}; }
|
2336
2368
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), method: "delete" }, options));
|
2337
2369
|
};
|
2338
|
-
this.createCheckoutSession = function (body, options) {
|
2370
|
+
this.createCheckoutSession = function (tenant_id, body, options) {
|
2339
2371
|
if (options === void 0) { options = {}; }
|
2340
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
|
2372
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
|
2341
2373
|
"content-type": "application/json",
|
2342
2374
|
} }, options));
|
2343
2375
|
};
|