You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -14,7 +14,7 @@ import { MetadataElement } from "./shared";
|
||||
import { AppointmentStatusStruct } from "./collabShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
import { EntityID } from "./shared";
|
||||
@@ -62,9 +62,9 @@ export interface AppointmentPayload {
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Segmentation Segmentations = 4
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationValues = 4
|
||||
*/
|
||||
Segmentations: Segmentation[];
|
||||
SegmentationValues: SegmentationSelection[];
|
||||
/**
|
||||
* Required carrierInformation, some can be obligatory
|
||||
*
|
||||
@@ -192,7 +192,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
super("api.AppointmentPayload", [
|
||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 4, name: "SegmentationValues", kind: "message", localName: "SegmentationValues", jsonName: "SegmentationValues", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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\"]" } } },
|
||||
@@ -207,7 +207,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.Segmentations = [];
|
||||
message.SegmentationValues = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.CreationDate = "";
|
||||
@@ -229,8 +229,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Segmentation Segmentations */ 4:
|
||||
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.SegmentationSelection SegmentationValues */ 4:
|
||||
message.SegmentationValues.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
|
||||
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -274,9 +274,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Segmentation Segmentations = 4; */
|
||||
for (let i = 0; i < message.Segmentations.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationValues = 4; */
|
||||
for (let i = 0; i < message.SegmentationValues.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationValues[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
@@ -18,7 +18,7 @@ import { EventHeader } from "./shared";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
//
|
||||
@@ -48,9 +48,9 @@ export interface AppointmentCreatedPayload {
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Segmentation Segmentations = 4
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationValues = 4
|
||||
*/
|
||||
Segmentations: Segmentation[];
|
||||
SegmentationValues: SegmentationSelection[];
|
||||
/**
|
||||
* Required carrierInformation, some can be obligatory
|
||||
*
|
||||
@@ -779,7 +779,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
super("api.AppointmentCreatedPayload", [
|
||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 4, name: "SegmentationValues", kind: "message", localName: "SegmentationValues", jsonName: "SegmentationValues", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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\"]" } } },
|
||||
@@ -792,7 +792,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.Segmentations = [];
|
||||
message.SegmentationValues = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.MetaData = [];
|
||||
@@ -813,8 +813,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Segmentation Segmentations */ 4:
|
||||
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.SegmentationSelection SegmentationValues */ 4:
|
||||
message.SegmentationValues.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
|
||||
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -852,9 +852,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Segmentation Segmentations = 4; */
|
||||
for (let i = 0; i < message.Segmentations.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationValues = 4; */
|
||||
for (let i = 0; i < message.SegmentationValues.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationValues[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250619091517",
|
||||
"version": "1.11.0-SNAPSHOT-250619092708",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
36
site.ts
36
site.ts
@@ -417,9 +417,9 @@ export interface GetAvailableSlotsRequest {
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationChoices = 4
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationValues = 4
|
||||
*/
|
||||
SegmentationChoices: SegmentationSelection[];
|
||||
SegmentationValues: SegmentationSelection[];
|
||||
/**
|
||||
* @generated from protobuf field: string StartDate = 5
|
||||
*/
|
||||
@@ -463,9 +463,9 @@ export interface BookAppointmentRequest {
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationChoices = 4
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationValues = 4
|
||||
*/
|
||||
SegmentationChoices: SegmentationSelection[];
|
||||
SegmentationValues: SegmentationSelection[];
|
||||
/**
|
||||
* Required carrierInformation, some can be obligatory
|
||||
*
|
||||
@@ -1501,7 +1501,7 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 4, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 4, name: "SegmentationValues", kind: "message", localName: "SegmentationValues", jsonName: "SegmentationValues", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
|
||||
{ no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
@@ -1510,7 +1510,7 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.SegmentationChoices = [];
|
||||
message.SegmentationValues = [];
|
||||
message.StartDate = "";
|
||||
message.EndDate = "";
|
||||
if (value !== undefined)
|
||||
@@ -1531,8 +1531,8 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
|
||||
case /* repeated api.Commission Commissions */ 3:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.SegmentationSelection SegmentationChoices */ 4:
|
||||
message.SegmentationChoices.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.SegmentationSelection SegmentationValues */ 4:
|
||||
message.SegmentationValues.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string StartDate */ 5:
|
||||
message.StartDate = reader.string();
|
||||
@@ -1561,9 +1561,9 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
|
||||
/* repeated api.Commission Commissions = 3; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationChoices = 4; */
|
||||
for (let i = 0; i < message.SegmentationChoices.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationChoices[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationValues = 4; */
|
||||
for (let i = 0; i < message.SegmentationValues.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationValues[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string StartDate = 5; */
|
||||
if (message.StartDate !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.StartDate);
|
||||
@@ -1634,7 +1634,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 4, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 4, name: "SegmentationValues", kind: "message", localName: "SegmentationValues", jsonName: "SegmentationValues", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
|
||||
{ no: 8, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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\"]" } } },
|
||||
@@ -1646,7 +1646,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.SegmentationChoices = [];
|
||||
message.SegmentationValues = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Slots = [];
|
||||
message.Emails = [];
|
||||
@@ -1670,8 +1670,8 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
case /* repeated api.Commission Commissions */ 3:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.SegmentationSelection SegmentationChoices */ 4:
|
||||
message.SegmentationChoices.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.SegmentationSelection SegmentationValues */ 4:
|
||||
message.SegmentationValues.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
|
||||
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -1709,9 +1709,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
/* repeated api.Commission Commissions = 3; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationChoices = 4; */
|
||||
for (let i = 0; i < message.SegmentationChoices.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationChoices[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationValues = 4; */
|
||||
for (let i = 0; i < message.SegmentationValues.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationValues[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user