jr-common-micro 1.1.19 → 1.1.21

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