jr-common-micro 1.1.15 → 1.1.17
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 +59 -0
- package/dist/proto/micro/v1/education/education_messages_pb.d.ts +147 -0
- package/dist/proto/micro/v1/education/education_messages_pb.js +328 -0
- package/dist/proto/micro/v1/education/services_connect.d.ts +48 -1
- package/dist/proto/micro/v1/education/services_connect.js +48 -1
- package/dist/proto/micro/v1/education/services_nest.d.ts +21 -1
- package/dist/proto/micro/v1/education/services_nest.js +25 -1
- package/package.json +1 -1
- package/proto/micro/v1/education/education_messages.proto +70 -0
- package/proto/micro/v1/education/services.proto +11 -0
|
@@ -446,4 +446,63 @@ export interface VipUserAdminUpdateRequest {
|
|
|
446
446
|
telegram_joined?: boolean | undefined;
|
|
447
447
|
notes?: string | undefined;
|
|
448
448
|
}
|
|
449
|
+
export interface UserRefsByUserIdRequest {
|
|
450
|
+
user_id: number;
|
|
451
|
+
}
|
|
452
|
+
export interface UserRefsByUserIdResponse {
|
|
453
|
+
status: ResponseStatus | undefined;
|
|
454
|
+
data: UserRefAdminDto[];
|
|
455
|
+
}
|
|
456
|
+
export interface UserRefUpdateByUserIdRequest {
|
|
457
|
+
user_id: number;
|
|
458
|
+
exchange_name: string;
|
|
459
|
+
uid?: string | undefined;
|
|
460
|
+
status?: string | undefined;
|
|
461
|
+
}
|
|
462
|
+
export interface UserRefUpdateByUserIdResponse {
|
|
463
|
+
status: ResponseStatus | undefined;
|
|
464
|
+
data?: UserRefAdminDto | undefined;
|
|
465
|
+
}
|
|
466
|
+
export interface UserRefAdminDto {
|
|
467
|
+
id: string;
|
|
468
|
+
user_id: string;
|
|
469
|
+
exchange_name: string;
|
|
470
|
+
uid: string;
|
|
471
|
+
status: string;
|
|
472
|
+
created_at: string;
|
|
473
|
+
updated_at?: string | undefined;
|
|
474
|
+
}
|
|
475
|
+
export interface UserRefAdminListRequest {
|
|
476
|
+
page?: number | undefined;
|
|
477
|
+
per_page?: number | undefined;
|
|
478
|
+
search?: string | undefined;
|
|
479
|
+
user_id?: number | undefined;
|
|
480
|
+
exchange_name?: string | undefined;
|
|
481
|
+
status?: string | undefined;
|
|
482
|
+
uid?: string | undefined;
|
|
483
|
+
}
|
|
484
|
+
export interface UserRefAdminListResponse {
|
|
485
|
+
status: ResponseStatus | undefined;
|
|
486
|
+
pagination: PaginationMetaResult | undefined;
|
|
487
|
+
data: UserRefAdminDto[];
|
|
488
|
+
}
|
|
489
|
+
export interface UserRefAdminSingleResponse {
|
|
490
|
+
status: ResponseStatus | undefined;
|
|
491
|
+
data: UserRefAdminDto | undefined;
|
|
492
|
+
}
|
|
493
|
+
export interface UserRefAdminCreateRequest {
|
|
494
|
+
user_id: number;
|
|
495
|
+
exchange_name: string;
|
|
496
|
+
uid: string;
|
|
497
|
+
status?: string | undefined;
|
|
498
|
+
}
|
|
499
|
+
export interface UserRefAdminUpdateRequest {
|
|
500
|
+
id: string;
|
|
501
|
+
uid?: string | undefined;
|
|
502
|
+
status?: string | undefined;
|
|
503
|
+
exchange_name?: string | undefined;
|
|
504
|
+
}
|
|
505
|
+
export interface UserRefAdminDeleteRequest {
|
|
506
|
+
id: string;
|
|
507
|
+
}
|
|
449
508
|
export declare const MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
|
|
@@ -775,3 +775,150 @@ export declare class VipUserAdminUpdateRequest extends Message<VipUserAdminUpdat
|
|
|
775
775
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VipUserAdminUpdateRequest;
|
|
776
776
|
static equals(a: VipUserAdminUpdateRequest | PlainMessage<VipUserAdminUpdateRequest> | undefined, b: VipUserAdminUpdateRequest | PlainMessage<VipUserAdminUpdateRequest> | undefined): boolean;
|
|
777
777
|
}
|
|
778
|
+
export declare class UserRefsByUserIdRequest extends Message<UserRefsByUserIdRequest> {
|
|
779
|
+
userId: number;
|
|
780
|
+
constructor(data?: PartialMessage<UserRefsByUserIdRequest>);
|
|
781
|
+
static readonly runtime: typeof proto3;
|
|
782
|
+
static readonly typeName = "micro.v1.education.UserRefsByUserIdRequest";
|
|
783
|
+
static readonly fields: FieldList;
|
|
784
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefsByUserIdRequest;
|
|
785
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefsByUserIdRequest;
|
|
786
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefsByUserIdRequest;
|
|
787
|
+
static equals(a: UserRefsByUserIdRequest | PlainMessage<UserRefsByUserIdRequest> | undefined, b: UserRefsByUserIdRequest | PlainMessage<UserRefsByUserIdRequest> | undefined): boolean;
|
|
788
|
+
}
|
|
789
|
+
export declare class UserRefsByUserIdResponse extends Message<UserRefsByUserIdResponse> {
|
|
790
|
+
status?: ResponseStatus;
|
|
791
|
+
data: UserRefAdminDto[];
|
|
792
|
+
constructor(data?: PartialMessage<UserRefsByUserIdResponse>);
|
|
793
|
+
static readonly runtime: typeof proto3;
|
|
794
|
+
static readonly typeName = "micro.v1.education.UserRefsByUserIdResponse";
|
|
795
|
+
static readonly fields: FieldList;
|
|
796
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefsByUserIdResponse;
|
|
797
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefsByUserIdResponse;
|
|
798
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefsByUserIdResponse;
|
|
799
|
+
static equals(a: UserRefsByUserIdResponse | PlainMessage<UserRefsByUserIdResponse> | undefined, b: UserRefsByUserIdResponse | PlainMessage<UserRefsByUserIdResponse> | undefined): boolean;
|
|
800
|
+
}
|
|
801
|
+
export declare class UserRefUpdateByUserIdRequest extends Message<UserRefUpdateByUserIdRequest> {
|
|
802
|
+
userId: number;
|
|
803
|
+
exchangeName: string;
|
|
804
|
+
uid?: string;
|
|
805
|
+
status?: string;
|
|
806
|
+
constructor(data?: PartialMessage<UserRefUpdateByUserIdRequest>);
|
|
807
|
+
static readonly runtime: typeof proto3;
|
|
808
|
+
static readonly typeName = "micro.v1.education.UserRefUpdateByUserIdRequest";
|
|
809
|
+
static readonly fields: FieldList;
|
|
810
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefUpdateByUserIdRequest;
|
|
811
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefUpdateByUserIdRequest;
|
|
812
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefUpdateByUserIdRequest;
|
|
813
|
+
static equals(a: UserRefUpdateByUserIdRequest | PlainMessage<UserRefUpdateByUserIdRequest> | undefined, b: UserRefUpdateByUserIdRequest | PlainMessage<UserRefUpdateByUserIdRequest> | undefined): boolean;
|
|
814
|
+
}
|
|
815
|
+
export declare class UserRefUpdateByUserIdResponse extends Message<UserRefUpdateByUserIdResponse> {
|
|
816
|
+
status?: ResponseStatus;
|
|
817
|
+
data?: UserRefAdminDto;
|
|
818
|
+
constructor(data?: PartialMessage<UserRefUpdateByUserIdResponse>);
|
|
819
|
+
static readonly runtime: typeof proto3;
|
|
820
|
+
static readonly typeName = "micro.v1.education.UserRefUpdateByUserIdResponse";
|
|
821
|
+
static readonly fields: FieldList;
|
|
822
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefUpdateByUserIdResponse;
|
|
823
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefUpdateByUserIdResponse;
|
|
824
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefUpdateByUserIdResponse;
|
|
825
|
+
static equals(a: UserRefUpdateByUserIdResponse | PlainMessage<UserRefUpdateByUserIdResponse> | undefined, b: UserRefUpdateByUserIdResponse | PlainMessage<UserRefUpdateByUserIdResponse> | undefined): boolean;
|
|
826
|
+
}
|
|
827
|
+
export declare class UserRefAdminDto extends Message<UserRefAdminDto> {
|
|
828
|
+
id: string;
|
|
829
|
+
userId: string;
|
|
830
|
+
exchangeName: string;
|
|
831
|
+
uid: string;
|
|
832
|
+
status: string;
|
|
833
|
+
createdAt: string;
|
|
834
|
+
updatedAt?: string;
|
|
835
|
+
constructor(data?: PartialMessage<UserRefAdminDto>);
|
|
836
|
+
static readonly runtime: typeof proto3;
|
|
837
|
+
static readonly typeName = "micro.v1.education.UserRefAdminDto";
|
|
838
|
+
static readonly fields: FieldList;
|
|
839
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminDto;
|
|
840
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminDto;
|
|
841
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminDto;
|
|
842
|
+
static equals(a: UserRefAdminDto | PlainMessage<UserRefAdminDto> | undefined, b: UserRefAdminDto | PlainMessage<UserRefAdminDto> | undefined): boolean;
|
|
843
|
+
}
|
|
844
|
+
export declare class UserRefAdminListRequest extends Message<UserRefAdminListRequest> {
|
|
845
|
+
page?: number;
|
|
846
|
+
perPage?: number;
|
|
847
|
+
search?: string;
|
|
848
|
+
userId?: number;
|
|
849
|
+
exchangeName?: string;
|
|
850
|
+
status?: string;
|
|
851
|
+
uid?: string;
|
|
852
|
+
constructor(data?: PartialMessage<UserRefAdminListRequest>);
|
|
853
|
+
static readonly runtime: typeof proto3;
|
|
854
|
+
static readonly typeName = "micro.v1.education.UserRefAdminListRequest";
|
|
855
|
+
static readonly fields: FieldList;
|
|
856
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminListRequest;
|
|
857
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminListRequest;
|
|
858
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminListRequest;
|
|
859
|
+
static equals(a: UserRefAdminListRequest | PlainMessage<UserRefAdminListRequest> | undefined, b: UserRefAdminListRequest | PlainMessage<UserRefAdminListRequest> | undefined): boolean;
|
|
860
|
+
}
|
|
861
|
+
export declare class UserRefAdminListResponse extends Message<UserRefAdminListResponse> {
|
|
862
|
+
status?: ResponseStatus;
|
|
863
|
+
pagination?: PaginationMetaResult;
|
|
864
|
+
data: UserRefAdminDto[];
|
|
865
|
+
constructor(data?: PartialMessage<UserRefAdminListResponse>);
|
|
866
|
+
static readonly runtime: typeof proto3;
|
|
867
|
+
static readonly typeName = "micro.v1.education.UserRefAdminListResponse";
|
|
868
|
+
static readonly fields: FieldList;
|
|
869
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminListResponse;
|
|
870
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminListResponse;
|
|
871
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminListResponse;
|
|
872
|
+
static equals(a: UserRefAdminListResponse | PlainMessage<UserRefAdminListResponse> | undefined, b: UserRefAdminListResponse | PlainMessage<UserRefAdminListResponse> | undefined): boolean;
|
|
873
|
+
}
|
|
874
|
+
export declare class UserRefAdminSingleResponse extends Message<UserRefAdminSingleResponse> {
|
|
875
|
+
status?: ResponseStatus;
|
|
876
|
+
data?: UserRefAdminDto;
|
|
877
|
+
constructor(data?: PartialMessage<UserRefAdminSingleResponse>);
|
|
878
|
+
static readonly runtime: typeof proto3;
|
|
879
|
+
static readonly typeName = "micro.v1.education.UserRefAdminSingleResponse";
|
|
880
|
+
static readonly fields: FieldList;
|
|
881
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminSingleResponse;
|
|
882
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminSingleResponse;
|
|
883
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminSingleResponse;
|
|
884
|
+
static equals(a: UserRefAdminSingleResponse | PlainMessage<UserRefAdminSingleResponse> | undefined, b: UserRefAdminSingleResponse | PlainMessage<UserRefAdminSingleResponse> | undefined): boolean;
|
|
885
|
+
}
|
|
886
|
+
export declare class UserRefAdminCreateRequest extends Message<UserRefAdminCreateRequest> {
|
|
887
|
+
userId: number;
|
|
888
|
+
exchangeName: string;
|
|
889
|
+
uid: string;
|
|
890
|
+
status?: string;
|
|
891
|
+
constructor(data?: PartialMessage<UserRefAdminCreateRequest>);
|
|
892
|
+
static readonly runtime: typeof proto3;
|
|
893
|
+
static readonly typeName = "micro.v1.education.UserRefAdminCreateRequest";
|
|
894
|
+
static readonly fields: FieldList;
|
|
895
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminCreateRequest;
|
|
896
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminCreateRequest;
|
|
897
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminCreateRequest;
|
|
898
|
+
static equals(a: UserRefAdminCreateRequest | PlainMessage<UserRefAdminCreateRequest> | undefined, b: UserRefAdminCreateRequest | PlainMessage<UserRefAdminCreateRequest> | undefined): boolean;
|
|
899
|
+
}
|
|
900
|
+
export declare class UserRefAdminUpdateRequest extends Message<UserRefAdminUpdateRequest> {
|
|
901
|
+
id: string;
|
|
902
|
+
uid?: string;
|
|
903
|
+
status?: string;
|
|
904
|
+
exchangeName?: string;
|
|
905
|
+
constructor(data?: PartialMessage<UserRefAdminUpdateRequest>);
|
|
906
|
+
static readonly runtime: typeof proto3;
|
|
907
|
+
static readonly typeName = "micro.v1.education.UserRefAdminUpdateRequest";
|
|
908
|
+
static readonly fields: FieldList;
|
|
909
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminUpdateRequest;
|
|
910
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminUpdateRequest;
|
|
911
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminUpdateRequest;
|
|
912
|
+
static equals(a: UserRefAdminUpdateRequest | PlainMessage<UserRefAdminUpdateRequest> | undefined, b: UserRefAdminUpdateRequest | PlainMessage<UserRefAdminUpdateRequest> | undefined): boolean;
|
|
913
|
+
}
|
|
914
|
+
export declare class UserRefAdminDeleteRequest extends Message<UserRefAdminDeleteRequest> {
|
|
915
|
+
id: string;
|
|
916
|
+
constructor(data?: PartialMessage<UserRefAdminDeleteRequest>);
|
|
917
|
+
static readonly runtime: typeof proto3;
|
|
918
|
+
static readonly typeName = "micro.v1.education.UserRefAdminDeleteRequest";
|
|
919
|
+
static readonly fields: FieldList;
|
|
920
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserRefAdminDeleteRequest;
|
|
921
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserRefAdminDeleteRequest;
|
|
922
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminDeleteRequest;
|
|
923
|
+
static equals(a: UserRefAdminDeleteRequest | PlainMessage<UserRefAdminDeleteRequest> | undefined, b: UserRefAdminDeleteRequest | PlainMessage<UserRefAdminDeleteRequest> | undefined): boolean;
|
|
924
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
|
+
exports.UserRefAdminDeleteRequest = exports.UserRefAdminUpdateRequest = exports.UserRefAdminCreateRequest = exports.UserRefAdminSingleResponse = exports.UserRefAdminListResponse = exports.UserRefAdminListRequest = exports.UserRefAdminDto = exports.UserRefUpdateByUserIdResponse = exports.UserRefUpdateByUserIdRequest = exports.UserRefsByUserIdResponse = exports.UserRefsByUserIdRequest = void 0;
|
|
4
5
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
6
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
7
|
class EducationDto extends protobuf_1.Message {
|
|
@@ -1629,3 +1630,330 @@ class VipUserAdminUpdateRequest extends protobuf_1.Message {
|
|
|
1629
1630
|
}
|
|
1630
1631
|
}
|
|
1631
1632
|
exports.VipUserAdminUpdateRequest = VipUserAdminUpdateRequest;
|
|
1633
|
+
class UserRefsByUserIdRequest extends protobuf_1.Message {
|
|
1634
|
+
userId = 0;
|
|
1635
|
+
constructor(data) {
|
|
1636
|
+
super();
|
|
1637
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1638
|
+
}
|
|
1639
|
+
static runtime = protobuf_1.proto3;
|
|
1640
|
+
static typeName = "micro.v1.education.UserRefsByUserIdRequest";
|
|
1641
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1642
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 5 },
|
|
1643
|
+
]);
|
|
1644
|
+
static fromBinary(bytes, options) {
|
|
1645
|
+
return new UserRefsByUserIdRequest().fromBinary(bytes, options);
|
|
1646
|
+
}
|
|
1647
|
+
static fromJson(jsonValue, options) {
|
|
1648
|
+
return new UserRefsByUserIdRequest().fromJson(jsonValue, options);
|
|
1649
|
+
}
|
|
1650
|
+
static fromJsonString(jsonString, options) {
|
|
1651
|
+
return new UserRefsByUserIdRequest().fromJsonString(jsonString, options);
|
|
1652
|
+
}
|
|
1653
|
+
static equals(a, b) {
|
|
1654
|
+
return protobuf_1.proto3.util.equals(UserRefsByUserIdRequest, a, b);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
exports.UserRefsByUserIdRequest = UserRefsByUserIdRequest;
|
|
1658
|
+
class UserRefsByUserIdResponse extends protobuf_1.Message {
|
|
1659
|
+
status;
|
|
1660
|
+
data = [];
|
|
1661
|
+
constructor(data) {
|
|
1662
|
+
super();
|
|
1663
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1664
|
+
}
|
|
1665
|
+
static runtime = protobuf_1.proto3;
|
|
1666
|
+
static typeName = "micro.v1.education.UserRefsByUserIdResponse";
|
|
1667
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1668
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1669
|
+
{ no: 2, name: "data", kind: "message", T: UserRefAdminDto, repeated: true },
|
|
1670
|
+
]);
|
|
1671
|
+
static fromBinary(bytes, options) {
|
|
1672
|
+
return new UserRefsByUserIdResponse().fromBinary(bytes, options);
|
|
1673
|
+
}
|
|
1674
|
+
static fromJson(jsonValue, options) {
|
|
1675
|
+
return new UserRefsByUserIdResponse().fromJson(jsonValue, options);
|
|
1676
|
+
}
|
|
1677
|
+
static fromJsonString(jsonString, options) {
|
|
1678
|
+
return new UserRefsByUserIdResponse().fromJsonString(jsonString, options);
|
|
1679
|
+
}
|
|
1680
|
+
static equals(a, b) {
|
|
1681
|
+
return protobuf_1.proto3.util.equals(UserRefsByUserIdResponse, a, b);
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
exports.UserRefsByUserIdResponse = UserRefsByUserIdResponse;
|
|
1685
|
+
class UserRefUpdateByUserIdRequest extends protobuf_1.Message {
|
|
1686
|
+
userId = 0;
|
|
1687
|
+
exchangeName = "";
|
|
1688
|
+
uid;
|
|
1689
|
+
status;
|
|
1690
|
+
constructor(data) {
|
|
1691
|
+
super();
|
|
1692
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1693
|
+
}
|
|
1694
|
+
static runtime = protobuf_1.proto3;
|
|
1695
|
+
static typeName = "micro.v1.education.UserRefUpdateByUserIdRequest";
|
|
1696
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1697
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 5 },
|
|
1698
|
+
{ no: 2, name: "exchange_name", kind: "scalar", T: 9 },
|
|
1699
|
+
{ no: 3, name: "uid", kind: "scalar", T: 9, opt: true },
|
|
1700
|
+
{ no: 4, name: "status", kind: "scalar", T: 9, opt: true },
|
|
1701
|
+
]);
|
|
1702
|
+
static fromBinary(bytes, options) {
|
|
1703
|
+
return new UserRefUpdateByUserIdRequest().fromBinary(bytes, options);
|
|
1704
|
+
}
|
|
1705
|
+
static fromJson(jsonValue, options) {
|
|
1706
|
+
return new UserRefUpdateByUserIdRequest().fromJson(jsonValue, options);
|
|
1707
|
+
}
|
|
1708
|
+
static fromJsonString(jsonString, options) {
|
|
1709
|
+
return new UserRefUpdateByUserIdRequest().fromJsonString(jsonString, options);
|
|
1710
|
+
}
|
|
1711
|
+
static equals(a, b) {
|
|
1712
|
+
return protobuf_1.proto3.util.equals(UserRefUpdateByUserIdRequest, a, b);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
exports.UserRefUpdateByUserIdRequest = UserRefUpdateByUserIdRequest;
|
|
1716
|
+
class UserRefUpdateByUserIdResponse extends protobuf_1.Message {
|
|
1717
|
+
status;
|
|
1718
|
+
data;
|
|
1719
|
+
constructor(data) {
|
|
1720
|
+
super();
|
|
1721
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1722
|
+
}
|
|
1723
|
+
static runtime = protobuf_1.proto3;
|
|
1724
|
+
static typeName = "micro.v1.education.UserRefUpdateByUserIdResponse";
|
|
1725
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1726
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1727
|
+
{ no: 2, name: "data", kind: "message", T: UserRefAdminDto, opt: true },
|
|
1728
|
+
]);
|
|
1729
|
+
static fromBinary(bytes, options) {
|
|
1730
|
+
return new UserRefUpdateByUserIdResponse().fromBinary(bytes, options);
|
|
1731
|
+
}
|
|
1732
|
+
static fromJson(jsonValue, options) {
|
|
1733
|
+
return new UserRefUpdateByUserIdResponse().fromJson(jsonValue, options);
|
|
1734
|
+
}
|
|
1735
|
+
static fromJsonString(jsonString, options) {
|
|
1736
|
+
return new UserRefUpdateByUserIdResponse().fromJsonString(jsonString, options);
|
|
1737
|
+
}
|
|
1738
|
+
static equals(a, b) {
|
|
1739
|
+
return protobuf_1.proto3.util.equals(UserRefUpdateByUserIdResponse, a, b);
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
exports.UserRefUpdateByUserIdResponse = UserRefUpdateByUserIdResponse;
|
|
1743
|
+
class UserRefAdminDto extends protobuf_1.Message {
|
|
1744
|
+
id = "";
|
|
1745
|
+
userId = "";
|
|
1746
|
+
exchangeName = "";
|
|
1747
|
+
uid = "";
|
|
1748
|
+
status = "";
|
|
1749
|
+
createdAt = "";
|
|
1750
|
+
updatedAt;
|
|
1751
|
+
constructor(data) {
|
|
1752
|
+
super();
|
|
1753
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1754
|
+
}
|
|
1755
|
+
static runtime = protobuf_1.proto3;
|
|
1756
|
+
static typeName = "micro.v1.education.UserRefAdminDto";
|
|
1757
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1758
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1759
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 },
|
|
1760
|
+
{ no: 3, name: "exchange_name", kind: "scalar", T: 9 },
|
|
1761
|
+
{ no: 4, name: "uid", kind: "scalar", T: 9 },
|
|
1762
|
+
{ no: 5, name: "status", kind: "scalar", T: 9 },
|
|
1763
|
+
{ no: 6, name: "created_at", kind: "scalar", T: 9 },
|
|
1764
|
+
{ no: 7, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
1765
|
+
]);
|
|
1766
|
+
static fromBinary(bytes, options) {
|
|
1767
|
+
return new UserRefAdminDto().fromBinary(bytes, options);
|
|
1768
|
+
}
|
|
1769
|
+
static fromJson(jsonValue, options) {
|
|
1770
|
+
return new UserRefAdminDto().fromJson(jsonValue, options);
|
|
1771
|
+
}
|
|
1772
|
+
static fromJsonString(jsonString, options) {
|
|
1773
|
+
return new UserRefAdminDto().fromJsonString(jsonString, options);
|
|
1774
|
+
}
|
|
1775
|
+
static equals(a, b) {
|
|
1776
|
+
return protobuf_1.proto3.util.equals(UserRefAdminDto, a, b);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
exports.UserRefAdminDto = UserRefAdminDto;
|
|
1780
|
+
class UserRefAdminListRequest extends protobuf_1.Message {
|
|
1781
|
+
page;
|
|
1782
|
+
perPage;
|
|
1783
|
+
search;
|
|
1784
|
+
userId;
|
|
1785
|
+
exchangeName;
|
|
1786
|
+
status;
|
|
1787
|
+
uid;
|
|
1788
|
+
constructor(data) {
|
|
1789
|
+
super();
|
|
1790
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1791
|
+
}
|
|
1792
|
+
static runtime = protobuf_1.proto3;
|
|
1793
|
+
static typeName = "micro.v1.education.UserRefAdminListRequest";
|
|
1794
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1795
|
+
{ no: 1, name: "page", kind: "scalar", T: 5, opt: true },
|
|
1796
|
+
{ no: 2, name: "per_page", kind: "scalar", T: 5, opt: true },
|
|
1797
|
+
{ no: 3, name: "search", kind: "scalar", T: 9, opt: true },
|
|
1798
|
+
{ no: 4, name: "user_id", kind: "scalar", T: 5, opt: true },
|
|
1799
|
+
{ no: 5, name: "exchange_name", kind: "scalar", T: 9, opt: true },
|
|
1800
|
+
{ no: 6, name: "status", kind: "scalar", T: 9, opt: true },
|
|
1801
|
+
{ no: 7, name: "uid", kind: "scalar", T: 9, opt: true },
|
|
1802
|
+
]);
|
|
1803
|
+
static fromBinary(bytes, options) {
|
|
1804
|
+
return new UserRefAdminListRequest().fromBinary(bytes, options);
|
|
1805
|
+
}
|
|
1806
|
+
static fromJson(jsonValue, options) {
|
|
1807
|
+
return new UserRefAdminListRequest().fromJson(jsonValue, options);
|
|
1808
|
+
}
|
|
1809
|
+
static fromJsonString(jsonString, options) {
|
|
1810
|
+
return new UserRefAdminListRequest().fromJsonString(jsonString, options);
|
|
1811
|
+
}
|
|
1812
|
+
static equals(a, b) {
|
|
1813
|
+
return protobuf_1.proto3.util.equals(UserRefAdminListRequest, a, b);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
exports.UserRefAdminListRequest = UserRefAdminListRequest;
|
|
1817
|
+
class UserRefAdminListResponse extends protobuf_1.Message {
|
|
1818
|
+
status;
|
|
1819
|
+
pagination;
|
|
1820
|
+
data = [];
|
|
1821
|
+
constructor(data) {
|
|
1822
|
+
super();
|
|
1823
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1824
|
+
}
|
|
1825
|
+
static runtime = protobuf_1.proto3;
|
|
1826
|
+
static typeName = "micro.v1.education.UserRefAdminListResponse";
|
|
1827
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1828
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1829
|
+
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
1830
|
+
{ no: 3, name: "data", kind: "message", T: UserRefAdminDto, repeated: true },
|
|
1831
|
+
]);
|
|
1832
|
+
static fromBinary(bytes, options) {
|
|
1833
|
+
return new UserRefAdminListResponse().fromBinary(bytes, options);
|
|
1834
|
+
}
|
|
1835
|
+
static fromJson(jsonValue, options) {
|
|
1836
|
+
return new UserRefAdminListResponse().fromJson(jsonValue, options);
|
|
1837
|
+
}
|
|
1838
|
+
static fromJsonString(jsonString, options) {
|
|
1839
|
+
return new UserRefAdminListResponse().fromJsonString(jsonString, options);
|
|
1840
|
+
}
|
|
1841
|
+
static equals(a, b) {
|
|
1842
|
+
return protobuf_1.proto3.util.equals(UserRefAdminListResponse, a, b);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
exports.UserRefAdminListResponse = UserRefAdminListResponse;
|
|
1846
|
+
class UserRefAdminSingleResponse extends protobuf_1.Message {
|
|
1847
|
+
status;
|
|
1848
|
+
data;
|
|
1849
|
+
constructor(data) {
|
|
1850
|
+
super();
|
|
1851
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1852
|
+
}
|
|
1853
|
+
static runtime = protobuf_1.proto3;
|
|
1854
|
+
static typeName = "micro.v1.education.UserRefAdminSingleResponse";
|
|
1855
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1856
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1857
|
+
{ no: 2, name: "data", kind: "message", T: UserRefAdminDto },
|
|
1858
|
+
]);
|
|
1859
|
+
static fromBinary(bytes, options) {
|
|
1860
|
+
return new UserRefAdminSingleResponse().fromBinary(bytes, options);
|
|
1861
|
+
}
|
|
1862
|
+
static fromJson(jsonValue, options) {
|
|
1863
|
+
return new UserRefAdminSingleResponse().fromJson(jsonValue, options);
|
|
1864
|
+
}
|
|
1865
|
+
static fromJsonString(jsonString, options) {
|
|
1866
|
+
return new UserRefAdminSingleResponse().fromJsonString(jsonString, options);
|
|
1867
|
+
}
|
|
1868
|
+
static equals(a, b) {
|
|
1869
|
+
return protobuf_1.proto3.util.equals(UserRefAdminSingleResponse, a, b);
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
exports.UserRefAdminSingleResponse = UserRefAdminSingleResponse;
|
|
1873
|
+
class UserRefAdminCreateRequest extends protobuf_1.Message {
|
|
1874
|
+
userId = 0;
|
|
1875
|
+
exchangeName = "";
|
|
1876
|
+
uid = "";
|
|
1877
|
+
status;
|
|
1878
|
+
constructor(data) {
|
|
1879
|
+
super();
|
|
1880
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1881
|
+
}
|
|
1882
|
+
static runtime = protobuf_1.proto3;
|
|
1883
|
+
static typeName = "micro.v1.education.UserRefAdminCreateRequest";
|
|
1884
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1885
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 5 },
|
|
1886
|
+
{ no: 2, name: "exchange_name", kind: "scalar", T: 9 },
|
|
1887
|
+
{ no: 3, name: "uid", kind: "scalar", T: 9 },
|
|
1888
|
+
{ no: 4, name: "status", kind: "scalar", T: 9, opt: true },
|
|
1889
|
+
]);
|
|
1890
|
+
static fromBinary(bytes, options) {
|
|
1891
|
+
return new UserRefAdminCreateRequest().fromBinary(bytes, options);
|
|
1892
|
+
}
|
|
1893
|
+
static fromJson(jsonValue, options) {
|
|
1894
|
+
return new UserRefAdminCreateRequest().fromJson(jsonValue, options);
|
|
1895
|
+
}
|
|
1896
|
+
static fromJsonString(jsonString, options) {
|
|
1897
|
+
return new UserRefAdminCreateRequest().fromJsonString(jsonString, options);
|
|
1898
|
+
}
|
|
1899
|
+
static equals(a, b) {
|
|
1900
|
+
return protobuf_1.proto3.util.equals(UserRefAdminCreateRequest, a, b);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
exports.UserRefAdminCreateRequest = UserRefAdminCreateRequest;
|
|
1904
|
+
class UserRefAdminUpdateRequest extends protobuf_1.Message {
|
|
1905
|
+
id = "";
|
|
1906
|
+
uid;
|
|
1907
|
+
status;
|
|
1908
|
+
exchangeName;
|
|
1909
|
+
constructor(data) {
|
|
1910
|
+
super();
|
|
1911
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1912
|
+
}
|
|
1913
|
+
static runtime = protobuf_1.proto3;
|
|
1914
|
+
static typeName = "micro.v1.education.UserRefAdminUpdateRequest";
|
|
1915
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1916
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1917
|
+
{ no: 2, name: "uid", kind: "scalar", T: 9, opt: true },
|
|
1918
|
+
{ no: 3, name: "status", kind: "scalar", T: 9, opt: true },
|
|
1919
|
+
{ no: 4, name: "exchange_name", kind: "scalar", T: 9, opt: true },
|
|
1920
|
+
]);
|
|
1921
|
+
static fromBinary(bytes, options) {
|
|
1922
|
+
return new UserRefAdminUpdateRequest().fromBinary(bytes, options);
|
|
1923
|
+
}
|
|
1924
|
+
static fromJson(jsonValue, options) {
|
|
1925
|
+
return new UserRefAdminUpdateRequest().fromJson(jsonValue, options);
|
|
1926
|
+
}
|
|
1927
|
+
static fromJsonString(jsonString, options) {
|
|
1928
|
+
return new UserRefAdminUpdateRequest().fromJsonString(jsonString, options);
|
|
1929
|
+
}
|
|
1930
|
+
static equals(a, b) {
|
|
1931
|
+
return protobuf_1.proto3.util.equals(UserRefAdminUpdateRequest, a, b);
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
exports.UserRefAdminUpdateRequest = UserRefAdminUpdateRequest;
|
|
1935
|
+
class UserRefAdminDeleteRequest extends protobuf_1.Message {
|
|
1936
|
+
id = "";
|
|
1937
|
+
constructor(data) {
|
|
1938
|
+
super();
|
|
1939
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1940
|
+
}
|
|
1941
|
+
static runtime = protobuf_1.proto3;
|
|
1942
|
+
static typeName = "micro.v1.education.UserRefAdminDeleteRequest";
|
|
1943
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1944
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1945
|
+
]);
|
|
1946
|
+
static fromBinary(bytes, options) {
|
|
1947
|
+
return new UserRefAdminDeleteRequest().fromBinary(bytes, options);
|
|
1948
|
+
}
|
|
1949
|
+
static fromJson(jsonValue, options) {
|
|
1950
|
+
return new UserRefAdminDeleteRequest().fromJson(jsonValue, options);
|
|
1951
|
+
}
|
|
1952
|
+
static fromJsonString(jsonString, options) {
|
|
1953
|
+
return new UserRefAdminDeleteRequest().fromJsonString(jsonString, options);
|
|
1954
|
+
}
|
|
1955
|
+
static equals(a, b) {
|
|
1956
|
+
return protobuf_1.proto3.util.equals(UserRefAdminDeleteRequest, a, b);
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
exports.UserRefAdminDeleteRequest = UserRefAdminDeleteRequest;
|
|
@@ -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, VipUserAdminListRequest, VipUserAdminListResponse, VipUserAdminSingleResponse, VipUserAdminUpdateRequest } 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, UserRefAdminCreateRequest, UserRefAdminListRequest, UserRefAdminListResponse, UserRefAdminSingleResponse, UserRefAdminUpdateRequest, UserRefsByUserIdRequest, UserRefsByUserIdResponse, UserRefUpdateByUserIdRequest, UserRefUpdateByUserIdResponse, 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: {
|
|
@@ -437,6 +437,53 @@ export declare const PVipAdminService: {
|
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
439
|
};
|
|
440
|
+
export declare const PUserRefsAdminService: {
|
|
441
|
+
readonly typeName: "micro.v1.education.PUserRefsAdminService";
|
|
442
|
+
readonly methods: {
|
|
443
|
+
readonly list: {
|
|
444
|
+
readonly name: "list";
|
|
445
|
+
readonly I: typeof UserRefAdminListRequest;
|
|
446
|
+
readonly O: typeof UserRefAdminListResponse;
|
|
447
|
+
readonly kind: MethodKind.Unary;
|
|
448
|
+
};
|
|
449
|
+
readonly read: {
|
|
450
|
+
readonly name: "read";
|
|
451
|
+
readonly I: typeof ByIdRequest;
|
|
452
|
+
readonly O: typeof UserRefAdminSingleResponse;
|
|
453
|
+
readonly kind: MethodKind.Unary;
|
|
454
|
+
};
|
|
455
|
+
readonly create: {
|
|
456
|
+
readonly name: "create";
|
|
457
|
+
readonly I: typeof UserRefAdminCreateRequest;
|
|
458
|
+
readonly O: typeof UserRefAdminSingleResponse;
|
|
459
|
+
readonly kind: MethodKind.Unary;
|
|
460
|
+
};
|
|
461
|
+
readonly update: {
|
|
462
|
+
readonly name: "update";
|
|
463
|
+
readonly I: typeof UserRefAdminUpdateRequest;
|
|
464
|
+
readonly O: typeof UserRefAdminSingleResponse;
|
|
465
|
+
readonly kind: MethodKind.Unary;
|
|
466
|
+
};
|
|
467
|
+
readonly delete: {
|
|
468
|
+
readonly name: "delete";
|
|
469
|
+
readonly I: typeof ByIdRequest;
|
|
470
|
+
readonly O: typeof EmptyResponse;
|
|
471
|
+
readonly kind: MethodKind.Unary;
|
|
472
|
+
};
|
|
473
|
+
readonly getUserRefsByUserId: {
|
|
474
|
+
readonly name: "getUserRefsByUserId";
|
|
475
|
+
readonly I: typeof UserRefsByUserIdRequest;
|
|
476
|
+
readonly O: typeof UserRefsByUserIdResponse;
|
|
477
|
+
readonly kind: MethodKind.Unary;
|
|
478
|
+
};
|
|
479
|
+
readonly updateUserRefByUserId: {
|
|
480
|
+
readonly name: "updateUserRefByUserId";
|
|
481
|
+
readonly I: typeof UserRefUpdateByUserIdRequest;
|
|
482
|
+
readonly O: typeof UserRefUpdateByUserIdResponse;
|
|
483
|
+
readonly kind: MethodKind.Unary;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
};
|
|
440
487
|
export declare const PEducationUserDataService: {
|
|
441
488
|
readonly typeName: "micro.v1.education.PEducationUserDataService";
|
|
442
489
|
readonly methods: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.PEducationUserDataService = exports.PUserRefsAdminService = 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");
|
|
@@ -440,6 +440,53 @@ exports.PVipAdminService = {
|
|
|
440
440
|
},
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
+
exports.PUserRefsAdminService = {
|
|
444
|
+
typeName: "micro.v1.education.PUserRefsAdminService",
|
|
445
|
+
methods: {
|
|
446
|
+
list: {
|
|
447
|
+
name: "list",
|
|
448
|
+
I: education_messages_pb_js_1.UserRefAdminListRequest,
|
|
449
|
+
O: education_messages_pb_js_1.UserRefAdminListResponse,
|
|
450
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
451
|
+
},
|
|
452
|
+
read: {
|
|
453
|
+
name: "read",
|
|
454
|
+
I: general_pb_js_1.ByIdRequest,
|
|
455
|
+
O: education_messages_pb_js_1.UserRefAdminSingleResponse,
|
|
456
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
457
|
+
},
|
|
458
|
+
create: {
|
|
459
|
+
name: "create",
|
|
460
|
+
I: education_messages_pb_js_1.UserRefAdminCreateRequest,
|
|
461
|
+
O: education_messages_pb_js_1.UserRefAdminSingleResponse,
|
|
462
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
463
|
+
},
|
|
464
|
+
update: {
|
|
465
|
+
name: "update",
|
|
466
|
+
I: education_messages_pb_js_1.UserRefAdminUpdateRequest,
|
|
467
|
+
O: education_messages_pb_js_1.UserRefAdminSingleResponse,
|
|
468
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
469
|
+
},
|
|
470
|
+
delete: {
|
|
471
|
+
name: "delete",
|
|
472
|
+
I: general_pb_js_1.ByIdRequest,
|
|
473
|
+
O: general_pb_js_1.EmptyResponse,
|
|
474
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
475
|
+
},
|
|
476
|
+
getUserRefsByUserId: {
|
|
477
|
+
name: "getUserRefsByUserId",
|
|
478
|
+
I: education_messages_pb_js_1.UserRefsByUserIdRequest,
|
|
479
|
+
O: education_messages_pb_js_1.UserRefsByUserIdResponse,
|
|
480
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
481
|
+
},
|
|
482
|
+
updateUserRefByUserId: {
|
|
483
|
+
name: "updateUserRefByUserId",
|
|
484
|
+
I: education_messages_pb_js_1.UserRefUpdateByUserIdRequest,
|
|
485
|
+
O: education_messages_pb_js_1.UserRefUpdateByUserIdResponse,
|
|
486
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
487
|
+
},
|
|
488
|
+
}
|
|
489
|
+
};
|
|
443
490
|
exports.PEducationUserDataService = {
|
|
444
491
|
typeName: "micro.v1.education.PEducationUserDataService",
|
|
445
492
|
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, VipUserAdminListRequest, VipUserAdminListResponse, VipUserAdminSingleResponse, VipUserAdminUpdateRequest } 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, UserRefAdminCreateRequest, UserRefAdminListRequest, UserRefAdminListResponse, UserRefAdminSingleResponse, UserRefAdminUpdateRequest, UserRefsByUserIdRequest, UserRefsByUserIdResponse, UserRefUpdateByUserIdRequest, UserRefUpdateByUserIdResponse, 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 {
|
|
@@ -210,6 +210,26 @@ export interface PVipAdminServiceController {
|
|
|
210
210
|
}
|
|
211
211
|
export declare function PVipAdminServiceControllerMethods(): (constructor: Function) => void;
|
|
212
212
|
export declare const P_VIP_ADMIN_SERVICE_NAME = "PVipAdminService";
|
|
213
|
+
export interface PUserRefsAdminServiceClient {
|
|
214
|
+
list(request: UserRefAdminListRequest, metadata?: Metadata): Observable<UserRefAdminListResponse>;
|
|
215
|
+
read(request: ByIdRequest, metadata?: Metadata): Observable<UserRefAdminSingleResponse>;
|
|
216
|
+
create(request: UserRefAdminCreateRequest, metadata?: Metadata): Observable<UserRefAdminSingleResponse>;
|
|
217
|
+
update(request: UserRefAdminUpdateRequest, metadata?: Metadata): Observable<UserRefAdminSingleResponse>;
|
|
218
|
+
delete(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
219
|
+
getUserRefsByUserId(request: UserRefsByUserIdRequest, metadata?: Metadata): Observable<UserRefsByUserIdResponse>;
|
|
220
|
+
updateUserRefByUserId(request: UserRefUpdateByUserIdRequest, metadata?: Metadata): Observable<UserRefUpdateByUserIdResponse>;
|
|
221
|
+
}
|
|
222
|
+
export interface PUserRefsAdminServiceController {
|
|
223
|
+
list(request: UserRefAdminListRequest, metadata?: Metadata): Promise<UserRefAdminListResponse> | Observable<UserRefAdminListResponse> | UserRefAdminListResponse;
|
|
224
|
+
read(request: ByIdRequest, metadata?: Metadata): Promise<UserRefAdminSingleResponse> | Observable<UserRefAdminSingleResponse> | UserRefAdminSingleResponse;
|
|
225
|
+
create(request: UserRefAdminCreateRequest, metadata?: Metadata): Promise<UserRefAdminSingleResponse> | Observable<UserRefAdminSingleResponse> | UserRefAdminSingleResponse;
|
|
226
|
+
update(request: UserRefAdminUpdateRequest, metadata?: Metadata): Promise<UserRefAdminSingleResponse> | Observable<UserRefAdminSingleResponse> | UserRefAdminSingleResponse;
|
|
227
|
+
delete(request: ByIdRequest, metadata?: Metadata): Promise<EmptyResponse> | Observable<EmptyResponse> | EmptyResponse;
|
|
228
|
+
getUserRefsByUserId(request: UserRefsByUserIdRequest, metadata?: Metadata): Promise<UserRefsByUserIdResponse> | Observable<UserRefsByUserIdResponse> | UserRefsByUserIdResponse;
|
|
229
|
+
updateUserRefByUserId(request: UserRefUpdateByUserIdRequest, metadata?: Metadata): Promise<UserRefUpdateByUserIdResponse> | Observable<UserRefUpdateByUserIdResponse> | UserRefUpdateByUserIdResponse;
|
|
230
|
+
}
|
|
231
|
+
export declare function PUserRefsAdminServiceControllerMethods(): (constructor: Function) => void;
|
|
232
|
+
export declare const P_USER_REFS_ADMIN_SERVICE_NAME = "PUserRefsAdminService";
|
|
213
233
|
export interface PEducationUserDataServiceClient {
|
|
214
234
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
215
235
|
}
|
|
@@ -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_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;
|
|
3
|
+
exports.P_EDUCATION_USER_DATA_SERVICE_NAME = exports.P_USER_REFS_ADMIN_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;
|
|
@@ -15,6 +15,7 @@ exports.PReferralUidServiceControllerMethods = PReferralUidServiceControllerMeth
|
|
|
15
15
|
exports.PMediaEducationServiceControllerMethods = PMediaEducationServiceControllerMethods;
|
|
16
16
|
exports.PUserVipServiceControllerMethods = PUserVipServiceControllerMethods;
|
|
17
17
|
exports.PVipAdminServiceControllerMethods = PVipAdminServiceControllerMethods;
|
|
18
|
+
exports.PUserRefsAdminServiceControllerMethods = PUserRefsAdminServiceControllerMethods;
|
|
18
19
|
exports.PEducationUserDataServiceControllerMethods = PEducationUserDataServiceControllerMethods;
|
|
19
20
|
const microservices_1 = require("@nestjs/microservices");
|
|
20
21
|
exports.protobufPackage = "micro.v1.education";
|
|
@@ -229,6 +230,29 @@ function PVipAdminServiceControllerMethods() {
|
|
|
229
230
|
};
|
|
230
231
|
}
|
|
231
232
|
exports.P_VIP_ADMIN_SERVICE_NAME = "PVipAdminService";
|
|
233
|
+
function PUserRefsAdminServiceControllerMethods() {
|
|
234
|
+
return function (constructor) {
|
|
235
|
+
const grpcMethods = [
|
|
236
|
+
"list",
|
|
237
|
+
"read",
|
|
238
|
+
"create",
|
|
239
|
+
"update",
|
|
240
|
+
"delete",
|
|
241
|
+
"getUserRefsByUserId",
|
|
242
|
+
"updateUserRefByUserId",
|
|
243
|
+
];
|
|
244
|
+
for (const method of grpcMethods) {
|
|
245
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
246
|
+
(0, microservices_1.GrpcMethod)("PUserRefsAdminService", method)(constructor.prototype[method], method, descriptor);
|
|
247
|
+
}
|
|
248
|
+
const grpcStreamMethods = [];
|
|
249
|
+
for (const method of grpcStreamMethods) {
|
|
250
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
251
|
+
(0, microservices_1.GrpcStreamMethod)("PUserRefsAdminService", method)(constructor.prototype[method], method, descriptor);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
exports.P_USER_REFS_ADMIN_SERVICE_NAME = "PUserRefsAdminService";
|
|
232
256
|
function PEducationUserDataServiceControllerMethods() {
|
|
233
257
|
return function (constructor) {
|
|
234
258
|
const grpcMethods = ["removeUserData"];
|
package/package.json
CHANGED
|
@@ -390,4 +390,74 @@ message VipUserAdminUpdateRequest {
|
|
|
390
390
|
optional string gender = 9;
|
|
391
391
|
optional bool telegram_joined = 10;
|
|
392
392
|
optional string notes = 11;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
message UserRefsByUserIdRequest {
|
|
396
|
+
int32 user_id = 1;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
message UserRefsByUserIdResponse {
|
|
400
|
+
ResponseStatus status = 1;
|
|
401
|
+
repeated UserRefAdminDto data = 2;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
message UserRefUpdateByUserIdRequest {
|
|
405
|
+
int32 user_id = 1;
|
|
406
|
+
string exchange_name = 2;
|
|
407
|
+
optional string uid = 3;
|
|
408
|
+
optional string status = 4;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
message UserRefUpdateByUserIdResponse {
|
|
412
|
+
ResponseStatus status = 1;
|
|
413
|
+
optional UserRefAdminDto data = 2;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
message UserRefAdminDto {
|
|
417
|
+
string id = 1;
|
|
418
|
+
string user_id = 2;
|
|
419
|
+
string exchange_name = 3;
|
|
420
|
+
string uid = 4;
|
|
421
|
+
string status = 5;
|
|
422
|
+
string created_at = 6;
|
|
423
|
+
optional string updated_at = 7;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
message UserRefAdminListRequest {
|
|
427
|
+
optional int32 page = 1;
|
|
428
|
+
optional int32 per_page = 2;
|
|
429
|
+
optional string search = 3;
|
|
430
|
+
optional int32 user_id = 4;
|
|
431
|
+
optional string exchange_name = 5;
|
|
432
|
+
optional string status = 6;
|
|
433
|
+
optional string uid = 7;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
message UserRefAdminListResponse {
|
|
437
|
+
ResponseStatus status = 1;
|
|
438
|
+
PaginationMetaResult pagination = 2;
|
|
439
|
+
repeated UserRefAdminDto data = 3;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
message UserRefAdminSingleResponse {
|
|
443
|
+
ResponseStatus status = 1;
|
|
444
|
+
UserRefAdminDto data = 2;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message UserRefAdminCreateRequest {
|
|
448
|
+
int32 user_id = 1;
|
|
449
|
+
string exchange_name = 2;
|
|
450
|
+
string uid = 3;
|
|
451
|
+
optional string status = 4;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
message UserRefAdminUpdateRequest {
|
|
455
|
+
string id = 1;
|
|
456
|
+
optional string uid = 2;
|
|
457
|
+
optional string status = 3;
|
|
458
|
+
optional string exchange_name = 4;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
message UserRefAdminDeleteRequest {
|
|
462
|
+
string id = 1;
|
|
393
463
|
}
|
|
@@ -108,6 +108,17 @@ service PVipAdminService {
|
|
|
108
108
|
rpc delete(ByIdRequest) returns (EmptyResponse);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
service PUserRefsAdminService {
|
|
112
|
+
rpc list(UserRefAdminListRequest) returns (UserRefAdminListResponse);
|
|
113
|
+
rpc read(ByIdRequest) returns (UserRefAdminSingleResponse);
|
|
114
|
+
rpc create(UserRefAdminCreateRequest) returns (UserRefAdminSingleResponse);
|
|
115
|
+
rpc update(UserRefAdminUpdateRequest) returns (UserRefAdminSingleResponse);
|
|
116
|
+
rpc delete(ByIdRequest) returns (EmptyResponse);
|
|
117
|
+
|
|
118
|
+
rpc getUserRefsByUserId(UserRefsByUserIdRequest) returns (UserRefsByUserIdResponse);
|
|
119
|
+
rpc updateUserRefByUserId(UserRefUpdateByUserIdRequest) returns (UserRefUpdateByUserIdResponse);
|
|
120
|
+
}
|
|
121
|
+
|
|
111
122
|
service PEducationUserDataService {
|
|
112
123
|
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
113
124
|
}
|