@parra/parra-js-sdk 0.3.419 → 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 +28 -11
- 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;
|
@@ -1005,6 +1021,17 @@ export interface ChannelMember {
|
|
1005
1021
|
type: ChannelMemberType;
|
1006
1022
|
roles: Array<ChannelMemberRole>;
|
1007
1023
|
}
|
1024
|
+
export interface Message {
|
1025
|
+
id: string;
|
1026
|
+
created_at: string;
|
1027
|
+
updated_at: string;
|
1028
|
+
deleted_at?: string | null;
|
1029
|
+
tenant_id: string;
|
1030
|
+
channel_id: string;
|
1031
|
+
member_id: string;
|
1032
|
+
user?: TenantUserStub | null;
|
1033
|
+
content: string;
|
1034
|
+
}
|
1008
1035
|
export interface Channel {
|
1009
1036
|
id: string;
|
1010
1037
|
created_at: string;
|
@@ -1046,17 +1073,6 @@ export interface MessageCollectionResponse {
|
|
1046
1073
|
export interface CreateMessageRequestBody {
|
1047
1074
|
content: string;
|
1048
1075
|
}
|
1049
|
-
export interface Message {
|
1050
|
-
id: string;
|
1051
|
-
created_at: string;
|
1052
|
-
updated_at: string;
|
1053
|
-
deleted_at?: string | null;
|
1054
|
-
tenant_id: string;
|
1055
|
-
channel_id: string;
|
1056
|
-
member_id: string;
|
1057
|
-
user?: TenantUserStub | null;
|
1058
|
-
content: string;
|
1059
|
-
}
|
1060
1076
|
export interface FlagMessageRequestBody {
|
1061
1077
|
reason?: string | null;
|
1062
1078
|
}
|
@@ -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: {
|