jr-common-micro 1.1.104 → 1.1.105

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.
@@ -378,6 +378,16 @@ export interface AdminUserResponse {
378
378
  pending_total: string;
379
379
  total_received_gifts: string;
380
380
  risk?: AdminRiskFlag | undefined;
381
+ state?: MiningState | undefined;
382
+ tasks: TaskInfo[];
383
+ sessions: SessionInfo[];
384
+ team_seats: AdminTeamSeat[];
385
+ }
386
+ export interface AdminTeamSeat {
387
+ owner_id: string;
388
+ owner_username: string;
389
+ active_from: string;
390
+ active_until: string;
381
391
  }
382
392
  export interface AdminRiskSignal {
383
393
  key: string;
@@ -755,6 +755,10 @@ export declare class AdminUserResponse extends Message<AdminUserResponse> {
755
755
  pendingTotal: string;
756
756
  totalReceivedGifts: string;
757
757
  risk?: AdminRiskFlag;
758
+ state?: MiningState;
759
+ tasks: TaskInfo[];
760
+ sessions: SessionInfo[];
761
+ teamSeats: AdminTeamSeat[];
758
762
  constructor(data?: PartialMessage<AdminUserResponse>);
759
763
  static readonly runtime: typeof proto3;
760
764
  static readonly typeName = "micro.v1.mining.AdminUserResponse";
@@ -764,6 +768,20 @@ export declare class AdminUserResponse extends Message<AdminUserResponse> {
764
768
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminUserResponse;
765
769
  static equals(a: AdminUserResponse | PlainMessage<AdminUserResponse> | undefined, b: AdminUserResponse | PlainMessage<AdminUserResponse> | undefined): boolean;
766
770
  }
771
+ export declare class AdminTeamSeat extends Message<AdminTeamSeat> {
772
+ ownerId: string;
773
+ ownerUsername: string;
774
+ activeFrom: string;
775
+ activeUntil: string;
776
+ constructor(data?: PartialMessage<AdminTeamSeat>);
777
+ static readonly runtime: typeof proto3;
778
+ static readonly typeName = "micro.v1.mining.AdminTeamSeat";
779
+ static readonly fields: FieldList;
780
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminTeamSeat;
781
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminTeamSeat;
782
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTeamSeat;
783
+ static equals(a: AdminTeamSeat | PlainMessage<AdminTeamSeat> | undefined, b: AdminTeamSeat | PlainMessage<AdminTeamSeat> | undefined): boolean;
784
+ }
767
785
  export declare class AdminRiskSignal extends Message<AdminRiskSignal> {
768
786
  key: string;
769
787
  count: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdminRiskFlag = exports.AdminRiskSignal = exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.AdminTasksResponse = exports.AdminTaskItem = exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminOverviewResponse = exports.AdminTopReferrer = exports.AdminTaskStat = exports.AdminSeries = exports.AdminSeriesPoint = exports.AdminMetric = exports.AdminOverviewRequest = exports.ConfigResponse = exports.ResolveCodeResponse = exports.ResolveCodeRequest = exports.EnrollResponse = exports.EnrollRequest = exports.UpdateSettingsRequest = exports.HistoryResponse = exports.HistoryDay = exports.HistoryItem = exports.HistoryRequest = exports.TeamResponse = exports.SetTeamRequest = exports.ClaimResponse = exports.ReferralListResponse = exports.ReferralListRequest = exports.ReferralItem = exports.TaskEventResponse = exports.TaskEventRequest = exports.TasksResponse = exports.MiningMeResponse = exports.MiningState = exports.MiningSettings = exports.TasksSummary = exports.TaskInfo = exports.TeamInfo = exports.TeamWeek = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
4
- exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = void 0;
3
+ exports.AdminRiskSignal = exports.AdminTeamSeat = exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.AdminTasksResponse = exports.AdminTaskItem = exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminOverviewResponse = exports.AdminTopReferrer = exports.AdminTaskStat = exports.AdminSeries = exports.AdminSeriesPoint = exports.AdminMetric = exports.AdminOverviewRequest = exports.ConfigResponse = exports.ResolveCodeResponse = exports.ResolveCodeRequest = exports.EnrollResponse = exports.EnrollRequest = exports.UpdateSettingsRequest = exports.HistoryResponse = exports.HistoryDay = exports.HistoryItem = exports.HistoryRequest = exports.TeamResponse = exports.SetTeamRequest = exports.ClaimResponse = exports.ReferralListResponse = exports.ReferralListRequest = exports.ReferralItem = exports.TaskEventResponse = exports.TaskEventRequest = exports.TasksResponse = exports.MiningMeResponse = exports.MiningState = exports.MiningSettings = exports.TasksSummary = exports.TaskInfo = exports.TeamInfo = exports.TeamWeek = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
4
+ exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminRiskFlag = void 0;
5
5
  const protobuf_1 = require("@bufbuild/protobuf");
6
6
  const general_pb_js_1 = require("../general_pb.js");
7
7
  class SessionInfo extends protobuf_1.Message {
@@ -1642,6 +1642,10 @@ class AdminUserResponse extends protobuf_1.Message {
1642
1642
  pendingTotal = "";
1643
1643
  totalReceivedGifts = "";
1644
1644
  risk;
1645
+ state;
1646
+ tasks = [];
1647
+ sessions = [];
1648
+ teamSeats = [];
1645
1649
  constructor(data) {
1646
1650
  super();
1647
1651
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1659,6 +1663,10 @@ class AdminUserResponse extends protobuf_1.Message {
1659
1663
  { no: 8, name: "pending_total", kind: "scalar", T: 9 },
1660
1664
  { no: 9, name: "total_received_gifts", kind: "scalar", T: 9 },
1661
1665
  { no: 10, name: "risk", kind: "message", T: AdminRiskFlag, opt: true },
1666
+ { no: 11, name: "state", kind: "message", T: MiningState, opt: true },
1667
+ { no: 12, name: "tasks", kind: "message", T: TaskInfo, repeated: true },
1668
+ { no: 13, name: "sessions", kind: "message", T: SessionInfo, repeated: true },
1669
+ { no: 14, name: "team_seats", kind: "message", T: AdminTeamSeat, repeated: true },
1662
1670
  ]);
1663
1671
  static fromBinary(bytes, options) {
1664
1672
  return new AdminUserResponse().fromBinary(bytes, options);
@@ -1674,6 +1682,37 @@ class AdminUserResponse extends protobuf_1.Message {
1674
1682
  }
1675
1683
  }
1676
1684
  exports.AdminUserResponse = AdminUserResponse;
1685
+ class AdminTeamSeat extends protobuf_1.Message {
1686
+ ownerId = "";
1687
+ ownerUsername = "";
1688
+ activeFrom = "";
1689
+ activeUntil = "";
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.mining.AdminTeamSeat";
1696
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1697
+ { no: 1, name: "owner_id", kind: "scalar", T: 9 },
1698
+ { no: 2, name: "owner_username", kind: "scalar", T: 9 },
1699
+ { no: 3, name: "active_from", kind: "scalar", T: 9 },
1700
+ { no: 4, name: "active_until", kind: "scalar", T: 9 },
1701
+ ]);
1702
+ static fromBinary(bytes, options) {
1703
+ return new AdminTeamSeat().fromBinary(bytes, options);
1704
+ }
1705
+ static fromJson(jsonValue, options) {
1706
+ return new AdminTeamSeat().fromJson(jsonValue, options);
1707
+ }
1708
+ static fromJsonString(jsonString, options) {
1709
+ return new AdminTeamSeat().fromJsonString(jsonString, options);
1710
+ }
1711
+ static equals(a, b) {
1712
+ return protobuf_1.proto3.util.equals(AdminTeamSeat, a, b);
1713
+ }
1714
+ }
1715
+ exports.AdminTeamSeat = AdminTeamSeat;
1677
1716
  class AdminRiskSignal extends protobuf_1.Message {
1678
1717
  key = "";
1679
1718
  count = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.104",
3
+ "version": "1.1.105",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -539,6 +539,24 @@ message AdminUserResponse {
539
539
  string pending_total = 8;
540
540
  string total_received_gifts = 9;
541
541
  optional AdminRiskFlag risk = 10;
542
+ // The person's mining as the app shows it, read without side effects
543
+ // (no row is created, nothing is verified with an exchange). Unset when
544
+ // the person has no mining account.
545
+ optional MiningState state = 11;
546
+ // Every active task with this person's completion state.
547
+ repeated TaskInfo tasks = 12;
548
+ // The last 30 sessions, newest first.
549
+ repeated SessionInfo sessions = 13;
550
+ // Teams this person sits or sat in (by owner), newest first.
551
+ repeated AdminTeamSeat team_seats = 14;
552
+ }
553
+
554
+ message AdminTeamSeat {
555
+ string owner_id = 1;
556
+ string owner_username = 2;
557
+ string active_from = 3;
558
+ // '' while the seat is still taken.
559
+ string active_until = 4;
542
560
  }
543
561
 
544
562
  // One signal of the nightly scorer, with its evidence.