You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251127093742",
|
||||
"version": "1.12.0-SNAPSHOT-251127101102",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
43
site.ts
43
site.ts
@@ -14,6 +14,7 @@ import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { Period } from "./shared";
|
||||
import { PrjMetadata } from "./metadatadef";
|
||||
import { SegmentationFilter } from "./slotbooking";
|
||||
import { CustomField } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { ResponseHeader } from "./shared";
|
||||
@@ -683,6 +684,10 @@ export interface BookAppointmentRequest {
|
||||
* @generated from protobuf field: string TimeZone = 17
|
||||
*/
|
||||
TimeZone: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.CustomField CustomFields = 18
|
||||
*/
|
||||
CustomFields: CustomField[];
|
||||
}
|
||||
/**
|
||||
* SiteActor: connection between an actor in a project and a Site
|
||||
@@ -784,6 +789,10 @@ export interface CancelAppointmentRequest {
|
||||
* @generated from protobuf field: string ActorID = 3
|
||||
*/
|
||||
ActorID: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.CustomField CustomFields = 4
|
||||
*/
|
||||
CustomFields: CustomField[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CancelAppointmentResponse
|
||||
@@ -861,6 +870,10 @@ export interface UpdateAppointmentRequest {
|
||||
* @generated from protobuf field: string TimeZone = 8
|
||||
*/
|
||||
TimeZone: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.CustomField CustomFields = 9
|
||||
*/
|
||||
CustomFields: CustomField[];
|
||||
}
|
||||
/**
|
||||
* ListUserSites
|
||||
@@ -2952,7 +2965,8 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
{ no: 13, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 15, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
|
||||
{ no: 16, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } },
|
||||
{ no: 17, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } }
|
||||
{ no: 17, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
|
||||
{ no: 18, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Slots", "Commissions", "SegmentationSelections", "CarrierInformation", "ActorID", "Emails"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
|
||||
@@ -2969,6 +2983,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
message.MetaData = [];
|
||||
message.Reason = "";
|
||||
message.TimeZone = "";
|
||||
message.CustomFields = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<BookAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -3017,6 +3032,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
case /* string TimeZone */ 17:
|
||||
message.TimeZone = reader.string();
|
||||
break;
|
||||
case /* repeated api.CustomField CustomFields */ 18:
|
||||
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -3068,6 +3086,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
|
||||
/* string TimeZone = 17; */
|
||||
if (message.TimeZone !== "")
|
||||
writer.tag(17, WireType.LengthDelimited).string(message.TimeZone);
|
||||
/* repeated api.CustomField CustomFields = 18; */
|
||||
for (let i = 0; i < message.CustomFields.length; i++)
|
||||
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -3357,13 +3378,15 @@ class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest
|
||||
super("api.CancelAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" }, "validate.rules": { string: { minLen: "1", maxLen: "192" } } } },
|
||||
{ no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CancelAppointmentRequest>): CancelAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.ActorID = "";
|
||||
message.CustomFields = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CancelAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -3382,6 +3405,9 @@ class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest
|
||||
case /* string ActorID */ 3:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* repeated api.CustomField CustomFields */ 4:
|
||||
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -3403,6 +3429,9 @@ class CancelAppointmentRequest$Type extends MessageType<CancelAppointmentRequest
|
||||
/* string ActorID = 3; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* repeated api.CustomField CustomFields = 4; */
|
||||
for (let i = 0; i < message.CustomFields.length; i++)
|
||||
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -3540,7 +3569,8 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
|
||||
{ no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } } } },
|
||||
{ no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason is required to book appointment without order reference" } } },
|
||||
{ no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } }
|
||||
{ no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
|
||||
{ no: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions", "ActorID", "Emails"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest {
|
||||
@@ -3552,6 +3582,7 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
|
||||
message.Emails = [];
|
||||
message.Reason = "";
|
||||
message.TimeZone = "";
|
||||
message.CustomFields = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -3585,6 +3616,9 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
|
||||
case /* string TimeZone */ 8:
|
||||
message.TimeZone = reader.string();
|
||||
break;
|
||||
case /* repeated api.CustomField CustomFields */ 9:
|
||||
message.CustomFields.push(CustomField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -3621,6 +3655,9 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
|
||||
/* string TimeZone = 8; */
|
||||
if (message.TimeZone !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.TimeZone);
|
||||
/* repeated api.CustomField CustomFields = 9; */
|
||||
for (let i = 0; i < message.CustomFields.length; i++)
|
||||
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, 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