Files
npm-core-sdk/warehousingShared.ts
2025-12-09 11:20:34 +00:00

2914 lines
165 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "warehousingShared.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 { ClaimSummary } from "./shared";
import { ItemPayload } from "./item";
import { QuantityLength } from "./shared";
import { QuantityVolume } from "./shared";
import { QuantityWeight } from "./shared";
import { MetadataElement } from "./shared";
import { DateTime } from "./shared";
/**
* @generated from protobuf message api.HandlingunitStatus
*/
export interface HandlingunitStatus {
/**
* @generated from protobuf field: api.HandlingunitStatusCode StatusCode = 1
*/
StatusCode: HandlingunitStatusCode;
/**
* This date is only a string as it is always given by system
*
* @generated from protobuf field: string Date = 2
*/
Date: string;
/**
* Status effective date. Set by the event's RefDate that triggered the status change.
*
* @generated from protobuf field: api.DateTime ActualDate = 3
*/
ActualDate?: DateTime;
}
/**
* @generated from protobuf message api.HandlingunitStatusStruct
*/
export interface HandlingunitStatusStruct {
/**
* @generated from protobuf field: api.HandlingunitStatus Current = 1
*/
Current?: HandlingunitStatus; // Current status of the Handlingunit entity
/**
* @generated from protobuf field: repeated api.HandlingunitStatus History = 2
*/
History: HandlingunitStatus[]; // List of all status history of the Handlingunit entity
/**
* @generated from protobuf field: string CreationDate = 3
*/
CreationDate: string;
/**
* @generated from protobuf field: uint32 Version = 4
*/
Version: number;
}
/**
*
* All the information of the Handlingunit that is sent to the parent ExecutionFlow.
* Here we have the Handlingunit status and also the content in terms of Goods structured by ExecutionFlow LineID
*
* @generated from protobuf message api.HandlingunitSummary
*/
export interface HandlingunitSummary {
/**
* @generated from protobuf field: string HandlingunitID = 1
*/
HandlingunitID: string;
/**
* @generated from protobuf field: api.HandlingunitStatus Status = 2
*/
Status?: HandlingunitStatus;
/**
* @generated from protobuf field: string TrackingID = 3
*/
TrackingID: string;
/**
* 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 = 6
*/
MetaData: MetadataElement[];
/**
* @generated from protobuf field: repeated api.QuantifiedGoodsByLine Contents = 7
*/
Contents: QuantifiedGoodsByLine[];
/**
* @generated from protobuf field: string TrackingURL = 9
*/
TrackingURL: string;
/**
* @generated from protobuf field: bool IsReported = 10
*/
IsReported: boolean;
}
//
// describes most of the information of the HU (except the content) given by the WMS on the OutboundReport message.
//
// Note : the main HU ID is not included in this message
/**
* @generated from protobuf message api.HandlingunitInformation
*/
export interface HandlingunitInformation {
/**
* Describe the container Type : Container, Box, Pallet ...
*
* @generated from protobuf field: string ContainerType = 1
*/
ContainerType: string;
/**
* @generated from protobuf field: api.QuantityWeight Weight = 2
*/
Weight?: QuantityWeight;
/**
* @generated from protobuf field: api.QuantityVolume Volume = 3
*/
Volume?: QuantityVolume;
/**
* @generated from protobuf field: api.QuantityLength Height = 4
*/
Height?: QuantityLength;
/**
* @generated from protobuf field: api.QuantityLength Width = 5
*/
Width?: QuantityLength;
/**
* @generated from protobuf field: api.QuantityLength Length = 6
*/
Length?: QuantityLength;
}
/**
*
* Stock entity status structure
*
* @generated from protobuf message api.StockStatus
*/
export interface StockStatus {
/**
* @generated from protobuf field: api.StockStatusCode StatusCode = 1
*/
StatusCode: StockStatusCode;
/**
* This date is only a string as it is always given by system
*
* @generated from protobuf field: string Date = 2
*/
Date: string;
/**
* Status effective date. Set by the event's RefDate that triggered the status change.
*
* @generated from protobuf field: api.DateTime ActualDate = 3
*/
ActualDate?: DateTime;
}
/**
*
* StockStatusStruct statuses structure
*
* @generated from protobuf message api.StockStatusStruct
*/
export interface StockStatusStruct {
/**
* Current status of the Stock entity
*
* @generated from protobuf field: api.StockStatus Current = 1
*/
Current?: StockStatus;
/**
* List of all status history of the Stock entity
*
* @generated from protobuf field: repeated api.StockStatus History = 2
*/
History: StockStatus[];
/**
* @generated from protobuf field: uint32 Version = 3
*/
Version: number;
/**
* @generated from protobuf field: string CreationDate = 4
*/
CreationDate: string;
}
/**
*
* Stock entity status structure
* TODO : kpiItem à vérifier
*
* @generated from protobuf message api.MovementStatus
*/
export interface MovementStatus {
/**
* @generated from protobuf field: api.MovementStatusCode StatusCode = 1
*/
StatusCode: MovementStatusCode;
/**
* This date is only a string as it is always given by system
*
* @generated from protobuf field: string Date = 2
*/
Date: string;
/**
* Status effective date. Set by the event's RefDate that triggered the status change.
*
* @generated from protobuf field: api.DateTime ActualDate = 3
*/
ActualDate?: DateTime;
}
/**
*
* MovementStatusStruct statuses structure
*
* @generated from protobuf message api.MovementStatusStruct
*/
export interface MovementStatusStruct {
/**
* Current status of the Movement entity
*
* @generated from protobuf field: api.MovementStatus Current = 1
*/
Current?: MovementStatus;
/**
* List of all status history of the Movement entity
*
* @generated from protobuf field: repeated api.MovementStatus History = 2
*/
History: MovementStatus[];
/**
* @generated from protobuf field: uint32 Version = 3
*/
Version: number;
/**
* for movement Version is always set to 1
*
* @generated from protobuf field: string CreationDate = 4
*/
CreationDate: string;
}
/**
* @generated from protobuf message api.GoodsTrackingStatus
*/
export interface GoodsTrackingStatus {
/**
* @generated from protobuf field: api.GoodsTrackingStatusCode StatusCode = 1
*/
StatusCode: GoodsTrackingStatusCode;
/**
* This date is only a string as it is always given by system
*
* @generated from protobuf field: string Date = 2
*/
Date: string;
/**
* Status effective date. Set by the event's RefDate that triggered the status change.
*
* @generated from protobuf field: api.DateTime ActualDate = 3
*/
ActualDate?: DateTime;
}
//
// Structure to describe a goods without item enrichment with all goods key attributes defined as manadatory.
//
// The mandatory fields are the good key attributes : ItemID, LVBranchID, PriorityDate and SegmentationKeys.
// This structure will not be enriched.
//
// It is used into many others entities :
// - Handlingunit, Content<>.Goods : to define the goods physically present into the HU (goods here are fully describe, it means item + Prioritytdate + all requested Segmentation keys)
/**
* @generated from protobuf message api.Goods
*/
export interface Goods {
/**
* The following fields are the composed key for Goods
*
* @generated from protobuf field: string ItemID = 1
*/
ItemID: string;
/**
* Logitical Variant branch ID
*
* @generated from protobuf field: string LVBranchID = 2
*/
LVBranchID: string;
/**
* PriorityDate becomes mandatory (may be fictitious)
*
* @generated from protobuf field: string PriorityDate = 3
*/
PriorityDate: string;
/**
* The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements
*
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 4
*/
SegmentationKeys: MetadataElement[];
}
//
// Structure to describe a goods with item enrichment with all goods key attributes defined as mandatory.
//
// The mandatory fields are the good key attributes : ItemID, LVBranchID, PriorityDate and SegmentationKeys.
// This structure will be enriched, by retrieving the Item payload referenced by the ItemID.
//
// It is used into many others entities :
// - Stock, Goods : to define the goods physically present into the warehouse (goods here are fully describe, it means item + Prioritytdate + all requested Segmentation keys)
// - Executionflow, ShippedGoods : to define the goods physically associated (prepared, received) to an order / executionflow.
/**
* @generated from protobuf message api.EnrichedGoods
*/
export interface EnrichedGoods {
/**
* @generated from protobuf field: string ItemID = 1
*/
ItemID: string;
/**
* Logistical variant branch ID
*
* @generated from protobuf field: string LVBranchID = 2
*/
LVBranchID: string;
/**
* Date of minimum substainability in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
*
* @generated from protobuf field: string PriorityDate = 3
*/
PriorityDate: string;
/**
* The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements
*
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 4
*/
SegmentationKeys: MetadataElement[];
/**
* @generated from protobuf field: api.ItemPayload Item = 6
*/
Item?: ItemPayload; // Enriched from Item entity with ItemID + LVID, or directly provided by value
}
//
// Structure to describe a requested goods with item enrichment where all goods key attributes are not mandatory.
//
// The unique mandatory field is the ItemID.
// Other key attributes are optional : LVBranchID, PriorityDate and SegmentationKeys.
// This structure will be enriched, by retrieving the Item payload referenced by the ItemID.
//
// It is used into :
// - Order, Lines<>.RequestedGoods.Goods : to define the item/goods requested by the order (goods potentially partial, at least the item).
// - Executionflow, Lines<>.RequestedGoods.Goods : to define the item/goods requested by the executionflow (goods potentially partial, at least the item).
/**
* @generated from protobuf message api.RequestedEnrichedGoods
*/
export interface RequestedEnrichedGoods {
/**
* @generated from protobuf field: string ItemID = 1
*/
ItemID: string;
/**
* Logistical variant branch ID
*
* @generated from protobuf field: string LVBranchID = 2
*/
LVBranchID: string;
/**
* Date of minimum substainability in <a href='https://fr.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
*
* @generated from protobuf field: string PriorityDate = 3
*/
PriorityDate: string;
/**
* The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements
*
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 4
*/
SegmentationKeys: MetadataElement[];
/**
* Enriched from Item entity with ItemID + LVID, or directly provided by value
*
* @generated from protobuf field: api.ItemPayload Item = 6
*/
Item?: ItemPayload;
}
/**
*
* Structure to quantify a requested enriched goods.
* Used in Order and, Executionflow entities on requested content structures.
*
* @generated from protobuf message api.QuantifiedRequestedGoods
*/
export interface QuantifiedRequestedGoods {
/**
* @generated from protobuf field: api.RequestedEnrichedGoods Goods = 1
*/
Goods?: RequestedEnrichedGoods;
/**
* @generated from protobuf field: api.QuantityInLV Quantity = 2
*/
Quantity?: QuantityInLV;
}
/**
*
* Structure to quantity a goods into a tracked HU.
* Used into Executionflow ShippedContents structure.
* Only filled by internal computation (not API-exposed)
*
* @generated from protobuf message api.QuantifiedGoodsByHU
*/
export interface QuantifiedGoodsByHU {
/**
* @generated from protobuf field: api.EnrichedGoods Goods = 1
*/
Goods?: EnrichedGoods;
/**
* @generated from protobuf field: string HandlingunitID = 2
*/
HandlingunitID: string;
/**
* @generated from protobuf field: string TrackingID = 3
*/
TrackingID: string;
/**
* @generated from protobuf field: api.GoodsTrackingStatus Status = 4
*/
Status?: GoodsTrackingStatus;
/**
* @generated from protobuf field: api.QuantityInLV RequestedQuantity = 5
*/
RequestedQuantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV RequestedQuantityInBaseLV = 6
*/
RequestedQuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV PreparedQuantity = 7
*/
PreparedQuantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV PreparedQuantityInBaseLV = 8
*/
PreparedQuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV ReceivedQuantity = 9
*/
ReceivedQuantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV ReceivedQuantityInBaseLV = 10
*/
ReceivedQuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: string TrackingURL = 11
*/
TrackingURL: string;
}
//
// Structure to quantity a goods into an executionflow line.
// Used into Executionflow HUs structure.
/**
* @generated from protobuf message api.QuantifiedGoodsByLine
*/
export interface QuantifiedGoodsByLine {
/**
* @generated from protobuf field: api.EnrichedGoods Goods = 1
*/
Goods?: EnrichedGoods;
/**
* @generated from protobuf field: string LineID = 2
*/
LineID: string;
/**
* @generated from protobuf field: api.QuantityInLV PreparedQuantity = 3
*/
PreparedQuantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV PreparedQuantityInBaseLV = 4
*/
PreparedQuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV ReceivedQuantity = 5
*/
ReceivedQuantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV ReceivedQuantityInBaseLV = 6
*/
ReceivedQuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: bool IsReported = 7
*/
IsReported: boolean;
}
//
// Structure to describe a quantity of goods by executionflow line ID.
// Here the item is described by its ID and will not be enriched.
// Used in Handlingunit entities, where we do not need to enrich Item payload with a hard (fully described goods) link.
// Used for received Goods, and stock movement where a date is requested
/**
* @generated from protobuf message api.QuantifiedDatedGoodsByExeflow
*/
export interface QuantifiedDatedGoodsByExeflow {
/**
* @generated from protobuf field: api.DateTime DateTime = 8
*/
DateTime?: DateTime; // This date must be the one for the stock movement
/**
* @generated from protobuf field: api.EnrichedGoods Goods = 1
*/
Goods?: EnrichedGoods;
/**
* @generated from protobuf field: string ExecutionflowID = 2
*/
ExecutionflowID: string;
/**
* @generated from protobuf field: string LineID = 3
*/
LineID: string;
/**
* @generated from protobuf field: string OrderID = 10
*/
OrderID: string;
/**
* @generated from protobuf field: string ActorID = 4
*/
ActorID: string;
/**
* @generated from protobuf field: api.QuantityInLV Quantity = 5
*/
Quantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV QuantityInBaseLV = 9
*/
QuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: bool StockMovementGenerated = 6
*/
StockMovementGenerated: boolean;
/**
* @generated from protobuf field: bool ContentSummaryGenerated = 7
*/
ContentSummaryGenerated: boolean;
}
/**
*
* Structure to describe a quantity of goods prepared by executionflow line ID.
* Here the item is described by its ID and will not be enriched.
* Used in Handlingunit entities, where we do not need to enrich Item payload with a hard (fully described goods) link.
* Used fo prepared Goods when no date is requested
*
* @generated from protobuf message api.QuantifiedGoodsByExeflow
*/
export interface QuantifiedGoodsByExeflow {
/**
* @generated from protobuf field: api.EnrichedGoods Goods = 1
*/
Goods?: EnrichedGoods;
/**
* @generated from protobuf field: string ExecutionflowID = 2
*/
ExecutionflowID: string;
/**
* @generated from protobuf field: string LineID = 3
*/
LineID: string;
/**
* @generated from protobuf field: string ActorID = 4
*/
ActorID: string;
/**
* @generated from protobuf field: api.QuantityInLV Quantity = 5
*/
Quantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV QuantityInBaseLV = 8
*/
QuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: bool StockMovementGenerated = 6
*/
StockMovementGenerated: boolean;
/**
* @generated from protobuf field: bool ContentSummaryGenerated = 7
*/
ContentSummaryGenerated: boolean;
/**
* @generated from protobuf field: string OrderID = 9
*/
OrderID: string;
}
/**
*
* Structure to define a quantity in a specific LV with a priority
*
* @generated from protobuf message api.QuantityByLV
*/
export interface QuantityByLV {
/**
* Logistical variant ID
*
* @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;
/**
* In order to sort the map from the biggest LV to the smallest
*
* @generated from protobuf field: string Priority = 4
*/
Priority: string;
}
/**
*
* Structure to define a quantity in a specific LV
*
* @generated from protobuf message api.QuantityInLV
*/
export interface QuantityInLV {
/**
* Logistical variant ID
*
* @generated from protobuf field: string LVID = 1
*/
LVID: string;
/**
* @generated from protobuf field: string LVName = 2
*/
LVName: string;
/**
* @generated from protobuf field: float Value = 3
*/
Value: number;
}
/**
*
* Definition of a stock snapshot
*
* @generated from protobuf message api.StockSnapshot
*/
export interface StockSnapshot {
/**
* @generated from protobuf field: api.DateTime DateTime = 6
*/
DateTime?: DateTime; // Datetime for the image on this key
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
/**
* @generated from protobuf field: api.QuantityInLV Quantity = 4
*/
Quantity?: QuantityInLV;
/**
* @generated from protobuf field: api.QuantityInLV QuantityInBaseLV = 5
*/
QuantityInBaseLV?: QuantityInLV;
/**
* @generated from protobuf field: bool IsTotalQuantity = 7
*/
IsTotalQuantity: boolean; // If true means there is only one snapshotted value for a key. Otherwise, sum will be done afterward
/**
* @generated from protobuf field: repeated float PartialQuantities = 8
*/
PartialQuantities: number[];
/**
* @generated from protobuf field: api.QuantityInLV PreviousQuantityInBaseLV = 9
*/
PreviousQuantityInBaseLV?: QuantityInLV; // this qty is used to build the snapshot_delta qty
}
/**
*
* Definition of a stock movement claim
*
* @generated from protobuf message api.StockMovementClaim
*/
export interface StockMovementClaim {
/**
* @generated from protobuf field: repeated api.ClaimSummary Claims = 1
*/
Claims: ClaimSummary[];
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
*
* Definition of a stock movement
*
* @generated from protobuf message api.StockMovement
*/
export interface StockMovement {
/**
* @generated from protobuf field: api.DateTime DateTime = 1
*/
DateTime?: DateTime;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
/**
* Codes used in StockMovementReason to explain stock movement
*
* @generated from protobuf field: api.StockMovementTypeCode Type = 3
*/
Type: StockMovementTypeCode;
/**
* @generated from protobuf field: string HandlingunitID = 4
*/
HandlingunitID: string;
/**
* @generated from protobuf field: string OrderID = 17
*/
OrderID: string;
/**
* @generated from protobuf field: string ExecutionflowID = 5
*/
ExecutionflowID: string;
/**
* @generated from protobuf field: string ExecutionflowLineID = 6
*/
ExecutionflowLineID: string;
/**
* @generated from protobuf field: string Reason = 7
*/
Reason: string;
/**
* @generated from protobuf field: string OperationReference = 8
*/
OperationReference: string;
/**
* @generated from protobuf field: api.MovementQuantityInLV Quantity = 9
*/
Quantity?: MovementQuantityInLV;
/**
* @generated from protobuf field: api.MovementQuantityInLV QuantityInBaseLV = 10
*/
QuantityInBaseLV?: MovementQuantityInLV;
/**
* @generated from protobuf field: bool MvtAlreadyUsedInStock = 11
*/
MvtAlreadyUsedInStock: boolean;
/**
* @generated from protobuf field: repeated api.QuantityByLV QuantityByLVs = 12
*/
QuantityByLVs: QuantityByLV[];
/**
* @generated from protobuf field: string LVDetailledQuantity = 13
*/
LVDetailledQuantity: string;
/**
* @generated from protobuf field: string Author = 14
*/
Author: string;
/**
* @generated from protobuf field: string ExternalMoveRef = 15
*/
ExternalMoveRef: string;
/**
* @generated from protobuf field: string ExternalInfo = 16
*/
ExternalInfo: string;
}
/**
*
* Structure to define a quantity in a specific LV
*
* @generated from protobuf message api.MovementQuantityInLV
*/
export interface MovementQuantityInLV {
/**
* Logistical variant ID
*
* @generated from protobuf field: string LVID = 1
*/
LVID: string;
/**
* @generated from protobuf field: string LVName = 2
*/
LVName: string;
/**
* @generated from protobuf field: float Value = 3
*/
Value: number;
}
// _repository_
//
// All statuses for Handlingunit entity
//
// Handlingunit status are mainly linked to Tracking status, received through trackingUpdated event.
// Some status are computed after goodsAdded and husAdded events.
//
// https://hardisgroupe.sharepoint.com/:p:/r/sites/N1/_layouts/15/Doc.aspx?sourcedoc=%7B5ECE4F90-6775-4EDA-BC25-7AD4982F8415%7D&file=Statuts%20N1_v2.pptx&action=edit&mobileredirect=true
/**
* @generated from protobuf enum api.HandlingunitStatusCode
*/
export enum HandlingunitStatusCode {
/**
* @generated from protobuf enum value: HANDLINGUNIT_0000_UNKNOWN = 0;
*/
HANDLINGUNIT_0000_UNKNOWN = 0,
/**
* @generated from protobuf enum value: HANDLINGUNIT_0500_PACKING = 500;
*/
HANDLINGUNIT_0500_PACKING = 500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_1000_READY_TO_COLLECT = 1000;
*/
HANDLINGUNIT_1000_READY_TO_COLLECT = 1000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_1500_LOADED = 1500;
*/
HANDLINGUNIT_1500_LOADED = 1500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_2000_COLLECTING = 2000;
*/
HANDLINGUNIT_2000_COLLECTING = 2000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_2500_COLLECTION_ERROR = 2500;
*/
HANDLINGUNIT_2500_COLLECTION_ERROR = 2500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_2800_DISPATCHED = 2800;
*/
HANDLINGUNIT_2800_DISPATCHED = 2800,
/**
* @generated from protobuf enum value: HANDLINGUNIT_3000_COLLECTED = 3000;
*/
HANDLINGUNIT_3000_COLLECTED = 3000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_3500_HANDLED_BY_CARRIER = 3500;
*/
HANDLINGUNIT_3500_HANDLED_BY_CARRIER = 3500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_4000_DELIVERY_ERROR = 4000;
*/
HANDLINGUNIT_4000_DELIVERY_ERROR = 4000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_4500_INTERRUPTED = 4500;
*/
HANDLINGUNIT_4500_INTERRUPTED = 4500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_5000_DELIVERING = 5000;
*/
HANDLINGUNIT_5000_DELIVERING = 5000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_5500_DELIVERY_COMPLETED = 5500;
*/
HANDLINGUNIT_5500_DELIVERY_COMPLETED = 5500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_6000_UNPACKING = 6000;
*/
HANDLINGUNIT_6000_UNPACKING = 6000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_6500_FREED = 6500;
*/
HANDLINGUNIT_6500_FREED = 6500,
/**
* @generated from protobuf enum value: HANDLINGUNIT_7000_CANCELED = 7000;
*/
HANDLINGUNIT_7000_CANCELED = 7000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_8000_DELETED = 8000;
*/
HANDLINGUNIT_8000_DELETED = 8000,
/**
* @generated from protobuf enum value: HANDLINGUNIT_9500_ANOMALY = 9500;
*/
HANDLINGUNIT_9500_ANOMALY = 9500
}
/**
* type of code for Handlingunit ID
*
* @generated from protobuf enum api.IDType
*/
export enum IDType {
/**
* @generated from protobuf enum value: HUID_UNKNOWN = 0;
*/
HUID_UNKNOWN = 0,
/**
* @generated from protobuf enum value: HUID_SSCC = 1;
*/
HUID_SSCC = 1
}
/**
*
* All statuses for Stock entity
*
* @generated from protobuf enum api.StockStatusCode
*/
export enum StockStatusCode {
/**
* @generated from protobuf enum value: STOCK_UNKNOWN = 0;
*/
STOCK_UNKNOWN = 0,
/**
* @generated from protobuf enum value: STOCK_1000_ACTIVE = 1000;
*/
STOCK_1000_ACTIVE = 1000,
/**
* @generated from protobuf enum value: STOCK_9500_ANOMALY = 9500;
*/
STOCK_9500_ANOMALY = 9500
}
/**
*
* All statuses for Stock entity
*
* @generated from protobuf enum api.MovementStatusCode
*/
export enum MovementStatusCode {
/**
* @generated from protobuf enum value: MOVEMENT_UNKNOWN = 0;
*/
MOVEMENT_UNKNOWN = 0,
/**
* @generated from protobuf enum value: MOVEMENT_1000_ACTIVE = 1000;
*/
MOVEMENT_1000_ACTIVE = 1000,
/**
* @generated from protobuf enum value: MOVEMENT_9500_ANOMALY = 9500;
*/
MOVEMENT_9500_ANOMALY = 9500
}
/**
* @generated from protobuf enum api.GoodsTrackingStatusCode
*/
export enum GoodsTrackingStatusCode {
/**
* @generated from protobuf enum value: GOODS_0000_UNKNOWN = 0;
*/
GOODS_0000_UNKNOWN = 0,
/**
* @generated from protobuf enum value: GOODS_1500_READY_TO_PREPARE = 1500;
*/
GOODS_1500_READY_TO_PREPARE = 1500,
/**
* @generated from protobuf enum value: GOODS_2000_PREPARATION_ERROR = 2000;
*/
GOODS_2000_PREPARATION_ERROR = 2000,
/**
* @generated from protobuf enum value: GOODS_2500_PREPARING = 2500;
*/
GOODS_2500_PREPARING = 2500,
/**
* @generated from protobuf enum value: GOODS_3000_PREPARATION_COMPLETED = 3000;
*/
GOODS_3000_PREPARATION_COMPLETED = 3000,
/**
* @generated from protobuf enum value: GOODS_3500_READY_TO_TRANSPORT = 3500;
*/
GOODS_3500_READY_TO_TRANSPORT = 3500,
/**
* @generated from protobuf enum value: GOODS_4000_TRANSPORT_ERROR = 4000;
*/
GOODS_4000_TRANSPORT_ERROR = 4000,
/**
* @generated from protobuf enum value: GOODS_4500_TRANSPORTING = 4500;
*/
GOODS_4500_TRANSPORTING = 4500,
/**
* @generated from protobuf enum value: GOODS_5000_TRANSPORT_COMPLETED = 5000;
*/
GOODS_5000_TRANSPORT_COMPLETED = 5000,
/**
* @generated from protobuf enum value: GOODS_5500_READY_TO_RECEIVE = 5500;
*/
GOODS_5500_READY_TO_RECEIVE = 5500,
/**
* @generated from protobuf enum value: GOODS_6000_RECEPTION_ERROR = 6000;
*/
GOODS_6000_RECEPTION_ERROR = 6000,
/**
* @generated from protobuf enum value: GOODS_6500_RECEIVING = 6500;
*/
GOODS_6500_RECEIVING = 6500,
/**
* @generated from protobuf enum value: GOODS_7000_RECEPTION_COMPLETED = 7000;
*/
GOODS_7000_RECEPTION_COMPLETED = 7000,
/**
* @generated from protobuf enum value: GOODS_7500_COMPLETED = 7500;
*/
GOODS_7500_COMPLETED = 7500
}
/**
*
* Codes used in StockMovementReason to explain stock movement.
*
* @generated from protobuf enum api.StockMovementTypeCode
*/
export enum StockMovementTypeCode {
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_UNKNOWN = 0;
*/
STOCK_MOVEMENT_TYPE_UNKNOWN = 0,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_OUTBOUND = 1;
*/
STOCK_MOVEMENT_TYPE_OUTBOUND = 1,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_INBOUND = 2;
*/
STOCK_MOVEMENT_TYPE_INBOUND = 2,
/**
* STOCK_MOVEMENT_TYPE_INTERNAL = 3;
*
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_PRODUCTION = 4;
*/
STOCK_MOVEMENT_TYPE_PRODUCTION = 4,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_DESTRUCTION = 5;
*/
STOCK_MOVEMENT_TYPE_DESTRUCTION = 5,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_FIX = 6;
*/
STOCK_MOVEMENT_TYPE_FIX = 6,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_REQUALIFICATION = 7;
*/
STOCK_MOVEMENT_TYPE_REQUALIFICATION = 7,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_SNAPSHOT_DELTA = 8;
*/
STOCK_MOVEMENT_TYPE_SNAPSHOT_DELTA = 8,
/**
* @generated from protobuf enum value: STOCK_MOVEMENT_TYPE_USE_OF_GOODS = 9;
*/
STOCK_MOVEMENT_TYPE_USE_OF_GOODS = 9
}
// @generated message type with reflection information, may provide speed optimized methods
class HandlingunitStatus$Type extends MessageType<HandlingunitStatus> {
constructor() {
super("api.HandlingunitStatus", [
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.HandlingunitStatusCode", HandlingunitStatusCode], options: { "api.dataRestrictionKey": "Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } },
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
]);
}
create(value?: PartialMessage<HandlingunitStatus>): HandlingunitStatus {
const message = globalThis.Object.create((this.messagePrototype!));
message.StatusCode = 0;
message.Date = "";
if (value !== undefined)
reflectionMergePartial<HandlingunitStatus>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandlingunitStatus): HandlingunitStatus {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.HandlingunitStatusCode 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: HandlingunitStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.HandlingunitStatusCode 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.HandlingunitStatus
*/
export const HandlingunitStatus = new HandlingunitStatus$Type();
// @generated message type with reflection information, may provide speed optimized methods
class HandlingunitStatusStruct$Type extends MessageType<HandlingunitStatusStruct> {
constructor() {
super("api.HandlingunitStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => HandlingunitStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitStatus, options: { "api.aggKey": "Date" } },
{ no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } },
{ no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }
]);
}
create(value?: PartialMessage<HandlingunitStatusStruct>): HandlingunitStatusStruct {
const message = globalThis.Object.create((this.messagePrototype!));
message.History = [];
message.CreationDate = "";
message.Version = 0;
if (value !== undefined)
reflectionMergePartial<HandlingunitStatusStruct>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandlingunitStatusStruct): HandlingunitStatusStruct {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.HandlingunitStatus Current */ 1:
message.Current = HandlingunitStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* repeated api.HandlingunitStatus History */ 2:
message.History.push(HandlingunitStatus.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: HandlingunitStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.HandlingunitStatus Current = 1; */
if (message.Current)
HandlingunitStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.HandlingunitStatus History = 2; */
for (let i = 0; i < message.History.length; i++)
HandlingunitStatus.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.HandlingunitStatusStruct
*/
export const HandlingunitStatusStruct = new HandlingunitStatusStruct$Type();
// @generated message type with reflection information, may provide speed optimized methods
class HandlingunitSummary$Type extends MessageType<HandlingunitSummary> {
constructor() {
super("api.HandlingunitSummary", [
{ no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => HandlingunitStatus, options: { "api.aggSkip": "HUTrackingUpdated,HUContentUpdated" } },
{ no: 3, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 6, 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.transientRef": "Handlingunit,Payload.MetaData,hard", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Handlingunit" } },
{ no: 7, name: "Contents", kind: "message", localName: "Contents", jsonName: "Contents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedGoodsByLine, options: { "api.aggSkip": "HUTrackingUpdated", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 9, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "IsReported", kind: "scalar", localName: "IsReported", jsonName: "IsReported", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "All the information of the Handlingunit that is sent to the parent ExecutionFlow", required: ["HandlingunitID"] } } });
}
create(value?: PartialMessage<HandlingunitSummary>): HandlingunitSummary {
const message = globalThis.Object.create((this.messagePrototype!));
message.HandlingunitID = "";
message.TrackingID = "";
message.MetaData = [];
message.Contents = [];
message.TrackingURL = "";
message.IsReported = false;
if (value !== undefined)
reflectionMergePartial<HandlingunitSummary>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandlingunitSummary): HandlingunitSummary {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string HandlingunitID */ 1:
message.HandlingunitID = reader.string();
break;
case /* api.HandlingunitStatus Status */ 2:
message.Status = HandlingunitStatus.internalBinaryRead(reader, reader.uint32(), options, message.Status);
break;
case /* string TrackingID */ 3:
message.TrackingID = reader.string();
break;
case /* repeated api.MetadataElement MetaData */ 6:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.QuantifiedGoodsByLine Contents */ 7:
message.Contents.push(QuantifiedGoodsByLine.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string TrackingURL */ 9:
message.TrackingURL = reader.string();
break;
case /* bool IsReported */ 10:
message.IsReported = reader.bool();
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: HandlingunitSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string HandlingunitID = 1; */
if (message.HandlingunitID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.HandlingunitID);
/* api.HandlingunitStatus Status = 2; */
if (message.Status)
HandlingunitStatus.internalBinaryWrite(message.Status, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string TrackingID = 3; */
if (message.TrackingID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TrackingID);
/* repeated api.MetadataElement MetaData = 6; */
for (let i = 0; i < message.MetaData.length; i++)
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated api.QuantifiedGoodsByLine Contents = 7; */
for (let i = 0; i < message.Contents.length; i++)
QuantifiedGoodsByLine.internalBinaryWrite(message.Contents[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* string TrackingURL = 9; */
if (message.TrackingURL !== "")
writer.tag(9, WireType.LengthDelimited).string(message.TrackingURL);
/* bool IsReported = 10; */
if (message.IsReported !== false)
writer.tag(10, WireType.Varint).bool(message.IsReported);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.HandlingunitSummary
*/
export const HandlingunitSummary = new HandlingunitSummary$Type();
// @generated message type with reflection information, may provide speed optimized methods
class HandlingunitInformation$Type extends MessageType<HandlingunitInformation> {
constructor() {
super("api.HandlingunitInformation", [
{ no: 1, name: "ContainerType", kind: "scalar", localName: "ContainerType", jsonName: "ContainerType", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Describe the container Type : Container, Box, Pallet ..." }, "api.dataRestrictionKey": "Handlingunit", "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] } } },
{ no: 2, name: "Weight", kind: "message", localName: "Weight", jsonName: "Weight", T: () => QuantityWeight },
{ no: 3, name: "Volume", kind: "message", localName: "Volume", jsonName: "Volume", T: () => QuantityVolume },
{ no: 4, name: "Height", kind: "message", localName: "Height", jsonName: "Height", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock_extended" }] } } },
{ no: 5, name: "Width", kind: "message", localName: "Width", jsonName: "Width", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock_extended" }] } } },
{ no: 6, name: "Length", kind: "message", localName: "Length", jsonName: "Length", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock_extended" }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "General information of the handling unit" } } });
}
create(value?: PartialMessage<HandlingunitInformation>): HandlingunitInformation {
const message = globalThis.Object.create((this.messagePrototype!));
message.ContainerType = "";
if (value !== undefined)
reflectionMergePartial<HandlingunitInformation>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandlingunitInformation): HandlingunitInformation {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ContainerType */ 1:
message.ContainerType = reader.string();
break;
case /* api.QuantityWeight Weight */ 2:
message.Weight = QuantityWeight.internalBinaryRead(reader, reader.uint32(), options, message.Weight);
break;
case /* api.QuantityVolume Volume */ 3:
message.Volume = QuantityVolume.internalBinaryRead(reader, reader.uint32(), options, message.Volume);
break;
case /* api.QuantityLength Height */ 4:
message.Height = QuantityLength.internalBinaryRead(reader, reader.uint32(), options, message.Height);
break;
case /* api.QuantityLength Width */ 5:
message.Width = QuantityLength.internalBinaryRead(reader, reader.uint32(), options, message.Width);
break;
case /* api.QuantityLength Length */ 6:
message.Length = QuantityLength.internalBinaryRead(reader, reader.uint32(), options, message.Length);
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: HandlingunitInformation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ContainerType = 1; */
if (message.ContainerType !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ContainerType);
/* api.QuantityWeight Weight = 2; */
if (message.Weight)
QuantityWeight.internalBinaryWrite(message.Weight, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityVolume Volume = 3; */
if (message.Volume)
QuantityVolume.internalBinaryWrite(message.Volume, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityLength Height = 4; */
if (message.Height)
QuantityLength.internalBinaryWrite(message.Height, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityLength Width = 5; */
if (message.Width)
QuantityLength.internalBinaryWrite(message.Width, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityLength Length = 6; */
if (message.Length)
QuantityLength.internalBinaryWrite(message.Length, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.HandlingunitInformation
*/
export const HandlingunitInformation = new HandlingunitInformation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StockStatus$Type extends MessageType<StockStatus> {
constructor() {
super("api.StockStatus", [
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.StockStatusCode", StockStatusCode], options: { "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } },
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } }
]);
}
create(value?: PartialMessage<StockStatus>): StockStatus {
const message = globalThis.Object.create((this.messagePrototype!));
message.StatusCode = 0;
message.Date = "";
if (value !== undefined)
reflectionMergePartial<StockStatus>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockStatus): StockStatus {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.StockStatusCode 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: StockStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.StockStatusCode 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.StockStatus
*/
export const StockStatus = new StockStatus$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StockStatusStruct$Type extends MessageType<StockStatusStruct> {
constructor() {
super("api.StockStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => StockStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StockStatus, 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" }] } } },
{ no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ },
{ no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
]);
}
create(value?: PartialMessage<StockStatusStruct>): StockStatusStruct {
const message = globalThis.Object.create((this.messagePrototype!));
message.History = [];
message.Version = 0;
message.CreationDate = "";
if (value !== undefined)
reflectionMergePartial<StockStatusStruct>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockStatusStruct): StockStatusStruct {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.StockStatus Current */ 1:
message.Current = StockStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* repeated api.StockStatus History */ 2:
message.History.push(StockStatus.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 Version */ 3:
message.Version = reader.uint32();
break;
case /* string CreationDate */ 4:
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: StockStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.StockStatus Current = 1; */
if (message.Current)
StockStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.StockStatus History = 2; */
for (let i = 0; i < message.History.length; i++)
StockStatus.internalBinaryWrite(message.History[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* uint32 Version = 3; */
if (message.Version !== 0)
writer.tag(3, WireType.Varint).uint32(message.Version);
/* string CreationDate = 4; */
if (message.CreationDate !== "")
writer.tag(4, 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.StockStatusStruct
*/
export const StockStatusStruct = new StockStatusStruct$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MovementStatus$Type extends MessageType<MovementStatus> {
constructor() {
super("api.MovementStatus", [
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.MovementStatusCode", MovementStatusCode], options: { "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } },
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } }
]);
}
create(value?: PartialMessage<MovementStatus>): MovementStatus {
const message = globalThis.Object.create((this.messagePrototype!));
message.StatusCode = 0;
message.Date = "";
if (value !== undefined)
reflectionMergePartial<MovementStatus>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MovementStatus): MovementStatus {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.MovementStatusCode 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: MovementStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.MovementStatusCode 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.MovementStatus
*/
export const MovementStatus = new MovementStatus$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MovementStatusStruct$Type extends MessageType<MovementStatusStruct> {
constructor() {
super("api.MovementStatusStruct", [
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => MovementStatus },
{ no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MovementStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } },
{ no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ },
{ no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }
]);
}
create(value?: PartialMessage<MovementStatusStruct>): MovementStatusStruct {
const message = globalThis.Object.create((this.messagePrototype!));
message.History = [];
message.Version = 0;
message.CreationDate = "";
if (value !== undefined)
reflectionMergePartial<MovementStatusStruct>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MovementStatusStruct): MovementStatusStruct {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.MovementStatus Current */ 1:
message.Current = MovementStatus.internalBinaryRead(reader, reader.uint32(), options, message.Current);
break;
case /* repeated api.MovementStatus History */ 2:
message.History.push(MovementStatus.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* uint32 Version */ 3:
message.Version = reader.uint32();
break;
case /* string CreationDate */ 4:
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: MovementStatusStruct, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.MovementStatus Current = 1; */
if (message.Current)
MovementStatus.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.MovementStatus History = 2; */
for (let i = 0; i < message.History.length; i++)
MovementStatus.internalBinaryWrite(message.History[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* uint32 Version = 3; */
if (message.Version !== 0)
writer.tag(3, WireType.Varint).uint32(message.Version);
/* string CreationDate = 4; */
if (message.CreationDate !== "")
writer.tag(4, 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.MovementStatusStruct
*/
export const MovementStatusStruct = new MovementStatusStruct$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GoodsTrackingStatus$Type extends MessageType<GoodsTrackingStatus> {
constructor() {
super("api.GoodsTrackingStatus", [
{ no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.GoodsTrackingStatusCode", GoodsTrackingStatusCode], options: { "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } },
{ no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } }
]);
}
create(value?: PartialMessage<GoodsTrackingStatus>): GoodsTrackingStatus {
const message = globalThis.Object.create((this.messagePrototype!));
message.StatusCode = 0;
message.Date = "";
if (value !== undefined)
reflectionMergePartial<GoodsTrackingStatus>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GoodsTrackingStatus): GoodsTrackingStatus {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.GoodsTrackingStatusCode 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: GoodsTrackingStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.GoodsTrackingStatusCode 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.GoodsTrackingStatus
*/
export const GoodsTrackingStatus = new GoodsTrackingStatus$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Goods$Type extends MessageType<Goods> {
constructor() {
super("api.Goods", [
{ no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } },
{ no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logitical Variant branch ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ItemID", "LVBranchID"] } } });
}
create(value?: PartialMessage<Goods>): Goods {
const message = globalThis.Object.create((this.messagePrototype!));
message.ItemID = "";
message.LVBranchID = "";
message.PriorityDate = "";
message.SegmentationKeys = [];
if (value !== undefined)
reflectionMergePartial<Goods>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Goods): Goods {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ItemID */ 1:
message.ItemID = reader.string();
break;
case /* string LVBranchID */ 2:
message.LVBranchID = reader.string();
break;
case /* string PriorityDate */ 3:
message.PriorityDate = reader.string();
break;
case /* repeated api.MetadataElement SegmentationKeys */ 4:
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
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: Goods, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ItemID = 1; */
if (message.ItemID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ItemID);
/* string LVBranchID = 2; */
if (message.LVBranchID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LVBranchID);
/* string PriorityDate = 3; */
if (message.PriorityDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.PriorityDate);
/* repeated api.MetadataElement SegmentationKeys = 4; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Goods
*/
export const Goods = new Goods$Type();
// @generated message type with reflection information, may provide speed optimized methods
class EnrichedGoods$Type extends MessageType<EnrichedGoods> {
constructor() {
super("api.EnrichedGoods", [
{ no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ 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: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ 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: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ 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: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } },
{ no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Type of goods", required: ["ItemID", "LVBranchID", "PriorityDate"] } } });
}
create(value?: PartialMessage<EnrichedGoods>): EnrichedGoods {
const message = globalThis.Object.create((this.messagePrototype!));
message.ItemID = "";
message.LVBranchID = "";
message.PriorityDate = "";
message.SegmentationKeys = [];
if (value !== undefined)
reflectionMergePartial<EnrichedGoods>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnrichedGoods): EnrichedGoods {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ItemID */ 1:
message.ItemID = reader.string();
break;
case /* string LVBranchID */ 2:
message.LVBranchID = reader.string();
break;
case /* string PriorityDate */ 3:
message.PriorityDate = reader.string();
break;
case /* repeated api.MetadataElement SegmentationKeys */ 4:
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ItemPayload Item */ 6:
message.Item = ItemPayload.internalBinaryRead(reader, reader.uint32(), options, message.Item);
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: EnrichedGoods, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ItemID = 1; */
if (message.ItemID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ItemID);
/* string LVBranchID = 2; */
if (message.LVBranchID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LVBranchID);
/* string PriorityDate = 3; */
if (message.PriorityDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.PriorityDate);
/* repeated api.MetadataElement SegmentationKeys = 4; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.ItemPayload Item = 6; */
if (message.Item)
ItemPayload.internalBinaryWrite(message.Item, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.EnrichedGoods
*/
export const EnrichedGoods = new EnrichedGoods$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RequestedEnrichedGoods$Type extends MessageType<RequestedEnrichedGoods> {
constructor() {
super("api.RequestedEnrichedGoods", [
{ no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true, ignoreEmpty: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in <a href='https://fr.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
{ no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } },
{ no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Type of goods", required: ["ItemID"] } } });
}
create(value?: PartialMessage<RequestedEnrichedGoods>): RequestedEnrichedGoods {
const message = globalThis.Object.create((this.messagePrototype!));
message.ItemID = "";
message.LVBranchID = "";
message.PriorityDate = "";
message.SegmentationKeys = [];
if (value !== undefined)
reflectionMergePartial<RequestedEnrichedGoods>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestedEnrichedGoods): RequestedEnrichedGoods {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ItemID */ 1:
message.ItemID = reader.string();
break;
case /* string LVBranchID */ 2:
message.LVBranchID = reader.string();
break;
case /* string PriorityDate */ 3:
message.PriorityDate = reader.string();
break;
case /* repeated api.MetadataElement SegmentationKeys */ 4:
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ItemPayload Item */ 6:
message.Item = ItemPayload.internalBinaryRead(reader, reader.uint32(), options, message.Item);
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: RequestedEnrichedGoods, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ItemID = 1; */
if (message.ItemID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ItemID);
/* string LVBranchID = 2; */
if (message.LVBranchID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LVBranchID);
/* string PriorityDate = 3; */
if (message.PriorityDate !== "")
writer.tag(3, WireType.LengthDelimited).string(message.PriorityDate);
/* repeated api.MetadataElement SegmentationKeys = 4; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.ItemPayload Item = 6; */
if (message.Item)
ItemPayload.internalBinaryWrite(message.Item, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.RequestedEnrichedGoods
*/
export const RequestedEnrichedGoods = new RequestedEnrichedGoods$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantifiedRequestedGoods$Type extends MessageType<QuantifiedRequestedGoods> {
constructor() {
super("api.QuantifiedRequestedGoods", [
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => RequestedEnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,soft" } },
{ no: 2, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order" } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of goods ordered with their type and quantity", required: ["Goods", "Quantity"] } } });
}
create(value?: PartialMessage<QuantifiedRequestedGoods>): QuantifiedRequestedGoods {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<QuantifiedRequestedGoods>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantifiedRequestedGoods): QuantifiedRequestedGoods {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestedEnrichedGoods Goods */ 1:
message.Goods = RequestedEnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
break;
case /* api.QuantityInLV Quantity */ 2:
message.Quantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.Quantity);
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: QuantifiedRequestedGoods, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestedEnrichedGoods Goods = 1; */
if (message.Goods)
RequestedEnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV Quantity = 2; */
if (message.Quantity)
QuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(2, 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.QuantifiedRequestedGoods
*/
export const QuantifiedRequestedGoods = new QuantifiedRequestedGoods$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantifiedGoodsByHU$Type extends MessageType<QuantifiedGoodsByHU> {
constructor() {
super("api.QuantifiedGoodsByHU", [
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } },
{ no: 2, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => GoodsTrackingStatus },
{ no: 5, name: "RequestedQuantity", kind: "message", localName: "RequestedQuantity", jsonName: "RequestedQuantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 6, name: "RequestedQuantityInBaseLV", kind: "message", localName: "RequestedQuantityInBaseLV", jsonName: "RequestedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } },
{ no: 7, name: "PreparedQuantity", kind: "message", localName: "PreparedQuantity", jsonName: "PreparedQuantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } },
{ no: 8, name: "PreparedQuantityInBaseLV", kind: "message", localName: "PreparedQuantityInBaseLV", jsonName: "PreparedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 9, name: "ReceivedQuantity", kind: "message", localName: "ReceivedQuantity", jsonName: "ReceivedQuantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } },
{ no: 10, name: "ReceivedQuantityInBaseLV", kind: "message", localName: "ReceivedQuantityInBaseLV", jsonName: "ReceivedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 11, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Goods", "HandlingunitID"] } } });
}
create(value?: PartialMessage<QuantifiedGoodsByHU>): QuantifiedGoodsByHU {
const message = globalThis.Object.create((this.messagePrototype!));
message.HandlingunitID = "";
message.TrackingID = "";
message.TrackingURL = "";
if (value !== undefined)
reflectionMergePartial<QuantifiedGoodsByHU>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantifiedGoodsByHU): QuantifiedGoodsByHU {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EnrichedGoods Goods */ 1:
message.Goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
break;
case /* string HandlingunitID */ 2:
message.HandlingunitID = reader.string();
break;
case /* string TrackingID */ 3:
message.TrackingID = reader.string();
break;
case /* api.GoodsTrackingStatus Status */ 4:
message.Status = GoodsTrackingStatus.internalBinaryRead(reader, reader.uint32(), options, message.Status);
break;
case /* api.QuantityInLV RequestedQuantity */ 5:
message.RequestedQuantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.RequestedQuantity);
break;
case /* api.QuantityInLV RequestedQuantityInBaseLV */ 6:
message.RequestedQuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.RequestedQuantityInBaseLV);
break;
case /* api.QuantityInLV PreparedQuantity */ 7:
message.PreparedQuantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.PreparedQuantity);
break;
case /* api.QuantityInLV PreparedQuantityInBaseLV */ 8:
message.PreparedQuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.PreparedQuantityInBaseLV);
break;
case /* api.QuantityInLV ReceivedQuantity */ 9:
message.ReceivedQuantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.ReceivedQuantity);
break;
case /* api.QuantityInLV ReceivedQuantityInBaseLV */ 10:
message.ReceivedQuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.ReceivedQuantityInBaseLV);
break;
case /* string TrackingURL */ 11:
message.TrackingURL = 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: QuantifiedGoodsByHU, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EnrichedGoods Goods = 1; */
if (message.Goods)
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string HandlingunitID = 2; */
if (message.HandlingunitID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.HandlingunitID);
/* string TrackingID = 3; */
if (message.TrackingID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.TrackingID);
/* api.GoodsTrackingStatus Status = 4; */
if (message.Status)
GoodsTrackingStatus.internalBinaryWrite(message.Status, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV RequestedQuantity = 5; */
if (message.RequestedQuantity)
QuantityInLV.internalBinaryWrite(message.RequestedQuantity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV RequestedQuantityInBaseLV = 6; */
if (message.RequestedQuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.RequestedQuantityInBaseLV, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV PreparedQuantity = 7; */
if (message.PreparedQuantity)
QuantityInLV.internalBinaryWrite(message.PreparedQuantity, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV PreparedQuantityInBaseLV = 8; */
if (message.PreparedQuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.PreparedQuantityInBaseLV, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV ReceivedQuantity = 9; */
if (message.ReceivedQuantity)
QuantityInLV.internalBinaryWrite(message.ReceivedQuantity, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV ReceivedQuantityInBaseLV = 10; */
if (message.ReceivedQuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.ReceivedQuantityInBaseLV, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* string TrackingURL = 11; */
if (message.TrackingURL !== "")
writer.tag(11, WireType.LengthDelimited).string(message.TrackingURL);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantifiedGoodsByHU
*/
export const QuantifiedGoodsByHU = new QuantifiedGoodsByHU$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantifiedGoodsByLine$Type extends MessageType<QuantifiedGoodsByLine> {
constructor() {
super("api.QuantifiedGoodsByLine", [
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } },
{ no: 2, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "PreparedQuantity", kind: "message", localName: "PreparedQuantity", jsonName: "PreparedQuantity", T: () => QuantityInLV, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order" } },
{ no: 4, name: "PreparedQuantityInBaseLV", kind: "message", localName: "PreparedQuantityInBaseLV", jsonName: "PreparedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow,Order" } },
{ no: 5, name: "ReceivedQuantity", kind: "message", localName: "ReceivedQuantity", jsonName: "ReceivedQuantity", T: () => QuantityInLV, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order" } },
{ no: 6, name: "ReceivedQuantityInBaseLV", kind: "message", localName: "ReceivedQuantityInBaseLV", jsonName: "ReceivedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow,Order" } },
{ no: 7, name: "IsReported", kind: "scalar", localName: "IsReported", jsonName: "IsReported", T: 8 /*ScalarType.BOOL*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Goods", "LineID"] } } });
}
create(value?: PartialMessage<QuantifiedGoodsByLine>): QuantifiedGoodsByLine {
const message = globalThis.Object.create((this.messagePrototype!));
message.LineID = "";
message.IsReported = false;
if (value !== undefined)
reflectionMergePartial<QuantifiedGoodsByLine>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantifiedGoodsByLine): QuantifiedGoodsByLine {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EnrichedGoods Goods */ 1:
message.Goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
break;
case /* string LineID */ 2:
message.LineID = reader.string();
break;
case /* api.QuantityInLV PreparedQuantity */ 3:
message.PreparedQuantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.PreparedQuantity);
break;
case /* api.QuantityInLV PreparedQuantityInBaseLV */ 4:
message.PreparedQuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.PreparedQuantityInBaseLV);
break;
case /* api.QuantityInLV ReceivedQuantity */ 5:
message.ReceivedQuantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.ReceivedQuantity);
break;
case /* api.QuantityInLV ReceivedQuantityInBaseLV */ 6:
message.ReceivedQuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.ReceivedQuantityInBaseLV);
break;
case /* bool IsReported */ 7:
message.IsReported = reader.bool();
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: QuantifiedGoodsByLine, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EnrichedGoods Goods = 1; */
if (message.Goods)
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string LineID = 2; */
if (message.LineID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.LineID);
/* api.QuantityInLV PreparedQuantity = 3; */
if (message.PreparedQuantity)
QuantityInLV.internalBinaryWrite(message.PreparedQuantity, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV PreparedQuantityInBaseLV = 4; */
if (message.PreparedQuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.PreparedQuantityInBaseLV, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV ReceivedQuantity = 5; */
if (message.ReceivedQuantity)
QuantityInLV.internalBinaryWrite(message.ReceivedQuantity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV ReceivedQuantityInBaseLV = 6; */
if (message.ReceivedQuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.ReceivedQuantityInBaseLV, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* bool IsReported = 7; */
if (message.IsReported !== false)
writer.tag(7, WireType.Varint).bool(message.IsReported);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantifiedGoodsByLine
*/
export const QuantifiedGoodsByLine = new QuantifiedGoodsByLine$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantifiedDatedGoodsByExeflow$Type extends MessageType<QuantifiedDatedGoodsByExeflow> {
constructor() {
super("api.QuantifiedDatedGoodsByExeflow", [
{ no: 8, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } },
{ no: 2, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 10, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 5, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } },
{ no: 9, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 6, name: "StockMovementGenerated", kind: "scalar", localName: "StockMovementGenerated", jsonName: "StockMovementGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 7, name: "ContentSummaryGenerated", kind: "scalar", localName: "ContentSummaryGenerated", jsonName: "ContentSummaryGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["DateTime", "Goods", "ExecutionflowID", "LineID", "ActorID", "Quantity"] } } });
}
create(value?: PartialMessage<QuantifiedDatedGoodsByExeflow>): QuantifiedDatedGoodsByExeflow {
const message = globalThis.Object.create((this.messagePrototype!));
message.ExecutionflowID = "";
message.LineID = "";
message.OrderID = "";
message.ActorID = "";
message.StockMovementGenerated = false;
message.ContentSummaryGenerated = false;
if (value !== undefined)
reflectionMergePartial<QuantifiedDatedGoodsByExeflow>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantifiedDatedGoodsByExeflow): QuantifiedDatedGoodsByExeflow {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime DateTime */ 8:
message.DateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.DateTime);
break;
case /* api.EnrichedGoods Goods */ 1:
message.Goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
break;
case /* string ExecutionflowID */ 2:
message.ExecutionflowID = reader.string();
break;
case /* string LineID */ 3:
message.LineID = reader.string();
break;
case /* string OrderID */ 10:
message.OrderID = reader.string();
break;
case /* string ActorID */ 4:
message.ActorID = reader.string();
break;
case /* api.QuantityInLV Quantity */ 5:
message.Quantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.Quantity);
break;
case /* api.QuantityInLV QuantityInBaseLV */ 9:
message.QuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.QuantityInBaseLV);
break;
case /* bool StockMovementGenerated */ 6:
message.StockMovementGenerated = reader.bool();
break;
case /* bool ContentSummaryGenerated */ 7:
message.ContentSummaryGenerated = reader.bool();
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: QuantifiedDatedGoodsByExeflow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EnrichedGoods Goods = 1; */
if (message.Goods)
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ExecutionflowID = 2; */
if (message.ExecutionflowID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ExecutionflowID);
/* string LineID = 3; */
if (message.LineID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LineID);
/* string ActorID = 4; */
if (message.ActorID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorID);
/* api.QuantityInLV Quantity = 5; */
if (message.Quantity)
QuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* bool StockMovementGenerated = 6; */
if (message.StockMovementGenerated !== false)
writer.tag(6, WireType.Varint).bool(message.StockMovementGenerated);
/* bool ContentSummaryGenerated = 7; */
if (message.ContentSummaryGenerated !== false)
writer.tag(7, WireType.Varint).bool(message.ContentSummaryGenerated);
/* api.DateTime DateTime = 8; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV QuantityInBaseLV = 9; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* string OrderID = 10; */
if (message.OrderID !== "")
writer.tag(10, WireType.LengthDelimited).string(message.OrderID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantifiedDatedGoodsByExeflow
*/
export const QuantifiedDatedGoodsByExeflow = new QuantifiedDatedGoodsByExeflow$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantifiedGoodsByExeflow$Type extends MessageType<QuantifiedGoodsByExeflow> {
constructor() {
super("api.QuantifiedGoodsByExeflow", [
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } },
{ no: 2, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 5, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } },
{ no: 8, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 6, name: "StockMovementGenerated", kind: "scalar", localName: "StockMovementGenerated", jsonName: "StockMovementGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 7, name: "ContentSummaryGenerated", kind: "scalar", localName: "ContentSummaryGenerated", jsonName: "ContentSummaryGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 9, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content of the handling unit", required: ["Goods", "ExecutionflowID", "LineID", "ActorID", "Quantity"] } } });
}
create(value?: PartialMessage<QuantifiedGoodsByExeflow>): QuantifiedGoodsByExeflow {
const message = globalThis.Object.create((this.messagePrototype!));
message.ExecutionflowID = "";
message.LineID = "";
message.ActorID = "";
message.StockMovementGenerated = false;
message.ContentSummaryGenerated = false;
message.OrderID = "";
if (value !== undefined)
reflectionMergePartial<QuantifiedGoodsByExeflow>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantifiedGoodsByExeflow): QuantifiedGoodsByExeflow {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EnrichedGoods Goods */ 1:
message.Goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
break;
case /* string ExecutionflowID */ 2:
message.ExecutionflowID = reader.string();
break;
case /* string LineID */ 3:
message.LineID = reader.string();
break;
case /* string ActorID */ 4:
message.ActorID = reader.string();
break;
case /* api.QuantityInLV Quantity */ 5:
message.Quantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.Quantity);
break;
case /* api.QuantityInLV QuantityInBaseLV */ 8:
message.QuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.QuantityInBaseLV);
break;
case /* bool StockMovementGenerated */ 6:
message.StockMovementGenerated = reader.bool();
break;
case /* bool ContentSummaryGenerated */ 7:
message.ContentSummaryGenerated = reader.bool();
break;
case /* string OrderID */ 9:
message.OrderID = 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: QuantifiedGoodsByExeflow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EnrichedGoods Goods = 1; */
if (message.Goods)
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ExecutionflowID = 2; */
if (message.ExecutionflowID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ExecutionflowID);
/* string LineID = 3; */
if (message.LineID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LineID);
/* string ActorID = 4; */
if (message.ActorID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorID);
/* api.QuantityInLV Quantity = 5; */
if (message.Quantity)
QuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* bool StockMovementGenerated = 6; */
if (message.StockMovementGenerated !== false)
writer.tag(6, WireType.Varint).bool(message.StockMovementGenerated);
/* bool ContentSummaryGenerated = 7; */
if (message.ContentSummaryGenerated !== false)
writer.tag(7, WireType.Varint).bool(message.ContentSummaryGenerated);
/* api.QuantityInLV QuantityInBaseLV = 8; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
/* string OrderID = 9; */
if (message.OrderID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.OrderID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantifiedGoodsByExeflow
*/
export const QuantifiedGoodsByExeflow = new QuantifiedGoodsByExeflow$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityByLV$Type extends MessageType<QuantityByLV> {
constructor() {
super("api.QuantityByLV", [
{ no: 1, 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.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 3, name: "Quantity", kind: "scalar", localName: "Quantity", jsonName: "Quantity", T: 2 /*ScalarType.FLOAT*/ },
{ no: 4, name: "Priority", kind: "scalar", localName: "Priority", jsonName: "Priority", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["LVID"] } } });
}
create(value?: PartialMessage<QuantityByLV>): QuantityByLV {
const message = globalThis.Object.create((this.messagePrototype!));
message.LVID = "";
message.LVName = "";
message.Quantity = 0;
message.Priority = "";
if (value !== undefined)
reflectionMergePartial<QuantityByLV>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityByLV): QuantityByLV {
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;
case /* string Priority */ 4:
message.Priority = 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: QuantityByLV, 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);
/* string Priority = 4; */
if (message.Priority !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Priority);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.QuantityByLV
*/
export const QuantityByLV = new QuantityByLV$Type();
// @generated message type with reflection information, may provide speed optimized methods
class QuantityInLV$Type extends MessageType<QuantityInLV> {
constructor() {
super("api.QuantityInLV", [
{ no: 1, 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,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } },
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { gte: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "10.5" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Nullable(Decimal64(6)))" }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["LVID"] } } });
}
create(value?: PartialMessage<QuantityInLV>): QuantityInLV {
const message = globalThis.Object.create((this.messagePrototype!));
message.LVID = "";
message.LVName = "";
message.Value = 0;
if (value !== undefined)
reflectionMergePartial<QuantityInLV>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuantityInLV): QuantityInLV {
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 Value */ 3:
message.Value = 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: QuantityInLV, 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 Value = 3; */
if (message.Value !== 0)
writer.tag(3, WireType.Bit32).float(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.QuantityInLV
*/
export const QuantityInLV = new QuantityInLV$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StockSnapshot$Type extends MessageType<StockSnapshot> {
constructor() {
super("api.StockSnapshot", [
{ no: 6, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 4, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } },
{ no: 5, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 7, name: "IsTotalQuantity", kind: "scalar", localName: "IsTotalQuantity", jsonName: "IsTotalQuantity", T: 8 /*ScalarType.BOOL*/, options: { "validate.rules": { bool: { unauthorized: false } } } },
{ no: 8, name: "PartialQuantities", kind: "scalar", localName: "PartialQuantities", jsonName: "PartialQuantities", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 9, name: "PreviousQuantityInBaseLV", kind: "message", localName: "PreviousQuantityInBaseLV", jsonName: "PreviousQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Quantity"] } } });
}
create(value?: PartialMessage<StockSnapshot>): StockSnapshot {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.IsTotalQuantity = false;
message.PartialQuantities = [];
if (value !== undefined)
reflectionMergePartial<StockSnapshot>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockSnapshot): StockSnapshot {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime DateTime */ 6:
message.DateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.DateTime);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
case /* api.QuantityInLV Quantity */ 4:
message.Quantity = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.Quantity);
break;
case /* api.QuantityInLV QuantityInBaseLV */ 5:
message.QuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.QuantityInBaseLV);
break;
case /* bool IsTotalQuantity */ 7:
message.IsTotalQuantity = reader.bool();
break;
case /* repeated float PartialQuantities */ 8:
if (wireType === WireType.LengthDelimited)
for (let e = reader.int32() + reader.pos; reader.pos < e;)
message.PartialQuantities.push(reader.float());
else
message.PartialQuantities.push(reader.float());
break;
case /* api.QuantityInLV PreviousQuantityInBaseLV */ 9:
message.PreviousQuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.PreviousQuantityInBaseLV);
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: StockSnapshot, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
/* api.QuantityInLV Quantity = 4; */
if (message.Quantity)
QuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.QuantityInLV QuantityInBaseLV = 5; */
if (message.QuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.DateTime DateTime = 6; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* bool IsTotalQuantity = 7; */
if (message.IsTotalQuantity !== false)
writer.tag(7, WireType.Varint).bool(message.IsTotalQuantity);
/* repeated float PartialQuantities = 8; */
if (message.PartialQuantities.length) {
writer.tag(8, WireType.LengthDelimited).fork();
for (let i = 0; i < message.PartialQuantities.length; i++)
writer.float(message.PartialQuantities[i]);
writer.join();
}
/* api.QuantityInLV PreviousQuantityInBaseLV = 9; */
if (message.PreviousQuantityInBaseLV)
QuantityInLV.internalBinaryWrite(message.PreviousQuantityInBaseLV, writer.tag(9, 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.StockSnapshot
*/
export const StockSnapshot = new StockSnapshot$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StockMovementClaim$Type extends MessageType<StockMovementClaim> {
constructor() {
super("api.StockMovementClaim", [
{ no: 1, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims added per type" }, "api.aggKey": "ClaimTypeID" } },
{ no: 2, 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: "Identifier of the stock move" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
]);
}
create(value?: PartialMessage<StockMovementClaim>): StockMovementClaim {
const message = globalThis.Object.create((this.messagePrototype!));
message.Claims = [];
message.ID = "";
if (value !== undefined)
reflectionMergePartial<StockMovementClaim>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockMovementClaim): StockMovementClaim {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.ClaimSummary Claims */ 1:
message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ID */ 2:
message.ID = 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: StockMovementClaim, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.ClaimSummary Claims = 1; */
for (let i = 0; i < message.Claims.length; i++)
ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.StockMovementClaim
*/
export const StockMovementClaim = new StockMovementClaim$Type();
// @generated message type with reflection information, may provide speed optimized methods
class StockMovement$Type extends MessageType<StockMovement> {
constructor() {
super("api.StockMovement", [
{ no: 1, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "ClaimAdded", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.StockMovementTypeCode", StockMovementTypeCode], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Codes used in StockMovementReason to explain stock movement" }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 4, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 17, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 5, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 6, name: "ExecutionflowLineID", kind: "scalar", localName: "ExecutionflowLineID", jsonName: "ExecutionflowLineID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 8, name: "OperationReference", kind: "scalar", localName: "OperationReference", jsonName: "OperationReference", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 9, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => MovementQuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } },
{ no: 10, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => MovementQuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } },
{ no: 11, name: "MvtAlreadyUsedInStock", kind: "scalar", localName: "MvtAlreadyUsedInStock", jsonName: "MvtAlreadyUsedInStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 12, name: "QuantityByLVs", kind: "message", localName: "QuantityByLVs", jsonName: "QuantityByLVs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }] } } },
{ no: 13, name: "LVDetailledQuantity", kind: "scalar", localName: "LVDetailledQuantity", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
{ no: 14, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 15, name: "ExternalMoveRef", kind: "scalar", localName: "ExternalMoveRef", jsonName: "ExternalMoveRef", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 16, name: "ExternalInfo", kind: "scalar", localName: "ExternalInfo", jsonName: "ExternalInfo", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["DateTime", "Quantity"] } } });
}
create(value?: PartialMessage<StockMovement>): StockMovement {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Type = 0;
message.HandlingunitID = "";
message.OrderID = "";
message.ExecutionflowID = "";
message.ExecutionflowLineID = "";
message.Reason = "";
message.OperationReference = "";
message.MvtAlreadyUsedInStock = false;
message.QuantityByLVs = [];
message.LVDetailledQuantity = "";
message.Author = "";
message.ExternalMoveRef = "";
message.ExternalInfo = "";
if (value !== undefined)
reflectionMergePartial<StockMovement>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StockMovement): StockMovement {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.DateTime DateTime */ 1:
message.DateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.DateTime);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
case /* api.StockMovementTypeCode Type */ 3:
message.Type = reader.int32();
break;
case /* string HandlingunitID */ 4:
message.HandlingunitID = reader.string();
break;
case /* string OrderID */ 17:
message.OrderID = reader.string();
break;
case /* string ExecutionflowID */ 5:
message.ExecutionflowID = reader.string();
break;
case /* string ExecutionflowLineID */ 6:
message.ExecutionflowLineID = reader.string();
break;
case /* string Reason */ 7:
message.Reason = reader.string();
break;
case /* string OperationReference */ 8:
message.OperationReference = reader.string();
break;
case /* api.MovementQuantityInLV Quantity */ 9:
message.Quantity = MovementQuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.Quantity);
break;
case /* api.MovementQuantityInLV QuantityInBaseLV */ 10:
message.QuantityInBaseLV = MovementQuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.QuantityInBaseLV);
break;
case /* bool MvtAlreadyUsedInStock */ 11:
message.MvtAlreadyUsedInStock = reader.bool();
break;
case /* repeated api.QuantityByLV QuantityByLVs */ 12:
message.QuantityByLVs.push(QuantityByLV.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string LVDetailledQuantity */ 13:
message.LVDetailledQuantity = reader.string();
break;
case /* string Author */ 14:
message.Author = reader.string();
break;
case /* string ExternalMoveRef */ 15:
message.ExternalMoveRef = reader.string();
break;
case /* string ExternalInfo */ 16:
message.ExternalInfo = 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: StockMovement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.DateTime DateTime = 1; */
if (message.DateTime)
DateTime.internalBinaryWrite(message.DateTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
/* api.StockMovementTypeCode Type = 3; */
if (message.Type !== 0)
writer.tag(3, WireType.Varint).int32(message.Type);
/* string HandlingunitID = 4; */
if (message.HandlingunitID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.HandlingunitID);
/* string ExecutionflowID = 5; */
if (message.ExecutionflowID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ExecutionflowID);
/* string ExecutionflowLineID = 6; */
if (message.ExecutionflowLineID !== "")
writer.tag(6, WireType.LengthDelimited).string(message.ExecutionflowLineID);
/* string Reason = 7; */
if (message.Reason !== "")
writer.tag(7, WireType.LengthDelimited).string(message.Reason);
/* string OperationReference = 8; */
if (message.OperationReference !== "")
writer.tag(8, WireType.LengthDelimited).string(message.OperationReference);
/* api.MovementQuantityInLV Quantity = 9; */
if (message.Quantity)
MovementQuantityInLV.internalBinaryWrite(message.Quantity, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* api.MovementQuantityInLV QuantityInBaseLV = 10; */
if (message.QuantityInBaseLV)
MovementQuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
/* bool MvtAlreadyUsedInStock = 11; */
if (message.MvtAlreadyUsedInStock !== false)
writer.tag(11, WireType.Varint).bool(message.MvtAlreadyUsedInStock);
/* repeated api.QuantityByLV QuantityByLVs = 12; */
for (let i = 0; i < message.QuantityByLVs.length; i++)
QuantityByLV.internalBinaryWrite(message.QuantityByLVs[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
/* string LVDetailledQuantity = 13; */
if (message.LVDetailledQuantity !== "")
writer.tag(13, WireType.LengthDelimited).string(message.LVDetailledQuantity);
/* string Author = 14; */
if (message.Author !== "")
writer.tag(14, WireType.LengthDelimited).string(message.Author);
/* string ExternalMoveRef = 15; */
if (message.ExternalMoveRef !== "")
writer.tag(15, WireType.LengthDelimited).string(message.ExternalMoveRef);
/* string ExternalInfo = 16; */
if (message.ExternalInfo !== "")
writer.tag(16, WireType.LengthDelimited).string(message.ExternalInfo);
/* string OrderID = 17; */
if (message.OrderID !== "")
writer.tag(17, WireType.LengthDelimited).string(message.OrderID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.StockMovement
*/
export const StockMovement = new StockMovement$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MovementQuantityInLV$Type extends MessageType<MovementQuantityInLV> {
constructor() {
super("api.MovementQuantityInLV", [
{ no: 1, 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": "Stock,Executionflow", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
{ no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] } } },
{ no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { notIn: [0] } }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["LVID"] } } });
}
create(value?: PartialMessage<MovementQuantityInLV>): MovementQuantityInLV {
const message = globalThis.Object.create((this.messagePrototype!));
message.LVID = "";
message.LVName = "";
message.Value = 0;
if (value !== undefined)
reflectionMergePartial<MovementQuantityInLV>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MovementQuantityInLV): MovementQuantityInLV {
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 Value */ 3:
message.Value = 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: MovementQuantityInLV, 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 Value = 3; */
if (message.Value !== 0)
writer.tag(3, WireType.Bit32).float(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.MovementQuantityInLV
*/
export const MovementQuantityInLV = new MovementQuantityInLV$Type();