Files
npm-core-sdk/collabShared.ts
2025-09-25 08:15:27 +00:00

854 lines
40 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "collabShared.proto" (package "api", syntax proto3)
// tslint:disable
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { Struct } from "./google/protobuf/struct";
import { DateTime } from "./shared";
import { ClaimStatus } from "./shared";
//
// This files contains domain objects
/**
* @generated from protobuf message api.ClaimStatusDef
*/
export interface ClaimStatusDef {
/**
* @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
*/
Date: string;
/**
* Status effective date. Set by the event's RefDate that triggered the status change.
*
* @generated from protobuf field: api.DateTime ActualDate = 3
*/
ActualDate?: DateTime;
}
/**
* @generated from protobuf message api.ClaimStatusStruct
*/
export interface ClaimStatusStruct {
/**
* @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
*/
History: ClaimStatusDef[]; // List of all status history of the Claim entity
/**
* @generated from protobuf field: string CreationDate = 3
*/
CreationDate: string;
/**
* @generated from protobuf field: uint32 Version = 4
*/
Version: number;
}
/**
* @generated from protobuf message api.WindowedNotif
*/
export interface WindowedNotif {
/**
* @generated from protobuf field: api.ListNotifChanges ListNotifChanges = 1
*/
ListNotifChanges?: ListNotifChanges;
/**
* @generated from protobuf field: repeated api.UserMails UserMails = 2
*/
UserMails: UserMails[];
/**
* @generated from protobuf field: string JsonModel = 3
*/
JsonModel: string;
/**
* @generated from protobuf field: string languageCode = 4
*/
languageCode: string;
/**
* @generated from protobuf field: string HtmlBody = 5
*/
HtmlBody: string;
}
/**
* @generated from protobuf message api.UserMails
*/
export interface UserMails {
/**
* @generated from protobuf field: string mail = 1
*/
mail: string;
/**
* @generated from protobuf field: string languageCode = 2
*/
languageCode: string;
}
/**
* @generated from protobuf message api.ListNotifChanges
*/
export interface ListNotifChanges {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string VisibilityURI = 2
*/
VisibilityURI: string;
/**
* @generated from protobuf field: string EntityType = 3
*/
EntityType: string;
/**
* @generated from protobuf field: string EntityRefID = 4
*/
EntityRefID: string;
/**
* @generated from protobuf field: repeated api.NotifChanges NotifChanges = 5
*/
NotifChanges: NotifChanges[];
/**
* @generated from protobuf field: google.protobuf.Struct Tags = 6
*/
Tags?: Struct;
}
/**
* @generated from protobuf message api.NotifChanges
*/
export interface NotifChanges {
/**
* @generated from protobuf field: api.DateTime RefDate = 1
*/
RefDate?: DateTime;
/**
* @generated from protobuf field: string UserName = 2
*/
UserName: string;
/**
* @generated from protobuf field: api.NotifTypeEnum NotificationType = 3
*/
NotificationType: NotifTypeEnum;
/**
* @generated from protobuf field: google.protobuf.Struct Details = 4
*/
Details?: Struct;
}
//
// Appointment entity status structure
/**
* @generated from protobuf message api.AppointmentStatus
*/
export interface AppointmentStatus {
/**
* @generated from protobuf field: api.AppointmentStatusCode StatusCode = 1
*/
StatusCode: AppointmentStatusCode;
/**
* @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
*/
ActualDate?: DateTime;
}
//
// AppointmentStatusStruct statuses structure
/**
* @generated from protobuf message api.AppointmentStatusStruct
*/
export interface AppointmentStatusStruct {
/**
* Current status of the Appointment entity
*
* @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
*/
History: AppointmentStatus[];
/**
* @generated from protobuf field: string CreationDate = 3
*/
CreationDate: string;
/**
* @generated from protobuf field: uint32 Version = 4
*/
Version: number;
}
/**
* @generated from protobuf enum api.NotifTypeEnum
*/
export enum NotifTypeEnum {
/**
* @generated from protobuf enum value: NOTIF_TYPE_UNKNOWN = 0;
*/
NOTIF_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: NOTIF_TYPE_COMMENT = 1;
*/
NOTIF_TYPE_COMMENT = 1,
/**
* @generated from protobuf enum value: NOTIF_TYPE_STATUS = 2;
*/
NOTIF_TYPE_STATUS = 2,
/**
* @generated from protobuf enum value: NOTIF_TYPE_ATTACHMENT_ADDED = 3;
*/
NOTIF_TYPE_ATTACHMENT_ADDED = 3,
/**
* @generated from protobuf enum value: NOTIF_TYPE_ATTACHMENT_DELETED = 4;
*/
NOTIF_TYPE_ATTACHMENT_DELETED = 4,
/**
* @generated from protobuf enum value: NOTIF_TYPE_CREATION = 5;
*/
NOTIF_TYPE_CREATION = 5,
/**
* @generated from protobuf enum value: NOTIF_TYPE_DELETION = 6;
*/
NOTIF_TYPE_DELETION = 6,
/**
* @generated from protobuf enum value: NOTIF_TYPE_CONTACT = 7;
*/
NOTIF_TYPE_CONTACT = 7,
/**
* @generated from protobuf enum value: NOTIF_TYPE_UPDATE = 8;
*/
NOTIF_TYPE_UPDATE = 8,
/**
* @generated from protobuf enum value: NOTIF_TYPE_COMPLETION = 9;
*/
NOTIF_TYPE_COMPLETION = 9
}
// Appointment
/**
*
* All statuses for Appointment entity
*
* @generated from protobuf enum api.AppointmentStatusCode
*/
export enum AppointmentStatusCode {
/**
* @generated from protobuf enum value: APPOINTMENT_0000_STATUS_UNKNOWN = 0;
*/
APPOINTMENT_0000_STATUS_UNKNOWN = 0,
/**
* @generated from protobuf enum value: APPOINTMENT_0100_CREATED = 100;
*/
APPOINTMENT_0100_CREATED = 100,
/**
* APPOINTMENT_0200_CARRIER_VALIDATION = 200;
*
* @generated from protobuf enum value: APPOINTMENT_0300_CARRIER_EXPECTED = 300;
*/
APPOINTMENT_0300_CARRIER_EXPECTED = 300,
/**
* @generated from protobuf enum value: APPOINTMENT_0400_CARRIER_ARRIVED = 400;
*/
APPOINTMENT_0400_CARRIER_ARRIVED = 400,
/**
* APPOINTMENT_0500_SITE_VALIDATION = 500;
*
* @generated from protobuf enum value: APPOINTMENT_0600_RECEPTION_UNLOADING = 600;
*/
APPOINTMENT_0600_RECEPTION_UNLOADING = 600,
/**
* @generated from protobuf enum value: APPOINTMENT_0700_RECEPTION_UNLOADED = 700;
*/
APPOINTMENT_0700_RECEPTION_UNLOADED = 700,
/**
* @generated from protobuf enum value: APPOINTMENT_0800_EXPEDITION_LOADING = 800;
*/
APPOINTMENT_0800_EXPEDITION_LOADING = 800,
/**
* @generated from protobuf enum value: APPOINTMENT_0900_EXPEDITION_LOADED = 900;
*/
APPOINTMENT_0900_EXPEDITION_LOADED = 900,
/**
* @generated from protobuf enum value: APPOINTMENT_1000_CARRIER_DEPARTED = 1000;
*/
APPOINTMENT_1000_CARRIER_DEPARTED = 1000,
/**
* @generated from protobuf enum value: APPOINTMENT_1100_CANCELED = 1100;
*/
APPOINTMENT_1100_CANCELED = 1100,
/**
* @generated from protobuf enum value: APPOINTMENT_9500_ANOMALY = 9500;
*/
APPOINTMENT_9500_ANOMALY = 9500
}
// @generated message type with reflection information, may provide speed optimized methods
class ClaimStatusDef$Type extends MessageType<ClaimStatusDef> {
constructor() {
super("api.ClaimStatusDef", [
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus], 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 = "";
if (value !== undefined)
reflectionMergePartial<ClaimStatusDef>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimStatusDef): ClaimStatusDef {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ClaimStatus StatusCode */ 1:
message.StatusCode = reader.int32();
break;
case /* string Date */ 2:
message.Date = reader.string();
break;
case /* api.DateTime ActualDate */ 3:
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ClaimStatusDef, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ClaimStatus StatusCode = 1; */
if (message.StatusCode !== 0)
writer.tag(1, WireType.Varint).int32(message.StatusCode);
/* string Date = 2; */
if (message.Date !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Date);
/* api.DateTime ActualDate = 3; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClaimStatusDef
*/
export const ClaimStatusDef = new ClaimStatusDef$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClaimStatusStruct$Type extends MessageType<ClaimStatusStruct> {
constructor() {
super("api.ClaimStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ClaimStatusDef },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, 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;
if (value !== undefined)
reflectionMergePartial<ClaimStatusStruct>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClaimStatusStruct): ClaimStatusStruct {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ClaimStatusDef Current */ 1:
message.Current = ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* repeated api.ClaimStatusDef History */ 2:
message.History.push(ClaimStatusDef.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CreationDate */ 3:
message.CreationDate = reader.string();
break;
case /* uint32 Version */ 4:
message.Version = reader.uint32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ClaimStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ClaimStatusDef Current = 1; */
if (message.Current)
ClaimStatusDef.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* 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; */
if (message.CreationDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
/* uint32 Version = 4; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ClaimStatusStruct
*/
export const ClaimStatusStruct = new ClaimStatusStruct$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WindowedNotif$Type extends MessageType<WindowedNotif> {
constructor() {
super("api.WindowedNotif", [
{ no: 1, name: "ListNotifChanges", kind: "message", localName: "ListNotifChanges", jsonName: "ListNotifChanges", T: () => ListNotifChanges },
{ no: 2, name: "UserMails", kind: "message", localName: "UserMails", jsonName: "UserMails", repeat: 2 /*RepeatType.UNPACKED*/, 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", 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.languageCode = "";
message.HtmlBody = "";
if (value !== undefined)
reflectionMergePartial<WindowedNotif>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WindowedNotif): WindowedNotif {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ListNotifChanges ListNotifChanges */ 1:
message.ListNotifChanges = ListNotifChanges.internalBinaryRead(reader, reader.uint32(), options, message.ListNotifChanges);
break;
case /* repeated api.UserMails UserMails */ 2:
message.UserMails.push(UserMails.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string JsonModel */ 3:
message.JsonModel = reader.string();
break;
case /* string languageCode */ 4:
message.languageCode = reader.string();
break;
case /* string HtmlBody */ 5:
message.HtmlBody = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: WindowedNotif, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ListNotifChanges ListNotifChanges = 1; */
if (message.ListNotifChanges)
ListNotifChanges.internalBinaryWrite(message.ListNotifChanges, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* 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; */
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; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.WindowedNotif
*/
export const WindowedNotif = new WindowedNotif$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UserMails$Type extends MessageType<UserMails> {
constructor() {
super("api.UserMails", [
{ no: 1, name: "mail", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "languageCode", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UserMails>): UserMails {
const message = globalThis.Object.create((this.messagePrototype!));
message.mail = "";
message.languageCode = "";
if (value !== undefined)
reflectionMergePartial<UserMails>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserMails): UserMails {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string mail */ 1:
message.mail = reader.string();
break;
case /* string languageCode */ 2:
message.languageCode = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: UserMails, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string mail = 1; */
if (message.mail !== "")
writer.tag(1, WireType.LengthDelimited).string(message.mail);
/* string languageCode = 2; */
if (message.languageCode !== "")
writer.tag(2, WireType.LengthDelimited).string(message.languageCode);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UserMails
*/
export const UserMails = new UserMails$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListNotifChanges$Type extends MessageType<ListNotifChanges> {
constructor() {
super("api.ListNotifChanges", [
{ 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: 2 /*RepeatType.UNPACKED*/, 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 = [];
if (value !== undefined)
reflectionMergePartial<ListNotifChanges>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListNotifChanges): ListNotifChanges {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string VisibilityURI */ 2:
message.VisibilityURI = reader.string();
break;
case /* string EntityType */ 3:
message.EntityType = reader.string();
break;
case /* string EntityRefID */ 4:
message.EntityRefID = reader.string();
break;
case /* repeated api.NotifChanges NotifChanges */ 5:
message.NotifChanges.push(NotifChanges.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* google.protobuf.Struct Tags */ 6:
message.Tags = Struct.internalBinaryRead(reader, reader.uint32(), options, message.Tags);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ListNotifChanges, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string VisibilityURI = 2; */
if (message.VisibilityURI !== "")
writer.tag(2, WireType.LengthDelimited).string(message.VisibilityURI);
/* string EntityType = 3; */
if (message.EntityType !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityType);
/* string EntityRefID = 4; */
if (message.EntityRefID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.EntityRefID);
/* 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; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ListNotifChanges
*/
export const ListNotifChanges = new ListNotifChanges$Type();
// @generated message type with reflection information, may provide speed optimized methods
class NotifChanges$Type extends MessageType<NotifChanges> {
constructor() {
super("api.NotifChanges", [
{ 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;
if (value !== undefined)
reflectionMergePartial<NotifChanges>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: NotifChanges): NotifChanges {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime RefDate */ 1:
message.RefDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.RefDate);
break;
case /* string UserName */ 2:
message.UserName = reader.string();
break;
case /* api.NotifTypeEnum NotificationType */ 3:
message.NotificationType = reader.int32();
break;
case /* google.protobuf.Struct Details */ 4:
message.Details = Struct.internalBinaryRead(reader, reader.uint32(), options, message.Details);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: NotifChanges, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime RefDate = 1; */
if (message.RefDate)
DateTime.internalBinaryWrite(message.RefDate, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string UserName = 2; */
if (message.UserName !== "")
writer.tag(2, WireType.LengthDelimited).string(message.UserName);
/* api.NotifTypeEnum NotificationType = 3; */
if (message.NotificationType !== 0)
writer.tag(3, WireType.Varint).int32(message.NotificationType);
/* google.protobuf.Struct Details = 4; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.NotifChanges
*/
export const NotifChanges = new NotifChanges$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentStatus$Type extends MessageType<AppointmentStatus> {
constructor() {
super("api.AppointmentStatus", [
{ 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 = "";
if (value !== undefined)
reflectionMergePartial<AppointmentStatus>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentStatus): AppointmentStatus {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentStatusCode StatusCode */ 1:
message.StatusCode = reader.int32();
break;
case /* string Date */ 2:
message.Date = reader.string();
break;
case /* api.DateTime ActualDate */ 3:
message.ActualDate = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.ActualDate);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentStatusCode StatusCode = 1; */
if (message.StatusCode !== 0)
writer.tag(1, WireType.Varint).int32(message.StatusCode);
/* string Date = 2; */
if (message.Date !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Date);
/* api.DateTime ActualDate = 3; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentStatus
*/
export const AppointmentStatus = new AppointmentStatus$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentStatusStruct$Type extends MessageType<AppointmentStatusStruct> {
constructor() {
super("api.AppointmentStatusStruct", [
{ 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: 2 /*RepeatType.UNPACKED*/, 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;
if (value !== undefined)
reflectionMergePartial<AppointmentStatusStruct>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentStatusStruct): AppointmentStatusStruct {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentStatus Current */ 1:
message.Current = AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* repeated api.AppointmentStatus History */ 2:
message.History.push(AppointmentStatus.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CreationDate */ 3:
message.CreationDate = reader.string();
break;
case /* uint32 Version */ 4:
message.Version = reader.uint32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentStatus Current = 1; */
if (message.Current)
AppointmentStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* 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; */
if (message.CreationDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.CreationDate);
/* uint32 Version = 4; */
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);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentStatusStruct
*/
export const AppointmentStatusStruct = new AppointmentStatusStruct$Type();