You've already forked npm-core-sdk
Latest generation
This commit is contained in:
194
collabShared.ts
194
collabShared.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 "collabShared.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -22,19 +22,19 @@ import { ClaimStatus } from "./shared";
|
||||
*/
|
||||
export interface ClaimStatusDef {
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimStatus StatusCode = 1 [json_name = "StatusCode"];
|
||||
* @generated from protobuf field: api.ClaimStatus StatusCode = 1
|
||||
*/
|
||||
StatusCode: ClaimStatus;
|
||||
/**
|
||||
* This date is only a string as it is always given by system
|
||||
*
|
||||
* @generated from protobuf field: string Date = 2 [json_name = "Date"];
|
||||
* @generated from protobuf field: string Date = 2
|
||||
*/
|
||||
Date: string;
|
||||
/**
|
||||
* Status effective date. Set by the event's RefDate that triggered the status change.
|
||||
*
|
||||
* @generated from protobuf field: api.DateTime ActualDate = 3 [json_name = "ActualDate"];
|
||||
* @generated from protobuf field: api.DateTime ActualDate = 3
|
||||
*/
|
||||
ActualDate?: DateTime;
|
||||
}
|
||||
@@ -43,19 +43,19 @@ export interface ClaimStatusDef {
|
||||
*/
|
||||
export interface ClaimStatusStruct {
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimStatusDef Current = 1 [json_name = "Current"];
|
||||
* @generated from protobuf field: api.ClaimStatusDef Current = 1
|
||||
*/
|
||||
Current?: ClaimStatusDef; // Current status of the Claim entity
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimStatusDef History = 2 [json_name = "History"];
|
||||
* @generated from protobuf field: repeated api.ClaimStatusDef History = 2
|
||||
*/
|
||||
History: ClaimStatusDef[]; // List of all status history of the Claim entity
|
||||
/**
|
||||
* @generated from protobuf field: string CreationDate = 3 [json_name = "CreationDate"];
|
||||
* @generated from protobuf field: string CreationDate = 3
|
||||
*/
|
||||
CreationDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: uint32 Version = 4 [json_name = "Version"];
|
||||
* @generated from protobuf field: uint32 Version = 4
|
||||
*/
|
||||
Version: number;
|
||||
}
|
||||
@@ -64,23 +64,23 @@ export interface ClaimStatusStruct {
|
||||
*/
|
||||
export interface WindowedNotif {
|
||||
/**
|
||||
* @generated from protobuf field: api.ListNotifChanges ListNotifChanges = 1 [json_name = "ListNotifChanges"];
|
||||
* @generated from protobuf field: api.ListNotifChanges ListNotifChanges = 1
|
||||
*/
|
||||
ListNotifChanges?: ListNotifChanges;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.UserMails UserMails = 2 [json_name = "UserMails"];
|
||||
* @generated from protobuf field: repeated api.UserMails UserMails = 2
|
||||
*/
|
||||
UserMails: UserMails[];
|
||||
/**
|
||||
* @generated from protobuf field: string JsonModel = 3 [json_name = "JsonModel"];
|
||||
* @generated from protobuf field: string JsonModel = 3
|
||||
*/
|
||||
JsonModel: string;
|
||||
/**
|
||||
* @generated from protobuf field: string languageCode = 4;
|
||||
* @generated from protobuf field: string languageCode = 4
|
||||
*/
|
||||
languageCode: string;
|
||||
/**
|
||||
* @generated from protobuf field: string HtmlBody = 5 [json_name = "HtmlBody"];
|
||||
* @generated from protobuf field: string HtmlBody = 5
|
||||
*/
|
||||
HtmlBody: string;
|
||||
}
|
||||
@@ -89,11 +89,11 @@ export interface WindowedNotif {
|
||||
*/
|
||||
export interface UserMails {
|
||||
/**
|
||||
* @generated from protobuf field: string mail = 1;
|
||||
* @generated from protobuf field: string mail = 1
|
||||
*/
|
||||
mail: string;
|
||||
/**
|
||||
* @generated from protobuf field: string languageCode = 2;
|
||||
* @generated from protobuf field: string languageCode = 2
|
||||
*/
|
||||
languageCode: string;
|
||||
}
|
||||
@@ -102,27 +102,27 @@ export interface UserMails {
|
||||
*/
|
||||
export interface ListNotifChanges {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string VisibilityURI = 2 [json_name = "VisibilityURI"];
|
||||
* @generated from protobuf field: string VisibilityURI = 2
|
||||
*/
|
||||
VisibilityURI: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityType = 3 [json_name = "EntityType"];
|
||||
* @generated from protobuf field: string EntityType = 3
|
||||
*/
|
||||
EntityType: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityRefID = 4 [json_name = "EntityRefID"];
|
||||
* @generated from protobuf field: string EntityRefID = 4
|
||||
*/
|
||||
EntityRefID: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.NotifChanges NotifChanges = 5 [json_name = "NotifChanges"];
|
||||
* @generated from protobuf field: repeated api.NotifChanges NotifChanges = 5
|
||||
*/
|
||||
NotifChanges: NotifChanges[];
|
||||
/**
|
||||
* @generated from protobuf field: google.protobuf.Struct Tags = 6 [json_name = "Tags"];
|
||||
* @generated from protobuf field: google.protobuf.Struct Tags = 6
|
||||
*/
|
||||
Tags?: Struct;
|
||||
}
|
||||
@@ -131,19 +131,19 @@ export interface ListNotifChanges {
|
||||
*/
|
||||
export interface NotifChanges {
|
||||
/**
|
||||
* @generated from protobuf field: api.DateTime RefDate = 1 [json_name = "RefDate"];
|
||||
* @generated from protobuf field: api.DateTime RefDate = 1
|
||||
*/
|
||||
RefDate?: DateTime;
|
||||
/**
|
||||
* @generated from protobuf field: string UserName = 2 [json_name = "UserName"];
|
||||
* @generated from protobuf field: string UserName = 2
|
||||
*/
|
||||
UserName: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 3 [json_name = "NotificationType"];
|
||||
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 3
|
||||
*/
|
||||
NotificationType: NotifTypeEnum;
|
||||
/**
|
||||
* @generated from protobuf field: google.protobuf.Struct Details = 4 [json_name = "Details"];
|
||||
* @generated from protobuf field: google.protobuf.Struct Details = 4
|
||||
*/
|
||||
Details?: Struct;
|
||||
}
|
||||
@@ -155,17 +155,17 @@ export interface NotifChanges {
|
||||
*/
|
||||
export interface AppointmentStatus {
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentStatusCode StatusCode = 1 [json_name = "StatusCode"];
|
||||
* @generated from protobuf field: api.AppointmentStatusCode StatusCode = 1
|
||||
*/
|
||||
StatusCode: AppointmentStatusCode;
|
||||
/**
|
||||
* @generated from protobuf field: string Date = 2 [json_name = "Date"];
|
||||
* @generated from protobuf field: string Date = 2
|
||||
*/
|
||||
Date: string;
|
||||
/**
|
||||
* Status effective date. Set by the event's RefDate that triggered the status change.
|
||||
*
|
||||
* @generated from protobuf field: api.DateTime ActualDate = 3 [json_name = "ActualDate"];
|
||||
* @generated from protobuf field: api.DateTime ActualDate = 3
|
||||
*/
|
||||
ActualDate?: DateTime;
|
||||
}
|
||||
@@ -179,21 +179,21 @@ export interface AppointmentStatusStruct {
|
||||
/**
|
||||
* Current status of the Appointment entity
|
||||
*
|
||||
* @generated from protobuf field: api.AppointmentStatus Current = 1 [json_name = "Current"];
|
||||
* @generated from protobuf field: api.AppointmentStatus Current = 1
|
||||
*/
|
||||
Current?: AppointmentStatus;
|
||||
/**
|
||||
* List of all status history of the Appointment entity
|
||||
*
|
||||
* @generated from protobuf field: repeated api.AppointmentStatus History = 2 [json_name = "History"];
|
||||
* @generated from protobuf field: repeated api.AppointmentStatus History = 2
|
||||
*/
|
||||
History: AppointmentStatus[];
|
||||
/**
|
||||
* @generated from protobuf field: string CreationDate = 3 [json_name = "CreationDate"];
|
||||
* @generated from protobuf field: string CreationDate = 3
|
||||
*/
|
||||
CreationDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: uint32 Version = 4 [json_name = "Version"];
|
||||
* @generated from protobuf field: uint32 Version = 4
|
||||
*/
|
||||
Version: number;
|
||||
}
|
||||
@@ -204,19 +204,19 @@ export interface Commission {
|
||||
/**
|
||||
* Identifier for the project associated with the order
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
* @generated from protobuf field: string ProjectID = 1
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* ID of the order, might be null for standalone
|
||||
*
|
||||
* @generated from protobuf field: string OrderID = 2 [json_name = "OrderID"];
|
||||
* @generated from protobuf field: string OrderID = 2
|
||||
*/
|
||||
OrderID: string;
|
||||
/**
|
||||
* Volumetry inside the truck, should have at least one item listed
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 [json_name = "Quantities"];
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3
|
||||
*/
|
||||
Quantities: QuantityByUnit[];
|
||||
}
|
||||
@@ -333,13 +333,13 @@ class ClaimStatusDef$Type extends MessageType<ClaimStatusDef> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ClaimStatus StatusCode = 1 [json_name = "StatusCode"];*/ 1:
|
||||
case /* api.ClaimStatus StatusCode */ 1:
|
||||
message.StatusCode = reader.int32();
|
||||
break;
|
||||
case /* string Date = 2 [json_name = "Date"];*/ 2:
|
||||
case /* string Date */ 2:
|
||||
message.Date = reader.string();
|
||||
break;
|
||||
case /* api.DateTime ActualDate = 3 [json_name = "ActualDate"];*/ 3:
|
||||
case /* api.DateTime ActualDate */ 3:
|
||||
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
|
||||
break;
|
||||
default:
|
||||
@@ -354,13 +354,13 @@ class ClaimStatusDef$Type extends MessageType<ClaimStatusDef> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ClaimStatusDef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ClaimStatus StatusCode = 1 [json_name = "StatusCode"]; */
|
||||
/* api.ClaimStatus StatusCode = 1; */
|
||||
if (message.StatusCode !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.StatusCode);
|
||||
/* string Date = 2 [json_name = "Date"]; */
|
||||
/* string Date = 2; */
|
||||
if (message.Date !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Date);
|
||||
/* api.DateTime ActualDate = 3 [json_name = "ActualDate"]; */
|
||||
/* api.DateTime ActualDate = 3; */
|
||||
if (message.ActualDate)
|
||||
DateTime.internalBinaryWrite(message.ActualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -397,16 +397,16 @@ class ClaimStatusStruct$Type extends MessageType<ClaimStatusStruct> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ClaimStatusDef Current = 1 [json_name = "Current"];*/ 1:
|
||||
case /* api.ClaimStatusDef Current */ 1:
|
||||
message.Current = ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* repeated api.ClaimStatusDef History = 2 [json_name = "History"];*/ 2:
|
||||
case /* repeated api.ClaimStatusDef History */ 2:
|
||||
message.History.push(ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string CreationDate = 3 [json_name = "CreationDate"];*/ 3:
|
||||
case /* string CreationDate */ 3:
|
||||
message.CreationDate = reader.string();
|
||||
break;
|
||||
case /* uint32 Version = 4 [json_name = "Version"];*/ 4:
|
||||
case /* uint32 Version */ 4:
|
||||
message.Version = reader.uint32();
|
||||
break;
|
||||
default:
|
||||
@@ -421,16 +421,16 @@ class ClaimStatusStruct$Type extends MessageType<ClaimStatusStruct> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ClaimStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ClaimStatusDef Current = 1 [json_name = "Current"]; */
|
||||
/* api.ClaimStatusDef Current = 1; */
|
||||
if (message.Current)
|
||||
ClaimStatusDef.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ClaimStatusDef History = 2 [json_name = "History"]; */
|
||||
/* repeated api.ClaimStatusDef History = 2; */
|
||||
for (let i = 0; i < message.History.length; i++)
|
||||
ClaimStatusDef.internalBinaryWrite(message.History[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string CreationDate = 3 [json_name = "CreationDate"]; */
|
||||
/* string CreationDate = 3; */
|
||||
if (message.CreationDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
|
||||
/* uint32 Version = 4 [json_name = "Version"]; */
|
||||
/* uint32 Version = 4; */
|
||||
if (message.Version !== 0)
|
||||
writer.tag(4, WireType.Varint).uint32(message.Version);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -469,19 +469,19 @@ class WindowedNotif$Type extends MessageType<WindowedNotif> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ListNotifChanges ListNotifChanges = 1 [json_name = "ListNotifChanges"];*/ 1:
|
||||
case /* api.ListNotifChanges ListNotifChanges */ 1:
|
||||
message.ListNotifChanges = ListNotifChanges.internalBinaryRead(reader, reader.uint32(), options, message.ListNotifChanges);
|
||||
break;
|
||||
case /* repeated api.UserMails UserMails = 2 [json_name = "UserMails"];*/ 2:
|
||||
case /* repeated api.UserMails UserMails */ 2:
|
||||
message.UserMails.push(UserMails.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string JsonModel = 3 [json_name = "JsonModel"];*/ 3:
|
||||
case /* string JsonModel */ 3:
|
||||
message.JsonModel = reader.string();
|
||||
break;
|
||||
case /* string languageCode */ 4:
|
||||
message.languageCode = reader.string();
|
||||
break;
|
||||
case /* string HtmlBody = 5 [json_name = "HtmlBody"];*/ 5:
|
||||
case /* string HtmlBody */ 5:
|
||||
message.HtmlBody = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -496,19 +496,19 @@ class WindowedNotif$Type extends MessageType<WindowedNotif> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: WindowedNotif, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ListNotifChanges ListNotifChanges = 1 [json_name = "ListNotifChanges"]; */
|
||||
/* api.ListNotifChanges ListNotifChanges = 1; */
|
||||
if (message.ListNotifChanges)
|
||||
ListNotifChanges.internalBinaryWrite(message.ListNotifChanges, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.UserMails UserMails = 2 [json_name = "UserMails"]; */
|
||||
/* repeated api.UserMails UserMails = 2; */
|
||||
for (let i = 0; i < message.UserMails.length; i++)
|
||||
UserMails.internalBinaryWrite(message.UserMails[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string JsonModel = 3 [json_name = "JsonModel"]; */
|
||||
/* string JsonModel = 3; */
|
||||
if (message.JsonModel !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.JsonModel);
|
||||
/* string languageCode = 4; */
|
||||
if (message.languageCode !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.languageCode);
|
||||
/* string HtmlBody = 5 [json_name = "HtmlBody"]; */
|
||||
/* string HtmlBody = 5; */
|
||||
if (message.HtmlBody !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.HtmlBody);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -604,22 +604,22 @@ class ListNotifChanges$Type extends MessageType<ListNotifChanges> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string VisibilityURI = 2 [json_name = "VisibilityURI"];*/ 2:
|
||||
case /* string VisibilityURI */ 2:
|
||||
message.VisibilityURI = reader.string();
|
||||
break;
|
||||
case /* string EntityType = 3 [json_name = "EntityType"];*/ 3:
|
||||
case /* string EntityType */ 3:
|
||||
message.EntityType = reader.string();
|
||||
break;
|
||||
case /* string EntityRefID = 4 [json_name = "EntityRefID"];*/ 4:
|
||||
case /* string EntityRefID */ 4:
|
||||
message.EntityRefID = reader.string();
|
||||
break;
|
||||
case /* repeated api.NotifChanges NotifChanges = 5 [json_name = "NotifChanges"];*/ 5:
|
||||
case /* repeated api.NotifChanges NotifChanges */ 5:
|
||||
message.NotifChanges.push(NotifChanges.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* google.protobuf.Struct Tags = 6 [json_name = "Tags"];*/ 6:
|
||||
case /* google.protobuf.Struct Tags */ 6:
|
||||
message.Tags = Struct.internalBinaryRead(reader, reader.uint32(), options, message.Tags);
|
||||
break;
|
||||
default:
|
||||
@@ -634,22 +634,22 @@ class ListNotifChanges$Type extends MessageType<ListNotifChanges> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListNotifChanges, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string VisibilityURI = 2 [json_name = "VisibilityURI"]; */
|
||||
/* string VisibilityURI = 2; */
|
||||
if (message.VisibilityURI !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.VisibilityURI);
|
||||
/* string EntityType = 3 [json_name = "EntityType"]; */
|
||||
/* string EntityType = 3; */
|
||||
if (message.EntityType !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EntityType);
|
||||
/* string EntityRefID = 4 [json_name = "EntityRefID"]; */
|
||||
/* string EntityRefID = 4; */
|
||||
if (message.EntityRefID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.EntityRefID);
|
||||
/* repeated api.NotifChanges NotifChanges = 5 [json_name = "NotifChanges"]; */
|
||||
/* repeated api.NotifChanges NotifChanges = 5; */
|
||||
for (let i = 0; i < message.NotifChanges.length; i++)
|
||||
NotifChanges.internalBinaryWrite(message.NotifChanges[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* google.protobuf.Struct Tags = 6 [json_name = "Tags"]; */
|
||||
/* google.protobuf.Struct Tags = 6; */
|
||||
if (message.Tags)
|
||||
Struct.internalBinaryWrite(message.Tags, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -685,16 +685,16 @@ class NotifChanges$Type extends MessageType<NotifChanges> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.DateTime RefDate = 1 [json_name = "RefDate"];*/ 1:
|
||||
case /* api.DateTime RefDate */ 1:
|
||||
message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate);
|
||||
break;
|
||||
case /* string UserName = 2 [json_name = "UserName"];*/ 2:
|
||||
case /* string UserName */ 2:
|
||||
message.UserName = reader.string();
|
||||
break;
|
||||
case /* api.NotifTypeEnum NotificationType = 3 [json_name = "NotificationType"];*/ 3:
|
||||
case /* api.NotifTypeEnum NotificationType */ 3:
|
||||
message.NotificationType = reader.int32();
|
||||
break;
|
||||
case /* google.protobuf.Struct Details = 4 [json_name = "Details"];*/ 4:
|
||||
case /* google.protobuf.Struct Details */ 4:
|
||||
message.Details = Struct.internalBinaryRead(reader, reader.uint32(), options, message.Details);
|
||||
break;
|
||||
default:
|
||||
@@ -709,16 +709,16 @@ class NotifChanges$Type extends MessageType<NotifChanges> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: NotifChanges, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.DateTime RefDate = 1 [json_name = "RefDate"]; */
|
||||
/* api.DateTime RefDate = 1; */
|
||||
if (message.RefDate)
|
||||
DateTime.internalBinaryWrite(message.RefDate, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string UserName = 2 [json_name = "UserName"]; */
|
||||
/* string UserName = 2; */
|
||||
if (message.UserName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.UserName);
|
||||
/* api.NotifTypeEnum NotificationType = 3 [json_name = "NotificationType"]; */
|
||||
/* api.NotifTypeEnum NotificationType = 3; */
|
||||
if (message.NotificationType !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.NotificationType);
|
||||
/* google.protobuf.Struct Details = 4 [json_name = "Details"]; */
|
||||
/* google.protobuf.Struct Details = 4; */
|
||||
if (message.Details)
|
||||
Struct.internalBinaryWrite(message.Details, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -753,13 +753,13 @@ class AppointmentStatus$Type extends MessageType<AppointmentStatus> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.AppointmentStatusCode StatusCode = 1 [json_name = "StatusCode"];*/ 1:
|
||||
case /* api.AppointmentStatusCode StatusCode */ 1:
|
||||
message.StatusCode = reader.int32();
|
||||
break;
|
||||
case /* string Date = 2 [json_name = "Date"];*/ 2:
|
||||
case /* string Date */ 2:
|
||||
message.Date = reader.string();
|
||||
break;
|
||||
case /* api.DateTime ActualDate = 3 [json_name = "ActualDate"];*/ 3:
|
||||
case /* api.DateTime ActualDate */ 3:
|
||||
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
|
||||
break;
|
||||
default:
|
||||
@@ -774,13 +774,13 @@ class AppointmentStatus$Type extends MessageType<AppointmentStatus> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.AppointmentStatusCode StatusCode = 1 [json_name = "StatusCode"]; */
|
||||
/* api.AppointmentStatusCode StatusCode = 1; */
|
||||
if (message.StatusCode !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.StatusCode);
|
||||
/* string Date = 2 [json_name = "Date"]; */
|
||||
/* string Date = 2; */
|
||||
if (message.Date !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Date);
|
||||
/* api.DateTime ActualDate = 3 [json_name = "ActualDate"]; */
|
||||
/* api.DateTime ActualDate = 3; */
|
||||
if (message.ActualDate)
|
||||
DateTime.internalBinaryWrite(message.ActualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -817,16 +817,16 @@ class AppointmentStatusStruct$Type extends MessageType<AppointmentStatusStruct>
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.AppointmentStatus Current = 1 [json_name = "Current"];*/ 1:
|
||||
case /* api.AppointmentStatus Current */ 1:
|
||||
message.Current = AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* repeated api.AppointmentStatus History = 2 [json_name = "History"];*/ 2:
|
||||
case /* repeated api.AppointmentStatus History */ 2:
|
||||
message.History.push(AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string CreationDate = 3 [json_name = "CreationDate"];*/ 3:
|
||||
case /* string CreationDate */ 3:
|
||||
message.CreationDate = reader.string();
|
||||
break;
|
||||
case /* uint32 Version = 4 [json_name = "Version"];*/ 4:
|
||||
case /* uint32 Version */ 4:
|
||||
message.Version = reader.uint32();
|
||||
break;
|
||||
default:
|
||||
@@ -841,16 +841,16 @@ class AppointmentStatusStruct$Type extends MessageType<AppointmentStatusStruct>
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.AppointmentStatus Current = 1 [json_name = "Current"]; */
|
||||
/* api.AppointmentStatus Current = 1; */
|
||||
if (message.Current)
|
||||
AppointmentStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.AppointmentStatus History = 2 [json_name = "History"]; */
|
||||
/* repeated api.AppointmentStatus History = 2; */
|
||||
for (let i = 0; i < message.History.length; i++)
|
||||
AppointmentStatus.internalBinaryWrite(message.History[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string CreationDate = 3 [json_name = "CreationDate"]; */
|
||||
/* string CreationDate = 3; */
|
||||
if (message.CreationDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
|
||||
/* uint32 Version = 4 [json_name = "Version"]; */
|
||||
/* uint32 Version = 4; */
|
||||
if (message.Version !== 0)
|
||||
writer.tag(4, WireType.Varint).uint32(message.Version);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -886,13 +886,13 @@ class Commission$Type extends MessageType<Commission> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
case /* string ProjectID */ 1:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string OrderID = 2 [json_name = "OrderID"];*/ 2:
|
||||
case /* string OrderID */ 2:
|
||||
message.OrderID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities = 3 [json_name = "Quantities"];*/ 3:
|
||||
case /* repeated api.QuantityByUnit Quantities */ 3:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
@@ -907,13 +907,13 @@ class Commission$Type extends MessageType<Commission> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: Commission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
/* string ProjectID = 1; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string OrderID = 2 [json_name = "OrderID"]; */
|
||||
/* string OrderID = 2; */
|
||||
if (message.OrderID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.OrderID);
|
||||
/* repeated api.QuantityByUnit Quantities = 3 [json_name = "Quantities"]; */
|
||||
/* repeated api.QuantityByUnit Quantities = 3; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user