You've already forked npm-core-sdk
Latest generation
This commit is contained in:
358
collabShared.ts
358
collabShared.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -24,19 +24,19 @@ export interface ClaimStatusDef {
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimStatus StatusCode = 1 [json_name = "StatusCode"];
|
||||
*/
|
||||
statusCode: ClaimStatus;
|
||||
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"];
|
||||
*/
|
||||
date: string;
|
||||
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"];
|
||||
*/
|
||||
actualDate?: DateTime;
|
||||
ActualDate?: DateTime;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ClaimStatusStruct
|
||||
@@ -45,19 +45,19 @@ export interface ClaimStatusStruct {
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimStatusDef Current = 1 [json_name = "Current"];
|
||||
*/
|
||||
current?: ClaimStatusDef; // Current status of the Claim entity
|
||||
Current?: ClaimStatusDef; // Current status of the Claim entity
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimStatusDef History = 2 [json_name = "History"];
|
||||
*/
|
||||
history: ClaimStatusDef[]; // List of all status history of the Claim entity
|
||||
History: ClaimStatusDef[]; // List of all status history of the Claim entity
|
||||
/**
|
||||
* @generated from protobuf field: string CreationDate = 3 [json_name = "CreationDate"];
|
||||
*/
|
||||
creationDate: string;
|
||||
CreationDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: uint32 Version = 4 [json_name = "Version"];
|
||||
*/
|
||||
version: number;
|
||||
Version: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.WindowedNotif
|
||||
@@ -66,15 +66,15 @@ export interface WindowedNotif {
|
||||
/**
|
||||
* @generated from protobuf field: api.ListNotifChanges ListNotifChanges = 1 [json_name = "ListNotifChanges"];
|
||||
*/
|
||||
listNotifChanges?: ListNotifChanges;
|
||||
ListNotifChanges?: ListNotifChanges;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.UserMails UserMails = 2 [json_name = "UserMails"];
|
||||
*/
|
||||
userMails: UserMails[];
|
||||
UserMails: UserMails[];
|
||||
/**
|
||||
* @generated from protobuf field: string JsonModel = 3 [json_name = "JsonModel"];
|
||||
*/
|
||||
jsonModel: string;
|
||||
JsonModel: string;
|
||||
/**
|
||||
* @generated from protobuf field: string languageCode = 4;
|
||||
*/
|
||||
@@ -82,7 +82,7 @@ export interface WindowedNotif {
|
||||
/**
|
||||
* @generated from protobuf field: string HtmlBody = 5 [json_name = "HtmlBody"];
|
||||
*/
|
||||
htmlBody: string;
|
||||
HtmlBody: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UserMails
|
||||
@@ -104,27 +104,27 @@ export interface ListNotifChanges {
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string VisibilityURI = 2 [json_name = "VisibilityURI"];
|
||||
*/
|
||||
visibilityURI: string;
|
||||
VisibilityURI: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityType = 3 [json_name = "EntityType"];
|
||||
*/
|
||||
entityType: string;
|
||||
EntityType: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityRefID = 4 [json_name = "EntityRefID"];
|
||||
*/
|
||||
entityRefID: string;
|
||||
EntityRefID: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.NotifChanges NotifChanges = 5 [json_name = "NotifChanges"];
|
||||
*/
|
||||
notifChanges: NotifChanges[];
|
||||
NotifChanges: NotifChanges[];
|
||||
/**
|
||||
* @generated from protobuf field: google.protobuf.Struct Tags = 6 [json_name = "Tags"];
|
||||
*/
|
||||
tags?: Struct;
|
||||
Tags?: Struct;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.NotifChanges
|
||||
@@ -133,19 +133,19 @@ export interface NotifChanges {
|
||||
/**
|
||||
* @generated from protobuf field: api.DateTime RefDate = 1 [json_name = "RefDate"];
|
||||
*/
|
||||
refDate?: DateTime;
|
||||
RefDate?: DateTime;
|
||||
/**
|
||||
* @generated from protobuf field: string UserName = 2 [json_name = "UserName"];
|
||||
*/
|
||||
userName: string;
|
||||
UserName: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 3 [json_name = "NotificationType"];
|
||||
*/
|
||||
notificationType: NotifTypeEnum;
|
||||
NotificationType: NotifTypeEnum;
|
||||
/**
|
||||
* @generated from protobuf field: google.protobuf.Struct Details = 4 [json_name = "Details"];
|
||||
*/
|
||||
details?: Struct;
|
||||
Details?: Struct;
|
||||
}
|
||||
//
|
||||
// Appointment entity status structure
|
||||
@@ -157,17 +157,17 @@ export interface AppointmentStatus {
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentStatusCode StatusCode = 1 [json_name = "StatusCode"];
|
||||
*/
|
||||
statusCode: AppointmentStatusCode;
|
||||
StatusCode: AppointmentStatusCode;
|
||||
/**
|
||||
* @generated from protobuf field: string Date = 2 [json_name = "Date"];
|
||||
*/
|
||||
date: string;
|
||||
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"];
|
||||
*/
|
||||
actualDate?: DateTime;
|
||||
ActualDate?: DateTime;
|
||||
}
|
||||
//
|
||||
// AppointmentStatusStruct statuses structure
|
||||
@@ -181,21 +181,21 @@ export interface AppointmentStatusStruct {
|
||||
*
|
||||
* @generated from protobuf field: api.AppointmentStatus Current = 1 [json_name = "Current"];
|
||||
*/
|
||||
current?: AppointmentStatus;
|
||||
Current?: AppointmentStatus;
|
||||
/**
|
||||
* List of all status history of the Appointment entity
|
||||
*
|
||||
* @generated from protobuf field: repeated api.AppointmentStatus History = 2 [json_name = "History"];
|
||||
*/
|
||||
history: AppointmentStatus[];
|
||||
History: AppointmentStatus[];
|
||||
/**
|
||||
* @generated from protobuf field: string CreationDate = 3 [json_name = "CreationDate"];
|
||||
*/
|
||||
creationDate: string;
|
||||
CreationDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: uint32 Version = 4 [json_name = "Version"];
|
||||
*/
|
||||
version: number;
|
||||
Version: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.Commission
|
||||
@@ -206,19 +206,19 @@ export interface Commission {
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
|
||||
*/
|
||||
projectID: string;
|
||||
ProjectID: string;
|
||||
/**
|
||||
* ID of the order, might be null for standalone
|
||||
*
|
||||
* @generated from protobuf field: string OrderID = 2 [json_name = "OrderID"];
|
||||
*/
|
||||
orderID: string;
|
||||
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"];
|
||||
*/
|
||||
quantities: QuantityByUnit[];
|
||||
Quantities: QuantityByUnit[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.NotifTypeEnum
|
||||
@@ -315,15 +315,15 @@ export enum AppointmentStatusCode {
|
||||
class ClaimStatusDef$Type extends MessageType<ClaimStatusDef> {
|
||||
constructor() {
|
||||
super("api.ClaimStatusDef", [
|
||||
{ no: 1, name: "StatusCode", kind: "enum", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 2, name: "Date", kind: "scalar", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 3, name: "ActualDate", kind: "message", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
|
||||
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } },
|
||||
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ClaimStatusDef>): ClaimStatusDef {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.statusCode = 0;
|
||||
message.date = "";
|
||||
message.StatusCode = 0;
|
||||
message.Date = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClaimStatusDef>(this, message, value);
|
||||
return message;
|
||||
@@ -334,13 +334,13 @@ class ClaimStatusDef$Type extends MessageType<ClaimStatusDef> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ClaimStatus StatusCode = 1 [json_name = "StatusCode"];*/ 1:
|
||||
message.statusCode = reader.int32();
|
||||
message.StatusCode = reader.int32();
|
||||
break;
|
||||
case /* string Date = 2 [json_name = "Date"];*/ 2:
|
||||
message.date = reader.string();
|
||||
message.Date = reader.string();
|
||||
break;
|
||||
case /* api.DateTime ActualDate = 3 [json_name = "ActualDate"];*/ 3:
|
||||
message.actualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.actualDate);
|
||||
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -355,14 +355,14 @@ class ClaimStatusDef$Type extends MessageType<ClaimStatusDef> {
|
||||
}
|
||||
internalBinaryWrite(message: ClaimStatusDef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ClaimStatus StatusCode = 1 [json_name = "StatusCode"]; */
|
||||
if (message.statusCode !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.statusCode);
|
||||
if (message.StatusCode !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.StatusCode);
|
||||
/* string Date = 2 [json_name = "Date"]; */
|
||||
if (message.date !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.date);
|
||||
if (message.Date !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Date);
|
||||
/* api.DateTime ActualDate = 3 [json_name = "ActualDate"]; */
|
||||
if (message.actualDate)
|
||||
DateTime.internalBinaryWrite(message.actualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.ActualDate)
|
||||
DateTime.internalBinaryWrite(message.ActualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -377,17 +377,17 @@ export const ClaimStatusDef = new ClaimStatusDef$Type();
|
||||
class ClaimStatusStruct$Type extends MessageType<ClaimStatusStruct> {
|
||||
constructor() {
|
||||
super("api.ClaimStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", jsonName: "Current", T: () => ClaimStatusDef },
|
||||
{ no: 2, name: "History", kind: "message", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => ClaimStatusDef, options: { "api.aggKey": "Date" } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Version", kind: "scalar", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ClaimStatusDef },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => ClaimStatusDef, options: { "api.aggKey": "Date" } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ClaimStatusStruct>): ClaimStatusStruct {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.history = [];
|
||||
message.creationDate = "";
|
||||
message.version = 0;
|
||||
message.History = [];
|
||||
message.CreationDate = "";
|
||||
message.Version = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClaimStatusStruct>(this, message, value);
|
||||
return message;
|
||||
@@ -398,16 +398,16 @@ class ClaimStatusStruct$Type extends MessageType<ClaimStatusStruct> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ClaimStatusDef Current = 1 [json_name = "Current"];*/ 1:
|
||||
message.current = ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options, message.current);
|
||||
message.Current = ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* repeated api.ClaimStatusDef History = 2 [json_name = "History"];*/ 2:
|
||||
message.history.push(ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.History.push(ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string CreationDate = 3 [json_name = "CreationDate"];*/ 3:
|
||||
message.creationDate = reader.string();
|
||||
message.CreationDate = reader.string();
|
||||
break;
|
||||
case /* uint32 Version = 4 [json_name = "Version"];*/ 4:
|
||||
message.version = reader.uint32();
|
||||
message.Version = reader.uint32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -422,17 +422,17 @@ class ClaimStatusStruct$Type extends MessageType<ClaimStatusStruct> {
|
||||
}
|
||||
internalBinaryWrite(message: ClaimStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ClaimStatusDef Current = 1 [json_name = "Current"]; */
|
||||
if (message.current)
|
||||
ClaimStatusDef.internalBinaryWrite(message.current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Current)
|
||||
ClaimStatusDef.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ClaimStatusDef History = 2 [json_name = "History"]; */
|
||||
for (let i = 0; i < message.history.length; i++)
|
||||
ClaimStatusDef.internalBinaryWrite(message.history[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.creationDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.creationDate);
|
||||
if (message.CreationDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
|
||||
/* uint32 Version = 4 [json_name = "Version"]; */
|
||||
if (message.version !== 0)
|
||||
writer.tag(4, WireType.Varint).uint32(message.version);
|
||||
if (message.Version !== 0)
|
||||
writer.tag(4, WireType.Varint).uint32(message.Version);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -447,19 +447,19 @@ export const ClaimStatusStruct = new ClaimStatusStruct$Type();
|
||||
class WindowedNotif$Type extends MessageType<WindowedNotif> {
|
||||
constructor() {
|
||||
super("api.WindowedNotif", [
|
||||
{ no: 1, name: "ListNotifChanges", kind: "message", jsonName: "ListNotifChanges", T: () => ListNotifChanges },
|
||||
{ no: 2, name: "UserMails", kind: "message", jsonName: "UserMails", repeat: 1 /*RepeatType.PACKED*/, T: () => UserMails },
|
||||
{ no: 3, name: "JsonModel", kind: "scalar", jsonName: "JsonModel", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1, name: "ListNotifChanges", kind: "message", localName: "ListNotifChanges", jsonName: "ListNotifChanges", T: () => ListNotifChanges },
|
||||
{ no: 2, name: "UserMails", kind: "message", localName: "UserMails", jsonName: "UserMails", repeat: 1 /*RepeatType.PACKED*/, T: () => UserMails },
|
||||
{ no: 3, name: "JsonModel", kind: "scalar", localName: "JsonModel", jsonName: "JsonModel", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "languageCode", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "HtmlBody", kind: "scalar", jsonName: "HtmlBody", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 5, name: "HtmlBody", kind: "scalar", localName: "HtmlBody", jsonName: "HtmlBody", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<WindowedNotif>): WindowedNotif {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.userMails = [];
|
||||
message.jsonModel = "";
|
||||
message.UserMails = [];
|
||||
message.JsonModel = "";
|
||||
message.languageCode = "";
|
||||
message.htmlBody = "";
|
||||
message.HtmlBody = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<WindowedNotif>(this, message, value);
|
||||
return message;
|
||||
@@ -470,19 +470,19 @@ class WindowedNotif$Type extends MessageType<WindowedNotif> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ListNotifChanges ListNotifChanges = 1 [json_name = "ListNotifChanges"];*/ 1:
|
||||
message.listNotifChanges = ListNotifChanges.internalBinaryRead(reader, reader.uint32(), options, message.listNotifChanges);
|
||||
message.ListNotifChanges = ListNotifChanges.internalBinaryRead(reader, reader.uint32(), options, message.ListNotifChanges);
|
||||
break;
|
||||
case /* repeated api.UserMails UserMails = 2 [json_name = "UserMails"];*/ 2:
|
||||
message.userMails.push(UserMails.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.UserMails.push(UserMails.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string JsonModel = 3 [json_name = "JsonModel"];*/ 3:
|
||||
message.jsonModel = reader.string();
|
||||
message.JsonModel = reader.string();
|
||||
break;
|
||||
case /* string languageCode */ 4:
|
||||
message.languageCode = reader.string();
|
||||
break;
|
||||
case /* string HtmlBody = 5 [json_name = "HtmlBody"];*/ 5:
|
||||
message.htmlBody = reader.string();
|
||||
message.HtmlBody = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -497,20 +497,20 @@ class WindowedNotif$Type extends MessageType<WindowedNotif> {
|
||||
}
|
||||
internalBinaryWrite(message: WindowedNotif, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ListNotifChanges ListNotifChanges = 1 [json_name = "ListNotifChanges"]; */
|
||||
if (message.listNotifChanges)
|
||||
ListNotifChanges.internalBinaryWrite(message.listNotifChanges, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.ListNotifChanges)
|
||||
ListNotifChanges.internalBinaryWrite(message.ListNotifChanges, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.UserMails UserMails = 2 [json_name = "UserMails"]; */
|
||||
for (let i = 0; i < message.userMails.length; i++)
|
||||
UserMails.internalBinaryWrite(message.userMails[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.jsonModel !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.jsonModel);
|
||||
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"]; */
|
||||
if (message.htmlBody !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.htmlBody);
|
||||
if (message.HtmlBody !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.HtmlBody);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -580,21 +580,21 @@ export const UserMails = new UserMails$Type();
|
||||
class ListNotifChanges$Type extends MessageType<ListNotifChanges> {
|
||||
constructor() {
|
||||
super("api.ListNotifChanges", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "VisibilityURI", kind: "scalar", jsonName: "VisibilityURI", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "EntityType", kind: "scalar", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "NotifChanges", kind: "message", jsonName: "NotifChanges", repeat: 1 /*RepeatType.PACKED*/, T: () => NotifChanges },
|
||||
{ no: 6, name: "Tags", kind: "message", jsonName: "Tags", T: () => Struct }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "VisibilityURI", kind: "scalar", localName: "VisibilityURI", jsonName: "VisibilityURI", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "NotifChanges", kind: "message", localName: "NotifChanges", jsonName: "NotifChanges", repeat: 1 /*RepeatType.PACKED*/, T: () => NotifChanges },
|
||||
{ no: 6, name: "Tags", kind: "message", localName: "Tags", jsonName: "Tags", T: () => Struct }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ListNotifChanges>): ListNotifChanges {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.visibilityURI = "";
|
||||
message.entityType = "";
|
||||
message.entityRefID = "";
|
||||
message.notifChanges = [];
|
||||
message.ProjectID = "";
|
||||
message.VisibilityURI = "";
|
||||
message.EntityType = "";
|
||||
message.EntityRefID = "";
|
||||
message.NotifChanges = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListNotifChanges>(this, message, value);
|
||||
return message;
|
||||
@@ -605,22 +605,22 @@ class ListNotifChanges$Type extends MessageType<ListNotifChanges> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string VisibilityURI = 2 [json_name = "VisibilityURI"];*/ 2:
|
||||
message.visibilityURI = reader.string();
|
||||
message.VisibilityURI = reader.string();
|
||||
break;
|
||||
case /* string EntityType = 3 [json_name = "EntityType"];*/ 3:
|
||||
message.entityType = reader.string();
|
||||
message.EntityType = reader.string();
|
||||
break;
|
||||
case /* string EntityRefID = 4 [json_name = "EntityRefID"];*/ 4:
|
||||
message.entityRefID = reader.string();
|
||||
message.EntityRefID = reader.string();
|
||||
break;
|
||||
case /* repeated api.NotifChanges NotifChanges = 5 [json_name = "NotifChanges"];*/ 5:
|
||||
message.notifChanges.push(NotifChanges.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.NotifChanges.push(NotifChanges.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* google.protobuf.Struct Tags = 6 [json_name = "Tags"];*/ 6:
|
||||
message.tags = Struct.internalBinaryRead(reader, reader.uint32(), options, message.tags);
|
||||
message.Tags = Struct.internalBinaryRead(reader, reader.uint32(), options, message.Tags);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -635,23 +635,23 @@ class ListNotifChanges$Type extends MessageType<ListNotifChanges> {
|
||||
}
|
||||
internalBinaryWrite(message: ListNotifChanges, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string VisibilityURI = 2 [json_name = "VisibilityURI"]; */
|
||||
if (message.visibilityURI !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.visibilityURI);
|
||||
if (message.VisibilityURI !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.VisibilityURI);
|
||||
/* string EntityType = 3 [json_name = "EntityType"]; */
|
||||
if (message.entityType !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.entityType);
|
||||
if (message.EntityType !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EntityType);
|
||||
/* string EntityRefID = 4 [json_name = "EntityRefID"]; */
|
||||
if (message.entityRefID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.entityRefID);
|
||||
if (message.EntityRefID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.EntityRefID);
|
||||
/* repeated api.NotifChanges NotifChanges = 5 [json_name = "NotifChanges"]; */
|
||||
for (let i = 0; i < message.notifChanges.length; i++)
|
||||
NotifChanges.internalBinaryWrite(message.notifChanges[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.tags)
|
||||
Struct.internalBinaryWrite(message.tags, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Tags)
|
||||
Struct.internalBinaryWrite(message.Tags, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -666,16 +666,16 @@ export const ListNotifChanges = new ListNotifChanges$Type();
|
||||
class NotifChanges$Type extends MessageType<NotifChanges> {
|
||||
constructor() {
|
||||
super("api.NotifChanges", [
|
||||
{ no: 1, name: "RefDate", kind: "message", jsonName: "RefDate", T: () => DateTime },
|
||||
{ no: 2, name: "UserName", kind: "scalar", jsonName: "UserName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "NotificationType", kind: "enum", jsonName: "NotificationType", T: () => ["api.NotifTypeEnum", NotifTypeEnum] },
|
||||
{ no: 4, name: "Details", kind: "message", jsonName: "Details", T: () => Struct }
|
||||
{ no: 1, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime },
|
||||
{ no: 2, name: "UserName", kind: "scalar", localName: "UserName", jsonName: "UserName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "NotificationType", kind: "enum", localName: "NotificationType", jsonName: "NotificationType", T: () => ["api.NotifTypeEnum", NotifTypeEnum] },
|
||||
{ no: 4, name: "Details", kind: "message", localName: "Details", jsonName: "Details", T: () => Struct }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<NotifChanges>): NotifChanges {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.userName = "";
|
||||
message.notificationType = 0;
|
||||
message.UserName = "";
|
||||
message.NotificationType = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<NotifChanges>(this, message, value);
|
||||
return message;
|
||||
@@ -686,16 +686,16 @@ class NotifChanges$Type extends MessageType<NotifChanges> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.DateTime RefDate = 1 [json_name = "RefDate"];*/ 1:
|
||||
message.refDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.refDate);
|
||||
message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate);
|
||||
break;
|
||||
case /* string UserName = 2 [json_name = "UserName"];*/ 2:
|
||||
message.userName = reader.string();
|
||||
message.UserName = reader.string();
|
||||
break;
|
||||
case /* api.NotifTypeEnum NotificationType = 3 [json_name = "NotificationType"];*/ 3:
|
||||
message.notificationType = reader.int32();
|
||||
message.NotificationType = reader.int32();
|
||||
break;
|
||||
case /* google.protobuf.Struct Details = 4 [json_name = "Details"];*/ 4:
|
||||
message.details = Struct.internalBinaryRead(reader, reader.uint32(), options, message.details);
|
||||
message.Details = Struct.internalBinaryRead(reader, reader.uint32(), options, message.Details);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -710,17 +710,17 @@ class NotifChanges$Type extends MessageType<NotifChanges> {
|
||||
}
|
||||
internalBinaryWrite(message: NotifChanges, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.DateTime RefDate = 1 [json_name = "RefDate"]; */
|
||||
if (message.refDate)
|
||||
DateTime.internalBinaryWrite(message.refDate, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.RefDate)
|
||||
DateTime.internalBinaryWrite(message.RefDate, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string UserName = 2 [json_name = "UserName"]; */
|
||||
if (message.userName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.userName);
|
||||
if (message.UserName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.UserName);
|
||||
/* api.NotifTypeEnum NotificationType = 3 [json_name = "NotificationType"]; */
|
||||
if (message.notificationType !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.notificationType);
|
||||
if (message.NotificationType !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.NotificationType);
|
||||
/* google.protobuf.Struct Details = 4 [json_name = "Details"]; */
|
||||
if (message.details)
|
||||
Struct.internalBinaryWrite(message.details, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Details)
|
||||
Struct.internalBinaryWrite(message.Details, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -735,15 +735,15 @@ export const NotifChanges = new NotifChanges$Type();
|
||||
class AppointmentStatus$Type extends MessageType<AppointmentStatus> {
|
||||
constructor() {
|
||||
super("api.AppointmentStatus", [
|
||||
{ no: 1, name: "StatusCode", kind: "enum", jsonName: "StatusCode", T: () => ["api.AppointmentStatusCode", AppointmentStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": {} } },
|
||||
{ no: 2, name: "Date", kind: "scalar", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": {}, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 3, name: "ActualDate", kind: "message", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
|
||||
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.AppointmentStatusCode", AppointmentStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": {} } },
|
||||
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": {}, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentStatus>): AppointmentStatus {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.statusCode = 0;
|
||||
message.date = "";
|
||||
message.StatusCode = 0;
|
||||
message.Date = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentStatus>(this, message, value);
|
||||
return message;
|
||||
@@ -754,13 +754,13 @@ class AppointmentStatus$Type extends MessageType<AppointmentStatus> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.AppointmentStatusCode StatusCode = 1 [json_name = "StatusCode"];*/ 1:
|
||||
message.statusCode = reader.int32();
|
||||
message.StatusCode = reader.int32();
|
||||
break;
|
||||
case /* string Date = 2 [json_name = "Date"];*/ 2:
|
||||
message.date = reader.string();
|
||||
message.Date = reader.string();
|
||||
break;
|
||||
case /* api.DateTime ActualDate = 3 [json_name = "ActualDate"];*/ 3:
|
||||
message.actualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.actualDate);
|
||||
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -775,14 +775,14 @@ class AppointmentStatus$Type extends MessageType<AppointmentStatus> {
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.AppointmentStatusCode StatusCode = 1 [json_name = "StatusCode"]; */
|
||||
if (message.statusCode !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.statusCode);
|
||||
if (message.StatusCode !== 0)
|
||||
writer.tag(1, WireType.Varint).int32(message.StatusCode);
|
||||
/* string Date = 2 [json_name = "Date"]; */
|
||||
if (message.date !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.date);
|
||||
if (message.Date !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Date);
|
||||
/* api.DateTime ActualDate = 3 [json_name = "ActualDate"]; */
|
||||
if (message.actualDate)
|
||||
DateTime.internalBinaryWrite(message.actualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.ActualDate)
|
||||
DateTime.internalBinaryWrite(message.ActualDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -797,17 +797,17 @@ export const AppointmentStatus = new AppointmentStatus$Type();
|
||||
class AppointmentStatusStruct$Type extends MessageType<AppointmentStatusStruct> {
|
||||
constructor() {
|
||||
super("api.AppointmentStatusStruct", [
|
||||
{ no: 1, name: "Current", kind: "message", jsonName: "Current", T: () => AppointmentStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => AppointmentStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Version", kind: "scalar", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => AppointmentStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 1 /*RepeatType.PACKED*/, T: () => AppointmentStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } },
|
||||
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
|
||||
{ no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentStatusStruct>): AppointmentStatusStruct {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.history = [];
|
||||
message.creationDate = "";
|
||||
message.version = 0;
|
||||
message.History = [];
|
||||
message.CreationDate = "";
|
||||
message.Version = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentStatusStruct>(this, message, value);
|
||||
return message;
|
||||
@@ -818,16 +818,16 @@ class AppointmentStatusStruct$Type extends MessageType<AppointmentStatusStruct>
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.AppointmentStatus Current = 1 [json_name = "Current"];*/ 1:
|
||||
message.current = AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options, message.current);
|
||||
message.Current = AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* repeated api.AppointmentStatus History = 2 [json_name = "History"];*/ 2:
|
||||
message.history.push(AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.History.push(AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string CreationDate = 3 [json_name = "CreationDate"];*/ 3:
|
||||
message.creationDate = reader.string();
|
||||
message.CreationDate = reader.string();
|
||||
break;
|
||||
case /* uint32 Version = 4 [json_name = "Version"];*/ 4:
|
||||
message.version = reader.uint32();
|
||||
message.Version = reader.uint32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -842,17 +842,17 @@ class AppointmentStatusStruct$Type extends MessageType<AppointmentStatusStruct>
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.AppointmentStatus Current = 1 [json_name = "Current"]; */
|
||||
if (message.current)
|
||||
AppointmentStatus.internalBinaryWrite(message.current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Current)
|
||||
AppointmentStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.AppointmentStatus History = 2 [json_name = "History"]; */
|
||||
for (let i = 0; i < message.history.length; i++)
|
||||
AppointmentStatus.internalBinaryWrite(message.history[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.creationDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.creationDate);
|
||||
if (message.CreationDate !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
|
||||
/* uint32 Version = 4 [json_name = "Version"]; */
|
||||
if (message.version !== 0)
|
||||
writer.tag(4, WireType.Varint).uint32(message.version);
|
||||
if (message.Version !== 0)
|
||||
writer.tag(4, WireType.Varint).uint32(message.Version);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -867,16 +867,16 @@ export const AppointmentStatusStruct = new AppointmentStatusStruct$Type();
|
||||
class Commission$Type extends MessageType<Commission> {
|
||||
constructor() {
|
||||
super("api.Commission", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "OrderID", kind: "scalar", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Quantities", kind: "message", jsonName: "Quantities", repeat: 1 /*RepeatType.PACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 1 /*RepeatType.PACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Commission>): Commission {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.projectID = "";
|
||||
message.orderID = "";
|
||||
message.quantities = [];
|
||||
message.ProjectID = "";
|
||||
message.OrderID = "";
|
||||
message.Quantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Commission>(this, message, value);
|
||||
return message;
|
||||
@@ -887,13 +887,13 @@ class Commission$Type extends MessageType<Commission> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
|
||||
message.projectID = reader.string();
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string OrderID = 2 [json_name = "OrderID"];*/ 2:
|
||||
message.orderID = reader.string();
|
||||
message.OrderID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities = 3 [json_name = "Quantities"];*/ 3:
|
||||
message.quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -908,14 +908,14 @@ class Commission$Type extends MessageType<Commission> {
|
||||
}
|
||||
internalBinaryWrite(message: Commission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ProjectID = 1 [json_name = "ProjectID"]; */
|
||||
if (message.projectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.projectID);
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string OrderID = 2 [json_name = "OrderID"]; */
|
||||
if (message.orderID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.orderID);
|
||||
if (message.OrderID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.OrderID);
|
||||
/* repeated api.QuantityByUnit Quantities = 3 [json_name = "Quantities"]; */
|
||||
for (let i = 0; i < message.quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
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;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user