jr-common-micro 1.1.13 → 1.1.14
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 +47 -0
- package/dist/proto/micro/v1/education/education_messages_pb.d.ts +87 -0
- package/dist/proto/micro/v1/education/education_messages_pb.js +190 -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 +52 -0
- package/proto/micro/v1/education/services.proto +7 -0
|
@@ -396,4 +396,51 @@ export interface UserVipFormRequest {
|
|
|
396
396
|
education: string;
|
|
397
397
|
gender: string;
|
|
398
398
|
}
|
|
399
|
+
export interface VipUserAdminDto {
|
|
400
|
+
id: string;
|
|
401
|
+
user_id: string;
|
|
402
|
+
email: string;
|
|
403
|
+
telegram: string;
|
|
404
|
+
youtube: string;
|
|
405
|
+
balance_usd: string;
|
|
406
|
+
balance_image: string;
|
|
407
|
+
job: string;
|
|
408
|
+
education: string;
|
|
409
|
+
gender: string;
|
|
410
|
+
telegram_joined?: boolean | undefined;
|
|
411
|
+
notes?: string | undefined;
|
|
412
|
+
created_at: string;
|
|
413
|
+
updated_at?: string | undefined;
|
|
414
|
+
}
|
|
415
|
+
export interface VipUserAdminListRequest {
|
|
416
|
+
page?: number | undefined;
|
|
417
|
+
per_page?: number | undefined;
|
|
418
|
+
search?: string | undefined;
|
|
419
|
+
email?: string | undefined;
|
|
420
|
+
telegram_joined?: boolean | undefined;
|
|
421
|
+
gender?: string | undefined;
|
|
422
|
+
job?: string | undefined;
|
|
423
|
+
}
|
|
424
|
+
export interface VipUserAdminListResponse {
|
|
425
|
+
status: ResponseStatus | undefined;
|
|
426
|
+
pagination: PaginationMetaResult | undefined;
|
|
427
|
+
data: VipUserAdminDto[];
|
|
428
|
+
}
|
|
429
|
+
export interface VipUserAdminSingleResponse {
|
|
430
|
+
status: ResponseStatus | undefined;
|
|
431
|
+
data: VipUserAdminDto | undefined;
|
|
432
|
+
}
|
|
433
|
+
export interface VipUserAdminUpdateRequest {
|
|
434
|
+
id: string;
|
|
435
|
+
email?: string | undefined;
|
|
436
|
+
telegram?: string | undefined;
|
|
437
|
+
youtube?: string | undefined;
|
|
438
|
+
balance_usd?: string | undefined;
|
|
439
|
+
balance_image?: string | undefined;
|
|
440
|
+
job?: string | undefined;
|
|
441
|
+
education?: string | undefined;
|
|
442
|
+
gender?: string | undefined;
|
|
443
|
+
telegram_joined?: boolean | undefined;
|
|
444
|
+
notes?: string | undefined;
|
|
445
|
+
}
|
|
399
446
|
export declare const MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
|
|
@@ -685,3 +685,90 @@ export declare class UserVipFormRequest extends Message<UserVipFormRequest> {
|
|
|
685
685
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserVipFormRequest;
|
|
686
686
|
static equals(a: UserVipFormRequest | PlainMessage<UserVipFormRequest> | undefined, b: UserVipFormRequest | PlainMessage<UserVipFormRequest> | undefined): boolean;
|
|
687
687
|
}
|
|
688
|
+
export declare class VipUserAdminDto extends Message<VipUserAdminDto> {
|
|
689
|
+
id: string;
|
|
690
|
+
userId: string;
|
|
691
|
+
email: string;
|
|
692
|
+
telegram: string;
|
|
693
|
+
youtube: string;
|
|
694
|
+
balanceUsd: string;
|
|
695
|
+
balanceImage: string;
|
|
696
|
+
job: string;
|
|
697
|
+
education: string;
|
|
698
|
+
gender: string;
|
|
699
|
+
telegramJoined?: boolean;
|
|
700
|
+
notes?: string;
|
|
701
|
+
createdAt: string;
|
|
702
|
+
updatedAt?: string;
|
|
703
|
+
constructor(data?: PartialMessage<VipUserAdminDto>);
|
|
704
|
+
static readonly runtime: typeof proto3;
|
|
705
|
+
static readonly typeName = "micro.v1.education.VipUserAdminDto";
|
|
706
|
+
static readonly fields: FieldList;
|
|
707
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VipUserAdminDto;
|
|
708
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VipUserAdminDto;
|
|
709
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipUserAdminDto;
|
|
710
|
+
static equals(a: VipUserAdminDto | PlainMessage<VipUserAdminDto> | undefined, b: VipUserAdminDto | PlainMessage<VipUserAdminDto> | undefined): boolean;
|
|
711
|
+
}
|
|
712
|
+
export declare class VipUserAdminListRequest extends Message<VipUserAdminListRequest> {
|
|
713
|
+
page?: number;
|
|
714
|
+
perPage?: number;
|
|
715
|
+
search?: string;
|
|
716
|
+
email?: string;
|
|
717
|
+
telegramJoined?: boolean;
|
|
718
|
+
gender?: string;
|
|
719
|
+
job?: string;
|
|
720
|
+
constructor(data?: PartialMessage<VipUserAdminListRequest>);
|
|
721
|
+
static readonly runtime: typeof proto3;
|
|
722
|
+
static readonly typeName = "micro.v1.education.VipUserAdminListRequest";
|
|
723
|
+
static readonly fields: FieldList;
|
|
724
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VipUserAdminListRequest;
|
|
725
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VipUserAdminListRequest;
|
|
726
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipUserAdminListRequest;
|
|
727
|
+
static equals(a: VipUserAdminListRequest | PlainMessage<VipUserAdminListRequest> | undefined, b: VipUserAdminListRequest | PlainMessage<VipUserAdminListRequest> | undefined): boolean;
|
|
728
|
+
}
|
|
729
|
+
export declare class VipUserAdminListResponse extends Message<VipUserAdminListResponse> {
|
|
730
|
+
status?: ResponseStatus;
|
|
731
|
+
pagination?: PaginationMetaResult;
|
|
732
|
+
data: VipUserAdminDto[];
|
|
733
|
+
constructor(data?: PartialMessage<VipUserAdminListResponse>);
|
|
734
|
+
static readonly runtime: typeof proto3;
|
|
735
|
+
static readonly typeName = "micro.v1.education.VipUserAdminListResponse";
|
|
736
|
+
static readonly fields: FieldList;
|
|
737
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VipUserAdminListResponse;
|
|
738
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VipUserAdminListResponse;
|
|
739
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipUserAdminListResponse;
|
|
740
|
+
static equals(a: VipUserAdminListResponse | PlainMessage<VipUserAdminListResponse> | undefined, b: VipUserAdminListResponse | PlainMessage<VipUserAdminListResponse> | undefined): boolean;
|
|
741
|
+
}
|
|
742
|
+
export declare class VipUserAdminSingleResponse extends Message<VipUserAdminSingleResponse> {
|
|
743
|
+
status?: ResponseStatus;
|
|
744
|
+
data?: VipUserAdminDto;
|
|
745
|
+
constructor(data?: PartialMessage<VipUserAdminSingleResponse>);
|
|
746
|
+
static readonly runtime: typeof proto3;
|
|
747
|
+
static readonly typeName = "micro.v1.education.VipUserAdminSingleResponse";
|
|
748
|
+
static readonly fields: FieldList;
|
|
749
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VipUserAdminSingleResponse;
|
|
750
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VipUserAdminSingleResponse;
|
|
751
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipUserAdminSingleResponse;
|
|
752
|
+
static equals(a: VipUserAdminSingleResponse | PlainMessage<VipUserAdminSingleResponse> | undefined, b: VipUserAdminSingleResponse | PlainMessage<VipUserAdminSingleResponse> | undefined): boolean;
|
|
753
|
+
}
|
|
754
|
+
export declare class VipUserAdminUpdateRequest extends Message<VipUserAdminUpdateRequest> {
|
|
755
|
+
id: string;
|
|
756
|
+
email?: string;
|
|
757
|
+
telegram?: string;
|
|
758
|
+
youtube?: string;
|
|
759
|
+
balanceUsd?: string;
|
|
760
|
+
balanceImage?: string;
|
|
761
|
+
job?: string;
|
|
762
|
+
education?: string;
|
|
763
|
+
gender?: string;
|
|
764
|
+
telegramJoined?: boolean;
|
|
765
|
+
notes?: string;
|
|
766
|
+
constructor(data?: PartialMessage<VipUserAdminUpdateRequest>);
|
|
767
|
+
static readonly runtime: typeof proto3;
|
|
768
|
+
static readonly typeName = "micro.v1.education.VipUserAdminUpdateRequest";
|
|
769
|
+
static readonly fields: FieldList;
|
|
770
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VipUserAdminUpdateRequest;
|
|
771
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VipUserAdminUpdateRequest;
|
|
772
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipUserAdminUpdateRequest;
|
|
773
|
+
static equals(a: VipUserAdminUpdateRequest | PlainMessage<VipUserAdminUpdateRequest> | undefined, b: VipUserAdminUpdateRequest | PlainMessage<VipUserAdminUpdateRequest> | undefined): boolean;
|
|
774
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.VipUserAdminUpdateRequest = exports.VipUserAdminSingleResponse = exports.VipUserAdminListResponse = exports.VipUserAdminListRequest = exports.VipUserAdminDto = 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 {
|
|
@@ -1434,3 +1434,192 @@ class UserVipFormRequest extends protobuf_1.Message {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
exports.UserVipFormRequest = UserVipFormRequest;
|
|
1437
|
+
class VipUserAdminDto extends protobuf_1.Message {
|
|
1438
|
+
id = "";
|
|
1439
|
+
userId = "";
|
|
1440
|
+
email = "";
|
|
1441
|
+
telegram = "";
|
|
1442
|
+
youtube = "";
|
|
1443
|
+
balanceUsd = "";
|
|
1444
|
+
balanceImage = "";
|
|
1445
|
+
job = "";
|
|
1446
|
+
education = "";
|
|
1447
|
+
gender = "";
|
|
1448
|
+
telegramJoined;
|
|
1449
|
+
notes;
|
|
1450
|
+
createdAt = "";
|
|
1451
|
+
updatedAt;
|
|
1452
|
+
constructor(data) {
|
|
1453
|
+
super();
|
|
1454
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1455
|
+
}
|
|
1456
|
+
static runtime = protobuf_1.proto3;
|
|
1457
|
+
static typeName = "micro.v1.education.VipUserAdminDto";
|
|
1458
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1459
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1460
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 },
|
|
1461
|
+
{ no: 3, name: "email", kind: "scalar", T: 9 },
|
|
1462
|
+
{ no: 4, name: "telegram", kind: "scalar", T: 9 },
|
|
1463
|
+
{ no: 5, name: "youtube", kind: "scalar", T: 9 },
|
|
1464
|
+
{ no: 6, name: "balance_usd", kind: "scalar", T: 9 },
|
|
1465
|
+
{ no: 7, name: "balance_image", kind: "scalar", T: 9 },
|
|
1466
|
+
{ no: 8, name: "job", kind: "scalar", T: 9 },
|
|
1467
|
+
{ no: 9, name: "education", kind: "scalar", T: 9 },
|
|
1468
|
+
{ no: 10, name: "gender", kind: "scalar", T: 9 },
|
|
1469
|
+
{ no: 11, name: "telegram_joined", kind: "scalar", T: 8, opt: true },
|
|
1470
|
+
{ no: 12, name: "notes", kind: "scalar", T: 9, opt: true },
|
|
1471
|
+
{ no: 13, name: "created_at", kind: "scalar", T: 9 },
|
|
1472
|
+
{ no: 14, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
1473
|
+
]);
|
|
1474
|
+
static fromBinary(bytes, options) {
|
|
1475
|
+
return new VipUserAdminDto().fromBinary(bytes, options);
|
|
1476
|
+
}
|
|
1477
|
+
static fromJson(jsonValue, options) {
|
|
1478
|
+
return new VipUserAdminDto().fromJson(jsonValue, options);
|
|
1479
|
+
}
|
|
1480
|
+
static fromJsonString(jsonString, options) {
|
|
1481
|
+
return new VipUserAdminDto().fromJsonString(jsonString, options);
|
|
1482
|
+
}
|
|
1483
|
+
static equals(a, b) {
|
|
1484
|
+
return protobuf_1.proto3.util.equals(VipUserAdminDto, a, b);
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
exports.VipUserAdminDto = VipUserAdminDto;
|
|
1488
|
+
class VipUserAdminListRequest extends protobuf_1.Message {
|
|
1489
|
+
page;
|
|
1490
|
+
perPage;
|
|
1491
|
+
search;
|
|
1492
|
+
email;
|
|
1493
|
+
telegramJoined;
|
|
1494
|
+
gender;
|
|
1495
|
+
job;
|
|
1496
|
+
constructor(data) {
|
|
1497
|
+
super();
|
|
1498
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1499
|
+
}
|
|
1500
|
+
static runtime = protobuf_1.proto3;
|
|
1501
|
+
static typeName = "micro.v1.education.VipUserAdminListRequest";
|
|
1502
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1503
|
+
{ no: 1, name: "page", kind: "scalar", T: 5, opt: true },
|
|
1504
|
+
{ no: 2, name: "per_page", kind: "scalar", T: 5, opt: true },
|
|
1505
|
+
{ no: 3, name: "search", kind: "scalar", T: 9, opt: true },
|
|
1506
|
+
{ no: 4, name: "email", kind: "scalar", T: 9, opt: true },
|
|
1507
|
+
{ no: 5, name: "telegram_joined", kind: "scalar", T: 8, opt: true },
|
|
1508
|
+
{ no: 6, name: "gender", kind: "scalar", T: 9, opt: true },
|
|
1509
|
+
{ no: 7, name: "job", kind: "scalar", T: 9, opt: true },
|
|
1510
|
+
]);
|
|
1511
|
+
static fromBinary(bytes, options) {
|
|
1512
|
+
return new VipUserAdminListRequest().fromBinary(bytes, options);
|
|
1513
|
+
}
|
|
1514
|
+
static fromJson(jsonValue, options) {
|
|
1515
|
+
return new VipUserAdminListRequest().fromJson(jsonValue, options);
|
|
1516
|
+
}
|
|
1517
|
+
static fromJsonString(jsonString, options) {
|
|
1518
|
+
return new VipUserAdminListRequest().fromJsonString(jsonString, options);
|
|
1519
|
+
}
|
|
1520
|
+
static equals(a, b) {
|
|
1521
|
+
return protobuf_1.proto3.util.equals(VipUserAdminListRequest, a, b);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
exports.VipUserAdminListRequest = VipUserAdminListRequest;
|
|
1525
|
+
class VipUserAdminListResponse extends protobuf_1.Message {
|
|
1526
|
+
status;
|
|
1527
|
+
pagination;
|
|
1528
|
+
data = [];
|
|
1529
|
+
constructor(data) {
|
|
1530
|
+
super();
|
|
1531
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1532
|
+
}
|
|
1533
|
+
static runtime = protobuf_1.proto3;
|
|
1534
|
+
static typeName = "micro.v1.education.VipUserAdminListResponse";
|
|
1535
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1536
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1537
|
+
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
1538
|
+
{ no: 3, name: "data", kind: "message", T: VipUserAdminDto, repeated: true },
|
|
1539
|
+
]);
|
|
1540
|
+
static fromBinary(bytes, options) {
|
|
1541
|
+
return new VipUserAdminListResponse().fromBinary(bytes, options);
|
|
1542
|
+
}
|
|
1543
|
+
static fromJson(jsonValue, options) {
|
|
1544
|
+
return new VipUserAdminListResponse().fromJson(jsonValue, options);
|
|
1545
|
+
}
|
|
1546
|
+
static fromJsonString(jsonString, options) {
|
|
1547
|
+
return new VipUserAdminListResponse().fromJsonString(jsonString, options);
|
|
1548
|
+
}
|
|
1549
|
+
static equals(a, b) {
|
|
1550
|
+
return protobuf_1.proto3.util.equals(VipUserAdminListResponse, a, b);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
exports.VipUserAdminListResponse = VipUserAdminListResponse;
|
|
1554
|
+
class VipUserAdminSingleResponse extends protobuf_1.Message {
|
|
1555
|
+
status;
|
|
1556
|
+
data;
|
|
1557
|
+
constructor(data) {
|
|
1558
|
+
super();
|
|
1559
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1560
|
+
}
|
|
1561
|
+
static runtime = protobuf_1.proto3;
|
|
1562
|
+
static typeName = "micro.v1.education.VipUserAdminSingleResponse";
|
|
1563
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1564
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1565
|
+
{ no: 2, name: "data", kind: "message", T: VipUserAdminDto },
|
|
1566
|
+
]);
|
|
1567
|
+
static fromBinary(bytes, options) {
|
|
1568
|
+
return new VipUserAdminSingleResponse().fromBinary(bytes, options);
|
|
1569
|
+
}
|
|
1570
|
+
static fromJson(jsonValue, options) {
|
|
1571
|
+
return new VipUserAdminSingleResponse().fromJson(jsonValue, options);
|
|
1572
|
+
}
|
|
1573
|
+
static fromJsonString(jsonString, options) {
|
|
1574
|
+
return new VipUserAdminSingleResponse().fromJsonString(jsonString, options);
|
|
1575
|
+
}
|
|
1576
|
+
static equals(a, b) {
|
|
1577
|
+
return protobuf_1.proto3.util.equals(VipUserAdminSingleResponse, a, b);
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
exports.VipUserAdminSingleResponse = VipUserAdminSingleResponse;
|
|
1581
|
+
class VipUserAdminUpdateRequest extends protobuf_1.Message {
|
|
1582
|
+
id = "";
|
|
1583
|
+
email;
|
|
1584
|
+
telegram;
|
|
1585
|
+
youtube;
|
|
1586
|
+
balanceUsd;
|
|
1587
|
+
balanceImage;
|
|
1588
|
+
job;
|
|
1589
|
+
education;
|
|
1590
|
+
gender;
|
|
1591
|
+
telegramJoined;
|
|
1592
|
+
notes;
|
|
1593
|
+
constructor(data) {
|
|
1594
|
+
super();
|
|
1595
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1596
|
+
}
|
|
1597
|
+
static runtime = protobuf_1.proto3;
|
|
1598
|
+
static typeName = "micro.v1.education.VipUserAdminUpdateRequest";
|
|
1599
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1600
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1601
|
+
{ no: 2, name: "email", kind: "scalar", T: 9, opt: true },
|
|
1602
|
+
{ no: 3, name: "telegram", kind: "scalar", T: 9, opt: true },
|
|
1603
|
+
{ no: 4, name: "youtube", kind: "scalar", T: 9, opt: true },
|
|
1604
|
+
{ no: 5, name: "balance_usd", kind: "scalar", T: 9, opt: true },
|
|
1605
|
+
{ no: 6, name: "balance_image", kind: "scalar", T: 9, opt: true },
|
|
1606
|
+
{ no: 7, name: "job", kind: "scalar", T: 9, opt: true },
|
|
1607
|
+
{ no: 8, name: "education", kind: "scalar", T: 9, opt: true },
|
|
1608
|
+
{ no: 9, name: "gender", kind: "scalar", T: 9, opt: true },
|
|
1609
|
+
{ no: 10, name: "telegram_joined", kind: "scalar", T: 8, opt: true },
|
|
1610
|
+
{ no: 11, name: "notes", kind: "scalar", T: 9, opt: true },
|
|
1611
|
+
]);
|
|
1612
|
+
static fromBinary(bytes, options) {
|
|
1613
|
+
return new VipUserAdminUpdateRequest().fromBinary(bytes, options);
|
|
1614
|
+
}
|
|
1615
|
+
static fromJson(jsonValue, options) {
|
|
1616
|
+
return new VipUserAdminUpdateRequest().fromJson(jsonValue, options);
|
|
1617
|
+
}
|
|
1618
|
+
static fromJsonString(jsonString, options) {
|
|
1619
|
+
return new VipUserAdminUpdateRequest().fromJsonString(jsonString, options);
|
|
1620
|
+
}
|
|
1621
|
+
static equals(a, b) {
|
|
1622
|
+
return protobuf_1.proto3.util.equals(VipUserAdminUpdateRequest, a, b);
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
exports.VipUserAdminUpdateRequest = VipUserAdminUpdateRequest;
|
|
@@ -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, UserVipFormRequest, UserVipFormResponse, VipPageStatusResponse } 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, VipUserAdminListRequest, VipUserAdminListResponse, VipUserAdminSingleResponse, VipUserAdminUpdateRequest } 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: {
|
|
@@ -408,6 +408,35 @@ export declare const PUserVipService: {
|
|
|
408
408
|
};
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
|
+
export declare const PVipAdminService: {
|
|
412
|
+
readonly typeName: "micro.v1.education.PVipAdminService";
|
|
413
|
+
readonly methods: {
|
|
414
|
+
readonly list: {
|
|
415
|
+
readonly name: "list";
|
|
416
|
+
readonly I: typeof VipUserAdminListRequest;
|
|
417
|
+
readonly O: typeof VipUserAdminListResponse;
|
|
418
|
+
readonly kind: MethodKind.Unary;
|
|
419
|
+
};
|
|
420
|
+
readonly read: {
|
|
421
|
+
readonly name: "read";
|
|
422
|
+
readonly I: typeof ByIdRequest;
|
|
423
|
+
readonly O: typeof VipUserAdminSingleResponse;
|
|
424
|
+
readonly kind: MethodKind.Unary;
|
|
425
|
+
};
|
|
426
|
+
readonly update: {
|
|
427
|
+
readonly name: "update";
|
|
428
|
+
readonly I: typeof VipUserAdminUpdateRequest;
|
|
429
|
+
readonly O: typeof VipUserAdminSingleResponse;
|
|
430
|
+
readonly kind: MethodKind.Unary;
|
|
431
|
+
};
|
|
432
|
+
readonly delete: {
|
|
433
|
+
readonly name: "delete";
|
|
434
|
+
readonly I: typeof ByIdRequest;
|
|
435
|
+
readonly O: typeof EmptyResponse;
|
|
436
|
+
readonly kind: MethodKind.Unary;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
411
440
|
export declare const PEducationUserDataService: {
|
|
412
441
|
readonly typeName: "micro.v1.education.PEducationUserDataService";
|
|
413
442
|
readonly methods: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PEducationUserDataService = 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;
|
|
3
|
+
exports.PEducationUserDataService = exports.PVipAdminService = 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");
|
|
@@ -411,6 +411,35 @@ exports.PUserVipService = {
|
|
|
411
411
|
},
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
+
exports.PVipAdminService = {
|
|
415
|
+
typeName: "micro.v1.education.PVipAdminService",
|
|
416
|
+
methods: {
|
|
417
|
+
list: {
|
|
418
|
+
name: "list",
|
|
419
|
+
I: education_messages_pb_js_1.VipUserAdminListRequest,
|
|
420
|
+
O: education_messages_pb_js_1.VipUserAdminListResponse,
|
|
421
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
422
|
+
},
|
|
423
|
+
read: {
|
|
424
|
+
name: "read",
|
|
425
|
+
I: general_pb_js_1.ByIdRequest,
|
|
426
|
+
O: education_messages_pb_js_1.VipUserAdminSingleResponse,
|
|
427
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
428
|
+
},
|
|
429
|
+
update: {
|
|
430
|
+
name: "update",
|
|
431
|
+
I: education_messages_pb_js_1.VipUserAdminUpdateRequest,
|
|
432
|
+
O: education_messages_pb_js_1.VipUserAdminSingleResponse,
|
|
433
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
434
|
+
},
|
|
435
|
+
delete: {
|
|
436
|
+
name: "delete",
|
|
437
|
+
I: general_pb_js_1.ByIdRequest,
|
|
438
|
+
O: general_pb_js_1.EmptyResponse,
|
|
439
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
440
|
+
},
|
|
441
|
+
}
|
|
442
|
+
};
|
|
414
443
|
exports.PEducationUserDataService = {
|
|
415
444
|
typeName: "micro.v1.education.PEducationUserDataService",
|
|
416
445
|
methods: {
|
|
@@ -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, UserVipFormRequest, UserVipFormResponse, VipPageStatusResponse } 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, VipUserAdminListRequest, VipUserAdminListResponse, VipUserAdminSingleResponse, VipUserAdminUpdateRequest } 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 {
|
|
@@ -196,6 +196,20 @@ export interface PUserVipServiceController {
|
|
|
196
196
|
}
|
|
197
197
|
export declare function PUserVipServiceControllerMethods(): (constructor: Function) => void;
|
|
198
198
|
export declare const P_USER_VIP_SERVICE_NAME = "PUserVipService";
|
|
199
|
+
export interface PVipAdminServiceClient {
|
|
200
|
+
list(request: VipUserAdminListRequest, metadata?: Metadata): Observable<VipUserAdminListResponse>;
|
|
201
|
+
read(request: ByIdRequest, metadata?: Metadata): Observable<VipUserAdminSingleResponse>;
|
|
202
|
+
update(request: VipUserAdminUpdateRequest, metadata?: Metadata): Observable<VipUserAdminSingleResponse>;
|
|
203
|
+
delete(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
204
|
+
}
|
|
205
|
+
export interface PVipAdminServiceController {
|
|
206
|
+
list(request: VipUserAdminListRequest, metadata?: Metadata): Promise<VipUserAdminListResponse> | Observable<VipUserAdminListResponse> | VipUserAdminListResponse;
|
|
207
|
+
read(request: ByIdRequest, metadata?: Metadata): Promise<VipUserAdminSingleResponse> | Observable<VipUserAdminSingleResponse> | VipUserAdminSingleResponse;
|
|
208
|
+
update(request: VipUserAdminUpdateRequest, metadata?: Metadata): Promise<VipUserAdminSingleResponse> | Observable<VipUserAdminSingleResponse> | VipUserAdminSingleResponse;
|
|
209
|
+
delete(request: ByIdRequest, metadata?: Metadata): Promise<EmptyResponse> | Observable<EmptyResponse> | EmptyResponse;
|
|
210
|
+
}
|
|
211
|
+
export declare function PVipAdminServiceControllerMethods(): (constructor: Function) => void;
|
|
212
|
+
export declare const P_VIP_ADMIN_SERVICE_NAME = "PVipAdminService";
|
|
199
213
|
export interface PEducationUserDataServiceClient {
|
|
200
214
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
201
215
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.P_EDUCATION_USER_DATA_SERVICE_NAME = 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;
|
|
3
|
+
exports.P_EDUCATION_USER_DATA_SERVICE_NAME = exports.P_VIP_ADMIN_SERVICE_NAME = 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;
|
|
@@ -14,6 +14,7 @@ exports.PContentAdminServiceControllerMethods = PContentAdminServiceControllerMe
|
|
|
14
14
|
exports.PReferralUidServiceControllerMethods = PReferralUidServiceControllerMethods;
|
|
15
15
|
exports.PMediaEducationServiceControllerMethods = PMediaEducationServiceControllerMethods;
|
|
16
16
|
exports.PUserVipServiceControllerMethods = PUserVipServiceControllerMethods;
|
|
17
|
+
exports.PVipAdminServiceControllerMethods = PVipAdminServiceControllerMethods;
|
|
17
18
|
exports.PEducationUserDataServiceControllerMethods = PEducationUserDataServiceControllerMethods;
|
|
18
19
|
const microservices_1 = require("@nestjs/microservices");
|
|
19
20
|
exports.protobufPackage = "micro.v1.education";
|
|
@@ -213,6 +214,21 @@ function PUserVipServiceControllerMethods() {
|
|
|
213
214
|
};
|
|
214
215
|
}
|
|
215
216
|
exports.P_USER_VIP_SERVICE_NAME = "PUserVipService";
|
|
217
|
+
function PVipAdminServiceControllerMethods() {
|
|
218
|
+
return function (constructor) {
|
|
219
|
+
const grpcMethods = ["list", "read", "update", "delete"];
|
|
220
|
+
for (const method of grpcMethods) {
|
|
221
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
222
|
+
(0, microservices_1.GrpcMethod)("PVipAdminService", method)(constructor.prototype[method], method, descriptor);
|
|
223
|
+
}
|
|
224
|
+
const grpcStreamMethods = [];
|
|
225
|
+
for (const method of grpcStreamMethods) {
|
|
226
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
227
|
+
(0, microservices_1.GrpcStreamMethod)("PVipAdminService", method)(constructor.prototype[method], method, descriptor);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
exports.P_VIP_ADMIN_SERVICE_NAME = "PVipAdminService";
|
|
216
232
|
function PEducationUserDataServiceControllerMethods() {
|
|
217
233
|
return function (constructor) {
|
|
218
234
|
const grpcMethods = ["removeUserData"];
|
package/package.json
CHANGED
|
@@ -335,4 +335,56 @@ message UserVipFormRequest {
|
|
|
335
335
|
string job = 7;
|
|
336
336
|
string education = 8;
|
|
337
337
|
string gender = 9;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
message VipUserAdminDto {
|
|
341
|
+
string id = 1;
|
|
342
|
+
string user_id = 2;
|
|
343
|
+
string email = 3;
|
|
344
|
+
string telegram = 4;
|
|
345
|
+
string youtube = 5;
|
|
346
|
+
string balance_usd = 6;
|
|
347
|
+
string balance_image = 7;
|
|
348
|
+
string job = 8;
|
|
349
|
+
string education = 9;
|
|
350
|
+
string gender = 10;
|
|
351
|
+
optional bool telegram_joined = 11;
|
|
352
|
+
optional string notes = 12;
|
|
353
|
+
string created_at = 13;
|
|
354
|
+
optional string updated_at = 14;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
message VipUserAdminListRequest {
|
|
358
|
+
optional int32 page = 1;
|
|
359
|
+
optional int32 per_page = 2;
|
|
360
|
+
optional string search = 3;
|
|
361
|
+
optional string email = 4;
|
|
362
|
+
optional bool telegram_joined = 5;
|
|
363
|
+
optional string gender = 6;
|
|
364
|
+
optional string job = 7;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
message VipUserAdminListResponse {
|
|
368
|
+
ResponseStatus status = 1;
|
|
369
|
+
PaginationMetaResult pagination = 2;
|
|
370
|
+
repeated VipUserAdminDto data = 3;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
message VipUserAdminSingleResponse {
|
|
374
|
+
ResponseStatus status = 1;
|
|
375
|
+
VipUserAdminDto data = 2;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
message VipUserAdminUpdateRequest {
|
|
379
|
+
string id = 1;
|
|
380
|
+
optional string email = 2;
|
|
381
|
+
optional string telegram = 3;
|
|
382
|
+
optional string youtube = 4;
|
|
383
|
+
optional string balance_usd = 5;
|
|
384
|
+
optional string balance_image = 6;
|
|
385
|
+
optional string job = 7;
|
|
386
|
+
optional string education = 8;
|
|
387
|
+
optional string gender = 9;
|
|
388
|
+
optional bool telegram_joined = 10;
|
|
389
|
+
optional string notes = 11;
|
|
338
390
|
}
|
|
@@ -101,6 +101,13 @@ service PUserVipService{
|
|
|
101
101
|
rpc getPageStatus(EmptyRequest) returns (VipPageStatusResponse);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
service PVipAdminService {
|
|
105
|
+
rpc list(VipUserAdminListRequest) returns (VipUserAdminListResponse);
|
|
106
|
+
rpc read(ByIdRequest) returns (VipUserAdminSingleResponse);
|
|
107
|
+
rpc update(VipUserAdminUpdateRequest) returns (VipUserAdminSingleResponse);
|
|
108
|
+
rpc delete(ByIdRequest) returns (EmptyResponse);
|
|
109
|
+
}
|
|
110
|
+
|
|
104
111
|
service PEducationUserDataService {
|
|
105
112
|
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
106
113
|
}
|