jr-common-micro 1.1.6 → 1.1.8
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/proto/micro/v1/education/education_messages_nest.d.ts +4 -0
- package/dist/proto/micro/v1/education/education_messages_pb.d.ts +12 -0
- package/dist/proto/micro/v1/education/education_messages_pb.js +28 -1
- package/dist/proto/micro/v1/education/services_connect.d.ts +3 -3
- package/dist/proto/micro/v1/education/services_connect.js +2 -2
- package/dist/proto/micro/v1/education/services_nest.d.ts +5 -5
- package/dist/proto/micro/v1/media/media_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/media/media_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/media/media_messages_pb.js +2 -0
- package/package.json +1 -1
- package/proto/micro/v1/education/education_messages.proto +5 -0
- package/proto/micro/v1/education/services.proto +2 -2
- package/proto/micro/v1/media/media_messages.proto +1 -0
|
@@ -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
|
|
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
|
|
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.
|
|
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:
|
|
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:
|
|
131
|
-
storeLastWatchedVideo(request:
|
|
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:
|
|
137
|
-
storeLastWatchedVideo(request:
|
|
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";
|
|
@@ -121,6 +121,7 @@ export declare class GetMediaUrlResponse extends Message<GetMediaUrlResponse> {
|
|
|
121
121
|
export declare class GetMediaUrlRequest extends Message<GetMediaUrlRequest> {
|
|
122
122
|
fileUuid: string;
|
|
123
123
|
clientIp: string;
|
|
124
|
+
mediaHash: string;
|
|
124
125
|
constructor(data?: PartialMessage<GetMediaUrlRequest>);
|
|
125
126
|
static readonly runtime: typeof proto3;
|
|
126
127
|
static readonly typeName = "micro.v1.media.GetMediaUrlRequest";
|
|
@@ -263,6 +263,7 @@ exports.GetMediaUrlResponse = GetMediaUrlResponse;
|
|
|
263
263
|
class GetMediaUrlRequest extends protobuf_1.Message {
|
|
264
264
|
fileUuid = "";
|
|
265
265
|
clientIp = "";
|
|
266
|
+
mediaHash = "";
|
|
266
267
|
constructor(data) {
|
|
267
268
|
super();
|
|
268
269
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -272,6 +273,7 @@ class GetMediaUrlRequest extends protobuf_1.Message {
|
|
|
272
273
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
273
274
|
{ no: 1, name: "file_uuid", kind: "scalar", T: 9 },
|
|
274
275
|
{ no: 2, name: "client_ip", kind: "scalar", T: 9 },
|
|
276
|
+
{ no: 3, name: "media_hash", kind: "scalar", T: 9 },
|
|
275
277
|
]);
|
|
276
278
|
static fromBinary(bytes, options) {
|
|
277
279
|
return new GetMediaUrlRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -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(
|
|
72
|
-
rpc storeLastWatchedVideo(
|
|
71
|
+
rpc getLastWatchedVideo(ByIdRequest) returns (stream LastWatchedVideoResponse);
|
|
72
|
+
rpc storeLastWatchedVideo(StoreLastWatchedVideoRequest) returns (stream EmptyResponse);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
service PContentService {
|