jr-common-micro 1.1.18 → 1.1.20

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.
@@ -505,4 +505,54 @@ export interface UserRefAdminUpdateRequest {
505
505
  export interface UserRefAdminDeleteRequest {
506
506
  id: string;
507
507
  }
508
+ export interface ExcelDataEntryDto {
509
+ date: string;
510
+ deposits_amount?: string | undefined;
511
+ trading_amount?: string | undefined;
512
+ taker_amount?: string | undefined;
513
+ maker_amount?: string | undefined;
514
+ }
515
+ export interface ExcelDataComparisonDto {
516
+ type: string;
517
+ days_difference: number;
518
+ deposits_amount_diff: string;
519
+ trading_amount_diff: string;
520
+ taker_amount_diff: string;
521
+ maker_amount_diff: string;
522
+ }
523
+ export interface ExchangeDataItemDto {
524
+ entry?: ExcelDataEntryDto | undefined;
525
+ comparison?: ExcelDataComparisonDto | undefined;
526
+ }
527
+ export interface ExcelDataDto {
528
+ id: string;
529
+ date: string;
530
+ uid: string;
531
+ vip_level?: string | undefined;
532
+ user_engagement?: string | undefined;
533
+ joined_bybit?: string | undefined;
534
+ source?: string | undefined;
535
+ remarks?: string | undefined;
536
+ kyc_level?: string | undefined;
537
+ coin?: string | undefined;
538
+ first_time_deposited?: string | undefined;
539
+ deposits_amount?: string | undefined;
540
+ trading_amount?: string | undefined;
541
+ taker_amount?: string | undefined;
542
+ maker_amount?: string | undefined;
543
+ interest?: string | undefined;
544
+ fee_profit?: string | undefined;
545
+ commissions?: string | undefined;
546
+ tradfi_amount?: string | undefined;
547
+ created_at: string;
548
+ updated_at?: string | undefined;
549
+ }
550
+ export interface ExcelDataByUidRequest {
551
+ uid: string;
552
+ }
553
+ export interface ExcelDataListResponse {
554
+ status: ResponseStatus | undefined;
555
+ data: ExcelDataDto[];
556
+ total: number;
557
+ }
508
558
  export declare const MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
@@ -922,3 +922,109 @@ export declare class UserRefAdminDeleteRequest extends Message<UserRefAdminDelet
922
922
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserRefAdminDeleteRequest;
923
923
  static equals(a: UserRefAdminDeleteRequest | PlainMessage<UserRefAdminDeleteRequest> | undefined, b: UserRefAdminDeleteRequest | PlainMessage<UserRefAdminDeleteRequest> | undefined): boolean;
924
924
  }
