@parra/parra-js-sdk 0.3.530 → 0.3.533

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.
@@ -409,6 +409,24 @@ export interface UserResponse {
409
409
  role_other_description?: string | null;
410
410
  avatar?: ImageAssetStub;
411
411
  }
412
+ export interface TenantMemberTenantStub {
413
+ id: string;
414
+ team_member_id: string;
415
+ entitlements?: Array<TenantEntitlement> | null;
416
+ scopes: Array<string>;
417
+ }
418
+ export interface TenantMemberTeamMemberStub {
419
+ id: string;
420
+ user_id: string;
421
+ }
422
+ export interface TenantMember {
423
+ tenant: TenantMemberTenantStub;
424
+ team_member: TenantMemberTeamMemberStub;
425
+ }
426
+ export interface MemberResponse {
427
+ tenant: TenantMemberTenantStub;
428
+ team_member: TenantMemberTeamMemberStub;
429
+ }
412
430
  export declare enum IdentityType {
413
431
  anonymous = "anonymous",
414
432
  username = "username",
@@ -559,6 +577,7 @@ export interface TenantUser {
559
577
  export interface UserInfoResponse {
560
578
  roles?: Array<string>;
561
579
  user?: UserResponse | null;
580
+ team_member?: MemberResponse | null;
562
581
  tenant_user?: TenantUser | null;
563
582
  }
564
583
  export interface AuthToken {
@@ -1560,6 +1579,7 @@ export interface AppCheckoutSession {
1560
1579
  export interface AppLessonProgress {
1561
1580
  complete: boolean;
1562
1581
  progress?: number;
1582
+ progress_percentage?: number;
1563
1583
  }
1564
1584
  export interface AppLessonSection {
1565
1585
  id: string;
@@ -2065,10 +2085,22 @@ export interface FeedCollectionResponse {
2065
2085
  total_count: number;
2066
2086
  data: Array<FeedView>;
2067
2087
  }
2088
+ export interface CreateFeedYoutubeChannelRequestBody {
2089
+ type?: string;
2090
+ youtube_connection_id: string;
2091
+ channel_id?: string | null;
2092
+ playlist_id?: string | null;
2093
+ }
2094
+ export interface CreateFeedRssChannelRequestBody {
2095
+ type?: string;
2096
+ url: string;
2097
+ }
2098
+ export type CreateFeedChannelRequestBody = CreateFeedYoutubeChannelRequestBody | CreateFeedRssChannelRequestBody;
2068
2099
  export interface CreateFeedRequestBody {
2069
2100
  title: string;
2070
2101
  slug: string;
2071
2102
  description?: string | null;
2103
+ channels?: Array<CreateFeedChannelRequestBody> | null;
2072
2104
  }
2073
2105
  export declare enum FeedItemType {
2074
2106
  youtubeVideo = "youtube_video",
@@ -5155,7 +5187,9 @@ declare class ParraAPI {
5155
5187
  version_token?: string;
5156
5188
  }, options?: Options) => Promise<AppInfo>;
5157
5189
  checkAuthorization: (body: CheckAuthorizationRequestBody, options?: Options) => Promise<CheckAuthorization>;
5158
- getUserInfo: (options?: Options) => Promise<UserInfoResponse>;
5190
+ getUserInfo: (query?: {
5191
+ tenant_id?: string | null;
5192
+ }, options?: Options) => Promise<UserInfoResponse>;
5159
5193
  getParraAuthToken: (options?: Options) => Promise<AuthToken>;
5160
5194
  listImageAssetsForTenantById: (tenant_id: string, query?: {
5161
5195
  ids?: string;
@@ -5284,7 +5318,7 @@ declare class ParraAPI {
5284
5318
  createSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, body: CreateCourseLessonSectionRequestBody, options?: Options) => Promise<LessonSection>;
5285
5319
  updateSectionForLesson: (tenant_id: string, course_id: string, lesson_id: string, lesson_section_id: string, body?: UpdateCourseLessonSectionRequestBody, options?: Options) => Promise<LessonSection>;
5286
5320
  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<Response>;
5321
+ reportCourseLessonProgress: (tenant_id: string, lesson_id: string, body?: ReportLessonProgressRequestBody, options?: Options) => Promise<AppLessonProgress>;
5288
5322
  listAppFaqs: (tenant_id: string, application_id: string, query?: {
5289
5323
  app_area_id?: string | null;
5290
5324
  }, options?: Options) => Promise<AppFaqView>;
package/dist/ParraAPI.js CHANGED
@@ -550,9 +550,9 @@ var ParraAPI = /** @class */ (function () {
550
550
  "content-type": "application/json",
551
551
  } }, options));
552
552
  };
553
- this.getUserInfo = function (options) {
553
+ this.getUserInfo = function (query, options) {
554
554
  if (options === void 0) { options = {}; }
555
- return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/user-info"), method: "get" }, options));
555
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/user-info"), method: "get", query: query }, options));
556
556
  };
557
557
  this.getParraAuthToken = function (options) {
558
558
  if (options === void 0) { options = {}; }
@@ -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
- }, raw: true }, options));
1109
+ } }, options));
1110
1110
  };
1111
1111
  this.listAppFaqs = function (tenant_id, application_id, query, options) {
1112
1112
  if (options === void 0) { options = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.530",
3
+ "version": "0.3.533",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",