jr-common-micro 1.1.4 → 1.1.5
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 +13 -1
- package/dist/proto/micro/v1/education/services_connect.js +12 -0
- package/dist/proto/micro/v1/education/services_nest.d.ts +5 -1
- package/dist/proto/micro/v1/education/services_nest.js +1 -1
- package/package.json +5 -5
- package/proto/micro/v1/education/education_messages.proto +5 -0
- package/proto/micro/v1/education/services.proto +2 -0
|
@@ -358,4 +358,8 @@ export interface ReferralDetails {
|
|
|
358
358
|
uid: string;
|
|
359
359
|
status: string;
|
|
360
360
|
}
|
|
361
|
+
export interface LastWatchedVideoResponse {
|
|
362
|
+
status: ResponseStatus | undefined;
|
|
363
|
+
data: string;
|
|
364
|
+
}
|
|
361
365
|
export declare const MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
|
|
@@ -599,3 +599,15 @@ 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 LastWatchedVideoResponse extends Message<LastWatchedVideoResponse> {
|
|
603
|
+
status?: ResponseStatus;
|
|
604
|
+
data: string;
|
|
605
|
+
constructor(data?: PartialMessage<LastWatchedVideoResponse>);
|
|
606
|
+
static readonly runtime: typeof proto3;
|
|
607
|
+
static readonly typeName = "micro.v1.education.LastWatchedVideoResponse";
|
|
608
|
+
static readonly fields: FieldList;
|
|
609
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LastWatchedVideoResponse;
|
|
610
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LastWatchedVideoResponse;
|
|
611
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LastWatchedVideoResponse;
|
|
612
|
+
static equals(a: LastWatchedVideoResponse | PlainMessage<LastWatchedVideoResponse> | undefined, b: LastWatchedVideoResponse | PlainMessage<LastWatchedVideoResponse> | undefined): boolean;
|
|
613
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.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,3 +1244,30 @@ class ReferralDetails extends protobuf_1.Message {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
exports.ReferralDetails = ReferralDetails;
|
|
1247
|
+
class LastWatchedVideoResponse extends protobuf_1.Message {
|
|
1248
|
+
status;
|
|
1249
|
+
data = "";
|
|
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.LastWatchedVideoResponse";
|
|
1256
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1257
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1258
|
+
{ no: 2, name: "data", kind: "scalar", T: 9 },
|
|
1259
|
+
]);
|
|
1260
|
+
static fromBinary(bytes, options) {
|
|
1261
|
+
return new LastWatchedVideoResponse().fromBinary(bytes, options);
|
|
1262
|
+
}
|
|
1263
|
+
static fromJson(jsonValue, options) {
|
|
1264
|
+
return new LastWatchedVideoResponse().fromJson(jsonValue, options);
|
|
1265
|
+
}
|
|
1266
|
+
static fromJsonString(jsonString, options) {
|
|
1267
|
+
return new LastWatchedVideoResponse().fromJsonString(jsonString, options);
|
|
1268
|
+
}
|
|
1269
|
+
static equals(a, b) {
|
|
1270
|
+
return protobuf_1.proto3.util.equals(LastWatchedVideoResponse, a, b);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
exports.LastWatchedVideoResponse = LastWatchedVideoResponse;
|
|
@@ -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, 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 } 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: {
|
|
@@ -285,6 +285,18 @@ export declare const PLessonService: {
|
|
|
285
285
|
readonly O: typeof LessonSingleResponse;
|
|
286
286
|
readonly kind: MethodKind.Unary;
|
|
287
287
|
};
|
|
288
|
+
readonly getLastWatchedVideo: {
|
|
289
|
+
readonly name: "getLastWatchedVideo";
|
|
290
|
+
readonly I: typeof EmptyRequest;
|
|
291
|
+
readonly O: typeof LastWatchedVideoResponse;
|
|
292
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
293
|
+
};
|
|
294
|
+
readonly storeLastWatchedVideo: {
|
|
295
|
+
readonly name: "storeLastWatchedVideo";
|
|
296
|
+
readonly I: typeof ByIdRequest;
|
|
297
|
+
readonly O: typeof EmptyResponse;
|
|
298
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
299
|
+
};
|
|
288
300
|
};
|
|
289
301
|
};
|
|
290
302
|
export declare const PContentService: {
|
|
@@ -288,6 +288,18 @@ exports.PLessonService = {
|
|
|
288
288
|
O: education_messages_pb_js_1.LessonSingleResponse,
|
|
289
289
|
kind: protobuf_1.MethodKind.Unary,
|
|
290
290
|
},
|
|
291
|
+
getLastWatchedVideo: {
|
|
292
|
+
name: "getLastWatchedVideo",
|
|
293
|
+
I: general_pb_js_1.EmptyRequest,
|
|
294
|
+
O: education_messages_pb_js_1.LastWatchedVideoResponse,
|
|
295
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
296
|
+
},
|
|
297
|
+
storeLastWatchedVideo: {
|
|
298
|
+
name: "storeLastWatchedVideo",
|
|
299
|
+
I: general_pb_js_1.ByIdRequest,
|
|
300
|
+
O: general_pb_js_1.EmptyResponse,
|
|
301
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
302
|
+
},
|
|
291
303
|
}
|
|
292
304
|
};
|
|
293
305
|
exports.PContentService = {
|
|
@@ -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, 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 } 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,10 +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
132
|
}
|
|
131
133
|
export interface PLessonServiceController {
|
|
132
134
|
list(request: LessonListRequest, metadata?: Metadata): Promise<LessonListResponse> | Observable<LessonListResponse> | LessonListResponse;
|
|
133
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>;
|
|
134
138
|
}
|
|
135
139
|
export declare function PLessonServiceControllerMethods(): (constructor: Function) => void;
|
|
136
140
|
export declare const P_LESSON_SERVICE_NAME = "PLessonService";
|
|
@@ -123,7 +123,7 @@ function PCourseInstructorServiceControllerMethods() {
|
|
|
123
123
|
exports.P_COURSE_INSTRUCTOR_SERVICE_NAME = "PCourseInstructorService";
|
|
124
124
|
function PLessonServiceControllerMethods() {
|
|
125
125
|
return function (constructor) {
|
|
126
|
-
const grpcMethods = ["list", "read"];
|
|
126
|
+
const grpcMethods = ["list", "read", "getLastWatchedVideo", "storeLastWatchedVideo"];
|
|
127
127
|
for (const method of grpcMethods) {
|
|
128
128
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
129
129
|
(0, microservices_1.GrpcMethod)("PLessonService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jr-common-micro",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"private": false,
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
|
-
"files": [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"proto"
|
|
14
|
+
],
|
|
15
15
|
"packageManager": "yarn@1.22.22",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@bufbuild/buf": "1.31.0",
|
|
@@ -68,6 +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
73
|
}
|
|
72
74
|
|
|
73
75
|
service PContentService {
|