You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260402135034",
|
||||
"version": "1.13.0-SNAPSHOT-260407083041",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
9
site.ts
9
site.ts
@@ -315,7 +315,8 @@ export interface UpdateSettingsRequest {
|
||||
*/
|
||||
Authorisations: ProjectAuthorisation[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Unit Units = 11
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.Unit Units = 11 [deprecated = true]
|
||||
*/
|
||||
Units: Unit[]; // List of containment units which will be used to compute the appointment duration. At least one unit id is mandatory : APPOINTMENT_UNITID.
|
||||
/**
|
||||
@@ -2022,7 +2023,7 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
|
||||
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } },
|
||||
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
|
||||
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit },
|
||||
{ no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule },
|
||||
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
|
||||
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
|
||||
@@ -2084,7 +2085,7 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
|
||||
case /* repeated api.ProjectAuthorisation Authorisations */ 10:
|
||||
message.Authorisations.push(ProjectAuthorisation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Unit Units */ 11:
|
||||
case /* repeated api.Unit Units = 11 [deprecated = true] */ 11:
|
||||
message.Units.push(Unit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.OpeningRule OpeningRules */ 12:
|
||||
@@ -2150,7 +2151,7 @@ class UpdateSettingsRequest$Type extends MessageType<UpdateSettingsRequest> {
|
||||
/* repeated api.ProjectAuthorisation Authorisations = 10; */
|
||||
for (let i = 0; i < message.Authorisations.length; i++)
|
||||
ProjectAuthorisation.internalBinaryWrite(message.Authorisations[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Unit Units = 11; */
|
||||
/* repeated api.Unit Units = 11 [deprecated = true]; */
|
||||
for (let i = 0; i < message.Units.length; i++)
|
||||
Unit.internalBinaryWrite(message.Units[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.OpeningRule OpeningRules = 12; */
|
||||
|
||||
@@ -10,6 +10,7 @@ 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 { MetadataElement } from "./shared";
|
||||
import { Period } from "./shared";
|
||||
import { TimeRange } from "./shared";
|
||||
import { WeekDay } from "./shared";
|
||||
@@ -550,7 +551,8 @@ export interface AppointmentCommission {
|
||||
*/
|
||||
ExecutionflowID: string; // ID of the executionflow, might be null for standalone.
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 [deprecated = true]
|
||||
*/
|
||||
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
|
||||
/**
|
||||
@@ -565,6 +567,12 @@ export interface AppointmentCommission {
|
||||
* @generated from protobuf field: string ActorID = 7
|
||||
*/
|
||||
ActorID: string; // ID of the actorID which linked the site on the project commission
|
||||
/**
|
||||
* Unit quantities
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement UnitQuantities = 8
|
||||
*/
|
||||
UnitQuantities: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentContent
|
||||
@@ -575,9 +583,16 @@ export interface AppointmentContent {
|
||||
*/
|
||||
Projects: AppointmentProjectContent[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 2
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 2 [deprecated = true]
|
||||
*/
|
||||
TotalQuantities: QuantityByUnit[];
|
||||
/**
|
||||
* Unit quantities
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement UnitQuantities = 3
|
||||
*/
|
||||
UnitQuantities: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentProjectContent
|
||||
@@ -592,9 +607,16 @@ export interface AppointmentProjectContent {
|
||||
*/
|
||||
Commissions: AppointmentCommission[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit ProjectQuantities = 3
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit ProjectQuantities = 3 [deprecated = true]
|
||||
*/
|
||||
ProjectQuantities: QuantityByUnit[];
|
||||
/**
|
||||
* Unit quantities
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement UnitQuantities = 4
|
||||
*/
|
||||
UnitQuantities: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.Commission
|
||||
@@ -613,7 +635,8 @@ export interface Commission {
|
||||
*/
|
||||
ExecutionflowID: string; // ID of the executionflow, might be null for standalone.
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3 [deprecated = true]
|
||||
*/
|
||||
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
|
||||
/**
|
||||
@@ -2339,7 +2362,8 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
{ no: 3, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
||||
{ no: 4, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }
|
||||
{ no: 7, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 8, name: "UnitQuantities", kind: "message", localName: "UnitQuantities", jsonName: "UnitQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unit quantities metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Appointment,Payload.Loading.UnitQuantities,hard", "api.parentEntity": "Appointment" } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommission>): AppointmentCommission {
|
||||
@@ -2351,6 +2375,7 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
message.OrganisationID = "";
|
||||
message.PartnerAppID = "";
|
||||
message.ActorID = "";
|
||||
message.UnitQuantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCommission>(this, message, value);
|
||||
return message;
|
||||
@@ -2369,7 +2394,7 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
case /* string ExecutionflowID */ 6:
|
||||
message.ExecutionflowID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities */ 3:
|
||||
case /* repeated api.QuantityByUnit Quantities = 3 [deprecated = true] */ 3:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string OrganisationID */ 4:
|
||||
@@ -2381,6 +2406,9 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
case /* string ActorID */ 7:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* repeated api.MetadataElement UnitQuantities */ 8:
|
||||
message.UnitQuantities.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2399,7 +2427,7 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
/* string OrderID = 2; */
|
||||
if (message.OrderID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.OrderID);
|
||||
/* repeated api.QuantityByUnit Quantities = 3; */
|
||||
/* repeated api.QuantityByUnit Quantities = 3 [deprecated = true]; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string OrganisationID = 4; */
|
||||
@@ -2414,6 +2442,9 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
/* string ActorID = 7; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* repeated api.MetadataElement UnitQuantities = 8; */
|
||||
for (let i = 0; i < message.UnitQuantities.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.UnitQuantities[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2429,13 +2460,15 @@ class AppointmentContent$Type extends MessageType<AppointmentContent> {
|
||||
constructor() {
|
||||
super("api.AppointmentContent", [
|
||||
{ no: 1, name: "Projects", kind: "message", localName: "Projects", jsonName: "Projects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentProjectContent, options: { "api.aggKey": "ProjectID" } },
|
||||
{ no: 2, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
|
||||
{ no: 2, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
||||
{ no: 3, name: "UnitQuantities", kind: "message", localName: "UnitQuantities", jsonName: "UnitQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unit quantities metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Appointment,Payload.Loading.UnitQuantities,hard", "api.parentEntity": "Appointment" } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentContent>): AppointmentContent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Projects = [];
|
||||
message.TotalQuantities = [];
|
||||
message.UnitQuantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentContent>(this, message, value);
|
||||
return message;
|
||||
@@ -2448,9 +2481,12 @@ class AppointmentContent$Type extends MessageType<AppointmentContent> {
|
||||
case /* repeated api.AppointmentProjectContent Projects */ 1:
|
||||
message.Projects.push(AppointmentProjectContent.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit TotalQuantities */ 2:
|
||||
case /* repeated api.QuantityByUnit TotalQuantities = 2 [deprecated = true] */ 2:
|
||||
message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.MetadataElement UnitQuantities */ 3:
|
||||
message.UnitQuantities.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2466,9 +2502,12 @@ class AppointmentContent$Type extends MessageType<AppointmentContent> {
|
||||
/* repeated api.AppointmentProjectContent Projects = 1; */
|
||||
for (let i = 0; i < message.Projects.length; i++)
|
||||
AppointmentProjectContent.internalBinaryWrite(message.Projects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByUnit TotalQuantities = 2; */
|
||||
/* repeated api.QuantityByUnit TotalQuantities = 2 [deprecated = true]; */
|
||||
for (let i = 0; i < message.TotalQuantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MetadataElement UnitQuantities = 3; */
|
||||
for (let i = 0; i < message.UnitQuantities.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.UnitQuantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2484,8 +2523,9 @@ class AppointmentProjectContent$Type extends MessageType<AppointmentProjectConte
|
||||
constructor() {
|
||||
super("api.AppointmentProjectContent", [
|
||||
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
||||
{ no: 3, name: "ProjectQuantities", kind: "message", localName: "ProjectQuantities", jsonName: "ProjectQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission, options: { "api.kpiExclude": { Items: [{ Context: "Appointment", Group: "appointment" }] } } },
|
||||
{ no: 3, name: "ProjectQuantities", kind: "message", localName: "ProjectQuantities", jsonName: "ProjectQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
||||
{ no: 4, name: "UnitQuantities", kind: "message", localName: "UnitQuantities", jsonName: "UnitQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unit quantities metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Appointment,Payload.Loading.UnitQuantities,hard", "api.parentEntity": "Appointment" } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentProjectContent>): AppointmentProjectContent {
|
||||
@@ -2493,6 +2533,7 @@ class AppointmentProjectContent$Type extends MessageType<AppointmentProjectConte
|
||||
message.ProjectID = "";
|
||||
message.Commissions = [];
|
||||
message.ProjectQuantities = [];
|
||||
message.UnitQuantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentProjectContent>(this, message, value);
|
||||
return message;
|
||||
@@ -2508,9 +2549,12 @@ class AppointmentProjectContent$Type extends MessageType<AppointmentProjectConte
|
||||
case /* repeated api.AppointmentCommission Commissions */ 2:
|
||||
message.Commissions.push(AppointmentCommission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit ProjectQuantities */ 3:
|
||||
case /* repeated api.QuantityByUnit ProjectQuantities = 3 [deprecated = true] */ 3:
|
||||
message.ProjectQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.MetadataElement UnitQuantities */ 4:
|
||||
message.UnitQuantities.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2529,9 +2573,12 @@ class AppointmentProjectContent$Type extends MessageType<AppointmentProjectConte
|
||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByUnit ProjectQuantities = 3; */
|
||||
/* repeated api.QuantityByUnit ProjectQuantities = 3 [deprecated = true]; */
|
||||
for (let i = 0; i < message.ProjectQuantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.ProjectQuantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MetadataElement UnitQuantities = 4; */
|
||||
for (let i = 0; i < message.UnitQuantities.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.UnitQuantities[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);
|
||||
@@ -2578,7 +2625,7 @@ class Commission$Type extends MessageType<Commission> {
|
||||
case /* string ExecutionflowID */ 5:
|
||||
message.ExecutionflowID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities */ 3:
|
||||
case /* repeated api.QuantityByUnit Quantities = 3 [deprecated = true] */ 3:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string ActorID */ 4:
|
||||
@@ -2602,7 +2649,7 @@ class Commission$Type extends MessageType<Commission> {
|
||||
/* string OrderID = 2; */
|
||||
if (message.OrderID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.OrderID);
|
||||
/* repeated api.QuantityByUnit Quantities = 3; */
|
||||
/* repeated api.QuantityByUnit Quantities = 3 [deprecated = true]; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ActorID = 4; */
|
||||
|
||||
Reference in New Issue
Block a user