From 1b0131865489f09a7eb3fc6e6bc3cf15b6787778 Mon Sep 17 00:00:00 2001 From: ci core model Date: Fri, 22 May 2026 08:22:35 +0000 Subject: [PATCH] Latest generation --- accounts.ts | 28 +-- actor.ts | 6 +- actorInput.ts | 128 ++++++------- actorQuery.ts | 8 +- adaptiveCard.ts | 8 +- admin-actor.ts | 10 +- admin-partner.ts | 10 +- adminConnection.ts | 6 +- alias.ts | 40 ++-- api.ts | 24 +-- appointment.ts | 10 +- appointmentInput.ts | 330 ++++++++++++++++---------------- appointmentQuery.ts | 8 +- attachmentType.ts | 52 ++--- attachmentV2.ts | 66 +++---- base.ts | 2 +- billing.ts | 8 +- calendar.ts | 80 ++++---- claim-type.ts | 44 ++--- claim.ts | 16 +- claimInput.ts | 154 +++++++-------- claimQuery.ts | 16 +- clickhouse.ts | 72 +++---- client.ts | 12 +- collabShared.ts | 6 +- connection.ts | 32 ++-- connectionSettings.ts | 12 +- connector.ts | 50 ++--- elastic.ts | 8 +- executionflow.ts | 2 +- executionflowInput.ts | 356 +++++++++++++++++----------------- executionflowQuery.ts | 6 +- gcs-api.ts | 18 +- go-ape.ts | 6 +- handlingunit.ts | 2 +- handlingunitInput.ts | 190 +++++++++---------- handlingunitQuery.ts | 6 +- idp.ts | 16 +- index.ts | 2 +- item.ts | 4 +- itemInput.ts | 86 ++++----- itemQuery.ts | 12 +- kpi.ts | 42 ++-- logger.ts | 20 +- matrix-proxy.ts | 38 ++-- metadata.ts | 6 +- metadatadef.ts | 54 +++--- model.ts | 28 +-- module.ts | 18 +- movement.ts | 6 +- movementInput.ts | 106 +++++------ movementQuery.ts | 10 +- validate.ts => n1validate.ts | 300 ++++++++++++++--------------- nats-api.ts | 28 +-- notif.ts | 10 +- notifInput.ts | 48 ++--- notification.ts | 10 +- opensearch.ts | 10 +- order.ts | 6 +- orderInput.ts | 358 +++++++++++++++++------------------ orderQuery.ts | 8 +- org.ts | 68 +++---- package.json | 2 +- partner.ts | 2 +- partnerApp.ts | 22 +-- partnerInput.ts | 72 +++---- partnerQuery.ts | 8 +- proj.ts | 60 +++--- project-lifecycle.ts | 40 ++-- repositoryShared.ts | 42 ++-- resource.ts | 10 +- restrictionLinks.ts | 32 ++-- restrictions.ts | 60 +++--- role.ts | 102 +++++----- rules.ts | 36 ++-- shared.ts | 180 +++++++++--------- site.ts | 134 ++++++------- siteBooking.ts | 54 +++--- slotbooking.ts | 36 ++-- stock.ts | 16 +- stockInput.ts | 70 +++---- stockQuery.ts | 8 +- tiny-url.ts | 124 ++++++------ tracking.ts | 2 +- trackingInput.ts | 132 ++++++------- trackingQuery.ts | 4 +- tradeShared.ts | 34 ++-- translations.ts | 28 +-- transportShared.ts | 12 +- user-attributes.ts | 16 +- user-groups.ts | 22 +-- user.ts | 210 ++++++++++---------- users.ts | 18 +- view.ts | 12 +- warehousingShared.ts | 120 ++++++------ workflow.ts | 106 +++++------ 96 files changed, 2476 insertions(+), 2476 deletions(-) rename validate.ts => n1validate.ts (95%) diff --git a/accounts.ts b/accounts.ts index cdad9d91..4a14be12 100644 --- a/accounts.ts +++ b/accounts.ts @@ -298,7 +298,7 @@ export interface ListAccountsResult { class CreateAccountRequest$Type extends MessageType { constructor() { super("api.CreateAccountRequest", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "permission", kind: "message", T: () => NscPermission }, { no: 3, name: "jetStream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["name"] } } }); @@ -406,10 +406,10 @@ export const CreateAccountResult = new CreateAccountResult$Type(); class AddExportRequest$Type extends MessageType { constructor() { super("api.AddExportRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "public", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "stream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, - { no: 4, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 4, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "subject"] } } }); } create(value?: PartialMessage): AddExportRequest { @@ -523,9 +523,9 @@ export const AddExportResult = new AddExportResult$Type(); class AddImportRequest$Type extends MessageType { constructor() { super("api.AddImportRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "remoteAccount", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "remoteAccount", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "remoteAccount", "subject"] } } }); } create(value?: PartialMessage): AddImportRequest { @@ -632,8 +632,8 @@ export const AddImportResult = new AddImportResult$Type(); class DeleteExportRequest$Type extends MessageType { constructor() { super("api.DeleteExportRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "subject"] } } }); } create(value?: PartialMessage): DeleteExportRequest { @@ -733,9 +733,9 @@ export const DeleteExportResult = new DeleteExportResult$Type(); class DeleteImportRequest$Type extends MessageType { constructor() { super("api.DeleteImportRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "remoteAccount", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "remoteAccount", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName", "remoteAccount", "subject"] } } }); } create(value?: PartialMessage): DeleteImportRequest { @@ -842,7 +842,7 @@ export const DeleteImportResult = new DeleteImportResult$Type(); class GetAccountRequest$Type extends MessageType { constructor() { super("api.GetAccountRequest", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["name"] } } }); } create(value?: PartialMessage): GetAccountRequest { @@ -935,7 +935,7 @@ export const GetAccountResult = new GetAccountResult$Type(); class EditAccountRequest$Type extends MessageType { constructor() { super("api.EditAccountRequest", [ - { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "permission", kind: "message", T: () => NscPermission }, { no: 3, name: "rmPerms", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "jetStream", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, @@ -1075,7 +1075,7 @@ export const EditAccountResult = new EditAccountResult$Type(); class DeleteAccountRequest$Type extends MessageType { constructor() { super("api.DeleteAccountRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["accountName"] } } }); } create(value?: PartialMessage): DeleteAccountRequest { diff --git a/actor.ts b/actor.ts index e28d2adf..703c51e2 100644 --- a/actor.ts +++ b/actor.ts @@ -316,16 +316,16 @@ export const Actor = new Actor$Type(); class ActorPayload$Type extends MessageType { constructor() { super("api.ActorPayload", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Actor Name" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Tracking", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Actor Name" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Tracking", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }] } } }, { no: 2, name: "IdType", kind: "enum", localName: "IdType", jsonName: "IdType", T: () => ["api.IdType", IdType], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] }, "api.parentEntity": "Actor" } }, { no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }, - { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ActorStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Order", Group: "movement" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, + { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ActorStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Order", Group: "movement" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, { no: 7, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Existing PartnerID" }, "api.entityRef": "Partner", "api.dataRestrictionKey": "Movement,Stock,Actor", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order" }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] }, "api.enrichmentSkippedPath": "Actor" } }, { no: 15, name: "AdditionalInformation", kind: "scalar", localName: "AdditionalInformation", jsonName: "AdditionalInformation", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.ActorTypology", ActorTypology], options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } }, { no: 11, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => ActorSnapshot, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] }, "api.enrichmentClear": "Order,Executionflow,Stock,Movement,Tracking" } }, - { no: 12, 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": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } }, + { no: 12, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 13, 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: "[\"07 00 00 00 00\", \"+49 6 00 00 00 00\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 14, name: "ManagedStock", kind: "scalar", localName: "ManagedStock", jsonName: "ManagedStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can manage stock" }, "api.enrichmentClear": "Tracking", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, { no: 16, name: "IsCarrier", kind: "scalar", localName: "IsCarrier", jsonName: "IsCarrier", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can be used as carrier" }, "api.enrichmentClear": "Stock,Movement" } }, diff --git a/actorInput.ts b/actorInput.ts index e3df7de5..30ac4993 100644 --- a/actorInput.ts +++ b/actorInput.ts @@ -836,7 +836,7 @@ class ActorCreatedPayload$Type extends MessageType { { no: 6, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Existing PartnerID" }, "api.entityRef": "Partner" } }, { no: 15, name: "AdditionalInformation", kind: "scalar", localName: "AdditionalInformation", jsonName: "AdditionalInformation", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.ActorTypology", ActorTypology] }, - { no: 12, 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": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, + { no: 12, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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: 13, 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: 14, name: "ManagedStock", kind: "scalar", localName: "ManagedStock", jsonName: "ManagedStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can manage stock" } } }, { no: 16, name: "IsCarrier", kind: "scalar", localName: "IsCarrier", jsonName: "IsCarrier", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can be used as carrier" } } }, @@ -846,7 +846,7 @@ class ActorCreatedPayload$Type extends MessageType { { no: 20, name: "ShipToPartnerAppID", kind: "scalar", localName: "ShipToPartnerAppID", jsonName: "ShipToPartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be existing partner ID" } } }, { no: 21, name: "ShipFromPartnerAppID", kind: "scalar", localName: "ShipFromPartnerAppID", jsonName: "ShipFromPartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be existing partner ID" } } }, { no: 26, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" }, "api.viewType": { Types: [{ Context: "*", Type: "image" }] } } }, - { no: 28, name: "ConnectionIdentifierPrefixes", kind: "scalar", localName: "ConnectionIdentifierPrefixes", jsonName: "ConnectionIdentifierPrefixes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { pattern: "^[a-zA-Z0-9]*" } } } } } } + { no: 28, name: "ConnectionIdentifierPrefixes", kind: "scalar", localName: "ConnectionIdentifierPrefixes", jsonName: "ConnectionIdentifierPrefixes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { items: { string: { pattern: "^[a-zA-Z0-9]*" } } } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" }); } create(value?: PartialMessage): ActorCreatedPayload { @@ -1011,9 +1011,9 @@ export const ActorCreatedPayload = new ActorCreatedPayload$Type(); class ActorCreatedEvent$Type extends MessageType { constructor() { super("api.ActorCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "ActorCreatedPayload"] } }, "api.messageType": "Event", "api.inputEvent": "Created", "api.preAggMethods": "checkPartnerAppId" }); } create(value?: PartialMessage): ActorCreatedEvent { @@ -1071,9 +1071,9 @@ export const ActorCreatedEvent = new ActorCreatedEvent$Type(); class ActorCreatedRequest$Type extends MessageType { constructor() { super("api.ActorCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): ActorCreatedRequest { @@ -1190,7 +1190,7 @@ class ActorCreatedv2Payload$Type extends MessageType { { no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }, { no: 15, name: "AdditionalInformation", kind: "scalar", localName: "AdditionalInformation", jsonName: "AdditionalInformation", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.ActorTypology", ActorTypology] }, - { no: 12, 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": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, + { no: 12, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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: 13, 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: 16, name: "IsCarrier", kind: "scalar", localName: "IsCarrier", jsonName: "IsCarrier", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Can be used as carrier" } } }, { no: 17, name: "CarrierServices", kind: "message", localName: "CarrierServices", jsonName: "CarrierServices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierService, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of carrier services" }, "api.aggKey": "ID" } } @@ -1302,9 +1302,9 @@ export const ActorCreatedv2Payload = new ActorCreatedv2Payload$Type(); class ActorCreatedv2Event$Type extends MessageType { constructor() { super("api.ActorCreatedv2Event", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedv2Payload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedv2Payload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Createdv2" }); } create(value?: PartialMessage): ActorCreatedv2Event { @@ -1362,9 +1362,9 @@ export const ActorCreatedv2Event = new ActorCreatedv2Event$Type(); class ActorCreatedv2Request$Type extends MessageType { constructor() { super("api.ActorCreatedv2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedv2Payload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCreatedv2Payload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Createdv2" }); } create(value?: PartialMessage): ActorCreatedv2Request { @@ -1686,7 +1686,7 @@ export const ActorDeletedResponse = new ActorDeletedResponse$Type(); class ActorSnapshotCompletedPayload$Type extends MessageType { constructor() { super("api.ActorSnapshotCompletedPayload", [ - { no: 1, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => ActorSnapshot, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => ActorSnapshot, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Snapshot"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "SnapshotCompleted", "api.preAggMethods": "rejectSnapshot" }); } create(value?: PartialMessage): ActorSnapshotCompletedPayload { @@ -1732,9 +1732,9 @@ export const ActorSnapshotCompletedPayload = new ActorSnapshotCompletedPayload$T class ActorSnapshotCompletedEvent$Type extends MessageType { constructor() { super("api.ActorSnapshotCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSnapshotCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSnapshotCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "SnapshotCompleted" }); } create(value?: PartialMessage): ActorSnapshotCompletedEvent { @@ -1792,9 +1792,9 @@ export const ActorSnapshotCompletedEvent = new ActorSnapshotCompletedEvent$Type( class ActorSnapshotCompletedRequest$Type extends MessageType { constructor() { super("api.ActorSnapshotCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSnapshotCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSnapshotCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "SnapshotCompleted" }); } create(value?: PartialMessage): ActorSnapshotCompletedRequest { @@ -1952,9 +1952,9 @@ export const ActorAttachmentAddedPayload = new ActorAttachmentAddedPayload$Type( class ActorAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.ActorAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): ActorAttachmentAddedEvent { @@ -2012,9 +2012,9 @@ export const ActorAttachmentAddedEvent = new ActorAttachmentAddedEvent$Type(); class ActorAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.ActorAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): ActorAttachmentAddedRequest { @@ -2172,9 +2172,9 @@ export const ActorAttachmentRemovedPayload = new ActorAttachmentRemovedPayload$T class ActorAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.ActorAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): ActorAttachmentRemovedEvent { @@ -2232,9 +2232,9 @@ export const ActorAttachmentRemovedEvent = new ActorAttachmentRemovedEvent$Type( class ActorAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.ActorAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): ActorAttachmentRemovedRequest { @@ -2392,9 +2392,9 @@ export const ActorClaimAddedPayload = new ActorClaimAddedPayload$Type(); class ActorClaimAddedEvent$Type extends MessageType { constructor() { super("api.ActorClaimAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ClaimAdded", "api.preAggMethods": "addClaim" }); } create(value?: PartialMessage): ActorClaimAddedEvent { @@ -2452,9 +2452,9 @@ export const ActorClaimAddedEvent = new ActorClaimAddedEvent$Type(); class ActorClaimAddedRequest$Type extends MessageType { constructor() { super("api.ActorClaimAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" }); } create(value?: PartialMessage): ActorClaimAddedRequest { @@ -2612,9 +2612,9 @@ export const ActorMetaDataUpdatedPayload = new ActorMetaDataUpdatedPayload$Type( class ActorMetaDataUpdatedEvent$Type extends MessageType { constructor() { super("api.ActorMetaDataUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): ActorMetaDataUpdatedEvent { @@ -2672,9 +2672,9 @@ export const ActorMetaDataUpdatedEvent = new ActorMetaDataUpdatedEvent$Type(); class ActorMetaDataUpdatedRequest$Type extends MessageType { constructor() { super("api.ActorMetaDataUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): ActorMetaDataUpdatedRequest { @@ -2846,9 +2846,9 @@ export const ActorAppointmentConfigurationUpdatedPayload = new ActorAppointmentC class ActorAppointmentConfigurationUpdatedEvent$Type extends MessageType { constructor() { super("api.ActorAppointmentConfigurationUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAppointmentConfigurationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAppointmentConfigurationUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AppointmentConfigurationUpdated" }); } create(value?: PartialMessage): ActorAppointmentConfigurationUpdatedEvent { @@ -2906,9 +2906,9 @@ export const ActorAppointmentConfigurationUpdatedEvent = new ActorAppointmentCon class ActorAppointmentConfigurationUpdatedRequest$Type extends MessageType { constructor() { super("api.ActorAppointmentConfigurationUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAppointmentConfigurationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorAppointmentConfigurationUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AppointmentConfigurationUpdated" }); } create(value?: PartialMessage): ActorAppointmentConfigurationUpdatedRequest { @@ -3057,9 +3057,9 @@ export const ActorSanitisedPayload = new ActorSanitisedPayload$Type(); class ActorSanitisedEvent$Type extends MessageType { constructor() { super("api.ActorSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): ActorSanitisedEvent { @@ -3117,9 +3117,9 @@ export const ActorSanitisedEvent = new ActorSanitisedEvent$Type(); class ActorSanitisedRequest$Type extends MessageType { constructor() { super("api.ActorSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): ActorSanitisedRequest { @@ -3268,9 +3268,9 @@ export const ActorCustomFieldsUpdatedPayload = new ActorCustomFieldsUpdatedPaylo class ActorCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.ActorCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ActorCustomFieldsUpdatedEvent { @@ -3328,9 +3328,9 @@ export const ActorCustomFieldsUpdatedEvent = new ActorCustomFieldsUpdatedEvent$T class ActorCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.ActorCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ActorCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ActorCustomFieldsUpdatedRequest { diff --git a/actorQuery.ts b/actorQuery.ts index f7a79164..582089c9 100644 --- a/actorQuery.ts +++ b/actorQuery.ts @@ -163,8 +163,8 @@ export interface ActorByMatchResult { class ActorByIdQuery$Type extends MessageType { constructor() { super("api.ActorByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ActorQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -278,7 +278,7 @@ export const ActorByIdResult = new ActorByIdResult$Type(); class ActorByFilterQuery$Type extends MessageType { constructor() { super("api.ActorByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -480,7 +480,7 @@ export const ActorQueryOptions = new ActorQueryOptions$Type(); class ActorByMatchQuery$Type extends MessageType { constructor() { super("api.ActorByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, diff --git a/adaptiveCard.ts b/adaptiveCard.ts index 8a5f3162..8ec8005b 100644 --- a/adaptiveCard.ts +++ b/adaptiveCard.ts @@ -254,7 +254,7 @@ export const ListAdaptiveCardResult = new ListAdaptiveCardResult$Type(); class GetAdaptiveCardRequest$Type extends MessageType { constructor() { super("api.GetAdaptiveCardRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the AdaptiveCard to get" } } } + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the AdaptiveCard to get" } } } ]); } create(value?: PartialMessage): GetAdaptiveCardRequest { @@ -347,8 +347,8 @@ export const GetAdaptiveCardResult = new GetAdaptiveCardResult$Type(); class CreateAdaptiveCardRequest$Type extends MessageType { constructor() { super("api.CreateAdaptiveCardRequest", [ - { no: 1, name: "Template", kind: "scalar", localName: "Template", jsonName: "Template", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template of the new AdaptiveCard" } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new AdaptiveCard. Unique." } } } + { no: 1, name: "Template", kind: "scalar", localName: "Template", jsonName: "Template", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template of the new AdaptiveCard" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new AdaptiveCard. Unique." } } } ]); } create(value?: PartialMessage): CreateAdaptiveCardRequest { @@ -540,7 +540,7 @@ export const UpdateAdaptiveCardResult = new UpdateAdaptiveCardResult$Type(); class DeleteAdaptiveCardRequest$Type extends MessageType { constructor() { super("api.DeleteAdaptiveCardRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the AdaptiveCard to delete" } } } + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the AdaptiveCard to delete" } } } ]); } create(value?: PartialMessage): DeleteAdaptiveCardRequest { diff --git a/admin-actor.ts b/admin-actor.ts index df212a1b..e18c231b 100644 --- a/admin-actor.ts +++ b/admin-actor.ts @@ -56,12 +56,12 @@ export interface AdminActor { class AdminActor$Type extends MessageType { constructor() { super("api.AdminActor", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address, options: { "validate.rules": { message: { required: true } } } }, - { no: 7, name: "Contact", kind: "message", localName: "Contact", jsonName: "Contact", T: () => ActorContact, options: { "validate.rules": { message: { required: true } } } }, + { no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 7, name: "Contact", kind: "message", localName: "Contact", jsonName: "Contact", T: () => ActorContact, options: { "n1validate.rules": { message: { required: true } } } }, { no: 8, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.ActorTypology", ActorTypology] }, { no: 9, name: "AdditionalInformation", kind: "scalar", localName: "AdditionalInformation", jsonName: "AdditionalInformation", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Name", "OrganisationID"] } } }); diff --git a/admin-partner.ts b/admin-partner.ts index 5fbfd8c0..44bdc76d 100644 --- a/admin-partner.ts +++ b/admin-partner.ts @@ -57,12 +57,12 @@ export interface AdminPartner { class AdminPartner$Type extends MessageType { constructor() { super("api.AdminPartner", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "LegalStructure", kind: "scalar", localName: "LegalStructure", jsonName: "LegalStructure", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address, options: { "validate.rules": { message: { required: true } } } }, - { no: 5, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "ActorIDs", kind: "scalar", localName: "ActorIDs", jsonName: "ActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { unique: true } } } }, + { no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 5, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "ActorIDs", kind: "scalar", localName: "ActorIDs", jsonName: "ActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { unique: true } } } }, { no: 7, name: "Actors", kind: "message", localName: "Actors", jsonName: "Actors", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdminActor }, { no: 8, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Name", "Address", "OrganisationID"] } } }); diff --git a/adminConnection.ts b/adminConnection.ts index d113a73b..d47b6493 100644 --- a/adminConnection.ts +++ b/adminConnection.ts @@ -199,8 +199,8 @@ export const ArgElement = new ArgElement$Type(); class RegisterConnectionManagerRequest$Type extends MessageType { constructor() { super("api.RegisterConnectionManagerRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "UriStartApi", kind: "scalar", localName: "UriStartApi", jsonName: "UriStartApi", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "UriStartApi", kind: "scalar", localName: "UriStartApi", jsonName: "UriStartApi", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "ArgsUriStart", kind: "message", localName: "ArgsUriStart", jsonName: "ArgsUriStart", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ArgElement } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "UriStartApi"] } } }); } @@ -338,7 +338,7 @@ export const ListConnectionManagerRequest = new ListConnectionManagerRequest$Typ class ListConnectionManagerResult$Type extends MessageType { constructor() { super("api.ListConnectionManagerResult", [ - { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdminConnection, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Results", kind: "message", localName: "Results", jsonName: "Results", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdminConnection, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ]); } create(value?: PartialMessage): ListConnectionManagerResult { diff --git a/alias.ts b/alias.ts index 19be38bb..2b88e526 100644 --- a/alias.ts +++ b/alias.ts @@ -250,9 +250,9 @@ export enum AliasType { class AliasPropertiesAppointmentScheduling$Type extends MessageType { constructor() { super("api.AliasPropertiesAppointmentScheduling", [ - { no: 1, name: "AptType", kind: "enum", localName: "AptType", jsonName: "AptType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "LoadingCommandIdentifierEntry", kind: "enum", localName: "LoadingCommandIdentifierEntry", jsonName: "LoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "UnLoadingCommandIdentifierEntry", kind: "enum", localName: "UnLoadingCommandIdentifierEntry", jsonName: "UnLoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "AptType", kind: "enum", localName: "AptType", jsonName: "AptType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "LoadingCommandIdentifierEntry", kind: "enum", localName: "LoadingCommandIdentifierEntry", jsonName: "LoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "UnLoadingCommandIdentifierEntry", kind: "enum", localName: "UnLoadingCommandIdentifierEntry", jsonName: "UnLoadingCommandIdentifierEntry", T: () => ["api.CommandIdentifierEntry", CommandIdentifierEntry], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "ActorName", kind: "scalar", localName: "ActorName", jsonName: "ActorName", T: 9 /*ScalarType.STRING*/ } ]); } @@ -321,10 +321,10 @@ export const AliasPropertiesAppointmentScheduling = new AliasPropertiesAppointme class Alias$Type extends MessageType { constructor() { super("api.Alias", [ - { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Properties", kind: "scalar", localName: "Properties", jsonName: "Properties", T: 9 /*ScalarType.STRING*/ } ]); } @@ -400,7 +400,7 @@ export const Alias = new Alias$Type(); class CreateAliasRequest$Type extends MessageType { constructor() { super("api.CreateAliasRequest", [ - { no: 1, name: "Alias", kind: "message", localName: "Alias", jsonName: "Alias", T: () => Alias, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Alias", kind: "message", localName: "Alias", jsonName: "Alias", T: () => Alias, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Alias"] } } }); } create(value?: PartialMessage): CreateAliasRequest { @@ -492,9 +492,9 @@ export const CreateAliasResponse = new CreateAliasResponse$Type(); class GetAliasRequest$Type extends MessageType { constructor() { super("api.GetAliasRequest", [ - { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID", "AliasType", "AliasName"] } } }); } create(value?: PartialMessage): GetAliasRequest { @@ -601,7 +601,7 @@ export const GetAliasResponse = new GetAliasResponse$Type(); class ListAliasesFromRequest$Type extends MessageType { constructor() { super("api.ListAliasesFromRequest", [ - { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID"] } } }); } @@ -703,7 +703,7 @@ export const ListAliasesFromResponse = new ListAliasesFromResponse$Type(); class ListAliasesToRequest$Type extends MessageType { constructor() { super("api.ListAliasesToRequest", [ - { no: 1, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ToID"] } } }); } create(value?: PartialMessage): ListAliasesToRequest { @@ -797,9 +797,9 @@ export const ListAliasesToResponse = new ListAliasesToResponse$Type(); class DeleteAliasRequest$Type extends MessageType { constructor() { super("api.DeleteAliasRequest", [ - { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "AliasName", kind: "scalar", localName: "AliasName", jsonName: "AliasName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID", "AliasType", "AliasName"] } } }); } create(value?: PartialMessage): DeleteAliasRequest { @@ -898,7 +898,7 @@ export const DeleteAliasResponse = new DeleteAliasResponse$Type(); class DeleteAllAliasesFromRequest$Type extends MessageType { constructor() { super("api.DeleteAllAliasesFromRequest", [ - { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID"] } } }); } @@ -991,7 +991,7 @@ export const DeleteAllAliasesFromResponse = new DeleteAllAliasesFromResponse$Typ class DeleteAllAliasesToRequest$Type extends MessageType { constructor() { super("api.DeleteAllAliasesToRequest", [ - { no: 1, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ToID"] } } }); } create(value?: PartialMessage): DeleteAllAliasesToRequest { @@ -1076,8 +1076,8 @@ export const DeleteAllAliasesToResponse = new DeleteAllAliasesToResponse$Type(); class DeleteAllAliasesFromToRequest$Type extends MessageType { constructor() { super("api.DeleteAllAliasesFromToRequest", [ - { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "FromID", kind: "scalar", localName: "FromID", jsonName: "FromID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ToID", kind: "scalar", localName: "ToID", jsonName: "ToID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "AliasType", kind: "enum", localName: "AliasType", jsonName: "AliasType", T: () => ["api.AliasType", AliasType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["FromID", "ToID"] } } }); } diff --git a/api.ts b/api.ts index ed486652..6e7fda4b 100644 --- a/api.ts +++ b/api.ts @@ -473,7 +473,7 @@ export const GetUIPermissionsResult = new GetUIPermissionsResult$Type(); class ListUserUIPermissionsRequest$Type extends MessageType { constructor() { super("api.ListUserUIPermissionsRequest", [ - { no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): ListUserUIPermissionsRequest { @@ -567,7 +567,7 @@ export const ListUserUIPermissionsResult = new ListUserUIPermissionsResult$Type( class RegisterPackageRequest$Type extends MessageType { constructor() { super("api.RegisterPackageRequest", [ - { no: 1, name: "PackageName", kind: "scalar", localName: "PackageName", jsonName: "PackageName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "PackageName", kind: "scalar", localName: "PackageName", jsonName: "PackageName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Clients", kind: "message", localName: "Clients", jsonName: "Clients", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClientAPI }, { no: 3, name: "ForceFullScopeCreation", kind: "scalar", localName: "ForceFullScopeCreation", jsonName: "ForceFullScopeCreation", T: 8 /*ScalarType.BOOL*/ }, { no: 4, name: "Roles", kind: "message", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Role }, @@ -700,9 +700,9 @@ export const RegisterPackageResult = new RegisterPackageResult$Type(); class CreateScopeRequest$Type extends MessageType { constructor() { super("api.CreateScopeRequest", [ - { no: 1, name: "ModuleName", kind: "scalar", localName: "ModuleName", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "ModuleName", kind: "scalar", localName: "ModuleName", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): CreateScopeRequest { @@ -800,9 +800,9 @@ export const CreateScopeResult = new CreateScopeResult$Type(); class DeleteScopeRequest$Type extends MessageType { constructor() { super("api.DeleteScopeRequest", [ - { no: 1, name: "ModuleName", kind: "scalar", localName: "ModuleName", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "ModuleName", kind: "scalar", localName: "ModuleName", jsonName: "ModuleName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): DeleteScopeRequest { @@ -900,8 +900,8 @@ export const DeleteScopeResult = new DeleteScopeResult$Type(); class CleanScopeRequest$Type extends MessageType { constructor() { super("api.CleanScopeRequest", [ - { no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Scope", kind: "message", localName: "Scope", jsonName: "Scope", T: () => Scope, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): CleanScopeRequest { @@ -1054,7 +1054,7 @@ export const UserRPT = new UserRPT$Type(); class ListUserRPTsRequest$Type extends MessageType { constructor() { super("api.ListUserRPTsRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] }, { no: 3, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID"] } } }); @@ -1164,7 +1164,7 @@ export const ListUserRPTsResponse = new ListUserRPTsResponse$Type(); class SynchronizeUserRPTsRequest$Type extends MessageType { constructor() { super("api.SynchronizeUserRPTsRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID"] } } }); } create(value?: PartialMessage): SynchronizeUserRPTsRequest { diff --git a/appointment.ts b/appointment.ts index 9f8c44de..c37f19c4 100644 --- a/appointment.ts +++ b/appointment.ts @@ -287,15 +287,15 @@ class AppointmentPayload$Type extends MessageType { constructor() { super("api.AppointmentPayload", [ { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "api.dataRestrictionKey": "Appointment", "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] } } }, - { no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission, options: { "validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use Loading and Unloading fields instead", readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Appointment", Group: "appointment" }] } } }, + { no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission, options: { "n1validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use Loading and Unloading fields instead", readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Appointment", Group: "appointment" }] } } }, { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection, options: { "api.kpiExclude": { Items: [{ Context: "Appointment", Group: "appointment" }] } } }, { no: 29, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys constraining the slot booking" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.parentEntity": "Appointment" } }, { no: 19, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Appointment" } }, { 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: { maxItems: "0", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use Attendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved,EmailsAdded" } }, - { no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use RemovedAttendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved" } }, + { no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { maxItems: "0", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use Attendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved,EmailsAdded" } }, + { no: 16, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { maxItems: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated field, to be removed. Use RemovedAttendees field instead", readOnly: true }, "api.aggSkip": "EmailsRemoved" } }, { no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" }, "api.aggSkip": "StatusUpdated" } }, - { no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 30, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime }, { no: 10, 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", "api.parentEntity": "Appointment" } }, { no: 13, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } }, @@ -308,7 +308,7 @@ class AppointmentPayload$Type extends MessageType { { no: 24, 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: { "validate.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: 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*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } }); diff --git a/appointmentInput.ts b/appointmentInput.ts index 988ed0f8..a0dd1a6e 100644 --- a/appointmentInput.ts +++ b/appointmentInput.ts @@ -40,7 +40,7 @@ export interface AppointmentCreatedPayload { // TODO ?? // repeated AppointmentCommission Commissions = 2; // [ - // (validate.rules).repeated.min_items = 1 + // (n1validate.rules).repeated.min_items = 1 // ]; // Set of segmentation constraining the slot booking @@ -70,8 +70,8 @@ export interface AppointmentCreatedPayload { // repeated string Emails = 7 // [ - // (validate.rules).repeated.min_items = 1, - // (validate.rules).repeated.items.string = {email: true, ignore_empty: true}, + // (n1validate.rules).repeated.min_items = 1, + // (n1validate.rules).repeated.items.string = {email: true, ignore_empty: 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\"]"} @@ -1897,7 +1897,7 @@ export interface AppointmentRedetectedResponse { class AppointmentCreatedPayload$Type extends MessageType { constructor() { super("api.AppointmentCreatedPayload", [ - { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 28, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 15, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, @@ -1910,7 +1910,7 @@ class AppointmentCreatedPayload$Type extends MessageType 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: { "validate.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: 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 { @@ -2044,9 +2044,9 @@ export const AppointmentCreatedPayload = new AppointmentCreatedPayload$Type(); class AppointmentCreatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Created", "api.preAggMethods": "checkWMSCreated" }); } create(value?: PartialMessage): AppointmentCreatedEvent { @@ -2104,9 +2104,9 @@ export const AppointmentCreatedEvent = new AppointmentCreatedEvent$Type(); class AppointmentCreatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): AppointmentCreatedRequest { @@ -2264,9 +2264,9 @@ export const AppointmentCanceledPayload = new AppointmentCanceledPayload$Type(); class AppointmentCanceledEvent$Type extends MessageType { constructor() { super("api.AppointmentCanceledEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Canceled" }); } create(value?: PartialMessage): AppointmentCanceledEvent { @@ -2324,9 +2324,9 @@ export const AppointmentCanceledEvent = new AppointmentCanceledEvent$Type(); class AppointmentCanceledRequest$Type extends MessageType { constructor() { super("api.AppointmentCanceledRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Canceled" }); } create(value?: PartialMessage): AppointmentCanceledRequest { @@ -2484,9 +2484,9 @@ export const AppointmentDeletedPayload = new AppointmentDeletedPayload$Type(); class AppointmentDeletedEvent$Type extends MessageType { constructor() { super("api.AppointmentDeletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Deleted", "api.preAggMethods": "checkDeleted" }); } create(value?: PartialMessage): AppointmentDeletedEvent { @@ -2544,9 +2544,9 @@ export const AppointmentDeletedEvent = new AppointmentDeletedEvent$Type(); class AppointmentDeletedRequest$Type extends MessageType { constructor() { super("api.AppointmentDeletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDeletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Deleted" }); } create(value?: PartialMessage): AppointmentDeletedRequest { @@ -2711,9 +2711,9 @@ export const AppointmentSlotUpdatedPayload = new AppointmentSlotUpdatedPayload$T class AppointmentSlotUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSlotUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSlotUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "SlotUpdated", "api.preAggMethods": "checkWMSCreated" }); } create(value?: PartialMessage): AppointmentSlotUpdatedEvent { @@ -2771,9 +2771,9 @@ export const AppointmentSlotUpdatedEvent = new AppointmentSlotUpdatedEvent$Type( class AppointmentSlotUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSlotUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSlotUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "SlotUpdated" }); } create(value?: PartialMessage): AppointmentSlotUpdatedRequest { @@ -2953,9 +2953,9 @@ export const AppointmentCommissionsUpdatedPayload = new AppointmentCommissionsUp class AppointmentCommissionsUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCommissionsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCommissionsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CommissionsUpdated", "api.preAggMethods": "checkWMSCreated" }); } create(value?: PartialMessage): AppointmentCommissionsUpdatedEvent { @@ -3013,9 +3013,9 @@ export const AppointmentCommissionsUpdatedEvent = new AppointmentCommissionsUpda class AppointmentCommissionsUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCommissionsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCommissionsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CommissionsUpdated" }); } create(value?: PartialMessage): AppointmentCommissionsUpdatedRequest { @@ -3181,9 +3181,9 @@ export const AppointmentReasonUpdatedPayload = new AppointmentReasonUpdatedPaylo class AppointmentReasonUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentReasonUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReasonUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ReasonUpdated" }); } create(value?: PartialMessage): AppointmentReasonUpdatedEvent { @@ -3241,9 +3241,9 @@ export const AppointmentReasonUpdatedEvent = new AppointmentReasonUpdatedEvent$T class AppointmentReasonUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentReasonUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReasonUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReasonUpdated", "api.preAggMethods": "checkWMSCreated" }); } create(value?: PartialMessage): AppointmentReasonUpdatedRequest { @@ -3409,9 +3409,9 @@ export const AppointmentAttachmentAddedPayload = new AppointmentAttachmentAddedP class AppointmentAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): AppointmentAttachmentAddedEvent { @@ -3469,9 +3469,9 @@ export const AppointmentAttachmentAddedEvent = new AppointmentAttachmentAddedEve class AppointmentAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): AppointmentAttachmentAddedRequest { @@ -3637,9 +3637,9 @@ export const AppointmentAttachmentRemovedPayload = new AppointmentAttachmentRemo class AppointmentAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): AppointmentAttachmentRemovedEvent { @@ -3697,9 +3697,9 @@ export const AppointmentAttachmentRemovedEvent = new AppointmentAttachmentRemove class AppointmentAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): AppointmentAttachmentRemovedRequest { @@ -3865,9 +3865,9 @@ export const AppointmentCarrierInformationUpdatedPayload = new AppointmentCarrie class AppointmentCarrierInformationUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierInformationUpdated" }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedEvent { @@ -3925,9 +3925,9 @@ export const AppointmentCarrierInformationUpdatedEvent = new AppointmentCarrierI class AppointmentCarrierInformationUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierInformationUpdated" }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedRequest { @@ -4085,9 +4085,9 @@ export const AppointmentCarrierExpectedPayload = new AppointmentCarrierExpectedP class AppointmentCarrierExpectedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierExpected" }); } create(value?: PartialMessage): AppointmentCarrierExpectedEvent { @@ -4145,9 +4145,9 @@ export const AppointmentCarrierExpectedEvent = new AppointmentCarrierExpectedEve class AppointmentCarrierExpectedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierExpected" }); } create(value?: PartialMessage): AppointmentCarrierExpectedRequest { @@ -4305,9 +4305,9 @@ export const AppointmentAllocationErrorPayload = new AppointmentAllocationErrorP class AppointmentAllocationErrorEvent$Type extends MessageType { constructor() { super("api.AppointmentAllocationErrorEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationErrorPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): AppointmentAllocationErrorEvent { @@ -4365,9 +4365,9 @@ export const AppointmentAllocationErrorEvent = new AppointmentAllocationErrorEve class AppointmentAllocationErrorRequest$Type extends MessageType { constructor() { super("api.AppointmentAllocationErrorRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationErrorPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): AppointmentAllocationErrorRequest { @@ -4525,9 +4525,9 @@ export const AppointmentAllocationConfirmedPayload = new AppointmentAllocationCo class AppointmentAllocationConfirmedEvent$Type extends MessageType { constructor() { super("api.AppointmentAllocationConfirmedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationConfirmedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationConfirmedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AllocationConfirmed", "api.preAggMethods": "checkWMSCreated" }); } create(value?: PartialMessage): AppointmentAllocationConfirmedEvent { @@ -4585,9 +4585,9 @@ export const AppointmentAllocationConfirmedEvent = new AppointmentAllocationConf class AppointmentAllocationConfirmedRequest$Type extends MessageType { constructor() { super("api.AppointmentAllocationConfirmedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationConfirmedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAllocationConfirmedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AllocationConfirmed" }); } create(value?: PartialMessage): AppointmentAllocationConfirmedRequest { @@ -4745,9 +4745,9 @@ export const AppointmentCarrierArrivedPayload = new AppointmentCarrierArrivedPay class AppointmentCarrierArrivedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierArrived" }); } create(value?: PartialMessage): AppointmentCarrierArrivedEvent { @@ -4805,9 +4805,9 @@ export const AppointmentCarrierArrivedEvent = new AppointmentCarrierArrivedEvent class AppointmentCarrierArrivedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierArrived" }); } create(value?: PartialMessage): AppointmentCarrierArrivedRequest { @@ -4965,9 +4965,9 @@ export const AppointmentLoadingStartedPayload = new AppointmentLoadingStartedPay class AppointmentLoadingStartedEvent$Type extends MessageType { constructor() { super("api.AppointmentLoadingStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "LoadingStarted" }); } create(value?: PartialMessage): AppointmentLoadingStartedEvent { @@ -5025,9 +5025,9 @@ export const AppointmentLoadingStartedEvent = new AppointmentLoadingStartedEvent class AppointmentLoadingStartedRequest$Type extends MessageType { constructor() { super("api.AppointmentLoadingStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "LoadingStarted" }); } create(value?: PartialMessage): AppointmentLoadingStartedRequest { @@ -5185,9 +5185,9 @@ export const AppointmentLoadingCompletedPayload = new AppointmentLoadingComplete class AppointmentLoadingCompletedEvent$Type extends MessageType { constructor() { super("api.AppointmentLoadingCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "LoadingCompleted" }); } create(value?: PartialMessage): AppointmentLoadingCompletedEvent { @@ -5245,9 +5245,9 @@ export const AppointmentLoadingCompletedEvent = new AppointmentLoadingCompletedE class AppointmentLoadingCompletedRequest$Type extends MessageType { constructor() { super("api.AppointmentLoadingCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentLoadingCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "LoadingCompleted" }); } create(value?: PartialMessage): AppointmentLoadingCompletedRequest { @@ -5405,9 +5405,9 @@ export const AppointmentUnloadingStartedPayload = new AppointmentUnloadingStarte class AppointmentUnloadingStartedEvent$Type extends MessageType { constructor() { super("api.AppointmentUnloadingStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "UnloadingStarted" }); } create(value?: PartialMessage): AppointmentUnloadingStartedEvent { @@ -5465,9 +5465,9 @@ export const AppointmentUnloadingStartedEvent = new AppointmentUnloadingStartedE class AppointmentUnloadingStartedRequest$Type extends MessageType { constructor() { super("api.AppointmentUnloadingStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "UnloadingStarted" }); } create(value?: PartialMessage): AppointmentUnloadingStartedRequest { @@ -5625,9 +5625,9 @@ export const AppointmentUnloadingCompletedPayload = new AppointmentUnloadingComp class AppointmentUnloadingCompletedEvent$Type extends MessageType { constructor() { super("api.AppointmentUnloadingCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "UnloadingCompleted" }); } create(value?: PartialMessage): AppointmentUnloadingCompletedEvent { @@ -5685,9 +5685,9 @@ export const AppointmentUnloadingCompletedEvent = new AppointmentUnloadingComple class AppointmentUnloadingCompletedRequest$Type extends MessageType { constructor() { super("api.AppointmentUnloadingCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentUnloadingCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "UnloadingCompleted" }); } create(value?: PartialMessage): AppointmentUnloadingCompletedRequest { @@ -5845,9 +5845,9 @@ export const AppointmentCarrierDepartedPayload = new AppointmentCarrierDepartedP class AppointmentCarrierDepartedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted" }); } create(value?: PartialMessage): AppointmentCarrierDepartedEvent { @@ -5905,9 +5905,9 @@ export const AppointmentCarrierDepartedEvent = new AppointmentCarrierDepartedEve class AppointmentCarrierDepartedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierDeparted" }); } create(value?: PartialMessage): AppointmentCarrierDepartedRequest { @@ -6073,9 +6073,9 @@ export const AppointmentMetaDataUpdatedPayload = new AppointmentMetaDataUpdatedP class AppointmentMetaDataUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentMetaDataUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): AppointmentMetaDataUpdatedEvent { @@ -6133,9 +6133,9 @@ export const AppointmentMetaDataUpdatedEvent = new AppointmentMetaDataUpdatedEve class AppointmentMetaDataUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentMetaDataUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): AppointmentMetaDataUpdatedRequest { @@ -6246,7 +6246,7 @@ export const AppointmentMetaDataUpdatedResponse = new AppointmentMetaDataUpdated class AppointmentEmailsAddedPayload$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedPayload", [ - { no: 1, 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\"]" } } }, + { no: 1, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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\"]" } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Emails"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "EmailsAdded" }); } @@ -6301,9 +6301,9 @@ export const AppointmentEmailsAddedPayload = new AppointmentEmailsAddedPayload$T class AppointmentEmailsAddedEvent$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "EmailsAdded", "api.preAggMethods": "addEmails" }); } create(value?: PartialMessage): AppointmentEmailsAddedEvent { @@ -6361,9 +6361,9 @@ export const AppointmentEmailsAddedEvent = new AppointmentEmailsAddedEvent$Type( class AppointmentEmailsAddedRequest$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "EmailsAdded" }); } create(value?: PartialMessage): AppointmentEmailsAddedRequest { @@ -6474,7 +6474,7 @@ export const AppointmentEmailsAddedResponse = new AppointmentEmailsAddedResponse class AppointmentEmailsRemovedPayload$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedPayload", [ - { no: 1, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", 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\"]" } } }, + { no: 1, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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\"]" } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["RemovedEmails"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "EmailsRemoved" }); } @@ -6529,9 +6529,9 @@ export const AppointmentEmailsRemovedPayload = new AppointmentEmailsRemovedPaylo class AppointmentEmailsRemovedEvent$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "EmailsRemoved", "api.preAggMethods": "removeEmails" }); } create(value?: PartialMessage): AppointmentEmailsRemovedEvent { @@ -6589,9 +6589,9 @@ export const AppointmentEmailsRemovedEvent = new AppointmentEmailsRemovedEvent$T class AppointmentEmailsRemovedRequest$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentEmailsRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "EmailsRemoved" }); } create(value?: PartialMessage): AppointmentEmailsRemovedRequest { @@ -6702,7 +6702,7 @@ export const AppointmentEmailsRemovedResponse = new AppointmentEmailsRemovedResp class AppointmentAttendeesAddedPayload$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedPayload", [ - { no: 1, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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: 1, 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: ["Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttendeesAdded" }); } create(value?: PartialMessage): AppointmentAttendeesAddedPayload { @@ -6749,9 +6749,9 @@ export const AppointmentAttendeesAddedPayload = new AppointmentAttendeesAddedPay class AppointmentAttendeesAddedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AttendeesAdded", "api.preAggMethods": "addAttendees" }); } create(value?: PartialMessage): AppointmentAttendeesAddedEvent { @@ -6809,9 +6809,9 @@ export const AppointmentAttendeesAddedEvent = new AppointmentAttendeesAddedEvent class AppointmentAttendeesAddedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttendeesAdded" }); } create(value?: PartialMessage): AppointmentAttendeesAddedRequest { @@ -6922,7 +6922,7 @@ export const AppointmentAttendeesAddedResponse = new AppointmentAttendeesAddedRe class AppointmentAttendeesRemovedPayload$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedPayload", [ - { no: 1, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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 contacts removed from the appointment (user uuid)" } } } + { no: 1, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", 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 contacts removed from the appointment (user uuid)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["RemovedAttendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttendeesRemoved" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedPayload { @@ -6969,9 +6969,9 @@ export const AppointmentAttendeesRemovedPayload = new AppointmentAttendeesRemove class AppointmentAttendeesRemovedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AttendeesRemoved", "api.preAggMethods": "removeAttendees" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedEvent { @@ -7029,9 +7029,9 @@ export const AppointmentAttendeesRemovedEvent = new AppointmentAttendeesRemovedE class AppointmentAttendeesRemovedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentAttendeesRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttendeesRemoved" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedRequest { @@ -7189,9 +7189,9 @@ export const AppointmentSanitisedPayload = new AppointmentSanitisedPayload$Type( class AppointmentSanitisedEvent$Type extends MessageType { constructor() { super("api.AppointmentSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): AppointmentSanitisedEvent { @@ -7249,9 +7249,9 @@ export const AppointmentSanitisedEvent = new AppointmentSanitisedEvent$Type(); class AppointmentSanitisedRequest$Type extends MessageType { constructor() { super("api.AppointmentSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): AppointmentSanitisedRequest { @@ -7409,9 +7409,9 @@ export const AppointmentCustomFieldsUpdatedPayload = new AppointmentCustomFields class AppointmentCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): AppointmentCustomFieldsUpdatedEvent { @@ -7469,9 +7469,9 @@ export const AppointmentCustomFieldsUpdatedEvent = new AppointmentCustomFieldsUp class AppointmentCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): AppointmentCustomFieldsUpdatedRequest { @@ -7620,9 +7620,9 @@ export const AppointmentRedetectedPayload = new AppointmentRedetectedPayload$Typ class AppointmentRedetectedEvent$Type extends MessageType { constructor() { super("api.AppointmentRedetectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentRedetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): AppointmentRedetectedEvent { @@ -7680,9 +7680,9 @@ export const AppointmentRedetectedEvent = new AppointmentRedetectedEvent$Type(); class AppointmentRedetectedRequest$Type extends MessageType { constructor() { super("api.AppointmentRedetectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentRedetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): AppointmentRedetectedRequest { diff --git a/appointmentQuery.ts b/appointmentQuery.ts index 7dc282cd..e3e08be2 100644 --- a/appointmentQuery.ts +++ b/appointmentQuery.ts @@ -187,8 +187,8 @@ export interface CrossFindAppointmentResult { class AppointmentByIdQuery$Type extends MessageType { constructor() { super("api.AppointmentByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => AppointmentQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -302,7 +302,7 @@ export const AppointmentByIdResult = new AppointmentByIdResult$Type(); class AppointmentByFilterQuery$Type extends MessageType { constructor() { super("api.AppointmentByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -504,7 +504,7 @@ export const AppointmentQueryOptions = new AppointmentQueryOptions$Type(); class AppointmentByMatchQuery$Type extends MessageType { constructor() { super("api.AppointmentByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, diff --git a/attachmentType.ts b/attachmentType.ts index b6dede9d..708d365d 100644 --- a/attachmentType.ts +++ b/attachmentType.ts @@ -217,11 +217,11 @@ export interface DeleteAttachmentsTypeForResourceResponse { class CreateAttachmentTypeRequest$Type extends MessageType { constructor() { super("api.CreateAttachmentTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Code", "Entity", "Label", "SharePolicy"] } } }); } create(value?: PartialMessage): CreateAttachmentTypeRequest { @@ -295,7 +295,7 @@ export const CreateAttachmentTypeRequest = new CreateAttachmentTypeRequest$Type( class CreateAttachmentTypeResponse$Type extends MessageType { constructor() { super("api.CreateAttachmentTypeResponse", [ - { no: 1, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): CreateAttachmentTypeResponse { @@ -341,10 +341,10 @@ export const CreateAttachmentTypeResponse = new CreateAttachmentTypeResponse$Typ class GetAttachmentTypeRequest$Type extends MessageType { constructor() { super("api.GetAttachmentTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } }, + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Code", "Entity"] } } }); } create(value?: PartialMessage): GetAttachmentTypeRequest { @@ -411,7 +411,7 @@ export const GetAttachmentTypeRequest = new GetAttachmentTypeRequest$Type(); class GetAttachmentTypeResponse$Type extends MessageType { constructor() { super("api.GetAttachmentTypeResponse", [ - { no: 1, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetAttachmentTypeResponse { @@ -457,8 +457,8 @@ export const GetAttachmentTypeResponse = new GetAttachmentTypeResponse$Type(); class ListAttachmentTypeRequest$Type extends MessageType { constructor() { super("api.ListAttachmentTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListAttachmentTypeRequest { @@ -511,7 +511,7 @@ export const ListAttachmentTypeRequest = new ListAttachmentTypeRequest$Type(); class ListAttachmentTypeResponse$Type extends MessageType { constructor() { super("api.ListAttachmentTypeResponse", [ - { no: 1, name: "AttachmentTypes", kind: "message", localName: "AttachmentTypes", jsonName: "AttachmentTypes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentType, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "AttachmentTypes", kind: "message", localName: "AttachmentTypes", jsonName: "AttachmentTypes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentType, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ]); } create(value?: PartialMessage): ListAttachmentTypeResponse { @@ -558,12 +558,12 @@ export const ListAttachmentTypeResponse = new ListAttachmentTypeResponse$Type(); class UpdateAttachmentTypeRequest$Type extends MessageType { constructor() { super("api.UpdateAttachmentTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } }, + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 6, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } } + { no: 5, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Code", "Entity"] } } }); } create(value?: PartialMessage): UpdateAttachmentTypeRequest { @@ -644,7 +644,7 @@ export const UpdateAttachmentTypeRequest = new UpdateAttachmentTypeRequest$Type( class UpdateAttachmentTypeResponse$Type extends MessageType { constructor() { super("api.UpdateAttachmentTypeResponse", [ - { no: 1, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): UpdateAttachmentTypeResponse { @@ -690,10 +690,10 @@ export const UpdateAttachmentTypeResponse = new UpdateAttachmentTypeResponse$Typ class DeleteAttachmentTypeRequest$Type extends MessageType { constructor() { super("api.DeleteAttachmentTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } }, + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^[a-zA-Z0-9-]*" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]*" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Code", "Entity"] } } }); } create(value?: PartialMessage): DeleteAttachmentTypeRequest { @@ -798,7 +798,7 @@ export const DeleteAttachmentTypeResponse = new DeleteAttachmentTypeResponse$Typ class DeleteAllAttachmentsTypeRequest$Type extends MessageType { constructor() { super("api.DeleteAllAttachmentsTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): DeleteAllAttachmentsTypeRequest { @@ -884,7 +884,7 @@ export const DeleteAllAttachmentsTypeResponse = new DeleteAllAttachmentsTypeResp class DeleteAttachmentsTypeForResourceRequest$Type extends MessageType { constructor() { super("api.DeleteAttachmentsTypeForResourceRequest", [ - { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID"] } } }); } create(value?: PartialMessage): DeleteAttachmentsTypeForResourceRequest { diff --git a/attachmentV2.ts b/attachmentV2.ts index 2ca03c52..b5038ac5 100644 --- a/attachmentV2.ts +++ b/attachmentV2.ts @@ -29,7 +29,7 @@ export interface Attachment { /** * string ProjectID = 1 * [ - * (validate.rules).string.min_len = 1 + * (n1validate.rules).string.min_len = 1 * ]; * * @generated from protobuf field: string Name = 2 @@ -313,16 +313,16 @@ export enum AttachmentKind { class Attachment$Type extends MessageType { constructor() { super("api.Attachment", [ - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "validate.rules": { message: { required: true } } } }, - { no: 5, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI of the attachment through which it can be downloaded (must be authenticated with a bearer token). In case the Attachment is a link, the URI is the link itself." } } }, - { no: 6, name: "MIMEType", kind: "scalar", localName: "MIMEType", jsonName: "MIMEType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 11, name: "UploadedAt", kind: "scalar", localName: "UploadedAt", jsonName: "UploadedAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "AttachmentType", kind: "message", localName: "AttachmentType", jsonName: "AttachmentType", T: () => AttachmentType, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 5, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI of the attachment through which it can be downloaded (must be authenticated with a bearer token). In case the Attachment is a link, the URI is the link itself." } } }, + { no: 6, name: "MIMEType", kind: "scalar", localName: "MIMEType", jsonName: "MIMEType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 11, name: "UploadedAt", kind: "scalar", localName: "UploadedAt", jsonName: "UploadedAt", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, { no: 12, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.AttachmentKind", AttachmentKind], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Kind of the attachment (file or link)" } } }, - { no: 13, name: "WebURI", kind: "scalar", localName: "WebURI", jsonName: "WebURI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI of the attachment through which it can be accessed on an authenticated web app. In case the Attachment is a link, the URI is empty." } } }, - { no: 14, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 15, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 13, name: "WebURI", kind: "scalar", localName: "WebURI", jsonName: "WebURI", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI of the attachment through which it can be accessed on an authenticated web app. In case the Attachment is a link, the URI is empty." } } }, + { no: 14, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 15, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): Attachment { @@ -431,9 +431,9 @@ export const Attachment = new Attachment$Type(); class DownloadAttachmentV2Request$Type extends MessageType { constructor() { super("api.DownloadAttachmentV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the attachment to download" } } }, - { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the attachment to download" } } }, + { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name", "EntityRefID"] } } }); } create(value?: PartialMessage): DownloadAttachmentV2Request { @@ -494,7 +494,7 @@ class DownloadAttachmentV2Response$Type extends MessageType AttachmentTypeResponseHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the response" } } }, - { no: 1, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataResponse, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataResponse, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): DownloadAttachmentV2Response { @@ -546,9 +546,9 @@ export const DownloadAttachmentV2Response = new DownloadAttachmentV2Response$Typ class UploadAttachmentV2Request$Type extends MessageType { constructor() { super("api.UploadAttachmentV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } }, - { no: 4, name: "Attachment", kind: "message", localName: "Attachment", jsonName: "Attachment", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } }, + { no: 4, name: "Attachment", kind: "message", localName: "Attachment", jsonName: "Attachment", T: () => FileDataRequest, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AttachmentTypeID", "EntityRefID", "Attachment"] } } }); } create(value?: PartialMessage): UploadAttachmentV2Request { @@ -608,7 +608,7 @@ class UploadAttachmentV2Response$Type extends MessageType AttachmentTypeResponseHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the response" } } }, - { no: 1, name: "Attachment", kind: "message", localName: "Attachment", jsonName: "Attachment", T: () => Attachment, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Attachment", kind: "message", localName: "Attachment", jsonName: "Attachment", T: () => Attachment, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): UploadAttachmentV2Response { @@ -660,10 +660,10 @@ export const UploadAttachmentV2Response = new UploadAttachmentV2Response$Type(); class AddLinkV2Request$Type extends MessageType { constructor() { super("api.AddLinkV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } }, - { no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the link to add to the entity" } } }, - { no: 5, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI to add to the entity" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } }, + { no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the link to add to the entity" } } }, + { no: 5, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI to add to the entity" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AttachmentTypeID", "EntityRefID", "Name", "URI"] } } }); } create(value?: PartialMessage): AddLinkV2Request { @@ -731,7 +731,7 @@ class AddLinkV2Response$Type extends MessageType { constructor() { super("api.AddLinkV2Response", [ { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => AttachmentTypeResponseHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the response" } } }, - { no: 1, name: "Attachment", kind: "message", localName: "Attachment", jsonName: "Attachment", T: () => Attachment, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Attachment", kind: "message", localName: "Attachment", jsonName: "Attachment", T: () => Attachment, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): AddLinkV2Response { @@ -783,9 +783,9 @@ export const AddLinkV2Response = new AddLinkV2Response$Type(); class DeleteAttachmentV2Request$Type extends MessageType { constructor() { super("api.DeleteAttachmentV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the attachment to download" } } }, - { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the attachment to download" } } }, + { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name", "EntityRefID", "AttachmentTypeID"] } } }); } create(value?: PartialMessage): DeleteAttachmentV2Request { @@ -891,7 +891,7 @@ export const DeleteAttachmentV2Response = new DeleteAttachmentV2Response$Type(); class ListAttachmentsV2Request$Type extends MessageType { constructor() { super("api.ListAttachmentsV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Identifier of the entity where the attachment is located" } } }, { no: 4, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Type of the entity where the attachment is located" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); @@ -954,7 +954,7 @@ class ListAttachmentsV2Response$Type extends MessageType ResponseHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the response" } } }, - { no: 1, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Attachment, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of attachments matching to the request" } } } + { no: 1, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Attachment, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of attachments matching to the request" } } } ]); } create(value?: PartialMessage): ListAttachmentsV2Response { @@ -1007,9 +1007,9 @@ export const ListAttachmentsV2Response = new ListAttachmentsV2Response$Type(); class ShareAttachmentV2Request$Type extends MessageType { constructor() { super("api.ShareAttachmentV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the attachment to download" } } }, - { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestAttachmentTypeHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the attachment to download" } } }, + { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the entity where the attachment is located" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name", "EntityRefID", "AttachmentTypeID"] } } }); } create(value?: PartialMessage): ShareAttachmentV2Request { @@ -1070,7 +1070,7 @@ class ShareAttachmentV2Response$Type extends MessageType AttachmentTypeResponseHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the response" } } }, - { no: 1, name: "ShareLink", kind: "scalar", localName: "ShareLink", jsonName: "ShareLink", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Link to access to the attchment if the sharing policy allows to" } } } + { no: 1, name: "ShareLink", kind: "scalar", localName: "ShareLink", jsonName: "ShareLink", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Link to access to the attchment if the sharing policy allows to" } } } ]); } create(value?: PartialMessage): ShareAttachmentV2Response { @@ -1123,7 +1123,7 @@ export const ShareAttachmentV2Response = new ShareAttachmentV2Response$Type(); class DeleteAllAttachmentsV2Request$Type extends MessageType { constructor() { super("api.DeleteAllAttachmentsV2Request", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): DeleteAllAttachmentsV2Request { diff --git a/base.ts b/base.ts index aea4c75f..2b0df4c7 100644 --- a/base.ts +++ b/base.ts @@ -99,7 +99,7 @@ class AdminAddress$Type extends MessageType { constructor() { super("api.AdminAddress", [ { no: 1, name: "City", kind: "scalar", localName: "City", jsonName: "City", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in ISO_3166-1 format", example: "[\"FR\", \"FRA\", \"250\"]" } } }, + { no: 2, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in ISO_3166-1 format", example: "[\"FR\", \"FRA\", \"250\"]" } } }, { no: 3, name: "GeographicalCoordinates", kind: "message", localName: "GeographicalCoordinates", jsonName: "GeographicalCoordinates", T: () => AdminGeographicalCoordinates }, { no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "POBoxNumber", kind: "scalar", localName: "POBoxNumber", jsonName: "POBoxNumber", T: 9 /*ScalarType.STRING*/ }, diff --git a/billing.ts b/billing.ts index 6a0a2fef..7a5868d8 100644 --- a/billing.ts +++ b/billing.ts @@ -78,11 +78,11 @@ export enum GenerateBillingFormat { class GenerateRequest$Type extends MessageType { constructor() { super("api.GenerateRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Comment", kind: "scalar", localName: "Comment", jsonName: "Comment", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "FromDate", kind: "scalar", localName: "FromDate", jsonName: "FromDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, - { no: 4, name: "ToDate", kind: "scalar", localName: "ToDate", jsonName: "ToDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, - { no: 5, name: "OutputFormat", kind: "enum", localName: "OutputFormat", jsonName: "OutputFormat", T: () => ["api.GenerateBillingFormat", GenerateBillingFormat], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 3, name: "FromDate", kind: "scalar", localName: "FromDate", jsonName: "FromDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, + { no: 4, name: "ToDate", kind: "scalar", localName: "ToDate", jsonName: "ToDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, + { no: 5, name: "OutputFormat", kind: "enum", localName: "OutputFormat", jsonName: "OutputFormat", T: () => ["api.GenerateBillingFormat", GenerateBillingFormat], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID", "FromDate", "ToDate"] } } }); } create(value?: PartialMessage): GenerateRequest { diff --git a/calendar.ts b/calendar.ts index 2009d388..6db9e661 100644 --- a/calendar.ts +++ b/calendar.ts @@ -656,11 +656,11 @@ class ExceptionalClosure$Type extends MessageType { constructor() { super("api.ExceptionalClosure", [ { no: 1, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage }, - { no: 2, 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])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } }, - { no: 3, 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_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } }, + { no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } }, + { no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } }, { no: 4, name: "FullDay", kind: "scalar", localName: "FullDay", jsonName: "FullDay", T: 8 /*ScalarType.BOOL*/ }, - { no: 5, name: "StartHour", kind: "scalar", localName: "StartHour", jsonName: "StartHour", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } }, - { no: 6, name: "EndHour", kind: "scalar", localName: "EndHour", jsonName: "EndHour", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } + { no: 5, name: "StartHour", kind: "scalar", localName: "StartHour", jsonName: "StartHour", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } }, + { no: 6, name: "EndHour", kind: "scalar", localName: "EndHour", jsonName: "EndHour", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } ]); } create(value?: PartialMessage): ExceptionalClosure { @@ -742,10 +742,10 @@ export const ExceptionalClosure = new ExceptionalClosure$Type(); class Calendar$Type extends MessageType { constructor() { super("api.Calendar", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType] }, { no: 3, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }, { no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } } @@ -837,8 +837,8 @@ export const Calendar = new Calendar$Type(); class CreateOnOrganisationRequest$Type extends MessageType { constructor() { super("api.CreateOnOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }, { no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } } @@ -915,7 +915,7 @@ export const CreateOnOrganisationRequest = new CreateOnOrganisationRequest$Type( class CreateOnOrganisationResponse$Type extends MessageType { constructor() { super("api.CreateOnOrganisationResponse", [ - { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): CreateOnOrganisationResponse { @@ -961,8 +961,8 @@ export const CreateOnOrganisationResponse = new CreateOnOrganisationResponse$Typ class GetOnOrganisationRequest$Type extends MessageType { constructor() { super("api.GetOnOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): GetOnOrganisationRequest { @@ -1015,7 +1015,7 @@ export const GetOnOrganisationRequest = new GetOnOrganisationRequest$Type(); class GetOnOrganisationResponse$Type extends MessageType { constructor() { super("api.GetOnOrganisationResponse", [ - { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetOnOrganisationResponse { @@ -1061,7 +1061,7 @@ export const GetOnOrganisationResponse = new GetOnOrganisationResponse$Type(); class ListOnOrganisationRequest$Type extends MessageType { constructor() { super("api.ListOnOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListOnOrganisationRequest { @@ -1154,10 +1154,10 @@ export const ListOnOrganisationResponse = new ListOnOrganisationResponse$Type(); class UpdateOnOrganisationRequest$Type extends MessageType { constructor() { super("api.UpdateOnOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }, { no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); @@ -1240,7 +1240,7 @@ export const UpdateOnOrganisationRequest = new UpdateOnOrganisationRequest$Type( class UpdateOnOrganisationResponse$Type extends MessageType { constructor() { super("api.UpdateOnOrganisationResponse", [ - { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): UpdateOnOrganisationResponse { @@ -1286,8 +1286,8 @@ export const UpdateOnOrganisationResponse = new UpdateOnOrganisationResponse$Typ class DeleteOnOrganisationRequest$Type extends MessageType { constructor() { super("api.DeleteOnOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): DeleteOnOrganisationRequest { @@ -1378,8 +1378,8 @@ export const DeleteOnOrganisationResponse = new DeleteOnOrganisationResponse$Typ class GetPublicHolidaysRequest$Type extends MessageType { constructor() { super("api.GetPublicHolidaysRequest", [ - { no: 1, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166Alpha2: true } } } }, - { no: 2, name: "UpToYear", kind: "scalar", localName: "UpToYear", jsonName: "UpToYear", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { lt: 2200, gte: 2025 } } } } + { no: 1, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { countryCodeIso3166Alpha2: true } } } }, + { no: 2, name: "UpToYear", kind: "scalar", localName: "UpToYear", jsonName: "UpToYear", T: 13 /*ScalarType.UINT32*/, options: { "n1validate.rules": { uint32: { lt: 2200, gte: 2025 } } } } ]); } create(value?: PartialMessage): GetPublicHolidaysRequest { @@ -1480,8 +1480,8 @@ export const GetPublicHolidaysResponse = new GetPublicHolidaysResponse$Type(); class ComputeSLAPeriodOnOrganisationRequest$Type extends MessageType { constructor() { super("api.ComputeSLAPeriodOnOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "minPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period }, { no: 4, name: "maxPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period }, { no: 5, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ }, @@ -1566,8 +1566,8 @@ export const ComputeSLAPeriodOnOrganisationRequest = new ComputeSLAPeriodOnOrgan class CreateOnSiteRequest$Type extends MessageType { constructor() { super("api.CreateOnSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }, { no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } } @@ -1644,7 +1644,7 @@ export const CreateOnSiteRequest = new CreateOnSiteRequest$Type(); class CreateOnSiteResponse$Type extends MessageType { constructor() { super("api.CreateOnSiteResponse", [ - { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): CreateOnSiteResponse { @@ -1690,8 +1690,8 @@ export const CreateOnSiteResponse = new CreateOnSiteResponse$Type(); class GetOnSiteRequest$Type extends MessageType { constructor() { super("api.GetOnSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): GetOnSiteRequest { @@ -1744,7 +1744,7 @@ export const GetOnSiteRequest = new GetOnSiteRequest$Type(); class GetOnSiteResponse$Type extends MessageType { constructor() { super("api.GetOnSiteResponse", [ - { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetOnSiteResponse { @@ -1790,7 +1790,7 @@ export const GetOnSiteResponse = new GetOnSiteResponse$Type(); class ListOnSiteRequest$Type extends MessageType { constructor() { super("api.ListOnSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListOnSiteRequest { @@ -1883,10 +1883,10 @@ export const ListOnSiteResponse = new ListOnSiteResponse$Type(); class UpdateOnSiteRequest$Type extends MessageType { constructor() { super("api.UpdateOnSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "ExceptionalClosures", kind: "message", localName: "ExceptionalClosures", jsonName: "ExceptionalClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExceptionalClosure }, { no: 7, name: "WorkTimeDays", kind: "message", localName: "WorkTimeDays", jsonName: "WorkTimeDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WorkTimeDay, options: { "api.aggKey": "WeekDay" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); @@ -1969,7 +1969,7 @@ export const UpdateOnSiteRequest = new UpdateOnSiteRequest$Type(); class UpdateOnSiteResponse$Type extends MessageType { constructor() { super("api.UpdateOnSiteResponse", [ - { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Calendar", kind: "message", localName: "Calendar", jsonName: "Calendar", T: () => Calendar, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): UpdateOnSiteResponse { @@ -2015,8 +2015,8 @@ export const UpdateOnSiteResponse = new UpdateOnSiteResponse$Type(); class DeleteOnSiteRequest$Type extends MessageType { constructor() { super("api.DeleteOnSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): DeleteOnSiteRequest { @@ -2107,8 +2107,8 @@ export const DeleteOnSiteResponse = new DeleteOnSiteResponse$Type(); class ComputeSLAPeriodOnSiteRequest$Type extends MessageType { constructor() { super("api.ComputeSLAPeriodOnSiteRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "minPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period }, { no: 4, name: "maxPeriods", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Period }, { no: 5, name: "StartSearchTime", kind: "scalar", localName: "StartSearchTime", jsonName: "StartSearchTime", T: 9 /*ScalarType.STRING*/ }, @@ -2248,7 +2248,7 @@ export const ComputeSLAPeriodResponse = new ComputeSLAPeriodResponse$Type(); class DeleteAllForOrganisationRequest$Type extends MessageType { constructor() { super("api.DeleteAllForOrganisationRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); } create(value?: PartialMessage): DeleteAllForOrganisationRequest { @@ -2333,7 +2333,7 @@ export const DeleteAllForOrganisationResponse = new DeleteAllForOrganisationResp class DeleteAllForProjectRequest$Type extends MessageType { constructor() { super("api.DeleteAllForProjectRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteAllForProjectRequest { diff --git a/claim-type.ts b/claim-type.ts index 9f841eff..384b31f9 100644 --- a/claim-type.ts +++ b/claim-type.ts @@ -267,11 +267,11 @@ export interface DeleteClaimTypesForResourceResponse { class CreateClaimTypeRequest$Type extends MessageType { constructor() { super("api.CreateClaimTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } } } }, - { no: 3, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+$" } } }, - { no: 4, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 5, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "255" } } } }, + { no: 3, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+$" } } }, + { no: 4, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 5, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 6, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition }, { no: 7, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure }, { no: 8, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, @@ -279,8 +279,8 @@ class CreateClaimTypeRequest$Type extends MessageType { { no: 10, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 11, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 12, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] }, - { no: 13, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 13, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 15, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Reason", "EntityType", "DefaultCriticality"] } } }); } @@ -433,7 +433,7 @@ export const CreateClaimTypeRequest = new CreateClaimTypeRequest$Type(); class CreateClaimTypeResponse$Type extends MessageType { constructor() { super("api.CreateClaimTypeResponse", [ - { no: 1, name: "ClaimType", kind: "message", localName: "ClaimType", jsonName: "ClaimType", T: () => ClaimType, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "ClaimType", kind: "message", localName: "ClaimType", jsonName: "ClaimType", T: () => ClaimType, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): CreateClaimTypeResponse { @@ -479,8 +479,8 @@ export const CreateClaimTypeResponse = new CreateClaimTypeResponse$Type(); class GetClaimTypeRequest$Type extends MessageType { constructor() { super("api.GetClaimTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): GetClaimTypeRequest { @@ -533,7 +533,7 @@ export const GetClaimTypeRequest = new GetClaimTypeRequest$Type(); class GetClaimTypeResponse$Type extends MessageType { constructor() { super("api.GetClaimTypeResponse", [ - { no: 1, name: "ClaimType", kind: "message", localName: "ClaimType", jsonName: "ClaimType", T: () => ClaimType, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "ClaimType", kind: "message", localName: "ClaimType", jsonName: "ClaimType", T: () => ClaimType, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetClaimTypeResponse { @@ -579,7 +579,7 @@ export const GetClaimTypeResponse = new GetClaimTypeResponse$Type(); class ListClaimTypeRequest$Type extends MessageType { constructor() { super("api.ListClaimTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListClaimTypeRequest { @@ -672,9 +672,9 @@ export const ListClaimTypeResponse = new ListClaimTypeResponse$Type(); class UpdateClaimTypeRequest$Type extends MessageType { constructor() { super("api.UpdateClaimTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition }, { no: 5, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure }, { no: 6, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, @@ -682,8 +682,8 @@ class UpdateClaimTypeRequest$Type extends MessageType { { no: 8, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 9, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] }, - { no: 11, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 12, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 11, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 12, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 13, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Reason"] } } }); } @@ -822,7 +822,7 @@ export const UpdateClaimTypeRequest = new UpdateClaimTypeRequest$Type(); class UpdateClaimTypeResponse$Type extends MessageType { constructor() { super("api.UpdateClaimTypeResponse", [ - { no: 1, name: "ClaimType", kind: "message", localName: "ClaimType", jsonName: "ClaimType", T: () => ClaimType, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "ClaimType", kind: "message", localName: "ClaimType", jsonName: "ClaimType", T: () => ClaimType, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): UpdateClaimTypeResponse { @@ -868,8 +868,8 @@ export const UpdateClaimTypeResponse = new UpdateClaimTypeResponse$Type(); class DeleteClaimTypeRequest$Type extends MessageType { constructor() { super("api.DeleteClaimTypeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): DeleteClaimTypeRequest { @@ -960,7 +960,7 @@ export const DeleteClaimTypeResponse = new DeleteClaimTypeResponse$Type(); class DeleteClaimTypesForProjectRequest$Type extends MessageType { constructor() { super("api.DeleteClaimTypesForProjectRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteClaimTypesForProjectRequest { @@ -1047,7 +1047,7 @@ export const DeleteClaimTypesForProjectResponse = new DeleteClaimTypesForProject class DeleteClaimTypesForResourceRequest$Type extends MessageType { constructor() { super("api.DeleteClaimTypesForResourceRequest", [ - { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID"] } } }); } create(value?: PartialMessage): DeleteClaimTypesForResourceRequest { diff --git a/claim.ts b/claim.ts index 1a60985a..faf2d216 100644 --- a/claim.ts +++ b/claim.ts @@ -243,11 +243,11 @@ export const Claim = new Claim$Type(); class ClaimPayload$Type extends MessageType { constructor() { super("api.ClaimPayload", [ - { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, { no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ClaimStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.aggSkip": "StatusUpdated" } }, - { no: 6, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 6, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 23, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime }, { no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contacts assigned on the claims" }, "api.aggSkip": "AssigneesAdded", "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, { no: 16, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "AssigneesRemoved", "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, @@ -257,13 +257,13 @@ class ClaimPayload$Type extends MessageType { { no: 10, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } }, { no: 11, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } }, { no: 12, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount value of the claim" } } }, - { no: 13, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, - { no: 18, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, - { no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, - { no: 15, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, + { no: 13, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "255" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, + { no: 18, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "n1validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, + { no: 15, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "n1validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, { no: 19, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Claim" } }, { no: 20, name: "Title", kind: "scalar", localName: "Title", jsonName: "Title", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Title of the claim" } } }, - { no: 21, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier to display, because it may differ from the EntityID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 21, name: "DisplayID", kind: "scalar", localName: "DisplayID", jsonName: "DisplayID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier to display, because it may differ from the EntityID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 22, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "MessageSent" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ClaimTypeID", "EntityID", "Criticality", "Status"] } } }); } diff --git a/claimInput.ts b/claimInput.ts index e6b94df4..df759df5 100644 --- a/claimInput.ts +++ b/claimInput.ts @@ -1051,9 +1051,9 @@ export interface ClaimCustomFieldsUpdatedResponse { class ClaimCreatedPayload$Type extends MessageType { constructor() { super("api.ClaimCreatedPayload", [ - { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" } } }, - { no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" } } }, - { no: 5, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { 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: "Contacts assigned on the claims (user uuid)" } } }, + { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" } } }, + { no: 2, name: "EntityID", kind: "scalar", localName: "EntityID", jsonName: "EntityID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the targetted entity" } } }, + { no: 5, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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: "Contacts assigned on the claims (user uuid)" } } }, { no: 6, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount of the claim" } } }, { no: 7, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 8, name: "Title", kind: "scalar", localName: "Title", jsonName: "Title", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Title of the claim" } } }, @@ -1153,9 +1153,9 @@ export const ClaimCreatedPayload = new ClaimCreatedPayload$Type(); class ClaimCreatedEvent$Type extends MessageType { constructor() { super("api.ClaimCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Created", "api.postAggMethods": "fillDisplayID", "api.preAggMethods": "checkCreation" }); } create(value?: PartialMessage): ClaimCreatedEvent { @@ -1213,9 +1213,9 @@ export const ClaimCreatedEvent = new ClaimCreatedEvent$Type(); class ClaimCreatedRequest$Type extends MessageType { constructor() { super("api.ClaimCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): ClaimCreatedRequest { @@ -1326,9 +1326,9 @@ export const ClaimCreatedResponse = new ClaimCreatedResponse$Type(); class ClaimCompletedPayload$Type extends MessageType { constructor() { super("api.ClaimCompletedPayload", [ - { no: 1, name: "EndComment", kind: "scalar", localName: "EndComment", jsonName: "EndComment", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "End comment of the claim" } } }, - { no: 2, name: "Closure", kind: "message", localName: "Closure", jsonName: "Closure", T: () => ClaimClosure, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Closure responsible and causes of the claim" } } }, - { no: 3, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.mapPath": "Status.Current.StatusCode", "api.mapTypePath": "ClaimStatusStruct.ClaimStatusDef" } } + { no: 1, name: "EndComment", kind: "scalar", localName: "EndComment", jsonName: "EndComment", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "End comment of the claim" } } }, + { no: 2, name: "Closure", kind: "message", localName: "Closure", jsonName: "Closure", T: () => ClaimClosure, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Closure responsible and causes of the claim" } } }, + { no: 3, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.mapPath": "Status.Current.StatusCode", "api.mapTypePath": "ClaimStatusStruct.ClaimStatusDef" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["EndComment", "Closure", "StatusCode"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Completed" }); } create(value?: PartialMessage): ClaimCompletedPayload { @@ -1388,9 +1388,9 @@ export const ClaimCompletedPayload = new ClaimCompletedPayload$Type(); class ClaimCompletedEvent$Type extends MessageType { constructor() { super("api.ClaimCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Completed" }); } create(value?: PartialMessage): ClaimCompletedEvent { @@ -1448,9 +1448,9 @@ export const ClaimCompletedEvent = new ClaimCompletedEvent$Type(); class ClaimCompletedRequest$Type extends MessageType { constructor() { super("api.ClaimCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Completed" }); } create(value?: PartialMessage): ClaimCompletedRequest { @@ -1561,7 +1561,7 @@ export const ClaimCompletedResponse = new ClaimCompletedResponse$Type(); class ClaimCriticalityUpdatedPayload$Type extends MessageType { constructor() { super("api.ClaimCriticalityUpdatedPayload", [ - { no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" } } } + { no: 3, name: "Criticality", kind: "enum", localName: "Criticality", jsonName: "Criticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Criticality of the claim" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Criticality"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CriticalityUpdated" }); } create(value?: PartialMessage): ClaimCriticalityUpdatedPayload { @@ -1608,9 +1608,9 @@ export const ClaimCriticalityUpdatedPayload = new ClaimCriticalityUpdatedPayload class ClaimCriticalityUpdatedEvent$Type extends MessageType { constructor() { super("api.ClaimCriticalityUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCriticalityUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCriticalityUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CriticalityUpdated" }); } create(value?: PartialMessage): ClaimCriticalityUpdatedEvent { @@ -1668,9 +1668,9 @@ export const ClaimCriticalityUpdatedEvent = new ClaimCriticalityUpdatedEvent$Typ class ClaimCriticalityUpdatedRequest$Type extends MessageType { constructor() { super("api.ClaimCriticalityUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCriticalityUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCriticalityUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CriticalityUpdated" }); } create(value?: PartialMessage): ClaimCriticalityUpdatedRequest { @@ -1781,7 +1781,7 @@ export const ClaimCriticalityUpdatedResponse = new ClaimCriticalityUpdatedRespon class ClaimStatusUpdatedPayload$Type extends MessageType { constructor() { super("api.ClaimStatusUpdatedPayload", [ - { no: 4, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.mapPath": "Status.Current.StatusCode", "api.mapTypePath": "ClaimStatusStruct.ClaimStatusDef" } } + { no: 4, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the claim" }, "api.mapPath": "Status.Current.StatusCode", "api.mapTypePath": "ClaimStatusStruct.ClaimStatusDef" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["StatusCode"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "StatusUpdated" }); } create(value?: PartialMessage): ClaimStatusUpdatedPayload { @@ -1828,9 +1828,9 @@ export const ClaimStatusUpdatedPayload = new ClaimStatusUpdatedPayload$Type(); class ClaimStatusUpdatedEvent$Type extends MessageType { constructor() { super("api.ClaimStatusUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimStatusUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimStatusUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "StatusUpdated" }); } create(value?: PartialMessage): ClaimStatusUpdatedEvent { @@ -1888,9 +1888,9 @@ export const ClaimStatusUpdatedEvent = new ClaimStatusUpdatedEvent$Type(); class ClaimStatusUpdatedRequest$Type extends MessageType { constructor() { super("api.ClaimStatusUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimStatusUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimStatusUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "StatusUpdated" }); } create(value?: PartialMessage): ClaimStatusUpdatedRequest { @@ -2001,7 +2001,7 @@ export const ClaimStatusUpdatedResponse = new ClaimStatusUpdatedResponse$Type(); class ClaimAmountUpdatedPayload$Type extends MessageType { constructor() { super("api.ClaimAmountUpdatedPayload", [ - { no: 1, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount of the claim" } } } + { no: 1, name: "Amount", kind: "message", localName: "Amount", jsonName: "Amount", T: () => Amount, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Amount of the claim" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Amount"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AmountUpdated" }); } create(value?: PartialMessage): ClaimAmountUpdatedPayload { @@ -2047,9 +2047,9 @@ export const ClaimAmountUpdatedPayload = new ClaimAmountUpdatedPayload$Type(); class ClaimAmountUpdatedEvent$Type extends MessageType { constructor() { super("api.ClaimAmountUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAmountUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAmountUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AmountUpdated" }); } create(value?: PartialMessage): ClaimAmountUpdatedEvent { @@ -2107,9 +2107,9 @@ export const ClaimAmountUpdatedEvent = new ClaimAmountUpdatedEvent$Type(); class ClaimAmountUpdatedRequest$Type extends MessageType { constructor() { super("api.ClaimAmountUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAmountUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAmountUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AmountUpdated" }); } create(value?: PartialMessage): ClaimAmountUpdatedRequest { @@ -2220,7 +2220,7 @@ export const ClaimAmountUpdatedResponse = new ClaimAmountUpdatedResponse$Type(); class ClaimAssigneesAddedPayload$Type extends MessageType { constructor() { super("api.ClaimAssigneesAddedPayload", [ - { no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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: "New contacts assigned on the claims (user uuid)" } } } + { no: 7, name: "Assignees", kind: "scalar", localName: "Assignees", jsonName: "Assignees", 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: "New contacts assigned on the claims (user uuid)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Assignees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AssigneesAdded" }); } create(value?: PartialMessage): ClaimAssigneesAddedPayload { @@ -2267,9 +2267,9 @@ export const ClaimAssigneesAddedPayload = new ClaimAssigneesAddedPayload$Type(); class ClaimAssigneesAddedEvent$Type extends MessageType { constructor() { super("api.ClaimAssigneesAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AssigneesAdded", "api.preAggMethods": "addAssignees" }); } create(value?: PartialMessage): ClaimAssigneesAddedEvent { @@ -2327,9 +2327,9 @@ export const ClaimAssigneesAddedEvent = new ClaimAssigneesAddedEvent$Type(); class ClaimAssigneesAddedRequest$Type extends MessageType { constructor() { super("api.ClaimAssigneesAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AssigneesAdded" }); } create(value?: PartialMessage): ClaimAssigneesAddedRequest { @@ -2440,7 +2440,7 @@ export const ClaimAssigneesAddedResponse = new ClaimAssigneesAddedResponse$Type( class ClaimAssigneesRemovedPayload$Type extends MessageType { constructor() { super("api.ClaimAssigneesRemovedPayload", [ - { no: 7, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.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 assigned contacts removed from the claims (user uuid)" } } } + { no: 7, name: "RemovedAssignees", kind: "scalar", localName: "RemovedAssignees", jsonName: "RemovedAssignees", 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 assigned contacts removed from the claims (user uuid)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["RemovedAssignees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AssigneesRemoved" }); } create(value?: PartialMessage): ClaimAssigneesRemovedPayload { @@ -2487,9 +2487,9 @@ export const ClaimAssigneesRemovedPayload = new ClaimAssigneesRemovedPayload$Typ class ClaimAssigneesRemovedEvent$Type extends MessageType { constructor() { super("api.ClaimAssigneesRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AssigneesRemoved", "api.preAggMethods": "removeAssignees" }); } create(value?: PartialMessage): ClaimAssigneesRemovedEvent { @@ -2547,9 +2547,9 @@ export const ClaimAssigneesRemovedEvent = new ClaimAssigneesRemovedEvent$Type(); class ClaimAssigneesRemovedRequest$Type extends MessageType { constructor() { super("api.ClaimAssigneesRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAssigneesRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AssigneesRemoved" }); } create(value?: PartialMessage): ClaimAssigneesRemovedRequest { @@ -2707,9 +2707,9 @@ export const ClaimAttachmentAddedPayload = new ClaimAttachmentAddedPayload$Type( class ClaimAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.ClaimAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): ClaimAttachmentAddedEvent { @@ -2767,9 +2767,9 @@ export const ClaimAttachmentAddedEvent = new ClaimAttachmentAddedEvent$Type(); class ClaimAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.ClaimAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): ClaimAttachmentAddedRequest { @@ -2927,9 +2927,9 @@ export const ClaimAttachmentRemovedPayload = new ClaimAttachmentRemovedPayload$T class ClaimAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.ClaimAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): ClaimAttachmentRemovedEvent { @@ -2987,9 +2987,9 @@ export const ClaimAttachmentRemovedEvent = new ClaimAttachmentRemovedEvent$Type( class ClaimAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.ClaimAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): ClaimAttachmentRemovedRequest { @@ -4009,9 +4009,9 @@ export const ClaimSanitisedPayload = new ClaimSanitisedPayload$Type(); class ClaimSanitisedEvent$Type extends MessageType { constructor() { super("api.ClaimSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): ClaimSanitisedEvent { @@ -4069,9 +4069,9 @@ export const ClaimSanitisedEvent = new ClaimSanitisedEvent$Type(); class ClaimSanitisedRequest$Type extends MessageType { constructor() { super("api.ClaimSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): ClaimSanitisedRequest { @@ -4220,9 +4220,9 @@ export const ClaimCustomFieldsUpdatedPayload = new ClaimCustomFieldsUpdatedPaylo class ClaimCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.ClaimCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ClaimCustomFieldsUpdatedEvent { @@ -4280,9 +4280,9 @@ export const ClaimCustomFieldsUpdatedEvent = new ClaimCustomFieldsUpdatedEvent$T class ClaimCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.ClaimCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ClaimCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ClaimCustomFieldsUpdatedRequest { diff --git a/claimQuery.ts b/claimQuery.ts index e8873346..6c4a1fab 100644 --- a/claimQuery.ts +++ b/claimQuery.ts @@ -216,8 +216,8 @@ export interface ClaimGetAvailableContactsResult { class ClaimByIdQuery$Type extends MessageType { constructor() { super("api.ClaimByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ClaimQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -331,7 +331,7 @@ export const ClaimByIdResult = new ClaimByIdResult$Type(); class ClaimByFilterQuery$Type extends MessageType { constructor() { super("api.ClaimByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -533,7 +533,7 @@ export const ClaimQueryOptions = new ClaimQueryOptions$Type(); class ClaimByMatchQuery$Type extends MessageType { constructor() { super("api.ClaimByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, @@ -658,8 +658,8 @@ export const ClaimByMatchResult = new ClaimByMatchResult$Type(); class ClaimGetRoomQuery$Type extends MessageType { constructor() { super("api.ClaimGetRoomQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): ClaimGetRoomQuery { @@ -758,8 +758,8 @@ export const ClaimGetRoomResult = new ClaimGetRoomResult$Type(); class ClaimGetAvailableContactsQuery$Type extends MessageType { constructor() { super("api.ClaimGetAvailableContactsQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, { no: 3, name: "PartnerIDs", kind: "scalar", localName: "PartnerIDs", jsonName: "PartnerIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } diff --git a/clickhouse.ts b/clickhouse.ts index be2665a5..3bfff210 100644 --- a/clickhouse.ts +++ b/clickhouse.ts @@ -544,11 +544,11 @@ export enum KpiDataResultFormat { class CHDimension$Type extends MessageType { constructor() { super("api.CHDimension", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Granularity", kind: "scalar", localName: "Granularity", jsonName: "Granularity", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "Level", kind: "scalar", localName: "Level", jsonName: "Level", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "DataType", kind: "scalar", localName: "DataType", jsonName: "DataType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"date\"" } } }, - { no: 5, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"DateTime\"" } } }, + { no: 3, name: "Level", kind: "scalar", localName: "Level", jsonName: "Level", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "DataType", kind: "scalar", localName: "DataType", jsonName: "DataType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"date\"" } } }, + { no: 5, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"DateTime\"" } } }, { no: 6, name: "EnumValues", kind: "scalar", localName: "EnumValues", jsonName: "EnumValues", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "Period", kind: "scalar", localName: "Period", jsonName: "Period", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A period of time" } } }, { no: 8, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"EQUAL\", \"DIFF\", \"START_BY\", \"NOT_START_BY\", \"FINISH_BY\", \"NOT_FINISH_BY\", \"CONTAINS\", \"NOT_CONTAINS\", \"IN_LIST\", \"NOT_IN_LIST\"" } } }, @@ -763,10 +763,10 @@ export const CHQueryExpression = new CHQueryExpression$Type(); class CHMetric$Type extends MessageType { constructor() { super("api.CHMetric", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Level", kind: "scalar", localName: "Level", jsonName: "Level", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "DataType", kind: "scalar", localName: "DataType", jsonName: "DataType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"count\"" } } }, - { no: 5, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"int\"" } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Level", kind: "scalar", localName: "Level", jsonName: "Level", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "DataType", kind: "scalar", localName: "DataType", jsonName: "DataType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"count\"" } } }, + { no: 5, name: "ContentType", kind: "scalar", localName: "ContentType", jsonName: "ContentType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"int\"" } } }, { no: 6, name: "EnumValues", kind: "scalar", localName: "EnumValues", jsonName: "EnumValues", T: 9 /*ScalarType.STRING*/ }, { no: 12, name: "Expressions", kind: "message", localName: "Expressions", jsonName: "Expressions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHQueryExpression }, { no: 13, name: "IsComputed", kind: "scalar", localName: "IsComputed", jsonName: "IsComputed", T: 8 /*ScalarType.BOOL*/ } @@ -960,16 +960,16 @@ export const KpiDataSerie = new KpiDataSerie$Type(); class GetKPIDataQuery$Type extends MessageType { constructor() { super("api.GetKPIDataQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ChartType", kind: "enum", localName: "ChartType", jsonName: "ChartType", T: () => ["api.CHChartType", CHChartType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ChartType", kind: "enum", localName: "ChartType", jsonName: "ChartType", T: () => ["api.CHChartType", CHChartType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Dimensions", kind: "message", localName: "Dimensions", jsonName: "Dimensions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHDimension }, { no: 6, name: "Metrics", kind: "message", localName: "Metrics", jsonName: "Metrics", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHMetric }, { no: 7, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => CHFilter }, - { no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, { no: 9, name: "ResultFormat", kind: "enum", localName: "ResultFormat", jsonName: "ResultFormat", T: () => ["api.KpiDataResultFormat", KpiDataResultFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Result format selection", example: "\"KPIDATA_RESULT_FORMAT_SERIES\"" } } }, - { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to get the kpi data from", example: "\"executionflow\"" } } } + { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to get the kpi data from", example: "\"executionflow\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ChartType", "QueryType", "QueryBlock", "Metrics", "KpiGroupName"] } } }); } create(value?: PartialMessage): GetKPIDataQuery { @@ -1077,17 +1077,17 @@ export const GetKPIDataQuery = new GetKPIDataQuery$Type(); class GetKPIDataForUserQuery$Type extends MessageType { constructor() { super("api.GetKPIDataForUserQuery", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ChartType", kind: "enum", localName: "ChartType", jsonName: "ChartType", T: () => ["api.CHChartType", CHChartType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ChartType", kind: "enum", localName: "ChartType", jsonName: "ChartType", T: () => ["api.CHChartType", CHChartType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Dimensions", kind: "message", localName: "Dimensions", jsonName: "Dimensions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHDimension }, { no: 6, name: "Metrics", kind: "message", localName: "Metrics", jsonName: "Metrics", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHMetric }, { no: 7, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => CHFilter }, - { no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, { no: 9, name: "ResultFormat", kind: "enum", localName: "ResultFormat", jsonName: "ResultFormat", T: () => ["api.KpiDataResultFormat", KpiDataResultFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Result format selection", example: "\"KPIDATA_RESULT_FORMAT_SERIES\"" } } }, - { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to get the kpi data from", example: "\"executionflow\"" } } }, - { no: 11, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to get the kpi data from", example: "\"executionflow\"" } } }, + { no: 11, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 12, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } }, { no: 13, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "ChartType", "QueryType", "QueryBlock", "Metrics", "KpiGroupName", "UserID"] } } }); @@ -1329,15 +1329,15 @@ export const EntityBlockFilter = new EntityBlockFilter$Type(); class FindKPIDataQuery$Type extends MessageType { constructor() { super("api.FindKPIDataQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "EntityBlockFilters", kind: "message", localName: "EntityBlockFilters", jsonName: "EntityBlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityBlockFilter }, { no: 5, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => CHFilter }, { no: 6, name: "Dimensions", kind: "message", localName: "Dimensions", jsonName: "Dimensions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHDimension }, { no: 7, name: "Metrics", kind: "message", localName: "Metrics", jsonName: "Metrics", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHMetric }, - { no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, - { no: 9, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to find the kpi data from", example: "\"stock_extended\"" } } } + { no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 9, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to find the kpi data from", example: "\"stock_extended\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ChartType", "QueryType", "QueryBlock", "Metrics", "KpiGroupName"] } } }); } create(value?: PartialMessage): FindKPIDataQuery { @@ -1485,21 +1485,21 @@ export const FindKPIDataResult = new FindKPIDataResult$Type(); class ExtractKPIQuery$Type extends MessageType { constructor() { super("api.ExtractKPIQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "EntityBlockFilters", kind: "message", localName: "EntityBlockFilters", jsonName: "EntityBlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityBlockFilter }, { no: 6, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => CHFilter }, { no: 7, name: "Dimensions", kind: "message", localName: "Dimensions", jsonName: "Dimensions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHDimension }, { no: 8, name: "Metrics", kind: "message", localName: "Metrics", jsonName: "Metrics", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHMetric }, - { no: 9, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, - { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to find the kpi data from", example: "\"stock_extended\"" } } }, - { no: 11, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 12, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 9, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to find the kpi data from", example: "\"stock_extended\"" } } }, + { no: 11, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 12, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 13, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 14, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 15, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 14, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 15, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 16, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 17, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 18, name: "FieldIdxLVDetailedQuantity", kind: "scalar", localName: "FieldIdxLVDetailedQuantity", jsonName: "FieldIdxLVDetailedQuantity", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, diff --git a/client.ts b/client.ts index 012038c5..941ba8b8 100644 --- a/client.ts +++ b/client.ts @@ -72,9 +72,9 @@ export interface RegisterClientResult { class OpenIDClient$Type extends MessageType { constructor() { super("api.OpenIDClient", [ - { no: 1, name: "AppName", kind: "scalar", localName: "AppName", jsonName: "AppName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-z]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The application name must be lowercase and can only contain letters and numbers. It must be unique within the organisation.", example: "\"reflexvisibility\"", pattern: "^[a-z]+$" } } }, - { no: 2, name: "DisplayName", kind: "scalar", localName: "DisplayName", jsonName: "DisplayName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The display name of the application.", example: "\"Reflex Visibility\"" } } }, - { no: 3, name: "RootURI", kind: "scalar", localName: "RootURI", jsonName: "RootURI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The root URI of the application.", example: "\"https://localhost\"" } } }, + { no: 1, name: "AppName", kind: "scalar", localName: "AppName", jsonName: "AppName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-z]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The application name must be lowercase and can only contain letters and numbers. It must be unique within the organisation.", example: "\"reflexvisibility\"", pattern: "^[a-z]+$" } } }, + { no: 2, name: "DisplayName", kind: "scalar", localName: "DisplayName", jsonName: "DisplayName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The display name of the application.", example: "\"Reflex Visibility\"" } } }, + { no: 3, name: "RootURI", kind: "scalar", localName: "RootURI", jsonName: "RootURI", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The root URI of the application.", example: "\"https://localhost\"" } } }, { no: 4, name: "RedirectURIs", kind: "scalar", localName: "RedirectURIs", jsonName: "RedirectURIs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The allowed redirect URIs of the application.", example: "\"https://localhost/*\"" } } }, { no: 5, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The description of the application.", example: "\"Reflex Visibility application from HARDIS SC NETWORK\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppName", "RootURI", "DisplayName"] } } }); @@ -151,7 +151,7 @@ export const OpenIDClient = new OpenIDClient$Type(); class RegisterPlatformClientRequest$Type extends MessageType { constructor() { super("api.RegisterPlatformClientRequest", [ - { no: 1, name: "Client", kind: "message", localName: "Client", jsonName: "Client", T: () => OpenIDClient, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Client", kind: "message", localName: "Client", jsonName: "Client", T: () => OpenIDClient, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Client"] } } }); } create(value?: PartialMessage): RegisterPlatformClientRequest { @@ -197,8 +197,8 @@ export const RegisterPlatformClientRequest = new RegisterPlatformClientRequest$T class RegisterClientRequest$Type extends MessageType { constructor() { super("api.RegisterClientRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Client", kind: "message", localName: "Client", jsonName: "Client", T: () => OpenIDClient, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Client", kind: "message", localName: "Client", jsonName: "Client", T: () => OpenIDClient, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Client"] } } }); } create(value?: PartialMessage): RegisterClientRequest { diff --git a/collabShared.ts b/collabShared.ts index ff8a3ebe..d065d5ca 100644 --- a/collabShared.ts +++ b/collabShared.ts @@ -312,7 +312,7 @@ class ClaimStatusDef$Type extends MessageType { constructor() { super("api.ClaimStatusDef", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ClaimStatus", ClaimStatus], options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } } ]); } @@ -375,7 +375,7 @@ class ClaimStatusStruct$Type extends MessageType { super("api.ClaimStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ClaimStatusDef }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimStatusDef, options: { "api.aggKey": "Date" } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ } ]); } @@ -803,7 +803,7 @@ class AppointmentStatusStruct$Type extends MessageType super("api.AppointmentStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => AppointmentStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentStatus }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ } ]); } diff --git a/connection.ts b/connection.ts index a7e2daa5..0cc8ff2f 100644 --- a/connection.ts +++ b/connection.ts @@ -404,9 +404,9 @@ export const Connection = new Connection$Type(); class CreateConnectionRequest$Type extends MessageType { constructor() { super("api.CreateConnectionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectorID", "Name"] } } }); } create(value?: PartialMessage): CreateConnectionRequest { @@ -512,8 +512,8 @@ export const CreateConnectionResult = new CreateConnectionResult$Type(); class DeleteConnectionRequest$Type extends MessageType { constructor() { super("api.DeleteConnectionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectorID"] } } }); } create(value?: PartialMessage): DeleteConnectionRequest { @@ -612,7 +612,7 @@ export const DeleteConnectionResult = new DeleteConnectionResult$Type(); class ListConnectionsRequest$Type extends MessageType { constructor() { super("api.ListConnectionsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); @@ -720,7 +720,7 @@ export const ListConnectionsResult = new ListConnectionsResult$Type(); class GetDetailsConnectionsRequest$Type extends MessageType { constructor() { super("api.GetDetailsConnectionsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): GetDetailsConnectionsRequest { @@ -826,7 +826,7 @@ export const GetDetailsConnectionsResult = new GetDetailsConnectionsResult$Type( class GetStartDetailsConnectionsRequest$Type extends MessageType { constructor() { super("api.GetStartDetailsConnectionsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): GetStartDetailsConnectionsRequest { @@ -919,11 +919,11 @@ export const GetStartDetailsConnectionsResult = new GetStartDetailsConnectionsRe class SetRunDetailsConnectionsRequest$Type extends MessageType { constructor() { super("api.SetRunDetailsConnectionsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UriApiStatus", kind: "scalar", localName: "UriApiStatus", jsonName: "UriApiStatus", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UriApiStart", kind: "scalar", localName: "UriApiStart", jsonName: "UriApiStart", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "UriApiStop", kind: "scalar", localName: "UriApiStop", jsonName: "UriApiStop", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "UriApiClear", kind: "scalar", localName: "UriApiClear", jsonName: "UriApiClear", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UriApiStatus", kind: "scalar", localName: "UriApiStatus", jsonName: "UriApiStatus", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UriApiStart", kind: "scalar", localName: "UriApiStart", jsonName: "UriApiStart", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "UriApiStop", kind: "scalar", localName: "UriApiStop", jsonName: "UriApiStop", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "UriApiClear", kind: "scalar", localName: "UriApiClear", jsonName: "UriApiClear", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UriApiStatus", "UriApiStart", "UriApiStop", "UriApiClear"] } } }); } create(value?: PartialMessage): SetRunDetailsConnectionsRequest { @@ -1043,7 +1043,7 @@ export const SetRunDetailsConnectionsResult = new SetRunDetailsConnectionsResult class RenewConnectionSARequest$Type extends MessageType { constructor() { super("api.RenewConnectionSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): RenewConnectionSARequest { @@ -1143,7 +1143,7 @@ export const RenewConnectionSAResult = new RenewConnectionSAResult$Type(); class DeleteConnectionInDBRequest$Type extends MessageType { constructor() { super("api.DeleteConnectionInDBRequest", [ - { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } }); } create(value?: PartialMessage): DeleteConnectionInDBRequest { @@ -1228,7 +1228,7 @@ export const DeleteConnectionInDBResult = new DeleteConnectionInDBResult$Type(); class IsConnectionExistRequest$Type extends MessageType { constructor() { super("api.IsConnectionExistRequest", [ - { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } }); } create(value?: PartialMessage): IsConnectionExistRequest { diff --git a/connectionSettings.ts b/connectionSettings.ts index 879b4c6d..4cbcc8d0 100644 --- a/connectionSettings.ts +++ b/connectionSettings.ts @@ -144,8 +144,8 @@ export const ConnectionSettings = new ConnectionSettings$Type(); class PutConnectionSettingsRequest$Type extends MessageType { constructor() { super("api.PutConnectionSettingsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "settings", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ }, options: { "validate.rules": { map: { minPairs: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "settings: at least one pair of \"key: value\" needed" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "settings", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ }, options: { "n1validate.rules": { map: { minPairs: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "settings: at least one pair of \"key: value\" needed" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Settings of the connection to store", required: ["Header"] } } }); } create(value?: PartialMessage): PutConnectionSettingsRequest { @@ -214,7 +214,7 @@ export const PutConnectionSettingsRequest = new PutConnectionSettingsRequest$Typ class PutConnectionSettingsResult$Type extends MessageType { constructor() { super("api.PutConnectionSettingsResult", [ - { no: 1, name: "settings", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "settings", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Settings response" } } }); } create(value?: PartialMessage): PutConnectionSettingsResult { @@ -261,7 +261,7 @@ export const PutConnectionSettingsResult = new PutConnectionSettingsResult$Type( class GetConnectionSettingsRequest$Type extends MessageType { constructor() { super("api.GetConnectionSettingsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Settings of the connection to get", required: ["Header"] } } }); } create(value?: PartialMessage): GetConnectionSettingsRequest { @@ -307,7 +307,7 @@ export const GetConnectionSettingsRequest = new GetConnectionSettingsRequest$Typ class GetConnectionSettingsResult$Type extends MessageType { constructor() { super("api.GetConnectionSettingsResult", [ - { no: 1, name: "settings", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "settings", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Settings response" } } }); } create(value?: PartialMessage): GetConnectionSettingsResult { @@ -354,7 +354,7 @@ export const GetConnectionSettingsResult = new GetConnectionSettingsResult$Type( class DeleteConnectionSettingsRequest$Type extends MessageType { constructor() { super("api.DeleteConnectionSettingsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestConnectionHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "ConnectionID of the settings to delete", required: ["Header"] } } }); } create(value?: PartialMessage): DeleteConnectionSettingsRequest { diff --git a/connector.ts b/connector.ts index 9b89d2ff..7a61aaa3 100644 --- a/connector.ts +++ b/connector.ts @@ -401,20 +401,20 @@ export enum Keyword { class Connector$Type extends MessageType { constructor() { super("api.Connector", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([a-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([a-z0-9-])+$" } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ConnectorType", ConnectorType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([a-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([a-z0-9-])+$" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ConnectorType", ConnectorType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 6, name: "RepoUrl", kind: "scalar", localName: "RepoUrl", jsonName: "RepoUrl", T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "MainClassName", kind: "scalar", localName: "MainClassName", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 8, name: "JarName", kind: "scalar", localName: "JarName", jsonName: "JarName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "MainClassName", kind: "scalar", localName: "MainClassName", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 8, name: "JarName", kind: "scalar", localName: "JarName", jsonName: "JarName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 9, name: "SetupJson", kind: "scalar", localName: "SetupJson", jsonName: "SetupJson", T: 9 /*ScalarType.STRING*/ }, - { no: 10, name: "MetadataJSONParameters", kind: "scalar", localName: "MetadataJSONParameters", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 10, name: "MetadataJSONParameters", kind: "scalar", localName: "MetadataJSONParameters", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 11, name: "NbSlots", kind: "scalar", localName: "NbSlots", jsonName: "NbSlots", T: 5 /*ScalarType.INT32*/ }, - { no: 12, name: "DistributionName", kind: "scalar", localName: "DistributionName", jsonName: "DistributionName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 13, name: "Release", kind: "scalar", localName: "Release", jsonName: "Release", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 14, name: "ActionsJSONParameters", kind: "scalar", localName: "ActionsJSONParameters", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 12, name: "DistributionName", kind: "scalar", localName: "DistributionName", jsonName: "DistributionName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 13, name: "Release", kind: "scalar", localName: "Release", jsonName: "Release", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 14, name: "ActionsJSONParameters", kind: "scalar", localName: "ActionsJSONParameters", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Name", "Description", "Version", "MainClassName", "JarName", "MetadataJSONParameters", "DistributionName", "Release", "ActionsJSONParameters"] } } }); } create(value?: PartialMessage): Connector { @@ -671,19 +671,19 @@ export const ParameterMetadata = new ParameterMetadata$Type(); class CreateConnectorRequest$Type extends MessageType { constructor() { super("api.CreateConnectorRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, - { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ConnectorType", ConnectorType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-.])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-.])+$" } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, + { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ConnectorType", ConnectorType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-.])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-.])+$" } } }, { no: 5, name: "RepoUrl", kind: "scalar", localName: "RepoUrl", jsonName: "RepoUrl", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "MainClassName", kind: "scalar", localName: "MainClassName", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 7, name: "JarName", kind: "scalar", localName: "JarName", jsonName: "JarName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "MainClassName", kind: "scalar", localName: "MainClassName", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "JarName", kind: "scalar", localName: "JarName", jsonName: "JarName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 8, name: "SetupJson", kind: "scalar", localName: "SetupJson", jsonName: "SetupJson", T: 9 /*ScalarType.STRING*/ }, - { no: 9, name: "MetadataJSONParameters", kind: "scalar", localName: "MetadataJSONParameters", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 9, name: "MetadataJSONParameters", kind: "scalar", localName: "MetadataJSONParameters", jsonName: "MetadataJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 10, name: "NbSlots", kind: "scalar", localName: "NbSlots", jsonName: "NbSlots", T: 5 /*ScalarType.INT32*/ }, { no: 11, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, - { no: 12, name: "DistributionName", kind: "scalar", localName: "DistributionName", jsonName: "DistributionName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 13, name: "ActionsJSONParameters", kind: "scalar", localName: "ActionsJSONParameters", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 12, name: "DistributionName", kind: "scalar", localName: "DistributionName", jsonName: "DistributionName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 13, name: "ActionsJSONParameters", kind: "scalar", localName: "ActionsJSONParameters", jsonName: "ActionsJSONParameters", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name", "Description", "Version", "MainClassName", "JarName", "MetadataJSONParameters", "DistributionName", "ActionsJSONParameters"] } } }); } create(value?: PartialMessage): CreateConnectorRequest { @@ -860,9 +860,9 @@ export const CreateConnectorResult = new CreateConnectorResult$Type(); class UpdateConnectorRequest$Type extends MessageType { constructor() { super("api.UpdateConnectorRequest", [ - { no: 1, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-.])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-.])+$" } } }, + { no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-.])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-.])+$" } } }, { no: 4, name: "RepoUrl", kind: "scalar", localName: "RepoUrl", jsonName: "RepoUrl", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "MainClassName", kind: "scalar", localName: "MainClassName", jsonName: "MainClassName", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "JarName", kind: "scalar", localName: "JarName", jsonName: "JarName", T: 9 /*ScalarType.STRING*/ }, @@ -1033,7 +1033,7 @@ export const UpdateConnectorResult = new UpdateConnectorResult$Type(); class GetConnectorRequest$Type extends MessageType { constructor() { super("api.GetConnectorRequest", [ - { no: 1, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectorID"] } } }); } create(value?: PartialMessage): GetConnectorRequest { @@ -1219,7 +1219,7 @@ export const ListConnectorsResult = new ListConnectorsResult$Type(); class ListAvailableConnectorsRequest$Type extends MessageType { constructor() { super("api.ListAvailableConnectorsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListAvailableConnectorsRequest { @@ -1312,7 +1312,7 @@ export const ListAvailableConnectorsResult = new ListAvailableConnectorsResult$T class DeleteConnectorRequest$Type extends MessageType { constructor() { super("api.DeleteConnectorRequest", [ - { no: 1, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ConnectorID", kind: "scalar", localName: "ConnectorID", jsonName: "ConnectorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectorID"] } } }); } create(value?: PartialMessage): DeleteConnectorRequest { diff --git a/elastic.ts b/elastic.ts index e4b4b528..17cd3646 100644 --- a/elastic.ts +++ b/elastic.ts @@ -191,7 +191,7 @@ export const UpdateModelMappingsResult = new UpdateModelMappingsResult$Type(); class CreateResourceMappingsRequest$Type extends MessageType { constructor() { super("api.CreateResourceMappingsRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID"] } } }); } create(value?: PartialMessage): CreateResourceMappingsRequest { @@ -301,7 +301,7 @@ export const CreateResourceMappingsResult = new CreateResourceMappingsResult$Typ class DeleteResourceMappingsRequest$Type extends MessageType { constructor() { super("api.DeleteResourceMappingsRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } }); } create(value?: PartialMessage): DeleteResourceMappingsRequest { @@ -411,8 +411,8 @@ export const DeleteResourceMappingsResult = new DeleteResourceMappingsResult$Typ class ClearIndexEntityRequest$Type extends MessageType { constructor() { super("api.ClearIndexEntityRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Entity"] } } }); } create(value?: PartialMessage): ClearIndexEntityRequest { diff --git a/executionflow.ts b/executionflow.ts index a175c700..85a97d98 100644 --- a/executionflow.ts +++ b/executionflow.ts @@ -258,7 +258,7 @@ class ExecutionflowPayload$Type extends MessageType { { no: 8, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones }, { no: 9, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExeFlowLine, options: { "api.aggKey": "LineID", "api.aggAppend": "Created,Detected,LinesAdded,LinesDetected", "api.indexationSkip": true } }, { no: 11, name: "Handlingunits", kind: "message", localName: "Handlingunits", jsonName: "Handlingunits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitSummary, options: { "api.aggKey": "HandlingunitID", "api.aggAppend": "HUContentUpdated,HUTrackingUpdated", "api.indexationSkip": true } }, - { no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ExecutionflowStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationSkip": true } }, + { no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ExecutionflowStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationSkip": true } }, { no: 14, name: "ShipFromAcked", kind: "scalar", localName: "ShipFromAcked", jsonName: "ShipFromAcked", T: 8 /*ScalarType.BOOL*/ }, { no: 15, name: "ShipToAcked", kind: "scalar", localName: "ShipToAcked", jsonName: "ShipToAcked", T: 8 /*ScalarType.BOOL*/ }, { no: 16, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.indexationSkip": true } }, diff --git a/executionflowInput.ts b/executionflowInput.ts index b155df13..b340af23 100644 --- a/executionflowInput.ts +++ b/executionflowInput.ts @@ -2178,9 +2178,9 @@ export const ExecutionflowCreatedPayload = new ExecutionflowCreatedPayload$Type( class ExecutionflowCreatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Created", "api.postAggMethods": "computeRequestedContent,computeHUContents", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): ExecutionflowCreatedEvent { @@ -2238,9 +2238,9 @@ export const ExecutionflowCreatedEvent = new ExecutionflowCreatedEvent$Type(); class ExecutionflowCreatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Playload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): ExecutionflowCreatedRequest { @@ -2473,9 +2473,9 @@ export const ExecutionflowDetectedPayload = new ExecutionflowDetectedPayload$Typ class ExecutionflowDetectedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowDetectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowDetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowDetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Detected", "api.postAggMethods": "computeRequestedContent,computeHUContents,generateOrderID", "api.preAggMethods": "verifyActorPartner,verifyOrderID" }); } create(value?: PartialMessage): ExecutionflowDetectedEvent { @@ -2533,9 +2533,9 @@ export const ExecutionflowDetectedEvent = new ExecutionflowDetectedEvent$Type(); class ExecutionflowDetectedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowDetectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowDetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowDetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Detected" }); } create(value?: PartialMessage): ExecutionflowDetectedRequest { @@ -2684,9 +2684,9 @@ export const ExecutionflowRedetectedPayload = new ExecutionflowRedetectedPayload class ExecutionflowRedetectedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowRedetectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowRedetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): ExecutionflowRedetectedEvent { @@ -2744,9 +2744,9 @@ export const ExecutionflowRedetectedEvent = new ExecutionflowRedetectedEvent$Typ class ExecutionflowRedetectedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowRedetectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowRedetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): ExecutionflowRedetectedRequest { @@ -2904,9 +2904,9 @@ export const ExecutionflowShipFromAckedPayload = new ExecutionflowShipFromAckedP class ExecutionflowShipFromAckedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowShipFromAckedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipFromAckedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipFromAckedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ShipFromAcked" }); } create(value?: PartialMessage): ExecutionflowShipFromAckedEvent { @@ -2964,9 +2964,9 @@ export const ExecutionflowShipFromAckedEvent = new ExecutionflowShipFromAckedEve class ExecutionflowShipFromAckedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowShipFromAckedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipFromAckedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipFromAckedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ShipFromAcked" }); } create(value?: PartialMessage): ExecutionflowShipFromAckedRequest { @@ -3124,9 +3124,9 @@ export const ExecutionflowShipToAckedPayload = new ExecutionflowShipToAckedPaylo class ExecutionflowShipToAckedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowShipToAckedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipToAckedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipToAckedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ShipToAcked" }); } create(value?: PartialMessage): ExecutionflowShipToAckedEvent { @@ -3184,9 +3184,9 @@ export const ExecutionflowShipToAckedEvent = new ExecutionflowShipToAckedEvent$T class ExecutionflowShipToAckedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowShipToAckedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipToAckedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowShipToAckedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ShipToAcked" }); } create(value?: PartialMessage): ExecutionflowShipToAckedRequest { @@ -3335,9 +3335,9 @@ export const ExecutionflowCancelledPayload = new ExecutionflowCancelledPayload$T class ExecutionflowCancelledEvent$Type extends MessageType { constructor() { super("api.ExecutionflowCancelledEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCancelledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCancelledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Cancelled" }); } create(value?: PartialMessage): ExecutionflowCancelledEvent { @@ -3395,9 +3395,9 @@ export const ExecutionflowCancelledEvent = new ExecutionflowCancelledEvent$Type( class ExecutionflowCancelledRequest$Type extends MessageType { constructor() { super("api.ExecutionflowCancelledRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCancelledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCancelledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Cancelled" }); } create(value?: PartialMessage): ExecutionflowCancelledRequest { @@ -3546,9 +3546,9 @@ export const ExecutionflowAnonymisedPayload = new ExecutionflowAnonymisedPayload class ExecutionflowAnonymisedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowAnonymisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAnonymisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAnonymisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Anonymised", "api.postAggMethods": "anonymise" }); } create(value?: PartialMessage): ExecutionflowAnonymisedEvent { @@ -3606,9 +3606,9 @@ export const ExecutionflowAnonymisedEvent = new ExecutionflowAnonymisedEvent$Typ class ExecutionflowAnonymisedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowAnonymisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAnonymisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAnonymisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Anonymised" }); } create(value?: PartialMessage): ExecutionflowAnonymisedRequest { @@ -3757,9 +3757,9 @@ export const ExecutionflowCompletedPayload = new ExecutionflowCompletedPayload$T class ExecutionflowCompletedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Completed" }); } create(value?: PartialMessage): ExecutionflowCompletedEvent { @@ -3817,9 +3817,9 @@ export const ExecutionflowCompletedEvent = new ExecutionflowCompletedEvent$Type( class ExecutionflowCompletedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Completed" }); } create(value?: PartialMessage): ExecutionflowCompletedRequest { @@ -3930,7 +3930,7 @@ export const ExecutionflowCompletedResponse = new ExecutionflowCompletedResponse class ExecutionflowHUContentUpdatedPayload$Type extends MessageType { constructor() { super("api.ExecutionflowHUContentUpdatedPayload", [ - { no: 1, name: "Handlingunits", kind: "message", localName: "Handlingunits", jsonName: "Handlingunits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitSummary, options: { "validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "HandlingunitID" } } + { no: 1, name: "Handlingunits", kind: "message", localName: "Handlingunits", jsonName: "Handlingunits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitSummary, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "HandlingunitID" } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "HUContentUpdated" }); } create(value?: PartialMessage): ExecutionflowHUContentUpdatedPayload { @@ -3977,9 +3977,9 @@ export const ExecutionflowHUContentUpdatedPayload = new ExecutionflowHUContentUp class ExecutionflowHUContentUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowHUContentUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUContentUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUContentUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "HUContentUpdated", "api.postAggMethods": "computeHUContents,computeETAs", "api.preAggMethods": "aggHUStatus" }); } create(value?: PartialMessage): ExecutionflowHUContentUpdatedEvent { @@ -4037,9 +4037,9 @@ export const ExecutionflowHUContentUpdatedEvent = new ExecutionflowHUContentUpda class ExecutionflowHUContentUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowHUContentUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUContentUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUContentUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "HUContentUpdated" }); } create(value?: PartialMessage): ExecutionflowHUContentUpdatedRequest { @@ -4150,7 +4150,7 @@ export const ExecutionflowHUContentUpdatedResponse = new ExecutionflowHUContentU class ExecutionflowHUTrackingUpdatedPayload$Type extends MessageType { constructor() { super("api.ExecutionflowHUTrackingUpdatedPayload", [ - { no: 1, name: "Handlingunits", kind: "message", localName: "Handlingunits", jsonName: "Handlingunits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitSummary, options: { "validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "HandlingunitID" } } + { no: 1, name: "Handlingunits", kind: "message", localName: "Handlingunits", jsonName: "Handlingunits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitSummary, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "HandlingunitID" } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "HUTrackingUpdated" }); } create(value?: PartialMessage): ExecutionflowHUTrackingUpdatedPayload { @@ -4197,9 +4197,9 @@ export const ExecutionflowHUTrackingUpdatedPayload = new ExecutionflowHUTracking class ExecutionflowHUTrackingUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowHUTrackingUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUTrackingUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUTrackingUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "HUTrackingUpdated", "api.postAggMethods": "computeHUContents,computeETAs", "api.preAggMethods": "aggHUStatus" }); } create(value?: PartialMessage): ExecutionflowHUTrackingUpdatedEvent { @@ -4257,9 +4257,9 @@ export const ExecutionflowHUTrackingUpdatedEvent = new ExecutionflowHUTrackingUp class ExecutionflowHUTrackingUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowHUTrackingUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUTrackingUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUTrackingUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "HUTrackingUpdated" }); } create(value?: PartialMessage): ExecutionflowHUTrackingUpdatedRequest { @@ -4370,7 +4370,7 @@ export const ExecutionflowHUTrackingUpdatedResponse = new ExecutionflowHUTrackin class ExecutionflowHUETAUpdatedPayload$Type extends MessageType { constructor() { super("api.ExecutionflowHUETAUpdatedPayload", [ - { no: 1, name: "HandlingunitETAs", kind: "message", localName: "HandlingunitETAs", jsonName: "HandlingunitETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyHU, options: { "validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "HandlingunitID" } } + { no: 1, name: "HandlingunitETAs", kind: "message", localName: "HandlingunitETAs", jsonName: "HandlingunitETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyHU, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "HandlingunitID" } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "HUETAUpdated" }); } create(value?: PartialMessage): ExecutionflowHUETAUpdatedPayload { @@ -4417,9 +4417,9 @@ export const ExecutionflowHUETAUpdatedPayload = new ExecutionflowHUETAUpdatedPay class ExecutionflowHUETAUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowHUETAUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "HUETAUpdated", "api.postAggMethods": "computeETAs", "api.preAggMethods": "setHUETAActualDate" }); } create(value?: PartialMessage): ExecutionflowHUETAUpdatedEvent { @@ -4477,9 +4477,9 @@ export const ExecutionflowHUETAUpdatedEvent = new ExecutionflowHUETAUpdatedEvent class ExecutionflowHUETAUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowHUETAUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowHUETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "HUETAUpdated" }); } create(value?: PartialMessage): ExecutionflowHUETAUpdatedRequest { @@ -4590,7 +4590,7 @@ export const ExecutionflowHUETAUpdatedResponse = new ExecutionflowHUETAUpdatedRe class ExecutionflowETAUpdatedPayload$Type extends MessageType { constructor() { super("api.ExecutionflowETAUpdatedPayload", [ - { no: 1, name: "ExecutionflowETA", kind: "message", localName: "ExecutionflowETA", jsonName: "ExecutionflowETA", T: () => ETA, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The ETA for the executionflow as given by WMS. this ETA will be aggregated with those coming from HUs" } } } + { no: 1, name: "ExecutionflowETA", kind: "message", localName: "ExecutionflowETA", jsonName: "ExecutionflowETA", T: () => ETA, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The ETA for the executionflow as given by WMS. this ETA will be aggregated with those coming from HUs" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ExecutionflowETA"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ETAUpdated" }); } create(value?: PartialMessage): ExecutionflowETAUpdatedPayload { @@ -4636,9 +4636,9 @@ export const ExecutionflowETAUpdatedPayload = new ExecutionflowETAUpdatedPayload class ExecutionflowETAUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowETAUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ETAUpdated", "api.postAggMethods": "computeETAs", "api.preAggMethods": "setETAActualDate" }); } create(value?: PartialMessage): ExecutionflowETAUpdatedEvent { @@ -4696,9 +4696,9 @@ export const ExecutionflowETAUpdatedEvent = new ExecutionflowETAUpdatedEvent$Typ class ExecutionflowETAUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowETAUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ETAUpdated" }); } create(value?: PartialMessage): ExecutionflowETAUpdatedRequest { @@ -4847,9 +4847,9 @@ export const ExecutionflowAllocationErrorPayload = new ExecutionflowAllocationEr class ExecutionflowAllocationErrorEvent$Type extends MessageType { constructor() { super("api.ExecutionflowAllocationErrorEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAllocationErrorPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): ExecutionflowAllocationErrorEvent { @@ -4907,9 +4907,9 @@ export const ExecutionflowAllocationErrorEvent = new ExecutionflowAllocationErro class ExecutionflowAllocationErrorRequest$Type extends MessageType { constructor() { super("api.ExecutionflowAllocationErrorRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAllocationErrorPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): ExecutionflowAllocationErrorRequest { @@ -5058,9 +5058,9 @@ export const ExecutionflowPreparationExpectedPayload = new ExecutionflowPreparat class ExecutionflowPreparationExpectedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowPreparationExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PreparationExpected" }); } create(value?: PartialMessage): ExecutionflowPreparationExpectedEvent { @@ -5118,9 +5118,9 @@ export const ExecutionflowPreparationExpectedEvent = new ExecutionflowPreparatio class ExecutionflowPreparationExpectedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowPreparationExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PreparationExpected" }); } create(value?: PartialMessage): ExecutionflowPreparationExpectedRequest { @@ -5269,9 +5269,9 @@ export const ExecutionflowPreparationStartedPayload = new ExecutionflowPreparati class ExecutionflowPreparationStartedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowPreparationStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PreparationStarted" }); } create(value?: PartialMessage): ExecutionflowPreparationStartedEvent { @@ -5329,9 +5329,9 @@ export const ExecutionflowPreparationStartedEvent = new ExecutionflowPreparation class ExecutionflowPreparationStartedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowPreparationStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PreparationStarted" }); } create(value?: PartialMessage): ExecutionflowPreparationStartedRequest { @@ -5480,9 +5480,9 @@ export const ExecutionflowPreparationCompletedPayload = new ExecutionflowPrepara class ExecutionflowPreparationCompletedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowPreparationCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PreparationCompleted" }); } create(value?: PartialMessage): ExecutionflowPreparationCompletedEvent { @@ -5540,9 +5540,9 @@ export const ExecutionflowPreparationCompletedEvent = new ExecutionflowPreparati class ExecutionflowPreparationCompletedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowPreparationCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPreparationCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PreparationCompleted" }); } create(value?: PartialMessage): ExecutionflowPreparationCompletedRequest { @@ -5691,9 +5691,9 @@ export const ExecutionflowTransportExpectedPayload = new ExecutionflowTransportE class ExecutionflowTransportExpectedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowTransportExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TransportExpected" }); } create(value?: PartialMessage): ExecutionflowTransportExpectedEvent { @@ -5751,9 +5751,9 @@ export const ExecutionflowTransportExpectedEvent = new ExecutionflowTransportExp class ExecutionflowTransportExpectedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowTransportExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TransportExpected" }); } create(value?: PartialMessage): ExecutionflowTransportExpectedRequest { @@ -5902,9 +5902,9 @@ export const ExecutionflowTransportStartedPayload = new ExecutionflowTransportSt class ExecutionflowTransportStartedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowTransportStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TransportStarted" }); } create(value?: PartialMessage): ExecutionflowTransportStartedEvent { @@ -5962,9 +5962,9 @@ export const ExecutionflowTransportStartedEvent = new ExecutionflowTransportStar class ExecutionflowTransportStartedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowTransportStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TransportStarted" }); } create(value?: PartialMessage): ExecutionflowTransportStartedRequest { @@ -6113,9 +6113,9 @@ export const ExecutionflowTransportCompletedPayload = new ExecutionflowTransport class ExecutionflowTransportCompletedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowTransportCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TransportCompleted" }); } create(value?: PartialMessage): ExecutionflowTransportCompletedEvent { @@ -6173,9 +6173,9 @@ export const ExecutionflowTransportCompletedEvent = new ExecutionflowTransportCo class ExecutionflowTransportCompletedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowTransportCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowTransportCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TransportCompleted" }); } create(value?: PartialMessage): ExecutionflowTransportCompletedRequest { @@ -6324,9 +6324,9 @@ export const ExecutionflowReceiptStartedPayload = new ExecutionflowReceiptStarte class ExecutionflowReceiptStartedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowReceiptStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceiptStarted" }); } create(value?: PartialMessage): ExecutionflowReceiptStartedEvent { @@ -6384,9 +6384,9 @@ export const ExecutionflowReceiptStartedEvent = new ExecutionflowReceiptStartedE class ExecutionflowReceiptStartedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowReceiptStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceiptStarted" }); } create(value?: PartialMessage): ExecutionflowReceiptStartedRequest { @@ -6535,9 +6535,9 @@ export const ExecutionflowReceiptExpectedPayload = new ExecutionflowReceiptExpec class ExecutionflowReceiptExpectedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowReceiptExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceiptExpected" }); } create(value?: PartialMessage): ExecutionflowReceiptExpectedEvent { @@ -6595,9 +6595,9 @@ export const ExecutionflowReceiptExpectedEvent = new ExecutionflowReceiptExpecte class ExecutionflowReceiptExpectedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowReceiptExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceiptExpected" }); } create(value?: PartialMessage): ExecutionflowReceiptExpectedRequest { @@ -6746,9 +6746,9 @@ export const ExecutionflowReceiptCompletedPayload = new ExecutionflowReceiptComp class ExecutionflowReceiptCompletedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowReceiptCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceiptCompleted" }); } create(value?: PartialMessage): ExecutionflowReceiptCompletedEvent { @@ -6806,9 +6806,9 @@ export const ExecutionflowReceiptCompletedEvent = new ExecutionflowReceiptComple class ExecutionflowReceiptCompletedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowReceiptCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowReceiptCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceiptCompleted" }); } create(value?: PartialMessage): ExecutionflowReceiptCompletedRequest { @@ -6966,9 +6966,9 @@ export const ExecutionflowMetaDataUpdatedPayload = new ExecutionflowMetaDataUpda class ExecutionflowMetaDataUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowMetaDataUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): ExecutionflowMetaDataUpdatedEvent { @@ -7026,9 +7026,9 @@ export const ExecutionflowMetaDataUpdatedEvent = new ExecutionflowMetaDataUpdate class ExecutionflowMetaDataUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowMetaDataUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): ExecutionflowMetaDataUpdatedRequest { @@ -7193,9 +7193,9 @@ export const ExecutionflowCarrierUpdatedPayload = new ExecutionflowCarrierUpdate class ExecutionflowCarrierUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowCarrierUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCarrierUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCarrierUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CarrierUpdated", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): ExecutionflowCarrierUpdatedEvent { @@ -7253,9 +7253,9 @@ export const ExecutionflowCarrierUpdatedEvent = new ExecutionflowCarrierUpdatedE class ExecutionflowCarrierUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowCarrierUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCarrierUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCarrierUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierUpdated" }); } create(value?: PartialMessage): ExecutionflowCarrierUpdatedRequest { @@ -7413,9 +7413,9 @@ export const ExecutionflowAttachmentAddedPayload = new ExecutionflowAttachmentAd class ExecutionflowAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): ExecutionflowAttachmentAddedEvent { @@ -7473,9 +7473,9 @@ export const ExecutionflowAttachmentAddedEvent = new ExecutionflowAttachmentAdde class ExecutionflowAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): ExecutionflowAttachmentAddedRequest { @@ -7633,9 +7633,9 @@ export const ExecutionflowAttachmentRemovedPayload = new ExecutionflowAttachment class ExecutionflowAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): ExecutionflowAttachmentRemovedEvent { @@ -7693,9 +7693,9 @@ export const ExecutionflowAttachmentRemovedEvent = new ExecutionflowAttachmentRe class ExecutionflowAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): ExecutionflowAttachmentRemovedRequest { @@ -7853,9 +7853,9 @@ export const ExecutionflowClaimAddedPayload = new ExecutionflowClaimAddedPayload class ExecutionflowClaimAddedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowClaimAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ClaimAdded", "api.preAggMethods": "addClaim" }); } create(value?: PartialMessage): ExecutionflowClaimAddedEvent { @@ -7913,9 +7913,9 @@ export const ExecutionflowClaimAddedEvent = new ExecutionflowClaimAddedEvent$Typ class ExecutionflowClaimAddedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowClaimAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" }); } create(value?: PartialMessage): ExecutionflowClaimAddedRequest { @@ -8926,9 +8926,9 @@ export const ExecutionflowSanitisedPayload = new ExecutionflowSanitisedPayload$T class ExecutionflowSanitisedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): ExecutionflowSanitisedEvent { @@ -8986,9 +8986,9 @@ export const ExecutionflowSanitisedEvent = new ExecutionflowSanitisedEvent$Type( class ExecutionflowSanitisedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): ExecutionflowSanitisedRequest { @@ -9137,9 +9137,9 @@ export const ExecutionflowCustomFieldsUpdatedPayload = new ExecutionflowCustomFi class ExecutionflowCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.ExecutionflowCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ExecutionflowCustomFieldsUpdatedEvent { @@ -9197,9 +9197,9 @@ export const ExecutionflowCustomFieldsUpdatedEvent = new ExecutionflowCustomFiel class ExecutionflowCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.ExecutionflowCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ExecutionflowCustomFieldsUpdatedRequest { diff --git a/executionflowQuery.ts b/executionflowQuery.ts index 56beacb0..124ce8be 100644 --- a/executionflowQuery.ts +++ b/executionflowQuery.ts @@ -125,8 +125,8 @@ export interface ExecutionflowQueryOptions { class ExecutionflowByIdQuery$Type extends MessageType { constructor() { super("api.ExecutionflowByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ExecutionflowQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -240,7 +240,7 @@ export const ExecutionflowByIdResult = new ExecutionflowByIdResult$Type(); class ExecutionflowByFilterQuery$Type extends MessageType { constructor() { super("api.ExecutionflowByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, diff --git a/gcs-api.ts b/gcs-api.ts index 9efb06f3..dff1517c 100644 --- a/gcs-api.ts +++ b/gcs-api.ts @@ -242,7 +242,7 @@ export interface DeleteBucketResult { class GetPartnerReadTokenRequest$Type extends MessageType { constructor() { super("api.GetPartnerReadTokenRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetPartnerReadTokenRequest { @@ -288,7 +288,7 @@ export const GetPartnerReadTokenRequest = new GetPartnerReadTokenRequest$Type(); class GetPartnerWriteTokenRequest$Type extends MessageType { constructor() { super("api.GetPartnerWriteTokenRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetPartnerWriteTokenRequest { @@ -334,7 +334,7 @@ export const GetPartnerWriteTokenRequest = new GetPartnerWriteTokenRequest$Type( class GetProjectReadTokenRequest$Type extends MessageType { constructor() { super("api.GetProjectReadTokenRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetProjectReadTokenRequest { @@ -380,7 +380,7 @@ export const GetProjectReadTokenRequest = new GetProjectReadTokenRequest$Type(); class GetProjectWriteTokenRequest$Type extends MessageType { constructor() { super("api.GetProjectWriteTokenRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetProjectWriteTokenRequest { @@ -473,7 +473,7 @@ export const GetBucketSTSRequest = new GetBucketSTSRequest$Type(); class CreatePartnerBucketRequest$Type extends MessageType { constructor() { super("api.CreatePartnerBucketRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "BucketName", kind: "scalar", localName: "BucketName", jsonName: "BucketName", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } @@ -528,7 +528,7 @@ export const CreatePartnerBucketRequest = new CreatePartnerBucketRequest$Type(); class CreateProjectBucketRequest$Type extends MessageType { constructor() { super("api.CreateProjectBucketRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): CreateProjectBucketRequest { @@ -575,7 +575,7 @@ export const CreateProjectBucketRequest = new CreateProjectBucketRequest$Type(); class DeletePartnerBucketRequest$Type extends MessageType { constructor() { super("api.DeletePartnerBucketRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "BucketName", kind: "scalar", localName: "BucketName", jsonName: "BucketName", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } @@ -630,7 +630,7 @@ export const DeletePartnerBucketRequest = new DeletePartnerBucketRequest$Type(); class DeleteProjectBucketRequest$Type extends MessageType { constructor() { super("api.DeleteProjectBucketRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteProjectBucketRequest { @@ -677,7 +677,7 @@ export const DeleteProjectBucketRequest = new DeleteProjectBucketRequest$Type(); class DeleteOrganisationBucketRequest$Type extends MessageType { constructor() { super("api.DeleteOrganisationBucketRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); } create(value?: PartialMessage): DeleteOrganisationBucketRequest { diff --git a/go-ape.ts b/go-ape.ts index 1b0a21b7..bc74d588 100644 --- a/go-ape.ts +++ b/go-ape.ts @@ -71,10 +71,10 @@ class GoAPEGenerateRequest$Type extends MessageType { constructor() { super("api.GoAPEGenerateRequest", [ { no: 1, name: "Namespace", kind: "scalar", localName: "Namespace", jsonName: "Namespace", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Namespace" } } }, - { no: 2, name: "TemplateName", kind: "scalar", localName: "TemplateName", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template name" } } }, + { no: 2, name: "TemplateName", kind: "scalar", localName: "TemplateName", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template name" } } }, { no: 3, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, - { no: 4, name: "DataJSON", kind: "scalar", localName: "DataJSON", jsonName: "DataJSON", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "JSON data to be passed to the template" } } }, - { no: 5, name: "OutputFormat", kind: "enum", localName: "OutputFormat", jsonName: "OutputFormat", T: () => ["api.GoAPEGenerateType", GoAPEGenerateType], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Output format" } } } + { no: 4, name: "DataJSON", kind: "scalar", localName: "DataJSON", jsonName: "DataJSON", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "JSON data to be passed to the template" } } }, + { no: 5, name: "OutputFormat", kind: "enum", localName: "OutputFormat", jsonName: "OutputFormat", T: () => ["api.GoAPEGenerateType", GoAPEGenerateType], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Output format" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TemplateName", "DataJSON", "OutputFormat"] } } }); } create(value?: PartialMessage): GoAPEGenerateRequest { diff --git a/handlingunit.ts b/handlingunit.ts index 72522428..93a06c3f 100644 --- a/handlingunit.ts +++ b/handlingunit.ts @@ -223,7 +223,7 @@ class HandlingunitPayload$Type extends MessageType { { no: 4, name: "IncludedHandlingunitIDs", kind: "scalar", localName: "IncludedHandlingunitIDs", jsonName: "IncludedHandlingunitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }] }, "api.aggAppend": "HUsAdded", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 5, name: "CurrentTrackingSummary", kind: "message", localName: "CurrentTrackingSummary", jsonName: "CurrentTrackingSummary", T: () => TrackingSummary, options: { "api.aggSkip": "TrackingUpdated" } }, { no: 6, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.parentEntity": "Handlingunit", "api.aggAppend": "HUsAdded,MetaDataUpdated,GoodsPrepared" } }, - { no: 7, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => HandlingunitStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 7, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => HandlingunitStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 8, name: "PreparedContents", kind: "message", localName: "PreparedContents", jsonName: "PreparedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedGoodsByExeflow, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }] }, "api.aggAppend": "GoodsPrepared" } }, { no: 9, name: "ReceivedContents", kind: "message", localName: "ReceivedContents", jsonName: "ReceivedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedDatedGoodsByExeflow, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }] }, "api.aggAppend": "GoodsReceived" } }, { no: 10, name: "DispatchedDateTime", kind: "message", localName: "DispatchedDateTime", jsonName: "DispatchedDateTime", T: () => DateTime, options: { "api.aggSkip": "TrackingUpdated", "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }] } } }, diff --git a/handlingunitInput.ts b/handlingunitInput.ts index 649aad2e..f3051737 100644 --- a/handlingunitInput.ts +++ b/handlingunitInput.ts @@ -116,7 +116,7 @@ export interface HandlingunitHUsAddedPayload { Information?: HandlingunitInformation; // bool ContainsHUs = 2 // [ - // (validate.rules).bool.const = true + // (n1validate.rules).bool.const = true // ]; /** @@ -1005,7 +1005,7 @@ class HandlingunitGoodsPreparedPayload$Type extends MessageType HandlingunitInformation }, - { no: 2, name: "PreparedContents", kind: "message", localName: "PreparedContents", jsonName: "PreparedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedGoodsByExeflow, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 2, name: "PreparedContents", kind: "message", localName: "PreparedContents", jsonName: "PreparedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedGoodsByExeflow, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "GoodsPrepared" }); } @@ -1066,9 +1066,9 @@ export const HandlingunitGoodsPreparedPayload = new HandlingunitGoodsPreparedPay class HandlingunitGoodsPreparedEvent$Type extends MessageType { constructor() { super("api.HandlingunitGoodsPreparedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsPreparedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsPreparedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "GoodsPrepared", "api.postAggMethods": "setContainsGoodsFlag,computePreparedContents,fillOrderID", "api.preAggMethods": "setStockMovementGeneratedFlags" }); } create(value?: PartialMessage): HandlingunitGoodsPreparedEvent { @@ -1126,9 +1126,9 @@ export const HandlingunitGoodsPreparedEvent = new HandlingunitGoodsPreparedEvent class HandlingunitGoodsPreparedRequest$Type extends MessageType { constructor() { super("api.HandlingunitGoodsPreparedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsPreparedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsPreparedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "GoodsPrepared" }); } create(value?: PartialMessage): HandlingunitGoodsPreparedRequest { @@ -1240,7 +1240,7 @@ class HandlingunitHUsAddedPayload$Type extends MessageType HandlingunitInformation }, - { no: 3, name: "IncludedHandlingunitIDs", kind: "scalar", localName: "IncludedHandlingunitIDs", jsonName: "IncludedHandlingunitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 3, name: "IncludedHandlingunitIDs", kind: "scalar", localName: "IncludedHandlingunitIDs", jsonName: "IncludedHandlingunitIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 4, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "HUsAdded" }); } @@ -1301,9 +1301,9 @@ export const HandlingunitHUsAddedPayload = new HandlingunitHUsAddedPayload$Type( class HandlingunitHUsAddedEvent$Type extends MessageType { constructor() { super("api.HandlingunitHUsAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitHUsAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitHUsAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "HUsAdded", "api.postAggMethods": "setContainsHUFlag", "api.preAggMethods": "checkIncludedHandlingunitIDs" }); } create(value?: PartialMessage): HandlingunitHUsAddedEvent { @@ -1361,9 +1361,9 @@ export const HandlingunitHUsAddedEvent = new HandlingunitHUsAddedEvent$Type(); class HandlingunitHUsAddedRequest$Type extends MessageType { constructor() { super("api.HandlingunitHUsAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitHUsAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitHUsAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "HUsAdded" }); } create(value?: PartialMessage): HandlingunitHUsAddedRequest { @@ -1535,9 +1535,9 @@ export const HandlingunitTrackingUpdatedPayload = new HandlingunitTrackingUpdate class HandlingunitTrackingUpdatedEvent$Type extends MessageType { constructor() { super("api.HandlingunitTrackingUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TrackingUpdated", "api.postAggMethods": "defineHUInformation,deduplicateTrackingIDs", "api.preAggMethods": "setStockMovementGeneratedFlags,aggTrackingSummaryUnderCondition" }); } create(value?: PartialMessage): HandlingunitTrackingUpdatedEvent { @@ -1595,9 +1595,9 @@ export const HandlingunitTrackingUpdatedEvent = new HandlingunitTrackingUpdatedE class HandlingunitTrackingUpdatedRequest$Type extends MessageType { constructor() { super("api.HandlingunitTrackingUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TrackingUpdated" }); } create(value?: PartialMessage): HandlingunitTrackingUpdatedRequest { @@ -1708,7 +1708,7 @@ export const HandlingunitTrackingUpdatedResponse = new HandlingunitTrackingUpdat class HandlingunitETAUpdatedPayload$Type extends MessageType { constructor() { super("api.HandlingunitETAUpdatedPayload", [ - { no: 1, name: "HandlingunitETA", kind: "message", localName: "HandlingunitETA", jsonName: "HandlingunitETA", T: () => ETA, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "HandlingunitETA", kind: "message", localName: "HandlingunitETA", jsonName: "HandlingunitETA", T: () => ETA, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ETAUpdated" }); } create(value?: PartialMessage): HandlingunitETAUpdatedPayload { @@ -1754,9 +1754,9 @@ export const HandlingunitETAUpdatedPayload = new HandlingunitETAUpdatedPayload$T class HandlingunitETAUpdatedEvent$Type extends MessageType { constructor() { super("api.HandlingunitETAUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ETAUpdated", "api.postAggMethods": "computeETAs", "api.preAggMethods": "setETAActualDate" }); } create(value?: PartialMessage): HandlingunitETAUpdatedEvent { @@ -1814,9 +1814,9 @@ export const HandlingunitETAUpdatedEvent = new HandlingunitETAUpdatedEvent$Type( class HandlingunitETAUpdatedRequest$Type extends MessageType { constructor() { super("api.HandlingunitETAUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ETAUpdated" }); } create(value?: PartialMessage): HandlingunitETAUpdatedRequest { @@ -1973,9 +1973,9 @@ export const HandlingunitTrackingETAUpdatedPayload = new HandlingunitTrackingETA class HandlingunitTrackingETAUpdatedEvent$Type extends MessageType { constructor() { super("api.HandlingunitTrackingETAUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TrackingETAUpdated", "api.postAggMethods": "computeETAs", "api.preAggMethods": "setTrackingETAActualDate" }); } create(value?: PartialMessage): HandlingunitTrackingETAUpdatedEvent { @@ -2033,9 +2033,9 @@ export const HandlingunitTrackingETAUpdatedEvent = new HandlingunitTrackingETAUp class HandlingunitTrackingETAUpdatedRequest$Type extends MessageType { constructor() { super("api.HandlingunitTrackingETAUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitTrackingETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TrackingETAUpdated" }); } create(value?: PartialMessage): HandlingunitTrackingETAUpdatedRequest { @@ -2184,9 +2184,9 @@ export const HandlingunitDispatchedPayload = new HandlingunitDispatchedPayload$T class HandlingunitDispatchedEvent$Type extends MessageType { constructor() { super("api.HandlingunitDispatchedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitDispatchedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitDispatchedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Dispatched", "api.postAggMethods": "deduplicateTrackingIDs,setDispatchedDateTime", "api.preAggMethods": "setStockMovementGeneratedFlags" }); } create(value?: PartialMessage): HandlingunitDispatchedEvent { @@ -2244,9 +2244,9 @@ export const HandlingunitDispatchedEvent = new HandlingunitDispatchedEvent$Type( class HandlingunitDispatchedRequest$Type extends MessageType { constructor() { super("api.HandlingunitDispatchedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitDispatchedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitDispatchedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Dispatched" }); } create(value?: PartialMessage): HandlingunitDispatchedRequest { @@ -2357,7 +2357,7 @@ export const HandlingunitDispatchedResponse = new HandlingunitDispatchedResponse class HandlingunitGoodsReceivedPayload$Type extends MessageType { constructor() { super("api.HandlingunitGoodsReceivedPayload", [ - { no: 1, name: "ReceivedContents", kind: "message", localName: "ReceivedContents", jsonName: "ReceivedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedDatedGoodsByExeflow, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "ReceivedContents", kind: "message", localName: "ReceivedContents", jsonName: "ReceivedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedDatedGoodsByExeflow, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "GoodsReceived" }); } create(value?: PartialMessage): HandlingunitGoodsReceivedPayload { @@ -2404,9 +2404,9 @@ export const HandlingunitGoodsReceivedPayload = new HandlingunitGoodsReceivedPay class HandlingunitGoodsReceivedEvent$Type extends MessageType { constructor() { super("api.HandlingunitGoodsReceivedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsReceivedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsReceivedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "GoodsReceived", "api.postAggMethods": "setContainsGoodsFlag,computeReceivedContents,defineHUInformation,fillOrderID", "api.preAggMethods": "setStockMovementGeneratedFlags" }); } create(value?: PartialMessage): HandlingunitGoodsReceivedEvent { @@ -2464,9 +2464,9 @@ export const HandlingunitGoodsReceivedEvent = new HandlingunitGoodsReceivedEvent class HandlingunitGoodsReceivedRequest$Type extends MessageType { constructor() { super("api.HandlingunitGoodsReceivedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsReceivedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitGoodsReceivedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "GoodsReceived" }); } create(value?: PartialMessage): HandlingunitGoodsReceivedRequest { @@ -2624,9 +2624,9 @@ export const HandlingunitAttachmentAddedPayload = new HandlingunitAttachmentAdde class HandlingunitAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.HandlingunitAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): HandlingunitAttachmentAddedEvent { @@ -2684,9 +2684,9 @@ export const HandlingunitAttachmentAddedEvent = new HandlingunitAttachmentAddedE class HandlingunitAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.HandlingunitAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): HandlingunitAttachmentAddedRequest { @@ -2844,9 +2844,9 @@ export const HandlingunitAttachmentRemovedPayload = new HandlingunitAttachmentRe class HandlingunitAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.HandlingunitAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): HandlingunitAttachmentRemovedEvent { @@ -2904,9 +2904,9 @@ export const HandlingunitAttachmentRemovedEvent = new HandlingunitAttachmentRemo class HandlingunitAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.HandlingunitAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): HandlingunitAttachmentRemovedRequest { @@ -3064,9 +3064,9 @@ export const HandlingunitMetaDataUpdatedPayload = new HandlingunitMetaDataUpdate class HandlingunitMetaDataUpdatedEvent$Type extends MessageType { constructor() { super("api.HandlingunitMetaDataUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): HandlingunitMetaDataUpdatedEvent { @@ -3124,9 +3124,9 @@ export const HandlingunitMetaDataUpdatedEvent = new HandlingunitMetaDataUpdatedE class HandlingunitMetaDataUpdatedRequest$Type extends MessageType { constructor() { super("api.HandlingunitMetaDataUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): HandlingunitMetaDataUpdatedRequest { @@ -3284,9 +3284,9 @@ export const HandlingunitParentHUUpdatedPayload = new HandlingunitParentHUUpdate class HandlingunitParentHUUpdatedEvent$Type extends MessageType { constructor() { super("api.HandlingunitParentHUUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitParentHUUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitParentHUUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ParentHUUpdated" }); } create(value?: PartialMessage): HandlingunitParentHUUpdatedEvent { @@ -3344,9 +3344,9 @@ export const HandlingunitParentHUUpdatedEvent = new HandlingunitParentHUUpdatedE class HandlingunitParentHUUpdatedRequest$Type extends MessageType { constructor() { super("api.HandlingunitParentHUUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitParentHUUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitParentHUUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ParentHUUpdated" }); } create(value?: PartialMessage): HandlingunitParentHUUpdatedRequest { @@ -3504,9 +3504,9 @@ export const HandlingunitClaimAddedPayload = new HandlingunitClaimAddedPayload$T class HandlingunitClaimAddedEvent$Type extends MessageType { constructor() { super("api.HandlingunitClaimAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ClaimAdded", "api.preAggMethods": "addClaim" }); } create(value?: PartialMessage): HandlingunitClaimAddedEvent { @@ -3564,9 +3564,9 @@ export const HandlingunitClaimAddedEvent = new HandlingunitClaimAddedEvent$Type( class HandlingunitClaimAddedRequest$Type extends MessageType { constructor() { super("api.HandlingunitClaimAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" }); } create(value?: PartialMessage): HandlingunitClaimAddedRequest { @@ -3715,9 +3715,9 @@ export const HandlingunitReadyToBeCollectedPayload = new HandlingunitReadyToBeCo class HandlingunitReadyToBeCollectedEvent$Type extends MessageType { constructor() { super("api.HandlingunitReadyToBeCollectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitReadyToBeCollectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitReadyToBeCollectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReadyToBeCollected" }); } create(value?: PartialMessage): HandlingunitReadyToBeCollectedEvent { @@ -3775,9 +3775,9 @@ export const HandlingunitReadyToBeCollectedEvent = new HandlingunitReadyToBeColl class HandlingunitReadyToBeCollectedRequest$Type extends MessageType { constructor() { super("api.HandlingunitReadyToBeCollectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitReadyToBeCollectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitReadyToBeCollectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReadyToBeCollected" }); } create(value?: PartialMessage): HandlingunitReadyToBeCollectedRequest { @@ -4137,9 +4137,9 @@ export const HandlingunitSanitisedPayload = new HandlingunitSanitisedPayload$Typ class HandlingunitSanitisedEvent$Type extends MessageType { constructor() { super("api.HandlingunitSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): HandlingunitSanitisedEvent { @@ -4197,9 +4197,9 @@ export const HandlingunitSanitisedEvent = new HandlingunitSanitisedEvent$Type(); class HandlingunitSanitisedRequest$Type extends MessageType { constructor() { super("api.HandlingunitSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): HandlingunitSanitisedRequest { @@ -4348,9 +4348,9 @@ export const HandlingunitCustomFieldsUpdatedPayload = new HandlingunitCustomFiel class HandlingunitCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.HandlingunitCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): HandlingunitCustomFieldsUpdatedEvent { @@ -4408,9 +4408,9 @@ export const HandlingunitCustomFieldsUpdatedEvent = new HandlingunitCustomFields class HandlingunitCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.HandlingunitCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => HandlingunitCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): HandlingunitCustomFieldsUpdatedRequest { diff --git a/handlingunitQuery.ts b/handlingunitQuery.ts index fb25ed94..cb4f130f 100644 --- a/handlingunitQuery.ts +++ b/handlingunitQuery.ts @@ -163,8 +163,8 @@ export interface HandlingunitByMatchResult { class HandlingunitByIdQuery$Type extends MessageType { constructor() { super("api.HandlingunitByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => HandlingunitQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -480,7 +480,7 @@ export const HandlingunitQueryOptions = new HandlingunitQueryOptions$Type(); class HandlingunitByMatchQuery$Type extends MessageType { constructor() { super("api.HandlingunitByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, diff --git a/idp.ts b/idp.ts index d0b549d3..89a9de5f 100644 --- a/idp.ts +++ b/idp.ts @@ -135,8 +135,8 @@ class IDP$Type extends MessageType { constructor() { super("api.IDP", [ { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "KCID", kind: "scalar", localName: "KCID", jsonName: "KCID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "KCID", kind: "scalar", localName: "KCID", jsonName: "KCID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ } ]); } @@ -205,7 +205,7 @@ export const IDP = new IDP$Type(); class DeleteIDPRequest$Type extends MessageType { constructor() { super("api.DeleteIDPRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeleteIDPRequest { @@ -252,7 +252,7 @@ export const DeleteIDPRequest = new DeleteIDPRequest$Type(); class GetIDPRequest$Type extends MessageType { constructor() { super("api.GetIDPRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): GetIDPRequest { @@ -299,8 +299,8 @@ export const GetIDPRequest = new GetIDPRequest$Type(); class CreateIDPRequest$Type extends MessageType { constructor() { super("api.CreateIDPRequest", [ - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "KCID", kind: "scalar", localName: "KCID", jsonName: "KCID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "KCID", kind: "scalar", localName: "KCID", jsonName: "KCID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ } ]); } @@ -362,8 +362,8 @@ export const CreateIDPRequest = new CreateIDPRequest$Type(); class UpdateIDPRequest$Type extends MessageType { constructor() { super("api.UpdateIDPRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "KCID", kind: "scalar", localName: "KCID", jsonName: "KCID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "KCID", kind: "scalar", localName: "KCID", jsonName: "KCID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ } ]); } diff --git a/index.ts b/index.ts index 3f8732e6..b4255539 100644 --- a/index.ts +++ b/index.ts @@ -99,6 +99,7 @@ export * from './movementInput' export * from './movementQuery.client' export * from './movementQuery' + export * from './n1validate' export * from './nats-api.client' export * from './nats-api' export * from './notif' @@ -179,7 +180,6 @@ export * from './user' export * from './users.client' export * from './users' - export * from './validate' export * from './view.client' export * from './view' export * from './visibility' diff --git a/item.ts b/item.ts index 8c787f89..a811f0b7 100644 --- a/item.ts +++ b/item.ts @@ -168,8 +168,8 @@ class ItemPayload$Type extends MessageType { { no: 6, name: "ExpiryConstraint", kind: "message", localName: "ExpiryConstraint", jsonName: "ExpiryConstraint", T: () => ExpiryConstraint, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Item components" } } }, { no: 7, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "image" }] } } }, { no: 3, name: "DescriptionsByLanguage", kind: "message", localName: "DescriptionsByLanguage", jsonName: "DescriptionsByLanguage", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TradeItemDescriptions, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391", "api.aggAppend": "DescriptionUpdated", "api.kpiItems": { Items: [{ Context: "Item", Group: "item" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } }, - { no: 4, name: "LogisticVariants", kind: "message", localName: "LogisticVariants", jsonName: "LogisticVariants", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LogisticVariant, options: { "validate.rules": { repeated: { uniqueBaseLV: true, knownRefLV: true } }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }, { Context: "Item", Group: "item" }] }, "api.aggAppend": "LogisticVariantUpdated" } }, - { no: 5, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ItemStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] }, "api.enrichmentClear": "Handlingunit,Order,Executionflow,Stock" } }, + { no: 4, name: "LogisticVariants", kind: "message", localName: "LogisticVariants", jsonName: "LogisticVariants", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LogisticVariant, options: { "n1validate.rules": { repeated: { uniqueBaseLV: true, knownRefLV: true } }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }, { Context: "Item", Group: "item" }] }, "api.aggAppend": "LogisticVariantUpdated" } }, + { no: 5, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ItemStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] }, "api.enrichmentClear": "Handlingunit,Order,Executionflow,Stock" } }, { no: 8, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.enrichmentClear": "Handlingunit,Order,Executionflow,Stock" } }, { no: 9, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" }, "api.enrichmentClear": "Handlingunit,Order,Executionflow,Stock" } }, { no: 10, name: "RemovedLogisticVariantIDs", kind: "scalar", localName: "RemovedLogisticVariantIDs", jsonName: "RemovedLogisticVariantIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } } diff --git a/itemInput.ts b/itemInput.ts index a53c59d0..6a2645da 100644 --- a/itemInput.ts +++ b/itemInput.ts @@ -633,15 +633,15 @@ export interface ItemSanitisedResponse { // option (preAggMethods) = "addClaim"; // Here are listed the pre aggregation methods to call before event message is aggregated // EventHeader Header = 1 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // EntityID ID = 2 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // ItemClaimAddedPayload Payload = 3 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // } // message ItemClaimAddedRequest { @@ -654,15 +654,15 @@ export interface ItemSanitisedResponse { // option (messageType) = "Request"; // RequestProjectHeader Header = 1 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // EntityID ID = 2 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // ItemClaimAddedPayload Payload = 3 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // } // message ItemClaimAddedResponse { @@ -788,7 +788,7 @@ class ItemCreatedPayload$Type extends MessageType { { no: 6, name: "ExpiryConstraint", kind: "message", localName: "ExpiryConstraint", jsonName: "ExpiryConstraint", T: () => ExpiryConstraint, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Item components" } } }, { no: 7, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" }, "api.viewType": { Types: [{ Context: "*", Type: "image" }] } } }, { no: 3, name: "DescriptionsByLanguage", kind: "message", localName: "DescriptionsByLanguage", jsonName: "DescriptionsByLanguage", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TradeItemDescriptions, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } }, - { no: 4, name: "LogisticVariants", kind: "message", localName: "LogisticVariants", jsonName: "LogisticVariants", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LogisticVariant, options: { "validate.rules": { repeated: { uniqueBaseLV: true, knownRefLV: true } }, "api.aggKey": "LVID" } } + { no: 4, name: "LogisticVariants", kind: "message", localName: "LogisticVariants", jsonName: "LogisticVariants", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LogisticVariant, options: { "n1validate.rules": { repeated: { uniqueBaseLV: true, knownRefLV: true } }, "api.aggKey": "LVID" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" }); } create(value?: PartialMessage): ItemCreatedPayload { @@ -862,9 +862,9 @@ export const ItemCreatedPayload = new ItemCreatedPayload$Type(); class ItemCreatedEvent$Type extends MessageType { constructor() { super("api.ItemCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Created", "api.postAggMethods": "computeEquivalentLVBaseQuantity,defineExpiration,propagateLVBranches", "api.preAggMethods": "checkBaseLV" }); } create(value?: PartialMessage): ItemCreatedEvent { @@ -922,9 +922,9 @@ export const ItemCreatedEvent = new ItemCreatedEvent$Type(); class ItemCreatedRequest$Type extends MessageType { constructor() { super("api.ItemCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): ItemCreatedRequest { @@ -2173,9 +2173,9 @@ export const ItemAttachmentAddedPayload = new ItemAttachmentAddedPayload$Type(); class ItemAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.ItemAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): ItemAttachmentAddedEvent { @@ -2233,9 +2233,9 @@ export const ItemAttachmentAddedEvent = new ItemAttachmentAddedEvent$Type(); class ItemAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.ItemAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): ItemAttachmentAddedRequest { @@ -2393,9 +2393,9 @@ export const ItemAttachmentRemovedPayload = new ItemAttachmentRemovedPayload$Typ class ItemAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.ItemAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): ItemAttachmentRemovedEvent { @@ -2453,9 +2453,9 @@ export const ItemAttachmentRemovedEvent = new ItemAttachmentRemovedEvent$Type(); class ItemAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.ItemAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): ItemAttachmentRemovedRequest { @@ -2604,9 +2604,9 @@ export const ItemSanitisedPayload = new ItemSanitisedPayload$Type(); class ItemSanitisedEvent$Type extends MessageType { constructor() { super("api.ItemSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): ItemSanitisedEvent { @@ -2664,9 +2664,9 @@ export const ItemSanitisedEvent = new ItemSanitisedEvent$Type(); class ItemSanitisedRequest$Type extends MessageType { constructor() { super("api.ItemSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): ItemSanitisedRequest { @@ -2815,9 +2815,9 @@ export const ItemCustomFieldsUpdatedPayload = new ItemCustomFieldsUpdatedPayload class ItemCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.ItemCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ItemCustomFieldsUpdatedEvent { @@ -2875,9 +2875,9 @@ export const ItemCustomFieldsUpdatedEvent = new ItemCustomFieldsUpdatedEvent$Typ class ItemCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.ItemCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): ItemCustomFieldsUpdatedRequest { @@ -3035,9 +3035,9 @@ export const ItemPhotoUriUpdatedPayload = new ItemPhotoUriUpdatedPayload$Type(); class ItemPhotoUriUpdatedEvent$Type extends MessageType { constructor() { super("api.ItemPhotoUriUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemPhotoUriUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemPhotoUriUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PhotoUriUpdated" }); } create(value?: PartialMessage): ItemPhotoUriUpdatedEvent { @@ -3095,9 +3095,9 @@ export const ItemPhotoUriUpdatedEvent = new ItemPhotoUriUpdatedEvent$Type(); class ItemPhotoUriUpdatedRequest$Type extends MessageType { constructor() { super("api.ItemPhotoUriUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemPhotoUriUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ItemPhotoUriUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PhotoUriUpdated" }); } create(value?: PartialMessage): ItemPhotoUriUpdatedRequest { diff --git a/itemQuery.ts b/itemQuery.ts index e14bdcbe..c4aa31c4 100644 --- a/itemQuery.ts +++ b/itemQuery.ts @@ -200,8 +200,8 @@ export interface GetLVDetailedQuantityResult { class ItemByIdQuery$Type extends MessageType { constructor() { super("api.ItemByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ItemQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -315,7 +315,7 @@ export const ItemByIdResult = new ItemByIdResult$Type(); class ItemByFilterQuery$Type extends MessageType { constructor() { super("api.ItemByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -517,7 +517,7 @@ export const ItemQueryOptions = new ItemQueryOptions$Type(); class ItemByMatchQuery$Type extends MessageType { constructor() { super("api.ItemByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, @@ -642,8 +642,8 @@ export const ItemByMatchResult = new ItemByMatchResult$Type(); class GetLVDetailedQuantityQuery$Type extends MessageType { constructor() { super("api.GetLVDetailedQuantityQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => QueryEntityID, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => QueryEntityID, options: { "n1validate.rules": { message: { required: true } } } }, { no: 3, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "quantityInbaseLv", kind: "scalar", T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Quantity in base LV to detail" } } }, { no: 5, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => ItemQueryOptions } diff --git a/kpi.ts b/kpi.ts index 0d915a7b..923c63ab 100644 --- a/kpi.ts +++ b/kpi.ts @@ -532,9 +532,9 @@ export const KpiExpression = new KpiExpression$Type(); class GetKpisRequest$Type extends MessageType { constructor() { super("api.GetKpisRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Widget analysis criterion, executionflow, stock, movement or handlingunit", example: "\"executionflow\"" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Group", kind: "scalar", localName: "Group", jsonName: "Group", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim", "appointment"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Widget analysis criterion, executionflow, stock, movement or handlingunit", example: "\"executionflow\"" } } }, { no: 4, name: "isMetric", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "isDimension", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, { no: 6, name: "isDate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, @@ -681,9 +681,9 @@ export const GetKpisResult = new GetKpisResult$Type(); class GetKpiTableStructureRequest$Type extends MessageType { constructor() { super("api.GetKpiTableStructureRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "Domain"] } } }); } create(value?: PartialMessage): GetKpiTableStructureRequest { @@ -791,9 +791,9 @@ export const GetKpiTableStructureResult = new GetKpiTableStructureResult$Type(); class UpdateKpiTableStructureRequest$Type extends MessageType { constructor() { super("api.UpdateKpiTableStructureRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Domain"] } } }); } create(value?: PartialMessage): UpdateKpiTableStructureRequest { @@ -892,8 +892,8 @@ export const UpdateKpiTableStructureResult = new UpdateKpiTableStructureResult$T class DropKpiTableStructureRequest$Type extends MessageType { constructor() { super("api.DropKpiTableStructureRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Domain"] } } }); } create(value?: PartialMessage): DropKpiTableStructureRequest { @@ -985,8 +985,8 @@ export const DropKpiTableStructureResult = new DropKpiTableStructureResult$Type( class GetKpiEntitiesRequest$Type extends MessageType { constructor() { super("api.GetKpiEntitiesRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Domain"] } } }); } create(value?: PartialMessage): GetKpiEntitiesRequest { @@ -1087,8 +1087,8 @@ export const GetKpiEntitiesResult = new GetKpiEntitiesResult$Type(); class ClearKpiEntityRequest$Type extends MessageType { constructor() { super("api.ClearKpiEntityRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType", "Domain"] } } }); } create(value?: PartialMessage): ClearKpiEntityRequest { @@ -1180,8 +1180,8 @@ export const ClearKpiEntityResult = new ClearKpiEntityResult$Type(); class CreateMVRequest$Type extends MessageType { constructor() { super("api.CreateMVRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "Domain"] } } }); } create(value?: PartialMessage): CreateMVRequest { @@ -1273,8 +1273,8 @@ export const CreateMVResult = new CreateMVResult$Type(); class DropMVRequest$Type extends MessageType { constructor() { super("api.DropMVRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "Domain"] } } }); } create(value?: PartialMessage): DropMVRequest { @@ -1366,8 +1366,8 @@ export const DropMVResult = new DropMVResult$Type(); class PopulateMVRequest$Type extends MessageType { constructor() { super("api.PopulateMVRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "Domain"] } } }); } create(value?: PartialMessage): PopulateMVRequest { diff --git a/logger.ts b/logger.ts index c6676127..59660636 100644 --- a/logger.ts +++ b/logger.ts @@ -267,11 +267,11 @@ export interface PlatformLogByMatchResult { class PlatformLogPayload$Type extends MessageType { constructor() { super("api.PlatformLogPayload", [ - { no: 1, name: "Severity", kind: "enum", localName: "Severity", jsonName: "Severity", T: () => ["api.SeverityLevel", SeverityLevel], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Log severity level" } } }, - { no: 2, name: "Namespace", kind: "scalar", localName: "Namespace", jsonName: "Namespace", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the log occured, for example \"CORE\"" } } }, - { no: 3, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "When the log occured" } } }, - { no: 4, name: "TechMessage", kind: "message", localName: "TechMessage", jsonName: "TechMessage", T: () => LabelStructure, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Technical message of the log" } } }, - { no: 5, name: "UserMessage", kind: "message", localName: "UserMessage", jsonName: "UserMessage", T: () => LabelStructure, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "User message of the log" } } }, + { no: 1, name: "Severity", kind: "enum", localName: "Severity", jsonName: "Severity", T: () => ["api.SeverityLevel", SeverityLevel], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Log severity level" } } }, + { no: 2, name: "Namespace", kind: "scalar", localName: "Namespace", jsonName: "Namespace", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the log occured, for example \"CORE\"" } } }, + { no: 3, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "When the log occured" } } }, + { no: 4, name: "TechMessage", kind: "message", localName: "TechMessage", jsonName: "TechMessage", T: () => LabelStructure, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Technical message of the log" } } }, + { no: 5, name: "UserMessage", kind: "message", localName: "UserMessage", jsonName: "UserMessage", T: () => LabelStructure, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "User message of the log" } } }, { no: 6, name: "DetailElements", kind: "message", localName: "DetailElements", jsonName: "DetailElements", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelStructure, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Detailed elements of the log" } } }, { no: 7, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Correlation ID attached to the log" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 8, name: "ContextPayload", kind: "scalar", localName: "ContextPayload", jsonName: "ContextPayload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Context payload attached to the log" } } }, @@ -467,9 +467,9 @@ export const PlatformLog = new PlatformLog$Type(); class PlatformLogCreateRequest$Type extends MessageType { constructor() { super("api.PlatformLogCreateRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PlatformLogPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PlatformLogPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } } }); } create(value?: PartialMessage): PlatformLogCreateRequest { @@ -580,7 +580,7 @@ export const PlatformLogCreateResponse = new PlatformLogCreateResponse$Type(); class PlatformLogFindRequest$Type extends MessageType { constructor() { super("api.PlatformLogFindRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter } @@ -712,7 +712,7 @@ export const PlatformLogFindResult = new PlatformLogFindResult$Type(); class PlatformLogGetByIdsRequest$Type extends MessageType { constructor() { super("api.PlatformLogGetByIdsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -820,7 +820,7 @@ export const PlatformLogGetByIdsResult = new PlatformLogGetByIdsResult$Type(); class PlatformLogByMatchRequest$Type extends MessageType { constructor() { super("api.PlatformLogByMatchRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); diff --git a/matrix-proxy.ts b/matrix-proxy.ts index 61fbd55d..fdb2fe5c 100644 --- a/matrix-proxy.ts +++ b/matrix-proxy.ts @@ -247,7 +247,7 @@ export interface SendMessageToProjectRoomResponse { class CreateRoomRequest$Type extends MessageType { constructor() { super("api.CreateRoomRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } }); } create(value?: PartialMessage): CreateRoomRequest { @@ -341,7 +341,7 @@ export const CreateRoomResponse = new CreateRoomResponse$Type(); class DeleteRoomRequest$Type extends MessageType { constructor() { super("api.DeleteRoomRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } }); } create(value?: PartialMessage): DeleteRoomRequest { @@ -428,7 +428,7 @@ class InviteUserToRoomRequest$Type extends MessageType super("api.InviteUserToRoomRequest", [ { no: 1, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", oneof: "User", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", oneof: "User", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 3, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RoomName"] } } }); } create(value?: PartialMessage): InviteUserToRoomRequest { @@ -541,8 +541,8 @@ export const InviteUserToRoomResponse = new InviteUserToRoomResponse$Type(); class SendNoticeToRoomRequest$Type extends MessageType { constructor() { super("api.SendNoticeToRoomRequest", [ - { no: 1, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RoomName", "Message"] } } }); } create(value?: PartialMessage): SendNoticeToRoomRequest { @@ -634,8 +634,8 @@ export const SendNoticeToRoomResponse = new SendNoticeToRoomResponse$Type(); class CreateProjectRoomRequest$Type extends MessageType { constructor() { super("api.CreateProjectRoomRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Name"] } } }); } create(value?: PartialMessage): CreateProjectRoomRequest { @@ -736,8 +736,8 @@ export const CreateProjectRoomResponse = new CreateProjectRoomResponse$Type(); class DeleteProjectRoomRequest$Type extends MessageType { constructor() { super("api.DeleteProjectRoomRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Name"] } } }); } create(value?: PartialMessage): DeleteProjectRoomRequest { @@ -829,10 +829,10 @@ export const DeleteProjectRoomResponse = new DeleteProjectRoomResponse$Type(); class InviteUserToProjectRoomRequest$Type extends MessageType { constructor() { super("api.InviteUserToProjectRoomRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", oneof: "User", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", oneof: "User", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 4, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "RoomName"] } } }); } create(value?: PartialMessage): InviteUserToProjectRoomRequest { @@ -952,9 +952,9 @@ export const InviteUserToProjectRoomResponse = new InviteUserToProjectRoomRespon class SendNoticeToProjectRoomRequest$Type extends MessageType { constructor() { super("api.SendNoticeToProjectRoomRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "RoomName", "Message"] } } }); } create(value?: PartialMessage): SendNoticeToProjectRoomRequest { @@ -1053,7 +1053,7 @@ export const SendNoticeToProjectRoomResponse = new SendNoticeToProjectRoomRespon class DeleteRoomsForProjectRequest$Type extends MessageType { constructor() { super("api.DeleteRoomsForProjectRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteRoomsForProjectRequest { @@ -1138,10 +1138,10 @@ export const DeleteRoomsForProjectResponse = new DeleteRoomsForProjectResponse$T class SendMessageToProjectRoomRequest$Type extends MessageType { constructor() { super("api.SendMessageToProjectRoomRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "UserJWT", kind: "scalar", localName: "UserJWT", jsonName: "UserJWT", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "RoomName", kind: "scalar", localName: "RoomName", jsonName: "RoomName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Message", kind: "scalar", localName: "Message", jsonName: "Message", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "UserJWT", kind: "scalar", localName: "UserJWT", jsonName: "UserJWT", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "RoomName", "Message", "UserJWT"] } } }); } create(value?: PartialMessage): SendMessageToProjectRoomRequest { diff --git a/metadata.ts b/metadata.ts index 17dd96b3..6d664734 100644 --- a/metadata.ts +++ b/metadata.ts @@ -314,12 +314,12 @@ class MetadataPayload$Type extends MessageType { { no: 4, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, { no: 5, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } }, { no: 6, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["string", "float", "integer", "bool", "datetime"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, should be in [\"string\",\"float\",\"int\",\"bool\",\"timestamp\"]" } } }, + { no: 7, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["string", "float", "integer", "bool", "datetime"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, should be in [\"string\",\"float\",\"int\",\"bool\",\"timestamp\"]" } } }, { no: 8, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ }, { no: 10, name: "RegularExpression", kind: "scalar", localName: "RegularExpression", jsonName: "RegularExpression", T: 9 /*ScalarType.STRING*/ }, { no: 11, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.MetadataType", MetadataType] }, { no: 12, name: "Enumeration", kind: "scalar", localName: "Enumeration", jsonName: "Enumeration", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Customizable enumeration" } } }, - { no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => MetadataStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => MetadataStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 14, name: "ShowOnCreation", kind: "enum", localName: "ShowOnCreation", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] }, { no: 15, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } }, { no: 16, name: "IsKpi", kind: "scalar", localName: "IsKpi", jsonName: "IsKpi", T: 8 /*ScalarType.BOOL*/ } @@ -523,7 +523,7 @@ class MetadataStatusStruct$Type extends MessageType { super("api.MetadataStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => MetadataStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): MetadataStatusStruct { diff --git a/metadatadef.ts b/metadatadef.ts index de7061f1..39e67a7d 100644 --- a/metadatadef.ts +++ b/metadatadef.ts @@ -150,7 +150,7 @@ export interface PrjMetadataTransitive { export interface PrjMetadataFilters { // string Project = 1 // [ - // (validate.rules).string.min_len = 1 + // (n1validate.rules).string.min_len = 1 // ]; /** @@ -293,7 +293,7 @@ export interface GetMetadataCountRequest { Header?: RequestProjectHeader; // string Project = 1 // [ - // (validate.rules).string.min_len = 1 + // (n1validate.rules).string.min_len = 1 // ]; /** @@ -328,7 +328,7 @@ export interface GetTransitiveMetadatasRequest { Header?: RequestProjectHeader; // string Project = 1 // [ - // (validate.rules).string.min_len = 1 + // (n1validate.rules).string.min_len = 1 // ]; /** @@ -378,11 +378,11 @@ class PrjMetadata$Type extends MessageType { constructor() { super("api.PrjMetadata", [ { no: 2, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } }, - { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 4, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, - { no: 5, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } }, - { no: 6, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+$" } } }, - { no: 7, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["string", "float", "integer", "bool", "datetime"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, should be in [\"string\",\"float\",\"integer\",\"bool\",\"datetime\"]" } } }, + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 4, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, + { no: 5, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } }, + { no: 6, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+$" } } }, + { no: 7, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["string", "float", "integer", "bool", "datetime"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, should be in [\"string\",\"float\",\"integer\",\"bool\",\"datetime\"]" } } }, { no: 8, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ }, { no: 9, name: "Example", kind: "scalar", localName: "Example", jsonName: "Example", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "RegularExpression", kind: "scalar", localName: "RegularExpression", jsonName: "RegularExpression", T: 9 /*ScalarType.STRING*/ }, @@ -528,12 +528,12 @@ export const PrjMetadata = new PrjMetadata$Type(); class PrjMetadataTransitive$Type extends MessageType { constructor() { super("api.PrjMetadataTransitive", [ - { no: 1, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } }, - { no: 4, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["string", "float", "integer", "bool", "datetime"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, should be in [\"string\",\"float\",\"integer\",\"bool\",\"datetime\"]" } } }, + { no: 4, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["string", "float", "integer", "bool", "datetime"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, should be in [\"string\",\"float\",\"integer\",\"bool\",\"datetime\"]" } } }, { no: 5, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Example", kind: "scalar", localName: "Example", jsonName: "Example", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "Example", kind: "scalar", localName: "Example", jsonName: "Example", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 7, name: "RegularExpression", kind: "scalar", localName: "RegularExpression", jsonName: "RegularExpression", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "Enumeration", kind: "scalar", localName: "Enumeration", jsonName: "Enumeration", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Customizable enumeration" } } }, { no: 9, name: "ShowOnCreation", kind: "enum", localName: "ShowOnCreation", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] }, @@ -655,7 +655,7 @@ export const PrjMetadataTransitive = new PrjMetadataTransitive$Type(); class PrjMetadataFilters$Type extends MessageType { constructor() { super("api.PrjMetadataFilters", [ - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, { no: 4, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } }, { no: 5, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } }, @@ -805,8 +805,8 @@ export const PrjMetadatasByDomain = new PrjMetadatasByDomain$Type(); class CreateMetadataRequest$Type extends MessageType { constructor() { super("api.CreateMetadataRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } }); } create(value?: PartialMessage): CreateMetadataRequest { @@ -904,8 +904,8 @@ export const CreateMetadataResult = new CreateMetadataResult$Type(); class UpdateMetadataRequest$Type extends MessageType { constructor() { super("api.UpdateMetadataRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "Metadata", kind: "message", localName: "Metadata", jsonName: "Metadata", T: () => PrjMetadata, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } }); } create(value?: PartialMessage): UpdateMetadataRequest { @@ -1003,8 +1003,8 @@ export const UpdateMetadataResult = new UpdateMetadataResult$Type(); class DeleteMetadatasRequest$Type extends MessageType { constructor() { super("api.DeleteMetadatasRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => PrjMetadataFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => PrjMetadataFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } }); } create(value?: PartialMessage): DeleteMetadatasRequest { @@ -1094,8 +1094,8 @@ export const DeleteMetadatasResult = new DeleteMetadatasResult$Type(); class GetMetadatasRequest$Type extends MessageType { constructor() { super("api.GetMetadatasRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => PrjMetadataFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => PrjMetadataFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Metadata"] } } }); } create(value?: PartialMessage): GetMetadatasRequest { @@ -1194,7 +1194,7 @@ export const GetMetadatasResult = new GetMetadatasResult$Type(); class GetMetadataCountRequest$Type extends MessageType { constructor() { super("api.GetMetadataCountRequest", [ - { no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -1323,9 +1323,9 @@ export const GetMetadataCountResult = new GetMetadataCountResult$Type(); class GetTransitiveMetadatasRequest$Type extends MessageType { constructor() { super("api.GetTransitiveMetadatasRequest", [ - { no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } } + { no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Entity"] } } }); } create(value?: PartialMessage): GetTransitiveMetadatasRequest { @@ -1432,9 +1432,9 @@ export const GetTransitiveMetadatasResult = new GetTransitiveMetadatasResult$Typ class RestoreMetadatasRequest$Type extends MessageType { constructor() { super("api.RestoreMetadatasRequest", [ - { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "RscID", kind: "scalar", localName: "RscID", jsonName: "RscID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "AlterClickhouse", kind: "scalar", localName: "AlterClickhouse", jsonName: "AlterClickhouse", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Execute AlterTAble on clickhouse" } } }, - { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 3, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RscID", "RscType"] } } }); } create(value?: PartialMessage): RestoreMetadatasRequest { diff --git a/model.ts b/model.ts index 9085558a..55f9db12 100644 --- a/model.ts +++ b/model.ts @@ -46,7 +46,7 @@ import { RequestProjectHeader } from "./shared"; export interface DataFilters { // string Project = 1 // [ - // (validate.rules).string.min_len = 1 + // (n1validate.rules).string.min_len = 1 // ]; /** @@ -198,8 +198,8 @@ export interface ListEntitiesResult { class DataFilters$Type extends MessageType { constructor() { super("api.DataFilters", [ - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, { no: 4, name: "Screen", kind: "scalar", localName: "Screen", jsonName: "Screen", T: 9 /*ScalarType.STRING*/ } ]); } @@ -261,8 +261,8 @@ export const DataFilters = new DataFilters$Type(); class GetDataModelRequest$Type extends MessageType { constructor() { super("api.GetDataModelRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filters"] } } }); } create(value?: PartialMessage): GetDataModelRequest { @@ -361,8 +361,8 @@ export const GetDataModelResult = new GetDataModelResult$Type(); class GetSiteDataModelRequest$Type extends MessageType { constructor() { super("api.GetSiteDataModelRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Filters", kind: "message", localName: "Filters", jsonName: "Filters", T: () => DataFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filters"] } } }); } create(value?: PartialMessage): GetSiteDataModelRequest { @@ -461,9 +461,9 @@ export const GetSiteDataModelResult = new GetSiteDataModelResult$Type(); class GetEntityModelRequest$Type extends MessageType { constructor() { super("api.GetEntityModelRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } }, - { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } }, + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } }); } create(value?: PartialMessage): GetEntityModelRequest { @@ -570,9 +570,9 @@ export const GetEntityModelResult = new GetEntityModelResult$Type(); class GetSiteEntityModelRequest$Type extends MessageType { constructor() { super("api.GetSiteEntityModelRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } }, - { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity to get the model", example: "\"order\"" } } }, + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Domain of the entity to get the model", example: "\"trade\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Domain", "Entity"] } } }); } create(value?: PartialMessage): GetSiteEntityModelRequest { @@ -679,7 +679,7 @@ export const GetSiteEntityModelResult = new GetSiteEntityModelResult$Type(); class GetEntitiesRequest$Type extends MessageType { constructor() { super("api.GetEntitiesRequest", [ - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Domain"] } } }); } create(value?: PartialMessage): GetEntitiesRequest { diff --git a/module.ts b/module.ts index 9a70f13e..42be73b0 100644 --- a/module.ts +++ b/module.ts @@ -215,7 +215,7 @@ export enum ModuleCategory { class Module$Type extends MessageType { constructor() { super("api.Module", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "DependsOn", kind: "message", localName: "DependsOn", jsonName: "DependsOn", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }, { no: 3, name: "Category", kind: "enum", localName: "Category", jsonName: "Category", T: () => ["api.ModuleCategory", ModuleCategory] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID"] } } }); @@ -363,7 +363,7 @@ export const ListModulesResponse = new ListModulesResponse$Type(); class SetOrganisationModulesRequest$Type extends MessageType { constructor() { super("api.SetOrganisationModulesRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); } @@ -503,7 +503,7 @@ export const ListOrganisationModulesResponse = new ListOrganisationModulesRespon class SetProjectModulesRequest$Type extends MessageType { constructor() { super("api.SetProjectModulesRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } @@ -643,7 +643,7 @@ export const ListProjectModulesResponse = new ListProjectModulesResponse$Type(); class SetResourceModulesRequest$Type extends MessageType { constructor() { super("api.SetResourceModulesRequest", [ - { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID"] } } }); } @@ -736,7 +736,7 @@ export const SetResourceModulesResponse = new SetResourceModulesResponse$Type(); class ListResourceModulesRequest$Type extends MessageType { constructor() { super("api.ListResourceModulesRequest", [ - { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID"] } } }); } create(value?: PartialMessage): ListResourceModulesRequest { @@ -830,9 +830,9 @@ export const ListResourceModulesResponse = new ListResourceModulesResponse$Type( class IsAPIActivatedRequest$Type extends MessageType { constructor() { super("api.IsAPIActivatedRequest", [ - { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Method", kind: "scalar", localName: "Method", jsonName: "Method", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Method", kind: "scalar", localName: "Method", jsonName: "Method", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID", "Service", "Method"] } } }); } create(value?: PartialMessage): IsAPIActivatedRequest { @@ -1040,7 +1040,7 @@ export const CreateModuleResponse = new CreateModuleResponse$Type(); class DeleteModuleRequest$Type extends MessageType { constructor() { super("api.DeleteModuleRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID"] } } }); } create(value?: PartialMessage): DeleteModuleRequest { diff --git a/movement.ts b/movement.ts index aeefacdb..16c2a582 100644 --- a/movement.ts +++ b/movement.ts @@ -173,12 +173,12 @@ class MovementPayload$Type extends MessageType { super("api.MovementPayload", [ { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "api.transientRef": "Stock,Payload.Goods,hard" } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.entityRef": "Actor", "api.dataRestrictionKey": "Movement", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.extractRefExclude": "Movement" } }, + { no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.extractRefExclude": "Movement" } }, { no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement }, { no: 5, 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: 6, 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: 7, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => MovementStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 8, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 7, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => MovementStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 8, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 9, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } }, { no: 10, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } } ]); diff --git a/movementInput.ts b/movementInput.ts index 8a334b9e..96931aa5 100644 --- a/movementInput.ts +++ b/movementInput.ts @@ -600,10 +600,10 @@ export interface MovementCustomFieldsUpdatedResponse { class MovementCreatedPayload$Type extends MessageType { constructor() { super("api.MovementCreatedPayload", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } }, { no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "validate.rules": { message: { required: true } } } } + { no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Describe the goods movement with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "api.postAggMethods": "computeMovementQuantity", "api.preAggMethods": "filterMovement", "api.idGenMethod": "genMoveCreatedId" }); } create(value?: PartialMessage): MovementCreatedPayload { @@ -668,9 +668,9 @@ export const MovementCreatedPayload = new MovementCreatedPayload$Type(); class MovementCreatedEvent$Type extends MessageType { constructor() { super("api.MovementCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Created" }); } create(value?: PartialMessage): MovementCreatedEvent { @@ -728,9 +728,9 @@ export const MovementCreatedEvent = new MovementCreatedEvent$Type(); class MovementCreatedRequest$Type extends MessageType { constructor() { super("api.MovementCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, { no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCreatedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCreatedPayload, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): MovementCreatedRequest { @@ -841,10 +841,10 @@ export const MovementCreatedResponse = new MovementCreatedResponse$Type(); class MovementGeneratedPayload$Type extends MessageType { constructor() { super("api.MovementGeneratedPayload", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } }, { no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "validate.rules": { message: { required: true } } } }, + { no: 4, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "n1validate.rules": { message: { required: true } } } }, { no: 8, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Describe the goods movement with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Generated", "api.postAggMethods": "computeMovementQuantity", "api.preAggMethods": "filterMovement", "api.idGenMethod": "genMoveGeneratedId" }); } @@ -916,9 +916,9 @@ export const MovementGeneratedPayload = new MovementGeneratedPayload$Type(); class MovementGeneratedEvent$Type extends MessageType { constructor() { super("api.MovementGeneratedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementGeneratedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementGeneratedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Generated" }); } create(value?: PartialMessage): MovementGeneratedEvent { @@ -976,9 +976,9 @@ export const MovementGeneratedEvent = new MovementGeneratedEvent$Type(); class MovementGeneratedRequest$Type extends MessageType { constructor() { super("api.MovementGeneratedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, { no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementGeneratedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementGeneratedPayload, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Generated" }); } create(value?: PartialMessage): MovementGeneratedRequest { @@ -1089,7 +1089,7 @@ export const MovementGeneratedResponse = new MovementGeneratedResponse$Type(); class MovementStockValueUpdatedPayload$Type extends MessageType { constructor() { super("api.MovementStockValueUpdatedPayload", [ - { no: 1, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "StockValueUpdated" }); } create(value?: PartialMessage): MovementStockValueUpdatedPayload { @@ -1135,9 +1135,9 @@ export const MovementStockValueUpdatedPayload = new MovementStockValueUpdatedPay class MovementStockValueUpdatedEvent$Type extends MessageType { constructor() { super("api.MovementStockValueUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementStockValueUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementStockValueUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "StockValueUpdated" }); } create(value?: PartialMessage): MovementStockValueUpdatedEvent { @@ -1195,9 +1195,9 @@ export const MovementStockValueUpdatedEvent = new MovementStockValueUpdatedEvent class MovementStockValueUpdatedRequest$Type extends MessageType { constructor() { super("api.MovementStockValueUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementStockValueUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementStockValueUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "StockValueUpdated" }); } create(value?: PartialMessage): MovementStockValueUpdatedRequest { @@ -1355,9 +1355,9 @@ export const MovementClaimAddedPayload = new MovementClaimAddedPayload$Type(); class MovementClaimAddedEvent$Type extends MessageType { constructor() { super("api.MovementClaimAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ClaimAdded", "api.preAggMethods": "addClaim" }); } create(value?: PartialMessage): MovementClaimAddedEvent { @@ -1415,9 +1415,9 @@ export const MovementClaimAddedEvent = new MovementClaimAddedEvent$Type(); class MovementClaimAddedRequest$Type extends MessageType { constructor() { super("api.MovementClaimAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" }); } create(value?: PartialMessage): MovementClaimAddedRequest { @@ -1575,9 +1575,9 @@ export const MovementAttachmentAddedPayload = new MovementAttachmentAddedPayload class MovementAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.MovementAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): MovementAttachmentAddedEvent { @@ -1635,9 +1635,9 @@ export const MovementAttachmentAddedEvent = new MovementAttachmentAddedEvent$Typ class MovementAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.MovementAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): MovementAttachmentAddedRequest { @@ -1795,9 +1795,9 @@ export const MovementAttachmentRemovedPayload = new MovementAttachmentRemovedPay class MovementAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.MovementAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): MovementAttachmentRemovedEvent { @@ -1855,9 +1855,9 @@ export const MovementAttachmentRemovedEvent = new MovementAttachmentRemovedEvent class MovementAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.MovementAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): MovementAttachmentRemovedRequest { @@ -2217,9 +2217,9 @@ export const MovementSanitisedPayload = new MovementSanitisedPayload$Type(); class MovementSanitisedEvent$Type extends MessageType { constructor() { super("api.MovementSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): MovementSanitisedEvent { @@ -2277,9 +2277,9 @@ export const MovementSanitisedEvent = new MovementSanitisedEvent$Type(); class MovementSanitisedRequest$Type extends MessageType { constructor() { super("api.MovementSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): MovementSanitisedRequest { @@ -2428,9 +2428,9 @@ export const MovementCustomFieldsUpdatedPayload = new MovementCustomFieldsUpdate class MovementCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.MovementCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): MovementCustomFieldsUpdatedEvent { @@ -2488,9 +2488,9 @@ export const MovementCustomFieldsUpdatedEvent = new MovementCustomFieldsUpdatedE class MovementCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.MovementCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MovementCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): MovementCustomFieldsUpdatedRequest { diff --git a/movementQuery.ts b/movementQuery.ts index 6f68849e..1c697352 100644 --- a/movementQuery.ts +++ b/movementQuery.ts @@ -195,8 +195,8 @@ export interface MovementByOperationReferenceResult { class MovementByIdQuery$Type extends MessageType { constructor() { super("api.MovementByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => MovementQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -310,7 +310,7 @@ export const MovementByIdResult = new MovementByIdResult$Type(); class MovementByFilterQuery$Type extends MessageType { constructor() { super("api.MovementByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -512,7 +512,7 @@ export const MovementQueryOptions = new MovementQueryOptions$Type(); class MovementByMatchQuery$Type extends MessageType { constructor() { super("api.MovementByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, @@ -637,7 +637,7 @@ export const MovementByMatchResult = new MovementByMatchResult$Type(); class MovementByOperationReferenceQuery$Type extends MessageType { constructor() { super("api.MovementByOperationReferenceQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "OperationReferences", kind: "scalar", localName: "OperationReferences", jsonName: "OperationReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => MovementQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } }, "api.messageType": "Query" }); diff --git a/validate.ts b/n1validate.ts similarity index 95% rename from validate.ts rename to n1validate.ts index e73bbdf0..03d7d701 100644 --- a/validate.ts +++ b/n1validate.ts @@ -1,5 +1,5 @@ // @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix -// @generated from protobuf file "validate.proto" (package "validate", syntax proto2) +// @generated from protobuf file "n1validate.proto" (package "n1validate", syntax proto2) // tslint:disable import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; @@ -16,11 +16,11 @@ import { Duration } from "./google/protobuf/duration"; * FieldRules encapsulates the rules for each type of field. Depending on the * field, the correct set should be used to ensure proper validations. * - * @generated from protobuf message validate.FieldRules + * @generated from protobuf message n1validate.FieldRules */ export interface FieldRules { /** - * @generated from protobuf field: optional validate.MessageRules message = 17 + * @generated from protobuf field: optional n1validate.MessageRules message = 17 */ message?: MessageRules; /** @@ -31,91 +31,91 @@ export interface FieldRules { /** * Scalar Field Types * - * @generated from protobuf field: validate.FloatRules float = 1 + * @generated from protobuf field: n1validate.FloatRules float = 1 */ float: FloatRules; } | { oneofKind: "double"; /** - * @generated from protobuf field: validate.DoubleRules double = 2 + * @generated from protobuf field: n1validate.DoubleRules double = 2 */ double: DoubleRules; } | { oneofKind: "int32"; /** - * @generated from protobuf field: validate.Int32Rules int32 = 3 + * @generated from protobuf field: n1validate.Int32Rules int32 = 3 */ int32: Int32Rules; } | { oneofKind: "int64"; /** - * @generated from protobuf field: validate.Int64Rules int64 = 4 + * @generated from protobuf field: n1validate.Int64Rules int64 = 4 */ int64: Int64Rules; } | { oneofKind: "uint32"; /** - * @generated from protobuf field: validate.UInt32Rules uint32 = 5 + * @generated from protobuf field: n1validate.UInt32Rules uint32 = 5 */ uint32: UInt32Rules; } | { oneofKind: "uint64"; /** - * @generated from protobuf field: validate.UInt64Rules uint64 = 6 + * @generated from protobuf field: n1validate.UInt64Rules uint64 = 6 */ uint64: UInt64Rules; } | { oneofKind: "sint32"; /** - * @generated from protobuf field: validate.SInt32Rules sint32 = 7 + * @generated from protobuf field: n1validate.SInt32Rules sint32 = 7 */ sint32: SInt32Rules; } | { oneofKind: "sint64"; /** - * @generated from protobuf field: validate.SInt64Rules sint64 = 8 + * @generated from protobuf field: n1validate.SInt64Rules sint64 = 8 */ sint64: SInt64Rules; } | { oneofKind: "fixed32"; /** - * @generated from protobuf field: validate.Fixed32Rules fixed32 = 9 + * @generated from protobuf field: n1validate.Fixed32Rules fixed32 = 9 */ fixed32: Fixed32Rules; } | { oneofKind: "fixed64"; /** - * @generated from protobuf field: validate.Fixed64Rules fixed64 = 10 + * @generated from protobuf field: n1validate.Fixed64Rules fixed64 = 10 */ fixed64: Fixed64Rules; } | { oneofKind: "sfixed32"; /** - * @generated from protobuf field: validate.SFixed32Rules sfixed32 = 11 + * @generated from protobuf field: n1validate.SFixed32Rules sfixed32 = 11 */ sfixed32: SFixed32Rules; } | { oneofKind: "sfixed64"; /** - * @generated from protobuf field: validate.SFixed64Rules sfixed64 = 12 + * @generated from protobuf field: n1validate.SFixed64Rules sfixed64 = 12 */ sfixed64: SFixed64Rules; } | { oneofKind: "bool"; /** - * @generated from protobuf field: validate.BoolRules bool = 13 + * @generated from protobuf field: n1validate.BoolRules bool = 13 */ bool: BoolRules; } | { oneofKind: "string"; /** - * @generated from protobuf field: validate.StringRules string = 14 + * @generated from protobuf field: n1validate.StringRules string = 14 */ string: StringRules; } | { oneofKind: "bytes"; /** - * @generated from protobuf field: validate.BytesRules bytes = 15 + * @generated from protobuf field: n1validate.BytesRules bytes = 15 */ bytes: BytesRules; } | { @@ -123,19 +123,19 @@ export interface FieldRules { /** * Complex Field Types * - * @generated from protobuf field: validate.EnumRules enum = 16 + * @generated from protobuf field: n1validate.EnumRules enum = 16 */ enum: EnumRules; } | { oneofKind: "repeated"; /** - * @generated from protobuf field: validate.RepeatedRules repeated = 18 + * @generated from protobuf field: n1validate.RepeatedRules repeated = 18 */ repeated: RepeatedRules; } | { oneofKind: "map"; /** - * @generated from protobuf field: validate.MapRules map = 19 + * @generated from protobuf field: n1validate.MapRules map = 19 */ map: MapRules; } | { @@ -143,19 +143,19 @@ export interface FieldRules { /** * Well-Known Field Types * - * @generated from protobuf field: validate.AnyRules any = 20 + * @generated from protobuf field: n1validate.AnyRules any = 20 */ any: AnyRules; } | { oneofKind: "duration"; /** - * @generated from protobuf field: validate.DurationRules duration = 21 + * @generated from protobuf field: n1validate.DurationRules duration = 21 */ duration: DurationRules; } | { oneofKind: "timestamp"; /** - * @generated from protobuf field: validate.TimestampRules timestamp = 22 + * @generated from protobuf field: n1validate.TimestampRules timestamp = 22 */ timestamp: TimestampRules; } | { @@ -165,7 +165,7 @@ export interface FieldRules { /** * FloatRules describes the constraints applied to `float` values * - * @generated from protobuf message validate.FloatRules + * @generated from protobuf message n1validate.FloatRules */ export interface FloatRules { /** @@ -235,7 +235,7 @@ export interface FloatRules { /** * DoubleRules describes the constraints applied to `double` values * - * @generated from protobuf message validate.DoubleRules + * @generated from protobuf message n1validate.DoubleRules */ export interface DoubleRules { /** @@ -305,7 +305,7 @@ export interface DoubleRules { /** * Int32Rules describes the constraints applied to `int32` values * - * @generated from protobuf message validate.Int32Rules + * @generated from protobuf message n1validate.Int32Rules */ export interface Int32Rules { /** @@ -375,7 +375,7 @@ export interface Int32Rules { /** * Int64Rules describes the constraints applied to `int64` values * - * @generated from protobuf message validate.Int64Rules + * @generated from protobuf message n1validate.Int64Rules */ export interface Int64Rules { /** @@ -445,7 +445,7 @@ export interface Int64Rules { /** * UInt32Rules describes the constraints applied to `uint32` values * - * @generated from protobuf message validate.UInt32Rules + * @generated from protobuf message n1validate.UInt32Rules */ export interface UInt32Rules { /** @@ -515,7 +515,7 @@ export interface UInt32Rules { /** * UInt64Rules describes the constraints applied to `uint64` values * - * @generated from protobuf message validate.UInt64Rules + * @generated from protobuf message n1validate.UInt64Rules */ export interface UInt64Rules { /** @@ -585,7 +585,7 @@ export interface UInt64Rules { /** * SInt32Rules describes the constraints applied to `sint32` values * - * @generated from protobuf message validate.SInt32Rules + * @generated from protobuf message n1validate.SInt32Rules */ export interface SInt32Rules { /** @@ -655,7 +655,7 @@ export interface SInt32Rules { /** * SInt64Rules describes the constraints applied to `sint64` values * - * @generated from protobuf message validate.SInt64Rules + * @generated from protobuf message n1validate.SInt64Rules */ export interface SInt64Rules { /** @@ -725,7 +725,7 @@ export interface SInt64Rules { /** * Fixed32Rules describes the constraints applied to `fixed32` values * - * @generated from protobuf message validate.Fixed32Rules + * @generated from protobuf message n1validate.Fixed32Rules */ export interface Fixed32Rules { /** @@ -795,7 +795,7 @@ export interface Fixed32Rules { /** * Fixed64Rules describes the constraints applied to `fixed64` values * - * @generated from protobuf message validate.Fixed64Rules + * @generated from protobuf message n1validate.Fixed64Rules */ export interface Fixed64Rules { /** @@ -865,7 +865,7 @@ export interface Fixed64Rules { /** * SFixed32Rules describes the constraints applied to `sfixed32` values * - * @generated from protobuf message validate.SFixed32Rules + * @generated from protobuf message n1validate.SFixed32Rules */ export interface SFixed32Rules { /** @@ -935,7 +935,7 @@ export interface SFixed32Rules { /** * SFixed64Rules describes the constraints applied to `sfixed64` values * - * @generated from protobuf message validate.SFixed64Rules + * @generated from protobuf message n1validate.SFixed64Rules */ export interface SFixed64Rules { /** @@ -1005,7 +1005,7 @@ export interface SFixed64Rules { /** * BoolRules describes the constraints applied to `bool` values * - * @generated from protobuf message validate.BoolRules + * @generated from protobuf message n1validate.BoolRules */ export interface BoolRules { /** @@ -1024,7 +1024,7 @@ export interface BoolRules { /** * StringRules describe the constraints applied to `string` values * - * @generated from protobuf message validate.StringRules + * @generated from protobuf message n1validate.StringRules */ export interface StringRules { /** @@ -1227,7 +1227,7 @@ export interface StringRules { /** * WellKnownRegex specifies a common well known pattern defined as a regex. * - * @generated from protobuf field: validate.KnownRegex well_known_regex = 24 + * @generated from protobuf field: n1validate.KnownRegex well_known_regex = 24 */ well_known_regex: KnownRegex; } | { @@ -1308,7 +1308,7 @@ export interface StringRules { /** * BytesRules describe the constraints applied to `bytes` values * - * @generated from protobuf message validate.BytesRules + * @generated from protobuf message n1validate.BytesRules */ export interface BytesRules { /** @@ -1427,7 +1427,7 @@ export interface BytesRules { /** * EnumRules describe the constraints applied to enum values * - * @generated from protobuf message validate.EnumRules + * @generated from protobuf message n1validate.EnumRules */ export interface EnumRules { /** @@ -1475,7 +1475,7 @@ export interface EnumRules { * MessageRules describe the constraints applied to embedded message values. * For message-type fields, validation is performed recursively. * - * @generated from protobuf message validate.MessageRules + * @generated from protobuf message n1validate.MessageRules */ export interface MessageRules { /** @@ -1501,7 +1501,7 @@ export interface MessageRules { /** * RepeatedRules describe the constraints applied to `repeated` values * - * @generated from protobuf message validate.RepeatedRules + * @generated from protobuf message n1validate.RepeatedRules */ export interface RepeatedRules { /** @@ -1531,7 +1531,7 @@ export interface RepeatedRules { * Repeated message fields will still execute validation against each item * unless skip is specified here. * - * @generated from protobuf field: optional validate.FieldRules items = 4 + * @generated from protobuf field: optional n1validate.FieldRules items = 4 */ items?: FieldRules; /** @@ -1561,7 +1561,7 @@ export interface RepeatedRules { /** * MapRules describe the constraints applied to `map` values * - * @generated from protobuf message validate.MapRules + * @generated from protobuf message n1validate.MapRules */ export interface MapRules { /** @@ -1588,7 +1588,7 @@ export interface MapRules { /** * Keys specifies the constraints to be applied to each key in the field. * - * @generated from protobuf field: optional validate.FieldRules keys = 4 + * @generated from protobuf field: optional n1validate.FieldRules keys = 4 */ keys?: FieldRules; /** @@ -1596,7 +1596,7 @@ export interface MapRules { * in the field. Message values will still have their validations evaluated * unless skip is specified here. * - * @generated from protobuf field: optional validate.FieldRules values = 5 + * @generated from protobuf field: optional n1validate.FieldRules values = 5 */ values?: FieldRules; /** @@ -1611,7 +1611,7 @@ export interface MapRules { * AnyRules describe constraints applied exclusively to the * `google.protobuf.Any` well-known type * - * @generated from protobuf message validate.AnyRules + * @generated from protobuf message n1validate.AnyRules */ export interface AnyRules { /** @@ -1639,7 +1639,7 @@ export interface AnyRules { * DurationRules describe the constraints applied exclusively to the * `google.protobuf.Duration` well-known type * - * @generated from protobuf message validate.DurationRules + * @generated from protobuf message n1validate.DurationRules */ export interface DurationRules { /** @@ -1701,7 +1701,7 @@ export interface DurationRules { * TimestampRules describe the constraints applied exclusively to the * `google.protobuf.Timestamp` well-known type * - * @generated from protobuf message validate.TimestampRules + * @generated from protobuf message n1validate.TimestampRules */ export interface TimestampRules { /** @@ -1770,7 +1770,7 @@ export interface TimestampRules { /** * WellKnownRegex contain some well-known patterns. * - * @generated from protobuf enum validate.KnownRegex + * @generated from protobuf enum n1validate.KnownRegex */ export enum KnownRegex { /** @@ -1793,7 +1793,7 @@ export enum KnownRegex { // @generated message type with reflection information, may provide speed optimized methods class FieldRules$Type extends MessageType { constructor() { - super("validate.FieldRules", [ + super("n1validate.FieldRules", [ { no: 17, name: "message", kind: "message", T: () => MessageRules }, { no: 1, name: "float", kind: "message", oneof: "type", T: () => FloatRules }, { no: 2, name: "double", kind: "message", oneof: "type", T: () => DoubleRules }, @@ -1830,130 +1830,130 @@ class FieldRules$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional validate.MessageRules message */ 17: + case /* optional n1validate.MessageRules message */ 17: message.message = MessageRules.internalBinaryRead(reader, reader.uint32(), options, message.message); break; - case /* validate.FloatRules float */ 1: + case /* n1validate.FloatRules float */ 1: message.type = { oneofKind: "float", float: FloatRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).float) }; break; - case /* validate.DoubleRules double */ 2: + case /* n1validate.DoubleRules double */ 2: message.type = { oneofKind: "double", double: DoubleRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).double) }; break; - case /* validate.Int32Rules int32 */ 3: + case /* n1validate.Int32Rules int32 */ 3: message.type = { oneofKind: "int32", int32: Int32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).int32) }; break; - case /* validate.Int64Rules int64 */ 4: + case /* n1validate.Int64Rules int64 */ 4: message.type = { oneofKind: "int64", int64: Int64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).int64) }; break; - case /* validate.UInt32Rules uint32 */ 5: + case /* n1validate.UInt32Rules uint32 */ 5: message.type = { oneofKind: "uint32", uint32: UInt32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).uint32) }; break; - case /* validate.UInt64Rules uint64 */ 6: + case /* n1validate.UInt64Rules uint64 */ 6: message.type = { oneofKind: "uint64", uint64: UInt64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).uint64) }; break; - case /* validate.SInt32Rules sint32 */ 7: + case /* n1validate.SInt32Rules sint32 */ 7: message.type = { oneofKind: "sint32", sint32: SInt32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sint32) }; break; - case /* validate.SInt64Rules sint64 */ 8: + case /* n1validate.SInt64Rules sint64 */ 8: message.type = { oneofKind: "sint64", sint64: SInt64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sint64) }; break; - case /* validate.Fixed32Rules fixed32 */ 9: + case /* n1validate.Fixed32Rules fixed32 */ 9: message.type = { oneofKind: "fixed32", fixed32: Fixed32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).fixed32) }; break; - case /* validate.Fixed64Rules fixed64 */ 10: + case /* n1validate.Fixed64Rules fixed64 */ 10: message.type = { oneofKind: "fixed64", fixed64: Fixed64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).fixed64) }; break; - case /* validate.SFixed32Rules sfixed32 */ 11: + case /* n1validate.SFixed32Rules sfixed32 */ 11: message.type = { oneofKind: "sfixed32", sfixed32: SFixed32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sfixed32) }; break; - case /* validate.SFixed64Rules sfixed64 */ 12: + case /* n1validate.SFixed64Rules sfixed64 */ 12: message.type = { oneofKind: "sfixed64", sfixed64: SFixed64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sfixed64) }; break; - case /* validate.BoolRules bool */ 13: + case /* n1validate.BoolRules bool */ 13: message.type = { oneofKind: "bool", bool: BoolRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).bool) }; break; - case /* validate.StringRules string */ 14: + case /* n1validate.StringRules string */ 14: message.type = { oneofKind: "string", string: StringRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).string) }; break; - case /* validate.BytesRules bytes */ 15: + case /* n1validate.BytesRules bytes */ 15: message.type = { oneofKind: "bytes", bytes: BytesRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).bytes) }; break; - case /* validate.EnumRules enum */ 16: + case /* n1validate.EnumRules enum */ 16: message.type = { oneofKind: "enum", enum: EnumRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).enum) }; break; - case /* validate.RepeatedRules repeated */ 18: + case /* n1validate.RepeatedRules repeated */ 18: message.type = { oneofKind: "repeated", repeated: RepeatedRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).repeated) }; break; - case /* validate.MapRules map */ 19: + case /* n1validate.MapRules map */ 19: message.type = { oneofKind: "map", map: MapRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).map) }; break; - case /* validate.AnyRules any */ 20: + case /* n1validate.AnyRules any */ 20: message.type = { oneofKind: "any", any: AnyRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).any) }; break; - case /* validate.DurationRules duration */ 21: + case /* n1validate.DurationRules duration */ 21: message.type = { oneofKind: "duration", duration: DurationRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).duration) }; break; - case /* validate.TimestampRules timestamp */ 22: + case /* n1validate.TimestampRules timestamp */ 22: message.type = { oneofKind: "timestamp", timestamp: TimestampRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).timestamp) @@ -1971,70 +1971,70 @@ class FieldRules$Type extends MessageType { return message; } internalBinaryWrite(message: FieldRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* validate.FloatRules float = 1; */ + /* n1validate.FloatRules float = 1; */ if (message.type.oneofKind === "float") FloatRules.internalBinaryWrite(message.type.float, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* validate.DoubleRules double = 2; */ + /* n1validate.DoubleRules double = 2; */ if (message.type.oneofKind === "double") DoubleRules.internalBinaryWrite(message.type.double, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* validate.Int32Rules int32 = 3; */ + /* n1validate.Int32Rules int32 = 3; */ if (message.type.oneofKind === "int32") Int32Rules.internalBinaryWrite(message.type.int32, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); - /* validate.Int64Rules int64 = 4; */ + /* n1validate.Int64Rules int64 = 4; */ if (message.type.oneofKind === "int64") Int64Rules.internalBinaryWrite(message.type.int64, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* validate.UInt32Rules uint32 = 5; */ + /* n1validate.UInt32Rules uint32 = 5; */ if (message.type.oneofKind === "uint32") UInt32Rules.internalBinaryWrite(message.type.uint32, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - /* validate.UInt64Rules uint64 = 6; */ + /* n1validate.UInt64Rules uint64 = 6; */ if (message.type.oneofKind === "uint64") UInt64Rules.internalBinaryWrite(message.type.uint64, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); - /* validate.SInt32Rules sint32 = 7; */ + /* n1validate.SInt32Rules sint32 = 7; */ if (message.type.oneofKind === "sint32") SInt32Rules.internalBinaryWrite(message.type.sint32, writer.tag(7, WireType.LengthDelimited).fork(), options).join(); - /* validate.SInt64Rules sint64 = 8; */ + /* n1validate.SInt64Rules sint64 = 8; */ if (message.type.oneofKind === "sint64") SInt64Rules.internalBinaryWrite(message.type.sint64, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); - /* validate.Fixed32Rules fixed32 = 9; */ + /* n1validate.Fixed32Rules fixed32 = 9; */ if (message.type.oneofKind === "fixed32") Fixed32Rules.internalBinaryWrite(message.type.fixed32, writer.tag(9, WireType.LengthDelimited).fork(), options).join(); - /* validate.Fixed64Rules fixed64 = 10; */ + /* n1validate.Fixed64Rules fixed64 = 10; */ if (message.type.oneofKind === "fixed64") Fixed64Rules.internalBinaryWrite(message.type.fixed64, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); - /* validate.SFixed32Rules sfixed32 = 11; */ + /* n1validate.SFixed32Rules sfixed32 = 11; */ if (message.type.oneofKind === "sfixed32") SFixed32Rules.internalBinaryWrite(message.type.sfixed32, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); - /* validate.SFixed64Rules sfixed64 = 12; */ + /* n1validate.SFixed64Rules sfixed64 = 12; */ if (message.type.oneofKind === "sfixed64") SFixed64Rules.internalBinaryWrite(message.type.sfixed64, writer.tag(12, WireType.LengthDelimited).fork(), options).join(); - /* validate.BoolRules bool = 13; */ + /* n1validate.BoolRules bool = 13; */ if (message.type.oneofKind === "bool") BoolRules.internalBinaryWrite(message.type.bool, writer.tag(13, WireType.LengthDelimited).fork(), options).join(); - /* validate.StringRules string = 14; */ + /* n1validate.StringRules string = 14; */ if (message.type.oneofKind === "string") StringRules.internalBinaryWrite(message.type.string, writer.tag(14, WireType.LengthDelimited).fork(), options).join(); - /* validate.BytesRules bytes = 15; */ + /* n1validate.BytesRules bytes = 15; */ if (message.type.oneofKind === "bytes") BytesRules.internalBinaryWrite(message.type.bytes, writer.tag(15, WireType.LengthDelimited).fork(), options).join(); - /* validate.EnumRules enum = 16; */ + /* n1validate.EnumRules enum = 16; */ if (message.type.oneofKind === "enum") EnumRules.internalBinaryWrite(message.type.enum, writer.tag(16, WireType.LengthDelimited).fork(), options).join(); - /* optional validate.MessageRules message = 17; */ + /* optional n1validate.MessageRules message = 17; */ if (message.message) MessageRules.internalBinaryWrite(message.message, writer.tag(17, WireType.LengthDelimited).fork(), options).join(); - /* validate.RepeatedRules repeated = 18; */ + /* n1validate.RepeatedRules repeated = 18; */ if (message.type.oneofKind === "repeated") RepeatedRules.internalBinaryWrite(message.type.repeated, writer.tag(18, WireType.LengthDelimited).fork(), options).join(); - /* validate.MapRules map = 19; */ + /* n1validate.MapRules map = 19; */ if (message.type.oneofKind === "map") MapRules.internalBinaryWrite(message.type.map, writer.tag(19, WireType.LengthDelimited).fork(), options).join(); - /* validate.AnyRules any = 20; */ + /* n1validate.AnyRules any = 20; */ if (message.type.oneofKind === "any") AnyRules.internalBinaryWrite(message.type.any, writer.tag(20, WireType.LengthDelimited).fork(), options).join(); - /* validate.DurationRules duration = 21; */ + /* n1validate.DurationRules duration = 21; */ if (message.type.oneofKind === "duration") DurationRules.internalBinaryWrite(message.type.duration, writer.tag(21, WireType.LengthDelimited).fork(), options).join(); - /* validate.TimestampRules timestamp = 22; */ + /* n1validate.TimestampRules timestamp = 22; */ if (message.type.oneofKind === "timestamp") TimestampRules.internalBinaryWrite(message.type.timestamp, writer.tag(22, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; @@ -2044,13 +2044,13 @@ class FieldRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.FieldRules + * @generated MessageType for protobuf message n1validate.FieldRules */ export const FieldRules = new FieldRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class FloatRules$Type extends MessageType { constructor() { - super("validate.FloatRules", [ + super("n1validate.FloatRules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ }, @@ -2156,13 +2156,13 @@ class FloatRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.FloatRules + * @generated MessageType for protobuf message n1validate.FloatRules */ export const FloatRules = new FloatRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class DoubleRules$Type extends MessageType { constructor() { - super("validate.DoubleRules", [ + super("n1validate.DoubleRules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ }, @@ -2268,13 +2268,13 @@ class DoubleRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.DoubleRules + * @generated MessageType for protobuf message n1validate.DoubleRules */ export const DoubleRules = new DoubleRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class Int32Rules$Type extends MessageType { constructor() { - super("validate.Int32Rules", [ + super("n1validate.Int32Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, @@ -2380,13 +2380,13 @@ class Int32Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.Int32Rules + * @generated MessageType for protobuf message n1validate.Int32Rules */ export const Int32Rules = new Int32Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class Int64Rules$Type extends MessageType { constructor() { - super("validate.Int64Rules", [ + super("n1validate.Int64Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, @@ -2492,13 +2492,13 @@ class Int64Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.Int64Rules + * @generated MessageType for protobuf message n1validate.Int64Rules */ export const Int64Rules = new Int64Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class UInt32Rules$Type extends MessageType { constructor() { - super("validate.UInt32Rules", [ + super("n1validate.UInt32Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }, @@ -2604,13 +2604,13 @@ class UInt32Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.UInt32Rules + * @generated MessageType for protobuf message n1validate.UInt32Rules */ export const UInt32Rules = new UInt32Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class UInt64Rules$Type extends MessageType { constructor() { - super("validate.UInt64Rules", [ + super("n1validate.UInt64Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, @@ -2716,13 +2716,13 @@ class UInt64Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.UInt64Rules + * @generated MessageType for protobuf message n1validate.UInt64Rules */ export const UInt64Rules = new UInt64Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class SInt32Rules$Type extends MessageType { constructor() { - super("validate.SInt32Rules", [ + super("n1validate.SInt32Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ }, @@ -2828,13 +2828,13 @@ class SInt32Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.SInt32Rules + * @generated MessageType for protobuf message n1validate.SInt32Rules */ export const SInt32Rules = new SInt32Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class SInt64Rules$Type extends MessageType { constructor() { - super("validate.SInt64Rules", [ + super("n1validate.SInt64Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }, @@ -2940,13 +2940,13 @@ class SInt64Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.SInt64Rules + * @generated MessageType for protobuf message n1validate.SInt64Rules */ export const SInt64Rules = new SInt64Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class Fixed32Rules$Type extends MessageType { constructor() { - super("validate.Fixed32Rules", [ + super("n1validate.Fixed32Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ }, @@ -3052,13 +3052,13 @@ class Fixed32Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.Fixed32Rules + * @generated MessageType for protobuf message n1validate.Fixed32Rules */ export const Fixed32Rules = new Fixed32Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class Fixed64Rules$Type extends MessageType { constructor() { - super("validate.Fixed64Rules", [ + super("n1validate.Fixed64Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }, @@ -3164,13 +3164,13 @@ class Fixed64Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.Fixed64Rules + * @generated MessageType for protobuf message n1validate.Fixed64Rules */ export const Fixed64Rules = new Fixed64Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class SFixed32Rules$Type extends MessageType { constructor() { - super("validate.SFixed32Rules", [ + super("n1validate.SFixed32Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ }, @@ -3276,13 +3276,13 @@ class SFixed32Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.SFixed32Rules + * @generated MessageType for protobuf message n1validate.SFixed32Rules */ export const SFixed32Rules = new SFixed32Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class SFixed64Rules$Type extends MessageType { constructor() { - super("validate.SFixed64Rules", [ + super("n1validate.SFixed64Rules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "lt", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "lte", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ }, @@ -3388,13 +3388,13 @@ class SFixed64Rules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.SFixed64Rules + * @generated MessageType for protobuf message n1validate.SFixed64Rules */ export const SFixed64Rules = new SFixed64Rules$Type(); // @generated message type with reflection information, may provide speed optimized methods class BoolRules$Type extends MessageType { constructor() { - super("validate.BoolRules", [ + super("n1validate.BoolRules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 2, name: "unauthorized", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } ]); @@ -3441,13 +3441,13 @@ class BoolRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.BoolRules + * @generated MessageType for protobuf message n1validate.BoolRules */ export const BoolRules = new BoolRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class StringRules$Type extends MessageType { constructor() { - super("validate.StringRules", [ + super("n1validate.StringRules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 19, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "min_len", kind: "scalar", localName: "min_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, @@ -3472,7 +3472,7 @@ class StringRules$Type extends MessageType { { no: 18, name: "uri_ref", kind: "scalar", localName: "uri_ref", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 21, name: "address", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 22, name: "uuid", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, - { no: 24, name: "well_known_regex", kind: "enum", localName: "well_known_regex", oneof: "well_known", T: () => ["validate.KnownRegex", KnownRegex] }, + { no: 24, name: "well_known_regex", kind: "enum", localName: "well_known_regex", oneof: "well_known", T: () => ["n1validate.KnownRegex", KnownRegex] }, { no: 26, name: "dateIso8601", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 27, name: "languageIso6391", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, { no: 28, name: "tzData", kind: "scalar", oneof: "well_known", T: 8 /*ScalarType.BOOL*/ }, @@ -3596,7 +3596,7 @@ class StringRules$Type extends MessageType { uuid: reader.bool() }; break; - case /* validate.KnownRegex well_known_regex */ 24: + case /* n1validate.KnownRegex well_known_regex */ 24: message.well_known = { oneofKind: "well_known_regex", well_known_regex: reader.int32() @@ -3725,7 +3725,7 @@ class StringRules$Type extends MessageType { /* optional string not_contains = 23; */ if (message.not_contains !== undefined) writer.tag(23, WireType.LengthDelimited).string(message.not_contains); - /* validate.KnownRegex well_known_regex = 24; */ + /* n1validate.KnownRegex well_known_regex = 24; */ if (message.well_known.oneofKind === "well_known_regex") writer.tag(24, WireType.Varint).int32(message.well_known.well_known_regex); /* optional bool strict = 25 [default = true]; */ @@ -3762,13 +3762,13 @@ class StringRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.StringRules + * @generated MessageType for protobuf message n1validate.StringRules */ export const StringRules = new StringRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class BytesRules$Type extends MessageType { constructor() { - super("validate.BytesRules", [ + super("n1validate.BytesRules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }, { no: 13, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "min_len", kind: "scalar", localName: "min_len", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, @@ -3911,13 +3911,13 @@ class BytesRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.BytesRules + * @generated MessageType for protobuf message n1validate.BytesRules */ export const BytesRules = new BytesRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class EnumRules$Type extends MessageType { constructor() { - super("validate.EnumRules", [ + super("n1validate.EnumRules", [ { no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, { no: 2, name: "defined_only", kind: "scalar", localName: "defined_only", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }, @@ -4002,13 +4002,13 @@ class EnumRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.EnumRules + * @generated MessageType for protobuf message n1validate.EnumRules */ export const EnumRules = new EnumRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class MessageRules$Type extends MessageType { constructor() { - super("validate.MessageRules", [ + super("n1validate.MessageRules", [ { no: 1, name: "skip", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 2, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "unauthorized", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } @@ -4062,13 +4062,13 @@ class MessageRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.MessageRules + * @generated MessageType for protobuf message n1validate.MessageRules */ export const MessageRules = new MessageRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class RepeatedRules$Type extends MessageType { constructor() { - super("validate.RepeatedRules", [ + super("n1validate.RepeatedRules", [ { no: 1, name: "min_items", kind: "scalar", localName: "min_items", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "max_items", kind: "scalar", localName: "max_items", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "unique", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, @@ -4098,7 +4098,7 @@ class RepeatedRules$Type extends MessageType { case /* optional bool unique */ 3: message.unique = reader.bool(); break; - case /* optional validate.FieldRules items */ 4: + case /* optional n1validate.FieldRules items */ 4: message.items = FieldRules.internalBinaryRead(reader, reader.uint32(), options, message.items); break; case /* optional bool uniqueBaseLV */ 5: @@ -4131,7 +4131,7 @@ class RepeatedRules$Type extends MessageType { /* optional bool unique = 3; */ if (message.unique !== undefined) writer.tag(3, WireType.Varint).bool(message.unique); - /* optional validate.FieldRules items = 4; */ + /* optional n1validate.FieldRules items = 4; */ if (message.items) FieldRules.internalBinaryWrite(message.items, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* optional bool uniqueBaseLV = 5; */ @@ -4150,13 +4150,13 @@ class RepeatedRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.RepeatedRules + * @generated MessageType for protobuf message n1validate.RepeatedRules */ export const RepeatedRules = new RepeatedRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class MapRules$Type extends MessageType { constructor() { - super("validate.MapRules", [ + super("n1validate.MapRules", [ { no: 1, name: "min_pairs", kind: "scalar", localName: "min_pairs", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 2, name: "max_pairs", kind: "scalar", localName: "max_pairs", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }, { no: 3, name: "no_sparse", kind: "scalar", localName: "no_sparse", opt: true, T: 8 /*ScalarType.BOOL*/ }, @@ -4185,10 +4185,10 @@ class MapRules$Type extends MessageType { case /* optional bool no_sparse */ 3: message.no_sparse = reader.bool(); break; - case /* optional validate.FieldRules keys */ 4: + case /* optional n1validate.FieldRules keys */ 4: message.keys = FieldRules.internalBinaryRead(reader, reader.uint32(), options, message.keys); break; - case /* optional validate.FieldRules values */ 5: + case /* optional n1validate.FieldRules values */ 5: message.values = FieldRules.internalBinaryRead(reader, reader.uint32(), options, message.values); break; case /* optional bool ignore_empty */ 6: @@ -4215,10 +4215,10 @@ class MapRules$Type extends MessageType { /* optional bool no_sparse = 3; */ if (message.no_sparse !== undefined) writer.tag(3, WireType.Varint).bool(message.no_sparse); - /* optional validate.FieldRules keys = 4; */ + /* optional n1validate.FieldRules keys = 4; */ if (message.keys) FieldRules.internalBinaryWrite(message.keys, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* optional validate.FieldRules values = 5; */ + /* optional n1validate.FieldRules values = 5; */ if (message.values) FieldRules.internalBinaryWrite(message.values, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); /* optional bool ignore_empty = 6; */ @@ -4231,13 +4231,13 @@ class MapRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.MapRules + * @generated MessageType for protobuf message n1validate.MapRules */ export const MapRules = new MapRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class AnyRules$Type extends MessageType { constructor() { - super("validate.AnyRules", [ + super("n1validate.AnyRules", [ { no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 2, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "not_in", kind: "scalar", localName: "not_in", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } @@ -4293,13 +4293,13 @@ class AnyRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.AnyRules + * @generated MessageType for protobuf message n1validate.AnyRules */ export const AnyRules = new AnyRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class DurationRules$Type extends MessageType { constructor() { - super("validate.DurationRules", [ + super("n1validate.DurationRules", [ { no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 2, name: "const", kind: "message", T: () => Duration }, { no: 3, name: "lt", kind: "message", T: () => Duration }, @@ -4390,13 +4390,13 @@ class DurationRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.DurationRules + * @generated MessageType for protobuf message n1validate.DurationRules */ export const DurationRules = new DurationRules$Type(); // @generated message type with reflection information, may provide speed optimized methods class TimestampRules$Type extends MessageType { constructor() { - super("validate.TimestampRules", [ + super("n1validate.TimestampRules", [ { no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 2, name: "const", kind: "message", T: () => Timestamp }, { no: 3, name: "lt", kind: "message", T: () => Timestamp }, @@ -4492,6 +4492,6 @@ class TimestampRules$Type extends MessageType { } } /** - * @generated MessageType for protobuf message validate.TimestampRules + * @generated MessageType for protobuf message n1validate.TimestampRules */ export const TimestampRules = new TimestampRules$Type(); diff --git a/nats-api.ts b/nats-api.ts index 2a7f2ce8..87ed686d 100644 --- a/nats-api.ts +++ b/nats-api.ts @@ -164,8 +164,8 @@ export interface PushMessageResult { class CreateProjectAccountRequest$Type extends MessageType { constructor() { super("api.CreateProjectAccountRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): CreateProjectAccountRequest { @@ -265,8 +265,8 @@ export const CreateProjectAccountResult = new CreateProjectAccountResult$Type(); class CreatePartnerAppUserRequest$Type extends MessageType { constructor() { super("api.CreatePartnerAppUserRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): CreatePartnerAppUserRequest { @@ -374,7 +374,7 @@ export const CreatePartnerAppUserResult = new CreatePartnerAppUserResult$Type(); class DeleteProjectAccountRequest$Type extends MessageType { constructor() { super("api.DeleteProjectAccountRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeleteProjectAccountRequest { @@ -459,8 +459,8 @@ export const DeleteProjectAccountResult = new DeleteProjectAccountResult$Type(); class DeletePartnerAppUserRequest$Type extends MessageType { constructor() { super("api.DeletePartnerAppUserRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeletePartnerAppUserRequest { @@ -552,8 +552,8 @@ export const DeletePartnerAppUserResult = new DeletePartnerAppUserResult$Type(); class RenewPartnerAppUserCredentialsRequest$Type extends MessageType { constructor() { super("api.RenewPartnerAppUserCredentialsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): RenewPartnerAppUserCredentialsRequest { @@ -652,7 +652,7 @@ export const RenewPartnerAppUserCredentialsResult = new RenewPartnerAppUserCrede class RenewProjectAccountCredentialsRequest$Type extends MessageType { constructor() { super("api.RenewProjectAccountCredentialsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): RenewProjectAccountCredentialsRequest { @@ -744,10 +744,10 @@ export const RenewProjectAccountCredentialsResult = new RenewProjectAccountCrede class PushMessageRequest$Type extends MessageType { constructor() { super("api.PushMessageRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "JWT", kind: "scalar", localName: "JWT", jsonName: "JWT", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The JWT holding the PartnerApp identity to which parent subject the message will be pushed. It is a signed JWT issued by HARDIS SC NETWORK upon PartnerApp creation. The PartnerApp from the JWT must be the same as the one in the Header field meaning you cannot push a message for a PartnerApp different than the one you're allowed to." } } }, - { no: 3, name: "SubjectSuffix", kind: "scalar", localName: "SubjectSuffix", jsonName: "SubjectSuffix", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The subject suffix to which the message will be pushed. The subject will be composed of the parent subject of the PartnerApp (from the JWT) and this suffix." } } }, - { no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message payload." } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "JWT", kind: "scalar", localName: "JWT", jsonName: "JWT", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The JWT holding the PartnerApp identity to which parent subject the message will be pushed. It is a signed JWT issued by HARDIS SC NETWORK upon PartnerApp creation. The PartnerApp from the JWT must be the same as the one in the Header field meaning you cannot push a message for a PartnerApp different than the one you're allowed to." } } }, + { no: 3, name: "SubjectSuffix", kind: "scalar", localName: "SubjectSuffix", jsonName: "SubjectSuffix", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The subject suffix to which the message will be pushed. The subject will be composed of the parent subject of the PartnerApp (from the JWT) and this suffix." } } }, + { no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The message payload." } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "JWT", "Subject"] } } }); } create(value?: PartialMessage): PushMessageRequest { diff --git a/notif.ts b/notif.ts index 807e17b2..eb22dbfd 100644 --- a/notif.ts +++ b/notif.ts @@ -180,14 +180,14 @@ class NotifPayload$Type extends MessageType { constructor() { super("api.NotifPayload", [ { no: 1, name: "NotificationType", kind: "enum", localName: "NotificationType", jsonName: "NotificationType", T: () => ["api.NotifTypeEnum", NotifTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of change to be notified" } } }, - { no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { 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: "Identifier of the issuer (uuid format)" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { 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: "Identifier of the issuer (uuid format)" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, name: "Contacts", kind: "scalar", localName: "Contacts", jsonName: "Contacts", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of contacts" } } }, { no: 4, name: "Details", kind: "scalar", localName: "Details", jsonName: "Details", T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" } } }, - { no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" } } }, - { no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" } } }, + { no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" } } }, + { no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 8, name: "Tags", kind: "scalar", localName: "Tags", jsonName: "Tags", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tags" } } }, - { no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { 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: "Mail of the contact to notify" } } }, + { no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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: "Mail of the contact to notify" } } }, { no: 10, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ }, { no: 11, name: "SendToIssuer", kind: "scalar", localName: "SendToIssuer", jsonName: "SendToIssuer", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["NotificationType", "IssuerID", "Contacts", "OldStatus", "NewStatus", "EntityDomain", "EntityType", "EntityRefID"] } } }); diff --git a/notifInput.ts b/notifInput.ts index e076d2bb..49151521 100644 --- a/notifInput.ts +++ b/notifInput.ts @@ -246,14 +246,14 @@ class NotifCreatedPayload$Type extends MessageType { constructor() { super("api.NotifCreatedPayload", [ { no: 1, name: "NotificationType", kind: "enum", localName: "NotificationType", jsonName: "NotificationType", T: () => ["api.NotifTypeEnum", NotifTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of change to be notified" } } }, - { no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { 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: "Identifier of the issuer (uuid format)" } } }, - { no: 3, name: "Contacts", kind: "scalar", localName: "Contacts", jsonName: "Contacts", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { 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: "Identifiers of the contact to notity (uuid format)" } } }, + { no: 2, name: "IssuerID", kind: "scalar", localName: "IssuerID", jsonName: "IssuerID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { 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: "Identifier of the issuer (uuid format)" } } }, + { no: 3, name: "Contacts", kind: "scalar", localName: "Contacts", jsonName: "Contacts", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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: "Identifiers of the contact to notity (uuid format)" } } }, { no: 4, name: "Details", kind: "scalar", localName: "Details", jsonName: "Details", T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" } } }, - { no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" } } }, - { no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" } } }, + { no: 5, name: "EntityDomain", kind: "scalar", localName: "EntityDomain", jsonName: "EntityDomain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity domain" } } }, + { no: 6, name: "EntityType", kind: "scalar", localName: "EntityType", jsonName: "EntityType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of entity" } } }, + { no: 7, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of entity" } } }, { no: 8, name: "Tags", kind: "scalar", localName: "Tags", jsonName: "Tags", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tags" } } }, - { no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { 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: "Mail of the contact to notify" } } }, + { no: 9, name: "ContactMails", kind: "scalar", localName: "ContactMails", jsonName: "ContactMails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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: "Mail of the contact to notify" } } }, { no: 10, name: "GroupSending", kind: "scalar", localName: "GroupSending", jsonName: "GroupSending", T: 8 /*ScalarType.BOOL*/ }, { no: 11, name: "SendToIssuer", kind: "scalar", localName: "SendToIssuer", jsonName: "SendToIssuer", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["NotificationType", "IssuerID", "Contacts", "EntityDomain", "EntityType", "EntityRefID"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" }); @@ -372,9 +372,9 @@ export const NotifCreatedPayload = new NotifCreatedPayload$Type(); class NotifCreatedEvent$Type extends MessageType { constructor() { super("api.NotifCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Created" }); } create(value?: PartialMessage): NotifCreatedEvent { @@ -432,9 +432,9 @@ export const NotifCreatedEvent = new NotifCreatedEvent$Type(); class NotifCreatedRequest$Type extends MessageType { constructor() { super("api.NotifCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): NotifCreatedRequest { @@ -583,9 +583,9 @@ export const NotifSanitisedPayload = new NotifSanitisedPayload$Type(); class NotifSanitisedEvent$Type extends MessageType { constructor() { super("api.NotifSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): NotifSanitisedEvent { @@ -643,9 +643,9 @@ export const NotifSanitisedEvent = new NotifSanitisedEvent$Type(); class NotifSanitisedRequest$Type extends MessageType { constructor() { super("api.NotifSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): NotifSanitisedRequest { @@ -794,9 +794,9 @@ export const NotifCustomFieldsUpdatedPayload = new NotifCustomFieldsUpdatedPaylo class NotifCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.NotifCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): NotifCustomFieldsUpdatedEvent { @@ -854,9 +854,9 @@ export const NotifCustomFieldsUpdatedEvent = new NotifCustomFieldsUpdatedEvent$T class NotifCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.NotifCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => NotifCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): NotifCustomFieldsUpdatedRequest { diff --git a/notification.ts b/notification.ts index 20a8f314..89d809a0 100644 --- a/notification.ts +++ b/notification.ts @@ -160,7 +160,7 @@ export enum NotificationCategory { class Notification$Type extends MessageType { constructor() { super("api.Notification", [ - { no: 1, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload of the notification" } } }, + { no: 1, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload of the notification" } } }, { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.NotificationType", NotificationType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload type of the notification" } } }, { no: 3, name: "TemplateName", kind: "scalar", localName: "TemplateName", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the ECard related to the notification payload" } } }, { no: 4, name: "AckID", kind: "scalar", localName: "AckID", jsonName: "AckID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID to acknowledge notification to notification-server, filled by the server" } } }, @@ -247,7 +247,7 @@ export const Notification = new Notification$Type(); class NotificationRequest$Type extends MessageType { constructor() { super("api.NotificationRequest", [ - { no: 1, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload of the notification" } } }, + { no: 1, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload of the notification" } } }, { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.NotificationType", NotificationType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload type of the notification" } } }, { no: 3, name: "TemplateName", kind: "scalar", localName: "TemplateName", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the ECard related to the notification payload" } } }, { no: 4, name: "Category", kind: "enum", localName: "Category", jsonName: "Category", T: () => ["api.NotificationCategory", NotificationCategory], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Category of the notification" } } } @@ -318,8 +318,8 @@ export const NotificationRequest = new NotificationRequest$Type(); class PublishToUserRequest$Type extends MessageType { constructor() { super("api.PublishToUserRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Id of user who will receive the notification" } } }, - { no: 2, name: "ExpirationDate", kind: "scalar", localName: "ExpirationDate", jsonName: "ExpirationDate", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { gte: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Timestamp of notification expiration. If zero, platform default expiration date is used" } } }, + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Id of user who will receive the notification" } } }, + { no: 2, name: "ExpirationDate", kind: "scalar", localName: "ExpirationDate", jsonName: "ExpirationDate", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { gte: "0" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Timestamp of notification expiration. If zero, platform default expiration date is used" } } }, { no: 3, name: "Notification", kind: "message", localName: "Notification", jsonName: "Notification", T: () => NotificationRequest } ]); } @@ -418,7 +418,7 @@ export const PublishToUserResult = new PublishToUserResult$Type(); class NotificationListItem$Type extends MessageType { constructor() { super("api.NotificationListItem", [ - { no: 1, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload of the notification" } } }, + { no: 1, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload of the notification" } } }, { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.NotificationType", NotificationType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Payload type of the notification" } } }, { no: 3, name: "TemplateName", kind: "scalar", localName: "TemplateName", jsonName: "TemplateName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the ECard related to the notification payload" } } }, { no: 4, name: "Category", kind: "enum", localName: "Category", jsonName: "Category", T: () => ["api.NotificationCategory", NotificationCategory], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Category of the notification" } } }, diff --git a/opensearch.ts b/opensearch.ts index 943d96c3..834bf07d 100644 --- a/opensearch.ts +++ b/opensearch.ts @@ -105,7 +105,7 @@ export interface DeleteOpenSearchProjectResponse { class CreateOpenSearchUserRequest$Type extends MessageType { constructor() { super("api.CreateOpenSearchUserRequest", [ - { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } } + { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } }); } create(value?: PartialMessage): CreateOpenSearchUserRequest { @@ -215,7 +215,7 @@ export const CreateOpenSearchUserResponse = new CreateOpenSearchUserResponse$Typ class DeleteOpenSearchUserRequest$Type extends MessageType { constructor() { super("api.DeleteOpenSearchUserRequest", [ - { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } } + { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PartnerAppID for which the user will be created." } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } }); } create(value?: PartialMessage): DeleteOpenSearchUserRequest { @@ -300,7 +300,7 @@ export const DeleteOpenSearchUserResponse = new DeleteOpenSearchUserResponse$Typ class CreateOpenSearchTenantRequest$Type extends MessageType { constructor() { super("api.CreateOpenSearchTenantRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tenant's name. This will be used as the index template name. For example if the name is 'mytenant', the index template will be 'mytenant_template' with an index pattern as '*_mytenant' (if mappings are provided)." } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Tenant's name. This will be used as the index template name. For example if the name is 'mytenant', the index template will be 'mytenant_template' with an index pattern as '*_mytenant' (if mappings are provided)." } } }, { no: 2, name: "DashboardJSON", kind: "scalar", localName: "DashboardJSON", jsonName: "DashboardJSON", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Exported dashboard JSON from Opensearch that will be created under the given tenant. If not provided, no dashboard will be created." } } }, { no: 3, name: "MappingsJSON", kind: "scalar", localName: "MappingsJSON", jsonName: "MappingsJSON", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Mappings used for the tenant's index template. If not provided, no index template will be created. See https://opensearch.org/docs/latest/opensearch/mappings/ for correct mappings format." } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } }); @@ -401,7 +401,7 @@ export const CreateOpenSearchTenantResponse = new CreateOpenSearchTenantResponse class CreateOpenSearchProjectRoleRequest$Type extends MessageType { constructor() { super("api.CreateOpenSearchProjectRoleRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ProjectID for which the role will be created." } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ProjectID for which the role will be created." } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): CreateOpenSearchProjectRoleRequest { @@ -486,7 +486,7 @@ export const CreateOpenSearchProjectRoleResponse = new CreateOpenSearchProjectRo class DeleteOpenSearchProjectRequest$Type extends MessageType { constructor() { super("api.DeleteOpenSearchProjectRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ProjectID for which the role will be deleted." } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ProjectID for which the role will be deleted." } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteOpenSearchProjectRequest { diff --git a/order.ts b/order.ts index 7950340b..c23c287a 100644 --- a/order.ts +++ b/order.ts @@ -251,7 +251,7 @@ class OrderPayload$Type extends MessageType { super("api.OrderPayload", [ { no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "api.aggSkip": "ExecutionflowDetected" } }, { no: 2, name: "ParentOrder", kind: "message", localName: "ParentOrder", jsonName: "ParentOrder", T: () => ReferencedID }, - { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 4, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Order", Group: "order" }] }, "api.parentEntity": "Order", "api.aggAppend": "MetaDataUpdated,ExecutionflowDetected" } }, { no: 5, name: "Buyer", kind: "message", localName: "Buyer", jsonName: "Buyer", T: () => TradeTier }, { no: 6, name: "Seller", kind: "message", localName: "Seller", jsonName: "Seller", T: () => TradeTier }, @@ -264,13 +264,13 @@ class OrderPayload$Type extends MessageType { { no: 12, name: "EstimatedTimeArrival", kind: "message", localName: "EstimatedTimeArrival", jsonName: "EstimatedTimeArrival", T: () => ETA, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Deprecated from 1.7 : Estimated time of arrival, use OrderETA" } } }, { no: 13, name: "ActualCompletionDateTime", kind: "message", localName: "ActualCompletionDateTime", jsonName: "ActualCompletionDateTime", T: () => DateTime }, { no: 14, name: "ExecutionflowSummary", kind: "message", localName: "ExecutionflowSummary", jsonName: "ExecutionflowSummary", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExecutionflowSummary, options: { "api.aggKey": "ExecutionflowID", "api.aggAppend": "ExecutionflowUpdated,ExecutionflowDetected" } }, - { no: 17, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => OrderStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 17, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => OrderStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 18, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved" } }, { no: 19, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } }, { no: 20, 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: 21, 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: 22, name: "ExecutionflowETAs", kind: "message", localName: "ExecutionflowETAs", jsonName: "ExecutionflowETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyExecutionflow, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for each executionflow attached to the order" }, "api.aggKey": "ExecutionflowID", "api.aggSkip": "ExecutionflowETAUpdated" } }, - { no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } }, + { no: 23, name: "OrderETA", kind: "message", localName: "OrderETA", jsonName: "OrderETA", T: () => ETA, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ETA for the order, computed from ETA of the execitionFlows" }, "api.aggSkip": "ETAUpdated" } }, { no: 24, name: "Anticipated", kind: "scalar", localName: "Anticipated", jsonName: "Anticipated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Anticipated orders are not automatically associated to an executionflow" } } } ]); } diff --git a/orderInput.ts b/orderInput.ts index 7e7f9f37..07bab183 100644 --- a/orderInput.ts +++ b/orderInput.ts @@ -163,7 +163,7 @@ export interface OrderExecutionflowDetectedPayload { CreationDateTime?: DateTime; // Mandatory // string LanguageCodeISO6391 = 3 // [ - // (validate.rules).string = {min_len: 2, max_len: 2}, (validate.rules).string.languageIso6391 = true + // (n1validate.rules).string = {min_len: 2, max_len: 2}, (n1validate.rules).string.languageIso6391 = true // ]; // Short codes (2 characters) to define order main language. Refers to https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes /** @@ -174,7 +174,7 @@ export interface OrderExecutionflowDetectedPayload { MetaData: MetadataElement[]; // TradeTier Buyer = 5 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; // Mandatory : definition of the order buyer // TradeTier Seller = 6; // Optional : definition of the order seller @@ -617,15 +617,15 @@ export interface OrderRequestedDeliveryDateDefinedResponse { // option (postAggMethods) = "computeETAs"; // Here are listed the post aggregation methods to call when event message is aggregated // EventHeader Header = 1 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // EntityID ID = 2 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // OrderETAUpdatedPayload Payload = 3 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // } // message OrderETAUpdatedRequest @@ -639,15 +639,15 @@ export interface OrderRequestedDeliveryDateDefinedResponse { // option (messageType) = "Request"; // RequestProjectHeader Header = 1 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // EntityID ID = 2 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // OrderETAUpdatedPayload Payload = 3 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // } // message OrderETAUpdatedResponse { @@ -2018,14 +2018,14 @@ export interface OrderReceiptCompletedResponse { class OrderCreatedPayload$Type extends MessageType { constructor() { super("api.OrderCreatedPayload", [ - { no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ParentOrder", kind: "message", localName: "ParentOrder", jsonName: "ParentOrder", T: () => ReferencedID }, - { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, + { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, { no: 4, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 5, name: "Buyer", kind: "message", localName: "Buyer", jsonName: "Buyer", T: () => TradeTier }, { no: 6, name: "Seller", kind: "message", localName: "Seller", jsonName: "Seller", T: () => TradeTier }, { no: 7, name: "ShipFrom", kind: "message", localName: "ShipFrom", jsonName: "ShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order from" } } }, - { no: 8, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" } } }, + { no: 8, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" } } }, { no: 9, name: "Carrier", kind: "message", localName: "Carrier", jsonName: "Carrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" } } }, { no: 12, name: "CarrierService", kind: "scalar", localName: "CarrierService", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" } } }, { no: 10, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones }, @@ -2153,9 +2153,9 @@ export const OrderCreatedPayload = new OrderCreatedPayload$Type(); class OrderCreatedEvent$Type extends MessageType { constructor() { super("api.OrderCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Created", "api.postAggMethods": "computeEquivalentLVBaseQuantity", "api.preAggMethods": "verifyActorPartner,verifyDraftCreatedStatus" }); } create(value?: PartialMessage): OrderCreatedEvent { @@ -2213,9 +2213,9 @@ export const OrderCreatedEvent = new OrderCreatedEvent$Type(); class OrderCreatedRequest$Type extends MessageType { constructor() { super("api.OrderCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): OrderCreatedRequest { @@ -2326,14 +2326,14 @@ export const OrderCreatedResponse = new OrderCreatedResponse$Type(); class OrderExecutionflowDetectedPayload$Type extends MessageType { constructor() { super("api.OrderExecutionflowDetectedPayload", [ - { no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 7, name: "ShipFrom", kind: "message", localName: "ShipFrom", jsonName: "ShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order from" } } }, - { no: 8, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" } } }, + { no: 8, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" } } }, { no: 9, name: "Carrier", kind: "message", localName: "Carrier", jsonName: "Carrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" } } }, { no: 12, name: "CarrierService", kind: "scalar", localName: "CarrierService", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" } } }, { no: 10, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones }, - { no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }, + { no: 11, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderLine, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Lines of the order" }, "api.aggKey": "LineID" } }, { no: 13, name: "ExecutionflowSummary", kind: "message", localName: "ExecutionflowSummary", jsonName: "ExecutionflowSummary", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExecutionflowSummary, options: { "api.aggKey": "ExecutionflowID" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["CreationDateTime", "ShipTo"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExecutionflowDetected", "api.postAggMethods": "computeEquivalentLVBaseQuantity" }); } @@ -2432,9 +2432,9 @@ export const OrderExecutionflowDetectedPayload = new OrderExecutionflowDetectedP class OrderExecutionflowDetectedEvent$Type extends MessageType { constructor() { super("api.OrderExecutionflowDetectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowDetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowDetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ExecutionflowDetected", "api.postAggMethods": "computeEquivalentLVBaseQuantity", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): OrderExecutionflowDetectedEvent { @@ -2492,9 +2492,9 @@ export const OrderExecutionflowDetectedEvent = new OrderExecutionflowDetectedEve class OrderExecutionflowDetectedRequest$Type extends MessageType { constructor() { super("api.OrderExecutionflowDetectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowDetectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowDetectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ExecutionflowDetected" }); } create(value?: PartialMessage): OrderExecutionflowDetectedRequest { @@ -2643,9 +2643,9 @@ export const OrderCancelledPayload = new OrderCancelledPayload$Type(); class OrderCancelledEvent$Type extends MessageType { constructor() { super("api.OrderCancelledEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCancelledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCancelledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Cancelled" }); } create(value?: PartialMessage): OrderCancelledEvent { @@ -2703,9 +2703,9 @@ export const OrderCancelledEvent = new OrderCancelledEvent$Type(); class OrderCancelledRequest$Type extends MessageType { constructor() { super("api.OrderCancelledRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCancelledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCancelledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Cancelled" }); } create(value?: PartialMessage): OrderCancelledRequest { @@ -2854,9 +2854,9 @@ export const OrderAnonymisedPayload = new OrderAnonymisedPayload$Type(); class OrderAnonymisedEvent$Type extends MessageType { constructor() { super("api.OrderAnonymisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAnonymisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAnonymisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Anonymised", "api.postAggMethods": "anonymise" }); } create(value?: PartialMessage): OrderAnonymisedEvent { @@ -2914,9 +2914,9 @@ export const OrderAnonymisedEvent = new OrderAnonymisedEvent$Type(); class OrderAnonymisedRequest$Type extends MessageType { constructor() { super("api.OrderAnonymisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAnonymisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAnonymisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Anonymised" }); } create(value?: PartialMessage): OrderAnonymisedRequest { @@ -3065,9 +3065,9 @@ export const OrderSanitisedPayload = new OrderSanitisedPayload$Type(); class OrderSanitisedEvent$Type extends MessageType { constructor() { super("api.OrderSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): OrderSanitisedEvent { @@ -3125,9 +3125,9 @@ export const OrderSanitisedEvent = new OrderSanitisedEvent$Type(); class OrderSanitisedRequest$Type extends MessageType { constructor() { super("api.OrderSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): OrderSanitisedRequest { @@ -3284,9 +3284,9 @@ export const OrderShipperAssignedPayload = new OrderShipperAssignedPayload$Type( class OrderShipperAssignedEvent$Type extends MessageType { constructor() { super("api.OrderShipperAssignedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderShipperAssignedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderShipperAssignedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ShipperAssigned", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): OrderShipperAssignedEvent { @@ -3344,9 +3344,9 @@ export const OrderShipperAssignedEvent = new OrderShipperAssignedEvent$Type(); class OrderShipperAssignedRequest$Type extends MessageType { constructor() { super("api.OrderShipperAssignedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderShipperAssignedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderShipperAssignedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ShipperAssigned" }); } create(value?: PartialMessage): OrderShipperAssignedRequest { @@ -3495,9 +3495,9 @@ export const OrderPartiallyCompletedPayload = new OrderPartiallyCompletedPayload class OrderPartiallyCompletedEvent$Type extends MessageType { constructor() { super("api.OrderPartiallyCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPartiallyCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPartiallyCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PartiallyCompleted" }); } create(value?: PartialMessage): OrderPartiallyCompletedEvent { @@ -3555,9 +3555,9 @@ export const OrderPartiallyCompletedEvent = new OrderPartiallyCompletedEvent$Typ class OrderPartiallyCompletedRequest$Type extends MessageType { constructor() { super("api.OrderPartiallyCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPartiallyCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPartiallyCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PartiallyCompleted" }); } create(value?: PartialMessage): OrderPartiallyCompletedRequest { @@ -3714,9 +3714,9 @@ export const OrderRequestedDeliveryDateDefinedPayload = new OrderRequestedDelive class OrderRequestedDeliveryDateDefinedEvent$Type extends MessageType { constructor() { super("api.OrderRequestedDeliveryDateDefinedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderRequestedDeliveryDateDefinedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderRequestedDeliveryDateDefinedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "RequestedDeliveryDateDefined" }); } create(value?: PartialMessage): OrderRequestedDeliveryDateDefinedEvent { @@ -3774,9 +3774,9 @@ export const OrderRequestedDeliveryDateDefinedEvent = new OrderRequestedDelivery class OrderRequestedDeliveryDateDefinedRequest$Type extends MessageType { constructor() { super("api.OrderRequestedDeliveryDateDefinedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderRequestedDeliveryDateDefinedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderRequestedDeliveryDateDefinedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "RequestedDeliveryDateDefined" }); } create(value?: PartialMessage): OrderRequestedDeliveryDateDefinedRequest { @@ -3887,7 +3887,7 @@ export const OrderRequestedDeliveryDateDefinedResponse = new OrderRequestedDeliv class OrderExecutionflowETAUpdatedPayload$Type extends MessageType { constructor() { super("api.OrderExecutionflowETAUpdatedPayload", [ - { no: 1, name: "ExecutionflowETAs", kind: "message", localName: "ExecutionflowETAs", jsonName: "ExecutionflowETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyExecutionflow, options: { "validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "ExecutionflowID" } } + { no: 1, name: "ExecutionflowETAs", kind: "message", localName: "ExecutionflowETAs", jsonName: "ExecutionflowETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyExecutionflow, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "api.aggKey": "ExecutionflowID" } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExecutionflowETAUpdated" }); } create(value?: PartialMessage): OrderExecutionflowETAUpdatedPayload { @@ -3934,9 +3934,9 @@ export const OrderExecutionflowETAUpdatedPayload = new OrderExecutionflowETAUpda class OrderExecutionflowETAUpdatedEvent$Type extends MessageType { constructor() { super("api.OrderExecutionflowETAUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ExecutionflowETAUpdated", "api.postAggMethods": "computeETAs", "api.preAggMethods": "setExecutionflowETAActualDate" }); } create(value?: PartialMessage): OrderExecutionflowETAUpdatedEvent { @@ -3994,9 +3994,9 @@ export const OrderExecutionflowETAUpdatedEvent = new OrderExecutionflowETAUpdate class OrderExecutionflowETAUpdatedRequest$Type extends MessageType { constructor() { super("api.OrderExecutionflowETAUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ExecutionflowETAUpdated" }); } create(value?: PartialMessage): OrderExecutionflowETAUpdatedRequest { @@ -4107,7 +4107,7 @@ export const OrderExecutionflowETAUpdatedResponse = new OrderExecutionflowETAUpd class OrderCompletedPayload$Type extends MessageType { constructor() { super("api.OrderCompletedPayload", [ - { no: 1, name: "ActualCompletionDateTime", kind: "message", localName: "ActualCompletionDateTime", jsonName: "ActualCompletionDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "ActualCompletionDateTime", kind: "message", localName: "ActualCompletionDateTime", jsonName: "ActualCompletionDateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Completed" }); } create(value?: PartialMessage): OrderCompletedPayload { @@ -4153,9 +4153,9 @@ export const OrderCompletedPayload = new OrderCompletedPayload$Type(); class OrderCompletedEvent$Type extends MessageType { constructor() { super("api.OrderCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Completed" }); } create(value?: PartialMessage): OrderCompletedEvent { @@ -4213,9 +4213,9 @@ export const OrderCompletedEvent = new OrderCompletedEvent$Type(); class OrderCompletedRequest$Type extends MessageType { constructor() { super("api.OrderCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Completed" }); } create(value?: PartialMessage): OrderCompletedRequest { @@ -4381,10 +4381,10 @@ export const OrderExecutionflowUpdatedPayload = new OrderExecutionflowUpdatedPay class OrderExecutionflowUpdatedEvent$Type extends MessageType { constructor() { super("api.OrderExecutionflowUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } - ], { "api.messageType": "Event", "api.inputEvent": "ExecutionflowUpdated", "api.postAggMethods": "computeCarrier" }); + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } + ], { "api.messageType": "Event", "api.inputEvent": "ExecutionflowUpdated", "api.postAggMethods": "computeCarrier,computeShippedGoods" }); } create(value?: PartialMessage): OrderExecutionflowUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); @@ -4441,9 +4441,9 @@ export const OrderExecutionflowUpdatedEvent = new OrderExecutionflowUpdatedEvent class OrderExecutionflowUpdatedRequest$Type extends MessageType { constructor() { super("api.OrderExecutionflowUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderExecutionflowUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ExecutionflowUpdated" }); } create(value?: PartialMessage): OrderExecutionflowUpdatedRequest { @@ -4601,9 +4601,9 @@ export const OrderMetaDataUpdatedPayload = new OrderMetaDataUpdatedPayload$Type( class OrderMetaDataUpdatedEvent$Type extends MessageType { constructor() { super("api.OrderMetaDataUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): OrderMetaDataUpdatedEvent { @@ -4661,9 +4661,9 @@ export const OrderMetaDataUpdatedEvent = new OrderMetaDataUpdatedEvent$Type(); class OrderMetaDataUpdatedRequest$Type extends MessageType { constructor() { super("api.OrderMetaDataUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderMetaDataUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): OrderMetaDataUpdatedRequest { @@ -4828,9 +4828,9 @@ export const OrderCarrierUpdatedPayload = new OrderCarrierUpdatedPayload$Type(); class OrderCarrierUpdatedEvent$Type extends MessageType { constructor() { super("api.OrderCarrierUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCarrierUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCarrierUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CarrierUpdated", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): OrderCarrierUpdatedEvent { @@ -4888,9 +4888,9 @@ export const OrderCarrierUpdatedEvent = new OrderCarrierUpdatedEvent$Type(); class OrderCarrierUpdatedRequest$Type extends MessageType { constructor() { super("api.OrderCarrierUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCarrierUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCarrierUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierUpdated" }); } create(value?: PartialMessage): OrderCarrierUpdatedRequest { @@ -5048,9 +5048,9 @@ export const OrderAttachmentAddedPayload = new OrderAttachmentAddedPayload$Type( class OrderAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.OrderAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): OrderAttachmentAddedEvent { @@ -5108,9 +5108,9 @@ export const OrderAttachmentAddedEvent = new OrderAttachmentAddedEvent$Type(); class OrderAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.OrderAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): OrderAttachmentAddedRequest { @@ -5268,9 +5268,9 @@ export const OrderAttachmentRemovedPayload = new OrderAttachmentRemovedPayload$T class OrderAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.OrderAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): OrderAttachmentRemovedEvent { @@ -5328,9 +5328,9 @@ export const OrderAttachmentRemovedEvent = new OrderAttachmentRemovedEvent$Type( class OrderAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.OrderAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): OrderAttachmentRemovedRequest { @@ -5488,9 +5488,9 @@ export const OrderClaimAddedPayload = new OrderClaimAddedPayload$Type(); class OrderClaimAddedEvent$Type extends MessageType { constructor() { super("api.OrderClaimAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ClaimAdded", "api.preAggMethods": "addClaim" }); } create(value?: PartialMessage): OrderClaimAddedEvent { @@ -5548,9 +5548,9 @@ export const OrderClaimAddedEvent = new OrderClaimAddedEvent$Type(); class OrderClaimAddedRequest$Type extends MessageType { constructor() { super("api.OrderClaimAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderClaimAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderClaimAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ClaimAdded" }); } create(value?: PartialMessage): OrderClaimAddedRequest { @@ -6350,9 +6350,9 @@ export const OrderCustomFieldsUpdatedPayload = new OrderCustomFieldsUpdatedPaylo class OrderCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.OrderCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): OrderCustomFieldsUpdatedEvent { @@ -6410,9 +6410,9 @@ export const OrderCustomFieldsUpdatedEvent = new OrderCustomFieldsUpdatedEvent$T class OrderCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.OrderCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): OrderCustomFieldsUpdatedRequest { @@ -6643,9 +6643,9 @@ export const OrderDraftCreatedPayload = new OrderDraftCreatedPayload$Type(); class OrderDraftCreatedEvent$Type extends MessageType { constructor() { super("api.OrderDraftCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "DraftCreated", "api.preAggMethods": "verifyOrderCreatedStatus" }); } create(value?: PartialMessage): OrderDraftCreatedEvent { @@ -6703,9 +6703,9 @@ export const OrderDraftCreatedEvent = new OrderDraftCreatedEvent$Type(); class OrderDraftCreatedRequest$Type extends MessageType { constructor() { super("api.OrderDraftCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderDraftCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "DraftCreated" }); } create(value?: PartialMessage): OrderDraftCreatedRequest { @@ -6854,9 +6854,9 @@ export const OrderPreparationExpectedPayload = new OrderPreparationExpectedPaylo class OrderPreparationExpectedEvent$Type extends MessageType { constructor() { super("api.OrderPreparationExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PreparationExpected" }); } create(value?: PartialMessage): OrderPreparationExpectedEvent { @@ -6914,9 +6914,9 @@ export const OrderPreparationExpectedEvent = new OrderPreparationExpectedEvent$T class OrderPreparationExpectedRequest$Type extends MessageType { constructor() { super("api.OrderPreparationExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PreparationExpected" }); } create(value?: PartialMessage): OrderPreparationExpectedRequest { @@ -7065,9 +7065,9 @@ export const OrderPreparationStartedPayload = new OrderPreparationStartedPayload class OrderPreparationStartedEvent$Type extends MessageType { constructor() { super("api.OrderPreparationStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PreparationStarted" }); } create(value?: PartialMessage): OrderPreparationStartedEvent { @@ -7125,9 +7125,9 @@ export const OrderPreparationStartedEvent = new OrderPreparationStartedEvent$Typ class OrderPreparationStartedRequest$Type extends MessageType { constructor() { super("api.OrderPreparationStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PreparationStarted" }); } create(value?: PartialMessage): OrderPreparationStartedRequest { @@ -7276,9 +7276,9 @@ export const OrderPreparationCompletedPayload = new OrderPreparationCompletedPay class OrderPreparationCompletedEvent$Type extends MessageType { constructor() { super("api.OrderPreparationCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "PreparationCompleted" }); } create(value?: PartialMessage): OrderPreparationCompletedEvent { @@ -7336,9 +7336,9 @@ export const OrderPreparationCompletedEvent = new OrderPreparationCompletedEvent class OrderPreparationCompletedRequest$Type extends MessageType { constructor() { super("api.OrderPreparationCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderPreparationCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "PreparationCompleted" }); } create(value?: PartialMessage): OrderPreparationCompletedRequest { @@ -7487,9 +7487,9 @@ export const OrderTransportExpectedPayload = new OrderTransportExpectedPayload$T class OrderTransportExpectedEvent$Type extends MessageType { constructor() { super("api.OrderTransportExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TransportExpected" }); } create(value?: PartialMessage): OrderTransportExpectedEvent { @@ -7547,9 +7547,9 @@ export const OrderTransportExpectedEvent = new OrderTransportExpectedEvent$Type( class OrderTransportExpectedRequest$Type extends MessageType { constructor() { super("api.OrderTransportExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TransportExpected" }); } create(value?: PartialMessage): OrderTransportExpectedRequest { @@ -7698,9 +7698,9 @@ export const OrderTransportStartedPayload = new OrderTransportStartedPayload$Typ class OrderTransportStartedEvent$Type extends MessageType { constructor() { super("api.OrderTransportStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TransportStarted" }); } create(value?: PartialMessage): OrderTransportStartedEvent { @@ -7758,9 +7758,9 @@ export const OrderTransportStartedEvent = new OrderTransportStartedEvent$Type(); class OrderTransportStartedRequest$Type extends MessageType { constructor() { super("api.OrderTransportStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TransportStarted" }); } create(value?: PartialMessage): OrderTransportStartedRequest { @@ -7909,9 +7909,9 @@ export const OrderTransportCompletedPayload = new OrderTransportCompletedPayload class OrderTransportCompletedEvent$Type extends MessageType { constructor() { super("api.OrderTransportCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "TransportCompleted" }); } create(value?: PartialMessage): OrderTransportCompletedEvent { @@ -7969,9 +7969,9 @@ export const OrderTransportCompletedEvent = new OrderTransportCompletedEvent$Typ class OrderTransportCompletedRequest$Type extends MessageType { constructor() { super("api.OrderTransportCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderTransportCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "TransportCompleted" }); } create(value?: PartialMessage): OrderTransportCompletedRequest { @@ -8120,9 +8120,9 @@ export const OrderReceiptStartedPayload = new OrderReceiptStartedPayload$Type(); class OrderReceiptStartedEvent$Type extends MessageType { constructor() { super("api.OrderReceiptStartedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceiptStarted" }); } create(value?: PartialMessage): OrderReceiptStartedEvent { @@ -8180,9 +8180,9 @@ export const OrderReceiptStartedEvent = new OrderReceiptStartedEvent$Type(); class OrderReceiptStartedRequest$Type extends MessageType { constructor() { super("api.OrderReceiptStartedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptStartedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptStartedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceiptStarted" }); } create(value?: PartialMessage): OrderReceiptStartedRequest { @@ -8331,9 +8331,9 @@ export const OrderReceiptExpectedPayload = new OrderReceiptExpectedPayload$Type( class OrderReceiptExpectedEvent$Type extends MessageType { constructor() { super("api.OrderReceiptExpectedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceiptExpected" }); } create(value?: PartialMessage): OrderReceiptExpectedEvent { @@ -8391,9 +8391,9 @@ export const OrderReceiptExpectedEvent = new OrderReceiptExpectedEvent$Type(); class OrderReceiptExpectedRequest$Type extends MessageType { constructor() { super("api.OrderReceiptExpectedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptExpectedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptExpectedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceiptExpected" }); } create(value?: PartialMessage): OrderReceiptExpectedRequest { @@ -8542,9 +8542,9 @@ export const OrderReceiptCompletedPayload = new OrderReceiptCompletedPayload$Typ class OrderReceiptCompletedEvent$Type extends MessageType { constructor() { super("api.OrderReceiptCompletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceiptCompleted" }); } create(value?: PartialMessage): OrderReceiptCompletedEvent { @@ -8602,9 +8602,9 @@ export const OrderReceiptCompletedEvent = new OrderReceiptCompletedEvent$Type(); class OrderReceiptCompletedRequest$Type extends MessageType { constructor() { super("api.OrderReceiptCompletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptCompletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => OrderReceiptCompletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceiptCompleted" }); } create(value?: PartialMessage): OrderReceiptCompletedRequest { diff --git a/orderQuery.ts b/orderQuery.ts index d72e9ecb..a52b89aa 100644 --- a/orderQuery.ts +++ b/orderQuery.ts @@ -167,8 +167,8 @@ export interface OrderByMatchResult { class OrderByIdQuery$Type extends MessageType { constructor() { super("api.OrderByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => OrderQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -282,7 +282,7 @@ export const OrderByIdResult = new OrderByIdResult$Type(); class OrderByFilterQuery$Type extends MessageType { constructor() { super("api.OrderByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -492,7 +492,7 @@ export const OrderQueryOptions = new OrderQueryOptions$Type(); class OrderByMatchQuery$Type extends MessageType { constructor() { super("api.OrderByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 8, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 9, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, diff --git a/org.ts b/org.ts index 501831ee..982c7a23 100644 --- a/org.ts +++ b/org.ts @@ -50,7 +50,7 @@ export interface Organisation { export interface DeleteOrganisationRequest { // RequestOrganisationHeader Header = 2 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -90,7 +90,7 @@ export interface UpdateOrganisationRequest { Header?: RequestOrganisationHeader; // Organisation Organisation = 1 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -206,7 +206,7 @@ export interface UpdateOrganisationStatusResult { export interface StartStreamingJobsRequest { // RequestOrganisationHeader Header = 1 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -220,7 +220,7 @@ export interface StartStreamingJobsRequest { export interface StopStreamingJobsRequest { // RequestOrganisationHeader Header = 1 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -392,7 +392,7 @@ export interface StopStreamingMetricsJobResult { export interface CheckStreamingStatusRequest { // RequestOrganisationHeader Header = 3 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -524,12 +524,12 @@ export enum StatusEnum { class Organisation$Type extends MessageType { constructor() { super("api.Organisation", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "IDPs", kind: "message", localName: "IDPs", jsonName: "IDPs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => IDP }, - { no: 4, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }, - { no: 6, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } } + { no: 6, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } } ]); } create(value?: PartialMessage): Organisation { @@ -611,7 +611,7 @@ export const Organisation = new Organisation$Type(); class DeleteOrganisationRequest$Type extends MessageType { constructor() { super("api.DeleteOrganisationRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeleteOrganisationRequest { @@ -658,7 +658,7 @@ export const DeleteOrganisationRequest = new DeleteOrganisationRequest$Type(); class GetOrganisationRequest$Type extends MessageType { constructor() { super("api.GetOrganisationRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetOrganisationRequest { @@ -704,8 +704,8 @@ export const GetOrganisationRequest = new GetOrganisationRequest$Type(); class CreateOrganisationRequest$Type extends MessageType { constructor() { super("api.CreateOrganisationRequest", [ - { no: 1, name: "Organisation", kind: "message", localName: "Organisation", jsonName: "Organisation", T: () => Organisation, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true } } } } + { no: 1, name: "Organisation", kind: "message", localName: "Organisation", jsonName: "Organisation", T: () => Organisation, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { email: true } } } } ]); } create(value?: PartialMessage): CreateOrganisationRequest { @@ -758,9 +758,9 @@ export const CreateOrganisationRequest = new CreateOrganisationRequest$Type(); class UpdateOrganisationRequest$Type extends MessageType { constructor() { super("api.UpdateOrganisationRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } } ]); } create(value?: PartialMessage): UpdateOrganisationRequest { @@ -820,7 +820,7 @@ export const UpdateOrganisationRequest = new UpdateOrganisationRequest$Type(); class SetModulesOrganisationRequest$Type extends MessageType { constructor() { super("api.SetModulesOrganisationRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); } @@ -875,8 +875,8 @@ export const SetModulesOrganisationRequest = new SetModulesOrganisationRequest$T class UpdateOrganisationStatusRequest$Type extends MessageType { constructor() { super("api.UpdateOrganisationStatusRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): UpdateOrganisationStatusRequest { @@ -1299,7 +1299,7 @@ export const UpdateOrganisationStatusResult = new UpdateOrganisationStatusResult class StartStreamingJobsRequest$Type extends MessageType { constructor() { super("api.StartStreamingJobsRequest", [ - { no: 2, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): StartStreamingJobsRequest { @@ -1346,7 +1346,7 @@ export const StartStreamingJobsRequest = new StartStreamingJobsRequest$Type(); class StopStreamingJobsRequest$Type extends MessageType { constructor() { super("api.StopStreamingJobsRequest", [ - { no: 2, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): StopStreamingJobsRequest { @@ -1393,10 +1393,10 @@ export const StopStreamingJobsRequest = new StopStreamingJobsRequest$Type(); class StartIndividualStreamingJobRequest$Type extends MessageType { constructor() { super("api.StartIndividualStreamingJobRequest", [ - { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ClassName", kind: "scalar", localName: "ClassName", jsonName: "ClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ClassName", kind: "scalar", localName: "ClassName", jsonName: "ClassName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Arguments", kind: "scalar", localName: "Arguments", jsonName: "Arguments", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1519,10 +1519,10 @@ export const StartIndividualStreamingJobResult = new StartIndividualStreamingJob class StopIndividualStreamingJobRequest$Type extends MessageType { constructor() { super("api.StopIndividualStreamingJobRequest", [ - { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ClassName", kind: "scalar", localName: "ClassName", jsonName: "ClassName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ClassName", kind: "scalar", localName: "ClassName", jsonName: "ClassName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Force", kind: "scalar", localName: "Force", jsonName: "Force", T: 8 /*ScalarType.BOOL*/ } ]); } @@ -2222,7 +2222,7 @@ export const StopStreamingMetricsJobResult = new StopStreamingMetricsJobResult$T class CheckStreamingStatusRequest$Type extends MessageType { constructor() { super("api.CheckStreamingStatusRequest", [ - { no: 4, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 4, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): CheckStreamingStatusRequest { @@ -2307,8 +2307,8 @@ export const CheckStreamingStatusResult = new CheckStreamingStatusResult$Type(); class ProvisionGitOrgRequest$Type extends MessageType { constructor() { super("api.ProvisionGitOrgRequest", [ - { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true } } } } + { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { email: true } } } } ]); } create(value?: PartialMessage): ProvisionGitOrgRequest { @@ -2400,7 +2400,7 @@ export const ProvisionGitOrgResult = new ProvisionGitOrgResult$Type(); class DeprovisionGitOrgRequest$Type extends MessageType { constructor() { super("api.DeprovisionGitOrgRequest", [ - { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrgID", kind: "scalar", localName: "OrgID", jsonName: "OrgID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrgID"] } } }); } create(value?: PartialMessage): DeprovisionGitOrgRequest { @@ -2485,7 +2485,7 @@ export const DeprovisionGitOrgResult = new DeprovisionGitOrgResult$Type(); class DeleteOrganisationInDBRequest$Type extends MessageType { constructor() { super("api.DeleteOrganisationInDBRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); } create(value?: PartialMessage): DeleteOrganisationInDBRequest { diff --git a/package.json b/package.json index 9e9749a0..7f333959 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.14.0-SNAPSHOT-260521140615", + "version": "1.14.0-SNAPSHOT-260522082153", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/partner.ts b/partner.ts index 0f2a5c12..22d75b42 100644 --- a/partner.ts +++ b/partner.ts @@ -162,7 +162,7 @@ class PartnerPayload$Type extends MessageType { { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Movement,Executionflow,Handlingunit,Order,Item,Actor,Partner,Tracking", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Tracking", Group: "tracking", Queryable: true }] } } }, { no: 2, name: "LegalStructure", kind: "scalar", localName: "LegalStructure", jsonName: "LegalStructure", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }, - { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => PartnerStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.enrichmentClear": "Tracking,Order,Executionflow" } }, + { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => PartnerStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.enrichmentClear": "Tracking,Order,Executionflow" } }, { no: 7, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"https://reflex-visibility-forever.jpg\"" }, "api.viewType": { Types: [{ Context: "*", Type: "image" }] } } }, { no: 8, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.enrichmentClear": "Tracking,Order,Executionflow" } }, { no: 9, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" }, "api.enrichmentClear": "Tracking,Order,Executionflow" } }, diff --git a/partnerApp.ts b/partnerApp.ts index fced18cc..285a8fca 100644 --- a/partnerApp.ts +++ b/partnerApp.ts @@ -414,8 +414,8 @@ export const PartnerApp = new PartnerApp$Type(); class CreatePartnerAppRequest$Type extends MessageType { constructor() { super("api.CreatePartnerAppRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -597,9 +597,9 @@ export const CreatePartnerAppResult = new CreatePartnerAppResult$Type(); class UpdatePartnerAppRequest$Type extends MessageType { constructor() { super("api.UpdatePartnerAppRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -713,7 +713,7 @@ export const UpdatePartnerAppResult = new UpdatePartnerAppResult$Type(); class GetPartnerAppRequest$Type extends MessageType { constructor() { super("api.GetPartnerAppRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetPartnerAppRequest { @@ -805,7 +805,7 @@ export const GetPartnerAppResult = new GetPartnerAppResult$Type(); class ListPartnerAppsRequest$Type extends MessageType { constructor() { super("api.ListPartnerAppsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging } ]); } @@ -905,8 +905,8 @@ export const ListPartnerAppsResult = new ListPartnerAppsResult$Type(); class DeletePartnerAppRequest$Type extends MessageType { constructor() { super("api.DeletePartnerAppRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeletePartnerAppRequest { @@ -1005,7 +1005,7 @@ export const DeletePartnerAppResult = new DeletePartnerAppResult$Type(); class DeletePartnerAppInDBRequest$Type extends MessageType { constructor() { super("api.DeletePartnerAppInDBRequest", [ - { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeletePartnerAppInDBRequest { @@ -1090,7 +1090,7 @@ export const DeletePartnerAppInDBResult = new DeletePartnerAppInDBResult$Type(); class RenewPartnerAppRequest$Type extends MessageType { constructor() { super("api.RenewPartnerAppRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): RenewPartnerAppRequest { diff --git a/partnerInput.ts b/partnerInput.ts index 342e2255..1cb2994b 100644 --- a/partnerInput.ts +++ b/partnerInput.ts @@ -356,15 +356,15 @@ export interface PartnerSanitisedResponse { // option (preAggMethods) = "addClaim"; // Here are listed the pre aggregation methods to call before event message is aggregated // EventHeader Header = 1 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // EntityID ID = 2 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // PartnerClaimAddedPayload Payload = 3 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // } // message PartnerClaimAddedRequest { @@ -377,15 +377,15 @@ export interface PartnerSanitisedResponse { // option (messageType) = "Request"; // RequestProjectHeader Header = 1 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // EntityID ID = 2 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // PartnerClaimAddedPayload Payload = 3 // [ -// (validate.rules).message.required = true +// (n1validate.rules).message.required = true // ]; // } // message PartnerClaimAddedResponse { @@ -529,9 +529,9 @@ export const PartnerCreatedPayload = new PartnerCreatedPayload$Type(); class PartnerCreatedEvent$Type extends MessageType { constructor() { super("api.PartnerCreatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Created" }); } create(value?: PartialMessage): PartnerCreatedEvent { @@ -589,9 +589,9 @@ export const PartnerCreatedEvent = new PartnerCreatedEvent$Type(); class PartnerCreatedRequest$Type extends MessageType { constructor() { super("api.PartnerCreatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCreatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCreatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } create(value?: PartialMessage): PartnerCreatedRequest { @@ -960,9 +960,9 @@ export const PartnerAttachmentAddedPayload = new PartnerAttachmentAddedPayload$T class PartnerAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.PartnerAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): PartnerAttachmentAddedEvent { @@ -1020,9 +1020,9 @@ export const PartnerAttachmentAddedEvent = new PartnerAttachmentAddedEvent$Type( class PartnerAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.PartnerAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): PartnerAttachmentAddedRequest { @@ -1180,9 +1180,9 @@ export const PartnerAttachmentRemovedPayload = new PartnerAttachmentRemovedPaylo class PartnerAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.PartnerAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): PartnerAttachmentRemovedEvent { @@ -1240,9 +1240,9 @@ export const PartnerAttachmentRemovedEvent = new PartnerAttachmentRemovedEvent$T class PartnerAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.PartnerAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): PartnerAttachmentRemovedRequest { @@ -1391,9 +1391,9 @@ export const PartnerSanitisedPayload = new PartnerSanitisedPayload$Type(); class PartnerSanitisedEvent$Type extends MessageType { constructor() { super("api.PartnerSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): PartnerSanitisedEvent { @@ -1451,9 +1451,9 @@ export const PartnerSanitisedEvent = new PartnerSanitisedEvent$Type(); class PartnerSanitisedRequest$Type extends MessageType { constructor() { super("api.PartnerSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): PartnerSanitisedRequest { @@ -1602,9 +1602,9 @@ export const PartnerCustomFieldsUpdatedPayload = new PartnerCustomFieldsUpdatedP class PartnerCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.PartnerCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): PartnerCustomFieldsUpdatedEvent { @@ -1662,9 +1662,9 @@ export const PartnerCustomFieldsUpdatedEvent = new PartnerCustomFieldsUpdatedEve class PartnerCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.PartnerCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => PartnerCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): PartnerCustomFieldsUpdatedRequest { diff --git a/partnerQuery.ts b/partnerQuery.ts index 982ad7bc..c6caded8 100644 --- a/partnerQuery.ts +++ b/partnerQuery.ts @@ -163,8 +163,8 @@ export interface PartnerByMatchResult { class PartnerByIdQuery$Type extends MessageType { constructor() { super("api.PartnerByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => PartnerQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -278,7 +278,7 @@ export const PartnerByIdResult = new PartnerByIdResult$Type(); class PartnerByFilterQuery$Type extends MessageType { constructor() { super("api.PartnerByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -480,7 +480,7 @@ export const PartnerQueryOptions = new PartnerQueryOptions$Type(); class PartnerByMatchQuery$Type extends MessageType { constructor() { super("api.PartnerByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 8, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 9, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, diff --git a/proj.ts b/proj.ts index 359b2ef4..4486a3f6 100644 --- a/proj.ts +++ b/proj.ts @@ -184,7 +184,7 @@ export interface UpdateProjectRequest { Header?: RequestProjectHeader; // Project Project = 1 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -466,10 +466,10 @@ export enum ProjectStatusEnum { class ProjectCreation$Type extends MessageType { constructor() { super("api.ProjectCreation", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } }, { no: 3, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }, - { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } }); } create(value?: PartialMessage): ProjectCreation { @@ -537,12 +537,12 @@ export const ProjectCreation = new ProjectCreation$Type(); class Project$Type extends MessageType { constructor() { super("api.Project", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([a-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([a-z0-9-])+$" } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "status", kind: "enum", T: () => ["api.ProjectStatusEnum", ProjectStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([a-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([a-z0-9-])+$" } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "status", kind: "enum", T: () => ["api.ProjectStatusEnum", ProjectStatusEnum], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Name", "OrganisationID"] } } }); } create(value?: PartialMessage): Project { @@ -624,8 +624,8 @@ export const Project = new Project$Type(); class DeleteProjectRequest$Type extends MessageType { constructor() { super("api.DeleteProjectRequest", [ - { no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): DeleteProjectRequest { @@ -678,7 +678,7 @@ export const DeleteProjectRequest = new DeleteProjectRequest$Type(); class GetProjectRequest$Type extends MessageType { constructor() { super("api.GetProjectRequest", [ - { no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): GetProjectRequest { @@ -724,10 +724,10 @@ export const GetProjectRequest = new GetProjectRequest$Type(); class ListProjectRequest$Type extends MessageType { constructor() { super("api.ListProjectRequest", [ - { no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 4, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging }, { no: 5, name: "ShowInactiveProjects", kind: "scalar", localName: "ShowInactiveProjects", jsonName: "ShowInactiveProjects", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListProjectRequest { @@ -794,7 +794,7 @@ class ListAllProjectRequest$Type extends MessageType { constructor() { super("api.ListAllProjectRequest", [ { no: 1, name: "ShowInactiveProjects", kind: "scalar", localName: "ShowInactiveProjects", jsonName: "ShowInactiveProjects", T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "SkipModules", kind: "scalar", localName: "SkipModules", jsonName: "SkipModules", T: 8 /*ScalarType.BOOL*/ } ]); } @@ -965,9 +965,9 @@ export const ListAllProjectResult = new ListAllProjectResult$Type(); class CreateProjectRequest$Type extends MessageType { constructor() { super("api.CreateProjectRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "Project", kind: "message", localName: "Project", jsonName: "Project", T: () => ProjectCreation, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true } } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "Project", kind: "message", localName: "Project", jsonName: "Project", T: () => ProjectCreation, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "ManagerMail", kind: "scalar", localName: "ManagerMail", jsonName: "ManagerMail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { email: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Project"] } } }); } create(value?: PartialMessage): CreateProjectRequest { @@ -1026,9 +1026,9 @@ export const CreateProjectRequest = new CreateProjectRequest$Type(); class UpdateProjectRequest$Type extends MessageType { constructor() { super("api.UpdateProjectRequest", [ - { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ProjectType", ProjectType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): UpdateProjectRequest { @@ -1088,8 +1088,8 @@ export const UpdateProjectRequest = new UpdateProjectRequest$Type(); class SetModulesProjectRequest$Type extends MessageType { constructor() { super("api.SetModulesProjectRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ProjectID"] } } }); } @@ -1434,8 +1434,8 @@ export const SetModulesProjectResult = new SetModulesProjectResult$Type(); class SuggestProjectIDRequest$Type extends MessageType { constructor() { super("api.SuggestProjectIDRequest", [ - { no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } }); } create(value?: PartialMessage): SuggestProjectIDRequest { @@ -1535,7 +1535,7 @@ export const SuggestProjectIDResult = new SuggestProjectIDResult$Type(); class DeleteProjectInDBRequest$Type extends MessageType { constructor() { super("api.DeleteProjectInDBRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteProjectInDBRequest { @@ -1931,8 +1931,8 @@ export const GetMyContextResult = new GetMyContextResult$Type(); class UpdateProjectStatusRequest$Type extends MessageType { constructor() { super("api.UpdateProjectStatusRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "status", kind: "enum", T: () => ["api.ProjectStatusEnum", ProjectStatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "status", kind: "enum", T: () => ["api.ProjectStatusEnum", ProjectStatusEnum], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): UpdateProjectStatusRequest { @@ -2111,8 +2111,8 @@ export const CleanDeletedProjectsResult = new CleanDeletedProjectsResult$Type(); class IsProjectExistRequest$Type extends MessageType { constructor() { super("api.IsProjectExistRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): IsProjectExistRequest { diff --git a/project-lifecycle.ts b/project-lifecycle.ts index 22e179af..4889a779 100644 --- a/project-lifecycle.ts +++ b/project-lifecycle.ts @@ -347,10 +347,10 @@ export const ProjectLifecycleTask = new ProjectLifecycleTask$Type(); class SetTaskRuleRequest$Type extends MessageType { constructor() { super("api.SetTaskRuleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "RuleDefinition", kind: "scalar", localName: "RuleDefinition", jsonName: "RuleDefinition", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "RuleDefinition", kind: "scalar", localName: "RuleDefinition", jsonName: "RuleDefinition", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity", "TaskType", "RuleDefinition"] } } }); } create(value?: PartialMessage): SetTaskRuleRequest { @@ -463,9 +463,9 @@ export const SetTaskRuleResponse = new SetTaskRuleResponse$Type(); class GetTaskRequest$Type extends MessageType { constructor() { super("api.GetTaskRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity", "TaskType"] } } }); } create(value?: PartialMessage): GetTaskRequest { @@ -571,7 +571,7 @@ export const GetTaskResponse = new GetTaskResponse$Type(); class ListTasksRequest$Type extends MessageType { constructor() { super("api.ListTasksRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListTasksRequest { @@ -664,10 +664,10 @@ export const ListTasksResponse = new ListTasksResponse$Type(); class SetTaskStatusRequest$Type extends MessageType { constructor() { super("api.SetTaskStatusRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "TaskStatus", kind: "enum", localName: "TaskStatus", jsonName: "TaskStatus", T: () => ["api.ProjectLifecycleTaskStatus", ProjectLifecycleTaskStatus], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "TaskStatus", kind: "enum", localName: "TaskStatus", jsonName: "TaskStatus", T: () => ["api.ProjectLifecycleTaskStatus", ProjectLifecycleTaskStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Entity", "TaskType", "TaskStatus"] } } }); } create(value?: PartialMessage): SetTaskStatusRequest { @@ -781,10 +781,10 @@ export const SetTaskStatusResponse = new SetTaskStatusResponse$Type(); class SetTaskNextRunAtRequest$Type extends MessageType { constructor() { super("api.SetTaskNextRunAtRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "NextRunAt", kind: "scalar", localName: "NextRunAt", jsonName: "NextRunAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "NextRunAt", kind: "scalar", localName: "NextRunAt", jsonName: "NextRunAt", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Entity", "TaskType", "NextRunAt"] } } }); } create(value?: PartialMessage): SetTaskNextRunAtRequest { @@ -898,10 +898,10 @@ export const SetTaskNextRunAtResponse = new SetTaskNextRunAtResponse$Type(); class SetTaskExecutedAtRequest$Type extends MessageType { constructor() { super("api.SetTaskExecutedAtRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "ExecutedAt", kind: "scalar", localName: "ExecutedAt", jsonName: "ExecutedAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "TaskType", kind: "enum", localName: "TaskType", jsonName: "TaskType", T: () => ["api.ProjectLifecycleTaskType", ProjectLifecycleTaskType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "ExecutedAt", kind: "scalar", localName: "ExecutedAt", jsonName: "ExecutedAt", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Entity", "TaskType", "ExecutedAt"] } } }); } create(value?: PartialMessage): SetTaskExecutedAtRequest { diff --git a/repositoryShared.ts b/repositoryShared.ts index e1ded0e2..ac2c807e 100644 --- a/repositoryShared.ts +++ b/repositoryShared.ts @@ -568,7 +568,7 @@ export interface ActorSnapshot { ID: string; // DateTime StartDateTime = 2 // [ - // (validate.rules).message.required = true + // (n1validate.rules).message.required = true // ]; /** @@ -907,7 +907,7 @@ class ActorStatusStruct$Type extends MessageType { super("api.ActorStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ActorStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Tracking", Group: "tracking" }] } } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ } ]); } @@ -1039,7 +1039,7 @@ class PartnerStatusStruct$Type extends MessageType { super("api.PartnerStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => PartnerStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PartnerStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Tracking", Group: "tracking" }] } } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): PartnerStatusStruct { @@ -1156,7 +1156,7 @@ class ErrorStatusStruct$Type extends MessageType { super("api.ErrorStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ErrorStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ErrorStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): ErrorStatusStruct { @@ -1280,7 +1280,7 @@ class ItemStatusStruct$Type extends MessageType { super("api.ItemStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => ItemStatus, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ItemStatus, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of all status history of the Item entity" }, "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] } } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ } ]); } @@ -1412,7 +1412,7 @@ class FamilyStatusStruct$Type extends MessageType { super("api.FamilyStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => FamilyStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FamilyStatus, options: { "api.aggKey": "Date" } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): FamilyStatusStruct { @@ -1472,7 +1472,7 @@ export const FamilyStatusStruct = new FamilyStatusStruct$Type(); class ExpiryConstraint$Type extends MessageType { constructor() { super("api.ExpiryConstraint", [ - { no: 1, name: "WillExpire", kind: "scalar", localName: "WillExpire", jsonName: "WillExpire", T: 8 /*ScalarType.BOOL*/, options: { "validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order,Item", "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Bool)" }, { Context: "Order", Group: "order", Queryable: true }] } } }, + { no: 1, name: "WillExpire", kind: "scalar", localName: "WillExpire", jsonName: "WillExpire", T: 8 /*ScalarType.BOOL*/, options: { "n1validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order,Item", "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Bool)" }, { Context: "Order", Group: "order", Queryable: true }] } } }, { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ExpiryConstraintType", ExpiryConstraintType], options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order,Item", "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast, String)" }, { Context: "Order", Group: "order", Queryable: true }] } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Item components" } } }); } @@ -1530,7 +1530,7 @@ class TradeItemDescriptions$Type extends MessageType { { no: 1, name: "ShortDescription", kind: "scalar", localName: "ShortDescription", jsonName: "ShortDescription", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Blue balloon\"" } } }, { no: 2, name: "LongDescription", kind: "scalar", localName: "LongDescription", jsonName: "LongDescription", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Outdoor blue balloon for kids\"" } } }, { no: 3, name: "TechnicalDetails", kind: "scalar", localName: "TechnicalDetails", jsonName: "TechnicalDetails", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Made in France, suitable for kids above 3 years old\"" } } }, - { no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } } + { no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } } ]); } create(value?: PartialMessage): TradeItemDescriptions { @@ -1598,20 +1598,20 @@ export const TradeItemDescriptions = new TradeItemDescriptions$Type(); class LogisticVariant$Type extends MessageType { constructor() { super("api.LogisticVariant", [ - { no: 13, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Executionflow,Order,Item", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 15, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Pallet of 100 pieces\"" } } }, + { no: 13, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Executionflow,Order,Item", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Item", Group: "item", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 15, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Pallet of 100 pieces\"" } } }, { no: 2, name: "Codes", kind: "message", localName: "Codes", jsonName: "Codes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OtherID, options: { "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }, { Context: "Item", Group: "item" }] }, "api.parentEntity": "Item" } }, { no: 4, name: "IsBaseLogisticVariant", kind: "scalar", localName: "IsBaseLogisticVariant", jsonName: "IsBaseLogisticVariant", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"true / false\"" } } }, { no: 5, name: "RefLV", kind: "scalar", localName: "RefLV", jsonName: "RefLV", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the LV in which the quantity is given", example: "\"10\"" } } }, - { no: 19, name: "RefLVName", kind: "scalar", localName: "RefLVName", jsonName: "RefLVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 19, name: "RefLVName", kind: "scalar", localName: "RefLVName", jsonName: "RefLVName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 6, name: "QuantityInRefLV", kind: "scalar", localName: "QuantityInRefLV", jsonName: "QuantityInRefLV", T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "5" } } }, { no: 8, name: "Volume", kind: "message", localName: "Volume", jsonName: "Volume", T: () => QuantityVolume, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 9, name: "Area", kind: "message", localName: "Area", jsonName: "Area", T: () => QuantityArea, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 10, name: "Height", kind: "message", localName: "Height", jsonName: "Height", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 11, name: "Width", kind: "message", localName: "Width", jsonName: "Width", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 12, name: "Length", kind: "message", localName: "Length", jsonName: "Length", T: () => QuantityLength, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, - { no: 14, name: "QuantityInBaseLV", kind: "scalar", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 14, name: "QuantityInBaseLV", kind: "scalar", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: 2 /*ScalarType.FLOAT*/, options: { "n1validate.rules": { float: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 16, name: "NetWeight", kind: "message", localName: "NetWeight", jsonName: "NetWeight", T: () => QuantityWeight, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 17, name: "GrossWeight", kind: "message", localName: "GrossWeight", jsonName: "GrossWeight", T: () => QuantityWeight, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, { no: 18, name: "BranchIDs", kind: "scalar", localName: "BranchIDs", jsonName: "BranchIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"[30,31]\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } } @@ -1766,7 +1766,7 @@ export const LogisticVariant = new LogisticVariant$Type(); class OtherID$Type extends MessageType { constructor() { super("api.OtherID", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"EAN13\"" } } }, + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"EAN13\"" } } }, { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"3050520032023\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Key"] } } }); } @@ -1821,7 +1821,7 @@ export const OtherID = new OtherID$Type(); class ErrorTags$Type extends MessageType { constructor() { super("api.ErrorTags", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1964,7 +1964,7 @@ class Address$Type extends MessageType
{ constructor() { super("api.Address", [ { no: 1, name: "City", kind: "scalar", localName: "City", jsonName: "City", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Partner,Tracking,Appointment", "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Appointment", Group: "appointment", Queryable: true }] } } }, - { no: 2, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in ISO_3166-1 format", example: "\"FR\"" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Partner,Tracking,Appointment", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 2, name: "CountryCode", kind: "scalar", localName: "CountryCode", jsonName: "CountryCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { countryCodeIso3166: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Country Code in ISO_3166-1 format", example: "\"FR\"" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Actor,Partner,Tracking,Appointment", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 3, name: "GeographicalCoordinates", kind: "message", localName: "GeographicalCoordinates", jsonName: "GeographicalCoordinates", T: () => GeographicalCoordinates }, { no: 4, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "POBoxNumber", kind: "scalar", localName: "POBoxNumber", jsonName: "POBoxNumber", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }, { Context: "Appointment", Group: "appointment", Queryable: true }] } } }, @@ -2103,7 +2103,7 @@ class ActorContact$Type extends MessageType { { no: 4, name: "JobTitle", kind: "scalar", localName: "JobTitle", jsonName: "JobTitle", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "DepartmentName", kind: "scalar", localName: "DepartmentName", jsonName: "DepartmentName", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "Responsibilities", kind: "scalar", localName: "Responsibilities", jsonName: "Responsibilities", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "EmailAddress", kind: "scalar", localName: "EmailAddress", jsonName: "EmailAddress", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { email: true, ignoreEmpty: true } } } }, + { no: 7, name: "EmailAddress", kind: "scalar", localName: "EmailAddress", jsonName: "EmailAddress", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { email: true, ignoreEmpty: true } } } }, { no: 8, name: "FaxNumber", kind: "scalar", localName: "FaxNumber", jsonName: "FaxNumber", T: 9 /*ScalarType.STRING*/ }, { no: 9, name: "TelephoneNumber", kind: "scalar", localName: "TelephoneNumber", jsonName: "TelephoneNumber", T: 9 /*ScalarType.STRING*/ } ]); @@ -2210,7 +2210,7 @@ class Interlocutor$Type extends MessageType { super("api.Interlocutor", [ { no: 1, name: "FirstName", kind: "scalar", localName: "FirstName", jsonName: "FirstName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"John\"" } } }, { no: 2, name: "LastName", kind: "scalar", localName: "LastName", jsonName: "LastName", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"Doe\"" } } }, - { no: 3, 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": { description: "Must be a valid email address", example: "[\"john.doe@reflex.com\",\"john.doe.bis@reflex.com\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Partner", Group: "partner" }, { Context: "Tracking", Group: "tracking" }] } } }, + { no: 3, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { 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\",\"john.doe.bis@reflex.com\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Partner", Group: "partner" }, { Context: "Tracking", Group: "tracking" }] } } }, { no: 4, 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: "[\"07 00 00 00 00\",\"+33 4 00 00 00 00\"]" }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }, { Context: "Actor", Group: "actor" }, { Context: "Partner", Group: "partner" }, { Context: "Tracking", Group: "tracking" }] } } } ]); } @@ -2334,9 +2334,9 @@ export const GeographicalCoordinates = new GeographicalCoordinates$Type(); class ActorSnapshot$Type extends MessageType { constructor() { super("api.ActorSnapshot", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be unique ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "EndDateTime", kind: "message", localName: "EndDateTime", jsonName: "EndDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, - { no: 4, name: "MessageNb", kind: "scalar", localName: "MessageNb", jsonName: "MessageNb", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { minimum: 1 } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be unique ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "EndDateTime", kind: "message", localName: "EndDateTime", jsonName: "EndDateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 4, name: "MessageNb", kind: "scalar", localName: "MessageNb", jsonName: "MessageNb", T: 5 /*ScalarType.INT32*/, options: { "n1validate.rules": { int32: { gte: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { minimum: 1 } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "EndDateTime", "MessageNb"] } } }); } create(value?: PartialMessage): ActorSnapshot { @@ -2396,7 +2396,7 @@ export const ActorSnapshot = new ActorSnapshot$Type(); class CarrierService$Type extends MessageType { constructor() { super("api.CarrierService", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unique ID", example: "\"24h\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Unique ID", example: "\"24h\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"24 hour delivery\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID"] } } }); } diff --git a/resource.ts b/resource.ts index f4b1e5e9..822cb9f0 100644 --- a/resource.ts +++ b/resource.ts @@ -89,7 +89,7 @@ export interface CleanResourceResult { class CreateResourceRequest$Type extends MessageType { constructor() { super("api.CreateResourceRequest", [ - { no: 1, name: "Resource", kind: "message", localName: "Resource", jsonName: "Resource", T: () => Resource, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Resource", kind: "message", localName: "Resource", jsonName: "Resource", T: () => Resource, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Resource"] } } }); } create(value?: PartialMessage): CreateResourceRequest { @@ -181,7 +181,7 @@ export const CreateResourceResponse = new CreateResourceResponse$Type(); class DeleteResourceRequest$Type extends MessageType { constructor() { super("api.DeleteResourceRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID"] } } }); } create(value?: PartialMessage): DeleteResourceRequest { @@ -266,7 +266,7 @@ export const DeleteResourceResponse = new DeleteResourceResponse$Type(); class ListResourcesRequest$Type extends MessageType { constructor() { super("api.ListResourcesRequest", [ - { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 2, name: "ParentID", kind: "scalar", localName: "ParentID", jsonName: "ParentID", T: 9 /*ScalarType.STRING*/ } ]); } @@ -368,8 +368,8 @@ export const ListResourcesResponse = new ListResourcesResponse$Type(); class CleanResourceRequest$Type extends MessageType { constructor() { super("api.CleanResourceRequest", [ - { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): CleanResourceRequest { diff --git a/restrictionLinks.ts b/restrictionLinks.ts index c5164a76..204e4917 100644 --- a/restrictionLinks.ts +++ b/restrictionLinks.ts @@ -292,9 +292,9 @@ export const RestrictionLink = new RestrictionLink$Type(); class CreateRestrictionLinkRequest$Type extends MessageType { constructor() { super("api.CreateRestrictionLinkRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "TargetID"] } } }); } create(value?: PartialMessage): CreateRestrictionLinkRequest { @@ -400,9 +400,9 @@ export const CreateRestrictionLinkResponse = new CreateRestrictionLinkResponse$T class UpdateRestrictionLinkRequest$Type extends MessageType { constructor() { super("api.UpdateRestrictionLinkRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "TargetID"] } } }); } create(value?: PartialMessage): UpdateRestrictionLinkRequest { @@ -508,9 +508,9 @@ export const UpdateRestrictionLinkResponse = new UpdateRestrictionLinkResponse$T class DeleteRestrictionLinkRequest$Type extends MessageType { constructor() { super("api.DeleteRestrictionLinkRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "TargetID"] } } }); } create(value?: PartialMessage): DeleteRestrictionLinkRequest { @@ -608,9 +608,9 @@ export const DeleteRestrictionLinkResponse = new DeleteRestrictionLinkResponse$T class GetRestrictionLinkRequest$Type extends MessageType { constructor() { super("api.GetRestrictionLinkRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "TargetID"] } } }); } create(value?: PartialMessage): GetRestrictionLinkRequest { @@ -716,7 +716,7 @@ export const GetRestrictionLinkResponse = new GetRestrictionLinkResponse$Type(); class ListRestrictionLinksRequest$Type extends MessageType { constructor() { super("api.ListRestrictionLinksRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "TargetID", kind: "scalar", localName: "TargetID", jsonName: "TargetID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); @@ -825,9 +825,9 @@ export const ListRestrictionLinksResponse = new ListRestrictionLinksResponse$Typ class SetUserActorsRequest$Type extends MessageType { constructor() { super("api.SetUserActorsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "UserActorIDs", kind: "scalar", localName: "UserActorIDs", jsonName: "UserActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "UserID"] } } }); } @@ -933,7 +933,7 @@ export const SetUserActorsResponse = new SetUserActorsResponse$Type(); class DeleteForProjectRestrictionLinkRequest$Type extends MessageType { constructor() { super("api.DeleteForProjectRestrictionLinkRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID"] } } }); } create(value?: PartialMessage): DeleteForProjectRestrictionLinkRequest { diff --git a/restrictions.ts b/restrictions.ts index bca8b3ca..fa7e1a93 100644 --- a/restrictions.ts +++ b/restrictions.ts @@ -749,10 +749,10 @@ export const RuleComputeResult = new RuleComputeResult$Type(); class RestrictionRule$Type extends MessageType { constructor() { super("api.RestrictionRule", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Attributes", kind: "scalar", localName: "Attributes", jsonName: "Attributes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name", "Entity", "Definition"] } } }); } @@ -828,9 +828,9 @@ export const RestrictionRule = new RestrictionRule$Type(); class CreateRestrictionRequest$Type extends MessageType { constructor() { super("api.CreateRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "Rules", kind: "message", localName: "Rules", jsonName: "Rules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionRule } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "TargetType", "Name"] } } }); @@ -952,9 +952,9 @@ export const CreateRestrictionResponse = new CreateRestrictionResponse$Type(); class UpdateRestrictionRequest$Type extends MessageType { constructor() { super("api.UpdateRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "Rules", kind: "message", localName: "Rules", jsonName: "Rules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionRule } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "Name"] } } }); @@ -1076,8 +1076,8 @@ export const UpdateRestrictionResponse = new UpdateRestrictionResponse$Type(); class GetRestrictionRequest$Type extends MessageType { constructor() { super("api.GetRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID"] } } }); } create(value?: PartialMessage): GetRestrictionRequest { @@ -1176,7 +1176,7 @@ export const GetRestrictionResponse = new GetRestrictionResponse$Type(); class ListRestrictionsRequest$Type extends MessageType { constructor() { super("api.ListRestrictionsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "TargetType", kind: "enum", localName: "TargetType", jsonName: "TargetType", T: () => ["api.RestrictionType", RestrictionType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -1277,8 +1277,8 @@ export const ListRestrictionsResponse = new ListRestrictionsResponse$Type(); class DeleteRestrictionRequest$Type extends MessageType { constructor() { super("api.DeleteRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID"] } } }); } create(value?: PartialMessage): DeleteRestrictionRequest { @@ -1369,8 +1369,8 @@ export const DeleteRestrictionResponse = new DeleteRestrictionResponse$Type(); class EnableRestrictionRequest$Type extends MessageType { constructor() { super("api.EnableRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID"] } } }); } create(value?: PartialMessage): EnableRestrictionRequest { @@ -1469,8 +1469,8 @@ export const EnableRestrictionResponse = new EnableRestrictionResponse$Type(); class DisableRestrictionRequest$Type extends MessageType { constructor() { super("api.DisableRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID"] } } }); } create(value?: PartialMessage): DisableRestrictionRequest { @@ -1569,7 +1569,7 @@ export const DisableRestrictionResponse = new DisableRestrictionResponse$Type(); class DeleteForProjectRestrictionRequest$Type extends MessageType { constructor() { super("api.DeleteForProjectRestrictionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): DeleteForProjectRestrictionRequest { @@ -1653,8 +1653,8 @@ export const DeleteForProjectRestrictionResponse = new DeleteForProjectRestricti class GetRulesJSONTreeRequest$Type extends MessageType { constructor() { super("api.GetRulesJSONTreeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID"] } } }); } create(value?: PartialMessage): GetRulesJSONTreeRequest { @@ -1754,10 +1754,10 @@ export const GetRulesJSONTreeResponse = new GetRulesJSONTreeResponse$Type(); class GetRuleJSONTreeRequest$Type extends MessageType { constructor() { super("api.GetRuleJSONTreeRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "RestrictionID", kind: "scalar", localName: "RestrictionID", jsonName: "RestrictionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "RestrictionID", "Name", "Entity"] } } }); } create(value?: PartialMessage): GetRuleJSONTreeRequest { @@ -1871,10 +1871,10 @@ export const GetRuleJSONTreeResponse = new GetRuleJSONTreeResponse$Type(); class ComputeRuleRequest$Type extends MessageType { constructor() { super("api.ComputeRuleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "OutputFormats", kind: "enum", localName: "OutputFormats", jsonName: "OutputFormats", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RuleComputeFormat", RuleComputeFormat], options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "OutputFormats", kind: "enum", localName: "OutputFormats", jsonName: "OutputFormats", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.RuleComputeFormat", RuleComputeFormat], options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 5, name: "RewriteFor", kind: "scalar", localName: "RewriteFor", jsonName: "RewriteFor", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity", "UserID", "OutputFormats"] } } }); } @@ -2004,7 +2004,7 @@ export const ComputeRuleResponse = new ComputeRuleResponse$Type(); class ValidateRestrictionRuleRequest$Type extends MessageType { constructor() { super("api.ValidateRestrictionRuleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "Rule", kind: "message", localName: "Rule", jsonName: "Rule", T: () => RestrictionRule } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Rule"] } } }); } diff --git a/role.ts b/role.ts index 8145c0a9..3af3bf5b 100644 --- a/role.ts +++ b/role.ts @@ -893,11 +893,11 @@ export const ExternalPermission = new ExternalPermission$Type(); class CreatePlatformRoleRequest$Type extends MessageType { constructor() { super("api.CreatePlatformRoleRequest", [ - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1026,11 +1026,11 @@ export const CreatePlatformRoleResult = new CreatePlatformRoleResult$Type(); class CreateOrganisationRoleRequest$Type extends MessageType { constructor() { super("api.CreateOrganisationRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1158,11 +1158,11 @@ export const CreateOrganisationRoleResult = new CreateOrganisationRoleResult$Typ class CreateProjectRoleRequest$Type extends MessageType { constructor() { super("api.CreateProjectRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1290,11 +1290,11 @@ export const CreateProjectRoleResult = new CreateProjectRoleResult$Type(); class UpdatePlatformRoleRequest$Type extends MessageType { constructor() { super("api.UpdatePlatformRoleRequest", [ - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 7, name: "ApplicationType", kind: "enum", localName: "ApplicationType", jsonName: "ApplicationType", T: () => ["api.ApplicationType", ApplicationType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 8, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1423,11 +1423,11 @@ export const UpdatePlatformRoleResult = new UpdatePlatformRoleResult$Type(); class UpdateOrganisationRoleRequest$Type extends MessageType { constructor() { super("api.UpdateOrganisationRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "validate.rules": { repeated: { minItems: "1" } } } }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1555,11 +1555,11 @@ export const UpdateOrganisationRoleResult = new UpdateOrganisationRoleResult$Typ class UpdateProjectRoleRequest$Type extends MessageType { constructor() { super("api.UpdateProjectRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 5, name: "Permissions", kind: "message", localName: "Permissions", jsonName: "Permissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Permission }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ } ]); } @@ -1687,8 +1687,8 @@ export const UpdateProjectRoleResult = new UpdateProjectRoleResult$Type(); class GetPlatformRoleRequest$Type extends MessageType { constructor() { super("api.GetPlatformRoleRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): GetPlatformRoleRequest { @@ -1788,9 +1788,9 @@ export const GetPlatformRoleResult = new GetPlatformRoleResult$Type(); class GetOrganisationRoleRequest$Type extends MessageType { constructor() { super("api.GetOrganisationRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): GetOrganisationRoleRequest { @@ -1896,9 +1896,9 @@ export const GetOrganisationRoleResult = new GetOrganisationRoleResult$Type(); class GetProjectRoleRequest$Type extends MessageType { constructor() { super("api.GetProjectRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 3, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): GetProjectRoleRequest { @@ -2121,7 +2121,7 @@ export const ListPlatformRolesResult = new ListPlatformRolesResult$Type(); class ListOrganisationRolesRequest$Type extends MessageType { constructor() { super("api.ListOrganisationRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] }, { no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging }, { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] } @@ -2237,7 +2237,7 @@ export const ListOrganisationRolesResult = new ListOrganisationRolesResult$Type( class ListProjectRolesRequest$Type extends MessageType { constructor() { super("api.ListProjectRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType] }, { no: 3, name: "Paging", kind: "message", localName: "Paging", jsonName: "Paging", T: () => Paging }, { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.RoleType", RoleType] } @@ -2353,7 +2353,7 @@ export const ListProjectRolesResult = new ListProjectRolesResult$Type(); class PutRoleExternalPermissionsRequest$Type extends MessageType { constructor() { super("api.PutRoleExternalPermissionsRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission } ]); } @@ -2454,7 +2454,7 @@ export const PutRoleExternalPermissionsResult = new PutRoleExternalPermissionsRe class DeleteRoleExternalPermissionsRequest$Type extends MessageType { constructor() { super("api.DeleteRoleExternalPermissionsRequest", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "ExternalPermissions", kind: "message", localName: "ExternalPermissions", jsonName: "ExternalPermissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExternalPermission } ]); } @@ -2555,7 +2555,7 @@ export const DeleteRoleExternalPermissionsResult = new DeleteRoleExternalPermiss class DeleteAllPlatformRolesRequest$Type extends MessageType { constructor() { super("api.DeleteAllPlatformRolesRequest", [ - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): DeleteAllPlatformRolesRequest { @@ -2640,8 +2640,8 @@ export const DeleteAllPlatformRolesResult = new DeleteAllPlatformRolesResult$Typ class DeletePlatformRoleRequest$Type extends MessageType { constructor() { super("api.DeletePlatformRoleRequest", [ - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): DeletePlatformRoleRequest { @@ -2733,9 +2733,9 @@ export const DeletePlatformRoleResult = new DeletePlatformRoleResult$Type(); class DeleteOrganisationRoleRequest$Type extends MessageType { constructor() { super("api.DeleteOrganisationRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): DeleteOrganisationRoleRequest { @@ -2833,9 +2833,9 @@ export const DeleteOrganisationRoleResult = new DeleteOrganisationRoleResult$Typ class DeleteProjectRoleRequest$Type extends MessageType { constructor() { super("api.DeleteProjectRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, - { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[.a-zA-Z0-9]+(?:-[.a-zA-Z0-9]+)*$" } } }, + { no: 4, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ]); } create(value?: PartialMessage): DeleteProjectRoleRequest { @@ -2933,9 +2933,9 @@ export const DeleteProjectRoleResult = new DeleteProjectRoleResult$Type(); class PropagateRolesOnResourceRequest$Type extends MessageType { constructor() { super("api.PropagateRolesOnResourceRequest", [ - { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "ResourceId", kind: "scalar", localName: "ResourceId", jsonName: "ResourceId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ParentRscId", kind: "scalar", localName: "ParentRscId", jsonName: "ParentRscId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ResourceId", kind: "scalar", localName: "ResourceId", jsonName: "ResourceId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ParentRscId", kind: "scalar", localName: "ParentRscId", jsonName: "ParentRscId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): PropagateRolesOnResourceRequest { @@ -3034,8 +3034,8 @@ export const PropagateRolesOnResourceResult = new PropagateRolesOnResourceResult class DeleteRolesOnResourceRequest$Type extends MessageType { constructor() { super("api.DeleteRolesOnResourceRequest", [ - { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "ResourceId", kind: "scalar", localName: "ResourceId", jsonName: "ResourceId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ResourceId", kind: "scalar", localName: "ResourceId", jsonName: "ResourceId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeleteRolesOnResourceRequest { diff --git a/rules.ts b/rules.ts index 00cd2085..3d06b71c 100644 --- a/rules.ts +++ b/rules.ts @@ -447,14 +447,14 @@ export const Rule = new Rule$Type(); class CreateRuleRequest$Type extends MessageType { constructor() { super("api.CreateRuleRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "RuleType", kind: "enum", localName: "RuleType", jsonName: "RuleType", T: () => ["api.RuleType", RuleType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 5, name: "RuleTypeID", kind: "scalar", localName: "RuleTypeID", jsonName: "RuleTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "RuleType", kind: "enum", localName: "RuleType", jsonName: "RuleType", T: () => ["api.RuleType", RuleType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 5, name: "RuleTypeID", kind: "scalar", localName: "RuleTypeID", jsonName: "RuleTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 6, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 8, name: "Issuer", kind: "scalar", localName: "Issuer", jsonName: "Issuer", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 8, name: "Issuer", kind: "scalar", localName: "Issuer", jsonName: "Issuer", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 9, name: "Attributes", kind: "scalar", localName: "Attributes", jsonName: "Attributes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID", "Entity", "Name", "RuleType", "RuleTypeID", "Definition", "Issuer"] } } }); } @@ -604,12 +604,12 @@ export const CreateRuleResponse = new CreateRuleResponse$Type(); class UpdateRuleRequest$Type extends MessageType { constructor() { super("api.UpdateRuleRequest", [ - { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Description", kind: "scalar", localName: "Description", jsonName: "Description", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 6, name: "Issuer", kind: "scalar", localName: "Issuer", jsonName: "Issuer", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Definition", kind: "scalar", localName: "Definition", jsonName: "Definition", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Issuer", kind: "scalar", localName: "Issuer", jsonName: "Issuer", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 7, name: "Attributes", kind: "scalar", localName: "Attributes", jsonName: "Attributes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RuleID", "Name", "Definition", "Issuer", "Entity"] } } }); } @@ -745,7 +745,7 @@ export const UpdateRuleResponse = new UpdateRuleResponse$Type(); class GetRuleRequest$Type extends MessageType { constructor() { super("api.GetRuleRequest", [ - { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RuleID"] } } }); } create(value?: PartialMessage): GetRuleRequest { @@ -956,8 +956,8 @@ export const ListRulesResponse = new ListRulesResponse$Type(); class DeleteRuleRequest$Type extends MessageType { constructor() { super("api.DeleteRuleRequest", [ - { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Issuer", kind: "scalar", localName: "Issuer", jsonName: "Issuer", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Issuer", kind: "scalar", localName: "Issuer", jsonName: "Issuer", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RuleID", "Issuer"] } } }); } create(value?: PartialMessage): DeleteRuleRequest { @@ -1049,7 +1049,7 @@ export const DeleteRuleResponse = new DeleteRuleResponse$Type(); class EnableRuleRequest$Type extends MessageType { constructor() { super("api.EnableRuleRequest", [ - { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RuleID"] } } }); } create(value?: PartialMessage): EnableRuleRequest { @@ -1142,7 +1142,7 @@ export const EnableRuleResponse = new EnableRuleResponse$Type(); class DisableRuleRequest$Type extends MessageType { constructor() { super("api.DisableRuleRequest", [ - { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RuleID"] } } }); } create(value?: PartialMessage): DisableRuleRequest { @@ -1235,7 +1235,7 @@ export const DisableRuleResponse = new DisableRuleResponse$Type(); class GetJSONTreeRequest$Type extends MessageType { constructor() { super("api.GetJSONTreeRequest", [ - { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "RuleID", kind: "scalar", localName: "RuleID", jsonName: "RuleID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RuleID"] } } }); } create(value?: PartialMessage): GetJSONTreeRequest { diff --git a/shared.ts b/shared.ts index c778a253..fad845eb 100644 --- a/shared.ts +++ b/shared.ts @@ -361,7 +361,7 @@ export interface EventHeader { * @generated from protobuf field: api.DateTime EventTS = 2 */ EventTS?: DateTime; - // DateTime ActualDate = 6; // TODO : add validation rule to make it required : [(validate.rules).message.required = true] + // DateTime ActualDate = 6; // TODO : add validation rule to make it required : [(n1validate.rules).message.required = true] /** * Contains the ID of the parent project if entity belongs to project rscType @@ -409,7 +409,7 @@ export interface EventHeader { export interface EntityID { // string UuID = 1 // [ - // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true, description: "Internal identifier"}, (validate.rules).string.unauthorized = true + // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true, description: "Internal identifier"}, (n1validate.rules).string.unauthorized = true // ]; /** @@ -1548,7 +1548,7 @@ export interface AttachmentType { /** * string ProjectID = 2 * [ - * (validate.rules).string.min_len = 1 + * (n1validate.rules).string.min_len = 1 * ]; * * @generated from protobuf field: string Code = 3 @@ -2934,7 +2934,7 @@ export enum ProjectType { class RequestHeader$Type extends MessageType { constructor() { super("api.RequestHeader", [ - { no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } } + { no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } } ]); } create(value?: PartialMessage): RequestHeader { @@ -2981,8 +2981,8 @@ export const RequestHeader = new RequestHeader$Type(); class TimeRange$Type extends MessageType { constructor() { super("api.TimeRange", [ - { no: 1, name: "StartTime", kind: "scalar", localName: "StartTime", jsonName: "StartTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } }, - { no: 2, name: "EndTime", kind: "scalar", localName: "EndTime", jsonName: "EndTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } } + { no: 1, name: "StartTime", kind: "scalar", localName: "StartTime", jsonName: "StartTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } }, + { no: 2, name: "EndTime", kind: "scalar", localName: "EndTime", jsonName: "EndTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$" } } } } ]); } create(value?: PartialMessage): TimeRange { @@ -3036,7 +3036,7 @@ export const TimeRange = new TimeRange$Type(); class RequestProjectHeader$Type extends MessageType { constructor() { super("api.RequestProjectHeader", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project", example: "\"Your_Project_ID\"" } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project", example: "\"Your_Project_ID\"" } } }, { no: 3, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, { no: 4, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); @@ -3099,7 +3099,7 @@ export const RequestProjectHeader = new RequestProjectHeader$Type(); class RequestOrganisationHeader$Type extends MessageType { constructor() { super("api.RequestOrganisationHeader", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" } } }, + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" } } }, { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationID"] } } }); @@ -3162,7 +3162,7 @@ export const RequestOrganisationHeader = new RequestOrganisationHeader$Type(); class RequestBucketHeader$Type extends MessageType { constructor() { super("api.RequestBucketHeader", [ - { no: 1, name: "BucketID", kind: "scalar", localName: "BucketID", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" } } }, + { no: 1, name: "BucketID", kind: "scalar", localName: "BucketID", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" } } }, { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["BucketID"] } } }); @@ -3225,7 +3225,7 @@ export const RequestBucketHeader = new RequestBucketHeader$Type(); class RequestPartnerAppHeader$Type extends MessageType { constructor() { super("api.RequestPartnerAppHeader", [ - { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" } } }, + { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" } } }, { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["PartnerAppID"] } } }); @@ -3288,7 +3288,7 @@ export const RequestPartnerAppHeader = new RequestPartnerAppHeader$Type(); class RequestConnectionHeader$Type extends MessageType { constructor() { super("api.RequestConnectionHeader", [ - { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the connection" } } }, + { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the connection" } } }, { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ConnectionID"] } } }); @@ -3351,7 +3351,7 @@ export const RequestConnectionHeader = new RequestConnectionHeader$Type(); class RequestAttachmentTypeHeader$Type extends MessageType { constructor() { super("api.RequestAttachmentTypeHeader", [ - { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the attachment type" } } }, + { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the attachment type" } } }, { no: 2, name: "CorrelationID", kind: "scalar", localName: "CorrelationID", jsonName: "CorrelationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"CorrID_A\"" } } }, { no: 3, name: "TechnicalID", kind: "scalar", localName: "TechnicalID", jsonName: "TechnicalID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This ID is sent back into the response header in order to be able to correlate request and response", example: "\"TechID_A\"" } } } ]); @@ -3540,7 +3540,7 @@ export const AttachmentTypeResponseHeader = new AttachmentTypeResponseHeader$Typ class QueryHeader$Type extends MessageType { constructor() { super("api.QueryHeader", [ - { no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/ } @@ -3674,7 +3674,7 @@ export const QueryBasicHeader = new QueryBasicHeader$Type(); class QueryProjectHeader$Type extends MessageType { constructor() { super("api.QueryProjectHeader", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", notContains: " " } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" } } }, { no: 3, name: "PagingState", kind: "scalar", localName: "PagingState", jsonName: "PagingState", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Start position of the query result page. Pagination disabled if equal to -1.", example: "\"50\"" } } }, { no: 4, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Length of the query result page", example: "\"50\"" } } }, { no: 5, name: "LocalizedLabel", kind: "scalar", localName: "LocalizedLabel", jsonName: "LocalizedLabel", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Return the message in the user's language" } } } @@ -3902,12 +3902,12 @@ export const CommandHeader = new CommandHeader$Type(); class EventHeader$Type extends MessageType { constructor() { super("api.EventHeader", [ - { no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "InputEvent", kind: "scalar", localName: "InputEvent", jsonName: "InputEvent", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "EventTS", kind: "message", localName: "EventTS", jsonName: "EventTS", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, { no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, - { no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Author", kind: "scalar", localName: "Author", jsonName: "Author", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, + { no: 5, name: "EventID", kind: "scalar", localName: "EventID", jsonName: "EventID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 6, name: "CreatedBy", kind: "scalar", localName: "CreatedBy", jsonName: "CreatedBy", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "user" }] } } }, { no: 7, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }, { no: 9, name: "OversizedPayload", kind: "scalar", localName: "OversizedPayload", jsonName: "OversizedPayload", T: 8 /*ScalarType.BOOL*/, options: { "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Bool)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }] } } }, @@ -4020,7 +4020,7 @@ export const EventHeader = new EventHeader$Type(); class EntityID$Type extends MessageType { constructor() { super("api.EntityID", [ - { no: 2, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" } } }, + { no: 2, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" } } }, { no: 3, name: "RefDate", kind: "message", localName: "RefDate", jsonName: "RefDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your effective date. If your event triggers a status change, this date will be used into the status ActualDate" } } }, { 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." }, "api.aggKey": "Key" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RefID"] } } }); @@ -4082,7 +4082,7 @@ export const EntityID = new EntityID$Type(); class QueryEntityID$Type extends MessageType { constructor() { super("api.QueryEntityID", [ - { no: 1, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" } } } + { no: 1, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" } } } ]); } create(value?: PartialMessage): QueryEntityID { @@ -4129,7 +4129,7 @@ export const QueryEntityID = new QueryEntityID$Type(); class CustomField$Type extends MessageType { constructor() { super("api.CustomField", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ } ]); } @@ -4382,8 +4382,8 @@ export const GenericObjectPayload = new GenericObjectPayload$Type(); class DateTime$Type extends MessageType { constructor() { super("api.DateTime", [ - { no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format", example: "\"2023-01-01T00:00:00Z\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,DateTime)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }, { Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, - { no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this format", example: "\"Europe/Paris\"" } } } + { no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format", example: "\"2023-01-01T00:00:00Z\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Actor", Group: "actor", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Item", Group: "item", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Partner", Group: "partner", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,DateTime)" }, { Context: "Tracking", Group: "tracking", Queryable: true }, { Context: "Claim", Group: "claim", Queryable: true }, { Context: "Appointment", Group: "appointment", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this format", example: "\"Europe/Paris\"" } } } ]); } create(value?: PartialMessage): DateTime { @@ -4528,7 +4528,7 @@ class Amount$Type extends MessageType { constructor() { super("api.Amount", [ { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, - { no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 4217 currency code", example: "[\"EUR\", \"USD\"]" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } + { no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 4217 currency code", example: "[\"EUR\", \"USD\"]" }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } ]); } create(value?: PartialMessage): Amount { @@ -5191,11 +5191,11 @@ export const MetadataElement = new MetadataElement$Type(); class SimpleFilter$Type extends MessageType { constructor() { super("api.SimpleFilter", [ - { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" } } }, - { no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { maxLen: "250" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" } } }, - { no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"not\"" } } }, - { no: 5, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } } + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" } } }, + { no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { items: { string: { maxLen: "250" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" } } }, + { no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"not\"" } } }, + { no: 5, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } } ]); } create(value?: PartialMessage): SimpleFilter { @@ -5341,10 +5341,10 @@ export const CombinedFilter = new CombinedFilter$Type(); class RangeFilter$Type extends MessageType { constructor() { super("api.RangeFilter", [ - { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" } } }, - { no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" } } }, - { no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" } } }, - { no: 4, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } } + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" } } }, + { no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" } } }, + { no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" } } }, + { no: 4, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } } ]); } create(value?: PartialMessage): RangeFilter { @@ -5475,7 +5475,7 @@ export const BlockFilter = new BlockFilter$Type(); class MatchField$Type extends MessageType { constructor() { super("api.MatchField", [ - { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path" } } }, + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path" } } }, { no: 2, name: "AttributeCombined", kind: "scalar", localName: "AttributeCombined", jsonName: "AttributeCombined", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path for metadata filter" } } }, { no: 3, name: "CombinedID", kind: "scalar", localName: "CombinedID", jsonName: "CombinedID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata's key" } } } ]); @@ -5797,8 +5797,8 @@ export const ParamElement = new ParamElement$Type(); class LabelStructure$Type extends MessageType { constructor() { super("api.LabelStructure", [ - { no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, - { no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" } } }, + { no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 2, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" } } }, { no: 3, name: "Params", kind: "message", localName: "Params", jsonName: "Params", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ParamElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Parameters for label" }, "api.aggKey": "Key" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Code", "Label"] } } }); } @@ -6443,7 +6443,7 @@ export const StringObject = new StringObject$Type(); class StringDateObject$Type extends MessageType { constructor() { super("api.StringDateObject", [ - { no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } } + { no: 10, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } } ]); } create(value?: PartialMessage): StringDateObject { @@ -6490,9 +6490,9 @@ export const StringDateObject = new StringDateObject$Type(); class WorkflowExecutionResult$Type extends MessageType { constructor() { super("api.WorkflowExecutionResult", [ - { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): WorkflowExecutionResult { @@ -6554,9 +6554,9 @@ class ModuleRegistration$Type extends MessageType { constructor() { super("api.ModuleRegistration", [ { no: 1, name: "WorkflowTarget", kind: "enum", localName: "WorkflowTarget", jsonName: "WorkflowTarget", T: () => ["api.WorkflowTypeEnum", WorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Into which core workflow, the module child workflow will be registered" } } }, - { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" } } }, + { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" } } }, { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ModuleWorkflowTypeEnum", ModuleWorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PRE or POST to execute before or after the core workfow targeted" } } }, - { no: 4, name: "Timeout", kind: "scalar", localName: "Timeout", jsonName: "Timeout", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "max timeout in minutes of the module child workflow, ignored if it exceeds the platform default value." } } } + { no: 4, name: "Timeout", kind: "scalar", localName: "Timeout", jsonName: "Timeout", T: 5 /*ScalarType.INT32*/, options: { "n1validate.rules": { int32: { gt: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "max timeout in minutes of the module child workflow, ignored if it exceeds the platform default value." } } } ]); } create(value?: PartialMessage): ModuleRegistration { @@ -6625,7 +6625,7 @@ class ModuleDeregistration$Type extends MessageType { constructor() { super("api.ModuleDeregistration", [ { no: 1, name: "WorkflowTarget", kind: "enum", localName: "WorkflowTarget", jsonName: "WorkflowTarget", T: () => ["api.WorkflowTypeEnum", WorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Into which core workflow, the module child workflow will be registered" } } }, - { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" } } }, + { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" } } }, { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ModuleWorkflowTypeEnum", ModuleWorkflowTypeEnum], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "PRE or POST to execute before or after the core workfow targeted" } } } ]); } @@ -6687,12 +6687,12 @@ export const ModuleDeregistration = new ModuleDeregistration$Type(); class ClaimType$Type extends MessageType { constructor() { super("api.ClaimType", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, - { no: 5, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 6, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, + { no: 5, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition }, { no: 8, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure }, { no: 9, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, @@ -6700,10 +6700,10 @@ class ClaimType$Type extends MessageType { { no: 11, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 12, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 13, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] }, - { no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 15, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector] }, { no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): ClaimType { @@ -6870,8 +6870,8 @@ export const ClaimType = new ClaimType$Type(); class ClaimTransition$Type extends MessageType { constructor() { super("api.ClaimTransition", [ - { no: 1, name: "FromStatus", kind: "enum", localName: "FromStatus", jsonName: "FromStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "FromStatus", kind: "enum", localName: "FromStatus", jsonName: "FromStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ShouldNotify", kind: "scalar", localName: "ShouldNotify", jsonName: "ShouldNotify", T: 8 /*ScalarType.BOOL*/ } ]); @@ -6941,7 +6941,7 @@ export const ClaimTransition = new ClaimTransition$Type(); class ClaimTypeClosure$Type extends MessageType { constructor() { super("api.ClaimTypeClosure", [ - { no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Causes", kind: "scalar", localName: "Causes", jsonName: "Causes", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ]); } @@ -6996,8 +6996,8 @@ export const ClaimTypeClosure = new ClaimTypeClosure$Type(); class ClaimClosure$Type extends MessageType { constructor() { super("api.ClaimClosure", [ - { no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, - { no: 2, name: "Cause", kind: "scalar", localName: "Cause", jsonName: "Cause", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } + { no: 1, name: "Responsible", kind: "scalar", localName: "Responsible", jsonName: "Responsible", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } }, + { no: 2, name: "Cause", kind: "scalar", localName: "Cause", jsonName: "Cause", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } ]); } create(value?: PartialMessage): ClaimClosure { @@ -7051,8 +7051,8 @@ export const ClaimClosure = new ClaimClosure$Type(); class ClaimSummary$Type extends MessageType { constructor() { super("api.ClaimSummary", [ - { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 2, name: "ClaimTypeReason", kind: "scalar", localName: "ClaimTypeReason", jsonName: "ClaimTypeReason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" } } }, + { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "ClaimTypeReason", kind: "scalar", localName: "ClaimTypeReason", jsonName: "ClaimTypeReason", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" } } }, { no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims with this type" } } } ]); } @@ -7114,13 +7114,13 @@ export const ClaimSummary = new ClaimSummary$Type(); class AttachmentType$Type extends MessageType { constructor() { super("api.AttachmentType", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 5, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 8, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 7, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 5, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "SharePolicy", kind: "enum", localName: "SharePolicy", jsonName: "SharePolicy", T: () => ["api.SharePolicy", SharePolicy], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 8, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 7, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): AttachmentType { @@ -7209,8 +7209,8 @@ export const AttachmentType = new AttachmentType$Type(); class AttachmentSummary$Type extends MessageType { constructor() { super("api.AttachmentSummary", [ - { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 2, name: "AttachmentTypeCode", kind: "scalar", localName: "AttachmentTypeCode", jsonName: "AttachmentTypeCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "AttachmentTypeCode", kind: "scalar", localName: "AttachmentTypeCode", jsonName: "AttachmentTypeCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 3, name: "Number", kind: "scalar", localName: "Number", jsonName: "Number", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments with this type" } } } ]); } @@ -7398,16 +7398,16 @@ export const ExtractColumnFormat = new ExtractColumnFormat$Type(); class ExtractQuery$Type extends MessageType { constructor() { super("api.ExtractQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 4, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 7, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 9, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, { no: 11, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, { no: 12, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, { no: 13, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } @@ -7580,15 +7580,15 @@ export const ExtractQuery = new ExtractQuery$Type(); class CrossExtractQuery$Type extends MessageType { constructor() { super("api.CrossExtractQuery", [ - { no: 1, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 3, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 6, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 8, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 9, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 9, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, { no: 10, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, { no: 11, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, { no: 12, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } }, @@ -7817,8 +7817,8 @@ export const ExtractResult = new ExtractResult$Type(); class CountLinesQuery$Type extends MessageType { constructor() { super("api.CountLinesQuery", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Partition", kind: "scalar", localName: "Partition", jsonName: "Partition", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gte: 0 } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Partition", kind: "scalar", localName: "Partition", jsonName: "Partition", T: 5 /*ScalarType.INT32*/, options: { "n1validate.rules": { int32: { gte: 0 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): CountLinesQuery { @@ -7919,7 +7919,7 @@ export const CountLinesResult = new CountLinesResult$Type(); class Scope$Type extends MessageType { constructor() { super("api.Scope", [ - { no: 1, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Service", kind: "scalar", localName: "Service", jsonName: "Service", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Method", kind: "scalar", localName: "Method", jsonName: "Method", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "RscType", kind: "enum", localName: "RscType", jsonName: "RscType", T: () => ["api.ResourceType", ResourceType] }, { no: 4, name: "PlatformReserved", kind: "scalar", localName: "PlatformReserved", jsonName: "PlatformReserved", T: 8 /*ScalarType.BOOL*/ }, @@ -8109,8 +8109,8 @@ export const ClientAPI = new ClientAPI$Type(); class Permission$Type extends MessageType { constructor() { super("api.Permission", [ - { no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Scopes", kind: "message", localName: "Scopes", jsonName: "Scopes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Client", kind: "scalar", localName: "Client", jsonName: "Client", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Scopes", kind: "message", localName: "Scopes", jsonName: "Scopes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Scope, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Client", "Scopes"] } } }); } create(value?: PartialMessage): Permission { @@ -8227,8 +8227,8 @@ export const UserUIPermissions = new UserUIPermissions$Type(); class Resource$Type extends MessageType { constructor() { super("api.Resource", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "ParentID", kind: "scalar", localName: "ParentID", jsonName: "ParentID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ID", "Type"] } } }); } @@ -8290,9 +8290,9 @@ export const Resource = new Resource$Type(); class ElementByMatchQuery$Type extends MessageType { constructor() { super("api.ElementByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } }, { no: 5, name: "UsageContextPath", kind: "scalar", localName: "UsageContextPath", jsonName: "UsageContextPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Path of restriction rule to apply (UsageContextEntity should be defined)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); @@ -8414,8 +8414,8 @@ export const ElementByMatchResult = new ElementByMatchResult$Type(); class MatchElementField$Type extends MessageType { constructor() { super("api.MatchElementField", [ - { no: 1, name: "Match", kind: "scalar", localName: "Match", jsonName: "Match", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value required for the search", example: "\"ObjectID\"" } } }, - { no: 2, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } } + { no: 1, name: "Match", kind: "scalar", localName: "Match", jsonName: "Match", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value required for the search", example: "\"ObjectID\"" } } }, + { no: 2, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } } ]); } create(value?: PartialMessage): MatchElementField { @@ -8533,7 +8533,7 @@ class LabelByLanguage$Type extends MessageType { constructor() { super("api.LabelByLanguage", [ { no: 1, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } } + { no: 2, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } } ]); } create(value?: PartialMessage): LabelByLanguage { @@ -8587,7 +8587,7 @@ export const LabelByLanguage = new LabelByLanguage$Type(); class FileDataRequest$Type extends MessageType { constructor() { super("api.FileDataRequest", [ - { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Content", kind: "scalar", localName: "Content", jsonName: "Content", T: 12 /*ScalarType.BYTES*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Name"] } } }); } @@ -9077,7 +9077,7 @@ class CrossFindElementByMatchQuery$Type extends MessageType QueryBasicHeader }, { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } }, + { no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } }, { no: 5, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); diff --git a/site.ts b/site.ts index bc82372e..4f0fbc07 100644 --- a/site.ts +++ b/site.ts @@ -155,7 +155,7 @@ export interface Site { DefaultSiteLanguageISO6391: string; // SiteStatusEnum status = 22 // [ - // (validate.rules).enum.defined_only = true + // (n1validate.rules).enum.defined_only = true // ]; /** @@ -1440,9 +1440,9 @@ export interface InitBookerProfileResponse { class Site$Type extends MessageType { constructor() { super("api.Site", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ }, { 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 }, @@ -1450,17 +1450,17 @@ class Site$Type extends MessageType { { 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" } } } }, + { no: 11, name: "Units", kind: "message", localName: "Units", jsonName: "Units", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Unit, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 12, name: "OpeningRules", kind: "message", localName: "OpeningRules", jsonName: "OpeningRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningRule }, { no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule }, { no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule }, { no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction }, { no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document }, { no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/ }, - { 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 format", 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\"]" } } }, - { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, - { no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5" } } } }, + { no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone format", example: "\"Europe/Paris\"" } } }, + { no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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\"]" } } }, + { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, + { no: 23, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "5" } } } }, { no: 24, name: "StandAloneConf", kind: "message", localName: "StandAloneConf", jsonName: "StandAloneConf", T: () => StandAloneConf } ]); } @@ -1652,10 +1652,10 @@ export const Site = new Site$Type(); class CreateSettingsRequest$Type extends MessageType { constructor() { super("api.CreateSettingsRequest", [ - { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", email: true } } } } + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Email", kind: "scalar", localName: "Email", jsonName: "Email", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", email: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID", "Email", "SiteName"] } } }); } create(value?: PartialMessage): CreateSettingsRequest { @@ -1769,7 +1769,7 @@ export const CreateSettingsResponse = new CreateSettingsResponse$Type(); class GetSettingsRequest$Type extends MessageType { constructor() { super("api.GetSettingsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): GetSettingsRequest { @@ -1853,7 +1853,7 @@ export const ListSettingsRequest = new ListSettingsRequest$Type(); class GetSettingsResponse$Type extends MessageType { constructor() { super("api.GetSettingsResponse", [ - { no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): GetSettingsResponse { @@ -2033,8 +2033,8 @@ export const ListSettingsResponse = new ListSettingsResponse$Type(); class UpdateSettingsRequest$Type extends MessageType { constructor() { super("api.UpdateSettingsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ }, { 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\"]" } } }, @@ -2046,11 +2046,11 @@ class UpdateSettingsRequest$Type extends MessageType { { no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule }, { no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule }, { no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction }, - { no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { gt: 0 } } } }, - { 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 format", 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\"]" } } }, - { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, - { no: 22, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "5", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, + { no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "n1validate.rules": { uint32: { gt: 0 } } } }, + { no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone format", example: "\"Europe/Paris\"" } } }, + { no: 20, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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\"]" } } }, + { no: 21, name: "DefaultSiteLanguageISO6391", kind: "scalar", localName: "DefaultSiteLanguageISO6391", jsonName: "DefaultSiteLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, + { no: 22, name: "PrefixAppointmentID", kind: "scalar", localName: "PrefixAppointmentID", jsonName: "PrefixAppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "5", pattern: "^[a-zA-Z0-9-]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, { no: 23, name: "StandAloneConf", kind: "message", localName: "StandAloneConf", jsonName: "StandAloneConf", T: () => StandAloneConf } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } @@ -2220,7 +2220,7 @@ export const UpdateSettingsRequest = new UpdateSettingsRequest$Type(); class UpdateSettingsResponse$Type extends MessageType { constructor() { super("api.UpdateSettingsResponse", [ - { no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Site", kind: "message", localName: "Site", jsonName: "Site", T: () => Site, options: { "n1validate.rules": { message: { required: true } } } } ]); } create(value?: PartialMessage): UpdateSettingsResponse { @@ -2266,8 +2266,8 @@ export const UpdateSettingsResponse = new UpdateSettingsResponse$Type(); class UploadPhotoRequest$Type extends MessageType { constructor() { super("api.UploadPhotoRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File"] } } }); } create(value?: PartialMessage): UploadPhotoRequest { @@ -2366,7 +2366,7 @@ export const UploadPhotoResponse = new UploadPhotoResponse$Type(); class DeletePhotoRequest$Type extends MessageType { constructor() { super("api.DeletePhotoRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): DeletePhotoRequest { @@ -2450,10 +2450,10 @@ export const DeletePhotoResponse = new DeletePhotoResponse$Type(); class UploadInstructionDocumentRequest$Type extends MessageType { constructor() { super("api.UploadInstructionDocumentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest }, - { no: 3, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, + { no: 3, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, { no: 5, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "AckRequired", kind: "scalar", localName: "AckRequired", jsonName: "AckRequired", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID", "LanguageCodeISO6391"] } } }); @@ -2582,8 +2582,8 @@ export const UploadInstructionDocumentResponse = new UploadInstructionDocumentRe class DeleteInstructionDocumentRequest$Type extends MessageType { constructor() { super("api.DeleteInstructionDocumentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language. It can be omitted in order to delete all the documents per language", example: "\"en\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID"] } } }); } @@ -2682,12 +2682,12 @@ export const DeleteInstructionDocumentResponse = new DeleteInstructionDocumentRe class GetAvailableSlotsRequest$Type extends MessageType { constructor() { super("api.GetAvailableSlotsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }, { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", 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])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { 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_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } }, + { no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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_field": { 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: { "n1validate.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_field": { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } }, { no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 9, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, @@ -2910,8 +2910,8 @@ export const GetAllSlotsResponse = new GetAllSlotsResponse$Type(); class CheckAppointmentCommissionRequest$Type extends MessageType { constructor() { super("api.CheckAppointmentCommissionRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "Commission", kind: "message", localName: "Commission", jsonName: "Commission", T: () => Commission }, { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "AppointmentCommission", kind: "message", localName: "AppointmentCommission", jsonName: "AppointmentCommission", T: () => AppointmentCommission } @@ -3095,14 +3095,14 @@ export const StandAloneConf = new StandAloneConf$Type(); class BookAppointmentRequest$Type extends MessageType { constructor() { super("api.BookAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, { no: 14, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, - { no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, - { 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\"]" } } }, - { no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, + { no: 6, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, + { no: 8, 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: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, { no: 12, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }, { 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" } }, @@ -3245,7 +3245,7 @@ export const BookAppointmentRequest = new BookAppointmentRequest$Type(); class GetBookingContextRequest$Type extends MessageType { constructor() { super("api.GetBookingContextRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): GetBookingContextRequest { @@ -3557,8 +3557,8 @@ export const BookAppointmentResponse = new BookAppointmentResponse$Type(); class CancelAppointmentRequest$Type extends MessageType { constructor() { 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: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, { 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"] } } }); @@ -3681,8 +3681,8 @@ export const CancelAppointmentResponse = new CancelAppointmentResponse$Type(); class RescheduleAppointmentRequest$Type extends MessageType { constructor() { super("api.RescheduleAppointmentRequest", [ - { 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: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }, { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } }); @@ -3751,12 +3751,12 @@ export const RescheduleAppointmentRequest = new RescheduleAppointmentRequest$Typ class UpdateAppointmentRequest$Type extends MessageType { constructor() { super("api.UpdateAppointmentRequest", [ - { 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: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, - { no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, + { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, + { no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, { 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: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, + { no: 6, 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": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, { 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: 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." } } } @@ -3861,9 +3861,9 @@ export const UpdateAppointmentRequest = new UpdateAppointmentRequest$Type(); class WMSUpdateAppointmentRequest$Type extends MessageType { constructor() { super("api.WMSUpdateAppointmentRequest", [ - { 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: { "validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, - { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } }, + { no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots" } } }, { no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WMSCommission, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project" } } }, { no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { 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 update appointment without order reference" } } }, @@ -3963,7 +3963,7 @@ export const WMSUpdateAppointmentRequest = new WMSUpdateAppointmentRequest$Type( class DeleteSettingsRequest$Type extends MessageType { constructor() { super("api.DeleteSettingsRequest", [ - { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } }); } create(value?: PartialMessage): DeleteSettingsRequest { @@ -4048,7 +4048,7 @@ export const DeleteSettingsResult = new DeleteSettingsResult$Type(); class ResolveSiteRequest$Type extends MessageType { constructor() { super("api.ResolveSiteRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } @@ -4388,7 +4388,7 @@ export const ListOfSitesPerOrganisation = new ListOfSitesPerOrganisation$Type(); class ListSitesAuthorizedForBookingRequest$Type extends MessageType { constructor() { super("api.ListSitesAuthorizedForBookingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListSitesAuthorizedForBookingRequest { @@ -4546,7 +4546,7 @@ export const SiteDescription = new SiteDescription$Type(); class ListAllowedSitesRequest$Type extends MessageType { constructor() { super("api.ListAllowedSitesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListAllowedSitesRequest { @@ -4639,8 +4639,8 @@ export const ListAllowedSitesResponse = new ListAllowedSitesResponse$Type(); class GetActorAuthorisationRequest$Type extends MessageType { constructor() { super("api.GetActorAuthorisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "SiteID"] } } }); } create(value?: PartialMessage): GetActorAuthorisationRequest { @@ -4739,7 +4739,7 @@ export const GetActorAuthorisationResponse = new GetActorAuthorisationResponse$T class GetBasicSettingsRequest$Type extends MessageType { constructor() { super("api.GetBasicSettingsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -4903,7 +4903,7 @@ export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type(); class GetUnitsRequest$Type extends MessageType { constructor() { super("api.GetUnitsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -5004,7 +5004,7 @@ export const GetUnitsResponse = new GetUnitsResponse$Type(); class GetBookingSegmentationsRequest$Type extends MessageType { constructor() { super("api.GetBookingSegmentationsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] }, { no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }, @@ -5543,8 +5543,8 @@ export const SiteProjectAptTypeBookingActorsContext = new SiteProjectAptTypeBook class InitBookerProfileRequest$Type extends MessageType { constructor() { super("api.InitBookerProfileRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "ActorID"] } } }); } create(value?: PartialMessage): InitBookerProfileRequest { diff --git a/siteBooking.ts b/siteBooking.ts index 665bb1b0..ee64bd45 100644 --- a/siteBooking.ts +++ b/siteBooking.ts @@ -464,12 +464,12 @@ export interface LockBookingResponse { class GetBookingSlotsRequest$Type extends MessageType { constructor() { super("api.GetBookingSlotsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, { no: 14, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } }, - { 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])$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, - { 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_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, + { no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, + { no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.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_field": { pattern: "^[a-zA-Z0-9-]+$" } } }, { no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, 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 }, @@ -643,9 +643,9 @@ export const GetBookingSlotsResponse = new GetBookingSlotsResponse$Type(); class BookBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.BookBookingAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => BookAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => BookAppointmentPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): BookBookingAppointmentRequest { @@ -703,7 +703,7 @@ export const BookBookingAppointmentRequest = new BookBookingAppointmentRequest$T class BookAppointmentPayload$Type extends MessageType { constructor() { super("api.BookAppointmentPayload", [ - { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 2, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection }, { no: 14, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 3, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, @@ -714,7 +714,7 @@ class BookAppointmentPayload$Type extends MessageType { { 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: { "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\"]" } } } + { 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 { @@ -897,8 +897,8 @@ export const BookBookingAppointmentResponse = new BookBookingAppointmentResponse class CancelBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.CancelBookingAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): CancelBookingAppointmentRequest { @@ -1004,8 +1004,8 @@ export const CancelBookingAppointmentResponse = new CancelBookingAppointmentResp class DeleteBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.DeleteBookingAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): DeleteBookingAppointmentRequest { @@ -1111,9 +1111,9 @@ export const DeleteBookingAppointmentResponse = new DeleteBookingAppointmentResp class RescheduleBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.RescheduleBookingAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => RescheduleAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => RescheduleAppointmentPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): RescheduleBookingAppointmentRequest { @@ -1217,9 +1217,9 @@ export const RescheduleAppointmentPayload = new RescheduleAppointmentPayload$Typ class UpdateBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.UpdateBookingAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => UpdateAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => UpdateAppointmentPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): UpdateBookingAppointmentRequest { @@ -1282,7 +1282,7 @@ class UpdateAppointmentPayload$Type extends MessageType AppointmentContent }, { no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, - { 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\"]" } } } + { no: 8, 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: { required: ["Slot", "Attendees"] } } }); } create(value?: PartialMessage): UpdateAppointmentPayload { @@ -1361,9 +1361,9 @@ export const UpdateAppointmentPayload = new UpdateAppointmentPayload$Type(); class WMSUpdateBookingAppointmentRequest$Type extends MessageType { constructor() { super("api.WMSUpdateBookingAppointmentRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => WMSUpdateAppointmentPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => WMSUpdateAppointmentPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): WMSUpdateBookingAppointmentRequest { @@ -1497,8 +1497,8 @@ export const WMSUpdateAppointmentPayload = new WMSUpdateAppointmentPayload$Type( class CheckBookingAppointmentEditableRequest$Type extends MessageType { constructor() { super("api.CheckBookingAppointmentEditableRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): CheckBookingAppointmentEditableRequest { @@ -1613,8 +1613,8 @@ export const CheckBookingAppointmentEditableResponse = new CheckBookingAppointme class LockBookingRequest$Type extends MessageType { constructor() { super("api.LockBookingRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "AppointmentID"] } } }); } create(value?: PartialMessage): LockBookingRequest { diff --git a/slotbooking.ts b/slotbooking.ts index f2e71a7e..0829cd0f 100644 --- a/slotbooking.ts +++ b/slotbooking.ts @@ -949,7 +949,7 @@ class QuantityByUnit$Type extends MessageType { constructor() { super("api.QuantityByUnit", [ { no: 1, name: "UnitID", kind: "scalar", localName: "UnitID", jsonName: "UnitID", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { gte: 0 } }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] } } } + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 1 /*ScalarType.DOUBLE*/, options: { "n1validate.rules": { double: { gte: 0 } }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true }] } } } ]); } create(value?: PartialMessage): QuantityByUnit { @@ -1003,7 +1003,7 @@ export const QuantityByUnit = new QuantityByUnit$Type(); class Slot$Type extends MessageType { constructor() { super("api.Slot", [ - { no: 1, name: "StartDateTime", kind: "scalar", localName: "StartDateTime", jsonName: "StartDateTime", 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])T[01][0-9]|2[0-3]:[0-5][0-9]:[0-5][0-9]$" } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true, DataType: "localdate" }] }, "api.viewType": { Types: [{ Context: "*", Type: "localdate" }] } } }, + { no: 1, name: "StartDateTime", kind: "scalar", localName: "StartDateTime", jsonName: "StartDateTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T[01][0-9]|2[0-3]:[0-5][0-9]:[0-5][0-9]$" } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true, DataType: "localdate" }] }, "api.viewType": { Types: [{ Context: "*", Type: "localdate" }] } } }, { no: 3, name: "DurationInSeconds", kind: "scalar", localName: "DurationInSeconds", jsonName: "DurationInSeconds", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/, options: { "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true, CustomType: "UInt64" }] } } }, { no: 4, name: "EndDateTime", kind: "scalar", localName: "EndDateTime", jsonName: "EndDateTime", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Appointment", Group: "appointment", Queryable: true, DataType: "localdate" }] }, "api.viewType": { Types: [{ Context: "*", Type: "localdate" }] } } } ]); @@ -1066,7 +1066,7 @@ export const Slot = new Slot$Type(); class Segmentation$Type extends MessageType { constructor() { super("api.Segmentation", [ - { no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, + { no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, { no: 2, name: "SegmentationLabels", kind: "message", localName: "SegmentationLabels", jsonName: "SegmentationLabels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } }, { no: 3, name: "Values", kind: "message", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationValue } ]); @@ -1129,7 +1129,7 @@ export const Segmentation = new Segmentation$Type(); class SegmentationValue$Type extends MessageType { constructor() { super("api.SegmentationValue", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, { no: 2, name: "Labels", kind: "message", localName: "Labels", jsonName: "Labels", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LabelByLanguage, options: { "api.language": true, "api.aggKey": "LanguageCodeISO6391" } } ]); } @@ -1239,8 +1239,8 @@ export const Instruction = new Instruction$Type(); class OpeningRule$Type extends MessageType { constructor() { super("api.OpeningRule", [ - { no: 1, 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: 2, 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])$" } } } }, + { no: 1, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }, + { no: 2, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }, { no: 3, name: "OpeningDays", kind: "message", localName: "OpeningDays", jsonName: "OpeningDays", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OpeningDay, options: { "api.aggKey": "WeekDay" } }, { no: 4, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/ } @@ -1443,8 +1443,8 @@ export const OpeningDayDefinition = new OpeningDayDefinition$Type(); class CapacityRule$Type extends MessageType { constructor() { super("api.CapacityRule", [ - { no: 1, 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: 2, 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])$" } } } }, + { no: 1, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }, + { no: 2, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } }, { no: 5, name: "Label", kind: "scalar", localName: "Label", jsonName: "Label", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "Days", kind: "enum", localName: "Days", jsonName: "Days", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.WeekDay", WeekDay] }, { no: 4, name: "Capacities", kind: "message", localName: "Capacities", jsonName: "Capacities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityDefinition } @@ -1962,10 +1962,10 @@ class DocumentByLanguage$Type extends MessageType { constructor() { super("api.DocumentByLanguage", [ { no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI of the document" } } }, - { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, + { no: 4, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "URI of the document" } } }, + { no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" } } }, { no: 5, name: "FileName", kind: "scalar", localName: "FileName", jsonName: "FileName", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "LongURI", kind: "scalar", localName: "LongURI", jsonName: "LongURI", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Long URI of the document containing the file name in order to display the file name in a tab browser" } } } + { no: 6, name: "LongURI", kind: "scalar", localName: "LongURI", jsonName: "LongURI", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Long URI of the document containing the file name in order to display the file name in a tab browser" } } } ]); } create(value?: PartialMessage): DocumentByLanguage { @@ -2285,7 +2285,7 @@ export const ActorConstraint = new ActorConstraint$Type(); class SegmentationActorConstraint$Type extends MessageType { constructor() { super("api.SegmentationActorConstraint", [ - { no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, + { no: 1, name: "SegmentationID", kind: "scalar", localName: "SegmentationID", jsonName: "SegmentationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } } } }, { no: 2, name: "RestrictedValueIDs", kind: "scalar", localName: "RestrictedValueIDs", jsonName: "RestrictedValueIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.SegmentationConstraintType", SegmentationConstraintType] }, { no: 5, name: "AttributePath", kind: "scalar", localName: "AttributePath", jsonName: "AttributePath", T: 9 /*ScalarType.STRING*/ } @@ -2593,11 +2593,11 @@ export const AppointmentProjectContent = new AppointmentProjectContent$Type(); class Commission$Type extends MessageType { constructor() { super("api.Commission", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }, - { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): Commission { @@ -2672,10 +2672,10 @@ export const Commission = new Commission$Type(); class WMSCommission$Type extends MessageType { constructor() { super("api.WMSCommission", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): WMSCommission { @@ -2877,7 +2877,7 @@ class SlotGroup$Type extends MessageType { constructor() { super("api.SlotGroup", [ { no: 1, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }, - { no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 100, gte: -1 } } } } + { no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "n1validate.rules": { int32: { lte: 100, gte: -1 } } } } ]); } create(value?: PartialMessage): SlotGroup { @@ -2986,7 +2986,7 @@ class BookableSlot$Type extends MessageType { constructor() { super("api.BookableSlot", [ { no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, - { no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 100, gte: -1 } } } }, + { no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "n1validate.rules": { int32: { lte: 100, gte: -1 } } } }, { no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ReasonCode", kind: "enum", localName: "ReasonCode", jsonName: "ReasonCode", T: () => ["api.SlotAvailabilityReasonCode", SlotAvailabilityReasonCode] }, { no: 5, name: "ReachedLimitations", kind: "message", localName: "ReachedLimitations", jsonName: "ReachedLimitations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityDefinition } diff --git a/stock.ts b/stock.ts index 87f2decf..7850943b 100644 --- a/stock.ts +++ b/stock.ts @@ -208,19 +208,19 @@ class StockPayload$Type extends MessageType { super("api.StockPayload", [ { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.entityRef": "Actor", "api.dataRestrictionKey": "Stock", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.extractRefExclude": "Stock" } }, + { no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.extractRefExclude": "Stock" } }, { no: 4, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => StockSnapshot, options: { "api.aggSkip": "Snapshotted", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } }, { no: 5, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "api.aggSkip": "Moved", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } }, - { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => StockStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } }, - { no: 7, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => StockStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } }, + { no: 7, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 8, name: "QuantityByLVs", kind: "message", localName: "QuantityByLVs", jsonName: "QuantityByLVs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID" } }, { no: 9, name: "LVDetailledQuantity", kind: "scalar", localName: "LVDetailledQuantity", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 10, name: "LatestMovements", kind: "message", localName: "LatestMovements", jsonName: "LatestMovements", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StockMovement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] }, "api.indexationSkip": true } }, - { no: 11, name: "RequestedStockValue", kind: "scalar", localName: "RequestedStockValue", jsonName: "RequestedStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } }, - { no: 12, name: "ToReceiveStockValue", kind: "scalar", localName: "ToReceiveStockValue", jsonName: "ToReceiveStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } }, - { no: 13, name: "LastUpdateStockDateTime", kind: "scalar", localName: "LastUpdateStockDateTime", jsonName: "LastUpdateStockDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, - { no: 14, name: "LastUpdateRequestedDateTime", kind: "scalar", localName: "LastUpdateRequestedDateTime", jsonName: "LastUpdateRequestedDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, - { no: 15, name: "LastUpdateToReceiveDateTime", kind: "scalar", localName: "LastUpdateToReceiveDateTime", jsonName: "LastUpdateToReceiveDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } } + { no: 11, name: "RequestedStockValue", kind: "scalar", localName: "RequestedStockValue", jsonName: "RequestedStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "n1validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } }, + { no: 12, name: "ToReceiveStockValue", kind: "scalar", localName: "ToReceiveStockValue", jsonName: "ToReceiveStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "n1validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } }, + { no: 13, name: "LastUpdateStockDateTime", kind: "scalar", localName: "LastUpdateStockDateTime", jsonName: "LastUpdateStockDateTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 14, name: "LastUpdateRequestedDateTime", kind: "scalar", localName: "LastUpdateRequestedDateTime", jsonName: "LastUpdateRequestedDateTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 15, name: "LastUpdateToReceiveDateTime", kind: "scalar", localName: "LastUpdateToReceiveDateTime", jsonName: "LastUpdateToReceiveDateTime", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } } ]); } create(value?: PartialMessage): StockPayload { diff --git a/stockInput.ts b/stockInput.ts index 4d3ed5b5..dea7d4fd 100644 --- a/stockInput.ts +++ b/stockInput.ts @@ -390,10 +390,10 @@ export interface StockCustomFieldsUpdatedResponse { class StockMovedPayload$Type extends MessageType { constructor() { super("api.StockMovedPayload", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Actor" } }, { no: 7, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 8, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "validate.rules": { message: { required: true } } } } + { no: 8, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Update the goods stock counter with the provided goods quantity", required: ["Goods", "ActorID", "Movement"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Moved", "api.postAggMethods": "computeMovementQuantity,quantityByBranchLVs", "api.preAggMethods": "filterMovement,stackMovement", "api.idGenMethod": "genStockMovedId" }); } create(value?: PartialMessage): StockMovedPayload { @@ -458,9 +458,9 @@ export const StockMovedPayload = new StockMovedPayload$Type(); class StockMovedEvent$Type extends MessageType { constructor() { super("api.StockMovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockMovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockMovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Moved" }); } create(value?: PartialMessage): StockMovedEvent { @@ -518,9 +518,9 @@ export const StockMovedEvent = new StockMovedEvent$Type(); class StockMovedRequest$Type extends MessageType { constructor() { super("api.StockMovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, { no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockMovedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockMovedPayload, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Moved" }); } create(value?: PartialMessage): StockMovedRequest { @@ -631,10 +631,10 @@ export const StockMovedResponse = new StockMovedResponse$Type(); class StockSnapshottedPayload$Type extends MessageType { constructor() { super("api.StockSnapshottedPayload", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Description of the goods" } } }, - { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the actor where the stock is located" }, "api.entityRef": "Actor" } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Description of the goods" } } }, + { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the actor where the stock is located" }, "api.entityRef": "Actor" } }, { no: 7, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 8, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => StockSnapshot, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Description of the snapshot" } } } + { no: 8, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => StockSnapshot, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Description of the snapshot" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "The measured stock quantity at the given date time", required: ["Goods", "ActorID", "Snapshot"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Snapshotted", "api.postAggMethods": "computeSnapshotQuantity,quantityByBranchLVs", "api.preAggMethods": "cumulateSnapshotQuantity", "api.idGenMethod": "genStockSnapshottedId" }); } create(value?: PartialMessage): StockSnapshottedPayload { @@ -699,9 +699,9 @@ export const StockSnapshottedPayload = new StockSnapshottedPayload$Type(); class StockSnapshottedEvent$Type extends MessageType { constructor() { super("api.StockSnapshottedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSnapshottedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSnapshottedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Snapshotted" }); } create(value?: PartialMessage): StockSnapshottedEvent { @@ -759,9 +759,9 @@ export const StockSnapshottedEvent = new StockSnapshottedEvent$Type(); class StockSnapshottedRequest$Type extends MessageType { constructor() { super("api.StockSnapshottedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, { no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSnapshottedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSnapshottedPayload, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Snapshotted" }); } create(value?: PartialMessage): StockSnapshottedRequest { @@ -872,8 +872,8 @@ export const StockSnapshottedResponse = new StockSnapshottedResponse$Type(); class StockDeletedPayload$Type extends MessageType { constructor() { super("api.StockDeletedPayload", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Description of the goods" } } }, - { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the actor where the stock is located" }, "api.entityRef": "Actor" } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Description of the goods" } } }, + { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the actor where the stock is located" }, "api.entityRef": "Actor" } }, { no: 7, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "The stock entry has been deleted", required: ["Goods", "ActorID"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Deleted", "api.idGenMethod": "genStockDeletedId" }); } @@ -933,9 +933,9 @@ export const StockDeletedPayload = new StockDeletedPayload$Type(); class StockDeletedEvent$Type extends MessageType { constructor() { super("api.StockDeletedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockDeletedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockDeletedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Deleted" }); } create(value?: PartialMessage): StockDeletedEvent { @@ -993,9 +993,9 @@ export const StockDeletedEvent = new StockDeletedEvent$Type(); class StockDeletedRequest$Type extends MessageType { constructor() { super("api.StockDeletedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Header of the event request" } } }, { no: 4, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => NoID }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockDeletedPayload, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockDeletedPayload, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the event request" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Deleted" }); } create(value?: PartialMessage): StockDeletedRequest { @@ -1144,9 +1144,9 @@ export const StockSanitisedPayload = new StockSanitisedPayload$Type(); class StockSanitisedEvent$Type extends MessageType { constructor() { super("api.StockSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): StockSanitisedEvent { @@ -1204,9 +1204,9 @@ export const StockSanitisedEvent = new StockSanitisedEvent$Type(); class StockSanitisedRequest$Type extends MessageType { constructor() { super("api.StockSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): StockSanitisedRequest { @@ -1355,9 +1355,9 @@ export const StockCustomFieldsUpdatedPayload = new StockCustomFieldsUpdatedPaylo class StockCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.StockCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): StockCustomFieldsUpdatedEvent { @@ -1415,9 +1415,9 @@ export const StockCustomFieldsUpdatedEvent = new StockCustomFieldsUpdatedEvent$T class StockCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.StockCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => StockCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): StockCustomFieldsUpdatedRequest { diff --git a/stockQuery.ts b/stockQuery.ts index bdd7d3da..db6dc50f 100644 --- a/stockQuery.ts +++ b/stockQuery.ts @@ -174,8 +174,8 @@ export interface StockByMatchResult { class StockByIdQuery$Type extends MessageType { constructor() { super("api.StockByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } @@ -289,7 +289,7 @@ export const StockByIdResult = new StockByIdResult$Type(); class StockByFilterQuery$Type extends MessageType { constructor() { super("api.StockByFilterQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, @@ -491,7 +491,7 @@ export const StockQueryOptions = new StockQueryOptions$Type(); class StockByMatchQuery$Type extends MessageType { constructor() { super("api.StockByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }, { no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions }, diff --git a/tiny-url.ts b/tiny-url.ts index 47b6479b..1df3d101 100644 --- a/tiny-url.ts +++ b/tiny-url.ts @@ -737,16 +737,16 @@ export const TinyURLKindDetails = new TinyURLKindDetails$Type(); class TinyURL$Type extends MessageType { constructor() { super("api.TinyURL", [ - { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.TinyURLKind", TinyURLKind], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Kind of the tiny url (file, payload or url)." } } }, - { no: 3, name: "Details", kind: "message", localName: "Details", jsonName: "Details", T: () => TinyURLKindDetails, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contains data specific to the selected tiny url kind." } } }, - { no: 4, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Shortened URL used to retrieve the original data." } } }, - { no: 5, name: "MIMEType", kind: "scalar", localName: "MIMEType", jsonName: "MIMEType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.TinyURLKind", TinyURLKind], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Kind of the tiny url (file, payload or url)." } } }, + { no: 3, name: "Details", kind: "message", localName: "Details", jsonName: "Details", T: () => TinyURLKindDetails, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contains data specific to the selected tiny url kind." } } }, + { no: 4, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Shortened URL used to retrieve the original data." } } }, + { no: 5, name: "MIMEType", kind: "scalar", localName: "MIMEType", jsonName: "MIMEType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 6, name: "Size", kind: "scalar", localName: "Size", jsonName: "Size", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }, - { no: 7, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 8, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 9, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, - { no: 10, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, + { no: 7, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 8, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 9, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 10, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, { no: 11, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 12, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ } ]); @@ -871,12 +871,12 @@ export const TinyURL = new TinyURL$Type(); class OrganisationShortenURLRequest$Type extends MessageType { constructor() { super("api.OrganisationShortenURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "URL", "TimeToLive"] } } }); } create(value?: PartialMessage): OrganisationShortenURLRequest { @@ -1003,12 +1003,12 @@ export const OrganisationShortenURLResponse = new OrganisationShortenURLResponse class ProjectShortenURLRequest$Type extends MessageType { constructor() { super("api.ProjectShortenURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "URL", "TimeToLive"] } } }); } create(value?: PartialMessage): ProjectShortenURLRequest { @@ -1135,12 +1135,12 @@ export const ProjectShortenURLResponse = new ProjectShortenURLResponse$Type(); class PartnerAppShortenURLRequest$Type extends MessageType { constructor() { super("api.PartnerAppShortenURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "URL", "TimeToLive"] } } }); } create(value?: PartialMessage): PartnerAppShortenURLRequest { @@ -1267,12 +1267,12 @@ export const PartnerAppShortenURLResponse = new PartnerAppShortenURLResponse$Typ class OrganisationUploadFileRequest$Type extends MessageType { constructor() { super("api.OrganisationUploadFileRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } }); } create(value?: PartialMessage): OrganisationUploadFileRequest { @@ -1398,12 +1398,12 @@ export const OrganisationUploadFileResponse = new OrganisationUploadFileResponse class ProjectUploadFileRequest$Type extends MessageType { constructor() { super("api.ProjectUploadFileRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } }); } create(value?: PartialMessage): ProjectUploadFileRequest { @@ -1529,12 +1529,12 @@ export const ProjectUploadFileResponse = new ProjectUploadFileResponse$Type(); class PartnerAppUploadFileRequest$Type extends MessageType { constructor() { super("api.PartnerAppUploadFileRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } }); } create(value?: PartialMessage): PartnerAppUploadFileRequest { @@ -1660,12 +1660,12 @@ export const PartnerAppUploadFileResponse = new PartnerAppUploadFileResponse$Typ class OrganisationUploadPayloadRequest$Type extends MessageType { constructor() { super("api.OrganisationUploadPayloadRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload", "TimeToLive"] } } }); } create(value?: PartialMessage): OrganisationUploadPayloadRequest { @@ -1792,12 +1792,12 @@ export const OrganisationUploadPayloadResponse = new OrganisationUploadPayloadRe class ProjectUploadPayloadRequest$Type extends MessageType { constructor() { super("api.ProjectUploadPayloadRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload", "TimeToLive"] } } }); } create(value?: PartialMessage): ProjectUploadPayloadRequest { @@ -1924,12 +1924,12 @@ export const ProjectUploadPayloadResponse = new ProjectUploadPayloadResponse$Typ class PartnerAppUploadPayloadRequest$Type extends MessageType { constructor() { super("api.PartnerAppUploadPayloadRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, - { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." } } }, + { no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "n1validate.rules": { int64: { lte: "1500000000" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." } } }, { no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } + { no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated", pattern: "^[a-zA-Z0-9-]*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload", "TimeToLive"] } } }); } create(value?: PartialMessage): PartnerAppUploadPayloadRequest { @@ -2056,7 +2056,7 @@ export const PartnerAppUploadPayloadResponse = new PartnerAppUploadPayloadRespon class OrganisationListTinyURLsRequest$Type extends MessageType { constructor() { super("api.OrganisationListTinyURLsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): OrganisationListTinyURLsRequest { @@ -2149,7 +2149,7 @@ export const OrganisationListTinyURLsResponse = new OrganisationListTinyURLsResp class ProjectListTinyURLsRequest$Type extends MessageType { constructor() { super("api.ProjectListTinyURLsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ProjectListTinyURLsRequest { @@ -2242,7 +2242,7 @@ export const ProjectListTinyURLsResponse = new ProjectListTinyURLsResponse$Type( class PartnerAppListTinyURLsRequest$Type extends MessageType { constructor() { super("api.PartnerAppListTinyURLsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): PartnerAppListTinyURLsRequest { @@ -2335,8 +2335,8 @@ export const PartnerAppListTinyURLsResponse = new PartnerAppListTinyURLsResponse class OrganisationDeleteTinyURLRequest$Type extends MessageType { constructor() { super("api.OrganisationDeleteTinyURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): OrganisationDeleteTinyURLRequest { @@ -2427,8 +2427,8 @@ export const OrganisationDeleteTinyURLResponse = new OrganisationDeleteTinyURLRe class ProjectDeleteTinyURLRequest$Type extends MessageType { constructor() { super("api.ProjectDeleteTinyURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): ProjectDeleteTinyURLRequest { @@ -2519,8 +2519,8 @@ export const ProjectDeleteTinyURLResponse = new ProjectDeleteTinyURLResponse$Typ class PartnerAppDeleteTinyURLRequest$Type extends MessageType { constructor() { super("api.PartnerAppDeleteTinyURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): PartnerAppDeleteTinyURLRequest { @@ -2611,8 +2611,8 @@ export const PartnerAppDeleteTinyURLResponse = new PartnerAppDeleteTinyURLRespon class OrganisationGetTinyURLRequest$Type extends MessageType { constructor() { super("api.OrganisationGetTinyURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): OrganisationGetTinyURLRequest { @@ -2735,8 +2735,8 @@ export const OrganisationGetTinyURLResponse = new OrganisationGetTinyURLResponse class ProjectGetTinyURLRequest$Type extends MessageType { constructor() { super("api.ProjectGetTinyURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): ProjectGetTinyURLRequest { @@ -2859,8 +2859,8 @@ export const ProjectGetTinyURLResponse = new ProjectGetTinyURLResponse$Type(); class PartnerAppGetTinyURLRequest$Type extends MessageType { constructor() { super("api.PartnerAppGetTinyURLRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } }); } create(value?: PartialMessage): PartnerAppGetTinyURLRequest { @@ -2983,8 +2983,8 @@ export const PartnerAppGetTinyURLResponse = new PartnerAppGetTinyURLResponse$Typ class DeleteAllTinyURLsRequest$Type extends MessageType { constructor() { super("api.DeleteAllTinyURLsRequest", [ - { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceType", "ResourceRefID"] } } }); } create(value?: PartialMessage): DeleteAllTinyURLsRequest { diff --git a/tracking.ts b/tracking.ts index 825cd6ce..90b3cc29 100644 --- a/tracking.ts +++ b/tracking.ts @@ -205,7 +205,7 @@ class TrackingPayload$Type extends MessageType { { no: 3, name: "Events", kind: "message", localName: "Events", jsonName: "Events", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TrackingEvent, options: { "api.aggAppend": "Notified" } }, { no: 4, name: "NextTrackingID", kind: "scalar", localName: "NextTrackingID", jsonName: "NextTrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 5, name: "NextTrackingURL", kind: "scalar", localName: "NextTrackingURL", jsonName: "NextTrackingURL", T: 9 /*ScalarType.STRING*/ }, - { no: 7, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => TrackingStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 7, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => TrackingStatusStruct, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 8, name: "DispatchedDateTime", kind: "message", localName: "DispatchedDateTime", jsonName: "DispatchedDateTime", T: () => DateTime }, { no: 9, name: "HUCarrier", kind: "message", localName: "HUCarrier", jsonName: "HUCarrier", T: () => TradeTier }, { no: 10, name: "HUShipFrom", kind: "message", localName: "HUShipFrom", jsonName: "HUShipFrom", T: () => TradeTier }, diff --git a/trackingInput.ts b/trackingInput.ts index b4d7f45c..22e82587 100644 --- a/trackingInput.ts +++ b/trackingInput.ts @@ -752,7 +752,7 @@ export interface TrackingCustomFieldsUpdatedResponse { class TrackingNotifiedPayload$Type extends MessageType { constructor() { super("api.TrackingNotifiedPayload", [ - { no: 1, name: "Events", kind: "message", localName: "Events", jsonName: "Events", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TrackingEvent, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Notified events on the tracking" } } } + { no: 1, name: "Events", kind: "message", localName: "Events", jsonName: "Events", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TrackingEvent, options: { "n1validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Notified events on the tracking" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Events"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Notified" }); } create(value?: PartialMessage): TrackingNotifiedPayload { @@ -799,9 +799,9 @@ export const TrackingNotifiedPayload = new TrackingNotifiedPayload$Type(); class TrackingNotifiedEvent$Type extends MessageType { constructor() { super("api.TrackingNotifiedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingNotifiedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingNotifiedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Notified" }); } create(value?: PartialMessage): TrackingNotifiedEvent { @@ -859,9 +859,9 @@ export const TrackingNotifiedEvent = new TrackingNotifiedEvent$Type(); class TrackingNotifiedRequest$Type extends MessageType { constructor() { super("api.TrackingNotifiedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingNotifiedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingNotifiedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["HandlingunitID", "DispatchedDateTime"] } }, "api.messageType": "Request", "api.inputEvent": "Notified" }); } create(value?: PartialMessage): TrackingNotifiedRequest { @@ -972,9 +972,9 @@ export const TrackingNotifiedResponse = new TrackingNotifiedResponse$Type(); class TrackingDispatchedPayload$Type extends MessageType { constructor() { super("api.TrackingDispatchedPayload", [ - { no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The Handling unit ID which is tracked" } } }, + { no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The Handling unit ID which is tracked" } } }, { no: 2, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The tracking URL" } } }, - { no: 5, name: "DispatchedDateTime", kind: "message", localName: "DispatchedDateTime", jsonName: "DispatchedDateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This date will be applied to the stock move. it should be the same as the date in the header" } } }, + { no: 5, name: "DispatchedDateTime", kind: "message", localName: "DispatchedDateTime", jsonName: "DispatchedDateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "This date will be applied to the stock move. it should be the same as the date in the header" } } }, { no: 6, name: "HUCarrier", kind: "message", localName: "HUCarrier", jsonName: "HUCarrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The carrier which tracks the Handling unit" } } }, { no: 7, name: "HUShipFrom", kind: "message", localName: "HUShipFrom", jsonName: "HUShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the Handling unit is shipped from" } } }, { no: 8, name: "HUShipTo", kind: "message", localName: "HUShipTo", jsonName: "HUShipTo", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the Handling unit is shipped to" } } } @@ -1055,9 +1055,9 @@ export const TrackingDispatchedPayload = new TrackingDispatchedPayload$Type(); class TrackingDispatchedEvent$Type extends MessageType { constructor() { super("api.TrackingDispatchedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingDispatchedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingDispatchedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Dispatched", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): TrackingDispatchedEvent { @@ -1115,9 +1115,9 @@ export const TrackingDispatchedEvent = new TrackingDispatchedEvent$Type(); class TrackingDispatchedRequest$Type extends MessageType { constructor() { super("api.TrackingDispatchedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingDispatchedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingDispatchedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Dispatched" }); } create(value?: PartialMessage): TrackingDispatchedRequest { @@ -1228,7 +1228,7 @@ export const TrackingDispatchedResponse = new TrackingDispatchedResponse$Type(); class TrackingHULabeledPayload$Type extends MessageType { constructor() { super("api.TrackingHULabeledPayload", [ - { no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The Handling unit ID which is tracked" } } }, + { no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The Handling unit ID which is tracked" } } }, { no: 2, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The tracking URL" } } }, { no: 6, name: "HUCarrier", kind: "message", localName: "HUCarrier", jsonName: "HUCarrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The carrier which tracks the Handling unit" } } }, { no: 7, name: "HUShipFrom", kind: "message", localName: "HUShipFrom", jsonName: "HUShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the Handling unit is shipped from" } } }, @@ -1304,9 +1304,9 @@ export const TrackingHULabeledPayload = new TrackingHULabeledPayload$Type(); class TrackingHULabeledEvent$Type extends MessageType { constructor() { super("api.TrackingHULabeledEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingHULabeledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingHULabeledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "HULabeled", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): TrackingHULabeledEvent { @@ -1364,9 +1364,9 @@ export const TrackingHULabeledEvent = new TrackingHULabeledEvent$Type(); class TrackingHULabeledRequest$Type extends MessageType { constructor() { super("api.TrackingHULabeledRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingHULabeledPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingHULabeledPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "HULabeled" }); } create(value?: PartialMessage): TrackingHULabeledRequest { @@ -1524,9 +1524,9 @@ export const TrackingURLUpdatedPayload = new TrackingURLUpdatedPayload$Type(); class TrackingURLUpdatedEvent$Type extends MessageType { constructor() { super("api.TrackingURLUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingURLUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingURLUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "URLUpdated" }); } create(value?: PartialMessage): TrackingURLUpdatedEvent { @@ -1584,9 +1584,9 @@ export const TrackingURLUpdatedEvent = new TrackingURLUpdatedEvent$Type(); class TrackingURLUpdatedRequest$Type extends MessageType { constructor() { super("api.TrackingURLUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingURLUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingURLUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "URLUpdated" }); } create(value?: PartialMessage): TrackingURLUpdatedRequest { @@ -1697,7 +1697,7 @@ export const TrackingURLUpdatedResponse = new TrackingURLUpdatedResponse$Type(); class TrackingSwitchedPayload$Type extends MessageType { constructor() { super("api.TrackingSwitchedPayload", [ - { no: 1, name: "NextTrackingID", kind: "scalar", localName: "NextTrackingID", jsonName: "NextTrackingID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The new tracking ID" } } }, + { no: 1, name: "NextTrackingID", kind: "scalar", localName: "NextTrackingID", jsonName: "NextTrackingID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The new tracking ID" } } }, { no: 2, name: "NextTrackingURL", kind: "scalar", localName: "NextTrackingURL", jsonName: "NextTrackingURL", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The new tracking URL" } } }, { no: 3, name: "NextHUCarrier", kind: "message", localName: "NextHUCarrier", jsonName: "NextHUCarrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The new carrier which will track the Handling unit" } } }, { no: 4, name: "NextHUShipFrom", kind: "message", localName: "NextHUShipFrom", jsonName: "NextHUShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the Handling unit will be shipped from" } } }, @@ -1773,9 +1773,9 @@ export const TrackingSwitchedPayload = new TrackingSwitchedPayload$Type(); class TrackingSwitchedEvent$Type extends MessageType { constructor() { super("api.TrackingSwitchedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSwitchedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSwitchedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["HandlingunitID", "DispatchedDateTime"] } }, "api.messageType": "Event", "api.inputEvent": "Switched", "api.preAggMethods": "verifyActorPartner" }); } create(value?: PartialMessage): TrackingSwitchedEvent { @@ -1833,9 +1833,9 @@ export const TrackingSwitchedEvent = new TrackingSwitchedEvent$Type(); class TrackingSwitchedRequest$Type extends MessageType { constructor() { super("api.TrackingSwitchedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSwitchedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSwitchedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["HandlingunitID", "DispatchedDateTime"] } }, "api.messageType": "Request", "api.inputEvent": "Switched" }); } create(value?: PartialMessage): TrackingSwitchedRequest { @@ -1946,7 +1946,7 @@ export const TrackingSwitchedResponse = new TrackingSwitchedResponse$Type(); class TrackingETAUpdatedPayload$Type extends MessageType { constructor() { super("api.TrackingETAUpdatedPayload", [ - { no: 1, name: "TrackingETA", kind: "message", localName: "TrackingETA", jsonName: "TrackingETA", T: () => ETA, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The ETA for the tracked HU" } } } + { no: 1, name: "TrackingETA", kind: "message", localName: "TrackingETA", jsonName: "TrackingETA", T: () => ETA, options: { "n1validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The ETA for the tracked HU" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TrackingETA"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ETAUpdated" }); } create(value?: PartialMessage): TrackingETAUpdatedPayload { @@ -1992,9 +1992,9 @@ export const TrackingETAUpdatedPayload = new TrackingETAUpdatedPayload$Type(); class TrackingETAUpdatedEvent$Type extends MessageType { constructor() { super("api.TrackingETAUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TrackingETA"] } }, "api.messageType": "Event", "api.inputEvent": "ETAUpdated", "api.preAggMethods": "setETAActualDate" }); } create(value?: PartialMessage): TrackingETAUpdatedEvent { @@ -2052,9 +2052,9 @@ export const TrackingETAUpdatedEvent = new TrackingETAUpdatedEvent$Type(); class TrackingETAUpdatedRequest$Type extends MessageType { constructor() { super("api.TrackingETAUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingETAUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingETAUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TrackingETA"] } }, "api.messageType": "Request", "api.inputEvent": "ETAUpdated" }); } create(value?: PartialMessage): TrackingETAUpdatedRequest { @@ -2212,9 +2212,9 @@ export const TrackingAttachmentAddedPayload = new TrackingAttachmentAddedPayload class TrackingAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.TrackingAttachmentAddedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): TrackingAttachmentAddedEvent { @@ -2272,9 +2272,9 @@ export const TrackingAttachmentAddedEvent = new TrackingAttachmentAddedEvent$Typ class TrackingAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.TrackingAttachmentAddedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentAddedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): TrackingAttachmentAddedRequest { @@ -2432,9 +2432,9 @@ export const TrackingAttachmentRemovedPayload = new TrackingAttachmentRemovedPay class TrackingAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.TrackingAttachmentRemovedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): TrackingAttachmentRemovedEvent { @@ -2492,9 +2492,9 @@ export const TrackingAttachmentRemovedEvent = new TrackingAttachmentRemovedEvent class TrackingAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.TrackingAttachmentRemovedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingAttachmentRemovedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): TrackingAttachmentRemovedRequest { @@ -2854,9 +2854,9 @@ export const TrackingSanitisedPayload = new TrackingSanitisedPayload$Type(); class TrackingSanitisedEvent$Type extends MessageType { constructor() { super("api.TrackingSanitisedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): TrackingSanitisedEvent { @@ -2914,9 +2914,9 @@ export const TrackingSanitisedEvent = new TrackingSanitisedEvent$Type(); class TrackingSanitisedRequest$Type extends MessageType { constructor() { super("api.TrackingSanitisedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingSanitisedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): TrackingSanitisedRequest { @@ -3065,9 +3065,9 @@ export const TrackingCustomFieldsUpdatedPayload = new TrackingCustomFieldsUpdate class TrackingCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.TrackingCustomFieldsUpdatedEvent", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): TrackingCustomFieldsUpdatedEvent { @@ -3125,9 +3125,9 @@ export const TrackingCustomFieldsUpdatedEvent = new TrackingCustomFieldsUpdatedE class TrackingCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.TrackingCustomFieldsUpdatedRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => TrackingCustomFieldsUpdatedPayload, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): TrackingCustomFieldsUpdatedRequest { diff --git a/trackingQuery.ts b/trackingQuery.ts index 20ee7885..a2911bcb 100644 --- a/trackingQuery.ts +++ b/trackingQuery.ts @@ -63,8 +63,8 @@ export interface TrackingQueryOptions { class TrackingByIdQuery$Type extends MessageType { constructor() { super("api.TrackingByIdQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => TrackingQueryOptions } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" }); } diff --git a/tradeShared.ts b/tradeShared.ts index f508b4bb..9b0dec2f 100644 --- a/tradeShared.ts +++ b/tradeShared.ts @@ -152,11 +152,11 @@ export interface ExeFlowLine { TotalReceivedMetrics?: GoodsMetrics; // GoodsMetrics TotalNonPreparedMetrics = 10 // [ - // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true}, (validate.rules).message.unauthorized = true + // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true}, (n1validate.rules).message.unauthorized = true // ]; // GoodsMetrics TotalNonReceivedMetrics = 11 // [ - // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true}, (validate.rules).message.unauthorized = true + // (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {read_only: true}, (n1validate.rules).message.unauthorized = true // ]; /** @@ -745,7 +745,7 @@ class OrderLine$Type extends MessageType { { no: 1, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "RequestedContent", kind: "message", localName: "RequestedContent", jsonName: "RequestedContent", T: () => QuantifiedRequestedGoods }, { no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Order" } }, - { no: 4, name: "RequestedMetrics", kind: "message", localName: "RequestedMetrics", jsonName: "RequestedMetrics", T: () => GoodsMetrics, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 4, name: "RequestedMetrics", kind: "message", localName: "RequestedMetrics", jsonName: "RequestedMetrics", T: () => GoodsMetrics, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 5, name: "ShippedContent", kind: "message", localName: "ShippedContent", jsonName: "ShippedContent", T: () => QuantifiedRequestedGoods, options: { "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } } ]); } @@ -876,11 +876,11 @@ class ExeFlowLine$Type extends MessageType { { no: 2, name: "RequestedContent", kind: "message", localName: "RequestedContent", jsonName: "RequestedContent", T: () => QuantifiedRequestedGoods, options: { "api.aggSkip": "HUContentUpdated,HUTrackingUpdated" } }, { no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.aggSkip": "HUContentUpdated, HUTrackingUpdated", "api.transientRef": "Order,Payload.Lines<>.MetaData,hard", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] }, "api.parentEntity": "Order" } }, { no: 4, name: "ShippedContents", kind: "message", localName: "ShippedContents", jsonName: "ShippedContents", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantifiedGoodsByHU, options: { "api.aggSkip": "HUContentUpdated, HUTrackingUpdated", "api.extractRefExclude": "Executionflow" } }, - { no: 5, name: "PreparedItemDiffersFromRequestedItem", kind: "scalar", localName: "PreparedItemDiffersFromRequestedItem", jsonName: "PreparedItemDiffersFromRequestedItem", T: 8 /*ScalarType.BOOL*/, options: { "validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, - { no: 6, name: "ReceivedItemDiffersFromRequestedItem", kind: "scalar", localName: "ReceivedItemDiffersFromRequestedItem", jsonName: "ReceivedItemDiffersFromRequestedItem", T: 8 /*ScalarType.BOOL*/, options: { "validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, - { no: 7, name: "RequestedMetrics", kind: "message", localName: "RequestedMetrics", jsonName: "RequestedMetrics", T: () => GoodsMetrics, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 8, name: "TotalPreparedMetrics", kind: "message", localName: "TotalPreparedMetrics", jsonName: "TotalPreparedMetrics", T: () => GoodsMetrics, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 9, name: "TotalReceivedMetrics", kind: "message", localName: "TotalReceivedMetrics", jsonName: "TotalReceivedMetrics", T: () => GoodsMetrics, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 5, name: "PreparedItemDiffersFromRequestedItem", kind: "scalar", localName: "PreparedItemDiffersFromRequestedItem", jsonName: "PreparedItemDiffersFromRequestedItem", T: 8 /*ScalarType.BOOL*/, options: { "n1validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, + { no: 6, name: "ReceivedItemDiffersFromRequestedItem", kind: "scalar", localName: "ReceivedItemDiffersFromRequestedItem", jsonName: "ReceivedItemDiffersFromRequestedItem", T: 8 /*ScalarType.BOOL*/, options: { "n1validate.rules": { bool: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, + { no: 7, name: "RequestedMetrics", kind: "message", localName: "RequestedMetrics", jsonName: "RequestedMetrics", T: () => GoodsMetrics, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 8, name: "TotalPreparedMetrics", kind: "message", localName: "TotalPreparedMetrics", jsonName: "TotalPreparedMetrics", T: () => GoodsMetrics, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 9, name: "TotalReceivedMetrics", kind: "message", localName: "TotalReceivedMetrics", jsonName: "TotalReceivedMetrics", T: () => GoodsMetrics, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 12, name: "CreatedFromHU", kind: "scalar", localName: "CreatedFromHU", jsonName: "CreatedFromHU", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Definition of trade. Executionflow lines. Defines the requested goods and the prepared goods" } } }); } @@ -1067,7 +1067,7 @@ class TradeTier$Type extends MessageType { { no: 4, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload }, { no: 5, name: "Contact", kind: "message", localName: "Contact", jsonName: "Contact", T: () => Interlocutor }, { no: 6, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be an ID of an existing partner" }, "api.entityRef": "Partner", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order,Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 7, name: "Partner", kind: "message", localName: "Partner", jsonName: "Partner", T: () => PartnerPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } + { no: 7, name: "Partner", kind: "message", localName: "Partner", jsonName: "Partner", T: () => PartnerPayload, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } ]); } create(value?: PartialMessage): TradeTier { @@ -1140,9 +1140,9 @@ class ETA$Type extends MessageType { constructor() { super("api.ETA", [ { no: 3, name: "StartETA", kind: "message", localName: "StartETA", jsonName: "StartETA", T: () => DateTime }, - { no: 4, name: "EndETA", kind: "message", localName: "EndETA", jsonName: "EndETA", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, - { no: 5, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Internal structure, do not fill", readOnly: true } } }, - { no: 6, name: "Comment", kind: "scalar", localName: "Comment", jsonName: "Comment", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "250" } }, "api.kpiExclude": { Items: [{ Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }] } } } + { no: 4, name: "EndETA", kind: "message", localName: "EndETA", jsonName: "EndETA", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 5, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Internal structure, do not fill", readOnly: true } } }, + { no: 6, name: "Comment", kind: "scalar", localName: "Comment", jsonName: "Comment", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { maxLen: "250" } }, "api.kpiExclude": { Items: [{ Context: "Executionflow", Group: "executionflow" }, { Context: "Handlingunit", Group: "handlingunit" }] } } } ]); } create(value?: PartialMessage): ETA { @@ -1316,7 +1316,7 @@ class OrderStatus$Type extends MessageType { constructor() { super("api.OrderStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.OrderStatusCode", OrderStatusCode], options: { "api.dataRestrictionKey": "Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Order", Group: "order", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } } ]); } @@ -1379,7 +1379,7 @@ class OrderStatusStruct$Type extends MessageType { super("api.OrderStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => OrderStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OrderStatus, options: { "api.aggKey": "Date" } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): OrderStatusStruct { @@ -1440,7 +1440,7 @@ class ExecutionflowStatus$Type extends MessageType { constructor() { super("api.ExecutionflowStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.ExecutionflowStatusCode", ExecutionflowStatusCode], options: { "api.dataRestrictionKey": "Stock,Executionflow", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } } ]); } @@ -1504,7 +1504,7 @@ class ExecutionflowStatusStruct$Type extends MessageType ExecutionflowStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExecutionflowStatus, options: { "api.aggKey": "Date" } }, { no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }, - { no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): ExecutionflowStatusStruct { @@ -1571,7 +1571,7 @@ export const ExecutionflowStatusStruct = new ExecutionflowStatusStruct$Type(); class ExecutionflowSummary$Type extends MessageType { constructor() { super("api.ExecutionflowSummary", [ - { no: 1, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ExecutionflowStatus }, { no: 7, name: "ShipFrom", kind: "message", localName: "ShipFrom", jsonName: "ShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the executionflow from" } } }, { no: 8, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the executionflow to" } } }, diff --git a/translations.ts b/translations.ts index db201300..084f978f 100644 --- a/translations.ts +++ b/translations.ts @@ -195,7 +195,7 @@ export interface GetLanguagesResult { class Translation$Type extends MessageType { constructor() { super("api.Translation", [ - { no: 1, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }, + { no: 1, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }, { no: 2, name: "Translation", kind: "scalar", localName: "Translation", jsonName: "Translation", T: 9 /*ScalarType.STRING*/ } ]); } @@ -360,9 +360,9 @@ export const TranslationByLabel = new TranslationByLabel$Type(); class GetTranslationsRequest$Type extends MessageType { constructor() { super("api.GetTranslationsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the GetTranslations method", required: ["Header", "Context", "Key"] } } }); } create(value?: PartialMessage): GetTranslationsRequest { @@ -469,9 +469,9 @@ export const GetTranslationsResult = new GetTranslationsResult$Type(); class PutTranslationsRequest$Type extends MessageType { constructor() { super("api.PutTranslationsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Translations", kind: "message", localName: "Translations", jsonName: "Translations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Translation } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the PutTranslation method", required: ["Header", "Context", "Key"] } } }); } @@ -586,9 +586,9 @@ export const PutTranslationsResult = new PutTranslationsResult$Type(); class DeleteTranslationsRequest$Type extends MessageType { constructor() { super("api.DeleteTranslationsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Context", kind: "scalar", localName: "Context", jsonName: "Context", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the DeleteTranslation method", required: ["Header", "Context", "Key"] } } }); } create(value?: PartialMessage): DeleteTranslationsRequest { @@ -686,9 +686,9 @@ export const DeleteTranslationsResult = new DeleteTranslationsResult$Type(); class ListTranslationsRequest$Type extends MessageType { constructor() { super("api.ListTranslationsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }, - { no: 3, name: "FallbackLanguageCode", kind: "scalar", localName: "FallbackLanguageCode", jsonName: "FallbackLanguageCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true, ignoreEmpty: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }, + { no: 3, name: "FallbackLanguageCode", kind: "scalar", localName: "FallbackLanguageCode", jsonName: "FallbackLanguageCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true, ignoreEmpty: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the ListTranslations method", required: ["Header", "LanguageCode"] } } }); } create(value?: PartialMessage): ListTranslationsRequest { @@ -795,7 +795,7 @@ export const ListTranslationsResult = new ListTranslationsResult$Type(); class DeleteAllTranslationsRequest$Type extends MessageType { constructor() { super("api.DeleteAllTranslationsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request for the DeleteAllTranslations method", required: ["Header"] } } }); } create(value?: PartialMessage): DeleteAllTranslationsRequest { diff --git a/transportShared.ts b/transportShared.ts index 55d5d6b4..4b2b0fd7 100644 --- a/transportShared.ts +++ b/transportShared.ts @@ -292,7 +292,7 @@ class TrackingStatus$Type extends MessageType { constructor() { super("api.TrackingStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.TrackingStatusCode", TrackingStatusCode], options: { "api.dataRestrictionKey": "Tracking", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Tracking", Group: "tracking", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } } ]); } @@ -355,7 +355,7 @@ class TrackingStatusStruct$Type extends MessageType { super("api.TrackingStatusStruct", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => TrackingStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TrackingStatus, options: { "api.aggKey": "Date" } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): TrackingStatusStruct { @@ -415,9 +415,9 @@ export const TrackingStatusStruct = new TrackingStatusStruct$Type(); class TrackingSummary$Type extends MessageType { constructor() { super("api.TrackingSummary", [ - { no: 1, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => TrackingStatus, options: { "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }] } } }, - { no: 3, name: "TrackedHandlingunitID", kind: "scalar", localName: "TrackedHandlingunitID", jsonName: "TrackedHandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "TrackedHandlingunitID", kind: "scalar", localName: "TrackedHandlingunitID", jsonName: "TrackedHandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 4, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "NextTrackingID", kind: "scalar", localName: "NextTrackingID", jsonName: "NextTrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 6, name: "Location", kind: "message", localName: "Location", jsonName: "Location", T: () => GeographicalCoordinates }, @@ -537,8 +537,8 @@ export const TrackingSummary = new TrackingSummary$Type(); class TrackingEvent$Type extends MessageType { constructor() { super("api.TrackingEvent", [ - { no: 1, name: "Date", kind: "message", localName: "Date", jsonName: "Date", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Code", kind: "enum", localName: "Code", jsonName: "Code", T: () => ["api.TrackingEventCode", TrackingEventCode], options: { "validate.rules": { enum: { definedOnly: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 1, name: "Date", kind: "message", localName: "Date", jsonName: "Date", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Code", kind: "enum", localName: "Code", jsonName: "Code", T: () => ["api.TrackingEventCode", TrackingEventCode], options: { "n1validate.rules": { enum: { definedOnly: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, { no: 3, name: "Location", kind: "message", localName: "Location", jsonName: "Location", T: () => GeographicalCoordinates }, { no: 4, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "PlusCode", kind: "scalar", localName: "PlusCode", jsonName: "PlusCode", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } } diff --git a/user-attributes.ts b/user-attributes.ts index 3353b550..2c9a8317 100644 --- a/user-attributes.ts +++ b/user-attributes.ts @@ -403,8 +403,8 @@ export const BookingAuthorization = new BookingAuthorization$Type(); class GetUserAttributesRequest$Type extends MessageType { constructor() { super("api.GetUserAttributesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): GetUserAttributesRequest { @@ -503,8 +503,8 @@ export const GetUserAttributesResult = new GetUserAttributesResult$Type(); class PutUserAttributesRequest$Type extends MessageType { constructor() { super("api.PutUserAttributesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "RestrictionActorIDs", kind: "message", localName: "RestrictionActorIDs", jsonName: "RestrictionActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionActorIDs }, { no: 5, name: "BookingAuthorizations", kind: "message", localName: "BookingAuthorizations", jsonName: "BookingAuthorizations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BookingAuthorization } @@ -627,8 +627,8 @@ export const PutUserAttributesResult = new PutUserAttributesResult$Type(); class DeleteUserAttributesRequest$Type extends MessageType { constructor() { super("api.DeleteUserAttributesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): DeleteUserAttributesRequest { @@ -719,7 +719,7 @@ export const DeleteUserAttributesResult = new DeleteUserAttributesResult$Type(); class ListUserAttributesRequest$Type extends MessageType { constructor() { super("api.ListUserAttributesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -820,7 +820,7 @@ export const ListUserAttributesResult = new ListUserAttributesResult$Type(); class DeleteForProjectUserAttributesRequest$Type extends MessageType { constructor() { super("api.DeleteForProjectUserAttributesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): DeleteForProjectUserAttributesRequest { diff --git a/user-groups.ts b/user-groups.ts index 82d19aab..c26b52e7 100644 --- a/user-groups.ts +++ b/user-groups.ts @@ -160,7 +160,7 @@ class UserGroup$Type extends MessageType { super("api.UserGroup", [ { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "AllowAllRoles", kind: "scalar", localName: "AllowAllRoles", jsonName: "AllowAllRoles", T: 8 /*ScalarType.BOOL*/ } ]); @@ -237,9 +237,9 @@ export const UserGroup = new UserGroup$Type(); class PutUserGroupsRequest$Type extends MessageType { constructor() { super("api.PutUserGroupsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 4, name: "AllowedRoles", kind: "scalar", localName: "AllowedRoles", jsonName: "AllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "AllowAllRoles", kind: "scalar", localName: "AllowAllRoles", jsonName: "AllowAllRoles", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityRefType", "EntityRefID"] } } }); @@ -361,9 +361,9 @@ export const PutUserGroupsResult = new PutUserGroupsResult$Type(); class GetUserGroupsRequest$Type extends MessageType { constructor() { super("api.GetUserGroupsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityRefType", "EntityRefID"] } } }); } create(value?: PartialMessage): GetUserGroupsRequest { @@ -469,9 +469,9 @@ export const GetUserGroupsResult = new GetUserGroupsResult$Type(); class DeleteUserGroupsRequest$Type extends MessageType { constructor() { super("api.DeleteUserGroupsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "validate.rules": { enum: { definedOnly: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType], options: { "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "EntityRefType", "EntityRefID"] } } }); } create(value?: PartialMessage): DeleteUserGroupsRequest { @@ -569,7 +569,7 @@ export const DeleteUserGroupsResult = new DeleteUserGroupsResult$Type(); class ListUserGroupsRequest$Type extends MessageType { constructor() { super("api.ListUserGroupsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, { no: 2, name: "EntityRefType", kind: "enum", localName: "EntityRefType", jsonName: "EntityRefType", T: () => ["api.EntityRefType", EntityRefType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } diff --git a/user.ts b/user.ts index af9d73ce..07c169c8 100644 --- a/user.ts +++ b/user.ts @@ -1283,10 +1283,10 @@ class User$Type extends MessageType { { no: 6, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "TimezoneCode", kind: "scalar", localName: "TimezoneCode", jsonName: "TimezoneCode", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Status", kind: "enum", localName: "Status", jsonName: "Status", T: () => ["api.UserStatus", UserStatus] }, - { no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, + { no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" } } }, { no: 12, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.UserType", UserType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of the user, could be a Service Account or a normal User" } } }, { no: 13, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "If the user is a Service Account, the PartnerAppID is the ID of the partner app it belongs to, empty otherwise" } } }, - { no: 14, name: "ExpiresAt", kind: "scalar", localName: "ExpiresAt", jsonName: "ExpiresAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format ; only for Service Accounts, empty otherwise" } } }, + { no: 14, name: "ExpiresAt", kind: "scalar", localName: "ExpiresAt", jsonName: "ExpiresAt", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format ; only for Service Accounts, empty otherwise" } } }, { no: 15, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The Partner ID the user belongs to. If empty, the user is not affiliated to a partner" } } }, { no: 16, name: "TwoFA", kind: "enum", localName: "TwoFA", jsonName: "TwoFA", T: () => ["api.TwoFAValue", TwoFAValue], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The 2FA value for the user" } } }, { no: 17, name: "TemporarilyLocked", kind: "scalar", localName: "TemporarilyLocked", jsonName: "TemporarilyLocked", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "If the user has been temporarily locked due to too many failed login attempts" } } } @@ -1427,7 +1427,7 @@ export const User = new User$Type(); class RemoveUserRequest$Type extends MessageType { constructor() { super("api.RemoveUserRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID"] } } }); } create(value?: PartialMessage): RemoveUserRequest { @@ -1474,8 +1474,8 @@ export const RemoveUserRequest = new RemoveUserRequest$Type(); class EnrollUserRequest$Type extends MessageType { constructor() { super("api.EnrollUserRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "locale", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ForceTwoFA", kind: "scalar", localName: "ForceTwoFA", jsonName: "ForceTwoFA", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "LoginThroughOTP", kind: "scalar", localName: "LoginThroughOTP", jsonName: "LoginThroughOTP", T: 8 /*ScalarType.BOOL*/ } @@ -1552,8 +1552,8 @@ export const EnrollUserRequest = new EnrollUserRequest$Type(); class SendVerificationMailRequest$Type extends MessageType { constructor() { super("api.SendVerificationMailRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): SendVerificationMailRequest { @@ -1606,8 +1606,8 @@ export const SendVerificationMailRequest = new SendVerificationMailRequest$Type( class SendVerificationMailAsRequest$Type extends MessageType { constructor() { super("api.SendVerificationMailAsRequest", [ - { no: 1, name: "SenderMail", kind: "scalar", localName: "SenderMail", jsonName: "SenderMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "SenderMail", kind: "scalar", localName: "SenderMail", jsonName: "SenderMail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SenderMail", "UserID"] } } }); @@ -1677,8 +1677,8 @@ export const SendVerificationMailAsRequest = new SendVerificationMailAsRequest$T class EnrollUserProjectRequest$Type extends MessageType { constructor() { super("api.EnrollUserProjectRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "locale", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ForceTwoFA", kind: "scalar", localName: "ForceTwoFA", jsonName: "ForceTwoFA", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "LoginThroughOTP", kind: "scalar", localName: "LoginThroughOTP", jsonName: "LoginThroughOTP", T: 8 /*ScalarType.BOOL*/ } @@ -1755,8 +1755,8 @@ export const EnrollUserProjectRequest = new EnrollUserProjectRequest$Type(); class SendVerificationMailProjectRequest$Type extends MessageType { constructor() { super("api.SendVerificationMailProjectRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): SendVerificationMailProjectRequest { @@ -1809,8 +1809,8 @@ export const SendVerificationMailProjectRequest = new SendVerificationMailProjec class CreateSARequest$Type extends MessageType { constructor() { super("api.CreateSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } }); } create(value?: PartialMessage): CreateSARequest { @@ -1863,8 +1863,8 @@ export const CreateSARequest = new CreateSARequest$Type(); class RenewSARequest$Type extends MessageType { constructor() { super("api.RenewSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Mail"] } } }); } create(value?: PartialMessage): RenewSARequest { @@ -1917,8 +1917,8 @@ export const RenewSARequest = new RenewSARequest$Type(); class RemoveSARequest$Type extends MessageType { constructor() { super("api.RemoveSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Mail"] } } }); } create(value?: PartialMessage): RemoveSARequest { @@ -1971,8 +1971,8 @@ export const RemoveSARequest = new RemoveSARequest$Type(); class SuggestSANameRequest$Type extends MessageType { constructor() { super("api.SuggestSANameRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } }); } create(value?: PartialMessage): SuggestSANameRequest { @@ -2025,8 +2025,8 @@ export const SuggestSANameRequest = new SuggestSANameRequest$Type(); class CreateProjectSARequest$Type extends MessageType { constructor() { super("api.CreateProjectSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } }); } create(value?: PartialMessage): CreateProjectSARequest { @@ -2079,8 +2079,8 @@ export const CreateProjectSARequest = new CreateProjectSARequest$Type(); class RenewProjectSARequest$Type extends MessageType { constructor() { super("api.RenewProjectSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Mail"] } } }); } create(value?: PartialMessage): RenewProjectSARequest { @@ -2133,8 +2133,8 @@ export const RenewProjectSARequest = new RenewProjectSARequest$Type(); class RemoveProjectSARequest$Type extends MessageType { constructor() { super("api.RemoveProjectSARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Mail"] } } }); } create(value?: PartialMessage): RemoveProjectSARequest { @@ -2187,8 +2187,8 @@ export const RemoveProjectSARequest = new RemoveProjectSARequest$Type(); class SuggestProjectSANameRequest$Type extends MessageType { constructor() { super("api.SuggestProjectSANameRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } }); } create(value?: PartialMessage): SuggestProjectSANameRequest { @@ -2279,7 +2279,7 @@ export const ListPlatformUsersRequest = new ListPlatformUsersRequest$Type(); class ListOrganisationUsersRequest$Type extends MessageType { constructor() { super("api.ListOrganisationUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListOrganisationUsersRequest { @@ -2325,7 +2325,7 @@ export const ListOrganisationUsersRequest = new ListOrganisationUsersRequest$Typ class ListProjectUsersRequest$Type extends MessageType { constructor() { super("api.ListProjectUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ListProjectUsersRequest { @@ -2371,8 +2371,8 @@ export const ListProjectUsersRequest = new ListProjectUsersRequest$Type(); class ListPartnerAppUsersRequest$Type extends MessageType { constructor() { super("api.ListPartnerAppUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "PartnerAppID"] } } }); } create(value?: PartialMessage): ListPartnerAppUsersRequest { @@ -2425,8 +2425,8 @@ export const ListPartnerAppUsersRequest = new ListPartnerAppUsersRequest$Type(); class ListConnectionUsersRequest$Type extends MessageType { constructor() { super("api.ListConnectionUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectionID"] } } }); } create(value?: PartialMessage): ListConnectionUsersRequest { @@ -2479,7 +2479,7 @@ export const ListConnectionUsersRequest = new ListConnectionUsersRequest$Type(); class GetPlatformUserRequest$Type extends MessageType { constructor() { super("api.GetPlatformUserRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID"] } } }); } create(value?: PartialMessage): GetPlatformUserRequest { @@ -2526,7 +2526,7 @@ export const GetPlatformUserRequest = new GetPlatformUserRequest$Type(); class GetPlatformUserByMailRequest$Type extends MessageType { constructor() { super("api.GetPlatformUserByMailRequest", [ - { no: 1, name: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserMail"] } } }); } create(value?: PartialMessage): GetPlatformUserByMailRequest { @@ -2573,8 +2573,8 @@ export const GetPlatformUserByMailRequest = new GetPlatformUserByMailRequest$Typ class GetOrganisationUserRequest$Type extends MessageType { constructor() { super("api.GetOrganisationUserRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): GetOrganisationUserRequest { @@ -2627,8 +2627,8 @@ export const GetOrganisationUserRequest = new GetOrganisationUserRequest$Type(); class GetProjectUserRequest$Type extends MessageType { constructor() { super("api.GetProjectUserRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): GetProjectUserRequest { @@ -2681,8 +2681,8 @@ export const GetProjectUserRequest = new GetProjectUserRequest$Type(); class GetProjectUserByMailRequest$Type extends MessageType { constructor() { super("api.GetProjectUserByMailRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "UserMail", kind: "scalar", localName: "UserMail", jsonName: "UserMail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): GetProjectUserByMailRequest { @@ -2736,7 +2736,7 @@ export const GetProjectUserByMailRequest = new GetProjectUserByMailRequest$Type( class ListUserPlatformRolesRequest$Type extends MessageType { constructor() { super("api.ListUserPlatformRolesRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID"] } } }); } create(value?: PartialMessage): ListUserPlatformRolesRequest { @@ -2783,8 +2783,8 @@ export const ListUserPlatformRolesRequest = new ListUserPlatformRolesRequest$Typ class ListUserOrganisationRolesRequest$Type extends MessageType { constructor() { super("api.ListUserOrganisationRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): ListUserOrganisationRolesRequest { @@ -2837,8 +2837,8 @@ export const ListUserOrganisationRolesRequest = new ListUserOrganisationRolesReq class ListUserProjectRolesRequest$Type extends MessageType { constructor() { super("api.ListUserProjectRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): ListUserProjectRolesRequest { @@ -2891,9 +2891,9 @@ export const ListUserProjectRolesRequest = new ListUserProjectRolesRequest$Type( class ListUserPartnerAppRolesRequest$Type extends MessageType { constructor() { super("api.ListUserPartnerAppRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "PartnerAppID", "UserID"] } } }); } create(value?: PartialMessage): ListUserPartnerAppRolesRequest { @@ -2953,9 +2953,9 @@ export const ListUserPartnerAppRolesRequest = new ListUserPartnerAppRolesRequest class ListUserConnectionRolesRequest$Type extends MessageType { constructor() { super("api.ListUserConnectionRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectionID", "UserID"] } } }); } create(value?: PartialMessage): ListUserConnectionRolesRequest { @@ -3015,9 +3015,9 @@ export const ListUserConnectionRolesRequest = new ListUserConnectionRolesRequest class ListUserAttachmentTypeRolesRequest$Type extends MessageType { constructor() { super("api.ListUserAttachmentTypeRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AttachmentTypeID", "UserID"] } } }); } create(value?: PartialMessage): ListUserAttachmentTypeRolesRequest { @@ -3077,7 +3077,7 @@ export const ListUserAttachmentTypeRolesRequest = new ListUserAttachmentTypeRole class SetUserPlatformRolesRequest$Type extends MessageType { constructor() { super("api.SetUserPlatformRolesRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID"] } } }); } @@ -3132,8 +3132,8 @@ export const SetUserPlatformRolesRequest = new SetUserPlatformRolesRequest$Type( class SetUserOrganisationRolesRequest$Type extends MessageType { constructor() { super("api.SetUserOrganisationRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } @@ -3194,8 +3194,8 @@ export const SetUserOrganisationRolesRequest = new SetUserOrganisationRolesReque class SetUserProjectRolesRequest$Type extends MessageType { constructor() { super("api.SetUserProjectRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } @@ -3256,9 +3256,9 @@ export const SetUserProjectRolesRequest = new SetUserProjectRolesRequest$Type(); class SetUserPartnerAppRolesRequest$Type extends MessageType { constructor() { super("api.SetUserPartnerAppRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "PartnerAppID", "UserID"] } } }); } @@ -3326,9 +3326,9 @@ export const SetUserPartnerAppRolesRequest = new SetUserPartnerAppRolesRequest$T class SetUserConnectionRolesRequest$Type extends MessageType { constructor() { super("api.SetUserConnectionRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectionID", "UserID"] } } }); } @@ -3396,9 +3396,9 @@ export const SetUserConnectionRolesRequest = new SetUserConnectionRolesRequest$T class SetUserAttachmentTypeRolesRequest$Type extends MessageType { constructor() { super("api.SetUserAttachmentTypeRolesRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AttachmentTypeID", "UserID"] } } }); } @@ -4672,8 +4672,8 @@ export const SetUserAttachmentTypeRolesResult = new SetUserAttachmentTypeRolesRe class EnrollUserWithoutMailRequest$Type extends MessageType { constructor() { super("api.EnrollUserWithoutMailRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "locale", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ForceTwoFA", kind: "scalar", localName: "ForceTwoFA", jsonName: "ForceTwoFA", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "LoginThroughOTP", kind: "scalar", localName: "LoginThroughOTP", jsonName: "LoginThroughOTP", T: 8 /*ScalarType.BOOL*/ } @@ -4796,8 +4796,8 @@ export const EnrollUserWithoutMailResult = new EnrollUserWithoutMailResult$Type( class EnrollUserProjectWithoutMailRequest$Type extends MessageType { constructor() { super("api.EnrollUserProjectWithoutMailRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "locale", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "ForceTwoFA", kind: "scalar", localName: "ForceTwoFA", jsonName: "ForceTwoFA", T: 8 /*ScalarType.BOOL*/ }, { no: 5, name: "LoginThroughOTP", kind: "scalar", localName: "LoginThroughOTP", jsonName: "LoginThroughOTP", T: 8 /*ScalarType.BOOL*/ } @@ -4874,7 +4874,7 @@ export const EnrollUserProjectWithoutMailRequest = new EnrollUserProjectWithoutM class UpdateTwoFAPlatformRequest$Type extends MessageType { constructor() { super("api.UpdateTwoFAPlatformRequest", [ - { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Value", kind: "enum", localName: "Value", jsonName: "Value", T: () => ["api.TwoFAValue", TwoFAValue] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["UserID", "Value"] } } }); } @@ -4975,8 +4975,8 @@ export const UpdateTwoFAPlatformResult = new UpdateTwoFAPlatformResult$Type(); class ForceTwoFAOrganisationRequest$Type extends MessageType { constructor() { super("api.ForceTwoFAOrganisationRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "ForceTwoFA", kind: "scalar", localName: "ForceTwoFA", jsonName: "ForceTwoFA", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID", "ForceTwoFA"] } } }); } @@ -5037,8 +5037,8 @@ export const ForceTwoFAOrganisationRequest = new ForceTwoFAOrganisationRequest$T class ForceProjectUserTwoFARequest$Type extends MessageType { constructor() { super("api.ForceProjectUserTwoFARequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID"] } } }); } create(value?: PartialMessage): ForceProjectUserTwoFARequest { @@ -5138,11 +5138,11 @@ class FindUsersFilters$Type extends MessageType { constructor() { super("api.FindUsersFilters", [ { no: 1, name: "Mail", kind: "scalar", localName: "Mail", jsonName: "Mail", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "Status", kind: "enum", localName: "Status", jsonName: "Status", T: () => ["api.UserStatus", UserStatus], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "Status", kind: "enum", localName: "Status", jsonName: "Status", T: () => ["api.UserStatus", UserStatus], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 3, name: "FirstName", kind: "scalar", localName: "FirstName", jsonName: "FirstName", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "LastName", kind: "scalar", localName: "LastName", jsonName: "LastName", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.UserType", UserType], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.UserType", UserType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 7, name: "Limit", kind: "scalar", localName: "Limit", jsonName: "Limit", T: 5 /*ScalarType.INT32*/ } ]); } @@ -5232,7 +5232,7 @@ export const FindUsersFilters = new FindUsersFilters$Type(); class FindPlatformUsersRequest$Type extends MessageType { constructor() { super("api.FindPlatformUsersRequest", [ - { no: 1, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Filter"] } } }); } create(value?: PartialMessage): FindPlatformUsersRequest { @@ -5278,8 +5278,8 @@ export const FindPlatformUsersRequest = new FindPlatformUsersRequest$Type(); class FindOrganisationUsersRequest$Type extends MessageType { constructor() { super("api.FindOrganisationUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filter"] } } }); } create(value?: PartialMessage): FindOrganisationUsersRequest { @@ -5331,8 +5331,8 @@ export const FindOrganisationUsersRequest = new FindOrganisationUsersRequest$Typ class FindProjectUsersRequest$Type extends MessageType { constructor() { super("api.FindProjectUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Filter"] } } }); } create(value?: PartialMessage): FindProjectUsersRequest { @@ -5384,9 +5384,9 @@ export const FindProjectUsersRequest = new FindProjectUsersRequest$Type(); class FindPartnerAppUsersRequest$Type extends MessageType { constructor() { super("api.FindPartnerAppUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, - { no: 3, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, + { no: 3, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "PartnerAppID", "Filter"] } } }); } create(value?: PartialMessage): FindPartnerAppUsersRequest { @@ -5445,9 +5445,9 @@ export const FindPartnerAppUsersRequest = new FindPartnerAppUsersRequest$Type(); class FindConnectionUsersRequest$Type extends MessageType { constructor() { super("api.FindConnectionUsersRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, - { no: 3, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "validate.rules": { message: { required: true } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, + { no: 3, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => FindUsersFilters, options: { "n1validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectionID", "Filter"] } } }); } create(value?: PartialMessage): FindConnectionUsersRequest { @@ -5553,7 +5553,7 @@ export const FindUsersResult = new FindUsersResult$Type(); class ListUsersInPlatformRoleRequest$Type extends MessageType { constructor() { super("api.ListUsersInPlatformRoleRequest", [ - { no: 1, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Roles"] } } }); } create(value?: PartialMessage): ListUsersInPlatformRoleRequest { @@ -5600,8 +5600,8 @@ export const ListUsersInPlatformRoleRequest = new ListUsersInPlatformRoleRequest class ListUsersInOrganisationRoleRequest$Type extends MessageType { constructor() { super("api.ListUsersInOrganisationRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Role"] } } }); } create(value?: PartialMessage): ListUsersInOrganisationRoleRequest { @@ -5654,8 +5654,8 @@ export const ListUsersInOrganisationRoleRequest = new ListUsersInOrganisationRol class ListUsersInProjectRoleRequest$Type extends MessageType { constructor() { super("api.ListUsersInProjectRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Role"] } } }); } create(value?: PartialMessage): ListUsersInProjectRoleRequest { @@ -5708,9 +5708,9 @@ export const ListUsersInProjectRoleRequest = new ListUsersInProjectRoleRequest$T class ListUsersInPartnerAppRoleRequest$Type extends MessageType { constructor() { super("api.ListUsersInPartnerAppRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, - { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, + { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "PartnerAppID", "Role"] } } }); } create(value?: PartialMessage): ListUsersInPartnerAppRoleRequest { @@ -5770,9 +5770,9 @@ export const ListUsersInPartnerAppRoleRequest = new ListUsersInPartnerAppRoleReq class ListUsersInConnectionRoleRequest$Type extends MessageType { constructor() { super("api.ListUsersInConnectionRoleRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, - { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", pattern: "^([A-Za-z0-9-])+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^([A-Za-z0-9-])+$" } } }, + { no: 3, name: "Roles", kind: "scalar", localName: "Roles", jsonName: "Roles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ConnectionID", "Role"] } } }); } create(value?: PartialMessage): ListUsersInConnectionRoleRequest { @@ -6125,7 +6125,7 @@ export const RenewAPIKeyResult = new RenewAPIKeyResult$Type(); class ResolveAPIKeyRequest$Type extends MessageType { constructor() { super("api.ResolveAPIKeyRequest", [ - { no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "APIKey", kind: "scalar", localName: "APIKey", jsonName: "APIKey", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["APIKey"] } } }); } create(value?: PartialMessage): ResolveAPIKeyRequest { diff --git a/users.ts b/users.ts index a379d775..74e1d172 100644 --- a/users.ts +++ b/users.ts @@ -142,8 +142,8 @@ export interface DeleteUserResult { class CreateUserRequest$Type extends MessageType { constructor() { super("api.CreateUserRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "permission", kind: "message", T: () => NscPermission } ]); } @@ -250,8 +250,8 @@ export const CreateUserResult = new CreateUserResult$Type(); class GetUserRequest$Type extends MessageType { constructor() { super("api.GetUserRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): GetUserRequest { @@ -351,7 +351,7 @@ export const GetUserResult = new GetUserResult$Type(); class ListUsersRequest$Type extends MessageType { constructor() { super("api.ListUsersRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): ListUsersRequest { @@ -445,8 +445,8 @@ export const ListUsersResult = new ListUsersResult$Type(); class EditUserRequest$Type extends MessageType { constructor() { super("api.EditUserRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "permission", kind: "message", T: () => NscPermission }, { no: 4, name: "rmPerms", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Entity edition messages", required: ["accountName", "name"] } } }); @@ -561,8 +561,8 @@ export const EditUserResult = new EditUserResult$Type(); class DeleteUserRequest$Type extends MessageType { constructor() { super("api.DeleteUserRequest", [ - { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "userName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "accountName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "userName", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ]); } create(value?: PartialMessage): DeleteUserRequest { diff --git a/view.ts b/view.ts index afc61b6e..92b956f8 100644 --- a/view.ts +++ b/view.ts @@ -372,9 +372,9 @@ export const FieldView = new FieldView$Type(); class GetViewFieldsRequest$Type extends MessageType { constructor() { super("api.GetViewFieldsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, { no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } }, { no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ }, @@ -513,9 +513,9 @@ export const GetViewFieldsResult = new GetViewFieldsResult$Type(); class GetSiteViewFieldsRequest$Type extends MessageType { constructor() { super("api.GetSiteViewFieldsRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, - { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, + { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } }, + { no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } }, { no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } }, { no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ }, { no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ }, diff --git a/warehousingShared.ts b/warehousingShared.ts index 2db8f662..a6b4bff9 100644 --- a/warehousingShared.ts +++ b/warehousingShared.ts @@ -1047,7 +1047,7 @@ class HandlingunitStatus$Type extends MessageType { constructor() { super("api.HandlingunitStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.HandlingunitStatusCode", HandlingunitStatusCode], options: { "api.dataRestrictionKey": "Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } } ]); } @@ -1110,7 +1110,7 @@ class HandlingunitStatusStruct$Type extends MessageType HandlingunitStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitStatus, options: { "api.aggKey": "Date" } }, - { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ } ]); } @@ -1178,7 +1178,7 @@ export const HandlingunitStatusStruct = new HandlingunitStatusStruct$Type(); class HandlingunitSummary$Type extends MessageType { constructor() { super("api.HandlingunitSummary", [ - { no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => HandlingunitStatus, options: { "api.aggSkip": "HUTrackingUpdated,HUContentUpdated" } }, { no: 3, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 6, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Handlingunit,Payload.MetaData,hard", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Handlingunit" } }, @@ -1355,7 +1355,7 @@ class StockStatus$Type extends MessageType { constructor() { super("api.StockStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.StockStatusCode", StockStatusCode], options: { "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } } ]); } @@ -1419,7 +1419,7 @@ class StockStatusStruct$Type extends MessageType { { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => StockStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StockStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Movement", Group: "movement" }, { Context: "Order", Group: "order" }] } } }, { no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }, - { no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): StockStatusStruct { @@ -1487,7 +1487,7 @@ class MovementStatus$Type extends MessageType { constructor() { super("api.MovementStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.MovementStatusCode", MovementStatusCode], options: { "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." }, "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } } ]); } @@ -1551,7 +1551,7 @@ class MovementStatusStruct$Type extends MessageType { { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => MovementStatus }, { no: 2, name: "History", kind: "message", localName: "History", jsonName: "History", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MovementStatus, options: { "api.aggKey": "Date", "api.kpiExclude": { Items: [{ Context: "Movement", Group: "movement" }] } } }, { no: 3, name: "Version", kind: "scalar", localName: "Version", jsonName: "Version", T: 13 /*ScalarType.UINT32*/ }, - { no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } } } } + { no: 4, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } } } } ]); } create(value?: PartialMessage): MovementStatusStruct { @@ -1619,7 +1619,7 @@ class GoodsTrackingStatus$Type extends MessageType { constructor() { super("api.GoodsTrackingStatus", [ { no: 1, name: "StatusCode", kind: "enum", localName: "StatusCode", jsonName: "StatusCode", T: () => ["api.GoodsTrackingStatusCode", GoodsTrackingStatusCode], options: { "api.dataRestrictionKey": "Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] } } }, - { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "Date", kind: "scalar", localName: "Date", jsonName: "Date", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 3, name: "ActualDate", kind: "message", localName: "ActualDate", jsonName: "ActualDate", T: () => DateTime, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status effective date. Set by the event's RefDate that triggered the status change." } } } ]); } @@ -1680,9 +1680,9 @@ export const GoodsTrackingStatus = new GoodsTrackingStatus$Type(); class Goods$Type extends MessageType { constructor() { super("api.Goods", [ - { no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, - { no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logitical Variant branch ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortText" }] } } }, + { no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logitical Variant branch ID" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ItemID", "LVBranchID"] } } }); } @@ -1751,11 +1751,11 @@ export const Goods = new Goods$Type(); class EnrichedGoods$Type extends MessageType { constructor() { super("api.EnrichedGoods", [ - { no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in ISO 8601 format" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in ISO 8601 format" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Handlingunit", Group: "handlingunit" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } }, - { no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } + { no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Type of goods", required: ["ItemID", "LVBranchID", "PriorityDate"] } } }); } create(value?: PartialMessage): EnrichedGoods { @@ -1829,11 +1829,11 @@ export const EnrichedGoods = new EnrichedGoods$Type(); class RequestedEnrichedGoods$Type extends MessageType { constructor() { super("api.RequestedEnrichedGoods", [ - { no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "ItemID", kind: "scalar", localName: "ItemID", jsonName: "ItemID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.entityRef": "Item", "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "LVBranchID", kind: "scalar", localName: "LVBranchID", jsonName: "LVBranchID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant branch ID" }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true, ignoreEmpty: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in ISO 8601 format" }, "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 3, name: "PriorityDate", kind: "scalar", localName: "PriorityDate", jsonName: "PriorityDate", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { dateIso8601: true, ignoreEmpty: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Date of minimum substainability in ISO 8601 format" }, "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "Stock", Type: "date" }, { Context: "Movement", Type: "date" }, { Context: "Handlingunit", Type: "date" }, { Context: "Order", Type: "text" }, { Context: "Executionflow", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, { no: 4, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" }, "api.aggKey": "Key", "api.segmentationKeys": true, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Order", Group: "order" }] }, "api.parentEntity": "Stock" } }, - { no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } + { no: 6, name: "Item", kind: "message", localName: "Item", jsonName: "Item", T: () => ItemPayload, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Type of goods", required: ["ItemID"] } } }); } create(value?: PartialMessage): RequestedEnrichedGoods { @@ -1907,8 +1907,8 @@ export const RequestedEnrichedGoods = new RequestedEnrichedGoods$Type(); class QuantifiedRequestedGoods$Type extends MessageType { constructor() { super("api.QuantifiedRequestedGoods", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => RequestedEnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,soft" } }, - { no: 2, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order" } } + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => RequestedEnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,soft" } }, + { no: 2, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } }, "api.dataRestrictionKey": "Movement,Stock,Executionflow,Order" } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "List of goods ordered with their type and quantity", required: ["Goods", "Quantity"] } } }); } create(value?: PartialMessage): QuantifiedRequestedGoods { @@ -1960,16 +1960,16 @@ export const QuantifiedRequestedGoods = new QuantifiedRequestedGoods$Type(); class QuantifiedGoodsByHU$Type extends MessageType { constructor() { super("api.QuantifiedGoodsByHU", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, - { no: 2, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, + { no: 2, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, name: "TrackingID", kind: "scalar", localName: "TrackingID", jsonName: "TrackingID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 4, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => GoodsTrackingStatus }, - { no: 5, name: "RequestedQuantity", kind: "message", localName: "RequestedQuantity", jsonName: "RequestedQuantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, - { no: 6, name: "RequestedQuantityInBaseLV", kind: "message", localName: "RequestedQuantityInBaseLV", jsonName: "RequestedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, - { no: 7, name: "PreparedQuantity", kind: "message", localName: "PreparedQuantity", jsonName: "PreparedQuantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } }, - { no: 8, name: "PreparedQuantityInBaseLV", kind: "message", localName: "PreparedQuantityInBaseLV", jsonName: "PreparedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 9, name: "ReceivedQuantity", kind: "message", localName: "ReceivedQuantity", jsonName: "ReceivedQuantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } }, - { no: 10, name: "ReceivedQuantityInBaseLV", kind: "message", localName: "ReceivedQuantityInBaseLV", jsonName: "ReceivedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 5, name: "RequestedQuantity", kind: "message", localName: "RequestedQuantity", jsonName: "RequestedQuantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, + { no: 6, name: "RequestedQuantityInBaseLV", kind: "message", localName: "RequestedQuantityInBaseLV", jsonName: "RequestedQuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Executionflow", Group: "executionflow" }, { Context: "Order", Group: "order" }] } } }, + { no: 7, name: "PreparedQuantity", kind: "message", localName: "PreparedQuantity", jsonName: "PreparedQuantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 8, name: "PreparedQuantityInBaseLV", kind: "message", localName: "PreparedQuantityInBaseLV", jsonName: "PreparedQuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 9, name: "ReceivedQuantity", kind: "message", localName: "ReceivedQuantity", jsonName: "ReceivedQuantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 10, name: "ReceivedQuantityInBaseLV", kind: "message", localName: "ReceivedQuantityInBaseLV", jsonName: "ReceivedQuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 11, name: "TrackingURL", kind: "scalar", localName: "TrackingURL", jsonName: "TrackingURL", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Goods", "HandlingunitID"] } } }); } @@ -2079,12 +2079,12 @@ export const QuantifiedGoodsByHU = new QuantifiedGoodsByHU$Type(); class QuantifiedGoodsByLine$Type extends MessageType { constructor() { super("api.QuantifiedGoodsByLine", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, - { no: 2, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, + { no: 2, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, name: "PreparedQuantity", kind: "message", localName: "PreparedQuantity", jsonName: "PreparedQuantity", T: () => QuantityInLV, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order" } }, - { no: 4, name: "PreparedQuantityInBaseLV", kind: "message", localName: "PreparedQuantityInBaseLV", jsonName: "PreparedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow,Order" } }, + { no: 4, name: "PreparedQuantityInBaseLV", kind: "message", localName: "PreparedQuantityInBaseLV", jsonName: "PreparedQuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow,Order" } }, { no: 5, name: "ReceivedQuantity", kind: "message", localName: "ReceivedQuantity", jsonName: "ReceivedQuantity", T: () => QuantityInLV, options: { "api.dataRestrictionKey": "Stock,Executionflow,Order" } }, - { no: 6, name: "ReceivedQuantityInBaseLV", kind: "message", localName: "ReceivedQuantityInBaseLV", jsonName: "ReceivedQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow,Order" } }, + { no: 6, name: "ReceivedQuantityInBaseLV", kind: "message", localName: "ReceivedQuantityInBaseLV", jsonName: "ReceivedQuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow,Order" } }, { no: 7, name: "IsReported", kind: "scalar", localName: "IsReported", jsonName: "IsReported", T: 8 /*ScalarType.BOOL*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Goods", "LineID"] } } }); } @@ -2169,13 +2169,13 @@ export const QuantifiedGoodsByLine = new QuantifiedGoodsByLine$Type(); class QuantifiedDatedGoodsByExeflow$Type extends MessageType { constructor() { super("api.QuantifiedDatedGoodsByExeflow", [ - { no: 8, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, - { no: 2, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 8, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, + { no: 2, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 10, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 5, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } }, + { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 5, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } } } }, { no: 9, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 6, name: "StockMovementGenerated", kind: "scalar", localName: "StockMovementGenerated", jsonName: "StockMovementGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 7, name: "ContentSummaryGenerated", kind: "scalar", localName: "ContentSummaryGenerated", jsonName: "ContentSummaryGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } } @@ -2284,11 +2284,11 @@ export const QuantifiedDatedGoodsByExeflow = new QuantifiedDatedGoodsByExeflow$T class QuantifiedGoodsByExeflow$Type extends MessageType { constructor() { super("api.QuantifiedGoodsByExeflow", [ - { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, - { no: 2, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 5, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } }, + { no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods, options: { "n1validate.rules": { message: { required: true } }, "api.transientRef": "Stock,Payload.Goods,hard" } }, + { no: 2, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "LineID", kind: "scalar", localName: "LineID", jsonName: "LineID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "api.dataRestrictionKey": "Handlingunit", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Handlingunit", Group: "handlingunit", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 5, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } } } }, { no: 8, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 6, name: "StockMovementGenerated", kind: "scalar", localName: "StockMovementGenerated", jsonName: "StockMovementGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 7, name: "ContentSummaryGenerated", kind: "scalar", localName: "ContentSummaryGenerated", jsonName: "ContentSummaryGenerated", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, @@ -2392,7 +2392,7 @@ export const QuantifiedGoodsByExeflow = new QuantifiedGoodsByExeflow$Type(); class QuantityByLV$Type extends MessageType { constructor() { super("api.QuantityByLV", [ - { no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } }, { no: 3, name: "Quantity", kind: "scalar", localName: "Quantity", jsonName: "Quantity", T: 2 /*ScalarType.FLOAT*/ }, { no: 4, name: "Priority", kind: "scalar", localName: "Priority", jsonName: "Priority", T: 9 /*ScalarType.STRING*/ } @@ -2463,9 +2463,9 @@ export const QuantityByLV = new QuantityByLV$Type(); class QuantityInLV$Type extends MessageType { constructor() { super("api.QuantityInLV", [ - { no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } }, - { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { gte: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "10.5" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Nullable(Decimal64(6)))" }] } } } + { no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,String)" }] } } }, + { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "n1validate.rules": { float: { gte: 0 } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "10.5" }, "api.dataRestrictionKey": "Executionflow,Handlingunit,Order", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Handlingunit", Group: "handlingunit", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "SimpleAggregateFunction(anyLast,Nullable(Decimal64(6)))" }] } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["LVID"] } } }); } create(value?: PartialMessage): QuantityInLV { @@ -2528,11 +2528,11 @@ class StockSnapshot$Type extends MessageType { super("api.StockSnapshot", [ { no: 6, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime }, { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "api.dataRestrictionKey": "Executionflow,Order", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Order", Group: "order", Queryable: true }, { Context: "Stock", Group: "stock", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 4, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "validate.rules": { message: { required: true } } } }, - { no: 5, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 7, name: "IsTotalQuantity", kind: "scalar", localName: "IsTotalQuantity", jsonName: "IsTotalQuantity", T: 8 /*ScalarType.BOOL*/, options: { "validate.rules": { bool: { unauthorized: false } } } }, + { no: 4, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => QuantityInLV, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 5, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, + { no: 7, name: "IsTotalQuantity", kind: "scalar", localName: "IsTotalQuantity", jsonName: "IsTotalQuantity", T: 8 /*ScalarType.BOOL*/, options: { "n1validate.rules": { bool: { unauthorized: false } } } }, { no: 8, name: "PartialQuantities", kind: "scalar", localName: "PartialQuantities", jsonName: "PartialQuantities", repeat: 1 /*RepeatType.PACKED*/, T: 2 /*ScalarType.FLOAT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, - { no: 9, name: "PreviousQuantityInBaseLV", kind: "message", localName: "PreviousQuantityInBaseLV", jsonName: "PreviousQuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } } + { no: 9, name: "PreviousQuantityInBaseLV", kind: "message", localName: "PreviousQuantityInBaseLV", jsonName: "PreviousQuantityInBaseLV", T: () => QuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Quantity"] } } }); } create(value?: PartialMessage): StockSnapshot { @@ -2626,7 +2626,7 @@ class StockMovementClaim$Type extends MessageType { constructor() { super("api.StockMovementClaim", [ { no: 1, 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 added per type" }, "api.aggKey": "ClaimTypeID" } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the stock move" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } } + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the stock move" }, "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } } ]); } create(value?: PartialMessage): StockMovementClaim { @@ -2680,17 +2680,17 @@ export const StockMovementClaim = new StockMovementClaim$Type(); class StockMovement$Type extends MessageType { constructor() { super("api.StockMovement", [ - { no: 1, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "ClaimAdded", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.StockMovementTypeCode", StockMovementTypeCode], options: { "validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Codes used in StockMovementReason to explain stock movement" }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } }, + { no: 1, name: "DateTime", kind: "message", localName: "DateTime", jsonName: "DateTime", T: () => DateTime, options: { "n1validate.rules": { message: { required: true } } } }, + { no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggSkip": "ClaimAdded", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 3, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.StockMovementTypeCode", StockMovementTypeCode], options: { "n1validate.rules": { enum: { definedOnly: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Codes used in StockMovementReason to explain stock movement" }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } }, { no: 4, name: "HandlingunitID", kind: "scalar", localName: "HandlingunitID", jsonName: "HandlingunitID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 17, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 5, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 6, name: "ExecutionflowLineID", kind: "scalar", localName: "ExecutionflowLineID", jsonName: "ExecutionflowLineID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 7, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } }, { no: 8, name: "OperationReference", kind: "scalar", localName: "OperationReference", jsonName: "OperationReference", T: 9 /*ScalarType.STRING*/, options: { "api.kpiItems": { Items: [{ Context: "Movement", Group: "movement", Queryable: true }] } } }, - { no: 9, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => MovementQuantityInLV, options: { "validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } }, - { no: 10, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => MovementQuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } }, + { no: 9, name: "Quantity", kind: "message", localName: "Quantity", jsonName: "Quantity", T: () => MovementQuantityInLV, options: { "n1validate.rules": { message: { required: true } }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } }, + { no: 10, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => MovementQuantityInLV, options: { "n1validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] } } }, { no: 11, name: "MvtAlreadyUsedInStock", kind: "scalar", localName: "MvtAlreadyUsedInStock", jsonName: "MvtAlreadyUsedInStock", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, { no: 12, name: "QuantityByLVs", kind: "message", localName: "QuantityByLVs", jsonName: "QuantityByLVs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }, { Context: "Movement", Group: "movement" }] } } }, { no: 13, name: "LVDetailledQuantity", kind: "scalar", localName: "LVDetailledQuantity", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } }, @@ -2852,9 +2852,9 @@ export const StockMovement = new StockMovement$Type(); class MovementQuantityInLV$Type extends MessageType { constructor() { super("api.MovementQuantityInLV", [ - { no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Stock,Executionflow", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, - { no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] } } }, - { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "validate.rules": { float: { notIn: [0] } }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] } } } + { no: 1, name: "LVID", kind: "scalar", localName: "LVID", jsonName: "LVID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Logistical variant ID", example: "\"30\"" }, "api.dataRestrictionKey": "Stock,Executionflow", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, + { no: 2, name: "LVName", kind: "scalar", localName: "LVName", jsonName: "LVName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] } } }, + { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 2 /*ScalarType.FLOAT*/, options: { "n1validate.rules": { float: { notIn: [0] } }, "api.dataRestrictionKey": "Stock,Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }, { Context: "Movement", Group: "movement", Queryable: true }] } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["LVID"] } } }); } create(value?: PartialMessage): MovementQuantityInLV { diff --git a/workflow.ts b/workflow.ts index 03c68462..bc6b933f 100644 --- a/workflow.ts +++ b/workflow.ts @@ -1018,9 +1018,9 @@ export enum WorkflowStatusEnum { class RetryWorkflowRequest$Type extends MessageType { constructor() { super("api.RetryWorkflowRequest", [ - { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["WorkflowId", "RunId"] } } }); } create(value?: PartialMessage): RetryWorkflowRequest { @@ -1127,13 +1127,13 @@ export const RetryWorkflowResult = new RetryWorkflowResult$Type(); class StartWorkflowCreateProjectRequest$Type extends MessageType { constructor() { super("api.StartWorkflowCreateProjectRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserSub", kind: "scalar", localName: "UserSub", jsonName: "UserSub", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ManagerEmail", kind: "scalar", localName: "ManagerEmail", jsonName: "ManagerEmail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserSub", kind: "scalar", localName: "UserSub", jsonName: "UserSub", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ManagerEmail", kind: "scalar", localName: "ManagerEmail", jsonName: "ManagerEmail", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module }, { no: 6, name: "ProjectType", kind: "enum", localName: "ProjectType", jsonName: "ProjectType", T: () => ["api.ProjectType", ProjectType] }, - { no: 7, name: "ProjectName", kind: "scalar", localName: "ProjectName", jsonName: "ProjectName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 7, name: "ProjectName", kind: "scalar", localName: "ProjectName", jsonName: "ProjectName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId", "ProjectId", "UserSub", "ManagerEmail"] } } }); } create(value?: PartialMessage): StartWorkflowCreateProjectRequest { @@ -1268,9 +1268,9 @@ export const StartWorkflowCreateProjectResult = new StartWorkflowCreateProjectRe class StartWorkflowDeleteProjectRequest$Type extends MessageType { constructor() { super("api.StartWorkflowDeleteProjectRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "ProjectType", kind: "enum", localName: "ProjectType", jsonName: "ProjectType", T: () => ["api.ProjectType", ProjectType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId", "ProjectId", "UserId"] } } }); } @@ -1385,8 +1385,8 @@ export const StartWorkflowDeleteProjectResult = new StartWorkflowDeleteProjectRe class StartWorkflowDeleteCoreRequest$Type extends MessageType { constructor() { super("api.StartWorkflowDeleteCoreRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "ProjectType", kind: "enum", localName: "ProjectType", jsonName: "ProjectType", T: () => ["api.ProjectType", ProjectType] } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId", "ProjectId"] } } }); } @@ -1494,10 +1494,10 @@ export const StartWorkflowDeleteCoreResult = new StartWorkflowDeleteCoreResult$T class StartWorkflowDeletePartnerAppRequest$Type extends MessageType { constructor() { super("api.StartWorkflowDeletePartnerAppRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "PartnerAppId", kind: "scalar", localName: "PartnerAppId", jsonName: "PartnerAppId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "PartnerAppId", kind: "scalar", localName: "PartnerAppId", jsonName: "PartnerAppId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId", "ProjectId", "PartnerAppId", "UserId"] } } }); } create(value?: PartialMessage): StartWorkflowDeletePartnerAppRequest { @@ -1611,9 +1611,9 @@ export const StartWorkflowDeletePartnerAppResult = new StartWorkflowDeletePartne class StartWorkflowDeleteConnectionRequest$Type extends MessageType { constructor() { super("api.StartWorkflowDeleteConnectionRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ConnectionId", kind: "scalar", localName: "ConnectionId", jsonName: "ConnectionId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ConnectionId", kind: "scalar", localName: "ConnectionId", jsonName: "ConnectionId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId", "ConnectionId", "UserId"] } } }); } create(value?: PartialMessage): StartWorkflowDeleteConnectionRequest { @@ -1720,7 +1720,7 @@ export const StartWorkflowDeleteConnectionResult = new StartWorkflowDeleteConnec class StartWorkflowBillingRequest$Type extends MessageType { constructor() { super("api.StartWorkflowBillingRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId"] } } }); } create(value?: PartialMessage): StartWorkflowBillingRequest { @@ -1813,7 +1813,7 @@ export const StartWorkflowBillingResult = new StartWorkflowBillingResult$Type(); class StopWorkflowBillingRequest$Type extends MessageType { constructor() { super("api.StopWorkflowBillingRequest", [ - { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId"] } } }); } create(value?: PartialMessage): StopWorkflowBillingRequest { @@ -1898,18 +1898,18 @@ export const StopWorkflowBillingResult = new StopWorkflowBillingResult$Type(); class StartWorkflowExtractDataFromDBRequest$Type extends MessageType { constructor() { super("api.StartWorkflowExtractDataFromDBRequest", [ - { no: 1, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 9, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 9, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 7, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 8, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 11, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 12, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 12, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, { no: 13, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, { no: 14, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, { no: 15, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } @@ -2097,17 +2097,17 @@ export const StartWorkflowExtractDataFromDBRequest = new StartWorkflowExtractDat class StartWorkflowCrossExtractDataFromDBRequest$Type extends MessageType { constructor() { super("api.StartWorkflowCrossExtractDataFromDBRequest", [ - { no: 1, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 3, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 7, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 7, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 8, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 9, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 10, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 11, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 11, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, { no: 12, name: "DateFormat", kind: "scalar", localName: "DateFormat", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, { no: 13, name: "NumberFormat", kind: "scalar", localName: "NumberFormat", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, { no: 14, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } }, @@ -2350,21 +2350,21 @@ export const StartWorkflowExtractDataFromDBResult = new StartWorkflowExtractData class StartWorkflowExtractKPIRequest$Type extends MessageType { constructor() { super("api.StartWorkflowExtractKPIRequest", [ - { no: 1, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectId", kind: "scalar", localName: "ProjectId", jsonName: "ProjectId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "EntityBlockFilters", kind: "message", localName: "EntityBlockFilters", jsonName: "EntityBlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityBlockFilter }, { no: 6, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => CHFilter }, { no: 7, name: "Dimensions", kind: "message", localName: "Dimensions", jsonName: "Dimensions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHDimension }, { no: 8, name: "Metrics", kind: "message", localName: "Metrics", jsonName: "Metrics", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHMetric }, - { no: 9, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, - { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to find the kpi data from", example: "\"stock_extended\"" } } }, - { no: 11, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 12, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 9, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" } } }, + { no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to find the kpi data from", example: "\"stock_extended\"" } } }, + { no: 11, name: "TargetDomain", kind: "scalar", localName: "TargetDomain", jsonName: "TargetDomain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 12, name: "TargetType", kind: "scalar", localName: "TargetType", jsonName: "TargetType", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 13, name: "Fields", kind: "scalar", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 14, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 15, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 14, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 15, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 16, name: "ColumnNames", kind: "scalar", localName: "ColumnNames", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 17, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 18, name: "FieldIdxLVDetailedQuantity", kind: "scalar", localName: "FieldIdxLVDetailedQuantity", jsonName: "FieldIdxLVDetailedQuantity", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, @@ -2659,7 +2659,7 @@ class RegisterModuleWorkflowsRequest$Type extends MessageType ModuleRegistration }, - { no: 2, name: "Tasklist", kind: "scalar", localName: "Tasklist", jsonName: "Tasklist", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "Tasklist", kind: "scalar", localName: "Tasklist", jsonName: "Tasklist", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Tasklist"] } } }); } create(value?: PartialMessage): RegisterModuleWorkflowsRequest { @@ -2752,7 +2752,7 @@ class DeregisterModuleWorkflowsRequest$Type extends MessageType ModuleDeregistration }, - { no: 2, name: "Tasklist", kind: "scalar", localName: "Tasklist", jsonName: "Tasklist", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "Tasklist", kind: "scalar", localName: "Tasklist", jsonName: "Tasklist", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Tasklist"] } } }); } create(value?: PartialMessage): DeregisterModuleWorkflowsRequest { @@ -3017,9 +3017,9 @@ export const GetModuleWorkflowsResult = new GetModuleWorkflowsResult$Type(); class StopWorkflowRequest$Type extends MessageType { constructor() { super("api.StopWorkflowRequest", [ - { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "WorkflowId", kind: "scalar", localName: "WorkflowId", jsonName: "WorkflowId", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "RunId", kind: "scalar", localName: "RunId", jsonName: "RunId", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["WorkflowId", "Domain"] } } }); } create(value?: PartialMessage): StopWorkflowRequest { @@ -3437,12 +3437,12 @@ export const StartWorkflowDeleteOrganisationResult = new StartWorkflowDeleteOrga class StartWorkflowRecoverDataRequest$Type extends MessageType { constructor() { super("api.StartWorkflowRecoverDataRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, { no: 2, name: "Entity", kind: "enum", localName: "Entity", jsonName: "Entity", T: () => ["api.EntityType", EntityType] }, { no: 3, name: "RecoveryType", kind: "enum", localName: "RecoveryType", jsonName: "RecoveryType", T: () => ["api.RecoverType", RecoverType] }, { no: 4, name: "ClearEntityData", kind: "scalar", localName: "ClearEntityData", jsonName: "ClearEntityData", T: 8 /*ScalarType.BOOL*/ }, { no: 6, name: "RestartJob", kind: "scalar", localName: "RestartJob", jsonName: "RestartJob", T: 8 /*ScalarType.BOOL*/ }, - { no: 7, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 7, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "Entity", "RecoveryType", "OrganisationID"] } } }); } create(value?: PartialMessage): StartWorkflowRecoverDataRequest { @@ -3671,8 +3671,8 @@ export const StartWorkflowCheckAndLaunchRecoverDataResult = new StartWorkflowChe class StartWorkflowUpdateMaterializedViewRequest$Type extends MessageType { constructor() { super("api.StartWorkflowUpdateMaterializedViewRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "OrganisationID"] } } }); } create(value?: PartialMessage): StartWorkflowUpdateMaterializedViewRequest {