925
+ export declare class ExcelDataEntryDto extends Message<ExcelDataEntryDto> {
926
+ date: string;
927
+ depositsAmount?: string;
928
+ tradingAmount?: string;
929
+ takerAmount?: string;
930
+ makerAmount?: string;
931
+ constructor(data?: PartialMessage<ExcelDataEntryDto>);
932
+ static readonly runtime: typeof proto3;
933
+ static readonly typeName = "micro.v1.education.ExcelDataEntryDto";
934
+ static readonly fields: FieldList;
935
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExcelDataEntryDto;
936
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExcelDataEntryDto;
937
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExcelDataEntryDto;
938
+ static equals(a: ExcelDataEntryDto | PlainMessage<ExcelDataEntryDto> | undefined, b: ExcelDataEntryDto | PlainMessage<ExcelDataEntryDto> | undefined): boolean;
939
+ }
940
+ export declare class ExcelDataComparisonDto extends Message<ExcelDataComparisonDto> {
941
+ type: string;
942
+ daysDifference: number;
943
+ depositsAmountDiff: string;
944
+ tradingAmountDiff: string;
945
+ takerAmountDiff: string;
946
+ makerAmountDiff: string;
947
+ constructor(data?: PartialMessage<ExcelDataComparisonDto>);
948
+ static readonly runtime: typeof proto3;
949
+ static readonly typeName = "micro.v1.education.ExcelDataComparisonDto";
950
+ static readonly fields: FieldList;
951
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExcelDataComparisonDto;
952
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExcelDataComparisonDto;
953
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExcelDataComparisonDto;
954
+ static equals(a: ExcelDataComparisonDto | PlainMessage<ExcelDataComparisonDto> | undefined, b: ExcelDataComparisonDto | PlainMessage<ExcelDataComparisonDto> | undefined): boolean;
955
+ }
956
+ export declare class ExchangeDataItemDto extends Message<ExchangeDataItemDto> {
957
+ item: {
958
+ value: ExcelDataEntryDto;
959
+ case: "entry";
960
+ } | {
961
+ value: ExcelDataComparisonDto;
962
+ case: "comparison";
963
+ } | {
964
+ case: undefined;
965
+ value?: undefined;
966
+ };
967
+ constructor(data?: PartialMessage<ExchangeDataItemDto>);
968
+ static readonly runtime: typeof proto3;
969
+ static readonly typeName = "micro.v1.education.ExchangeDataItemDto";
970
+ static readonly fields: FieldList;
971
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExchangeDataItemDto;
972
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExchangeDataItemDto;
973
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExchangeDataItemDto;
974
+ static equals(a: ExchangeDataItemDto | PlainMessage<ExchangeDataItemDto> | undefined, b: ExchangeDataItemDto | PlainMessage<ExchangeDataItemDto> | undefined): boolean;
975
+ }
976
+ export declare class ExcelDataDto extends Message<ExcelDataDto> {
977
+ id: string;
978
+ date: string;
979
+ uid: string;
980
+ vipLevel?: string;
981
+ userEngagement?: string;
982
+ joinedBybit?: string;
983
+ source?: string;
984
+ remarks?: string;
985
+ kycLevel?: string;
986
+ coin?: string;
987
+ firstTimeDeposited?: string;
988
+ depositsAmount?: string;
989
+ tradingAmount?: string;
990
+ takerAmount?: string;
991
+ makerAmount?: string;
992
+ interest?: string;
993
+ feeProfit?: string;
994
+ commissions?: string;
995
+ tradfiAmount?: string;
996
+ createdAt: string;
997
+ updatedAt?: string;
998
+ constructor(data?: PartialMessage<ExcelDataDto>);
999
+ static readonly runtime: typeof proto3;
1000
+ static readonly typeName = "micro.v1.education.ExcelDataDto";
1001
+ static readonly fields: FieldList;
1002
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExcelDataDto;
1003
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExcelDataDto;
1004
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExcelDataDto;
1005
+ static equals(a: ExcelDataDto | PlainMessage<ExcelDataDto> | undefined, b: ExcelDataDto | PlainMessage<ExcelDataDto> | undefined): boolean;
1006
+ }
1007
+ export declare class ExcelDataByUidRequest extends Message<ExcelDataByUidRequest> {
1008
+ uid: string;
1009
+ constructor(data?: PartialMessage<ExcelDataByUidRequest>);
1010
+ static readonly runtime: typeof proto3;
1011
+ static readonly typeName = "micro.v1.education.ExcelDataByUidRequest";
1012
+ static readonly fields: FieldList;
1013
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExcelDataByUidRequest;
1014
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExcelDataByUidRequest;
1015
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExcelDataByUidRequest;
1016
+ static equals(a: ExcelDataByUidRequest | PlainMessage<ExcelDataByUidRequest> | undefined, b: ExcelDataByUidRequest | PlainMessage<ExcelDataByUidRequest> | undefined): boolean;
1017
+ }
1018
+ export declare class ExcelDataListResponse extends Message<ExcelDataListResponse> {
1019
+ status?: ResponseStatus;
1020
+ data: ExcelDataDto[];
1021
+ total: number;
1022
+ constructor(data?: PartialMessage<ExcelDataListResponse>);
1023
+ static readonly runtime: typeof proto3;
1024
+ static readonly typeName = "micro.v1.education.ExcelDataListResponse";
1025
+ static readonly fields: FieldList;
1026
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExcelDataListResponse;
1027
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExcelDataListResponse;
1028
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExcelDataListResponse;
1029
+ static equals(a: ExcelDataListResponse | PlainMessage<ExcelDataListResponse> | undefined, b: ExcelDataListResponse | PlainMessage<ExcelDataListResponse> | undefined): boolean;
1030
+ }
@@ -1,7 +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
+ exports.ExcelDataListResponse = exports.ExcelDataByUidRequest = exports.ExcelDataDto = exports.ExchangeDataItemDto = exports.ExcelDataComparisonDto = exports.ExcelDataEntryDto = exports.UserRefAdminDeleteRequest = exports.UserRefAdminUpdateRequest = exports.UserRefAdminCreateRequest = exports.UserRefAdminSingleResponse = exports.UserRefAdminListResponse = exports.UserRefAdminListRequest = exports.UserRefAdminDto = exports.UserRefUpdateByUserIdResponse = exports.UserRefUpdateByUserIdRequest = exports.UserRefsByUserIdResponse = exports.UserRefsByUserIdRequest = void 0;
5
5
  const protobuf_1 = require("@bufbuild/protobuf");
