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 { ActorAuthorisation } from "./slotbooking";
|
||||
import { SiteAlias } from "./repositoryShared";
|
||||
import { EntityID } from "./shared";
|
||||
import { CommandHeader } from "./shared";
|
||||
@@ -74,6 +75,10 @@ export interface ActorSetSiteAliasPayload {
|
||||
* @generated from protobuf field: bool IsSlotBookingEnabled = 2
|
||||
*/
|
||||
IsSlotBookingEnabled: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: api.ActorAuthorisation AppointmentConstraints = 3
|
||||
*/
|
||||
AppointmentConstraints?: ActorAuthorisation;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ActorSetSiteAlias
|
||||
@@ -258,7 +263,8 @@ class ActorSetSiteAliasPayload$Type extends MessageType<ActorSetSiteAliasPayload
|
||||
constructor() {
|
||||
super("api.ActorSetSiteAliasPayload", [
|
||||
{ no: 1, name: "SiteAlias", kind: "message", localName: "SiteAlias", jsonName: "SiteAlias", T: () => SiteAlias },
|
||||
{ no: 2, name: "IsSlotBookingEnabled", kind: "scalar", localName: "IsSlotBookingEnabled", jsonName: "IsSlotBookingEnabled", T: 8 /*ScalarType.BOOL*/ }
|
||||
{ no: 2, name: "IsSlotBookingEnabled", kind: "scalar", localName: "IsSlotBookingEnabled", jsonName: "IsSlotBookingEnabled", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 3, name: "AppointmentConstraints", kind: "message", localName: "AppointmentConstraints", jsonName: "AppointmentConstraints", T: () => ActorAuthorisation }
|
||||
], { "api.messageType": "Command", "api.payload": true, "api.action": "SetSiteAlias" });
|
||||
}
|
||||
create(value?: PartialMessage<ActorSetSiteAliasPayload>): ActorSetSiteAliasPayload {
|
||||
@@ -279,6 +285,9 @@ class ActorSetSiteAliasPayload$Type extends MessageType<ActorSetSiteAliasPayload
|
||||
case /* bool IsSlotBookingEnabled */ 2:
|
||||
message.IsSlotBookingEnabled = reader.bool();
|
||||
break;
|
||||
case /* api.ActorAuthorisation AppointmentConstraints */ 3:
|
||||
message.AppointmentConstraints = ActorAuthorisation.internalBinaryRead(reader, reader.uint32(), options, message.AppointmentConstraints);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -297,6 +306,9 @@ class ActorSetSiteAliasPayload$Type extends MessageType<ActorSetSiteAliasPayload
|
||||
/* bool IsSlotBookingEnabled = 2; */
|
||||
if (message.IsSlotBookingEnabled !== false)
|
||||
writer.tag(2, WireType.Varint).bool(message.IsSlotBookingEnabled);
|
||||
/* api.ActorAuthorisation AppointmentConstraints = 3; */
|
||||
if (message.AppointmentConstraints)
|
||||
ActorAuthorisation.internalBinaryWrite(message.AppointmentConstraints, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user