jr-common-micro 1.1.118 → 1.1.120
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.
|
@@ -445,6 +445,7 @@ export interface AdminModerateRequest {
|
|
|
445
445
|
reason: string;
|
|
446
446
|
note: string;
|
|
447
447
|
cascade_invitees: boolean;
|
|
448
|
+
referrer_code?: string | undefined;
|
|
448
449
|
}
|
|
449
450
|
export interface AdminDeviceClustersRequest {
|
|
450
451
|
state: string;
|
|
@@ -516,6 +517,7 @@ export interface AdminGiftPreviewResponse {
|
|
|
516
517
|
}
|
|
517
518
|
export interface AdminGiftConfirmRequest {
|
|
518
519
|
token: string;
|
|
520
|
+
code: string;
|
|
519
521
|
}
|
|
520
522
|
export interface AdminGift {
|
|
521
523
|
id: string;
|
|
@@ -890,6 +890,7 @@ export declare class AdminModerateRequest extends Message<AdminModerateRequest>
|
|
|
890
890
|
reason: string;
|
|
891
891
|
note: string;
|
|
892
892
|
cascadeInvitees: boolean;
|
|
893
|
+
referrerCode?: string;
|
|
893
894
|
constructor(data?: PartialMessage<AdminModerateRequest>);
|
|
894
895
|
static readonly runtime: typeof proto3;
|
|
895
896
|
static readonly typeName = "micro.v1.mining.AdminModerateRequest";
|
|
@@ -1017,6 +1018,7 @@ export declare class AdminGiftPreviewResponse extends Message<AdminGiftPreviewRe
|
|
|
1017
1018
|
}
|
|
1018
1019
|
export declare class AdminGiftConfirmRequest extends Message<AdminGiftConfirmRequest> {
|
|
1019
1020
|
token: string;
|
|
1021
|
+
code: string;
|
|
1020
1022
|
constructor(data?: PartialMessage<AdminGiftConfirmRequest>);
|
|
1021
1023
|
static readonly runtime: typeof proto3;
|
|
1022
1024
|
static readonly typeName = "micro.v1.mining.AdminGiftConfirmRequest";
|
|
@@ -1940,6 +1940,7 @@ class AdminModerateRequest extends protobuf_1.Message {
|
|
|
1940
1940
|
reason = "";
|
|
1941
1941
|
note = "";
|
|
1942
1942
|
cascadeInvitees = false;
|
|
1943
|
+
referrerCode;
|
|
1943
1944
|
constructor(data) {
|
|
1944
1945
|
super();
|
|
1945
1946
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1952,6 +1953,7 @@ class AdminModerateRequest extends protobuf_1.Message {
|
|
|
1952
1953
|
{ no: 3, name: "reason", kind: "scalar", T: 9 },
|
|
1953
1954
|
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
1954
1955
|
{ no: 5, name: "cascade_invitees", kind: "scalar", T: 8 },
|
|
1956
|
+
{ no: 6, name: "referrer_code", kind: "scalar", T: 9, opt: true },
|
|
1955
1957
|
]);
|
|
1956
1958
|
static fromBinary(bytes, options) {
|
|
1957
1959
|
return new AdminModerateRequest().fromBinary(bytes, options);
|
|
@@ -2214,6 +2216,7 @@ class AdminGiftPreviewResponse extends protobuf_1.Message {
|
|
|
2214
2216
|
exports.AdminGiftPreviewResponse = AdminGiftPreviewResponse;
|
|
2215
2217
|
class AdminGiftConfirmRequest extends protobuf_1.Message {
|
|
2216
2218
|
token = "";
|
|
2219
|
+
code = "";
|
|
2217
2220
|
constructor(data) {
|
|
2218
2221
|
super();
|
|
2219
2222
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -2222,6 +2225,7 @@ class AdminGiftConfirmRequest extends protobuf_1.Message {
|
|
|
2222
2225
|
static typeName = "micro.v1.mining.AdminGiftConfirmRequest";
|
|
2223
2226
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2224
2227
|
{ no: 1, name: "token", kind: "scalar", T: 9 },
|
|
2228
|
+
{ no: 2, name: "code", kind: "scalar", T: 9 },
|
|
2225
2229
|
]);
|
|
2226
2230
|
static fromBinary(bytes, options) {
|
|
2227
2231
|
return new AdminGiftConfirmRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -540,7 +540,7 @@ message AdminUsersResponse {
|
|
|
540
540
|
// A past review decision on a person.
|
|
541
541
|
message AdminActionItem {
|
|
542
542
|
string id = 1;
|
|
543
|
-
// clear | restrict | ban | unban
|
|
543
|
+
// clear | restrict | ban | unban | attach_referrer
|
|
544
544
|
string action = 2;
|
|
545
545
|
string reason = 3;
|
|
546
546
|
string note = 4;
|
|
@@ -638,6 +638,8 @@ message AdminModerateRequest {
|
|
|
638
638
|
// ban only: also ban this person's invitees that look like ghosts
|
|
639
639
|
// (never activated or on the same device), each with its own reversal.
|
|
640
640
|
bool cascade_invitees = 5;
|
|
641
|
+
// attach_referrer only: the invite code of the person to attach as referrer.
|
|
642
|
+
optional string referrer_code = 6;
|
|
641
643
|
}
|
|
642
644
|
|
|
643
645
|
// Devices with more than one mining account, a page at a time.
|
|
@@ -740,6 +742,8 @@ message AdminGiftPreviewResponse {
|
|
|
740
742
|
|
|
741
743
|
message AdminGiftConfirmRequest {
|
|
742
744
|
string token = 1;
|
|
745
|
+
// The approval code only the owner knows (GIFT_ADMIN_CODE).
|
|
746
|
+
string code = 2;
|
|
743
747
|
}
|
|
744
748
|
|
|
745
749
|
message AdminGift {
|