Latest generation

This commit is contained in:
ci core model
2025-05-26 12:14:28 +00:00
parent 65247e7fe4
commit cc9c6d0b4c
197 changed files with 15132 additions and 15052 deletions

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
// @generated from protobuf file "notification.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -16,27 +16,27 @@ import { MessageType } from "@protobuf-ts/runtime";
*/
export interface Notification {
/**
* @generated from protobuf field: string Payload = 1 [json_name = "Payload"];
* @generated from protobuf field: string Payload = 1
*/
Payload: string;
/**
* @generated from protobuf field: api.NotificationType Type = 2 [json_name = "Type"];
* @generated from protobuf field: api.NotificationType Type = 2
*/
Type: NotificationType;
/**
* @generated from protobuf field: string TemplateName = 3 [json_name = "TemplateName"];
* @generated from protobuf field: string TemplateName = 3
*/
TemplateName: string;
/**
* @generated from protobuf field: string AckID = 4 [json_name = "AckID"];
* @generated from protobuf field: string AckID = 4
*/
AckID: string;
/**
* @generated from protobuf field: api.NotificationCategory Category = 5 [json_name = "Category"];
* @generated from protobuf field: api.NotificationCategory Category = 5
*/
Category: NotificationCategory;
/**
* @generated from protobuf field: string ID = 6 [json_name = "ID"];
* @generated from protobuf field: string ID = 6
*/
ID: string;
}
@@ -45,19 +45,19 @@ export interface Notification {
*/
export interface NotificationRequest {
/**
* @generated from protobuf field: string Payload = 1 [json_name = "Payload"];
* @generated from protobuf field: string Payload = 1
*/
Payload: string;
/**
* @generated from protobuf field: api.NotificationType Type = 2 [json_name = "Type"];
* @generated from protobuf field: api.NotificationType Type = 2
*/
Type: NotificationType;
/**
* @generated from protobuf field: string TemplateName = 3 [json_name = "TemplateName"];
* @generated from protobuf field: string TemplateName = 3
*/
TemplateName: string;
/**
* @generated from protobuf field: api.NotificationCategory Category = 4 [json_name = "Category"];
* @generated from protobuf field: api.NotificationCategory Category = 4
*/
Category: NotificationCategory;
}
@@ -66,15 +66,15 @@ export interface NotificationRequest {
*/
export interface PublishToUserRequest {
/**
* @generated from protobuf field: string UserID = 1 [json_name = "UserID"];
* @generated from protobuf field: string UserID = 1
*/
UserID: string;
/**
* @generated from protobuf field: int64 ExpirationDate = 2 [json_name = "ExpirationDate"];
* @generated from protobuf field: int64 ExpirationDate = 2
*/
ExpirationDate: bigint;
/**
* @generated from protobuf field: api.NotificationRequest Notification = 3 [json_name = "Notification"];
* @generated from protobuf field: api.NotificationRequest Notification = 3
*/
Notification?: NotificationRequest;
}
@@ -88,23 +88,23 @@ export interface PublishToUserResult {
*/
export interface NotificationListItem {
/**
* @generated from protobuf field: string Payload = 1 [json_name = "Payload"];
* @generated from protobuf field: string Payload = 1
*/
Payload: string;
/**
* @generated from protobuf field: api.NotificationType Type = 2 [json_name = "Type"];
* @generated from protobuf field: api.NotificationType Type = 2
*/
Type: NotificationType;
/**
* @generated from protobuf field: string TemplateName = 3 [json_name = "TemplateName"];
* @generated from protobuf field: string TemplateName = 3
*/
TemplateName: string;
/**
* @generated from protobuf field: api.NotificationCategory Category = 4 [json_name = "Category"];
* @generated from protobuf field: api.NotificationCategory Category = 4
*/
Category: NotificationCategory;
/**
* @generated from protobuf field: string ID = 5 [json_name = "ID"];
* @generated from protobuf field: string ID = 5
*/
ID: string;
}
@@ -118,7 +118,7 @@ export interface ListNotificationRequest {
*/
export interface ListNotificationResult {
/**
* @generated from protobuf field: repeated api.NotificationListItem Notifications = 1 [json_name = "Notifications"];
* @generated from protobuf field: repeated api.NotificationListItem Notifications = 1
*/
Notifications: NotificationListItem[];
}
@@ -185,22 +185,22 @@ class Notification$Type extends MessageType<Notification> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Payload = 1 [json_name = "Payload"];*/ 1:
case /* string Payload */ 1:
message.Payload = reader.string();
break;
case /* api.NotificationType Type = 2 [json_name = "Type"];*/ 2:
case /* api.NotificationType Type */ 2:
message.Type = reader.int32();
break;
case /* string TemplateName = 3 [json_name = "TemplateName"];*/ 3:
case /* string TemplateName */ 3:
message.TemplateName = reader.string();
break;
case /* string AckID = 4 [json_name = "AckID"];*/ 4:
case /* string AckID */ 4:
message.AckID = reader.string();
break;
case /* api.NotificationCategory Category = 5 [json_name = "Category"];*/ 5:
case /* api.NotificationCategory Category */ 5:
message.Category = reader.int32();
break;
case /* string ID = 6 [json_name = "ID"];*/ 6:
case /* string ID */ 6:
message.ID = reader.string();
break;
default:
@@ -215,22 +215,22 @@ class Notification$Type extends MessageType<Notification> {
return message;
}
internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Payload = 1 [json_name = "Payload"]; */
/* string Payload = 1; */
if (message.Payload !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Payload);
/* api.NotificationType Type = 2 [json_name = "Type"]; */
/* api.NotificationType Type = 2; */
if (message.Type !== 0)
writer.tag(2, WireType.Varint).int32(message.Type);
/* string TemplateName = 3 [json_name = "TemplateName"]; */
/* string TemplateName = 3; */
if (message.TemplateName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TemplateName);
/* string AckID = 4 [json_name = "AckID"]; */
/* string AckID = 4; */
if (message.AckID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.AckID);
/* api.NotificationCategory Category = 5 [json_name = "Category"]; */
/* api.NotificationCategory Category = 5; */
if (message.Category !== 0)
writer.tag(5, WireType.Varint).int32(message.Category);
/* string ID = 6 [json_name = "ID"]; */
/* string ID = 6; */
if (message.ID !== "")
writer.tag(6, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
@@ -268,16 +268,16 @@ class NotificationRequest$Type extends MessageType<NotificationRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Payload = 1 [json_name = "Payload"];*/ 1:
case /* string Payload */ 1:
message.Payload = reader.string();
break;
case /* api.NotificationType Type = 2 [json_name = "Type"];*/ 2:
case /* api.NotificationType Type */ 2:
message.Type = reader.int32();
break;
case /* string TemplateName = 3 [json_name = "TemplateName"];*/ 3:
case /* string TemplateName */ 3:
message.TemplateName = reader.string();
break;
case /* api.NotificationCategory Category = 4 [json_name = "Category"];*/ 4:
case /* api.NotificationCategory Category */ 4:
message.Category = reader.int32();
break;
default:
@@ -292,16 +292,16 @@ class NotificationRequest$Type extends MessageType<NotificationRequest> {
return message;
}
internalBinaryWrite(message: NotificationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Payload = 1 [json_name = "Payload"]; */
/* string Payload = 1; */
if (message.Payload !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Payload);
/* api.NotificationType Type = 2 [json_name = "Type"]; */
/* api.NotificationType Type = 2; */
if (message.Type !== 0)
writer.tag(2, WireType.Varint).int32(message.Type);
/* string TemplateName = 3 [json_name = "TemplateName"]; */
/* string TemplateName = 3; */
if (message.TemplateName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TemplateName);
/* api.NotificationCategory Category = 4 [json_name = "Category"]; */
/* api.NotificationCategory Category = 4; */
if (message.Category !== 0)
writer.tag(4, WireType.Varint).int32(message.Category);
let u = options.writeUnknownFields;
@@ -336,13 +336,13 @@ class PublishToUserRequest$Type extends MessageType<PublishToUserRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string UserID = 1 [json_name = "UserID"];*/ 1:
case /* string UserID */ 1:
message.UserID = reader.string();
break;
case /* int64 ExpirationDate = 2 [json_name = "ExpirationDate"];*/ 2:
case /* int64 ExpirationDate */ 2:
message.ExpirationDate = reader.int64().toBigInt();
break;
case /* api.NotificationRequest Notification = 3 [json_name = "Notification"];*/ 3:
case /* api.NotificationRequest Notification */ 3:
message.Notification = NotificationRequest.internalBinaryRead(reader, reader.uint32(), options, message.Notification);
break;
default:
@@ -357,13 +357,13 @@ class PublishToUserRequest$Type extends MessageType<PublishToUserRequest> {
return message;
}
internalBinaryWrite(message: PublishToUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string UserID = 1 [json_name = "UserID"]; */
/* string UserID = 1; */
if (message.UserID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.UserID);
/* int64 ExpirationDate = 2 [json_name = "ExpirationDate"]; */
/* int64 ExpirationDate = 2; */
if (message.ExpirationDate !== 0n)
writer.tag(2, WireType.Varint).int64(message.ExpirationDate);
/* api.NotificationRequest Notification = 3 [json_name = "Notification"]; */
/* api.NotificationRequest Notification = 3; */
if (message.Notification)
NotificationRequest.internalBinaryWrite(message.Notification, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -441,19 +441,19 @@ class NotificationListItem$Type extends MessageType<NotificationListItem> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Payload = 1 [json_name = "Payload"];*/ 1:
case /* string Payload */ 1:
message.Payload = reader.string();
break;
case /* api.NotificationType Type = 2 [json_name = "Type"];*/ 2:
case /* api.NotificationType Type */ 2:
message.Type = reader.int32();
break;
case /* string TemplateName = 3 [json_name = "TemplateName"];*/ 3:
case /* string TemplateName */ 3:
message.TemplateName = reader.string();
break;
case /* api.NotificationCategory Category = 4 [json_name = "Category"];*/ 4:
case /* api.NotificationCategory Category */ 4:
message.Category = reader.int32();
break;
case /* string ID = 5 [json_name = "ID"];*/ 5:
case /* string ID */ 5:
message.ID = reader.string();
break;
default:
@@ -468,19 +468,19 @@ class NotificationListItem$Type extends MessageType<NotificationListItem> {
return message;
}
internalBinaryWrite(message: NotificationListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Payload = 1 [json_name = "Payload"]; */
/* string Payload = 1; */
if (message.Payload !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Payload);
/* api.NotificationType Type = 2 [json_name = "Type"]; */
/* api.NotificationType Type = 2; */
if (message.Type !== 0)
writer.tag(2, WireType.Varint).int32(message.Type);
/* string TemplateName = 3 [json_name = "TemplateName"]; */
/* string TemplateName = 3; */
if (message.TemplateName !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TemplateName);
/* api.NotificationCategory Category = 4 [json_name = "Category"]; */
/* api.NotificationCategory Category = 4; */
if (message.Category !== 0)
writer.tag(4, WireType.Varint).int32(message.Category);
/* string ID = 5 [json_name = "ID"]; */
/* string ID = 5; */
if (message.ID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
@@ -550,7 +550,7 @@ class ListNotificationResult$Type extends MessageType<ListNotificationResult> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.NotificationListItem Notifications = 1 [json_name = "Notifications"];*/ 1:
case /* repeated api.NotificationListItem Notifications */ 1:
message.Notifications.push(NotificationListItem.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
@@ -565,7 +565,7 @@ class ListNotificationResult$Type extends MessageType<ListNotificationResult> {
return message;
}
internalBinaryWrite(message: ListNotificationResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.NotificationListItem Notifications = 1 [json_name = "Notifications"]; */
/* repeated api.NotificationListItem Notifications = 1; */
for (let i = 0; i < message.Notifications.length; i++)
NotificationListItem.internalBinaryWrite(message.Notifications[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;