You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -10,7 +10,6 @@ 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 { AckDocument } from "./slotbooking";
|
||||
import { ClaimSummary } from "./shared";
|
||||
import { AppointmentContent } from "./slotbooking";
|
||||
import { Address } from "./repositoryShared";
|
||||
@@ -218,10 +217,6 @@ export interface AppointmentPayload {
|
||||
* @generated from protobuf field: int32 ClaimNumber = 34
|
||||
*/
|
||||
ClaimNumber: number;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.AckDocument AckDocuments = 35
|
||||
*/
|
||||
AckDocuments: AckDocument[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentTriplet
|
||||
@@ -348,8 +343,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
{ 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: 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" } } },
|
||||
{ no: 35, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument }
|
||||
{ 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 {
|
||||
@@ -375,7 +369,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
message.WMSCreated = false;
|
||||
message.Claims = [];
|
||||
message.ClaimNumber = 0;
|
||||
message.AckDocuments = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -469,9 +462,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
case /* int32 ClaimNumber */ 34:
|
||||
message.ClaimNumber = reader.int32();
|
||||
break;
|
||||
case /* repeated api.AckDocument AckDocuments */ 35:
|
||||
message.AckDocuments.push(AckDocument.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -568,9 +558,6 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* int32 ClaimNumber = 34; */
|
||||
if (message.ClaimNumber !== 0)
|
||||
writer.tag(34, WireType.Varint).int32(message.ClaimNumber);
|
||||
/* repeated api.AckDocument AckDocuments = 35; */
|
||||
for (let i = 0; i < message.AckDocuments.length; i++)
|
||||
AckDocument.internalBinaryWrite(message.AckDocuments[i], writer.tag(35, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -17,7 +17,6 @@ import { ResponseHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { EventHeader } from "./shared";
|
||||
import { AckDocument } from "./slotbooking";
|
||||
import { AppointmentContent } from "./slotbooking";
|
||||
import { Address } from "./repositoryShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
@@ -136,10 +135,6 @@ export interface AppointmentCreatedPayload {
|
||||
* @generated from protobuf field: repeated string Attendees = 27
|
||||
*/
|
||||
Attendees: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.AckDocument AckDocuments = 29
|
||||
*/
|
||||
AckDocuments: AckDocument[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -1972,8 +1967,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
{ no: 20, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 25, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||
{ 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", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees added on the appointment (user uuid)" } } },
|
||||
{ no: 29, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument }
|
||||
{ no: 27, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees added on the appointment (user uuid)" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCreatedPayload>): AppointmentCreatedPayload {
|
||||
@@ -1988,7 +1982,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
message.SiteName = "";
|
||||
message.TimeZone = "";
|
||||
message.Attendees = [];
|
||||
message.AckDocuments = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCreatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -2040,9 +2033,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated string Attendees */ 27:
|
||||
message.Attendees.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.AckDocument AckDocuments */ 29:
|
||||
message.AckDocuments.push(AckDocument.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2097,9 +2087,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated api.MetadataElement SegmentationKeys = 28; */
|
||||
for (let i = 0; i < message.SegmentationKeys.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(28, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.AckDocument AckDocuments = 29; */
|
||||
for (let i = 0; i < message.AckDocuments.length; i++)
|
||||
AckDocument.internalBinaryWrite(message.AckDocuments[i], writer.tag(29, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.15.0-SNAPSHOT-260630154514",
|
||||
"version": "1.15.0-SNAPSHOT-260701071123",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -12,7 +12,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { ResponseHeader } from "./shared";
|
||||
import { AckDocument } from "./slotbooking";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { EntityID } from "./shared";
|
||||
import { BookableSlot } from "./slotbooking";
|
||||
@@ -190,10 +189,6 @@ export interface BookAppointmentPayload {
|
||||
* @generated from protobuf field: repeated string Emails = 13
|
||||
*/
|
||||
Emails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.AckDocument AckDocuments = 15
|
||||
*/
|
||||
AckDocuments: AckDocument[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.BookBookingAppointmentResponse
|
||||
@@ -719,8 +714,7 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
{ no: 9, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||
{ no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||
{ no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
|
||||
{ no: 15, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument }
|
||||
{ no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType", "Slot", "CarrierInformation", "Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<BookAppointmentPayload>): BookAppointmentPayload {
|
||||
@@ -734,7 +728,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
message.InstructionAck = false;
|
||||
message.TimeZone = "";
|
||||
message.Emails = [];
|
||||
message.AckDocuments = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<BookAppointmentPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -780,9 +773,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
case /* repeated string Emails */ 13:
|
||||
message.Emails.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.AckDocument AckDocuments */ 15:
|
||||
message.AckDocuments.push(AckDocument.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -831,9 +821,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
/* repeated api.MetadataElement SegmentationKeys = 14; */
|
||||
for (let i = 0; i < message.SegmentationKeys.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.AckDocument AckDocuments = 15; */
|
||||
for (let i = 0; i < message.AckDocuments.length; i++)
|
||||
AckDocument.internalBinaryWrite(message.AckDocuments[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -575,19 +575,6 @@ export interface AppointmentCommission {
|
||||
*/
|
||||
UnitQuantities: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AckDocument
|
||||
*/
|
||||
export interface AckDocument {
|
||||
/**
|
||||
* @generated from protobuf field: string DocID = 1
|
||||
*/
|
||||
DocID: string;
|
||||
/**
|
||||
* @generated from protobuf field: bool Ack = 2
|
||||
*/
|
||||
Ack: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentContent
|
||||
*/
|
||||
@@ -2445,61 +2432,6 @@ class AppointmentCommission$Type extends MessageType<AppointmentCommission> {
|
||||
*/
|
||||
export const AppointmentCommission = new AppointmentCommission$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AckDocument$Type extends MessageType<AckDocument> {
|
||||
constructor() {
|
||||
super("api.AckDocument", [
|
||||
{ no: 1, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "Ack", kind: "scalar", localName: "Ack", jsonName: "Ack", T: 8 /*ScalarType.BOOL*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AckDocument>): AckDocument {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DocID = "";
|
||||
message.Ack = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AckDocument>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AckDocument): AckDocument {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string DocID */ 1:
|
||||
message.DocID = reader.string();
|
||||
break;
|
||||
case /* bool Ack */ 2:
|
||||
message.Ack = 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: AckDocument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string DocID = 1; */
|
||||
if (message.DocID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.DocID);
|
||||
/* bool Ack = 2; */
|
||||
if (message.Ack !== false)
|
||||
writer.tag(2, WireType.Varint).bool(message.Ack);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AckDocument
|
||||
*/
|
||||
export const AckDocument = new AckDocument$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentContent$Type extends MessageType<AppointmentContent> {
|
||||
constructor() {
|
||||
super("api.AppointmentContent", [
|
||||
|
||||
Reference in New Issue
Block a user