@parra/parra-js-sdk 0.3.529 → 0.3.531
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 +14 -1
- package/dist/ParraAPI.js +1 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1560,6 +1560,7 @@ export interface AppCheckoutSession {
|
|
1560
1560
|
export interface AppLessonProgress {
|
1561
1561
|
complete: boolean;
|
1562
1562
|
progress?: number;
|
1563
|
+
progress_percentage?: number;
|
1563
1564
|
}
|
1564
1565
|
export interface AppLessonSection {
|
1565
1566
|
id: string;
|
@@ -2065,10 +2066,22 @@ export interface FeedCollectionResponse {
|
|
2065
2066
|
total_count: number;
|
2066
2067
|
data: Array<FeedView>;
|
2067
2068
|
}
|
2069
|
+
export interface CreateFeedYoutubeChannelRequestBody {
|
2070
|
+
type?: string;
|
2071
|
+
youtube_connection_id: string;
|
2072
|
+
channel_id?: string | null;
|
2073
|
+
playlist_id?: string | null;
|
2074
|
+
}
|
2075
|
+
export interface CreateFeedRssChannelRequestBody {
|
2076
|
+
type?: string;
|
2077
|
+
url: string;
|
2078
|
+
}
|
2079
|
+
export type CreateFeedChannelRequestBody = CreateFeedYoutubeChannelRequestBody | CreateFeedRssChannelRequestBody;
|
2068
2080
|
export interface CreateFeedRequestBody {
|
2069
2081
|
title: string;
|
2070
2082
|
slug: string;
|
2071
2083
|
description?: string | null;
|
2084
|
+
channels?: Array<CreateFeedChannelRequestBody> | null;
|
2072
2085
|
}
|
2073
2086
|
export declare enum FeedItemType {
|
2074
2087
|
youtubeVideo = "youtube_video",
|
@@ -5284,7 +5297,7 @@ declare class ParraAPI {
|
|
5284
5297
|
createSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, body: CreateCourseLessonSectionRequestBody, options?: Options) => Promise<LessonSection>;
|
5285
5298
|
updateSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, lesson_section_id: string, body?: UpdateCourseLessonSectionRequestBody, options?: Options) => Promise<LessonSection>;
|
5286
5299
|
deleteSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, lesson_section_id: string, options?: Options) => Promise<Response>;
|
5287
|
-
reportCourseLessonProgress: (tenant_id: string, lesson_id: string, body?: ReportLessonProgressRequestBody, options?: Options) => Promise<
|
5300
|
+
reportCourseLessonProgress: (tenant_id: string, lesson_id: string, body?: ReportLessonProgressRequestBody, options?: Options) => Promise<AppLessonProgress>;
|
5288
5301
|
listAppFaqs: (tenant_id: string, application_id: string, query?: {
|
5289
5302
|
app_area_id?: string | null;
|
5290
5303
|
}, options?: Options) => Promise<AppFaqView>;
|
package/dist/ParraAPI.js
CHANGED
@@ -1106,7 +1106,7 @@ var ParraAPI = /** @class */ (function () {
|
|
1106
1106
|
if (options === void 0) { options = {}; }
|
1107
1107
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/lessons/").concat(lesson_id, "/progress"), method: "post", body: JSON.stringify(body), headers: {
|
1108
1108
|
"content-type": "application/json",
|
1109
|
-
}
|
1109
|
+
} }, options));
|
1110
1110
|
};
|
1111
1111
|
this.listAppFaqs = function (tenant_id, application_id, query, options) {
|
1112
1112
|
if (options === void 0) { options = {}; }
|