@parra/parra-js-sdk 0.3.420 → 0.3.421
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 +17 -0
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -634,6 +634,22 @@ export interface ContentCardCollectionResponse {
|
|
634
634
|
total_count: number;
|
635
635
|
data: Array<ContentCard>;
|
636
636
|
}
|
637
|
+
export interface FeaturedApplicationLink {
|
638
|
+
title: string;
|
639
|
+
href: string;
|
640
|
+
}
|
641
|
+
export interface FeaturedApplication {
|
642
|
+
id: string;
|
643
|
+
created_at: string;
|
644
|
+
updated_at: string;
|
645
|
+
deleted_at?: string | null;
|
646
|
+
name: string;
|
647
|
+
description?: string | null;
|
648
|
+
type: ApplicationType;
|
649
|
+
icon: ImageAssetStub;
|
650
|
+
ios?: ApplicationIosConfig | null;
|
651
|
+
link?: FeaturedApplicationLink | null;
|
652
|
+
}
|
637
653
|
export interface CreateCheckoutSessionRequestBody {
|
638
654
|
plan_id: string;
|
639
655
|
success_url?: string | null;
|
@@ -4354,6 +4370,7 @@ declare class ParraAPI {
|
|
4354
4370
|
updateBackgroundImageForContentCardById: (tenant_id: string, content_card_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ContentCard>;
|
4355
4371
|
uploadAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4356
4372
|
uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4373
|
+
listFeaturedApplications: (options?: Options) => Promise<Array<FeaturedApplication>>;
|
4357
4374
|
createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
|
4358
4375
|
getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
|
4359
4376
|
createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
|
package/dist/ParraAPI.js
CHANGED
@@ -566,6 +566,10 @@ var ParraAPI = /** @class */ (function () {
|
|
566
566
|
});
|
567
567
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/logo"), __assign({ method: "post", body: formData, headers: {} }, options));
|
568
568
|
};
|
569
|
+
this.listFeaturedApplications = function (options) {
|
570
|
+
if (options === void 0) { options = {}; }
|
571
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/applications/featured"), __assign({ method: "get" }, options));
|
572
|
+
};
|
569
573
|
this.createCheckoutSession = function (body, options) {
|
570
574
|
if (options === void 0) { options = {}; }
|
571
575
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/checkout/sessions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|