You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -204,6 +204,10 @@ export interface AppointmentPayload {
|
||||
* @generated from protobuf field: bool WMSCreated = 31
|
||||
*/
|
||||
WMSCreated: boolean;
|
||||
/**
|
||||
* @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 message api.AppointmentTriplet
|
||||
@@ -222,6 +226,19 @@ export interface AppointmentTriplet {
|
||||
*/
|
||||
LastEvent?: Appointment;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentExternalAccess
|
||||
*/
|
||||
export interface AppointmentExternalAccess {
|
||||
/**
|
||||
* @generated from protobuf field: string Hash = 1
|
||||
*/
|
||||
Hash: string; // Unique hash derived from siteID and aptID, used as a stable identifier across URLs
|
||||
/**
|
||||
* @generated from protobuf field: string URL = 2
|
||||
*/
|
||||
URL: string; // Signed TinyURL embedding a JWT; external clients resolve this URL to authenticate and call the appointment public APIs
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Appointment$Type extends MessageType<Appointment> {
|
||||
constructor() {
|
||||
@@ -310,7 +327,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
{ no: 26, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||
{ 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: 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 }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
|
||||
@@ -418,6 +436,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
case /* bool WMSCreated */ 31:
|
||||
message.WMSCreated = reader.bool();
|
||||
break;
|
||||
case /* api.AppointmentExternalAccess ExternalAccess */ 32:
|
||||
message.ExternalAccess = AppointmentExternalAccess.internalBinaryRead(reader, reader.uint32(), options, message.ExternalAccess);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -505,6 +526,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* bool WMSCreated = 31; */
|
||||
if (message.WMSCreated !== false)
|
||||
writer.tag(31, WireType.Varint).bool(message.WMSCreated);
|
||||
/* api.AppointmentExternalAccess ExternalAccess = 32; */
|
||||
if (message.ExternalAccess)
|
||||
AppointmentExternalAccess.internalBinaryWrite(message.ExternalAccess, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -575,3 +599,58 @@ class AppointmentTriplet$Type extends MessageType<AppointmentTriplet> {
|
||||
* @generated MessageType for protobuf message api.AppointmentTriplet
|
||||
*/
|
||||
export const AppointmentTriplet = new AppointmentTriplet$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentExternalAccess$Type extends MessageType<AppointmentExternalAccess> {
|
||||
constructor() {
|
||||
super("api.AppointmentExternalAccess", [
|
||||
{ no: 1, name: "Hash", kind: "scalar", localName: "Hash", jsonName: "Hash", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentExternalAccess>): AppointmentExternalAccess {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Hash = "";
|
||||
message.URL = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentExternalAccess>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExternalAccess): AppointmentExternalAccess {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string Hash */ 1:
|
||||
message.Hash = reader.string();
|
||||
break;
|
||||
case /* string URL */ 2:
|
||||
message.URL = 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: AppointmentExternalAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Hash = 1; */
|
||||
if (message.Hash !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.Hash);
|
||||
/* string URL = 2; */
|
||||
if (message.URL !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.URL);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AppointmentExternalAccess
|
||||
*/
|
||||
export const AppointmentExternalAccess = new AppointmentExternalAccess$Type();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.14.0-SNAPSHOT-260601080932",
|
||||
"version": "1.14.0-SNAPSHOT-260601092251",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user