You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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 { ClaimSummary } from "./shared";
|
||||
import { AppointmentContent } from "./slotbooking";
|
||||
import { Address } from "./repositoryShared";
|
||||
import { AttachmentSummary } from "./shared";
|
||||
@@ -208,6 +209,14 @@ export interface AppointmentPayload {
|
||||
* @generated from protobuf field: api.AppointmentExternalAccess ExternalAccess = 32
|
||||
*/
|
||||
ExternalAccess?: AppointmentExternalAccess; // Carries the hash and signed URL granting external parties access to this appointment without the need to authenticate
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimSummary Claims = 33
|
||||
*/
|
||||
Claims: ClaimSummary[];
|
||||
/**
|
||||
* @generated from protobuf field: int32 ClaimNumber = 34
|
||||
*/
|
||||
ClaimNumber: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentTriplet
|
||||
@@ -332,7 +341,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
{ no: 27, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Attendees of the appointment" }, "api.aggSkip": "AttendeesAdded", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||
{ no: 28, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AttendeesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } },
|
||||
{ no: 31, name: "WMSCreated", kind: "scalar", localName: "WMSCreated", jsonName: "WMSCreated", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 32, name: "ExternalAccess", kind: "message", localName: "ExternalAccess", jsonName: "ExternalAccess", T: () => AppointmentExternalAccess }
|
||||
{ no: 32, name: "ExternalAccess", kind: "message", localName: "ExternalAccess", jsonName: "ExternalAccess", T: () => AppointmentExternalAccess },
|
||||
{ no: 33, 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 per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded" } },
|
||||
{ no: 34, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
|
||||
@@ -356,6 +367,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
message.Attendees = [];
|
||||
message.RemovedAttendees = [];
|
||||
message.WMSCreated = false;
|
||||
message.Claims = [];
|
||||
message.ClaimNumber = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -443,6 +456,12 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
case /* api.AppointmentExternalAccess ExternalAccess */ 32:
|
||||
message.ExternalAccess = AppointmentExternalAccess.internalBinaryRead(reader, reader.uint32(), options, message.ExternalAccess);
|
||||
break;
|
||||
case /* repeated api.ClaimSummary Claims */ 33:
|
||||
message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* int32 ClaimNumber */ 34:
|
||||
message.ClaimNumber = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -533,6 +552,12 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* api.AppointmentExternalAccess ExternalAccess = 32; */
|
||||
if (message.ExternalAccess)
|
||||
AppointmentExternalAccess.internalBinaryWrite(message.ExternalAccess, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ClaimSummary Claims = 33; */
|
||||
for (let i = 0; i < message.Claims.length; i++)
|
||||
ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(33, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int32 ClaimNumber = 34; */
|
||||
if (message.ClaimNumber !== 0)
|
||||
writer.tag(34, WireType.Varint).int32(message.ClaimNumber);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user