You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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 "notifInput.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -26,47 +26,47 @@ export interface NotifCreatedPayload {
|
||||
/**
|
||||
* Type Of Change to be notified
|
||||
*
|
||||
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 1 [json_name = "NotificationType"];
|
||||
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 1
|
||||
*/
|
||||
NotificationType: NotifTypeEnum;
|
||||
/**
|
||||
* Identifier of the issuer
|
||||
*
|
||||
* @generated from protobuf field: string IssuerID = 2 [json_name = "IssuerID"];
|
||||
* @generated from protobuf field: string IssuerID = 2
|
||||
*/
|
||||
IssuerID: string;
|
||||
/**
|
||||
* List of contacts
|
||||
*
|
||||
* @generated from protobuf field: repeated string Contacts = 3 [json_name = "Contacts"];
|
||||
* @generated from protobuf field: repeated string Contacts = 3
|
||||
*/
|
||||
Contacts: string[];
|
||||
/**
|
||||
* Details of the notification
|
||||
*
|
||||
* @generated from protobuf field: string Details = 4 [json_name = "Details"];
|
||||
* @generated from protobuf field: string Details = 4
|
||||
*/
|
||||
Details: string;
|
||||
/**
|
||||
* Entity domain
|
||||
*
|
||||
* @generated from protobuf field: string EntityDomain = 5 [json_name = "EntityDomain"];
|
||||
* @generated from protobuf field: string EntityDomain = 5
|
||||
*/
|
||||
EntityDomain: string;
|
||||
/**
|
||||
* Type of entity
|
||||
*
|
||||
* @generated from protobuf field: string EntityType = 6 [json_name = "EntityType"];
|
||||
* @generated from protobuf field: string EntityType = 6
|
||||
*/
|
||||
EntityType: string;
|
||||
/**
|
||||
* ID of entity
|
||||
*
|
||||
* @generated from protobuf field: string EntityRefID = 7 [json_name = "EntityRefID"];
|
||||
* @generated from protobuf field: string EntityRefID = 7
|
||||
*/
|
||||
EntityRefID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Tags = 8 [json_name = "Tags"];
|
||||
* @generated from protobuf field: string Tags = 8
|
||||
*/
|
||||
Tags: string;
|
||||
}
|
||||
@@ -77,15 +77,15 @@ export interface NotifCreatedPayload {
|
||||
*/
|
||||
export interface NotifCreatedEvent {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.EventHeader Header = 1
|
||||
*/
|
||||
Header?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.NotifCreatedPayload Payload = 3 [json_name = "Payload"];
|
||||
* @generated from protobuf field: api.NotifCreatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: NotifCreatedPayload;
|
||||
}
|
||||
@@ -96,15 +96,15 @@ export interface NotifCreatedEvent {
|
||||
*/
|
||||
export interface NotifCreatedRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.NotifCreatedPayload Payload = 3 [json_name = "Payload"];
|
||||
* @generated from protobuf field: api.NotifCreatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: NotifCreatedPayload;
|
||||
}
|
||||
@@ -115,11 +115,11 @@ export interface NotifCreatedRequest {
|
||||
*/
|
||||
export interface NotifCreatedResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1 [json_name = "Header"];
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
@@ -156,28 +156,28 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.NotifTypeEnum NotificationType = 1 [json_name = "NotificationType"];*/ 1:
|
||||
case /* api.NotifTypeEnum NotificationType */ 1:
|
||||
message.NotificationType = reader.int32();
|
||||
break;
|
||||
case /* string IssuerID = 2 [json_name = "IssuerID"];*/ 2:
|
||||
case /* string IssuerID */ 2:
|
||||
message.IssuerID = reader.string();
|
||||
break;
|
||||
case /* repeated string Contacts = 3 [json_name = "Contacts"];*/ 3:
|
||||
case /* repeated string Contacts */ 3:
|
||||
message.Contacts.push(reader.string());
|
||||
break;
|
||||
case /* string Details = 4 [json_name = "Details"];*/ 4:
|
||||
case /* string Details */ 4:
|
||||
message.Details = reader.string();
|
||||
break;
|
||||
case /* string EntityDomain = 5 [json_name = "EntityDomain"];*/ 5:
|
||||
case /* string EntityDomain */ 5:
|
||||
message.EntityDomain = reader.string();
|
||||
break;
|
||||
case /* string EntityType = 6 [json_name = "EntityType"];*/ 6:
|
||||
case /* string EntityType */ 6:
|
||||
message.EntityType = reader.string();
|
||||
break;
|
||||
case /* string EntityRefID = 7 [json_name = "EntityRefID"];*/ 7:
|
||||
case /* string EntityRefID */ 7:
|
||||
message.EntityRefID = reader.string();
|
||||
break;
|
||||
case /* string Tags = 8 [json_name = "Tags"];*/ 8:
|
||||
case /* string Tags */ 8:
|
||||
message.Tags = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -192,28 +192,28 @@ class NotifCreatedPayload$Type extends MessageType<NotifCreatedPayload> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NotifCreatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.NotifTypeEnum NotificationType = 1 [json_name = "NotificationType"]; */
|
||||
/* api.NotifTypeEnum NotificationType = 1; */
|
||||
if (message.NotificationType !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.NotificationType);
|
||||
/* string IssuerID = 2 [json_name = "IssuerID"]; */
|
||||
/* string IssuerID = 2; */
|
||||
if (message.IssuerID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.IssuerID);
|
||||
/* repeated string Contacts = 3 [json_name = "Contacts"]; */
|
||||
/* repeated string Contacts = 3; */
|
||||
for (let i = 0; i < message.Contacts.length; i++)
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Contacts[i]);
|
||||
/* string Details = 4 [json_name = "Details"]; */
|
||||
/* string Details = 4; */
|
||||
if (message.Details !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Details);
|
||||
/* string EntityDomain = 5 [json_name = "EntityDomain"]; */
|
||||
/* string EntityDomain = 5; */
|
||||
if (message.EntityDomain !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.EntityDomain);
|
||||
/* string EntityType = 6 [json_name = "EntityType"]; */
|
||||
/* string EntityType = 6; */
|
||||
if (message.EntityType !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.EntityType);
|
||||
/* string EntityRefID = 7 [json_name = "EntityRefID"]; */
|
||||
/* string EntityRefID = 7; */
|
||||
if (message.EntityRefID !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.EntityRefID);
|
||||
/* string Tags = 8 [json_name = "Tags"]; */
|
||||
/* string Tags = 8; */
|
||||
if (message.Tags !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Tags);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -246,13 +246,13 @@ class NotifCreatedEvent$Type extends MessageType<NotifCreatedEvent> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.EventHeader Header */ 1:
|
||||
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.NotifCreatedPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
||||
case /* api.NotifCreatedPayload Payload */ 3:
|
||||
message.Payload = NotifCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
@@ -267,13 +267,13 @@ class NotifCreatedEvent$Type extends MessageType<NotifCreatedEvent> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NotifCreatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.EventHeader Header = 1; */
|
||||
if (message.Header)
|
||||
EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.NotifCreatedPayload Payload = 3 [json_name = "Payload"]; */
|
||||
/* api.NotifCreatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
NotifCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -306,13 +306,13 @@ class NotifCreatedRequest$Type extends MessageType<NotifCreatedRequest> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.NotifCreatedPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
||||
case /* api.NotifCreatedPayload Payload */ 3:
|
||||
message.Payload = NotifCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
@@ -327,13 +327,13 @@ class NotifCreatedRequest$Type extends MessageType<NotifCreatedRequest> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NotifCreatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.NotifCreatedPayload Payload = 3 [json_name = "Payload"]; */
|
||||
/* api.NotifCreatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
NotifCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -365,10 +365,10 @@ class NotifCreatedResponse$Type extends MessageType<NotifCreatedResponse> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseHeader Header = 1 [json_name = "Header"];*/ 1:
|
||||
case /* api.ResponseHeader Header */ 1:
|
||||
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
default:
|
||||
@@ -383,10 +383,10 @@ class NotifCreatedResponse$Type extends MessageType<NotifCreatedResponse> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NotifCreatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseHeader Header = 1 [json_name = "Header"]; */
|
||||
/* api.ResponseHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user