diff --git a/core/shared.ts b/core/shared.ts index e98fe6a..c7cf6ce 100644 --- a/core/shared.ts +++ b/core/shared.ts @@ -338,7 +338,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 @@ -371,7 +371,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 // ]; /** @@ -2476,7 +2476,7 @@ export enum ResourceType { class RequestHeader$Type extends MessageType { constructor() { super("api.RequestHeader", [ - { no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } } + { no: 1, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } } ]); } create(value?: PartialMessage): RequestHeader { @@ -2523,8 +2523,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 { @@ -2578,7 +2578,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project", example: "\"Your_Project_ID\"" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project", example: "\"Your_Project_ID\"" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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"] } } }); @@ -2641,7 +2641,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the organisation" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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"] } } }); @@ -2704,7 +2704,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "BucketID", kind: "scalar", localName: "BucketID", jsonName: "BucketID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the bucket" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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"] } } }); @@ -2767,7 +2767,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the partnerApp" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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"] } } }); @@ -2830,7 +2830,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the connection" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "ConnectionID", kind: "scalar", localName: "ConnectionID", jsonName: "ConnectionID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the connection" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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"] } } }); @@ -2893,7 +2893,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the attachment type" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "AttachmentTypeID", kind: "scalar", localName: "AttachmentTypeID", jsonName: "AttachmentTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the attachment type" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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\"" } } } ]); @@ -3082,7 +3082,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*/ } @@ -3153,7 +3153,7 @@ export const QueryHeader = new QueryHeader$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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1", notContains: " " } } } }, + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "n1validate.rules": { string: { minLen: "1", notContains: " " } } } }, { 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" } } } @@ -3373,11 +3373,11 @@ 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: 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*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["InputEvent", "EventTS", "Project", "Author", "EventID"] } } }); @@ -3467,7 +3467,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" }, "validate.rules": { string: { minLen: "1", maxLen: "192" } } } }, + { no: 2, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Object_ID\"" }, "n1validate.rules": { string: { minLen: "1", maxLen: "192" } } } }, { 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" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["RefID"] } } }); } @@ -3711,8 +3711,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } }, "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 }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, - { no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { tzData: true } } } } + { no: 1, name: "DateTime", kind: "scalar", localName: "DateTime", jsonName: "DateTime", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format", example: "\"2023-01-01T00:00:00Z\"" }, "n1validate.rules": { string: { dateIso8601: true } }, "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 }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }, + { no: 2, name: "AuthorTimeZone", kind: "scalar", localName: "AuthorTimeZone", jsonName: "AuthorTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Time zone from where the author emits the event in this format", example: "\"Europe/Paris\"" }, "n1validate.rules": { string: { tzData: true } } } } ]); } create(value?: PartialMessage): DateTime { @@ -3857,7 +3857,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 4217 currency code", example: "[\"EUR\", \"USD\"]" }, "validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } + { no: 2, name: "Currency", kind: "enum", localName: "Currency", jsonName: "Currency", T: () => ["api.Currency", Currency], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 4217 currency code", example: "[\"EUR\", \"USD\"]" }, "n1validate.rules": { enum: { definedOnly: true } }, "api.kpiItems": { Items: [{ Context: "Claim", Group: "claim", Queryable: true }] } } } ]); } create(value?: PartialMessage): Amount { @@ -4520,11 +4520,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" }, "validate.rules": { string: { maxLen: "250" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" }, "validate.rules": { string: { maxLen: "250" } } } }, - { no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" }, "validate.rules": { repeated: { items: { string: { maxLen: "250" } } } } } }, - { no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"not\"" }, "validate.rules": { string: { maxLen: "50" } } } }, - { no: 5, 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" }, "validate.rules": { string: { maxLen: "250" } } } } + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" }, "n1validate.rules": { string: { maxLen: "250" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if only one value" }, "n1validate.rules": { string: { maxLen: "250" } } } }, + { no: 3, name: "Values", kind: "scalar", localName: "Values", jsonName: "Values", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Use this parameter if more than one value" }, "n1validate.rules": { repeated: { items: { string: { maxLen: "250" } } } } } }, + { no: 4, name: "Operator", kind: "scalar", localName: "Operator", jsonName: "Operator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Allowed values : \"\", \"not\"" }, "n1validate.rules": { string: { maxLen: "50" } } } }, + { no: 5, 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" }, "n1validate.rules": { string: { maxLen: "250" } } } } ]); } create(value?: PartialMessage): SimpleFilter { @@ -4670,10 +4670,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" }, "validate.rules": { string: { maxLen: "250" } } } }, - { no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" }, "validate.rules": { string: { maxLen: "250" } } } }, - { no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" }, "validate.rules": { string: { maxLen: "250" } } } }, - { no: 4, 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" }, "validate.rules": { string: { maxLen: "250" } } } } + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path", example: "\"ID.RefID\"" }, "n1validate.rules": { string: { maxLen: "250" } } } }, + { no: 2, name: "valueLt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Maximum value" }, "n1validate.rules": { string: { maxLen: "250" } } } }, + { no: 3, name: "valueGt", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Minimum value" }, "n1validate.rules": { string: { maxLen: "250" } } } }, + { no: 4, 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" }, "n1validate.rules": { string: { maxLen: "250" } } } } ]); } create(value?: PartialMessage): RangeFilter { @@ -4804,7 +4804,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Attribute", kind: "scalar", localName: "Attribute", jsonName: "Attribute", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Filter path" }, "n1validate.rules": { string: { minLen: "1" } } } }, { 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" } } } ]); @@ -5126,8 +5126,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Code", kind: "scalar", localName: "Code", jsonName: "Code", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the message" }, "n1validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Label of the message" }, "n1validate.rules": { string: { minLen: "1" } } } }, { 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"] } } }); } @@ -5764,7 +5764,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "validate.rules": { string: { dateIso8601: true } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format" }, "n1validate.rules": { string: { dateIso8601: true } }, "api.indexationType": { Types: [{ Context: "*", Type: "date" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } } ]); } create(value?: PartialMessage): StringDateObject { @@ -5811,9 +5811,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 { @@ -5875,9 +5875,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" }, "n1validate.rules": { string: { minLen: "1" } } } }, { 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: { "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." }, "validate.rules": { int32: { gt: 0 } } } } + { no: 4, name: "Timeout", kind: "scalar", localName: "Timeout", jsonName: "Timeout", T: 5 /*ScalarType.INT32*/, options: { "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." }, "n1validate.rules": { int32: { gt: 0 } } } } ]); } create(value?: PartialMessage): ModuleRegistration { @@ -5946,7 +5946,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "WorkflowPath", kind: "scalar", localName: "WorkflowPath", jsonName: "WorkflowPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Go path of module child workflow implementation" }, "n1validate.rules": { string: { minLen: "1" } } } }, { 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" } } } ]); } @@ -6008,12 +6008,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, "CLAIM_ENTITY_TYPE_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 6, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality, "CLAIM_CRITICALITY_"], 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, "CLAIM_ENTITY_TYPE_"], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 6, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality, "CLAIM_CRITICALITY_"], 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*/ }, @@ -6021,7 +6021,7 @@ 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, "CLAIM_STATUS_"] }, - { no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, { no: 15, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector, "CLAIM_SECTOR_"] }, { no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ } ]); @@ -6183,8 +6183,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, "CLAIM_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, - { no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "validate.rules": { enum: { definedOnly: true } } } }, + { no: 1, name: "FromStatus", kind: "enum", localName: "FromStatus", jsonName: "FromStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], options: { "n1validate.rules": { enum: { definedOnly: true } } } }, + { no: 2, name: "ToStatus", kind: "enum", localName: "ToStatus", jsonName: "ToStatus", T: () => ["api.ClaimStatus", ClaimStatus, "CLAIM_STATUS_"], 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*/ } ]); @@ -6254,7 +6254,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*/ } ]); } @@ -6309,8 +6309,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 { @@ -6364,8 +6364,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ClaimTypeID", kind: "scalar", localName: "ClaimTypeID", jsonName: "ClaimTypeID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the claim type" }, "n1validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Reason of the claim type" }, "n1validate.rules": { string: { minLen: "1" } } } }, { 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" } } } ]); } @@ -6427,12 +6427,12 @@ 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: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", 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, "ENTITY_TYPE_"], 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: 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: "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, "ENTITY_TYPE_"], 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 } } } } ]); } create(value?: PartialMessage): AttachmentType { @@ -6514,8 +6514,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ID of the attachment type" }, "n1validate.rules": { string: { minLen: "1" } }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Code of the attachment type" }, "n1validate.rules": { string: { minLen: "1" } }, "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" } } } ]); } @@ -6703,16 +6703,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } }, + { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "n1validate.rules": { string: { minLen: "1", tzData: true } } } }, { 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" } } } @@ -6931,8 +6931,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 { @@ -7033,7 +7033,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, "RESOURCE_TYPE_"] }, { no: 4, name: "PlatformReserved", kind: "scalar", localName: "PlatformReserved", jsonName: "PlatformReserved", T: 8 /*ScalarType.BOOL*/ }, @@ -7207,8 +7207,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 { @@ -7325,9 +7325,9 @@ export const UserUIPermissions = new UserUIPermissions$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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } create(value?: PartialMessage): ElementByMatchQuery { @@ -7433,8 +7433,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value required for the search", example: "\"ObjectID\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, 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" }, "validate.rules": { repeated: { minItems: "1" } } } } + { no: 1, name: "Match", kind: "scalar", localName: "Match", jsonName: "Match", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Value required for the search", example: "\"ObjectID\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, 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" }, "n1validate.rules": { repeated: { minItems: "1" } } } } ]); } create(value?: PartialMessage): MatchElementField { @@ -7552,7 +7552,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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "ISO 639 code message language", example: "\"en\"" }, "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } } + { no: 2, 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", example: "\"en\"" }, "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } } ]); } create(value?: PartialMessage): LabelByLanguage { diff --git a/counter.ts b/counter.ts index 9011a13..0f97ceb 100644 --- a/counter.ts +++ b/counter.ts @@ -38,8 +38,8 @@ export interface NextCounterResult { class NextProjectCounterRequest$Type extends MessageType { constructor() { super("vizapi.NextProjectCounterRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"claims\"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"claims\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Key"] } } }); } create(value?: PartialMessage): NextProjectCounterRequest { diff --git a/index.ts b/index.ts index a9ca64d..7315ef2 100644 --- a/index.ts +++ b/index.ts @@ -2,8 +2,8 @@ export * from './counter.client' export * from './counter' + export * from './n1validate' export * from './openapiv2' - export * from './validate' export * from './visibility' export * from './viz-composed-field.client' export * from './viz-composed-field' diff --git a/validate.ts b/n1validate.ts similarity index 95% rename from validate.ts rename to n1validate.ts index eaff69a..47b2175 100644 --- a/validate.ts +++ b/n1validate.ts @@ -1,5 +1,5 @@ // @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name -// @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/package.json b/package.json index 5ca0ada..72de237 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-viz-sdk", - "version": "1.14.0-SNAPSHOT-260511083205", + "version": "1.14.0-SNAPSHOT-260525130750", "description": "npm libs from visibility model proto files", "homepage": "", "main": "index.ts", diff --git a/viz-composed-field.ts b/viz-composed-field.ts index c365d28..3a286f8 100644 --- a/viz-composed-field.ts +++ b/viz-composed-field.ts @@ -455,7 +455,7 @@ class ComposedField$Type extends MessageType { super("vizapi.ComposedField", [ { no: 1, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" } } }, { no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" } } }, - { no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the project" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } }, { no: 5, name: "CreateUserID", kind: "scalar", localName: "CreateUserID", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } }, { no: 6, name: "UpdateUserID", kind: "scalar", localName: "UpdateUserID", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did the last update" } } }, @@ -572,8 +572,8 @@ export const ComposedField = new ComposedField$Type(); class GetComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.GetComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } }); } create(value?: PartialMessage): GetComposedFieldRequest { @@ -672,11 +672,11 @@ export const GetComposedFieldResult = new GetComposedFieldResult$Type(); class CreateComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.CreateComposedFieldRequest", [ - { 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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } }); } create(value?: PartialMessage): CreateComposedFieldRequest { @@ -797,12 +797,12 @@ export const CreateComposedFieldResult = new CreateComposedFieldResult$Type(); class UpdateComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.UpdateComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } }); } create(value?: PartialMessage): UpdateComposedFieldRequest { @@ -930,8 +930,8 @@ export const UpdateComposedFieldResult = new UpdateComposedFieldResult$Type(); class DeleteComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.DeleteComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } }); } create(value?: PartialMessage): DeleteComposedFieldRequest { @@ -1022,7 +1022,7 @@ export const DeleteComposedFieldResult = new DeleteComposedFieldResult$Type(); class ListComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.ListComposedFieldRequest", [ - { 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: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } }, { no: 3, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); @@ -1131,8 +1131,8 @@ export const ListComposedFieldResult = new ListComposedFieldResult$Type(); class GetProjectComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.GetProjectComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field", required: ["Header", "ComposedFieldID"] } } }); } create(value?: PartialMessage): GetProjectComposedFieldRequest { @@ -1231,11 +1231,11 @@ export const GetProjectComposedFieldResult = new GetProjectComposedFieldResult$T class CreateProjectComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.CreateProjectComposedFieldRequest", [ - { 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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be stored ", required: ["Header", "Name", "ScreenID", "TabID", "Payload"] } } }); } create(value?: PartialMessage): CreateProjectComposedFieldRequest { @@ -1356,12 +1356,12 @@ export const CreateProjectComposedFieldResult = new CreateProjectComposedFieldRe class UpdateProjectComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.UpdateProjectComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content in the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Content that needs to be updated", required: ["Header", "ComposedFieldID", "Name", "ScreenID", "TabID", "Payload"] } } }); } create(value?: PartialMessage): UpdateProjectComposedFieldRequest { @@ -1489,8 +1489,8 @@ export const UpdateProjectComposedFieldResult = new UpdateProjectComposedFieldRe class DeleteProjectComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.DeleteProjectComposedFieldRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "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: "ComposedFieldID", kind: "scalar", localName: "ComposedFieldID", jsonName: "ComposedFieldID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Composed Field" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Composed Field to be deleted", required: ["Header", "ComposedFieldID"] } } }); } create(value?: PartialMessage): DeleteProjectComposedFieldRequest { @@ -1581,7 +1581,7 @@ export const DeleteProjectComposedFieldResult = new DeleteProjectComposedFieldRe class ListProjectComposedFieldRequest$Type extends MessageType { constructor() { super("vizapi.ListProjectComposedFieldRequest", [ - { 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: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } }, { no: 3, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); diff --git a/viz-dashboard.ts b/viz-dashboard.ts index e070701..7eae9a4 100644 --- a/viz-dashboard.ts +++ b/viz-dashboard.ts @@ -653,7 +653,7 @@ export const Dashboard = new Dashboard$Type(); class ListDashboardRequest$Type extends MessageType { constructor() { super("vizapi.ListDashboardRequest", [ - { 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): ListDashboardRequest { @@ -746,8 +746,8 @@ export const ListDashboardResult = new ListDashboardResult$Type(); class CreateDashboardRequest$Type extends MessageType { constructor() { super("vizapi.CreateDashboardRequest", [ - { 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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All widgets in Dashboard" } } }, { no: 4, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, { no: 8, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ } @@ -870,8 +870,8 @@ export const CreateDashboardResult = new CreateDashboardResult$Type(); class DeleteDashboardRequest$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard to be deleted", required: ["Header", "DashboardID"] } } }); } create(value?: PartialMessage): DeleteDashboardRequest { @@ -962,7 +962,7 @@ export const DeleteDashboardResult = new DeleteDashboardResult$Type(); class DeleteDashboardsForOrganisationRequest$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardsForOrganisationRequest", [ - { no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Organization" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Organization" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Organization identifier to delete the dashboards from", required: ["OrganisationID"] } } }); } create(value?: PartialMessage): DeleteDashboardsForOrganisationRequest { @@ -1047,7 +1047,7 @@ export const DeleteDashboardsForOrganisationResult = new DeleteDashboardsForOrga class DeleteDashboardsForProjectRequest$Type extends MessageType { constructor() { super("vizapi.DeleteDashboardsForProjectRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Project identifier to delete the dashboards from", required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteDashboardsForProjectRequest { @@ -1132,8 +1132,8 @@ export const DeleteDashboardsForProjectResult = new DeleteDashboardsForProjectRe class UpdateDashboardRequest$Type extends MessageType { constructor() { super("vizapi.UpdateDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Name", kind: "message", localName: "Name", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } }, { no: 4, name: "Content", kind: "message", localName: "Content", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } }, { no: 5, name: "IsPrivate", kind: "message", localName: "IsPrivate", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, @@ -1260,8 +1260,8 @@ export const UpdateDashboardResult = new UpdateDashboardResult$Type(); class GetDashboardRequest$Type extends MessageType { constructor() { super("vizapi.GetDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard", required: ["Header", "DashboardID"] } } }); } create(value?: PartialMessage): GetDashboardRequest { @@ -1360,9 +1360,9 @@ export const GetDashboardResult = new GetDashboardResult$Type(); class CopyDashboardRequest$Type extends MessageType { constructor() { super("vizapi.CopyDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DashboardID", "Name"] } } }); } create(value?: PartialMessage): CopyDashboardRequest { @@ -1468,7 +1468,7 @@ export const CopyDashboardResult = new CopyDashboardResult$Type(); class ListProjectDashboardRequest$Type extends MessageType { constructor() { super("vizapi.ListProjectDashboardRequest", [ - { 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): ListProjectDashboardRequest { @@ -1561,8 +1561,8 @@ export const ListProjectDashboardResult = new ListProjectDashboardResult$Type(); class CreateProjectDashboardRequest$Type extends MessageType { constructor() { super("vizapi.CreateProjectDashboardRequest", [ - { 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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "content", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All widgets in Dashboard" } } }, { no: 4, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, { no: 8, name: "AutoRefresh", kind: "scalar", localName: "AutoRefresh", jsonName: "AutoRefresh", T: 5 /*ScalarType.INT32*/ } @@ -1685,8 +1685,8 @@ export const CreateProjectDashboardResult = new CreateProjectDashboardResult$Typ class DeleteProjectDashboardRequest$Type extends MessageType { constructor() { super("vizapi.DeleteProjectDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard to be deleted", required: ["Header", "DashboardID"] } } }); } create(value?: PartialMessage): DeleteProjectDashboardRequest { @@ -1777,8 +1777,8 @@ export const DeleteProjectDashboardResult = new DeleteProjectDashboardResult$Typ class UpdateProjectDashboardRequest$Type extends MessageType { constructor() { super("vizapi.UpdateProjectDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Name", kind: "message", localName: "Name", jsonName: "Name", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the Dashboard" } } }, { no: 4, name: "Content", kind: "message", localName: "Content", jsonName: "Content", T: () => StringObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "All the widgets in Dashboard" } } }, { no: 5, name: "IsPrivate", kind: "message", localName: "IsPrivate", jsonName: "IsPrivate", T: () => BoolObject, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the Dashboard" } } }, @@ -1905,8 +1905,8 @@ export const UpdateProjectDashboardResult = new UpdateProjectDashboardResult$Typ class GetProjectDashboardRequest$Type extends MessageType { constructor() { super("vizapi.GetProjectDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the Dashboard", required: ["Header", "DashboardID"] } } }); } create(value?: PartialMessage): GetProjectDashboardRequest { @@ -2005,9 +2005,9 @@ export const GetProjectDashboardResult = new GetProjectDashboardResult$Type(); class CopyProjectDashboardRequest$Type extends MessageType { constructor() { super("vizapi.CopyProjectDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DashboardID", "Name"] } } }); } create(value?: PartialMessage): CopyProjectDashboardRequest { @@ -2113,9 +2113,9 @@ export const CopyProjectDashboardResult = new CopyProjectDashboardResult$Type(); class SetOwnerDashboardRequest$Type extends MessageType { constructor() { super("vizapi.SetOwnerDashboardRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the new owner of the Dashboard" }, "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: "DashboardID", kind: "scalar", localName: "DashboardID", jsonName: "DashboardID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the new owner of the Dashboard" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information to set the owner of a dashboard", required: ["Header", "DashboardID", "OwnerID"] } } }); } create(value?: PartialMessage): SetOwnerDashboardRequest { diff --git a/viz-default-view.ts b/viz-default-view.ts index 54122d5..3a31a5a 100644 --- a/viz-default-view.ts +++ b/viz-default-view.ts @@ -85,8 +85,8 @@ export interface UpdatePlatformDefaultViewResult { class UpdatePlatformDefaultViewRequest$Type extends MessageType { constructor() { super("vizapi.UpdatePlatformDefaultViewRequest", [ - { no: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ViewID", "Payload"] } } }); } @@ -148,8 +148,8 @@ export const UpdatePlatformDefaultViewRequest = new UpdatePlatformDefaultViewReq class CreatePlatformDefaultViewRequest$Type extends MessageType { constructor() { super("vizapi.CreatePlatformDefaultViewRequest", [ - { no: 1, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ScreenID", "Payload"] } } }); } diff --git a/viz-motd.ts b/viz-motd.ts index 75e491d..c59461c 100644 --- a/viz-motd.ts +++ b/viz-motd.ts @@ -415,8 +415,8 @@ export const MotdMessageRes = new MotdMessageRes$Type(); class CreateMotdRequest$Type extends MessageType { constructor() { super("vizapi.CreateMotdRequest", [ - { no: 1, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } }, - { no: 2, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } }, + { no: 1, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "n1validate.rules": { string: { dateIso8601: true } } } }, + { no: 2, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 3, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessage } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message request with the content and the dates" } } }); } @@ -479,8 +479,8 @@ class CreateMotdResult$Type extends MessageType { constructor() { super("vizapi.CreateMotdResult", [ { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } }, - { no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:01Z\"" }, "validate.rules": { string: { dateIso8601: true } } } }, + { no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "n1validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:01Z\"" }, "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessageRes } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Message result with ID, content and dates" } } }); } @@ -550,8 +550,8 @@ class UpdateMotdRequest$Type extends MessageType { constructor() { super("vizapi.UpdateMotdRequest", [ { no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/ }, - { no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "validate.rules": { string: { dateIso8601: true } } } }, - { no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:01Z\"" }, "validate.rules": { string: { dateIso8601: true } } } }, + { no: 2, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:00Z\"" }, "n1validate.rules": { string: { dateIso8601: true } } } }, + { no: 3, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in ISO 8601 format with time zone (accepted tzd formats: [+01:00, -01:00, Z])", example: "\"2023-01-01T00:00:01Z\"" }, "n1validate.rules": { string: { dateIso8601: true } } } }, { no: 4, name: "Message", kind: "message", localName: "Message", jsonName: "Message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MotdMessage } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Update an existing Message Of The Day using its key" } } }); } @@ -800,7 +800,7 @@ export const GetMotdResult = new GetMotdResult$Type(); class DeleteMotdRequest$Type extends MessageType { constructor() { super("vizapi.DeleteMotdRequest", [ - { 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): DeleteMotdRequest { diff --git a/viz-organisation-settings.ts b/viz-organisation-settings.ts index b5731b5..6fe19fe 100644 --- a/viz-organisation-settings.ts +++ b/viz-organisation-settings.ts @@ -255,10 +255,10 @@ export const OrganisationSetting = new OrganisationSetting$Type(); class PutOrganisationSettingRequest$Type extends MessageType { constructor() { super("vizapi.PutOrganisationSettingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" }, "n1validate.rules": { enum: { definedOnly: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value", "Visibility", "Header"] } } }); } create(value?: PartialMessage): PutOrganisationSettingRequest { @@ -388,8 +388,8 @@ export const PutOrganisationSettingResult = new PutOrganisationSettingResult$Typ class GetOrganisationSettingRequest$Type extends MessageType { constructor() { super("vizapi.GetOrganisationSettingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the organisation's setting to get", required: ["Header", "Key"] } } }); } create(value?: PartialMessage): GetOrganisationSettingRequest { @@ -442,8 +442,8 @@ export const GetOrganisationSettingRequest = new GetOrganisationSettingRequest$T class GetOrganisationSettingResult$Type extends MessageType { constructor() { super("vizapi.GetOrganisationSettingResult", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "Visibility", kind: "enum", localName: "Visibility", jsonName: "Visibility", T: () => ["vizapi.SettingVisibility", SettingVisibility, "SETTING_VISIBILITY_"], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility: public or private. If private, only the organisation can see the setting. If public, all of the organisation and its projects users can see the setting.", example: "\"SETTING_VISIBILITY_PUBLIC\"" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } @@ -505,8 +505,8 @@ export const GetOrganisationSettingResult = new GetOrganisationSettingResult$Typ class DeleteOrganisationSettingRequest$Type extends MessageType { constructor() { super("vizapi.DeleteOrganisationSettingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the organisation's setting to delete", required: ["Header", "Key"] } } }); } create(value?: PartialMessage): DeleteOrganisationSettingRequest { @@ -597,7 +597,7 @@ export const DeleteOrganisationSettingResult = new DeleteOrganisationSettingResu class ListOrganisationSettingsRequest$Type extends MessageType { constructor() { super("vizapi.ListOrganisationSettingsRequest", [ - { 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: { description: "Key of the organisation's setting to delete", required: ["Header"] } } }); } create(value?: PartialMessage): ListOrganisationSettingsRequest { @@ -690,7 +690,7 @@ export const ListOrganisationSettingsResult = new ListOrganisationSettingsResult class DeleteSettingsForOrganisationRequest$Type extends MessageType { constructor() { super("vizapi.DeleteSettingsForOrganisationRequest", [ - { 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: { description: "Organisation to delete settings from", required: ["OrganisationID"] } } }); } create(value?: PartialMessage): DeleteSettingsForOrganisationRequest { diff --git a/viz-project-settings.ts b/viz-project-settings.ts index b3c9aff..d8c48cb 100644 --- a/viz-project-settings.ts +++ b/viz-project-settings.ts @@ -235,9 +235,9 @@ export const ProjectSetting = new ProjectSetting$Type(); class PutProjectSettingRequest$Type extends MessageType { constructor() { super("vizapi.PutProjectSettingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value", "Header"] } } }); } create(value?: PartialMessage): PutProjectSettingRequest { @@ -297,8 +297,8 @@ export const PutProjectSettingRequest = new PutProjectSettingRequest$Type(); class PutProjectSettingResult$Type extends MessageType { constructor() { super("vizapi.PutProjectSettingResult", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } create(value?: PartialMessage): PutProjectSettingResult { @@ -352,8 +352,8 @@ export const PutProjectSettingResult = new PutProjectSettingResult$Type(); class GetProjectSettingRequest$Type extends MessageType { constructor() { super("vizapi.GetProjectSettingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the project's setting to get", required: ["Header", "Key"] } } }); } create(value?: PartialMessage): GetProjectSettingRequest { @@ -406,8 +406,8 @@ export const GetProjectSettingRequest = new GetProjectSettingRequest$Type(); class GetProjectSettingResult$Type extends MessageType { constructor() { super("vizapi.GetProjectSettingResult", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } create(value?: PartialMessage): GetProjectSettingResult { @@ -461,8 +461,8 @@ export const GetProjectSettingResult = new GetProjectSettingResult$Type(); class DeleteProjectSettingRequest$Type extends MessageType { constructor() { super("vizapi.DeleteProjectSettingRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "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: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the project's setting to delete", required: ["Header", "Key"] } } }); } create(value?: PartialMessage): DeleteProjectSettingRequest { @@ -553,7 +553,7 @@ export const DeleteProjectSettingResult = new DeleteProjectSettingResult$Type(); class ListProjectSettingsRequest$Type extends MessageType { constructor() { super("vizapi.ListProjectSettingsRequest", [ - { 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: "Project's settings to list", required: ["Header"] } } }); } create(value?: PartialMessage): ListProjectSettingsRequest { @@ -646,7 +646,7 @@ export const ListProjectSettingsResult = new ListProjectSettingsResult$Type(); class ListProjectOrganisationSettingsRequest$Type extends MessageType { constructor() { super("vizapi.ListProjectOrganisationSettingsRequest", [ - { 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: "Project's organisation public settings to list", required: ["Header"] } } }); } create(value?: PartialMessage): ListProjectOrganisationSettingsRequest { @@ -739,7 +739,7 @@ export const ListProjectOrganisationSettingsResult = new ListProjectOrganisation class DeleteSettingsForProjectRequest$Type extends MessageType { constructor() { super("vizapi.DeleteSettingsForProjectRequest", [ - { 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: { description: "Project to delete settings from", required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteSettingsForProjectRequest { diff --git a/viz-tab.ts b/viz-tab.ts index ba47184..75a053d 100644 --- a/viz-tab.ts +++ b/viz-tab.ts @@ -37,7 +37,7 @@ export interface ListTabResult { class ListTabRequest$Type extends MessageType { constructor() { super("vizapi.ListTabRequest", [ - { no: 1, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "TabID", kind: "scalar", localName: "TabID", jsonName: "TabID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Tab" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["TabID"] } } }); } create(value?: PartialMessage): ListTabRequest { diff --git a/viz-user-settings.ts b/viz-user-settings.ts index fe22835..14cf6d0 100644 --- a/viz-user-settings.ts +++ b/viz-user-settings.ts @@ -185,8 +185,8 @@ export const UserSetting = new UserSetting$Type(); class PutUserSettingRequest$Type extends MessageType { constructor() { super("vizapi.PutUserSettingRequest", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Key: each key must be unique", example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark \"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair to store", required: ["Key", "Value"] } } }); } create(value?: PartialMessage): PutUserSettingRequest { @@ -240,8 +240,8 @@ export const PutUserSettingRequest = new PutUserSettingRequest$Type(); class PutUserSettingResult$Type extends MessageType { constructor() { super("vizapi.PutUserSettingResult", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } create(value?: PartialMessage): PutUserSettingResult { @@ -295,7 +295,7 @@ export const PutUserSettingResult = new PutUserSettingResult$Type(); class GetUserSettingRequest$Type extends MessageType { constructor() { super("vizapi.GetUserSettingRequest", [ - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the user's setting to get", required: ["Key"] } } }); } create(value?: PartialMessage): GetUserSettingRequest { @@ -342,8 +342,8 @@ export const GetUserSettingRequest = new GetUserSettingRequest$Type(); class GetUserSettingResult$Type extends MessageType { constructor() { super("vizapi.GetUserSettingResult", [ - { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "Value", kind: "scalar", localName: "Value", jsonName: "Value", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"dark\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key, Value pair response" } } }); } create(value?: PartialMessage): GetUserSettingResult { @@ -397,7 +397,7 @@ export const GetUserSettingResult = new GetUserSettingResult$Type(); class DeleteUserSettingRequest$Type extends MessageType { constructor() { super("vizapi.DeleteUserSettingRequest", [ - { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "Key", kind: "scalar", localName: "Key", jsonName: "Key", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "\"preferredTheme\"" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Key of the user's setting to delete", required: ["Key"] } } }); } create(value?: PartialMessage): DeleteUserSettingRequest { diff --git a/viz-view.ts b/viz-view.ts index b07a81e..5021faa 100644 --- a/viz-view.ts +++ b/viz-view.ts @@ -572,7 +572,7 @@ class View$Type extends MessageType { constructor() { super("vizapi.View", [ { no: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" } } }, - { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the screen" } } }, { no: 4, name: "CreateUserID", kind: "scalar", localName: "CreateUserID", jsonName: "CreateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who created" } } }, { no: 5, name: "UpdateUserID", kind: "scalar", localName: "UpdateUserID", jsonName: "UpdateUserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the user who did last update" } } }, @@ -785,8 +785,8 @@ export const ComposedUserView = new ComposedUserView$Type(); class GetViewRequest$Type extends MessageType { constructor() { super("vizapi.GetViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "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: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the View", required: ["Header", "ViewID"] } } }); } create(value?: PartialMessage): GetViewRequest { @@ -885,9 +885,9 @@ export const GetViewResult = new GetViewResult$Type(); class CreateViewRequest$Type extends MessageType { constructor() { super("vizapi.CreateViewRequest", [ - { 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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" } } }, { no: 7, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be stored", required: ["Header", "Name", "ScreenID"] } } }); @@ -1010,11 +1010,11 @@ export const CreateViewResult = new CreateViewResult$Type(); class UpdateViewRequest$Type extends MessageType { constructor() { super("vizapi.UpdateViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "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: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 6, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 8, name: "IsPrivate", kind: "scalar", localName: "IsPrivate", jsonName: "IsPrivate", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Visibility of the View" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Information that needs to be updated", required: ["Header", "ViewID", "Name", "ScreenID", "Payload"] } } }); } @@ -1143,8 +1143,8 @@ export const UpdateViewResult = new UpdateViewResult$Type(); class DeleteViewRequest$Type extends MessageType { constructor() { super("vizapi.DeleteViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "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: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "IDs of the View to be deleted", required: ["Header", "ViewID"] } } }); } create(value?: PartialMessage): DeleteViewRequest { @@ -1235,7 +1235,7 @@ export const DeleteViewResult = new DeleteViewResult$Type(); class ListViewRequest$Type extends MessageType { constructor() { super("vizapi.ListViewRequest", [ - { 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: "ScreenID", kind: "scalar", localName: "ScreenID", jsonName: "ScreenID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Screen" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); } @@ -1336,7 +1336,7 @@ export const ListViewResult = new ListViewResult$Type(); class DeleteViewsForProjectRequest$Type extends MessageType { constructor() { super("vizapi.DeleteViewsForProjectRequest", [ - { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "validate.rules": { string: { minLen: "1" } } } } + { no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the Project" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID"] } } }); } create(value?: PartialMessage): DeleteViewsForProjectRequest { @@ -1547,14 +1547,14 @@ export const ExtractColumnFormat = new ExtractColumnFormat$Type(); class ExtractRequest$Type extends MessageType { constructor() { super("vizapi.ExtractRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", 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: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", 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, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "BlockFilter structure for Find query" } } }, - { no: 4, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for list to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 5, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for decimal to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for list to use in the csv" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 5, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for decimal to use in the csv" }, "n1validate.rules": { string: { minLen: "1" } } } }, { 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: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } }, + { no: 10, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "n1validate.rules": { string: { minLen: "1", tzData: true } } } }, { 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: () => ["vizapi.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } @@ -1713,13 +1713,13 @@ export const ExtractRequest = new ExtractRequest$Type(); class CrossExtractRequest$Type extends MessageType { constructor() { super("vizapi.CrossExtractRequest", [ - { no: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }, + { no: 1, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", 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, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "BlockFilter structure for Find query" } } }, - { no: 3, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for list to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 4, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for decimal to use in the csv" }, "validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "ListSeparator", kind: "scalar", localName: "ListSeparator", jsonName: "ListSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for list to use in the csv" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 4, name: "DecimalSeparator", kind: "scalar", localName: "DecimalSeparator", jsonName: "DecimalSeparator", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Separator for decimal to use in the csv" }, "n1validate.rules": { string: { minLen: "1" } } } }, { no: 5, name: "ColumnTranslationMaps", kind: "map", localName: "ColumnTranslationMaps", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 6, name: "ColumnFormats", kind: "map", localName: "ColumnFormats", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 7, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "validate.rules": { string: { minLen: "1", tzData: true } } } }, + { no: 7, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone format", example: "\"Europe/Paris\"" }, "n1validate.rules": { string: { minLen: "1", tzData: true } } } }, { no: 8, 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: 9, 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: 10, name: "TimeFormat", kind: "enum", localName: "TimeFormat", jsonName: "TimeFormat", T: () => ["vizapi.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } }, @@ -1943,9 +1943,9 @@ export const ExtractResult = new ExtractResult$Type(); class SetOwnerViewRequest$Type extends MessageType { constructor() { super("vizapi.SetOwnerViewRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the User" }, "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: "ViewID", kind: "scalar", localName: "ViewID", jsonName: "ViewID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the View" }, "n1validate.rules": { string: { minLen: "1" } } } }, + { no: 3, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Identifier of the User" }, "n1validate.rules": { string: { minLen: "1" } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ViewID", "UserID"] } } }); } create(value?: PartialMessage): SetOwnerViewRequest {