@parra/parra-js-sdk 0.3.356 → 0.3.357
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 +27 -11
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1082,6 +1082,24 @@ export interface UpdateCreatorUpdateRequestBody {
|
|
1082
1082
|
post_visibility?: CreatorUpdateVisibilityType;
|
1083
1083
|
attachment_visibility?: CreatorUpdateVisibilityType;
|
1084
1084
|
}
|
1085
|
+
export interface FeedView {
|
1086
|
+
id: string;
|
1087
|
+
created_at: string;
|
1088
|
+
updated_at: string;
|
1089
|
+
deleted_at?: string | null;
|
1090
|
+
tenant_id: string;
|
1091
|
+
app_area_id?: string | null;
|
1092
|
+
title: string;
|
1093
|
+
description?: string | null;
|
1094
|
+
slug: string;
|
1095
|
+
}
|
1096
|
+
export interface FeedCollectionResponse {
|
1097
|
+
page: number;
|
1098
|
+
page_count: number;
|
1099
|
+
page_size: number;
|
1100
|
+
total_count: number;
|
1101
|
+
data: Array<FeedView>;
|
1102
|
+
}
|
1085
1103
|
export declare enum FeedItemType {
|
1086
1104
|
youtubeVideo = "youtube_video",
|
1087
1105
|
contentCard = "content_card",
|
@@ -1178,17 +1196,6 @@ export interface FeedItemCollectionResponse {
|
|
1178
1196
|
total_count: number;
|
1179
1197
|
data: Array<FeedItem>;
|
1180
1198
|
}
|
1181
|
-
export interface FeedView {
|
1182
|
-
id: string;
|
1183
|
-
created_at: string;
|
1184
|
-
updated_at: string;
|
1185
|
-
deleted_at?: string | null;
|
1186
|
-
tenant_id: string;
|
1187
|
-
app_area_id?: string | null;
|
1188
|
-
title: string;
|
1189
|
-
description?: string | null;
|
1190
|
-
slug: string;
|
1191
|
-
}
|
1192
1199
|
export interface UpdateFeedItemRequestBody {
|
1193
1200
|
disabled?: boolean;
|
1194
1201
|
}
|
@@ -3866,6 +3873,15 @@ declare class ParraAPI {
|
|
3866
3873
|
deleteCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<Response>;
|
3867
3874
|
sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
|
3868
3875
|
deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
|
3876
|
+
paginateFeedsForTenant: (tenant_id: string, query?: {
|
3877
|
+
$select?: string;
|
3878
|
+
$top?: number;
|
3879
|
+
$skip?: number;
|
3880
|
+
$orderby?: string;
|
3881
|
+
$filter?: string;
|
3882
|
+
$expand?: string;
|
3883
|
+
$search?: string;
|
3884
|
+
}, options?: Options) => Promise<FeedCollectionResponse>;
|
3869
3885
|
paginateItemsForAppFeed: (tenant_id: string, application_id: string, feed_id_or_slug: string, query?: {
|
3870
3886
|
limit?: number;
|
3871
3887
|
offset?: number;
|
package/dist/ParraAPI.js
CHANGED
@@ -735,6 +735,10 @@ var ParraAPI = /** @class */ (function () {
|
|
735
735
|
if (options === void 0) { options = {}; }
|
736
736
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), __assign({ method: "delete" }, options));
|
737
737
|
};
|
738
|
+
this.paginateFeedsForTenant = function (tenant_id, query, options) {
|
739
|
+
if (options === void 0) { options = {}; }
|
740
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), __assign({ method: "get", query: query }, options));
|
741
|
+
};
|
738
742
|
this.paginateItemsForAppFeed = function (tenant_id, application_id, feed_id_or_slug, query, options) {
|
739
743
|
if (options === void 0) { options = {}; }
|
740
744
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/feeds/").concat(feed_id_or_slug, "/items"), __assign({ method: "get", query: query }, options));
|