6
6
  const general_pb_js_1 = require("../general_pb.js");
7
7
  class EducationDto extends protobuf_1.Message {
@@ -1957,3 +1957,216 @@ class UserRefAdminDeleteRequest extends protobuf_1.Message {
1957
1957
  }
1958
1958
  }
1959
1959
  exports.UserRefAdminDeleteRequest = UserRefAdminDeleteRequest;
1960
+ class ExcelDataEntryDto extends protobuf_1.Message {
1961
+ date = "";
1962
+ depositsAmount;
1963
+ tradingAmount;
1964
+ takerAmount;
1965
+ makerAmount;
1966
+ constructor(data) {
1967
+ super();
1968
+ protobuf_1.proto3.util.initPartial(data, this);
1969
+ }
1970
+ static runtime = protobuf_1.proto3;
1971
+ static typeName = "micro.v1.education.ExcelDataEntryDto";
1972
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1973
+ { no: 1, name: "date", kind: "scalar", T: 9 },
1974
+ { no: 2, name: "deposits_amount", kind: "scalar", T: 9, opt: true },
1975
+ { no: 3, name: "trading_amount", kind: "scalar", T: 9, opt: true },
1976
+ { no: 4, name: "taker_amount", kind: "scalar", T: 9, opt: true },
1977
+ { no: 5, name: "maker_amount", kind: "scalar", T: 9, opt: true },
1978
+ ]);
1979
+ static fromBinary(bytes, options) {
1980
+ return new ExcelDataEntryDto().fromBinary(bytes, options);
1981
+ }
1982
+ static fromJson(jsonValue, options) {
1983
+ return new ExcelDataEntryDto().fromJson(jsonValue, options);
1984
+ }
1985
+ static fromJsonString(jsonString, options) {
1986
+ return new ExcelDataEntryDto().fromJsonString(jsonString, options);
1987
+ }
1988
+ static equals(a, b) {
1989
+ return protobuf_1.proto3.util.equals(ExcelDataEntryDto, a, b);
1990
+ }
1991
+ }
1992
+ exports.ExcelDataEntryDto = ExcelDataEntryDto;
1993
+ class ExcelDataComparisonDto extends protobuf_1.Message {
1994
+ type = "";
1995
+ daysDifference = 0;
1996
+ depositsAmountDiff = "";
1997
+ tradingAmountDiff = "";
1998
+ takerAmountDiff = "";
1999
+ makerAmountDiff = "";
2000
+ constructor(data) {
2001
+ super();
2002
+ protobuf_1.proto3.util.initPartial(data, this);
2003
+ }
2004
+ static runtime = protobuf_1.proto3;
2005
+ static typeName = "micro.v1.education.ExcelDataComparisonDto";
2006
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2007
+ { no: 1, name: "type", kind: "scalar", T: 9 },
2008
+ { no: 2, name: "days_difference", kind: "scalar", T: 5 },
2009
+ { no: 3, name: "deposits_amount_diff", kind: "scalar", T: 9 },
2010
+ { no: 4, name: "trading_amount_diff", kind: "scalar", T: 9 },
2011
+ { no: 5, name: "taker_amount_diff", kind: "scalar", T: 9 },
2012
+ { no: 6, name: "maker_amount_diff", kind: "scalar", T: 9 },
2013
+ ]);
2014
+ static fromBinary(bytes, options) {
2015
+ return new ExcelDataComparisonDto().fromBinary(bytes, options);
2016
+ }
2017
+ static fromJson(jsonValue, options) {
2018
+ return new ExcelDataComparisonDto().fromJson(jsonValue, options);
2019
+ }
2020
+ static fromJsonString(jsonString, options) {
2021
+ return new ExcelDataComparisonDto().fromJsonString(jsonString, options);
2022
+ }
2023
+ static equals(a, b) {
2024
+ return protobuf_1.proto3.util.equals(ExcelDataComparisonDto, a, b);
2025
+ }
2026
+ }
2027
+ exports.ExcelDataComparisonDto = ExcelDataComparisonDto;
2028
+ class ExchangeDataItemDto extends protobuf_1.Message {
2029
+ item = { case: undefined };
2030
+ constructor(data) {
2031
+ super();
2032
+ protobuf_1.proto3.util.initPartial(data, this);
2033
+ }
2034
+ static runtime = protobuf_1.proto3;
2035
+ static typeName = "micro.v1.education.ExchangeDataItemDto";
2036
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2037
+ { no: 1, name: "entry", kind: "message", T: ExcelDataEntryDto, oneof: "item" },
2038
+ { no: 2, name: "comparison", kind: "message", T: ExcelDataComparisonDto, oneof: "item" },
2039
+ ]);
2040
+ static fromBinary(bytes, options) {
2041
+ return new ExchangeDataItemDto().fromBinary(bytes, options);
2042
+ }
2043
+ static fromJson(jsonValue, options) {
2044
+ return new ExchangeDataItemDto().fromJson(jsonValue, options);
2045
+ }
2046
+ static fromJsonString(jsonString, options) {
2047
+ return new ExchangeDataItemDto().fromJsonString(jsonString, options);
2048
+ }
2049
+ static equals(a, b) {
2050
+ return protobuf_1.proto3.util.equals(ExchangeDataItemDto, a, b);
2051
+ }
2052
+ }
2053
+ exports.ExchangeDataItemDto = ExchangeDataItemDto;
2054
+ class ExcelDataDto extends protobuf_1.Message {
2055
+ id = "";
2056
+ date = "";
2057
+ uid = "";
2058
+ vipLevel;
2059
+ userEngagement;
2060
+ joinedBybit;
2061
+ source;
2062
+ remarks;
2063
+ kycLevel;
2064
+ coin;
2065
+ firstTimeDeposited;
2066
+ depositsAmount;
2067
+ tradingAmount;
2068
+ takerAmount;
2069
+ makerAmount;
2070
+ interest;
2071
+ feeProfit;
2072
+ commissions;
2073
+ tradfiAmount;
2074
+ createdAt = "";
2075
+ updatedAt;
2076
+ constructor(data) {
2077
+ super();
2078
+ protobuf_1.proto3.util.initPartial(data, this);
2079
+ }
2080
+ static runtime = protobuf_1.proto3;
2081
+ static typeName = "micro.v1.education.ExcelDataDto";
2082
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2083
+ { no: 1, name: "id", kind: "scalar", T: 9 },
2084
+ { no: 2, name: "date", kind: "scalar", T: 9 },
2085
+ { no: 3, name: "uid", kind: "scalar", T: 9 },
2086
+ { no: 4, name: "vip_level", kind: "scalar", T: 9, opt: true },
2087
+ { no: 5, name: "user_engagement", kind: "scalar", T: 9, opt: true },
2088
+ { no: 6, name: "joined_bybit", kind: "scalar", T: 9, opt: true },
2089
+ { no: 7, name: "source", kind: "scalar", T: 9, opt: true },
2090
+ { no: 8, name: "remarks", kind: "scalar", T: 9, opt: true },
2091
+ { no: 9, name: "kyc_level", kind: "scalar", T: 9, opt: true },
2092
+ { no: 10, name: "coin", kind: "scalar", T: 9, opt: true },
2093
+ { no: 11, name: "first_time_deposited", kind: "scalar", T: 9, opt: true },
2094
+ { no: 12, name: "deposits_amount", kind: "scalar", T: 9, opt: true },
2095
+ { no: 13, name: "trading_amount", kind: "scalar", T: 9, opt: true },
2096
+ { no: 14, name: "taker_amount", kind: "scalar", T: 9, opt: true },
2097
+ { no: 15, name: "maker_amount", kind: "scalar", T: 9, opt: true },
2098
+ { no: 16, name: "interest", kind: "scalar", T: 9, opt: true },
2099
+ { no: 17, name: "fee_profit", kind: "scalar", T: 9, opt: true },
2100
+ { no: 18, name: "commissions", kind: "scalar", T: 9, opt: true },
2101
+ { no: 19, name: "tradfi_amount", kind: "scalar", T: 9, opt: true },
2102
+ { no: 20, name: "created_at", kind: "scalar", T: 9 },
2103
+ { no: 21, name: "updated_at", kind: "scalar", T: 9, opt: true },
2104
+ ]);
2105
+ static fromBinary(bytes, options) {
2106
+ return new ExcelDataDto().fromBinary(bytes, options);
2107
+ }
2108
+ static fromJson(jsonValue, options) {
2109
+ return new ExcelDataDto().fromJson(jsonValue, options);
2110
+ }
2111
+ static fromJsonString(jsonString, options) {
2112
+ return new ExcelDataDto().fromJsonString(jsonString, options);
2113
+ }
2114
+ static equals(a, b) {
2115
+ return protobuf_1.proto3.util.equals(ExcelDataDto, a, b);
2116
+ }
2117
+ }
2118
+ exports.ExcelDataDto = ExcelDataDto;
2119
+ class ExcelDataByUidRequest extends protobuf_1.Message {
2120
+ uid = "";
2121
+ constructor(data) {
2122
+ super();
2123
+ protobuf_1.proto3.util.initPartial(data, this);
2124
+ }
2125
+ static runtime = protobuf_1.proto3;
2126
+ static typeName = "micro.v1.education.ExcelDataByUidRequest";
2127
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2128
+ { no: 1, name: "uid", kind: "scalar", T: 9 },
2129
+ ]);
2130
+ static fromBinary(bytes, options) {
2131
+ return new ExcelDataByUidRequest().fromBinary(bytes, options);
2132
+ }
2133
+ static fromJson(jsonValue, options) {
2134
+ return new ExcelDataByUidRequest().fromJson(jsonValue, options);
2135
+ }
2136
+ static fromJsonString(jsonString, options) {
2137
+ return new ExcelDataByUidRequest().fromJsonString(jsonString, options);
2138
+ }
2139
+ static equals(a, b) {
2140
+ return protobuf_1.proto3.util.equals(ExcelDataByUidRequest, a, b);
2141
+ }
2142
+ }
2143
+ exports.ExcelDataByUidRequest = ExcelDataByUidRequest;
2144
+ class ExcelDataListResponse extends protobuf_1.Message {
2145
+ status;
2146
+ data = [];
2147
+ total = 0;
2148
+ constructor(data) {
2149
+ super();
2150
+ protobuf_1.proto3.util.initPartial(data, this);
2151
+ }
2152
+ static runtime = protobuf_1.proto3;
2153
+ static typeName = "micro.v1.education.ExcelDataListResponse";
2154
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2155
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
2156
+ { no: 2, name: "data", kind: "message", T: ExcelDataDto, repeated: true },
2157
+ { no: 3, name: "total", kind: "scalar", T: 5 },
2158
+ ]);
2159
+ static fromBinary(bytes, options) {
2160
+ return new ExcelDataListResponse().fromBinary(bytes, options);
2161
+ }
2162
+ static fromJson(jsonValue, options) {
2163
+ return new ExcelDataListResponse().fromJson(jsonValue, options);
2164
+ }
2165
+ static fromJsonString(jsonString, options) {
2166
+ return new ExcelDataListResponse().fromJsonString(jsonString, options);
2167
+ }
2168
+ static equals(a, b) {
2169
+ return protobuf_1.proto3.util.equals(ExcelDataListResponse, a, b);
2170
+ }
2171
+ }
2172
+ exports.ExcelDataListResponse = ExcelDataListResponse;
@@ -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, UserRefAdminCreateRequest, UserRefAdminListRequest, UserRefAdminListResponse, UserRefAdminSingleResponse, UserRefAdminUpdateRequest, UserRefsByUserIdRequest, UserRefsByUserIdResponse, UserRefUpdateByUserIdRequest, UserRefUpdateByUserIdResponse, 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, ExcelDataByUidRequest, ExcelDataListResponse, 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: {
@@ -495,13 +495,13 @@ export declare const PEducationUserDataService: {
495
495
  };
496
496
  };
