You've already forked npm-core-sdk
Latest generation
This commit is contained in:
42
site.ts
42
site.ts
@@ -117,9 +117,9 @@ export interface Site {
|
||||
/**
|
||||
* Set of required or optional information to ask when a slot is booked
|
||||
*
|
||||
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformations = 17 [json_name = "CarrierInformations"];
|
||||
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17 [json_name = "CarrierInformation"];
|
||||
*/
|
||||
CarrierInformations: CarrierInformation[];
|
||||
CarrierInformation: CarrierInformation[];
|
||||
/**
|
||||
* Defines the rounded value to define booking period
|
||||
*
|
||||
@@ -320,9 +320,9 @@ export interface UpdateSiteRequest {
|
||||
/**
|
||||
* Set of required or optional information to ask when a slot is booked
|
||||
*
|
||||
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformations = 17 [json_name = "CarrierInformations"];
|
||||
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 17 [json_name = "CarrierInformation"];
|
||||
*/
|
||||
CarrierInformations: CarrierInformation[];
|
||||
CarrierInformation: CarrierInformation[];
|
||||
/**
|
||||
* Defines the rounded value to define booking period
|
||||
*
|
||||
@@ -565,7 +565,7 @@ class Site$Type extends MessageType<Site> {
|
||||
{ no: 5, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
||||
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
|
||||
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
|
||||
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "06 00 00 00 00" } } },
|
||||
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
|
||||
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
@@ -574,7 +574,7 @@ class Site$Type extends MessageType<Site> {
|
||||
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
|
||||
{ no: 15, name: "Instructions", kind: "message", localName: "Instructions", jsonName: "Instructions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } },
|
||||
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
|
||||
{ no: 17, name: "CarrierInformations", kind: "message", localName: "CarrierInformations", jsonName: "CarrierInformations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
|
||||
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
|
||||
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
|
||||
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
|
||||
@@ -598,7 +598,7 @@ class Site$Type extends MessageType<Site> {
|
||||
message.CapacityRules = [];
|
||||
message.Instructions = [];
|
||||
message.InstructionDocuments = [];
|
||||
message.CarrierInformations = [];
|
||||
message.CarrierInformation = [];
|
||||
message.RoundedPeriodInMinutes = 0n;
|
||||
message.TimeZone = "";
|
||||
message.Emails = [];
|
||||
@@ -660,8 +660,8 @@ class Site$Type extends MessageType<Site> {
|
||||
case /* repeated api.Document InstructionDocuments = 16 [json_name = "InstructionDocuments"];*/ 16:
|
||||
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformation CarrierInformations = 17 [json_name = "CarrierInformations"];*/ 17:
|
||||
message.CarrierInformations.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.CarrierInformation CarrierInformation = 17 [json_name = "CarrierInformation"];*/ 17:
|
||||
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"];*/ 18:
|
||||
message.RoundedPeriodInMinutes = reader.int64().toBigInt();
|
||||
@@ -735,9 +735,9 @@ class Site$Type extends MessageType<Site> {
|
||||
/* repeated api.Document InstructionDocuments = 16 [json_name = "InstructionDocuments"]; */
|
||||
for (let i = 0; i < message.InstructionDocuments.length; i++)
|
||||
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformation CarrierInformations = 17 [json_name = "CarrierInformations"]; */
|
||||
for (let i = 0; i < message.CarrierInformations.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformations[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformation CarrierInformation = 17 [json_name = "CarrierInformation"]; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"]; */
|
||||
if (message.RoundedPeriodInMinutes !== 0n)
|
||||
writer.tag(18, WireType.Varint).int64(message.RoundedPeriodInMinutes);
|
||||
@@ -768,7 +768,7 @@ class CreateSiteRequest$Type extends MessageType<CreateSiteRequest> {
|
||||
{ no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header,Emails"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header,SiteID,Emails"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateSiteRequest>): CreateSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -1080,7 +1080,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
{ no: 5, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
||||
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
|
||||
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
|
||||
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "06 00 00 00 00" } } },
|
||||
{ no: 9, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 10, name: "Authorisations", kind: "message", localName: "Authorisations", jsonName: "Authorisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProjectAuthorisation },
|
||||
{ no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
@@ -1089,7 +1089,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
|
||||
{ no: 15, name: "Instructions", kind: "message", localName: "Instructions", jsonName: "Instructions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } },
|
||||
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
|
||||
{ no: 17, name: "CarrierInformations", kind: "message", localName: "CarrierInformations", jsonName: "CarrierInformations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
|
||||
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
|
||||
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
|
||||
{ no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
|
||||
@@ -1112,7 +1112,7 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
message.CapacityRules = [];
|
||||
message.Instructions = [];
|
||||
message.InstructionDocuments = [];
|
||||
message.CarrierInformations = [];
|
||||
message.CarrierInformation = [];
|
||||
message.RoundedPeriodInMinutes = 0n;
|
||||
message.TimeZone = "";
|
||||
message.Emails = [];
|
||||
@@ -1174,8 +1174,8 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
case /* repeated api.Document InstructionDocuments = 16 [json_name = "InstructionDocuments"];*/ 16:
|
||||
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformation CarrierInformations = 17 [json_name = "CarrierInformations"];*/ 17:
|
||||
message.CarrierInformations.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.CarrierInformation CarrierInformation = 17 [json_name = "CarrierInformation"];*/ 17:
|
||||
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"];*/ 18:
|
||||
message.RoundedPeriodInMinutes = reader.int64().toBigInt();
|
||||
@@ -1249,9 +1249,9 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
/* repeated api.Document InstructionDocuments = 16 [json_name = "InstructionDocuments"]; */
|
||||
for (let i = 0; i < message.InstructionDocuments.length; i++)
|
||||
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformation CarrierInformations = 17 [json_name = "CarrierInformations"]; */
|
||||
for (let i = 0; i < message.CarrierInformations.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformations[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformation CarrierInformation = 17 [json_name = "CarrierInformation"]; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int64 RoundedPeriodInMinutes = 18 [json_name = "RoundedPeriodInMinutes"]; */
|
||||
if (message.RoundedPeriodInMinutes !== 0n)
|
||||
writer.tag(18, WireType.Varint).int64(message.RoundedPeriodInMinutes);
|
||||
|
||||
Reference in New Issue
Block a user