You've already forked npm-core-sdk
Latest generation
This commit is contained in:
86
partner.ts
86
partner.ts
@@ -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 "partner.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -23,15 +23,15 @@ import { EventHeader } from "./shared";
|
||||
*/
|
||||
export interface Partner {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
|
||||
* @generated from protobuf field: api.EventHeader LastEventHeader = 1
|
||||
*/
|
||||
LastEventHeader?: 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.PartnerPayload Payload = 3 [json_name = "Payload"];
|
||||
* @generated from protobuf field: api.PartnerPayload Payload = 3
|
||||
*/
|
||||
Payload?: PartnerPayload;
|
||||
}
|
||||
@@ -40,11 +40,11 @@ export interface Partner {
|
||||
*/
|
||||
export interface PartnerPayload {
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
|
||||
* @generated from protobuf field: string Name = 1
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: string LegalStructure = 2 [json_name = "LegalStructure"];
|
||||
* @generated from protobuf field: string LegalStructure = 2
|
||||
*/
|
||||
LegalStructure: string;
|
||||
// repeated MetadataElement MetaData = 3
|
||||
@@ -53,28 +53,28 @@ export interface PartnerPayload {
|
||||
// ];
|
||||
|
||||
/**
|
||||
* @generated from protobuf field: api.Address Address = 4 [json_name = "Address"];
|
||||
* @generated from protobuf field: api.Address Address = 4
|
||||
*/
|
||||
Address?: Address;
|
||||
/**
|
||||
* @generated from protobuf field: api.PartnerStatusStruct Status = 6 [json_name = "Status"];
|
||||
* @generated from protobuf field: api.PartnerStatusStruct Status = 6
|
||||
*/
|
||||
Status?: PartnerStatusStruct; // Status field is not accessible from APIs
|
||||
/**
|
||||
* @generated from protobuf field: string PhotoURI = 7 [json_name = "PhotoURI"];
|
||||
* @generated from protobuf field: string PhotoURI = 7
|
||||
*/
|
||||
PhotoURI: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 8 [json_name = "Attachments"];
|
||||
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 8
|
||||
*/
|
||||
Attachments: AttachmentSummary[];
|
||||
/**
|
||||
* @generated from protobuf field: int32 AttachmentNumber = 9 [json_name = "AttachmentNumber"];
|
||||
* @generated from protobuf field: int32 AttachmentNumber = 9
|
||||
*/
|
||||
AttachmentNumber: number;
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated string AllowedRoles = 10 [deprecated = true, json_name = "AllowedRoles"];
|
||||
* @generated from protobuf field: repeated string AllowedRoles = 10 [deprecated = true]
|
||||
*/
|
||||
AllowedRoles: string[];
|
||||
}
|
||||
@@ -83,15 +83,15 @@ export interface PartnerPayload {
|
||||
*/
|
||||
export interface PartnerTriplet {
|
||||
/**
|
||||
* @generated from protobuf field: api.Partner Current = 1 [json_name = "Current"];
|
||||
* @generated from protobuf field: api.Partner Current = 1
|
||||
*/
|
||||
Current?: Partner;
|
||||
/**
|
||||
* @generated from protobuf field: api.Partner Previous = 2 [json_name = "Previous"];
|
||||
* @generated from protobuf field: api.Partner Previous = 2
|
||||
*/
|
||||
Previous?: Partner;
|
||||
/**
|
||||
* @generated from protobuf field: api.Partner LastEvent = 3 [json_name = "LastEvent"];
|
||||
* @generated from protobuf field: api.Partner LastEvent = 3
|
||||
*/
|
||||
LastEvent?: Partner;
|
||||
}
|
||||
@@ -115,13 +115,13 @@ class Partner$Type extends MessageType<Partner> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];*/ 1:
|
||||
case /* api.EventHeader LastEventHeader */ 1:
|
||||
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
|
||||
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.PartnerPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
||||
case /* api.PartnerPayload Payload */ 3:
|
||||
message.Payload = PartnerPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
@@ -136,13 +136,13 @@ class Partner$Type extends MessageType<Partner> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: Partner, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; */
|
||||
/* api.EventHeader LastEventHeader = 1; */
|
||||
if (message.LastEventHeader)
|
||||
EventHeader.internalBinaryWrite(message.LastEventHeader, 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.PartnerPayload Payload = 3 [json_name = "Payload"]; */
|
||||
/* api.PartnerPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
PartnerPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -186,28 +186,28 @@ class PartnerPayload$Type extends MessageType<PartnerPayload> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Name = 1 [json_name = "Name"];*/ 1:
|
||||
case /* string Name */ 1:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string LegalStructure = 2 [json_name = "LegalStructure"];*/ 2:
|
||||
case /* string LegalStructure */ 2:
|
||||
message.LegalStructure = reader.string();
|
||||
break;
|
||||
case /* api.Address Address = 4 [json_name = "Address"];*/ 4:
|
||||
case /* api.Address Address */ 4:
|
||||
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
|
||||
break;
|
||||
case /* api.PartnerStatusStruct Status = 6 [json_name = "Status"];*/ 6:
|
||||
case /* api.PartnerStatusStruct Status */ 6:
|
||||
message.Status = PartnerStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||
break;
|
||||
case /* string PhotoURI = 7 [json_name = "PhotoURI"];*/ 7:
|
||||
case /* string PhotoURI */ 7:
|
||||
message.PhotoURI = reader.string();
|
||||
break;
|
||||
case /* repeated api.AttachmentSummary Attachments = 8 [json_name = "Attachments"];*/ 8:
|
||||
case /* repeated api.AttachmentSummary Attachments */ 8:
|
||||
message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* int32 AttachmentNumber = 9 [json_name = "AttachmentNumber"];*/ 9:
|
||||
case /* int32 AttachmentNumber */ 9:
|
||||
message.AttachmentNumber = reader.int32();
|
||||
break;
|
||||
case /* repeated string AllowedRoles = 10 [deprecated = true, json_name = "AllowedRoles"];*/ 10:
|
||||
case /* repeated string AllowedRoles = 10 [deprecated = true] */ 10:
|
||||
message.AllowedRoles.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
@@ -222,28 +222,28 @@ class PartnerPayload$Type extends MessageType<PartnerPayload> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PartnerPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 1 [json_name = "Name"]; */
|
||||
/* string Name = 1; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
||||
/* string LegalStructure = 2 [json_name = "LegalStructure"]; */
|
||||
/* string LegalStructure = 2; */
|
||||
if (message.LegalStructure !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.LegalStructure);
|
||||
/* api.Address Address = 4 [json_name = "Address"]; */
|
||||
/* api.Address Address = 4; */
|
||||
if (message.Address)
|
||||
Address.internalBinaryWrite(message.Address, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.PartnerStatusStruct Status = 6 [json_name = "Status"]; */
|
||||
/* api.PartnerStatusStruct Status = 6; */
|
||||
if (message.Status)
|
||||
PartnerStatusStruct.internalBinaryWrite(message.Status, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string PhotoURI = 7 [json_name = "PhotoURI"]; */
|
||||
/* string PhotoURI = 7; */
|
||||
if (message.PhotoURI !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.PhotoURI);
|
||||
/* repeated api.AttachmentSummary Attachments = 8 [json_name = "Attachments"]; */
|
||||
/* repeated api.AttachmentSummary Attachments = 8; */
|
||||
for (let i = 0; i < message.Attachments.length; i++)
|
||||
AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int32 AttachmentNumber = 9 [json_name = "AttachmentNumber"]; */
|
||||
/* int32 AttachmentNumber = 9; */
|
||||
if (message.AttachmentNumber !== 0)
|
||||
writer.tag(9, WireType.Varint).int32(message.AttachmentNumber);
|
||||
/* repeated string AllowedRoles = 10 [deprecated = true, json_name = "AllowedRoles"]; */
|
||||
/* repeated string AllowedRoles = 10 [deprecated = true]; */
|
||||
for (let i = 0; i < message.AllowedRoles.length; i++)
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.AllowedRoles[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -276,13 +276,13 @@ class PartnerTriplet$Type extends MessageType<PartnerTriplet> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Partner Current = 1 [json_name = "Current"];*/ 1:
|
||||
case /* api.Partner Current */ 1:
|
||||
message.Current = Partner.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* api.Partner Previous = 2 [json_name = "Previous"];*/ 2:
|
||||
case /* api.Partner Previous */ 2:
|
||||
message.Previous = Partner.internalBinaryRead(reader, reader.uint32(), options, message.Previous);
|
||||
break;
|
||||
case /* api.Partner LastEvent = 3 [json_name = "LastEvent"];*/ 3:
|
||||
case /* api.Partner LastEvent */ 3:
|
||||
message.LastEvent = Partner.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent);
|
||||
break;
|
||||
default:
|
||||
@@ -297,13 +297,13 @@ class PartnerTriplet$Type extends MessageType<PartnerTriplet> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: PartnerTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Partner Current = 1 [json_name = "Current"]; */
|
||||
/* api.Partner Current = 1; */
|
||||
if (message.Current)
|
||||
Partner.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Partner Previous = 2 [json_name = "Previous"]; */
|
||||
/* api.Partner Previous = 2; */
|
||||
if (message.Previous)
|
||||
Partner.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Partner LastEvent = 3 [json_name = "LastEvent"]; */
|
||||
/* api.Partner LastEvent = 3; */
|
||||
if (message.LastEvent)
|
||||
Partner.internalBinaryWrite(message.LastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user