jr-common-micro 1.1.105 → 1.1.107
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/mining/mining_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.js +2 -0
- package/dist/proto/micro/v1/support/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/support/services_connect.js +6 -0
- package/dist/proto/micro/v1/support/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/support/services_nest.js +1 -0
- package/dist/proto/micro/v1/support/support_messages_nest.d.ts +4 -0
- package/dist/proto/micro/v1/support/support_messages_pb.d.ts +12 -0
- package/dist/proto/micro/v1/support/support_messages_pb.js +28 -1
- package/package.json +1 -1
- package/proto/micro/v1/mining/mining_messages.proto +4 -0
- package/proto/micro/v1/support/services.proto +3 -0
- package/proto/micro/v1/support/support_messages.proto +5 -0
|
@@ -279,6 +279,7 @@ export declare class ReferralItem extends Message<ReferralItem> {
|
|
|
279
279
|
inTeam: boolean;
|
|
280
280
|
teamEligible: boolean;
|
|
281
281
|
joinedAt: string;
|
|
282
|
+
pendingReason: string;
|
|
282
283
|
constructor(data?: PartialMessage<ReferralItem>);
|
|
283
284
|
static readonly runtime: typeof proto3;
|
|
284
285
|
static readonly typeName = "micro.v1.mining.ReferralItem";
|
|
@@ -591,6 +591,7 @@ class ReferralItem extends protobuf_1.Message {
|
|
|
591
591
|
inTeam = false;
|
|
592
592
|
teamEligible = false;
|
|
593
593
|
joinedAt = "";
|
|
594
|
+
pendingReason = "";
|
|
594
595
|
constructor(data) {
|
|
595
596
|
super();
|
|
596
597
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -611,6 +612,7 @@ class ReferralItem extends protobuf_1.Message {
|
|
|
611
612
|
{ no: 11, name: "in_team", kind: "scalar", T: 8 },
|
|
612
613
|
{ no: 12, name: "team_eligible", kind: "scalar", T: 8 },
|
|
613
614
|
{ no: 13, name: "joined_at", kind: "scalar", T: 9 },
|
|
615
|
+
{ no: 14, name: "pending_reason", kind: "scalar", T: 9 },
|
|
614
616
|
]);
|
|
615
617
|
static fromBinary(bytes, options) {
|
|
616
618
|
return new ReferralItem().fromBinary(bytes, options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateTicketRequest, ReplyRequest, SetStatusRequest, TicketListRequest, TicketListResponse, TicketThreadResponse } from "./support_messages_pb.js";
|
|
1
|
+
import { CreateTicketRequest, DeleteMessageRequest, ReplyRequest, SetStatusRequest, TicketListRequest, TicketListResponse, TicketThreadResponse } from "./support_messages_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
import { ByIdRequest, EmptyResponse } from "../general_pb.js";
|
|
4
4
|
export declare const PSupportService: {
|
|
@@ -28,6 +28,12 @@ export declare const PSupportService: {
|
|
|
28
28
|
readonly O: typeof TicketThreadResponse;
|
|
29
29
|
readonly kind: MethodKind.ServerStreaming;
|
|
30
30
|
};
|
|
31
|
+
readonly deleteMessage: {
|
|
32
|
+
readonly name: "DeleteMessage";
|
|
33
|
+
readonly I: typeof DeleteMessageRequest;
|
|
34
|
+
readonly O: typeof TicketThreadResponse;
|
|
35
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
36
|
+
};
|
|
31
37
|
readonly adminTickets: {
|
|
32
38
|
readonly name: "AdminTickets";
|
|
33
39
|
readonly I: typeof TicketListRequest;
|
|
@@ -31,6 +31,12 @@ exports.PSupportService = {
|
|
|
31
31
|
O: support_messages_pb_js_1.TicketThreadResponse,
|
|
32
32
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
33
33
|
},
|
|
34
|
+
deleteMessage: {
|
|
35
|
+
name: "DeleteMessage",
|
|
36
|
+
I: support_messages_pb_js_1.DeleteMessageRequest,
|
|
37
|
+
O: support_messages_pb_js_1.TicketThreadResponse,
|
|
38
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
39
|
+
},
|
|
34
40
|
adminTickets: {
|
|
35
41
|
name: "AdminTickets",
|
|
36
42
|
I: support_messages_pb_js_1.TicketListRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyResponse } from "../general_nest";
|
|
4
|
-
import { CreateTicketRequest, ReplyRequest, SetStatusRequest, TicketListRequest, TicketListResponse, TicketThreadResponse } from "./support_messages_nest";
|
|
4
|
+
import { CreateTicketRequest, DeleteMessageRequest, ReplyRequest, SetStatusRequest, TicketListRequest, TicketListResponse, TicketThreadResponse } from "./support_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.support";
|
|
6
6
|
export declare const MICRO_V1_SUPPORT_PACKAGE_NAME = "micro.v1.support";
|
|
7
7
|
export interface PSupportServiceClient {
|
|
@@ -9,6 +9,7 @@ export interface PSupportServiceClient {
|
|
|
9
9
|
myTickets(request: TicketListRequest, metadata?: Metadata): Observable<TicketListResponse>;
|
|
10
10
|
ticket(request: ByIdRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
11
11
|
reply(request: ReplyRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
12
|
+
deleteMessage(request: DeleteMessageRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
12
13
|
adminTickets(request: TicketListRequest, metadata?: Metadata): Observable<TicketListResponse>;
|
|
13
14
|
adminTicket(request: ByIdRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
14
15
|
adminSetStatus(request: SetStatusRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
@@ -19,6 +20,7 @@ export interface PSupportServiceController {
|
|
|
19
20
|
myTickets(request: TicketListRequest, metadata?: Metadata): Observable<TicketListResponse>;
|
|
20
21
|
ticket(request: ByIdRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
21
22
|
reply(request: ReplyRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
23
|
+
deleteMessage(request: DeleteMessageRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
22
24
|
adminTickets(request: TicketListRequest, metadata?: Metadata): Observable<TicketListResponse>;
|
|
23
25
|
adminTicket(request: ByIdRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
24
26
|
adminSetStatus(request: SetStatusRequest, metadata?: Metadata): Observable<TicketThreadResponse>;
|
|
@@ -48,6 +48,10 @@ export interface ReplyRequest {
|
|
|
48
48
|
message: string;
|
|
49
49
|
attachment_url: string;
|
|
50
50
|
}
|
|
51
|
+
export interface DeleteMessageRequest {
|
|
52
|
+
ticket_id: string;
|
|
53
|
+
message_id: string;
|
|
54
|
+
}
|
|
51
55
|
export interface SetStatusRequest {
|
|
52
56
|
ticket_id: string;
|
|
53
57
|
status: string;
|
|
@@ -89,6 +89,18 @@ export declare class ReplyRequest extends Message<ReplyRequest> {
|
|
|
89
89
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReplyRequest;
|
|
90
90
|
static equals(a: ReplyRequest | PlainMessage<ReplyRequest> | undefined, b: ReplyRequest | PlainMessage<ReplyRequest> | undefined): boolean;
|
|
91
91
|
}
|
|
92
|
+
export declare class DeleteMessageRequest extends Message<DeleteMessageRequest> {
|
|
93
|
+
ticketId: string;
|
|
94
|
+
messageId: string;
|
|
95
|
+
constructor(data?: PartialMessage<DeleteMessageRequest>);
|
|
96
|
+
static readonly runtime: typeof proto3;
|
|
97
|
+
static readonly typeName = "micro.v1.support.DeleteMessageRequest";
|
|
98
|
+
static readonly fields: FieldList;
|
|
99
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMessageRequest;
|
|
100
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMessageRequest;
|
|
101
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMessageRequest;
|
|
102
|
+
static equals(a: DeleteMessageRequest | PlainMessage<DeleteMessageRequest> | undefined, b: DeleteMessageRequest | PlainMessage<DeleteMessageRequest> | undefined): boolean;
|
|
103
|
+
}
|
|
92
104
|
export declare class SetStatusRequest extends Message<SetStatusRequest> {
|
|
93
105
|
ticketId: string;
|
|
94
106
|
status: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketThreadResponse = exports.TicketListResponse = exports.TicketResponse = exports.SetStatusRequest = exports.ReplyRequest = exports.TicketListRequest = exports.CreateTicketRequest = exports.TicketMessage = exports.Ticket = void 0;
|
|
3
|
+
exports.TicketThreadResponse = exports.TicketListResponse = exports.TicketResponse = exports.SetStatusRequest = exports.DeleteMessageRequest = exports.ReplyRequest = exports.TicketListRequest = exports.CreateTicketRequest = exports.TicketMessage = exports.Ticket = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class Ticket extends protobuf_1.Message {
|
|
@@ -194,6 +194,33 @@ class ReplyRequest extends protobuf_1.Message {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
exports.ReplyRequest = ReplyRequest;
|
|
197
|
+
class DeleteMessageRequest extends protobuf_1.Message {
|
|
198
|
+
ticketId = "";
|
|
199
|
+
messageId = "";
|
|
200
|
+
constructor(data) {
|
|
201
|
+
super();
|
|
202
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
203
|
+
}
|
|
204
|
+
static runtime = protobuf_1.proto3;
|
|
205
|
+
static typeName = "micro.v1.support.DeleteMessageRequest";
|
|
206
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
207
|
+
{ no: 1, name: "ticket_id", kind: "scalar", T: 9 },
|
|
208
|
+
{ no: 2, name: "message_id", kind: "scalar", T: 9 },
|
|
209
|
+
]);
|
|
210
|
+
static fromBinary(bytes, options) {
|
|
211
|
+
return new DeleteMessageRequest().fromBinary(bytes, options);
|
|
212
|
+
}
|
|
213
|
+
static fromJson(jsonValue, options) {
|
|
214
|
+
return new DeleteMessageRequest().fromJson(jsonValue, options);
|
|
215
|
+
}
|
|
216
|
+
static fromJsonString(jsonString, options) {
|
|
217
|
+
return new DeleteMessageRequest().fromJsonString(jsonString, options);
|
|
218
|
+
}
|
|
219
|
+
static equals(a, b) {
|
|
220
|
+
return protobuf_1.proto3.util.equals(DeleteMessageRequest, a, b);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
exports.DeleteMessageRequest = DeleteMessageRequest;
|
|
197
224
|
class SetStatusRequest extends protobuf_1.Message {
|
|
198
225
|
ticketId = "";
|
|
199
226
|
status = "";
|
package/package.json
CHANGED
|
@@ -241,6 +241,10 @@ message ReferralItem {
|
|
|
241
241
|
bool in_team = 11;
|
|
242
242
|
bool team_eligible = 12;
|
|
243
243
|
string joined_at = 13;
|
|
244
|
+
// Why an unverified (not yet activated) invitee is still waiting:
|
|
245
|
+
// email (not verified) | username (verified, no username yet) | app
|
|
246
|
+
// (both done, the mining screen not opened yet) | '' once activated.
|
|
247
|
+
string pending_reason = 14;
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
message ReferralListRequest {
|
|
@@ -14,6 +14,9 @@ service PSupportService {
|
|
|
14
14
|
rpc Ticket(ByIdRequest) returns(stream TicketThreadResponse) {}
|
|
15
15
|
// A person writing into their own ticket, or an admin answering any.
|
|
16
16
|
rpc Reply(ReplyRequest) returns(stream TicketThreadResponse) {}
|
|
17
|
+
// Taking a message back: the author their own, an admin any team answer.
|
|
18
|
+
// The ticket's opening message cannot be taken back (it is the ticket).
|
|
19
|
+
rpc DeleteMessage(DeleteMessageRequest) returns(stream TicketThreadResponse) {}
|
|
17
20
|
|
|
18
21
|
rpc AdminTickets(TicketListRequest) returns(stream TicketListResponse) {}
|
|
19
22
|
// The thread for an admin; marks the person's messages as read for admins.
|