mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-03 20:21:40 +00:00
chore: implement i18n setting
This commit is contained in:
@ -225,6 +225,64 @@ export declare class CreateUserResponse extends Message<CreateUserResponse> {
|
||||
static equals(a: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined, b: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserRequest
|
||||
*/
|
||||
export declare class UpdateUserRequest extends Message<UpdateUserRequest> {
|
||||
/**
|
||||
* @generated from field: int32 id = 1;
|
||||
*/
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* @generated from field: slash.api.v2.User user = 2;
|
||||
*/
|
||||
user?: User;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated string update_mask = 3;
|
||||
*/
|
||||
updateMask: string[];
|
||||
|
||||
constructor(data?: PartialMessage<UpdateUserRequest>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.UpdateUserRequest";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserRequest;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserRequest;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserRequest;
|
||||
|
||||
static equals(a: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined, b: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserResponse
|
||||
*/
|
||||
export declare class UpdateUserResponse extends Message<UpdateUserResponse> {
|
||||
/**
|
||||
* @generated from field: slash.api.v2.User user = 1;
|
||||
*/
|
||||
user?: User;
|
||||
|
||||
constructor(data?: PartialMessage<UpdateUserResponse>);
|
||||
|
||||
static readonly runtime: typeof proto3;
|
||||
static readonly typeName = "slash.api.v2.UpdateUserResponse";
|
||||
static readonly fields: FieldList;
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserResponse;
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserResponse;
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserResponse;
|
||||
|
||||
static equals(a: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined, b: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined): boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.DeleteUserRequest
|
||||
*/
|
||||
|
@ -93,6 +93,28 @@ export const CreateUserResponse = proto3.makeMessageType(
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserRequest
|
||||
*/
|
||||
export const UpdateUserRequest = proto3.makeMessageType(
|
||||
"slash.api.v2.UpdateUserRequest",
|
||||
() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 2, name: "user", kind: "message", T: User },
|
||||
{ no: 3, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UpdateUserResponse
|
||||
*/
|
||||
export const UpdateUserResponse = proto3.makeMessageType(
|
||||
"slash.api.v2.UpdateUserResponse",
|
||||
() => [
|
||||
{ no: 1, name: "user", kind: "message", T: User },
|
||||
],
|
||||
);
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.DeleteUserRequest
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, FieldMask, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
@ -128,11 +128,11 @@ export declare class UpdateUserSettingRequest extends Message<UpdateUserSettingR
|
||||
userSetting?: UserSetting;
|
||||
|
||||
/**
|
||||
* update_mask is the field mask to update the user setting.
|
||||
* update_mask is the field mask to update.
|
||||
*
|
||||
* @generated from field: google.protobuf.FieldMask update_mask = 3;
|
||||
* @generated from field: repeated string update_mask = 3;
|
||||
*/
|
||||
updateMask?: FieldMask;
|
||||
updateMask: string[];
|
||||
|
||||
constructor(data?: PartialMessage<UpdateUserSettingRequest>);
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { FieldMask, proto3 } from "@bufbuild/protobuf";
|
||||
import { proto3 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* @generated from message slash.api.v2.UserSetting
|
||||
@ -56,7 +56,7 @@ export const UpdateUserSettingRequest = proto3.makeMessageType(
|
||||
() => [
|
||||
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
||||
{ no: 2, name: "user_setting", kind: "message", T: UserSetting },
|
||||
{ no: 3, name: "update_mask", kind: "message", T: FieldMask },
|
||||
{ no: 3, name: "update_mask", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
],
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user