You've already forked npm-core-sdk
2576 lines
132 KiB
TypeScript
2576 lines
132 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "repositoryShared.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 { QuantityWeight } from "./shared";
|
|
import { QuantityLength } from "./shared";
|
|
import { QuantityArea } from "./shared";
|
|
import { QuantityVolume } from "./shared";
|
|
import { MetadataElement } from "./shared";
|
|
import { DateTime } from "./shared";
|
|
//
|
|
// Actor entity status structure
|
|
|
|
/**
|
|
* @generated from protobuf message api.ActorStatus
|
|
*/
|
|
export interface ActorStatus {
|
|
/**
|
|
* @generated from protobuf field: api.ActorStatusCode StatusCode = 1
|
|
*/
|
|
StatusCode: ActorStatusCode;
|
|
/**
|
|
* @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;
|
|
}
|
|
//
|
|
// ActorStatusStruct statuses structure
|
|
|
|
/**
|
|
* @generated from protobuf message api.ActorStatusStruct
|
|
*/
|
|
export interface ActorStatusStruct {
|
|
/**
|
|
* @generated from protobuf field: api.ActorStatus Current = 1
|
|
*/
|
|
Current?: ActorStatus; // Current status of the Actor entity
|
|
/**
|
|
* @generated from protobuf field: repeated api.ActorStatus History = 2
|
|
*/
|
|
History: ActorStatus[]; // List of all status history of the Actor entity
|
|
/**
|
|
* @generated from protobuf field: string CreationDate = 3
|
|
*/
|
|
CreationDate: string;
|
|
/**
|
|
* @generated from protobuf field: uint32 Version = 4
|
|
*/
|
|
Version: number;
|
|
}
|
|
//
|
|
// Partner entity status structure
|
|
|
|
/**
|
|
* @generated from protobuf message api.PartnerStatus
|
|
*/
|
|
export interface PartnerStatus {
|
|
/**
|
|
* @generated from protobuf field: api.PartnerStatusCode StatusCode = 1
|
|
*/
|
|
StatusCode: PartnerStatusCode;
|
|
/**
|
|
* @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;
|
|
}
|
|
//
|
|
// PartnerStatusStruct statuses structure
|
|
|
|
/**
|
|
* @generated from protobuf message api.PartnerStatusStruct
|
|
*/
|
|
export interface PartnerStatusStruct {
|
|
/**
|
|
* @generated from protobuf field: api.PartnerStatus Current = 1
|
|
*/
|
|
Current?: PartnerStatus; // Current status of the Partner entity
|
|
/**
|
|
* @generated from protobuf field: repeated api.PartnerStatus History = 2
|
|
*/
|
|
History: PartnerStatus[]; // List of all status history of the Partner entity
|
|
/**
|
|
* @generated from protobuf field: string CreationDate = 3
|
|
*/
|
|
CreationDate: string;
|
|
}
|
|
/**
|
|
*
|
|
* Error entity status structure
|
|
*
|
|
* @generated from protobuf message api.ErrorStatus
|
|
*/
|
|
export interface ErrorStatus {
|
|
/**
|
|
* @generated from protobuf field: api.PartnerStatusCode StatusCode = 1
|
|
*/
|
|
StatusCode: PartnerStatusCode;
|
|
/**
|
|
* @generated from protobuf field: string Date = 2
|
|
*/
|
|
Date: string;
|
|
}
|
|
/**
|
|
*
|
|
* ErrorStatusStruct statuses structure
|
|
*
|
|
* @generated from protobuf message api.ErrorStatusStruct
|
|
*/
|
|
export interface ErrorStatusStruct {
|
|
/**
|
|
* @generated from protobuf field: api.ErrorStatus Current = 1
|
|
*/
|
|
Current?: ErrorStatus; // Current status of the Error entity
|
|
/**
|
|
* @generated from protobuf field: repeated api.ErrorStatus History = 2
|
|
*/
|
|
History: ErrorStatus[]; // List of all status history of the Error entity
|
|
/**
|
|
* @generated from protobuf field: string CreationDate = 3
|
|
*/
|
|
CreationDate: string;
|
|
}
|
|
/**
|
|
*
|
|
* Item entity status structure
|
|
*
|
|
* @generated from protobuf message api.ItemStatus
|
|
*/
|
|
export interface ItemStatus {
|
|
/**
|
|
* @generated from protobuf field: api.ItemStatusCode StatusCode = 1
|
|
*/
|
|
StatusCode: ItemStatusCode;
|
|
/**
|
|
* @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.ItemStatusStruct
|
|
*/
|
|
export interface ItemStatusStruct {
|
|
/**
|
|
* @generated from protobuf field: api.ItemStatus Current = 1
|
|
*/
|
|
Current?: ItemStatus; // Current status of the Item entity
|
|
/**
|
|
* List of all status history of the Item entity
|
|
*
|
|
* @generated from protobuf field: repeated api.ItemStatus History = 2
|
|
*/
|
|
History: ItemStatus[];
|
|
/**
|
|
* @generated from protobuf field: string CreationDate = 3
|
|
*/
|
|
CreationDate: string;
|
|
/**
|
|
* @generated from protobuf field: uint32 Version = 4
|
|
*/
|
|
Version: number;
|
|
}
|
|
/**
|
|
*
|
|
* Family entity status structure
|
|
*
|
|
* @generated from protobuf message api.FamilyStatus
|
|
*/
|
|
export interface FamilyStatus {
|
|
/**
|
|
* @generated from protobuf field: api.FamilyStatusCode StatusCode = 1
|
|
*/
|
|
StatusCode: FamilyStatusCode;
|
|
/**
|
|
* @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;
|
|
}
|
|
/**
|
|
*
|
|
* FamilyStatusStruct statuses structure
|
|
*
|
|
* @generated from protobuf message api.FamilyStatusStruct
|
|
*/
|
|
export interface FamilyStatusStruct {
|
|
/**
|
|
* @generated from protobuf field: api.FamilyStatus Current = 1
|
|
*/
|
|
Current?: FamilyStatus; // Current status of the Family entity
|
|
/**
|
|
* @generated from protobuf field: repeated api.FamilyStatus History = 2
|
|
*/
|
|
History: FamilyStatus[]; // List of all status history of the Family entity
|
|
/**
|
|
* @generated from protobuf field: string CreationDate = 3
|
|
*/
|
|
CreationDate: string;
|
|
}
|
|
/**
|
|
*
|
|
* item components
|
|
*
|
|
* @generated from protobuf message api.ExpiryConstraint
|
|
*/
|
|
export interface ExpiryConstraint {
|
|
/**
|
|
* @generated from protobuf field: bool WillExpire = 1
|
|
*/
|
|
WillExpire: boolean;
|
|
/**
|
|
* @generated from protobuf field: api.ExpiryConstraintType Type = 2
|
|
*/
|
|
Type: ExpiryConstraintType; // >>> Enum des codes ISO
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.TradeItemDescriptions
|
|
*/
|
|
export interface TradeItemDescriptions {
|
|
/**
|
|
* @generated from protobuf field: string ShortDescription = 1
|
|
*/
|
|
ShortDescription: string;
|
|
/**
|
|
* @generated from protobuf field: string LongDescription = 2
|
|
*/
|
|
LongDescription: string;
|
|
/**
|
|
* @generated from protobuf field: string TechnicalDetails = 3
|
|
*/
|
|
TechnicalDetails: string;
|
|
/**
|
|
* @generated from protobuf field: string LanguageCodeISO6391 = 4
|
|
*/
|
|
LanguageCodeISO6391: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.LogisticVariant
|
|
*/
|
|
export interface LogisticVariant {
|
|
/**
|
|
* Logistical variant ID
|
|
*
|
|
* @generated from protobuf field: string LVID = 13
|
|
*/
|
|
LVID: string;
|
|
/**
|
|
* @generated from protobuf field: string Name = 15
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: repeated api.OtherID Codes = 2
|
|
*/
|
|
Codes: OtherID[];
|
|
// string EAN = 1;
|
|
|
|
/**
|
|
* Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)
|
|
*
|
|
* @generated from protobuf field: repeated api.MetadataElement MetaData = 3
|
|
*/
|
|
MetaData: MetadataElement[];
|
|
/**
|
|
* @generated from protobuf field: bool IsBaseLogisticVariant = 4
|
|
*/
|
|
IsBaseLogisticVariant: boolean;
|
|
/**
|
|
* ID of the LV in which the quantity is given
|
|
*
|
|
* @generated from protobuf field: string RefLV = 5
|
|
*/
|
|
RefLV: string;
|
|
/**
|
|
* Name of the LV in which the quantity is given
|
|
*
|
|
* @generated from protobuf field: string RefLVName = 19
|
|
*/
|
|
RefLVName: string;
|
|
/**
|
|
* @generated from protobuf field: float QuantityInRefLV = 6
|
|
*/
|
|
QuantityInRefLV: number;
|
|
// QuantityWeight Weight = 7;
|
|
|
|
/**
|
|
* @generated from protobuf field: api.QuantityVolume Volume = 8
|
|
*/
|
|
Volume?: QuantityVolume;
|
|
/**
|
|
* @generated from protobuf field: api.QuantityArea Area = 9
|
|
*/
|
|
Area?: QuantityArea;
|
|
/**
|
|
* @generated from protobuf field: api.QuantityLength Height = 10
|
|
*/
|
|
Height?: QuantityLength;
|
|
/**
|
|
* @generated from protobuf field: api.QuantityLength Width = 11
|
|
*/
|
|
Width?: QuantityLength;
|
|
/**
|
|
* @generated from protobuf field: api.QuantityLength Length = 12
|
|
*/
|
|
Length?: QuantityLength;
|
|
/**
|
|
* @generated from protobuf field: float QuantityInBaseLV = 14
|
|
*/
|
|
QuantityInBaseLV: number; // This field will be computed at aggregation, not exposed through APIs
|
|
/**
|
|
* @generated from protobuf field: api.QuantityWeight NetWeight = 16
|
|
*/
|
|
NetWeight?: QuantityWeight;
|
|
/**
|
|
* @generated from protobuf field: api.QuantityWeight GrossWeight = 17
|
|
*/
|
|
GrossWeight?: QuantityWeight;
|
|
/**
|
|
* @generated from protobuf field: repeated string BranchIDs = 18
|
|
*/
|
|
BranchIDs: string[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.OtherID
|
|
*/
|
|
export interface OtherID {
|
|
/**
|
|
* @generated from protobuf field: string Key = 1
|
|
*/
|
|
Key: string;
|
|
/**
|
|
* @generated from protobuf field: string Value = 2
|
|
*/
|
|
Value: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ErrorTags
|
|
*/
|
|
export interface ErrorTags {
|
|
/**
|
|
* @generated from protobuf field: string Name = 1
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string Value = 2
|
|
*/
|
|
Value: string;
|
|
}
|
|
/**
|
|
*
|
|
* Family components
|
|
*
|
|
* @generated from protobuf message api.FamilyNode
|
|
*/
|
|
export interface FamilyNode {
|
|
// describe a node and the link to the parent node. The list of node in the same family builds the family tree
|
|
|
|
/**
|
|
* @generated from protobuf field: string NodeID = 1
|
|
*/
|
|
NodeID: string;
|
|
/**
|
|
* @generated from protobuf field: string Label = 2
|
|
*/
|
|
Label: string;
|
|
/**
|
|
* @generated from protobuf field: string ParentNodeID = 3
|
|
*/
|
|
ParentNodeID: string;
|
|
// non mandatory attributes below
|
|
|
|
/**
|
|
* @generated from protobuf field: string FamilyRefID = 6
|
|
*/
|
|
FamilyRefID: string;
|
|
/**
|
|
* @generated from protobuf field: int32 Level = 4
|
|
*/
|
|
Level: number;
|
|
/**
|
|
* @generated from protobuf field: string StringPath = 5
|
|
*/
|
|
StringPath: string;
|
|
}
|
|
//
|
|
// Definition of an address
|
|
|
|
/**
|
|
* @generated from protobuf message api.Address
|
|
*/
|
|
export interface Address {
|
|
/**
|
|
* @generated from protobuf field: string City = 1
|
|
*/
|
|
City: string;
|
|
/**
|
|
* Country Code in <a href='https://en.wikipedia.org/wiki/ISO_3166-1'>ISO_3166-1</a> format
|
|
*
|
|
* @generated from protobuf field: string CountryCode = 2
|
|
*/
|
|
CountryCode: string;
|
|
/**
|
|
* @generated from protobuf field: api.GeographicalCoordinates GeographicalCoordinates = 3
|
|
*/
|
|
GeographicalCoordinates?: GeographicalCoordinates;
|
|
/**
|
|
* @generated from protobuf field: string Name = 4
|
|
*/
|
|
Name: string;
|
|
/**
|
|
* @generated from protobuf field: string POBoxNumber = 5
|
|
*/
|
|
POBoxNumber: string;
|
|
/**
|
|
* @generated from protobuf field: string PostalCode = 6
|
|
*/
|
|
PostalCode: string;
|
|
/**
|
|
* @generated from protobuf field: string ProvinceCode = 7
|
|
*/
|
|
ProvinceCode: string;
|
|
/**
|
|
* @generated from protobuf field: string State = 8
|
|
*/
|
|
State: string;
|
|
/**
|
|
* @generated from protobuf field: string StreetAddressOne = 9
|
|
*/
|
|
StreetAddressOne: string;
|
|
/**
|
|
* @generated from protobuf field: string StreetAddressTwo = 10
|
|
*/
|
|
StreetAddressTwo: string;
|
|
/**
|
|
* @generated from protobuf field: string StreetAddressThree = 11
|
|
*/
|
|
StreetAddressThree: string;
|
|
/**
|
|
* @generated from protobuf field: string PlusCode = 12
|
|
*/
|
|
PlusCode: string;
|
|
}
|
|
/**
|
|
*
|
|
* ActorContact definition
|
|
*
|
|
* @generated from protobuf message api.ActorContact
|
|
*/
|
|
export interface ActorContact {
|
|
/**
|
|
* for examples (GS1) : http://apps.gs1.org/GDD/Pages/clDetails.aspx?semanticURN=urn:gs1:gdd:cl:ContactTypeCode
|
|
*
|
|
* @generated from protobuf field: string ContactTypeCode = 1
|
|
*/
|
|
ContactTypeCode: string;
|
|
/**
|
|
* @generated from protobuf field: string FirstName = 2
|
|
*/
|
|
FirstName: string;
|
|
/**
|
|
* @generated from protobuf field: string LastName = 3
|
|
*/
|
|
LastName: string;
|
|
/**
|
|
* @generated from protobuf field: string JobTitle = 4
|
|
*/
|
|
JobTitle: string;
|
|
/**
|
|
* @generated from protobuf field: string DepartmentName = 5
|
|
*/
|
|
DepartmentName: string;
|
|
/**
|
|
* Define how to aggregate these Responsibilities or move to Map
|
|
*
|
|
* @generated from protobuf field: repeated string Responsibilities = 6
|
|
*/
|
|
Responsibilities: string[];
|
|
/**
|
|
* @generated from protobuf field: string EmailAddress = 7
|
|
*/
|
|
EmailAddress: string;
|
|
/**
|
|
* @generated from protobuf field: string FaxNumber = 8
|
|
*/
|
|
FaxNumber: string;
|
|
/**
|
|
* @generated from protobuf field: string TelephoneNumber = 9
|
|
*/
|
|
TelephoneNumber: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.Interlocutor
|
|
*/
|
|
export interface Interlocutor {
|
|
/**
|
|
* @generated from protobuf field: string FirstName = 1
|
|
*/
|
|
FirstName: string;
|
|
/**
|
|
* @generated from protobuf field: string LastName = 2
|
|
*/
|
|
LastName: string;
|
|
/**
|
|
* Must be a valid email address
|
|
*
|
|
* @generated from protobuf field: repeated string Emails = 3
|
|
*/
|
|
Emails: string[];
|
|
/**
|
|
* @generated from protobuf field: repeated string Phones = 4
|
|
*/
|
|
Phones: string[];
|
|
}
|
|
//
|
|
// Geographical coordinates information
|
|
|
|
/**
|
|
* @generated from protobuf message api.GeographicalCoordinates
|
|
*/
|
|
export interface GeographicalCoordinates {
|
|
/**
|
|
* @generated from protobuf field: string Latitude = 1
|
|
*/
|
|
Latitude: string;
|
|
/**
|
|
* @generated from protobuf field: string Longitude = 2
|
|
*/
|
|
Longitude: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.ActorSnapshot
|
|
*/
|
|
export interface ActorSnapshot {
|
|
/**
|
|
* Must be unique ID
|
|
*
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
// DateTime StartDateTime = 2
|
|
// [
|
|
// (validate.rules).message.required = true
|
|
// ];
|
|
|
|
/**
|
|
* @generated from protobuf field: api.DateTime EndDateTime = 3
|
|
*/
|
|
EndDateTime?: DateTime;
|
|
/**
|
|
* @generated from protobuf field: int32 MessageNb = 4
|
|
*/
|
|
MessageNb: number;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.CarrierService
|
|
*/
|
|
export interface CarrierService {
|
|
/**
|
|
* Unique ID
|
|
*
|
|
* @generated from protobuf field: string ID = 1
|
|
*/
|
|
ID: string;
|
|
/**
|
|
* @generated from protobuf field: string Label = 2
|
|
*/
|
|
Label: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.LVDetailedQuantity
|
|
*/
|
|
export interface LVDetailedQuantity {
|
|
/**
|
|
* @generated from protobuf field: string LVID = 1
|
|
*/
|
|
LVID: string;
|
|
/**
|
|
* @generated from protobuf field: string LVName = 2
|
|
*/
|
|
LVName: string;
|
|
/**
|
|
* @generated from protobuf field: float Quantity = 3
|
|
*/
|
|
Quantity: number;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.SiteAlias
|
|
*/
|
|
export interface SiteAlias {
|
|
/**
|
|
* @generated from protobuf field: string OrganisationID = 1
|
|
*/
|
|
OrganisationID: string;
|
|
/**
|
|
* @generated from protobuf field: string SiteID = 2
|
|
*/
|
|
SiteID: string;
|
|
/**
|
|
* @generated from protobuf field: string SiteName = 3
|
|
*/
|
|
SiteName: string;
|
|
}
|
|
//
|
|
// This files contains domain objects
|
|
|
|
/**
|
|
*
|
|
* All statuses for Actor entity
|
|
*
|
|
* @generated from protobuf enum api.ActorStatusCode
|
|
*/
|
|
export enum ActorStatusCode {
|
|
/**
|
|
* @generated from protobuf enum value: SITE_0000_UNKNOWN = 0;
|
|
*/
|
|
SITE_0000_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: SITE_1000_ACTIVE = 1000;
|
|
*/
|
|
SITE_1000_ACTIVE = 1000,
|
|
/**
|
|
* @generated from protobuf enum value: SITE_9000_CANCELLED = 9000;
|
|
*/
|
|
SITE_9000_CANCELLED = 9000,
|
|
/**
|
|
* @generated from protobuf enum value: SITE_9500_ANOMALY = 9500;
|
|
*/
|
|
SITE_9500_ANOMALY = 9500
|
|
}
|
|
/**
|
|
*
|
|
* All statuses for Partner entity
|
|
*
|
|
* @generated from protobuf enum api.PartnerStatusCode
|
|
*/
|
|
export enum PartnerStatusCode {
|
|
/**
|
|
* @generated from protobuf enum value: PARTNER_0000_UNKNOWN = 0;
|
|
*/
|
|
PARTNER_0000_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: PARTNER_1000_ACTIVE = 1000;
|
|
*/
|
|
PARTNER_1000_ACTIVE = 1000,
|
|
/**
|
|
* @generated from protobuf enum value: PARTNER_9000_CANCELLED = 9000;
|
|
*/
|
|
PARTNER_9000_CANCELLED = 9000,
|
|
/**
|
|
* @generated from protobuf enum value: PARTNER_9500_ANOMALY = 9500;
|
|
*/
|
|
PARTNER_9500_ANOMALY = 9500
|
|
}
|
|
/**
|
|
*
|
|
* All statuses for Error entity
|
|
*
|
|
* @generated from protobuf enum api.PartnerErrorCode
|
|
*/
|
|
export enum PartnerErrorCode {
|
|
/**
|
|
* @generated from protobuf enum value: ERROR_0000_UNKNOWN = 0;
|
|
*/
|
|
ERROR_0000_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: ERROR_1000_ACTIVE = 1000;
|
|
*/
|
|
ERROR_1000_ACTIVE = 1000,
|
|
/**
|
|
* @generated from protobuf enum value: ERROR_9000_CANCELLED = 9000;
|
|
*/
|
|
ERROR_9000_CANCELLED = 9000
|
|
}
|
|
/**
|
|
*
|
|
* All statuses for Item entity
|
|
*
|
|
* @generated from protobuf enum api.ItemStatusCode
|
|
*/
|
|
export enum ItemStatusCode {
|
|
/**
|
|
* @generated from protobuf enum value: ITEM_0000_UNKNOWN = 0;
|
|
*/
|
|
ITEM_0000_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: ITEM_1000_ACTIVE = 1000;
|
|
*/
|
|
ITEM_1000_ACTIVE = 1000,
|
|
/**
|
|
* @generated from protobuf enum value: ITEM_9000_CANCELLED = 9000;
|
|
*/
|
|
ITEM_9000_CANCELLED = 9000,
|
|
/**
|
|
* @generated from protobuf enum value: ITEM_9500_ANOMALY = 9500;
|
|
*/
|
|
ITEM_9500_ANOMALY = 9500
|
|
}
|
|
/**
|
|
*
|
|
* All statuses for Family entity
|
|
*
|
|
* @generated from protobuf enum api.FamilyStatusCode
|
|
*/
|
|
export enum FamilyStatusCode {
|
|
/**
|
|
* @generated from protobuf enum value: FAMILY_0000_UNKNOWN = 0;
|
|
*/
|
|
FAMILY_0000_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: FAMILY_1000_ACTIVE = 1000;
|
|
*/
|
|
FAMILY_1000_ACTIVE = 1000,
|
|
/**
|
|
* @generated from protobuf enum value: FAMILY_9000_CANCELLED = 9000;
|
|
*/
|
|
FAMILY_9000_CANCELLED = 9000,
|
|
/**
|
|
* @generated from protobuf enum value: FAMILY_9500_ANOMALY = 9500;
|
|
*/
|
|
FAMILY_9500_ANOMALY = 9500
|
|
}
|
|
/**
|
|
* @generated from protobuf enum api.IdType
|
|
*/
|
|
export enum IdType {
|
|
/**
|
|
* @generated from protobuf enum value: IDTYPE_UNKNOWN = 0;
|
|
*/
|
|
IDTYPE_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: IDTYPE_GLN = 1;
|
|
*/
|
|
IDTYPE_GLN = 1
|
|
}
|
|
//
|
|
// http://www.edicora.com/docs/DESADV.pdf page 55
|
|
// http://www.stylusstudio.com/edifact/D04B/2005.htm
|
|
|
|
/**
|
|
* @generated from protobuf enum api.ExpiryConstraintType
|
|
*/
|
|
export enum ExpiryConstraintType {
|
|
/**
|
|
* @generated from protobuf enum value: UNKNOWN_DATE = 0;
|
|
*/
|
|
UNKNOWN_DATE = 0,
|
|
/**
|
|
* EDIFACT code 36, will expire = true
|
|
*
|
|
* @generated from protobuf enum value: USE_BY_DATE = 1;
|
|
*/
|
|
USE_BY_DATE = 1,
|
|
/**
|
|
* EDIFACT code 361, will expire = true
|
|
*
|
|
* @generated from protobuf enum value: BEST_BEFORE_DATE = 2;
|
|
*/
|
|
BEST_BEFORE_DATE = 2,
|
|
/**
|
|
* EDIFACT code 94, will expire = false
|
|
*
|
|
* @generated from protobuf enum value: PRODUCTION_DATE = 3;
|
|
*/
|
|
PRODUCTION_DATE = 3,
|
|
/**
|
|
* EDIFACT code 360, will expire = true
|
|
*
|
|
* @generated from protobuf enum value: SELL_BY_DATE = 4;
|
|
*/
|
|
SELL_BY_DATE = 4
|
|
}
|
|
/**
|
|
* @generated from protobuf enum api.ActorTypology
|
|
*/
|
|
export enum ActorTypology {
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_UNKNOWN = 0;
|
|
*/
|
|
TYPOLOGY_UNKNOWN = 0,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_WAREHOUSE = 1;
|
|
*/
|
|
TYPOLOGY_WAREHOUSE = 1,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_STORE = 2;
|
|
*/
|
|
TYPOLOGY_STORE = 2,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_FACTORY = 3;
|
|
*/
|
|
TYPOLOGY_FACTORY = 3,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_COLLECTION_POINT = 4;
|
|
*/
|
|
TYPOLOGY_COLLECTION_POINT = 4,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_OTHER = 5;
|
|
*/
|
|
TYPOLOGY_OTHER = 5,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_OFFICE = 6;
|
|
*/
|
|
TYPOLOGY_OFFICE = 6,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_INDIVIDUAL = 7;
|
|
*/
|
|
TYPOLOGY_INDIVIDUAL = 7,
|
|
/**
|
|
* @generated from protobuf enum value: TYPOLOGY_CARRIER = 8;
|
|
*/
|
|
TYPOLOGY_CARRIER = 8
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ActorStatus$Type extends MessageType<ActorStatus> {
|
|
constructor() {
|
|
super("api.ActorStatus", [
|
|
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ActorStatusCode", ActorStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,LowCardinality(String))" }] } } },
|
|
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,DateTime)" }] }, "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<ActorStatus>): ActorStatus {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.StatusCode = 0;
|
|
message.Date = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ActorStatus>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorStatus): ActorStatus {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ActorStatusCode 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: ActorStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ActorStatusCode 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.ActorStatus
|
|
*/
|
|
export const ActorStatus = new ActorStatus$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ActorStatusStruct$Type extends MessageType<ActorStatusStruct> {
|
|
constructor() {
|
|
super("api.ActorStatusStruct", [
|
|
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ActorStatus, 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: () => ActorStatus, 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<ActorStatusStruct>): ActorStatusStruct {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.History = [];
|
|
message.CreationDate = "";
|
|
message.Version = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ActorStatusStruct>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorStatusStruct): ActorStatusStruct {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ActorStatus Current */ 1:
|
|
message.Current = ActorStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
|
break;
|
|
case /* repeated api.ActorStatus History */ 2:
|
|
message.History.push(ActorStatus.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: ActorStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ActorStatus Current = 1; */
|
|
if (message.Current)
|
|
ActorStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.ActorStatus History = 2; */
|
|
for (let i = 0; i < message.History.length; i++)
|
|
ActorStatus.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.ActorStatusStruct
|
|
*/
|
|
export const ActorStatusStruct = new ActorStatusStruct$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PartnerStatus$Type extends MessageType<PartnerStatus> {
|
|
constructor() {
|
|
super("api.PartnerStatus", [
|
|
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.PartnerStatusCode", PartnerStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] } } },
|
|
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "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<PartnerStatus>): PartnerStatus {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.StatusCode = 0;
|
|
message.Date = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PartnerStatus>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerStatus): PartnerStatus {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.PartnerStatusCode 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: PartnerStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.PartnerStatusCode 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.PartnerStatus
|
|
*/
|
|
export const PartnerStatus = new PartnerStatus$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class PartnerStatusStruct$Type extends MessageType<PartnerStatusStruct> {
|
|
constructor() {
|
|
super("api.PartnerStatusStruct", [
|
|
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => PartnerStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
|
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PartnerStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } },
|
|
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<PartnerStatusStruct>): PartnerStatusStruct {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.History = [];
|
|
message.CreationDate = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<PartnerStatusStruct>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerStatusStruct): PartnerStatusStruct {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.PartnerStatus Current */ 1:
|
|
message.Current = PartnerStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
|
break;
|
|
case /* repeated api.PartnerStatus History */ 2:
|
|
message.History.push(PartnerStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string CreationDate */ 3:
|
|
message.CreationDate = 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: PartnerStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.PartnerStatus Current = 1; */
|
|
if (message.Current)
|
|
PartnerStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.PartnerStatus History = 2; */
|
|
for (let i = 0; i < message.History.length; i++)
|
|
PartnerStatus.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);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.PartnerStatusStruct
|
|
*/
|
|
export const PartnerStatusStruct = new PartnerStatusStruct$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ErrorStatus$Type extends MessageType<ErrorStatus> {
|
|
constructor() {
|
|
super("api.ErrorStatus", [
|
|
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.PartnerStatusCode", PartnerStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] } } },
|
|
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ErrorStatus>): ErrorStatus {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.StatusCode = 0;
|
|
message.Date = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ErrorStatus>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ErrorStatus): ErrorStatus {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.PartnerStatusCode StatusCode */ 1:
|
|
message.StatusCode = reader.int32();
|
|
break;
|
|
case /* string Date */ 2:
|
|
message.Date = 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: ErrorStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.PartnerStatusCode 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);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ErrorStatus
|
|
*/
|
|
export const ErrorStatus = new ErrorStatus$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ErrorStatusStruct$Type extends MessageType<ErrorStatusStruct> {
|
|
constructor() {
|
|
super("api.ErrorStatusStruct", [
|
|
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ErrorStatus },
|
|
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ErrorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ErrorStatusStruct>): ErrorStatusStruct {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.History = [];
|
|
message.CreationDate = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ErrorStatusStruct>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ErrorStatusStruct): ErrorStatusStruct {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ErrorStatus Current */ 1:
|
|
message.Current = ErrorStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
|
break;
|
|
case /* repeated api.ErrorStatus History */ 2:
|
|
message.History.push(ErrorStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string CreationDate */ 3:
|
|
message.CreationDate = 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: ErrorStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ErrorStatus Current = 1; */
|
|
if (message.Current)
|
|
ErrorStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.ErrorStatus History = 2; */
|
|
for (let i = 0; i < message.History.length; i++)
|
|
ErrorStatus.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);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ErrorStatusStruct
|
|
*/
|
|
export const ErrorStatusStruct = new ErrorStatusStruct$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ItemStatus$Type extends MessageType<ItemStatus> {
|
|
constructor() {
|
|
super("api.ItemStatus", [
|
|
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ItemStatusCode", ItemStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,LowCardinality(String))" }] } } },
|
|
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,DateTime)" }] }, "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." } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Current status of the Item entity" } } });
|
|
}
|
|
create(value?: PartialMessage<ItemStatus>): ItemStatus {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.StatusCode = 0;
|
|
message.Date = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ItemStatus>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemStatus): ItemStatus {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ItemStatusCode 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: ItemStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ItemStatusCode 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.ItemStatus
|
|
*/
|
|
export const ItemStatus = new ItemStatus$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ItemStatusStruct$Type extends MessageType<ItemStatusStruct> {
|
|
constructor() {
|
|
super("api.ItemStatusStruct", [
|
|
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ItemStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ItemStatus, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of all status history of the Item entity" }, "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] } } },
|
|
{ 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<ItemStatusStruct>): ItemStatusStruct {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.History = [];
|
|
message.CreationDate = "";
|
|
message.Version = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ItemStatusStruct>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ItemStatusStruct): ItemStatusStruct {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ItemStatus Current */ 1:
|
|
message.Current = ItemStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
|
break;
|
|
case /* repeated api.ItemStatus History */ 2:
|
|
message.History.push(ItemStatus.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: ItemStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ItemStatus Current = 1; */
|
|
if (message.Current)
|
|
ItemStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.ItemStatus History = 2; */
|
|
for (let i = 0; i < message.History.length; i++)
|
|
ItemStatus.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.ItemStatusStruct
|
|
*/
|
|
export const ItemStatusStruct = new ItemStatusStruct$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class FamilyStatus$Type extends MessageType<FamilyStatus> {
|
|
constructor() {
|
|
super("api.FamilyStatus", [
|
|
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.FamilyStatusCode", FamilyStatusCode], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] } } },
|
|
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "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<FamilyStatus>): FamilyStatus {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.StatusCode = 0;
|
|
message.Date = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<FamilyStatus>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FamilyStatus): FamilyStatus {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.FamilyStatusCode 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: FamilyStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.FamilyStatusCode 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.FamilyStatus
|
|
*/
|
|
export const FamilyStatus = new FamilyStatus$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class FamilyStatusStruct$Type extends MessageType<FamilyStatusStruct> {
|
|
constructor() {
|
|
super("api.FamilyStatusStruct", [
|
|
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => FamilyStatus },
|
|
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FamilyStatus, options: { "api.aggKey": "Date" } },
|
|
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<FamilyStatusStruct>): FamilyStatusStruct {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.History = [];
|
|
message.CreationDate = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<FamilyStatusStruct>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FamilyStatusStruct): FamilyStatusStruct {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.FamilyStatus Current */ 1:
|
|
message.Current = FamilyStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
|
break;
|
|
case /* repeated api.FamilyStatus History */ 2:
|
|
message.History.push(FamilyStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string CreationDate */ 3:
|
|
message.CreationDate = 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: FamilyStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.FamilyStatus Current = 1; */
|
|
if (message.Current)
|
|
FamilyStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.FamilyStatus History = 2; */
|
|
for (let i = 0; i < message.History.length; i++)
|
|
FamilyStatus.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);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.FamilyStatusStruct
|
|
*/
|
|
export const FamilyStatusStruct = new FamilyStatusStruct$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ExpiryConstraint$Type extends MessageType<ExpiryConstraint> {
|
|
constructor() {
|
|
super("api.ExpiryConstraint", [
|
|
{ no: 1, name: "WillExpire", kind: "scalar", localName: "WillExpire", jsonName: "WillExpire", T: 8 /*ScalarType.BOOL*/, options: { "validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order,Item", "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Bool)" }, { Context: "Order", Group: "order", Queryable: true }] } } },
|
|
{ no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ExpiryConstraintType", ExpiryConstraintType], options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order,Item", "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast, String)" }, { Context: "Order", Group: "order", Queryable: true }] } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Item components" } } });
|
|
}
|
|
create(value?: PartialMessage<ExpiryConstraint>): ExpiryConstraint {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.WillExpire = false;
|
|
message.Type = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ExpiryConstraint>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExpiryConstraint): ExpiryConstraint {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* bool WillExpire */ 1:
|
|
message.WillExpire = reader.bool();
|
|
break;
|
|
case /* api.ExpiryConstraintType Type */ 2:
|
|
message.Type = reader.int32();
|
|
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: ExpiryConstraint, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* bool WillExpire = 1; */
|
|
if (message.WillExpire !== false)
|
|
writer.tag(1, WireType.Varint).bool(message.WillExpire);
|
|
/* api.ExpiryConstraintType Type = 2; */
|
|
if (message.Type !== 0)
|
|
writer.tag(2, WireType.Varint).int32(message.Type);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ExpiryConstraint
|
|
*/
|
|
export const ExpiryConstraint = new ExpiryConstraint$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class TradeItemDescriptions$Type extends MessageType<TradeItemDescriptions> {
|
|
constructor() {
|
|
super("api.TradeItemDescriptions", [
|
|
{ no: 1, name: "ShortDescription", kind: "scalar", localName: "ShortDescription", jsonName: "ShortDescription", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Blue balloon\"" } } },
|
|
{ no: 2, name: "LongDescription", kind: "scalar", localName: "LongDescription", jsonName: "LongDescription", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Outdoor blue balloon for kids\"" } } },
|
|
{ no: 3, name: "TechnicalDetails", kind: "scalar", localName: "TechnicalDetails", jsonName: "TechnicalDetails", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Made in France, suitable for kids above 3 years old\"" } } },
|
|
{ no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<TradeItemDescriptions>): TradeItemDescriptions {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ShortDescription = "";
|
|
message.LongDescription = "";
|
|
message.TechnicalDetails = "";
|
|
message.LanguageCodeISO6391 = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<TradeItemDescriptions>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TradeItemDescriptions): TradeItemDescriptions {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ShortDescription */ 1:
|
|
message.ShortDescription = reader.string();
|
|
break;
|
|
case /* string LongDescription */ 2:
|
|
message.LongDescription = reader.string();
|
|
break;
|
|
case /* string TechnicalDetails */ 3:
|
|
message.TechnicalDetails = reader.string();
|
|
break;
|
|
case /* string LanguageCodeISO6391 */ 4:
|
|
message.LanguageCodeISO6391 = 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: TradeItemDescriptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ShortDescription = 1; */
|
|
if (message.ShortDescription !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ShortDescription);
|
|
/* string LongDescription = 2; */
|
|
if (message.LongDescription !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.LongDescription);
|
|
/* string TechnicalDetails = 3; */
|
|
if (message.TechnicalDetails !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.TechnicalDetails);
|
|
/* string LanguageCodeISO6391 = 4; */
|
|
if (message.LanguageCodeISO6391 !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.TradeItemDescriptions
|
|
*/
|
|
export const TradeItemDescriptions = new TradeItemDescriptions$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class LogisticVariant$Type extends MessageType<LogisticVariant> {
|
|
constructor() {
|
|
super("api.LogisticVariant", [
|
|
{ no: 13, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Executionflow,Order,Item", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 15, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Pallet of 100 pieces\"" } } },
|
|
{ no: 2, name: "Codes", kind: "message", localName: "Codes", jsonName: "Codes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OtherID, options: { "api.aggKey": "Key", "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: "Item", Group: "item" }] }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 3, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.parentEntity": "Item" } },
|
|
{ no: 4, name: "IsBaseLogisticVariant", kind: "scalar", localName: "IsBaseLogisticVariant", jsonName: "IsBaseLogisticVariant", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"true / false\"" } } },
|
|
{ no: 5, name: "RefLV", kind: "scalar", localName: "RefLV", jsonName: "RefLV", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the LV in which the quantity is given", example: "\"10\"" } } },
|
|
{ no: 19, name: "RefLVName", kind: "scalar", localName: "RefLVName", jsonName: "RefLVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
|
{ no: 6, name: "QuantityInRefLV", kind: "scalar", localName: "QuantityInRefLV", jsonName: "QuantityInRefLV", T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "5" } } },
|
|
{ no: 8, name: "Volume", kind: "message", localName: "Volume", jsonName: "Volume", T: () => QuantityVolume, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 9, name: "Area", kind: "message", localName: "Area", jsonName: "Area", T: () => QuantityArea, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 10, name: "Height", kind: "message", localName: "Height", jsonName: "Height", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 11, name: "Width", kind: "message", localName: "Width", jsonName: "Width", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 12, name: "Length", kind: "message", localName: "Length", jsonName: "Length", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 14, name: "QuantityInBaseLV", kind: "scalar", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
|
{ no: 16, name: "NetWeight", kind: "message", localName: "NetWeight", jsonName: "NetWeight", T: () => QuantityWeight, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 17, name: "GrossWeight", kind: "message", localName: "GrossWeight", jsonName: "GrossWeight", T: () => QuantityWeight, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
|
|
{ no: 18, name: "BranchIDs", kind: "scalar", localName: "BranchIDs", jsonName: "BranchIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"[30,31]\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["LVID", "Name"] } } });
|
|
}
|
|
create(value?: PartialMessage<LogisticVariant>): LogisticVariant {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.LVID = "";
|
|
message.Name = "";
|
|
message.Codes = [];
|
|
message.MetaData = [];
|
|
message.IsBaseLogisticVariant = false;
|
|
message.RefLV = "";
|
|
message.RefLVName = "";
|
|
message.QuantityInRefLV = 0;
|
|
message.QuantityInBaseLV = 0;
|
|
message.BranchIDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<LogisticVariant>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LogisticVariant): LogisticVariant {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string LVID */ 13:
|
|
message.LVID = reader.string();
|
|
break;
|
|
case /* string Name */ 15:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* repeated api.OtherID Codes */ 2:
|
|
message.Codes.push(OtherID.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.MetadataElement MetaData */ 3:
|
|
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* bool IsBaseLogisticVariant */ 4:
|
|
message.IsBaseLogisticVariant = reader.bool();
|
|
break;
|
|
case /* string RefLV */ 5:
|
|
message.RefLV = reader.string();
|
|
break;
|
|
case /* string RefLVName */ 19:
|
|
message.RefLVName = reader.string();
|
|
break;
|
|
case /* float QuantityInRefLV */ 6:
|
|
message.QuantityInRefLV = reader.float();
|
|
break;
|
|
case /* api.QuantityVolume Volume */ 8:
|
|
message.Volume = QuantityVolume.internalBinaryRead(reader, reader.uint32(), options, message.Volume);
|
|
break;
|
|
case /* api.QuantityArea Area */ 9:
|
|
message.Area = QuantityArea.internalBinaryRead(reader, reader.uint32(), options, message.Area);
|
|
break;
|
|
case /* api.QuantityLength Height */ 10:
|
|
message.Height = QuantityLength.internalBinaryRead(reader, reader.uint32(), options, message.Height);
|
|
break;
|
|
case /* api.QuantityLength Width */ 11:
|
|
message.Width = QuantityLength.internalBinaryRead(reader, reader.uint32(), options, message.Width);
|
|
break;
|
|
case /* api.QuantityLength Length */ 12:
|
|
message.Length = QuantityLength.internalBinaryRead(reader, reader.uint32(), options, message.Length);
|
|
break;
|
|
case /* float QuantityInBaseLV */ 14:
|
|
message.QuantityInBaseLV = reader.float();
|
|
break;
|
|
case /* api.QuantityWeight NetWeight */ 16:
|
|
message.NetWeight = QuantityWeight.internalBinaryRead(reader, reader.uint32(), options, message.NetWeight);
|
|
break;
|
|
case /* api.QuantityWeight GrossWeight */ 17:
|
|
message.GrossWeight = QuantityWeight.internalBinaryRead(reader, reader.uint32(), options, message.GrossWeight);
|
|
break;
|
|
case /* repeated string BranchIDs */ 18:
|
|
message.BranchIDs.push(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: LogisticVariant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.OtherID Codes = 2; */
|
|
for (let i = 0; i < message.Codes.length; i++)
|
|
OtherID.internalBinaryWrite(message.Codes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.MetadataElement MetaData = 3; */
|
|
for (let i = 0; i < message.MetaData.length; i++)
|
|
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* bool IsBaseLogisticVariant = 4; */
|
|
if (message.IsBaseLogisticVariant !== false)
|
|
writer.tag(4, WireType.Varint).bool(message.IsBaseLogisticVariant);
|
|
/* string RefLV = 5; */
|
|
if (message.RefLV !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.RefLV);
|
|
/* float QuantityInRefLV = 6; */
|
|
if (message.QuantityInRefLV !== 0)
|
|
writer.tag(6, WireType.Bit32).float(message.QuantityInRefLV);
|
|
/* api.QuantityVolume Volume = 8; */
|
|
if (message.Volume)
|
|
QuantityVolume.internalBinaryWrite(message.Volume, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.QuantityArea Area = 9; */
|
|
if (message.Area)
|
|
QuantityArea.internalBinaryWrite(message.Area, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.QuantityLength Height = 10; */
|
|
if (message.Height)
|
|
QuantityLength.internalBinaryWrite(message.Height, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.QuantityLength Width = 11; */
|
|
if (message.Width)
|
|
QuantityLength.internalBinaryWrite(message.Width, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.QuantityLength Length = 12; */
|
|
if (message.Length)
|
|
QuantityLength.internalBinaryWrite(message.Length, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
/* string LVID = 13; */
|
|
if (message.LVID !== "")
|
|
writer.tag(13, WireType.LengthDelimited).string(message.LVID);
|
|
/* float QuantityInBaseLV = 14; */
|
|
if (message.QuantityInBaseLV !== 0)
|
|
writer.tag(14, WireType.Bit32).float(message.QuantityInBaseLV);
|
|
/* string Name = 15; */
|
|
if (message.Name !== "")
|
|
writer.tag(15, WireType.LengthDelimited).string(message.Name);
|
|
/* api.QuantityWeight NetWeight = 16; */
|
|
if (message.NetWeight)
|
|
QuantityWeight.internalBinaryWrite(message.NetWeight, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
/* api.QuantityWeight GrossWeight = 17; */
|
|
if (message.GrossWeight)
|
|
QuantityWeight.internalBinaryWrite(message.GrossWeight, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated string BranchIDs = 18; */
|
|
for (let i = 0; i < message.BranchIDs.length; i++)
|
|
writer.tag(18, WireType.LengthDelimited).string(message.BranchIDs[i]);
|
|
/* string RefLVName = 19; */
|
|
if (message.RefLVName !== "")
|
|
writer.tag(19, WireType.LengthDelimited).string(message.RefLVName);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.LogisticVariant
|
|
*/
|
|
export const LogisticVariant = new LogisticVariant$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OtherID$Type extends MessageType<OtherID> {
|
|
constructor() {
|
|
super("api.OtherID", [
|
|
{ no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"EAN13\"" } } },
|
|
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"3050520032023\"" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Key"] } } });
|
|
}
|
|
create(value?: PartialMessage<OtherID>): OtherID {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Key = "";
|
|
message.Value = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OtherID>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OtherID): OtherID {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Key */ 1:
|
|
message.Key = reader.string();
|
|
break;
|
|
case /* string Value */ 2:
|
|
message.Value = 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: OtherID, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Key = 1; */
|
|
if (message.Key !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.Key);
|
|
/* string Value = 2; */
|
|
if (message.Value !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OtherID
|
|
*/
|
|
export const OtherID = new OtherID$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ErrorTags$Type extends MessageType<ErrorTags> {
|
|
constructor() {
|
|
super("api.ErrorTags", [
|
|
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
|
{ no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ErrorTags>): ErrorTags {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Name = "";
|
|
message.Value = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ErrorTags>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ErrorTags): ErrorTags {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Name */ 1:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string Value */ 2:
|
|
message.Value = 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: ErrorTags, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Name = 1; */
|
|
if (message.Name !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.Name);
|
|
/* string Value = 2; */
|
|
if (message.Value !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Value);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ErrorTags
|
|
*/
|
|
export const ErrorTags = new ErrorTags$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class FamilyNode$Type extends MessageType<FamilyNode> {
|
|
constructor() {
|
|
super("api.FamilyNode", [
|
|
{ no: 1, name: "NodeID", kind: "scalar", localName: "NodeID", jsonName: "NodeID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "ParentNodeID", kind: "scalar", localName: "ParentNodeID", jsonName: "ParentNodeID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 6, name: "FamilyRefID", kind: "scalar", localName: "FamilyRefID", jsonName: "FamilyRefID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 4, name: "Level", kind: "scalar", localName: "Level", jsonName: "Level", T: 5 /*ScalarType.INT32*/ },
|
|
{ no: 5, name: "StringPath", kind: "scalar", localName: "StringPath", jsonName: "StringPath", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<FamilyNode>): FamilyNode {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.NodeID = "";
|
|
message.Label = "";
|
|
message.ParentNodeID = "";
|
|
message.FamilyRefID = "";
|
|
message.Level = 0;
|
|
message.StringPath = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<FamilyNode>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FamilyNode): FamilyNode {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string NodeID */ 1:
|
|
message.NodeID = reader.string();
|
|
break;
|
|
case /* string Label */ 2:
|
|
message.Label = reader.string();
|
|
break;
|
|
case /* string ParentNodeID */ 3:
|
|
message.ParentNodeID = reader.string();
|
|
break;
|
|
case /* string FamilyRefID */ 6:
|
|
message.FamilyRefID = reader.string();
|
|
break;
|
|
case /* int32 Level */ 4:
|
|
message.Level = reader.int32();
|
|
break;
|
|
case /* string StringPath */ 5:
|
|
message.StringPath = 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: FamilyNode, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string NodeID = 1; */
|
|
if (message.NodeID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.NodeID);
|
|
/* string Label = 2; */
|
|
if (message.Label !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Label);
|
|
/* string ParentNodeID = 3; */
|
|
if (message.ParentNodeID !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.ParentNodeID);
|
|
/* int32 Level = 4; */
|
|
if (message.Level !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.Level);
|
|
/* string StringPath = 5; */
|
|
if (message.StringPath !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.StringPath);
|
|
/* string FamilyRefID = 6; */
|
|
if (message.FamilyRefID !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.FamilyRefID);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.FamilyNode
|
|
*/
|
|
export const FamilyNode = new FamilyNode$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class Address$Type extends MessageType<Address> {
|
|
constructor() {
|
|
super("api.Address", [
|
|
{ no: 1, name: "City", kind: "scalar", localName: "City", jsonName: "City", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] } } },
|
|
{ no: 2, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in <a href='https://en.wikipedia.org/wiki/ISO_3166-1'>ISO_3166-1</a> format", example: "\"FR\"" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Partner,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
|
{ no: 3, name: "GeographicalCoordinates", kind: "message", localName: "GeographicalCoordinates", jsonName: "GeographicalCoordinates", T: () => GeographicalCoordinates },
|
|
{ no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 5, name: "POBoxNumber", kind: "scalar", localName: "POBoxNumber", jsonName: "POBoxNumber", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
|
{ no: 6, name: "PostalCode", kind: "scalar", localName: "PostalCode", jsonName: "PostalCode", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Partner,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
|
{ no: 7, name: "ProvinceCode", kind: "scalar", localName: "ProvinceCode", jsonName: "ProvinceCode", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
|
{ no: 8, name: "State", kind: "scalar", localName: "State", jsonName: "State", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
|
{ no: 9, name: "StreetAddressOne", kind: "scalar", localName: "StreetAddressOne", jsonName: "StreetAddressOne", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
|
{ no: 10, name: "StreetAddressTwo", kind: "scalar", localName: "StreetAddressTwo", jsonName: "StreetAddressTwo", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
|
{ no: 11, name: "StreetAddressThree", kind: "scalar", localName: "StreetAddressThree", jsonName: "StreetAddressThree", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
|
|
{ no: 12, name: "PlusCode", kind: "scalar", localName: "PlusCode", jsonName: "PlusCode", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<Address>): Address {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.City = "";
|
|
message.CountryCode = "";
|
|
message.Name = "";
|
|
message.POBoxNumber = "";
|
|
message.PostalCode = "";
|
|
message.ProvinceCode = "";
|
|
message.State = "";
|
|
message.StreetAddressOne = "";
|
|
message.StreetAddressTwo = "";
|
|
message.StreetAddressThree = "";
|
|
message.PlusCode = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<Address>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Address): Address {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string City */ 1:
|
|
message.City = reader.string();
|
|
break;
|
|
case /* string CountryCode */ 2:
|
|
message.CountryCode = reader.string();
|
|
break;
|
|
case /* api.GeographicalCoordinates GeographicalCoordinates */ 3:
|
|
message.GeographicalCoordinates = GeographicalCoordinates.internalBinaryRead(reader, reader.uint32(), options, message.GeographicalCoordinates);
|
|
break;
|
|
case /* string Name */ 4:
|
|
message.Name = reader.string();
|
|
break;
|
|
case /* string POBoxNumber */ 5:
|
|
message.POBoxNumber = reader.string();
|
|
break;
|
|
case /* string PostalCode */ 6:
|
|
message.PostalCode = reader.string();
|
|
break;
|
|
case /* string ProvinceCode */ 7:
|
|
message.ProvinceCode = reader.string();
|
|
break;
|
|
case /* string State */ 8:
|
|
message.State = reader.string();
|
|
break;
|
|
case /* string StreetAddressOne */ 9:
|
|
message.StreetAddressOne = reader.string();
|
|
break;
|
|
case /* string StreetAddressTwo */ 10:
|
|
message.StreetAddressTwo = reader.string();
|
|
break;
|
|
case /* string StreetAddressThree */ 11:
|
|
message.StreetAddressThree = reader.string();
|
|
break;
|
|
case /* string PlusCode */ 12:
|
|
message.PlusCode = 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: Address, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string City = 1; */
|
|
if (message.City !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.City);
|
|
/* string CountryCode = 2; */
|
|
if (message.CountryCode !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.CountryCode);
|
|
/* api.GeographicalCoordinates GeographicalCoordinates = 3; */
|
|
if (message.GeographicalCoordinates)
|
|
GeographicalCoordinates.internalBinaryWrite(message.GeographicalCoordinates, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* string Name = 4; */
|
|
if (message.Name !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Name);
|
|
/* string POBoxNumber = 5; */
|
|
if (message.POBoxNumber !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.POBoxNumber);
|
|
/* string PostalCode = 6; */
|
|
if (message.PostalCode !== "")
|
|
writer.tag(6, WireType.LengthDelimited).string(message.PostalCode);
|
|
/* string ProvinceCode = 7; */
|
|
if (message.ProvinceCode !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.ProvinceCode);
|
|
/* string State = 8; */
|
|
if (message.State !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.State);
|
|
/* string StreetAddressOne = 9; */
|
|
if (message.StreetAddressOne !== "")
|
|
writer.tag(9, WireType.LengthDelimited).string(message.StreetAddressOne);
|
|
/* string StreetAddressTwo = 10; */
|
|
if (message.StreetAddressTwo !== "")
|
|
writer.tag(10, WireType.LengthDelimited).string(message.StreetAddressTwo);
|
|
/* string StreetAddressThree = 11; */
|
|
if (message.StreetAddressThree !== "")
|
|
writer.tag(11, WireType.LengthDelimited).string(message.StreetAddressThree);
|
|
/* string PlusCode = 12; */
|
|
if (message.PlusCode !== "")
|
|
writer.tag(12, WireType.LengthDelimited).string(message.PlusCode);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.Address
|
|
*/
|
|
export const Address = new Address$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ActorContact$Type extends MessageType<ActorContact> {
|
|
constructor() {
|
|
super("api.ActorContact", [
|
|
{ no: 1, name: "ContactTypeCode", kind: "scalar", localName: "ContactTypeCode", jsonName: "ContactTypeCode", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
|
|
{ no: 2, name: "FirstName", kind: "scalar", localName: "FirstName", jsonName: "FirstName", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "LastName", kind: "scalar", localName: "LastName", jsonName: "LastName", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 4, name: "JobTitle", kind: "scalar", localName: "JobTitle", jsonName: "JobTitle", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 5, name: "DepartmentName", kind: "scalar", localName: "DepartmentName", jsonName: "DepartmentName", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 6, name: "Responsibilities", kind: "scalar", localName: "Responsibilities", jsonName: "Responsibilities", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 7, name: "EmailAddress", kind: "scalar", localName: "EmailAddress", jsonName: "EmailAddress", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true, ignoreEmpty: true } } } },
|
|
{ no: 8, name: "FaxNumber", kind: "scalar", localName: "FaxNumber", jsonName: "FaxNumber", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 9, name: "TelephoneNumber", kind: "scalar", localName: "TelephoneNumber", jsonName: "TelephoneNumber", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<ActorContact>): ActorContact {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ContactTypeCode = "";
|
|
message.FirstName = "";
|
|
message.LastName = "";
|
|
message.JobTitle = "";
|
|
message.DepartmentName = "";
|
|
message.Responsibilities = [];
|
|
message.EmailAddress = "";
|
|
message.FaxNumber = "";
|
|
message.TelephoneNumber = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ActorContact>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorContact): ActorContact {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ContactTypeCode */ 1:
|
|
message.ContactTypeCode = reader.string();
|
|
break;
|
|
case /* string FirstName */ 2:
|
|
message.FirstName = reader.string();
|
|
break;
|
|
case /* string LastName */ 3:
|
|
message.LastName = reader.string();
|
|
break;
|
|
case /* string JobTitle */ 4:
|
|
message.JobTitle = reader.string();
|
|
break;
|
|
case /* string DepartmentName */ 5:
|
|
message.DepartmentName = reader.string();
|
|
break;
|
|
case /* repeated string Responsibilities */ 6:
|
|
message.Responsibilities.push(reader.string());
|
|
break;
|
|
case /* string EmailAddress */ 7:
|
|
message.EmailAddress = reader.string();
|
|
break;
|
|
case /* string FaxNumber */ 8:
|
|
message.FaxNumber = reader.string();
|
|
break;
|
|
case /* string TelephoneNumber */ 9:
|
|
message.TelephoneNumber = 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: ActorContact, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ContactTypeCode = 1; */
|
|
if (message.ContactTypeCode !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ContactTypeCode);
|
|
/* string FirstName = 2; */
|
|
if (message.FirstName !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.FirstName);
|
|
/* string LastName = 3; */
|
|
if (message.LastName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.LastName);
|
|
/* string JobTitle = 4; */
|
|
if (message.JobTitle !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.JobTitle);
|
|
/* string DepartmentName = 5; */
|
|
if (message.DepartmentName !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.DepartmentName);
|
|
/* repeated string Responsibilities = 6; */
|
|
for (let i = 0; i < message.Responsibilities.length; i++)
|
|
writer.tag(6, WireType.LengthDelimited).string(message.Responsibilities[i]);
|
|
/* string EmailAddress = 7; */
|
|
if (message.EmailAddress !== "")
|
|
writer.tag(7, WireType.LengthDelimited).string(message.EmailAddress);
|
|
/* string FaxNumber = 8; */
|
|
if (message.FaxNumber !== "")
|
|
writer.tag(8, WireType.LengthDelimited).string(message.FaxNumber);
|
|
/* string TelephoneNumber = 9; */
|
|
if (message.TelephoneNumber !== "")
|
|
writer.tag(9, WireType.LengthDelimited).string(message.TelephoneNumber);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ActorContact
|
|
*/
|
|
export const ActorContact = new ActorContact$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class Interlocutor$Type extends MessageType<Interlocutor> {
|
|
constructor() {
|
|
super("api.Interlocutor", [
|
|
{ no: 1, name: "FirstName", kind: "scalar", localName: "FirstName", jsonName: "FirstName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"John\"" } } },
|
|
{ no: 2, name: "LastName", kind: "scalar", localName: "LastName", jsonName: "LastName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Doe\"" } } },
|
|
{ no: 3, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"john.doe@reflex.com\",\"john.doe.bis@reflex.com\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Partner", Group: "partner" }, { Context: "Tracking", Group: "tracking" }] } } },
|
|
{ no: 4, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"07 00 00 00 00\",\"+33 4 00 00 00 00\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Partner", Group: "partner" }, { Context: "Tracking", Group: "tracking" }] } } }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<Interlocutor>): Interlocutor {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.FirstName = "";
|
|
message.LastName = "";
|
|
message.Emails = [];
|
|
message.Phones = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<Interlocutor>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Interlocutor): Interlocutor {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string FirstName */ 1:
|
|
message.FirstName = reader.string();
|
|
break;
|
|
case /* string LastName */ 2:
|
|
message.LastName = reader.string();
|
|
break;
|
|
case /* repeated string Emails */ 3:
|
|
message.Emails.push(reader.string());
|
|
break;
|
|
case /* repeated string Phones */ 4:
|
|
message.Phones.push(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: Interlocutor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string FirstName = 1; */
|
|
if (message.FirstName !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.FirstName);
|
|
/* string LastName = 2; */
|
|
if (message.LastName !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.LastName);
|
|
/* repeated string Emails = 3; */
|
|
for (let i = 0; i < message.Emails.length; i++)
|
|
writer.tag(3, WireType.LengthDelimited).string(message.Emails[i]);
|
|
/* repeated string Phones = 4; */
|
|
for (let i = 0; i < message.Phones.length; i++)
|
|
writer.tag(4, WireType.LengthDelimited).string(message.Phones[i]);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.Interlocutor
|
|
*/
|
|
export const Interlocutor = new Interlocutor$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class GeographicalCoordinates$Type extends MessageType<GeographicalCoordinates> {
|
|
constructor() {
|
|
super("api.GeographicalCoordinates", [
|
|
{ no: 1, name: "Latitude", kind: "scalar", localName: "Latitude", jsonName: "Latitude", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "Longitude", kind: "scalar", localName: "Longitude", jsonName: "Longitude", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<GeographicalCoordinates>): GeographicalCoordinates {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.Latitude = "";
|
|
message.Longitude = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<GeographicalCoordinates>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeographicalCoordinates): GeographicalCoordinates {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string Latitude */ 1:
|
|
message.Latitude = reader.string();
|
|
break;
|
|
case /* string Longitude */ 2:
|
|
message.Longitude = 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: GeographicalCoordinates, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string Latitude = 1; */
|
|
if (message.Latitude !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.Latitude);
|
|
/* string Longitude = 2; */
|
|
if (message.Longitude !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Longitude);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.GeographicalCoordinates
|
|
*/
|
|
export const GeographicalCoordinates = new GeographicalCoordinates$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class ActorSnapshot$Type extends MessageType<ActorSnapshot> {
|
|
constructor() {
|
|
super("api.ActorSnapshot", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be unique ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 3, name: "EndDateTime", kind: "message", localName: "EndDateTime", jsonName: "EndDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 4, name: "MessageNb", kind: "scalar", localName: "MessageNb", jsonName: "MessageNb", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { minimum: 1 } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "EndDateTime", "MessageNb"] } } });
|
|
}
|
|
create(value?: PartialMessage<ActorSnapshot>): ActorSnapshot {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.MessageNb = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<ActorSnapshot>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActorSnapshot): ActorSnapshot {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* api.DateTime EndDateTime */ 3:
|
|
message.EndDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.EndDateTime);
|
|
break;
|
|
case /* int32 MessageNb */ 4:
|
|
message.MessageNb = reader.int32();
|
|
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: ActorSnapshot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* api.DateTime EndDateTime = 3; */
|
|
if (message.EndDateTime)
|
|
DateTime.internalBinaryWrite(message.EndDateTime, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
/* int32 MessageNb = 4; */
|
|
if (message.MessageNb !== 0)
|
|
writer.tag(4, WireType.Varint).int32(message.MessageNb);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.ActorSnapshot
|
|
*/
|
|
export const ActorSnapshot = new ActorSnapshot$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class CarrierService$Type extends MessageType<CarrierService> {
|
|
constructor() {
|
|
super("api.CarrierService", [
|
|
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unique ID", example: "\"24h\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"24 hour delivery\"" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID"] } } });
|
|
}
|
|
create(value?: PartialMessage<CarrierService>): CarrierService {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.ID = "";
|
|
message.Label = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<CarrierService>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierService): CarrierService {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string ID */ 1:
|
|
message.ID = reader.string();
|
|
break;
|
|
case /* string Label */ 2:
|
|
message.Label = 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: CarrierService, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string ID = 1; */
|
|
if (message.ID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
|
/* string Label = 2; */
|
|
if (message.Label !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.Label);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.CarrierService
|
|
*/
|
|
export const CarrierService = new CarrierService$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class LVDetailedQuantity$Type extends MessageType<LVDetailedQuantity> {
|
|
constructor() {
|
|
super("api.LVDetailedQuantity", [
|
|
{ no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
|
{ no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "Quantity", kind: "scalar", localName: "Quantity", jsonName: "Quantity", T: 2 /*ScalarType.FLOAT*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<LVDetailedQuantity>): LVDetailedQuantity {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.LVID = "";
|
|
message.LVName = "";
|
|
message.Quantity = 0;
|
|
if (value !== undefined)
|
|
reflectionMergePartial<LVDetailedQuantity>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LVDetailedQuantity): LVDetailedQuantity {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string LVID */ 1:
|
|
message.LVID = reader.string();
|
|
break;
|
|
case /* string LVName */ 2:
|
|
message.LVName = reader.string();
|
|
break;
|
|
case /* float Quantity */ 3:
|
|
message.Quantity = reader.float();
|
|
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: LVDetailedQuantity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string LVID = 1; */
|
|
if (message.LVID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.LVID);
|
|
/* string LVName = 2; */
|
|
if (message.LVName !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.LVName);
|
|
/* float Quantity = 3; */
|
|
if (message.Quantity !== 0)
|
|
writer.tag(3, WireType.Bit32).float(message.Quantity);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.LVDetailedQuantity
|
|
*/
|
|
export const LVDetailedQuantity = new LVDetailedQuantity$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class SiteAlias$Type extends MessageType<SiteAlias> {
|
|
constructor() {
|
|
super("api.SiteAlias", [
|
|
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<SiteAlias>): SiteAlias {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.OrganisationID = "";
|
|
message.SiteID = "";
|
|
message.SiteName = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<SiteAlias>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteAlias): SiteAlias {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* string OrganisationID */ 1:
|
|
message.OrganisationID = reader.string();
|
|
break;
|
|
case /* string SiteID */ 2:
|
|
message.SiteID = reader.string();
|
|
break;
|
|
case /* string SiteName */ 3:
|
|
message.SiteName = 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: SiteAlias, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* string OrganisationID = 1; */
|
|
if (message.OrganisationID !== "")
|
|
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
|
|
/* string SiteID = 2; */
|
|
if (message.SiteID !== "")
|
|
writer.tag(2, WireType.LengthDelimited).string(message.SiteID);
|
|
/* string SiteName = 3; */
|
|
if (message.SiteName !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.SiteName);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.SiteAlias
|
|
*/
|
|
export const SiteAlias = new SiteAlias$Type();
|