jr-common-micro 1.1.8 → 1.1.9
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 +31 -0
- package/dist/proto/micro/v1/education/education_messages_pb.d.ts +63 -0
- package/dist/proto/micro/v1/education/education_messages_pb.js +139 -1
- package/dist/proto/micro/v1/education/services_connect.d.ts +30 -1
- package/dist/proto/micro/v1/education/services_connect.js +30 -1
- package/dist/proto/micro/v1/education/services_nest.d.ts +15 -1
- package/dist/proto/micro/v1/education/services_nest.js +17 -1
- package/package.json +1 -1
- package/proto/micro/v1/education/education_messages.proto +35 -0
- package/proto/micro/v1/education/services.proto +7 -0
|
@@ -366,4 +366,35 @@ export interface LastWatchedVideoResponse {
|
|
|
366
366
|
status: ResponseStatus | undefined;
|
|
367
367
|
data: string;
|
|
368
368
|
}
|
|
369
|
+
export interface UserVipFormResponse {
|
|
370
|
+
status: ResponseStatus | undefined;
|
|
371
|
+
data: UserVipFormDto | undefined;
|
|
372
|
+
}
|
|
373
|
+
export interface VipPageStatusResponse {
|
|
374
|
+
status: ResponseStatus | undefined;
|
|
375
|
+
is_sent: boolean;
|
|
376
|
+
}
|
|
377
|
+
export interface UserVipFormDto {
|
|
378
|
+
email: string;
|
|
379
|
+
telegram: string;
|
|
380
|
+
youtube: string;
|
|
381
|
+
bybit_uid: string;
|
|
382
|
+
balance_usd: string;
|
|
383
|
+
balance_image: string;
|
|
384
|
+
job: string;
|
|
385
|
+
education: string;
|
|
386
|
+
gender: string;
|
|
387
|
+
is_sent: boolean;
|
|
388
|
+
}
|
|
389
|
+
export interface UserVipFormRequest {
|
|
390
|
+
email: string;
|
|
391
|
+
telegram: string;
|
|
392
|
+
youtube: string;
|
|
393
|
+
bybit_uid: string;
|
|
394
|
+
balance_usd: string;
|
|
395
|
+
balance_image: string;
|
|
396
|
+
job: string;
|
|
397
|
+
education: string;
|
|
398
|
+
gender: string;
|
|
399
|
+
}
|
|
369
400
|
export declare const MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
|
|
@@ -623,3 +623,66 @@ export declare class LastWatchedVideoResponse extends Message<LastWatchedVideoRe
|
|
|
623
623
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LastWatchedVideoResponse;
|
|
624
624
|
static equals(a: LastWatchedVideoResponse | PlainMessage<LastWatchedVideoResponse> | undefined, b: LastWatchedVideoResponse | PlainMessage<LastWatchedVideoResponse> | undefined): boolean;
|
|
625
625
|
}
|
|
626
|
+
export declare class UserVipFormResponse extends Message<UserVipFormResponse> {
|
|
627
|
+
status?: ResponseStatus;
|
|
628
|
+
data?: UserVipFormDto;
|
|
629
|
+
constructor(data?: PartialMessage<UserVipFormResponse>);
|
|
630
|
+
static readonly runtime: typeof proto3;
|
|
631
|
+
static readonly typeName = "micro.v1.education.UserVipFormResponse";
|
|
632
|
+
static readonly fields: FieldList;
|
|
633
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserVipFormResponse;
|
|
634
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserVipFormResponse;
|
|
635
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserVipFormResponse;
|
|
636
|
+
static equals(a: UserVipFormResponse | PlainMessage<UserVipFormResponse> | undefined, b: UserVipFormResponse | PlainMessage<UserVipFormResponse> | undefined): boolean;
|
|
637
|
+
}
|
|
638
|
+
export declare class VipPageStatusResponse extends Message<VipPageStatusResponse> {
|
|
639
|
+
status?: ResponseStatus;
|
|
640
|
+
isSent: boolean;
|
|
641
|
+
constructor(data?: PartialMessage<VipPageStatusResponse>);
|
|
642
|
+
static readonly runtime: typeof proto3;
|
|
643
|
+
static readonly typeName = "micro.v1.education.VipPageStatusResponse";
|
|
644
|
+
static readonly fields: FieldList;
|
|
645
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VipPageStatusResponse;
|
|
646
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VipPageStatusResponse;
|
|
647
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipPageStatusResponse;
|
|
648
|
+
static equals(a: VipPageStatusResponse | PlainMessage<VipPageStatusResponse> | undefined, b: VipPageStatusResponse | PlainMessage<VipPageStatusResponse> | undefined): boolean;
|
|
649
|
+
}
|
|
650
|
+
export declare class UserVipFormDto extends Message<UserVipFormDto> {
|
|
651
|
+
email: string;
|
|
652
|
+
telegram: string;
|
|
653
|
+
youtube: string;
|
|
654
|
+
bybitUid: string;
|
|
655
|
+
balanceUsd: string;
|
|
656
|
+
balanceImage: string;
|
|
657
|
+
job: string;
|
|
658
|
+
education: string;
|
|
659
|
+
gender: string;
|
|
660
|
+
isSent: boolean;
|
|
661
|
+
constructor(data?: PartialMessage<UserVipFormDto>);
|
|
662
|
+
static readonly runtime: typeof proto3;
|
|
663
|
+
static readonly typeName = "micro.v1.education.UserVipFormDto";
|
|
664
|
+
static readonly fields: FieldList;
|
|
665
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserVipFormDto;
|
|
666
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserVipFormDto;
|
|
667
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserVipFormDto;
|
|
668
|
+
static equals(a: UserVipFormDto | PlainMessage<UserVipFormDto> | undefined, b: UserVipFormDto | PlainMessage<UserVipFormDto> | undefined): boolean;
|
|
669
|
+
}
|
|
670
|
+
export declare class UserVipFormRequest extends Message<UserVipFormRequest> {
|
|
671
|
+
email: string;
|
|
672
|
+
telegram: string;
|
|
673
|
+
youtube: string;
|
|
674
|
+
bybitUid: string;
|
|
675
|
+
balanceUsd: string;
|
|
676
|
+
balanceImage: string;
|
|
677
|
+
job: string;
|
|
678
|
+
education: string;
|
|
679
|
+
gender: string;
|
|
680
|
+
constructor(data?: PartialMessage<UserVipFormRequest>);
|
|
681
|
+
static readonly runtime: typeof proto3;
|
|
682
|
+
static readonly typeName = "micro.v1.education.UserVipFormRequest";
|
|
683
|
+
static readonly fields: FieldList;
|
|
684
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserVipFormRequest;
|
|
685
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserVipFormRequest;
|
|
686
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserVipFormRequest;
|
|
687
|
+
static equals(a: UserVipFormRequest | PlainMessage<UserVipFormRequest> | undefined, b: UserVipFormRequest | PlainMessage<UserVipFormRequest> | undefined): boolean;
|
|
688
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.UserVipFormRequest = exports.UserVipFormDto = exports.VipPageStatusResponse = exports.UserVipFormResponse = 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 {
|
|
@@ -1298,3 +1298,141 @@ class LastWatchedVideoResponse extends protobuf_1.Message {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
exports.LastWatchedVideoResponse = LastWatchedVideoResponse;
|
|
1301
|
+
class UserVipFormResponse extends protobuf_1.Message {
|
|
1302
|
+
status;
|
|
1303
|
+
data;
|
|
1304
|
+
constructor(data) {
|
|
1305
|
+
super();
|
|
1306
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1307
|
+
}
|
|
1308
|
+
static runtime = protobuf_1.proto3;
|
|
1309
|
+
static typeName = "micro.v1.education.UserVipFormResponse";
|
|
1310
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1311
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1312
|
+
{ no: 2, name: "data", kind: "message", T: UserVipFormDto },
|
|
1313
|
+
]);
|
|
1314
|
+
static fromBinary(bytes, options) {
|
|
1315
|
+
return new UserVipFormResponse().fromBinary(bytes, options);
|
|
1316
|
+
}
|
|
1317
|
+
static fromJson(jsonValue, options) {
|
|
1318
|
+
return new UserVipFormResponse().fromJson(jsonValue, options);
|
|
1319
|
+
}
|
|
1320
|
+
static fromJsonString(jsonString, options) {
|
|
1321
|
+
return new UserVipFormResponse().fromJsonString(jsonString, options);
|
|
1322
|
+
}
|
|
1323
|
+
static equals(a, b) {
|
|
1324
|
+
return protobuf_1.proto3.util.equals(UserVipFormResponse, a, b);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
exports.UserVipFormResponse = UserVipFormResponse;
|
|
1328
|
+
class VipPageStatusResponse extends protobuf_1.Message {
|
|
1329
|
+
status;
|
|
1330
|
+
isSent = false;
|
|
1331
|
+
constructor(data) {
|
|
1332
|
+
super();
|
|
1333
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1334
|
+
}
|
|
1335
|
+
static runtime = protobuf_1.proto3;
|
|
1336
|
+
static typeName = "micro.v1.education.VipPageStatusResponse";
|
|
1337
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1338
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1339
|
+
{ no: 2, name: "is_sent", kind: "scalar", T: 8 },
|
|
1340
|
+
]);
|
|
1341
|
+
static fromBinary(bytes, options) {
|
|
1342
|
+
return new VipPageStatusResponse().fromBinary(bytes, options);
|
|
1343
|
+
}
|
|
1344
|
+
static fromJson(jsonValue, options) {
|
|
1345
|
+
return new VipPageStatusResponse().fromJson(jsonValue, options);
|
|
1346
|
+
}
|
|
1347
|
+
static fromJsonString(jsonString, options) {
|
|
1348
|
+
return new VipPageStatusResponse().fromJsonString(jsonString, options);
|
|
1349
|
+
}
|
|
1350
|
+
static equals(a, b) {
|
|
1351
|
+
return protobuf_1.proto3.util.equals(VipPageStatusResponse, a, b);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
exports.VipPageStatusResponse = VipPageStatusResponse;
|
|
1355
|
+
class UserVipFormDto extends protobuf_1.Message {
|
|
1356
|
+
email = "";
|
|
1357
|
+
telegram = "";
|
|
1358
|
+
youtube = "";
|
|
1359
|
+
bybitUid = "";
|
|
1360
|
+
balanceUsd = "";
|
|
1361
|
+
balanceImage = "";
|
|
1362
|
+
job = "";
|
|
1363
|
+
education = "";
|
|
1364
|
+
gender = "";
|
|
1365
|
+
isSent = false;
|
|
1366
|
+
constructor(data) {
|
|
1367
|
+
super();
|
|
1368
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1369
|
+
}
|
|
1370
|
+
static runtime = protobuf_1.proto3;
|
|
1371
|
+
static typeName = "micro.v1.education.UserVipFormDto";
|
|
1372
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1373
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 },
|
|
1374
|
+
{ no: 2, name: "telegram", kind: "scalar", T: 9 },
|
|
1375
|
+
{ no: 3, name: "youtube", kind: "scalar", T: 9 },
|
|
1376
|
+
{ no: 4, name: "bybit_uid", kind: "scalar", T: 9 },
|
|
1377
|
+
{ no: 5, name: "balance_usd", kind: "scalar", T: 9 },
|
|
1378
|
+
{ no: 6, name: "balance_image", kind: "scalar", T: 9 },
|
|
1379
|
+
{ no: 7, name: "job", kind: "scalar", T: 9 },
|
|
1380
|
+
{ no: 8, name: "education", kind: "scalar", T: 9 },
|
|
1381
|
+
{ no: 9, name: "gender", kind: "scalar", T: 9 },
|
|
1382
|
+
{ no: 10, name: "is_sent", kind: "scalar", T: 8 },
|
|
1383
|
+
]);
|
|
1384
|
+
static fromBinary(bytes, options) {
|
|
1385
|
+
return new UserVipFormDto().fromBinary(bytes, options);
|
|
1386
|
+
}
|
|
1387
|
+
static fromJson(jsonValue, options) {
|
|
1388
|
+
return new UserVipFormDto().fromJson(jsonValue, options);
|
|
1389
|
+
}
|
|
1390
|
+
static fromJsonString(jsonString, options) {
|
|
1391
|
+
return new UserVipFormDto().fromJsonString(jsonString, options);
|
|
1392
|
+
}
|
|
1393
|
+
static equals(a, b) {
|
|
1394
|
+
return protobuf_1.proto3.util.equals(UserVipFormDto, a, b);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
exports.UserVipFormDto = UserVipFormDto;
|
|
1398
|
+
class UserVipFormRequest extends protobuf_1.Message {
|
|
1399
|
+
email = "";
|
|
1400
|
+
telegram = "";
|
|
1401
|
+
youtube = "";
|
|
1402
|
+
bybitUid = "";
|
|
1403
|
+
balanceUsd = "";
|
|
1404
|
+
balanceImage = "";
|
|
1405
|
+
job = "";
|
|
1406
|
+
education = "";
|
|
1407
|
+
gender = "";
|
|
1408
|
+
constructor(data) {
|
|
1409
|
+
super();
|
|
1410
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1411
|
+
}
|
|
1412
|
+
static runtime = protobuf_1.proto3;
|
|
1413
|
+
static typeName = "micro.v1.education.UserVipFormRequest";
|
|
1414
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1415
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 },
|
|
1416
|
+
{ no: 2, name: "telegram", kind: "scalar", T: 9 },
|
|
1417
|
+
{ no: 3, name: "youtube", kind: "scalar", T: 9 },
|
|
1418
|
+
{ no: 4, name: "bybit_uid", kind: "scalar", T: 9 },
|
|
1419
|
+
{ no: 5, name: "balance_usd", kind: "scalar", T: 9 },
|
|
1420
|
+
{ no: 6, name: "balance_image", kind: "scalar", T: 9 },
|
|
1421
|
+
{ no: 7, name: "job", kind: "scalar", T: 9 },
|
|
1422
|
+
{ no: 8, name: "education", kind: "scalar", T: 9 },
|
|
1423
|
+
{ no: 9, name: "gender", kind: "scalar", T: 9 },
|
|
1424
|
+
]);
|
|
1425
|
+
static fromBinary(bytes, options) {
|
|
1426
|
+
return new UserVipFormRequest().fromBinary(bytes, options);
|
|
1427
|
+
}
|
|
1428
|
+
static fromJson(jsonValue, options) {
|
|
1429
|
+
return new UserVipFormRequest().fromJson(jsonValue, options);
|
|
1430
|
+
}
|
|
1431
|
+
static fromJsonString(jsonString, options) {
|
|
1432
|
+
return new UserVipFormRequest().fromJsonString(jsonString, options);
|
|
1433
|
+
}
|
|
1434
|
+
static equals(a, b) {
|
|
1435
|
+
return protobuf_1.proto3.util.equals(UserVipFormRequest, a, b);
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
exports.UserVipFormRequest = UserVipFormRequest;
|
|
@@ -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, StoreLastWatchedVideoRequest } 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, UserVipFormRequest, UserVipFormResponse, VipPageStatusResponse } 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: {
|
|
@@ -385,3 +385,32 @@ export declare const PMediaEducationService: {
|
|
|
385
385
|
};
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
|
+
export declare const PUserVipService: {
|
|
389
|
+
readonly typeName: "micro.v1.education.PUserVipService";
|
|
390
|
+
readonly methods: {
|
|
391
|
+
readonly getUserVipForm: {
|
|
392
|
+
readonly name: "getUserVipForm";
|
|
393
|
+
readonly I: typeof EmptyRequest;
|
|
394
|
+
readonly O: typeof UserVipFormResponse;
|
|
395
|
+
readonly kind: MethodKind.Unary;
|
|
396
|
+
};
|
|
397
|
+
readonly setUserVipForm: {
|
|
398
|
+
readonly name: "setUserVipForm";
|
|
399
|
+
readonly I: typeof UserVipFormRequest;
|
|
400
|
+
readonly O: typeof UserVipFormResponse;
|
|
401
|
+
readonly kind: MethodKind.Unary;
|
|
402
|
+
};
|
|
403
|
+
readonly updateUserVipForm: {
|
|
404
|
+
readonly name: "updateUserVipForm";
|
|
405
|
+
readonly I: typeof UserVipFormRequest;
|
|
406
|
+
readonly O: typeof UserVipFormResponse;
|
|
407
|
+
readonly kind: MethodKind.Unary;
|
|
408
|
+
};
|
|
409
|
+
readonly getPageStatus: {
|
|
410
|
+
readonly name: "getPageStatus";
|
|
411
|
+
readonly I: typeof EmptyRequest;
|
|
412
|
+
readonly O: typeof VipPageStatusResponse;
|
|
413
|
+
readonly kind: MethodKind.Unary;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PMediaEducationService = exports.PReferralUidService = exports.PContentAdminService = exports.PContentService = exports.PLessonService = exports.PCourseInstructorService = exports.PEducationInstructorService = exports.PLessonAdminService = exports.PCourseAdminService = exports.PEducationAdminService = exports.PCourseService = exports.PEducationService = void 0;
|
|
3
|
+
exports.PUserVipService = exports.PMediaEducationService = exports.PReferralUidService = exports.PContentAdminService = exports.PContentService = exports.PLessonService = exports.PCourseInstructorService = exports.PEducationInstructorService = exports.PLessonAdminService = exports.PCourseAdminService = exports.PEducationAdminService = exports.PCourseService = exports.PEducationService = void 0;
|
|
4
4
|
const education_messages_pb_js_1 = require("./education_messages_pb.js");
|
|
5
5
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
6
6
|
const general_pb_js_1 = require("../general_pb.js");
|
|
@@ -388,3 +388,32 @@ exports.PMediaEducationService = {
|
|
|
388
388
|
},
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
|
+
exports.PUserVipService = {
|
|
392
|
+
typeName: "micro.v1.education.PUserVipService",
|
|
393
|
+
methods: {
|
|
394
|
+
getUserVipForm: {
|
|
395
|
+
name: "getUserVipForm",
|
|
396
|
+
I: general_pb_js_1.EmptyRequest,
|
|
397
|
+
O: education_messages_pb_js_1.UserVipFormResponse,
|
|
398
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
399
|
+
},
|
|
400
|
+
setUserVipForm: {
|
|
401
|
+
name: "setUserVipForm",
|
|
402
|
+
I: education_messages_pb_js_1.UserVipFormRequest,
|
|
403
|
+
O: education_messages_pb_js_1.UserVipFormResponse,
|
|
404
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
405
|
+
},
|
|
406
|
+
updateUserVipForm: {
|
|
407
|
+
name: "updateUserVipForm",
|
|
408
|
+
I: education_messages_pb_js_1.UserVipFormRequest,
|
|
409
|
+
O: education_messages_pb_js_1.UserVipFormResponse,
|
|
410
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
411
|
+
},
|
|
412
|
+
getPageStatus: {
|
|
413
|
+
name: "getPageStatus",
|
|
414
|
+
I: general_pb_js_1.EmptyRequest,
|
|
415
|
+
O: education_messages_pb_js_1.VipPageStatusResponse,
|
|
416
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
417
|
+
},
|
|
418
|
+
}
|
|
419
|
+
};
|
|
@@ -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, StoreLastWatchedVideoRequest } 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, UserVipFormRequest, UserVipFormResponse, VipPageStatusResponse } 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 {
|
|
@@ -184,3 +184,17 @@ export interface PMediaEducationServiceController {
|
|
|
184
184
|
}
|
|
185
185
|
export declare function PMediaEducationServiceControllerMethods(): (constructor: Function) => void;
|
|
186
186
|
export declare const P_MEDIA_EDUCATION_SERVICE_NAME = "PMediaEducationService";
|
|
187
|
+
export interface PUserVipServiceClient {
|
|
188
|
+
getUserVipForm(request: EmptyRequest, metadata?: Metadata): Observable<UserVipFormResponse>;
|
|
189
|
+
setUserVipForm(request: UserVipFormRequest, metadata?: Metadata): Observable<UserVipFormResponse>;
|
|
190
|
+
updateUserVipForm(request: UserVipFormRequest, metadata?: Metadata): Observable<UserVipFormResponse>;
|
|
191
|
+
getPageStatus(request: EmptyRequest, metadata?: Metadata): Observable<VipPageStatusResponse>;
|
|
192
|
+
}
|
|
193
|
+
export interface PUserVipServiceController {
|
|
194
|
+
getUserVipForm(request: EmptyRequest, metadata?: Metadata): Promise<UserVipFormResponse> | Observable<UserVipFormResponse> | UserVipFormResponse;
|
|
195
|
+
setUserVipForm(request: UserVipFormRequest, metadata?: Metadata): Promise<UserVipFormResponse> | Observable<UserVipFormResponse> | UserVipFormResponse;
|
|
196
|
+
updateUserVipForm(request: UserVipFormRequest, metadata?: Metadata): Promise<UserVipFormResponse> | Observable<UserVipFormResponse> | UserVipFormResponse;
|
|
197
|
+
getPageStatus(request: EmptyRequest, metadata?: Metadata): Promise<VipPageStatusResponse> | Observable<VipPageStatusResponse> | VipPageStatusResponse;
|
|
198
|
+
}
|
|
199
|
+
export declare function PUserVipServiceControllerMethods(): (constructor: Function) => void;
|
|
200
|
+
export declare const P_USER_VIP_SERVICE_NAME = "PUserVipService";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.P_MEDIA_EDUCATION_SERVICE_NAME = exports.P_REFERRAL_UID_SERVICE_NAME = exports.P_CONTENT_ADMIN_SERVICE_NAME = exports.P_CONTENT_SERVICE_NAME = exports.P_LESSON_SERVICE_NAME = exports.P_COURSE_INSTRUCTOR_SERVICE_NAME = exports.P_EDUCATION_INSTRUCTOR_SERVICE_NAME = exports.P_LESSON_ADMIN_SERVICE_NAME = exports.P_COURSE_ADMIN_SERVICE_NAME = exports.P_EDUCATION_ADMIN_SERVICE_NAME = exports.P_COURSE_SERVICE_NAME = exports.P_EDUCATION_SERVICE_NAME = exports.MICRO_V1_EDUCATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
3
|
+
exports.P_USER_VIP_SERVICE_NAME = exports.P_MEDIA_EDUCATION_SERVICE_NAME = exports.P_REFERRAL_UID_SERVICE_NAME = exports.P_CONTENT_ADMIN_SERVICE_NAME = exports.P_CONTENT_SERVICE_NAME = exports.P_LESSON_SERVICE_NAME = exports.P_COURSE_INSTRUCTOR_SERVICE_NAME = exports.P_EDUCATION_INSTRUCTOR_SERVICE_NAME = exports.P_LESSON_ADMIN_SERVICE_NAME = exports.P_COURSE_ADMIN_SERVICE_NAME = exports.P_EDUCATION_ADMIN_SERVICE_NAME = exports.P_COURSE_SERVICE_NAME = exports.P_EDUCATION_SERVICE_NAME = exports.MICRO_V1_EDUCATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
4
4
|
exports.PEducationServiceControllerMethods = PEducationServiceControllerMethods;
|
|
5
5
|
exports.PCourseServiceControllerMethods = PCourseServiceControllerMethods;
|
|
6
6
|
exports.PEducationAdminServiceControllerMethods = PEducationAdminServiceControllerMethods;
|
|
@@ -13,6 +13,7 @@ exports.PContentServiceControllerMethods = PContentServiceControllerMethods;
|
|
|
13
13
|
exports.PContentAdminServiceControllerMethods = PContentAdminServiceControllerMethods;
|
|
14
14
|
exports.PReferralUidServiceControllerMethods = PReferralUidServiceControllerMethods;
|
|
15
15
|
exports.PMediaEducationServiceControllerMethods = PMediaEducationServiceControllerMethods;
|
|
16
|
+
exports.PUserVipServiceControllerMethods = PUserVipServiceControllerMethods;
|
|
16
17
|
const microservices_1 = require("@nestjs/microservices");
|
|
17
18
|
exports.protobufPackage = "micro.v1.education";
|
|
18
19
|
exports.MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
|
|
@@ -196,3 +197,18 @@ function PMediaEducationServiceControllerMethods() {
|
|
|
196
197
|
};
|
|
197
198
|
}
|
|
198
199
|
exports.P_MEDIA_EDUCATION_SERVICE_NAME = "PMediaEducationService";
|
|
200
|
+
function PUserVipServiceControllerMethods() {
|
|
201
|
+
return function (constructor) {
|
|
202
|
+
const grpcMethods = ["getUserVipForm", "setUserVipForm", "updateUserVipForm", "getPageStatus"];
|
|
203
|
+
for (const method of grpcMethods) {
|
|
204
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
205
|
+
(0, microservices_1.GrpcMethod)("PUserVipService", method)(constructor.prototype[method], method, descriptor);
|
|
206
|
+
}
|
|
207
|
+
const grpcStreamMethods = [];
|
|
208
|
+
for (const method of grpcStreamMethods) {
|
|
209
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
210
|
+
(0, microservices_1.GrpcStreamMethod)("PUserVipService", method)(constructor.prototype[method], method, descriptor);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
exports.P_USER_VIP_SERVICE_NAME = "PUserVipService";
|
package/package.json
CHANGED
|
@@ -301,4 +301,39 @@ message StoreLastWatchedVideoRequest {
|
|
|
301
301
|
message LastWatchedVideoResponse {
|
|
302
302
|
ResponseStatus status = 1;
|
|
303
303
|
string data = 2;
|
|
304
|
+
}
|
|
305
|
+
// USER VIP FORM
|
|
306
|
+
message UserVipFormResponse {
|
|
307
|
+
ResponseStatus status = 1;
|
|
308
|
+
UserVipFormDto data = 2;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
message VipPageStatusResponse {
|
|
312
|
+
ResponseStatus status = 1;
|
|
313
|
+
bool is_sent = 2;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
message UserVipFormDto {
|
|
317
|
+
string email = 1;
|
|
318
|
+
string telegram = 2;
|
|
319
|
+
string youtube = 3;
|
|
320
|
+
string bybit_uid = 4;
|
|
321
|
+
string balance_usd = 5;
|
|
322
|
+
string balance_image = 6;
|
|
323
|
+
string job = 7;
|
|
324
|
+
string education = 8;
|
|
325
|
+
string gender = 9;
|
|
326
|
+
bool is_sent = 10;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
message UserVipFormRequest {
|
|
330
|
+
string email = 1;
|
|
331
|
+
string telegram = 2;
|
|
332
|
+
string youtube = 3;
|
|
333
|
+
string bybit_uid = 4;
|
|
334
|
+
string balance_usd = 5;
|
|
335
|
+
string balance_image = 6;
|
|
336
|
+
string job = 7;
|
|
337
|
+
string education = 8;
|
|
338
|
+
string gender = 9;
|
|
304
339
|
}
|
|
@@ -93,4 +93,11 @@ service PReferralUidService {
|
|
|
93
93
|
|
|
94
94
|
service PMediaEducationService {
|
|
95
95
|
rpc storeExcelToDb(EmptyRequest) returns(stream EmptyResponse) {}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
service PUserVipService{
|
|
99
|
+
rpc getUserVipForm(EmptyRequest) returns (UserVipFormResponse);
|
|
100
|
+
rpc setUserVipForm(UserVipFormRequest) returns (UserVipFormResponse);
|
|
101
|
+
rpc updateUserVipForm(UserVipFormRequest) returns (UserVipFormResponse);
|
|
102
|
+
rpc getPageStatus(EmptyRequest) returns (VipPageStatusResponse);
|
|
96
103
|
}
|