jr-common-micro 1.1.5 → 1.1.7

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.
@@ -358,6 +358,10 @@ export interface ReferralDetails {
358
358
  uid: string;
359
359
  status: string;
360
360
  }
361
+ export interface StoreLastWatchedVideoRequest {
362
+ lesson_id: string;
363
+ course_id: string;
364
+ }
361
365
  export interface LastWatchedVideoResponse {
362
366
  status: ResponseStatus | undefined;
363
367
  data: string;
@@ -599,6 +599,18 @@ export declare class ReferralDetails extends Message<ReferralDetails> {
599
599
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReferralDetails;
600
600
  static equals(a: ReferralDetails | PlainMessage<ReferralDetails> | undefined, b: ReferralDetails | PlainMessage<ReferralDetails> | undefined): boolean;
601
601
  }
602
+ export declare class StoreLastWatchedVideoRequest extends Message<StoreLastWatchedVideoRequest> {
603
+ lessonId: string;
604
+ courseId: string;
605
+ constructor(data?: PartialMessage<StoreLastWatchedVideoRequest>);
606
+ static readonly runtime: typeof proto3;
607
+ static readonly typeName = "micro.v1.education.StoreLastWatchedVideoRequest";
608
+ static readonly fields: FieldList;
609
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreLastWatchedVideoRequest;
610
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreLastWatchedVideoRequest;
611
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreLastWatchedVideoRequest;
612
+ static equals(a: StoreLastWatchedVideoRequest | PlainMessage<StoreLastWatchedVideoRequest> | undefined, b: StoreLastWatchedVideoRequest | PlainMessage<StoreLastWatchedVideoRequest> | undefined): boolean;
613
+ }
602
614
  export declare class LastWatchedVideoResponse extends Message<LastWatchedVideoResponse> {
603
615
  status?: ResponseStatus;
604
616
  data: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LastWatchedVideoResponse = exports.ReferralDetails = exports.ReferralDetailsDto = exports.ReferralDetailsResponse = exports.ReferralUidResponse = exports.ReferralUidRequest = exports.ContentOrderUpdate = exports.BulkUpdateContentOrderRequest = exports.ContentListResponse = exports.ContentSingleResponse = exports.ContentListRequest = exports.ContentUpdateRequest = exports.ContentCreateRequest = exports.ContentDto = exports.LessonOrderUpdate = exports.BulkUpdateLessonOrderRequest = exports.LessonListResponse = exports.LessonSingleResponse = exports.LessonListRequest = exports.LessonUpdateRequest = exports.LessonCreateRequest = exports.CourseOrderUpdate = exports.BulkUpdateCourseOrderRequest = exports.CourseTreeResponse = exports.CourseListResponse = exports.CourseSingleResponse = exports.CourseTreeRequest = exports.CourseListRequest = exports.CourseUpdateRequest = exports.CourseCreateRequest = exports.EducationArchiveRequest = exports.EducationPublishRequest = exports.EducationListResponse = exports.EducationSingleResponse = exports.EducationListRequest = exports.EducationUpdateRequest = exports.EducationCreateRequest = exports.LessonDto = exports.CourseDto = exports.EducationDto = void 0;
3
+ exports.LastWatchedVideoResponse = exports.StoreLastWatchedVideoRequest = exports.ReferralDetails = exports.ReferralDetailsDto = exports.ReferralDetailsResponse = exports.ReferralUidResponse = exports.ReferralUidRequest = exports.ContentOrderUpdate = exports.BulkUpdateContentOrderRequest = exports.ContentListResponse = exports.ContentSingleResponse = exports.ContentListRequest = exports.ContentUpdateRequest = exports.ContentCreateRequest = exports.ContentDto = exports.LessonOrderUpdate = exports.BulkUpdateLessonOrderRequest = exports.LessonListResponse = exports.LessonSingleResponse = exports.LessonListRequest = exports.LessonUpdateRequest = exports.LessonCreateRequest = exports.CourseOrderUpdate = exports.BulkUpdateCourseOrderRequest = exports.CourseTreeResponse = exports.CourseListResponse = exports.CourseSingleResponse = exports.CourseTreeRequest = exports.CourseListRequest = exports.CourseUpdateRequest = exports.CourseCreateRequest = exports.EducationArchiveRequest = exports.EducationPublishRequest = exports.EducationListResponse = exports.EducationSingleResponse = exports.EducationListRequest = exports.EducationUpdateRequest = exports.EducationCreateRequest = exports.LessonDto = exports.CourseDto = exports.EducationDto = void 0;
4
4
  const protobuf_1 = require("@bufbuild/protobuf");
5
5
  const general_pb_js_1 = require("../general_pb.js");
6
6
  class EducationDto extends protobuf_1.Message {
@@ -1244,6 +1244,33 @@ class ReferralDetails extends protobuf_1.Message {
1244
1244
  }
1245
1245
  }
1246
1246
  exports.ReferralDetails = ReferralDetails;
1247
+ class StoreLastWatchedVideoRequest extends protobuf_1.Message {
1248
+ lessonId = "";
1249
+ courseId = "";
1250
+ constructor(data) {
1251
+ super();
1252
+ protobuf_1.proto3.util.initPartial(data, this);
1253
+ }
1254
+ static runtime = protobuf_1.proto3;
1255
+ static typeName = "micro.v1.education.StoreLastWatchedVideoRequest";
1256
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1257
+ { no: 1, name: "lesson_id", kind: "scalar", T: 9 },
1258
+ { no: 2, name: "course_id", kind: "scalar", T: 9 },
1259
+ ]);
1260
+ static fromBinary(bytes, options) {
1261
+ return new StoreLastWatchedVideoRequest().fromBinary(bytes, options);
1262
+ }
1263
+ static fromJson(jsonValue, options) {
1264
+ return new StoreLastWatchedVideoRequest().fromJson(jsonValue, options);
1265
+ }
1266
+ static fromJsonString(jsonString, options) {
1267
+ return new StoreLastWatchedVideoRequest().fromJsonString(jsonString, options);
1268
+ }
1269
+ static equals(a, b) {
1270
+ return protobuf_1.proto3.util.equals(StoreLastWatchedVideoRequest, a, b);
1271
+ }
1272
+ }
1273
+ exports.StoreLastWatchedVideoRequest = StoreLastWatchedVideoRequest;
1247
1274
  class LastWatchedVideoResponse extends protobuf_1.Message {
1248
1275
  status;
1249
1276
  data = "";
@@ -1,4 +1,4 @@
1
- import { BulkUpdateContentOrderRequest, BulkUpdateCourseOrderRequest, BulkUpdateLessonOrderRequest, ContentCreateRequest, ContentListRequest, ContentListResponse, ContentSingleResponse, ContentUpdateRequest, CourseCreateRequest, CourseListRequest, CourseListResponse, CourseSingleResponse, CourseTreeRequest, CourseTreeResponse, CourseUpdateRequest, EducationArchiveRequest, EducationCreateRequest, EducationListRequest, EducationListResponse, EducationPublishRequest, EducationSingleResponse, EducationUpdateRequest, LastWatchedVideoResponse, LessonCreateRequest, LessonListRequest, LessonListResponse, LessonSingleResponse, LessonUpdateRequest, ReferralDetailsResponse, ReferralUidRequest, ReferralUidResponse } from "./education_messages_pb.js";
1
+ import { BulkUpdateContentOrderRequest, BulkUpdateCourseOrderRequest, BulkUpdateLessonOrderRequest, ContentCreateRequest, ContentListRequest, ContentListResponse, ContentSingleResponse, ContentUpdateRequest, CourseCreateRequest, CourseListRequest, CourseListResponse, CourseSingleResponse, CourseTreeRequest, CourseTreeResponse, CourseUpdateRequest, EducationArchiveRequest, EducationCreateRequest, EducationListRequest, EducationListResponse, EducationPublishRequest, EducationSingleResponse, EducationUpdateRequest, LastWatchedVideoResponse, LessonCreateRequest, LessonListRequest, LessonListResponse, LessonSingleResponse, LessonUpdateRequest, ReferralDetailsResponse, ReferralUidRequest, ReferralUidResponse, StoreLastWatchedVideoRequest } from "./education_messages_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
4
4
  export declare const PEducationService: {
@@ -287,13 +287,13 @@ export declare const PLessonService: {
287
287
  };
288
288
  readonly getLastWatchedVideo: {
289
289
  readonly name: "getLastWatchedVideo";
290
- readonly I: typeof EmptyRequest;
290
+ readonly I: typeof ByIdRequest;
291
291
  readonly O: typeof LastWatchedVideoResponse;
292
292
  readonly kind: MethodKind.ServerStreaming;
293
293
  };
294
294
  readonly storeLastWatchedVideo: {
295
295
  readonly name: "storeLastWatchedVideo";
296
- readonly I: typeof ByIdRequest;
296
+ readonly I: typeof StoreLastWatchedVideoRequest;
297
297
  readonly O: typeof EmptyResponse;
298
298
  readonly kind: MethodKind.ServerStreaming;
299
299
  };
@@ -290,13 +290,13 @@ exports.PLessonService = {
290
290
  },
291
291
  getLastWatchedVideo: {
292
292
  name: "getLastWatchedVideo",
293
- I: general_pb_js_1.EmptyRequest,
293
+ I: general_pb_js_1.ByIdRequest,
294
294
  O: education_messages_pb_js_1.LastWatchedVideoResponse,
295
295
  kind: protobuf_1.MethodKind.ServerStreaming,
296
296
  },
297
297
  storeLastWatchedVideo: {
298
298
  name: "storeLastWatchedVideo",
299
- I: general_pb_js_1.ByIdRequest,
299
+ I: education_messages_pb_js_1.StoreLastWatchedVideoRequest,
300
300
  O: general_pb_js_1.EmptyResponse,
301
301
  kind: protobuf_1.MethodKind.ServerStreaming,
302
302
  },
@@ -1,7 +1,7 @@
1
1
  import type { Metadata } from "@grpc/grpc-js";
2
2
  import { Observable } from "rxjs";
3
3
  import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_nest";
4
- import { BulkUpdateContentOrderRequest, BulkUpdateCourseOrderRequest, BulkUpdateLessonOrderRequest, ContentCreateRequest, ContentListRequest, ContentListResponse, ContentSingleResponse, ContentUpdateRequest, CourseCreateRequest, CourseListRequest, CourseListResponse, CourseSingleResponse, CourseTreeRequest, CourseTreeResponse, CourseUpdateRequest, EducationArchiveRequest, EducationCreateRequest, EducationListRequest, EducationListResponse, EducationPublishRequest, EducationSingleResponse, EducationUpdateRequest, LastWatchedVideoResponse, LessonCreateRequest, LessonListRequest, LessonListResponse, LessonSingleResponse, LessonUpdateRequest, ReferralDetailsResponse, ReferralUidRequest, ReferralUidResponse } from "./education_messages_nest";
4
+ import { BulkUpdateContentOrderRequest, BulkUpdateCourseOrderRequest, BulkUpdateLessonOrderRequest, ContentCreateRequest, ContentListRequest, ContentListResponse, ContentSingleResponse, ContentUpdateRequest, CourseCreateRequest, CourseListRequest, CourseListResponse, CourseSingleResponse, CourseTreeRequest, CourseTreeResponse, CourseUpdateRequest, EducationArchiveRequest, EducationCreateRequest, EducationListRequest, EducationListResponse, EducationPublishRequest, EducationSingleResponse, EducationUpdateRequest, LastWatchedVideoResponse, LessonCreateRequest, LessonListRequest, LessonListResponse, LessonSingleResponse, LessonUpdateRequest, ReferralDetailsResponse, ReferralUidRequest, ReferralUidResponse, StoreLastWatchedVideoRequest } from "./education_messages_nest";
5
5
  export declare const protobufPackage = "micro.v1.education";
6
6
  export declare const MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
7
7
  export interface PEducationServiceClient {
@@ -127,14 +127,14 @@ export declare const P_COURSE_INSTRUCTOR_SERVICE_NAME = "PCourseInstructorServic
127
127
  export interface PLessonServiceClient {
128
128
  list(request: LessonListRequest, metadata?: Metadata): Observable<LessonListResponse>;
129
129
  read(request: ByIdRequest, metadata?: Metadata): Observable<LessonSingleResponse>;
130
- getLastWatchedVideo(request: EmptyRequest, metadata?: Metadata): Observable<LastWatchedVideoResponse>;
131
- storeLastWatchedVideo(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
130
+ getLastWatchedVideo(request: ByIdRequest, metadata?: Metadata): Observable<LastWatchedVideoResponse>;
131
+ storeLastWatchedVideo(request: StoreLastWatchedVideoRequest, metadata?: Metadata): Observable<EmptyResponse>;
132
132
  }
133
133
  export interface PLessonServiceController {
134
134
  list(request: LessonListRequest, metadata?: Metadata): Promise<LessonListResponse> | Observable<LessonListResponse> | LessonListResponse;
135
135
  read(request: ByIdRequest, metadata?: Metadata): Promise<LessonSingleResponse> | Observable<LessonSingleResponse> | LessonSingleResponse;
136
- getLastWatchedVideo(request: EmptyRequest, metadata?: Metadata): Observable<LastWatchedVideoResponse>;
137
- storeLastWatchedVideo(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
136
+ getLastWatchedVideo(request: ByIdRequest, metadata?: Metadata): Observable<LastWatchedVideoResponse>;
137
+ storeLastWatchedVideo(request: StoreLastWatchedVideoRequest, metadata?: Metadata): Observable<EmptyResponse>;
138
138
  }
139
139
  export declare function PLessonServiceControllerMethods(): (constructor: Function) => void;
140
140
  export declare const P_LESSON_SERVICE_NAME = "PLessonService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -293,6 +293,11 @@ message ReferralDetails {
293
293
  string status = 2;
294
294
  }
295
295
 
296
+ message StoreLastWatchedVideoRequest {
297
+ string lesson_id = 1;
298
+ string course_id = 2;
299
+ }
300
+
296
301
  message LastWatchedVideoResponse {
297
302
  ResponseStatus status = 1;
298
303
  string data = 2;
@@ -68,8 +68,8 @@ service PCourseInstructorService {
68
68
  service PLessonService {
69
69
  rpc list(LessonListRequest) returns (LessonListResponse);
70
70
  rpc read(ByIdRequest) returns (LessonSingleResponse);
71
- rpc getLastWatchedVideo(EmptyRequest) returns (stream LastWatchedVideoResponse);
72
- rpc storeLastWatchedVideo(ByIdRequest) returns (stream EmptyResponse);
71
+ rpc getLastWatchedVideo(ByIdRequest) returns (stream LastWatchedVideoResponse);
72
+ rpc storeLastWatchedVideo(StoreLastWatchedVideoRequest) returns (stream EmptyResponse);
73
73
  }
74
74
 
75
75
  service PContentService {