497
497
  };
498
- export declare const PExcelDataService: {
499
- readonly typeName: "micro.v1.education.PExcelDataService";
498
+ export declare const PExcelDataAdminService: {
499
+ readonly typeName: "micro.v1.education.PExcelDataAdminService";
500
500
  readonly methods: {
501
- readonly processExcelFiles: {
502
- readonly name: "processExcelFiles";
503
- readonly I: typeof EmptyRequest;
504
- readonly O: typeof EmptyResponse;
501
+ readonly getByUid: {
502
+ readonly name: "getByUid";
503
+ readonly I: typeof ExcelDataByUidRequest;
504
+ readonly O: typeof ExcelDataListResponse;
505
505
  readonly kind: MethodKind.Unary;
506
506
  };
507
507
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PExcelDataService = 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;
3
+ exports.PExcelDataAdminService = 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");
@@ -498,13 +498,13 @@ exports.PEducationUserDataService = {
498
498
  },
499
499
  }
500
500
  };
501
- exports.PExcelDataService = {
502
- typeName: "micro.v1.education.PExcelDataService",
501
+ exports.PExcelDataAdminService = {
502
+ typeName: "micro.v1.education.PExcelDataAdminService",
503
503
  methods: {
504
- processExcelFiles: {
505
- name: "processExcelFiles",
506
- I: general_pb_js_1.EmptyRequest,
507
- O: general_pb_js_1.EmptyResponse,
504
+ getByUid: {
505
+ name: "getByUid",
506
+ I: education_messages_pb_js_1.ExcelDataByUidRequest,
507
+ O: education_messages_pb_js_1.ExcelDataListResponse,
508
508
  kind: protobuf_1.MethodKind.Unary,
509
509
  },
510
510
  }
@@ -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, UserRefAdminCreateRequest, UserRefAdminListRequest, UserRefAdminListResponse, UserRefAdminSingleResponse, UserRefAdminUpdateRequest, UserRefsByUserIdRequest, UserRefsByUserIdResponse, UserRefUpdateByUserIdRequest, UserRefUpdateByUserIdResponse, 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, ExcelDataByUidRequest, ExcelDataListResponse, 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 {
@@ -238,11 +238,11 @@ export interface PEducationUserDataServiceController {
238
238
  }
239
239
  export declare function PEducationUserDataServiceControllerMethods(): (constructor: Function) => void;
240
240
  export declare const P_EDUCATION_USER_DATA_SERVICE_NAME = "PEducationUserDataService";
241
- export interface PExcelDataServiceClient {
242
- processExcelFiles(request: EmptyRequest, metadata?: Metadata): Observable<EmptyResponse>;
241
+ export interface PExcelDataAdminServiceClient {
242
+ getByUid(request: ExcelDataByUidRequest, metadata?: Metadata): Observable<ExcelDataListResponse>;
243
243
  }
244
- export interface PExcelDataServiceController {
245
- processExcelFiles(request: EmptyRequest, metadata?: Metadata): Promise<EmptyResponse> | Observable<EmptyResponse> | EmptyResponse;
244
+ export interface PExcelDataAdminServiceController {
245
+ getByUid(request: ExcelDataByUidRequest, metadata?: Metadata): Promise<ExcelDataListResponse> | Observable<ExcelDataListResponse> | ExcelDataListResponse;
246
246
  }
247
- export declare function PExcelDataServiceControllerMethods(): (constructor: Function) => void;
248
- export declare const P_EXCEL_DATA_SERVICE_NAME = "PExcelDataService";
247
+ export declare function PExcelDataAdminServiceControllerMethods(): (constructor: Function) => void;
248
+ export declare const P_EXCEL_DATA_ADMIN_SERVICE_NAME = "PExcelDataAdminService";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.P_EXCEL_DATA_SERVICE_NAME = 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;
3
+ exports.P_EXCEL_DATA_ADMIN_SERVICE_NAME = 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;
@@ -17,7 +17,7 @@ exports.PUserVipServiceControllerMethods = PUserVipServiceControllerMethods;
17
17
  exports.PVipAdminServiceControllerMethods = PVipAdminServiceControllerMethods;
18
18
  exports.PUserRefsAdminServiceControllerMethods = PUserRefsAdminServiceControllerMethods;
19
19
  exports.PEducationUserDataServiceControllerMethods = PEducationUserDataServiceControllerMethods;
20
- exports.PExcelDataServiceControllerMethods = PExcelDataServiceControllerMethods;
20
+ exports.PExcelDataAdminServiceControllerMethods = PExcelDataAdminServiceControllerMethods;
21
21
  const microservices_1 = require("@nestjs/microservices");
22
22
  exports.protobufPackage = "micro.v1.education";
23
23
  exports.MICRO_V1_EDUCATION_PACKAGE_NAME = "micro.v1.education";
@@ -269,18 +269,18 @@ function PEducationUserDataServiceControllerMethods() {
269
269
  };
270
270
  }
271
271
  exports.P_EDUCATION_USER_DATA_SERVICE_NAME = "PEducationUserDataService";
272
- function PExcelDataServiceControllerMethods() {
272
+ function PExcelDataAdminServiceControllerMethods() {
273
273
  return function (constructor) {
274
- const grpcMethods = ["processExcelFiles"];
274
+ const grpcMethods = ["getByUid"];
275
275
  for (const method of grpcMethods) {
276
276
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
277
- (0, microservices_1.GrpcMethod)("PExcelDataService", method)(constructor.prototype[method], method, descriptor);
277
+ (0, microservices_1.GrpcMethod)("PExcelDataAdminService", method)(constructor.prototype[method], method, descriptor);
278
278
  }
279
279
  const grpcStreamMethods = [];
280
280
  for (const method of grpcStreamMethods) {
281
281
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
282
- (0, microservices_1.GrpcStreamMethod)("PExcelDataService", method)(constructor.prototype[method], method, descriptor);
282
+ (0, microservices_1.GrpcStreamMethod)("PExcelDataAdminService", method)(constructor.prototype[method], method, descriptor);
283
283
  }
284
284
  };
285
285
  }
286
- exports.P_EXCEL_DATA_SERVICE_NAME = "PExcelDataService";
286
+ exports.P_EXCEL_DATA_ADMIN_SERVICE_NAME = "PExcelDataAdminService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -460,4 +460,62 @@ message UserRefAdminUpdateRequest {
460
460
 
461
461
  message UserRefAdminDeleteRequest {
462
462
  string id = 1;
463
+ }
464
+
465
+ message ExcelDataEntryDto {
466
+ string date = 1;
467
+ optional string deposits_amount = 2;
468
+ optional string trading_amount = 3;
469
+ optional string taker_amount = 4;
470
+ optional string maker_amount = 5;
471
+ }
472
+
473
+ message ExcelDataComparisonDto {
474
+ string type = 1;
475
+ int32 days_difference = 2;
476
+ string deposits_amount_diff = 3;
477
+ string trading_amount_diff = 4;
478
+ string taker_amount_diff = 5;
479
+ string maker_amount_diff = 6;
480
+ }
481
+
482
+ message ExchangeDataItemDto {
483
+ oneof item {
484
+ ExcelDataEntryDto entry = 1;
485
+ ExcelDataComparisonDto comparison = 2;
486
+ }
487
+ }
488
+
489
+ message ExcelDataDto {
490
+ string id = 1;
491
+ string date = 2;
492
+ string uid = 3;
493
+ optional string vip_level = 4;
494
+ optional string user_engagement = 5;
495
+ optional string joined_bybit = 6;
496
+ optional string source = 7;
497
+ optional string remarks = 8;
498
+ optional string kyc_level = 9;
499
+ optional string coin = 10;
500
+ optional string first_time_deposited = 11;
501
+ optional string deposits_amount = 12;
502
+ optional string trading_amount = 13;
503
+ optional string taker_amount = 14;
504
+ optional string maker_amount = 15;
505
+ optional string interest = 16;
506
+ optional string fee_profit = 17;
507
+ optional string commissions = 18;
508
+ optional string tradfi_amount = 19;
509
+ string created_at = 20;
510
+ optional string updated_at = 21;
511
+ }
512
+
513
+ message ExcelDataByUidRequest {
514
+ string uid = 1;
515
+ }
516
+
517
+ message ExcelDataListResponse {
518
+ ResponseStatus status = 1;
519
+ repeated ExcelDataDto data = 2;
520
+ int32 total = 3;
463
521
  }
@@ -123,6 +123,6 @@ service PEducationUserDataService {
123
123
  rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
124
124
  }
125
125
 
126
- service PExcelDataService {
127
- rpc processExcelFiles(EmptyRequest) returns (EmptyResponse);
126
+ service PExcelDataAdminService {
127
+ rpc getByUid(ExcelDataByUidRequest) returns (ExcelDataListResponse);
128
128
  }