You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { AttachmentTypeService } from "./attachmentType";
|
||||
import type { DeleteAllAttachmentsTypeOnSiteRequest } from "./attachmentType";
|
||||
import type { DeleteAttachmentsTypeForResourceResponse } from "./attachmentType";
|
||||
import type { DeleteAttachmentsTypeForResourceRequest } from "./attachmentType";
|
||||
import type { DeleteAttachmentTypeOnSiteRequest } from "./attachmentType";
|
||||
import type { UpdateAttachmentTypeOnSiteRequest } from "./attachmentType";
|
||||
import type { ListAttachmentTypeOnSiteRequest } from "./attachmentType";
|
||||
@@ -76,9 +77,9 @@ export interface IAttachmentTypeServiceClient {
|
||||
*/
|
||||
deleteOnSite(input: DeleteAttachmentTypeOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteAttachmentTypeOnSiteRequest, DeleteAttachmentTypeResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAllOnSite
|
||||
* @generated from protobuf rpc: DeleteAttachmentsTypeForResource
|
||||
*/
|
||||
deleteAllOnSite(input: DeleteAllAttachmentsTypeOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteAllAttachmentsTypeOnSiteRequest, DeleteAllAttachmentsTypeResponse>;
|
||||
deleteAttachmentsTypeForResource(input: DeleteAttachmentsTypeForResourceRequest, options?: RpcOptions): UnaryCall<DeleteAttachmentsTypeForResourceRequest, DeleteAttachmentsTypeForResourceResponse>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.AttachmentTypeService
|
||||
@@ -169,10 +170,10 @@ export class AttachmentTypeServiceClient implements IAttachmentTypeServiceClient
|
||||
return stackIntercept<DeleteAttachmentTypeOnSiteRequest, DeleteAttachmentTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteAllOnSite
|
||||
* @generated from protobuf rpc: DeleteAttachmentsTypeForResource
|
||||
*/
|
||||
deleteAllOnSite(input: DeleteAllAttachmentsTypeOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteAllAttachmentsTypeOnSiteRequest, DeleteAllAttachmentsTypeResponse> {
|
||||
deleteAttachmentsTypeForResource(input: DeleteAttachmentsTypeForResourceRequest, options?: RpcOptions): UnaryCall<DeleteAttachmentsTypeForResourceRequest, DeleteAttachmentsTypeForResourceResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteAllAttachmentsTypeOnSiteRequest, DeleteAllAttachmentsTypeResponse>("unary", this._transport, method, opt, input);
|
||||
return stackIntercept<DeleteAttachmentsTypeForResourceRequest, DeleteAttachmentsTypeForResourceResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,6 +332,7 @@ export interface DeleteAttachmentTypeOnSiteRequest {
|
||||
export interface DeleteAttachmentTypeResponse {
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.DeleteAllAttachmentsTypeRequest
|
||||
*/
|
||||
export interface DeleteAllAttachmentsTypeRequest {
|
||||
@@ -341,19 +342,25 @@ export interface DeleteAllAttachmentsTypeRequest {
|
||||
Header?: RequestProjectHeader;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteAllAttachmentsTypeOnSiteRequest
|
||||
*/
|
||||
export interface DeleteAllAttachmentsTypeOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.DeleteAllAttachmentsTypeResponse
|
||||
*/
|
||||
export interface DeleteAllAttachmentsTypeResponse {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteAttachmentsTypeForResourceRequest
|
||||
*/
|
||||
export interface DeleteAttachmentsTypeForResourceRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ResourceID = 1
|
||||
*/
|
||||
ResourceID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteAttachmentsTypeForResourceResponse
|
||||
*/
|
||||
export interface DeleteAttachmentsTypeForResourceResponse {
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CreateAttachmentTypeRequest$Type extends MessageType<CreateAttachmentTypeRequest> {
|
||||
constructor() {
|
||||
@@ -1400,56 +1407,11 @@ class DeleteAllAttachmentsTypeRequest$Type extends MessageType<DeleteAllAttachme
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.DeleteAllAttachmentsTypeRequest
|
||||
*/
|
||||
export const DeleteAllAttachmentsTypeRequest = new DeleteAllAttachmentsTypeRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteAllAttachmentsTypeOnSiteRequest$Type extends MessageType<DeleteAllAttachmentsTypeOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteAllAttachmentsTypeOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteAllAttachmentsTypeOnSiteRequest>): DeleteAllAttachmentsTypeOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteAllAttachmentsTypeOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllAttachmentsTypeOnSiteRequest): DeleteAllAttachmentsTypeOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteAllAttachmentsTypeOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteAllAttachmentsTypeOnSiteRequest
|
||||
*/
|
||||
export const DeleteAllAttachmentsTypeOnSiteRequest = new DeleteAllAttachmentsTypeOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteAllAttachmentsTypeResponse$Type extends MessageType<DeleteAllAttachmentsTypeResponse> {
|
||||
constructor() {
|
||||
super("api.DeleteAllAttachmentsTypeResponse", []);
|
||||
@@ -1484,9 +1446,95 @@ class DeleteAllAttachmentsTypeResponse$Type extends MessageType<DeleteAllAttachm
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.DeleteAllAttachmentsTypeResponse
|
||||
*/
|
||||
export const DeleteAllAttachmentsTypeResponse = new DeleteAllAttachmentsTypeResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteAttachmentsTypeForResourceRequest$Type extends MessageType<DeleteAttachmentsTypeForResourceRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteAttachmentsTypeForResourceRequest", [
|
||||
{ no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteAttachmentsTypeForResourceRequest>): DeleteAttachmentsTypeForResourceRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ResourceID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteAttachmentsTypeForResourceRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAttachmentsTypeForResourceRequest): DeleteAttachmentsTypeForResourceRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ResourceID */ 1:
|
||||
message.ResourceID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteAttachmentsTypeForResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ResourceID = 1; */
|
||||
if (message.ResourceID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ResourceID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteAttachmentsTypeForResourceRequest
|
||||
*/
|
||||
export const DeleteAttachmentsTypeForResourceRequest = new DeleteAttachmentsTypeForResourceRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteAttachmentsTypeForResourceResponse$Type extends MessageType<DeleteAttachmentsTypeForResourceResponse> {
|
||||
constructor() {
|
||||
super("api.DeleteAttachmentsTypeForResourceResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteAttachmentsTypeForResourceResponse>): DeleteAttachmentsTypeForResourceResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteAttachmentsTypeForResourceResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAttachmentsTypeForResourceResponse): DeleteAttachmentsTypeForResourceResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteAttachmentsTypeForResourceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteAttachmentsTypeForResourceResponse
|
||||
*/
|
||||
export const DeleteAttachmentsTypeForResourceResponse = new DeleteAttachmentsTypeForResourceResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.AttachmentTypeService
|
||||
*/
|
||||
@@ -1502,5 +1550,5 @@ export const AttachmentTypeService = new ServiceType("api.AttachmentTypeService"
|
||||
{ name: "ListOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["AttachmentType"], description: "List attachment types on a site" }, "api.rscType": "Site", "api.roles": "Platform.AttachmentType", "google.api.method_visibility": { restriction: "SDK" } }, I: ListAttachmentTypeOnSiteRequest, O: ListAttachmentTypeResponse },
|
||||
{ name: "UpdateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["AttachmentType"], description: "Update an attachment type for an entity" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAttachmentTypeOnSiteRequest, O: UpdateAttachmentTypeResponse },
|
||||
{ name: "DeleteOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["AttachmentType"], description: "Delete an attachment type for an entity" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAttachmentTypeOnSiteRequest, O: DeleteAttachmentTypeResponse },
|
||||
{ name: "DeleteAllOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["AttachmentType"], description: "Delete all attachments type for entities within the site" }, "api.rscType": "Site", "api.roles": "Platform.Site-Deletion", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAllAttachmentsTypeOnSiteRequest, O: DeleteAllAttachmentsTypeResponse }
|
||||
{ name: "DeleteAttachmentsTypeForResource", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["AttachmentType"], description: "Delete all attachments type for entities within a resource" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Deletion", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteAttachmentsTypeForResourceRequest, O: DeleteAttachmentsTypeForResourceResponse }
|
||||
], { "api.k8sService": "attachment-server" });
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ClaimTypeService } from "./claim-type";
|
||||
import type { DeleteClaimTypesForResourceResponse } from "./claim-type";
|
||||
import type { DeleteClaimTypesForResourceRequest } from "./claim-type";
|
||||
import type { DeleteClaimTypeOnSiteRequest } from "./claim-type";
|
||||
import type { UpdateClaimTypeOnSiteRequest } from "./claim-type";
|
||||
import type { ListClaimTypeOnSiteRequest } from "./claim-type";
|
||||
import type { GetClaimTypeOnSiteRequest } from "./claim-type";
|
||||
import type { CreateClaimTypeOnSiteRequest } from "./claim-type";
|
||||
import type { DeleteClaimTypesForProjectResponse } from "./claim-type";
|
||||
import type { DeleteClaimTypesForProjectRequest } from "./claim-type";
|
||||
import type { DeleteClaimTypeResponse } from "./claim-type";
|
||||
@@ -44,9 +51,34 @@ export interface IClaimTypeServiceClient {
|
||||
*/
|
||||
delete(input: DeleteClaimTypeRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypeRequest, DeleteClaimTypeResponse>;
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf rpc: DeleteClaimTypesForProject
|
||||
*/
|
||||
deleteClaimTypesForProject(input: DeleteClaimTypesForProjectRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypesForProjectRequest, DeleteClaimTypesForProjectResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateOnSite
|
||||
*/
|
||||
createOnSite(input: CreateClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<CreateClaimTypeOnSiteRequest, CreateClaimTypeResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetOnSite
|
||||
*/
|
||||
getOnSite(input: GetClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<GetClaimTypeOnSiteRequest, GetClaimTypeResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ListOnSite
|
||||
*/
|
||||
listOnSite(input: ListClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<ListClaimTypeOnSiteRequest, ListClaimTypeResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateOnSite
|
||||
*/
|
||||
updateOnSite(input: UpdateClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<UpdateClaimTypeOnSiteRequest, UpdateClaimTypeResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteOnSite
|
||||
*/
|
||||
deleteOnSite(input: DeleteClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypeOnSiteRequest, DeleteClaimTypeResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteClaimTypesForResource
|
||||
*/
|
||||
deleteClaimTypesForResource(input: DeleteClaimTypesForResourceRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypesForResourceRequest, DeleteClaimTypesForResourceResponse>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.ClaimTypeService
|
||||
@@ -93,10 +125,53 @@ export class ClaimTypeServiceClient implements IClaimTypeServiceClient, ServiceI
|
||||
return stackIntercept<DeleteClaimTypeRequest, DeleteClaimTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf rpc: DeleteClaimTypesForProject
|
||||
*/
|
||||
deleteClaimTypesForProject(input: DeleteClaimTypesForProjectRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypesForProjectRequest, DeleteClaimTypesForProjectResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteClaimTypesForProjectRequest, DeleteClaimTypesForProjectResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreateOnSite
|
||||
*/
|
||||
createOnSite(input: CreateClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<CreateClaimTypeOnSiteRequest, CreateClaimTypeResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CreateClaimTypeOnSiteRequest, CreateClaimTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetOnSite
|
||||
*/
|
||||
getOnSite(input: GetClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<GetClaimTypeOnSiteRequest, GetClaimTypeResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetClaimTypeOnSiteRequest, GetClaimTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListOnSite
|
||||
*/
|
||||
listOnSite(input: ListClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<ListClaimTypeOnSiteRequest, ListClaimTypeResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListClaimTypeOnSiteRequest, ListClaimTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateOnSite
|
||||
*/
|
||||
updateOnSite(input: UpdateClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<UpdateClaimTypeOnSiteRequest, UpdateClaimTypeResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateClaimTypeOnSiteRequest, UpdateClaimTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteOnSite
|
||||
*/
|
||||
deleteOnSite(input: DeleteClaimTypeOnSiteRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypeOnSiteRequest, DeleteClaimTypeResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteClaimTypeOnSiteRequest, DeleteClaimTypeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteClaimTypesForResource
|
||||
*/
|
||||
deleteClaimTypesForResource(input: DeleteClaimTypesForResourceRequest, options?: RpcOptions): UnaryCall<DeleteClaimTypesForResourceRequest, DeleteClaimTypesForResourceResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteClaimTypesForResourceRequest, DeleteClaimTypesForResourceResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
751
claim-type.ts
751
claim-type.ts
@@ -11,6 +11,7 @@ import { WireType } from "@protobuf-ts/runtime";
|
||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { RequestSiteHeader } from "./shared";
|
||||
import { ClaimType } from "./shared";
|
||||
import { ClaimSector } from "./shared";
|
||||
import { ClaimStatus } from "./shared";
|
||||
@@ -232,6 +233,7 @@ export interface DeleteClaimTypeResponse {
|
||||
/**
|
||||
* Delete
|
||||
*
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.DeleteClaimTypesForProjectRequest
|
||||
*/
|
||||
export interface DeleteClaimTypesForProjectRequest {
|
||||
@@ -241,10 +243,194 @@ export interface DeleteClaimTypesForProjectRequest {
|
||||
ProjectID: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.DeleteClaimTypesForProjectResponse
|
||||
*/
|
||||
export interface DeleteClaimTypesForProjectResponse {
|
||||
}
|
||||
/**
|
||||
* Delete
|
||||
*
|
||||
* @generated from protobuf message api.DeleteClaimTypesForResourceRequest
|
||||
*/
|
||||
export interface DeleteClaimTypesForResourceRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string ResourceID = 1
|
||||
*/
|
||||
ResourceID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteClaimTypesForResourceResponse
|
||||
*/
|
||||
export interface DeleteClaimTypesForResourceResponse {
|
||||
}
|
||||
/**
|
||||
* CreateOnSite
|
||||
*
|
||||
* @generated from protobuf message api.CreateClaimTypeOnSiteRequest
|
||||
*/
|
||||
export interface CreateClaimTypeOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Reason = 2
|
||||
*/
|
||||
Reason: string; // Reason or description for the claim.
|
||||
/**
|
||||
* @generated from protobuf field: string ReasonCode = 3
|
||||
*/
|
||||
ReasonCode: string; // Code for the reason of the claim. It should be unique for the project.
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimEntityType EntityType = 4
|
||||
*/
|
||||
EntityType: ClaimEntityType; // Type of entity associated with the claim.
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimCriticality DefaultCriticality = 5
|
||||
*/
|
||||
DefaultCriticality: ClaimCriticality; // Default criticality level for the claim which is set upon its creation.
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimTransition Transitions = 6
|
||||
*/
|
||||
Transitions: ClaimTransition[]; // List of possible transitions between claim statuses.
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimTypeClosure PossibleClosures = 7
|
||||
*/
|
||||
PossibleClosures: ClaimTypeClosure[]; // List of possible closures for the claim.
|
||||
/**
|
||||
* @generated from protobuf field: repeated string CriticalityAllowedRoles = 8
|
||||
*/
|
||||
CriticalityAllowedRoles: string[]; // Roles allowed to set criticality.
|
||||
/**
|
||||
* @generated from protobuf field: repeated string ReadAllowedRoles = 9
|
||||
*/
|
||||
ReadAllowedRoles: string[]; // Roles allowed to read/view the claim.
|
||||
/**
|
||||
* @generated from protobuf field: repeated string WriteAllowedRoles = 10
|
||||
*/
|
||||
WriteAllowedRoles: string[]; // Roles allowed to write/edit the claim.
|
||||
/**
|
||||
* @generated from protobuf field: repeated string AssignAllowedRoles = 11
|
||||
*/
|
||||
AssignAllowedRoles: string[]; // Roles allowed to assign the claim.
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimStatus AllowedStatuses = 12
|
||||
*/
|
||||
AllowedStatuses: ClaimStatus[]; // List of allowed statuses for the claim.
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimStatus DefaultStatus = 13
|
||||
*/
|
||||
DefaultStatus: ClaimStatus; // Default status for the claim which is set upon its creation.
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimSector Sector = 14
|
||||
*/
|
||||
Sector: ClaimSector; // Sector of the claim.
|
||||
/**
|
||||
* @generated from protobuf field: repeated string DefaultAssignees = 15
|
||||
*/
|
||||
DefaultAssignees: string[]; // List of default assignees for the claim.
|
||||
}
|
||||
/**
|
||||
* GetOnSite
|
||||
*
|
||||
* @generated from protobuf message api.GetClaimTypeOnSiteRequest
|
||||
*/
|
||||
export interface GetClaimTypeOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 2
|
||||
*/
|
||||
ID: string;
|
||||
}
|
||||
/**
|
||||
* ListOnSite
|
||||
*
|
||||
* @generated from protobuf message api.ListClaimTypeOnSiteRequest
|
||||
*/
|
||||
export interface ListClaimTypeOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
}
|
||||
/**
|
||||
* UpdateOnSite
|
||||
*
|
||||
* @generated from protobuf message api.UpdateClaimTypeOnSiteRequest
|
||||
*/
|
||||
export interface UpdateClaimTypeOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 2
|
||||
*/
|
||||
ID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimCriticality DefaultCriticality = 3
|
||||
*/
|
||||
DefaultCriticality: ClaimCriticality;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimTransition Transitions = 4
|
||||
*/
|
||||
Transitions: ClaimTransition[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimTypeClosure PossibleClosures = 5
|
||||
*/
|
||||
PossibleClosures: ClaimTypeClosure[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string CriticalityAllowedRoles = 6
|
||||
*/
|
||||
CriticalityAllowedRoles: string[]; // If not provided, it will be set to empty
|
||||
/**
|
||||
* @generated from protobuf field: repeated string ReadAllowedRoles = 7
|
||||
*/
|
||||
ReadAllowedRoles: string[]; // If not provided, it will be set to empty
|
||||
/**
|
||||
* @generated from protobuf field: repeated string WriteAllowedRoles = 8
|
||||
*/
|
||||
WriteAllowedRoles: string[]; // If not provided, it will be set to empty
|
||||
/**
|
||||
* @generated from protobuf field: repeated string AssignAllowedRoles = 9
|
||||
*/
|
||||
AssignAllowedRoles: string[]; // If not provided, it will be set to empty
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimStatus AllowedStatuses = 10
|
||||
*/
|
||||
AllowedStatuses: ClaimStatus[];
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimStatus DefaultStatus = 11
|
||||
*/
|
||||
DefaultStatus: ClaimStatus;
|
||||
/**
|
||||
* @generated from protobuf field: api.ClaimSector Sector = 12
|
||||
*/
|
||||
Sector: ClaimSector;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string DefaultAssignees = 13
|
||||
*/
|
||||
DefaultAssignees: string[]; // List of default assignees for the claim.
|
||||
}
|
||||
/**
|
||||
* DeleteOnSite
|
||||
*
|
||||
* @generated from protobuf message api.DeleteClaimTypeOnSiteRequest
|
||||
*/
|
||||
export interface DeleteClaimTypeOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string ID = 2
|
||||
*/
|
||||
ID: string;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CreateClaimTypeRequest$Type extends MessageType<CreateClaimTypeRequest> {
|
||||
constructor() {
|
||||
@@ -982,6 +1168,7 @@ class DeleteClaimTypesForProjectRequest$Type extends MessageType<DeleteClaimType
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.DeleteClaimTypesForProjectRequest
|
||||
*/
|
||||
export const DeleteClaimTypesForProjectRequest = new DeleteClaimTypesForProjectRequest$Type();
|
||||
@@ -1020,9 +1207,565 @@ class DeleteClaimTypesForProjectResponse$Type extends MessageType<DeleteClaimTyp
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.DeleteClaimTypesForProjectResponse
|
||||
*/
|
||||
export const DeleteClaimTypesForProjectResponse = new DeleteClaimTypesForProjectResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteClaimTypesForResourceRequest$Type extends MessageType<DeleteClaimTypesForResourceRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteClaimTypesForResourceRequest", [
|
||||
{ no: 1, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteClaimTypesForResourceRequest>): DeleteClaimTypesForResourceRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ResourceID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteClaimTypesForResourceRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClaimTypesForResourceRequest): DeleteClaimTypesForResourceRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ResourceID */ 1:
|
||||
message.ResourceID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteClaimTypesForResourceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ResourceID = 1; */
|
||||
if (message.ResourceID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ResourceID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteClaimTypesForResourceRequest
|
||||
*/
|
||||
export const DeleteClaimTypesForResourceRequest = new DeleteClaimTypesForResourceRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteClaimTypesForResourceResponse$Type extends MessageType<DeleteClaimTypesForResourceResponse> {
|
||||
constructor() {
|
||||
super("api.DeleteClaimTypesForResourceResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteClaimTypesForResourceResponse>): DeleteClaimTypesForResourceResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteClaimTypesForResourceResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClaimTypesForResourceResponse): DeleteClaimTypesForResourceResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteClaimTypesForResourceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteClaimTypesForResourceResponse
|
||||
*/
|
||||
export const DeleteClaimTypesForResourceResponse = new DeleteClaimTypesForResourceResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CreateClaimTypeOnSiteRequest$Type extends MessageType<CreateClaimTypeOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.CreateClaimTypeOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", maxLen: "255" } } } },
|
||||
{ no: 3, name: "ReasonCode", kind: "scalar", localName: "ReasonCode", jsonName: "ReasonCode", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+$" } } },
|
||||
{ no: 4, name: "EntityType", kind: "enum", localName: "EntityType", jsonName: "EntityType", T: () => ["api.ClaimEntityType", ClaimEntityType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 5, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 6, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition },
|
||||
{ no: 7, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure },
|
||||
{ no: 8, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 9, name: "ReadAllowedRoles", kind: "scalar", localName: "ReadAllowedRoles", jsonName: "ReadAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 12, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] },
|
||||
{ no: 13, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 14, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 15, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Reason", "EntityType", "DefaultCriticality"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CreateClaimTypeOnSiteRequest>): CreateClaimTypeOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Reason = "";
|
||||
message.ReasonCode = "";
|
||||
message.EntityType = 0;
|
||||
message.DefaultCriticality = 0;
|
||||
message.Transitions = [];
|
||||
message.PossibleClosures = [];
|
||||
message.CriticalityAllowedRoles = [];
|
||||
message.ReadAllowedRoles = [];
|
||||
message.WriteAllowedRoles = [];
|
||||
message.AssignAllowedRoles = [];
|
||||
message.AllowedStatuses = [];
|
||||
message.DefaultStatus = 0;
|
||||
message.Sector = 0;
|
||||
message.DefaultAssignees = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CreateClaimTypeOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateClaimTypeOnSiteRequest): CreateClaimTypeOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Reason */ 2:
|
||||
message.Reason = reader.string();
|
||||
break;
|
||||
case /* string ReasonCode */ 3:
|
||||
message.ReasonCode = reader.string();
|
||||
break;
|
||||
case /* api.ClaimEntityType EntityType */ 4:
|
||||
message.EntityType = reader.int32();
|
||||
break;
|
||||
case /* api.ClaimCriticality DefaultCriticality */ 5:
|
||||
message.DefaultCriticality = reader.int32();
|
||||
break;
|
||||
case /* repeated api.ClaimTransition Transitions */ 6:
|
||||
message.Transitions.push(ClaimTransition.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.ClaimTypeClosure PossibleClosures */ 7:
|
||||
message.PossibleClosures.push(ClaimTypeClosure.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated string CriticalityAllowedRoles */ 8:
|
||||
message.CriticalityAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated string ReadAllowedRoles */ 9:
|
||||
message.ReadAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated string WriteAllowedRoles */ 10:
|
||||
message.WriteAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated string AssignAllowedRoles */ 11:
|
||||
message.AssignAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.ClaimStatus AllowedStatuses */ 12:
|
||||
if (wireType === WireType.LengthDelimited)
|
||||
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||
message.AllowedStatuses.push(reader.int32());
|
||||
else
|
||||
message.AllowedStatuses.push(reader.int32());
|
||||
break;
|
||||
case /* api.ClaimStatus DefaultStatus */ 13:
|
||||
message.DefaultStatus = reader.int32();
|
||||
break;
|
||||
case /* api.ClaimSector Sector */ 14:
|
||||
message.Sector = reader.int32();
|
||||
break;
|
||||
case /* repeated string DefaultAssignees */ 15:
|
||||
message.DefaultAssignees.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CreateClaimTypeOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Reason = 2; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Reason);
|
||||
/* string ReasonCode = 3; */
|
||||
if (message.ReasonCode !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.ReasonCode);
|
||||
/* api.ClaimEntityType EntityType = 4; */
|
||||
if (message.EntityType !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.EntityType);
|
||||
/* api.ClaimCriticality DefaultCriticality = 5; */
|
||||
if (message.DefaultCriticality !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.DefaultCriticality);
|
||||
/* repeated api.ClaimTransition Transitions = 6; */
|
||||
for (let i = 0; i < message.Transitions.length; i++)
|
||||
ClaimTransition.internalBinaryWrite(message.Transitions[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ClaimTypeClosure PossibleClosures = 7; */
|
||||
for (let i = 0; i < message.PossibleClosures.length; i++)
|
||||
ClaimTypeClosure.internalBinaryWrite(message.PossibleClosures[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string CriticalityAllowedRoles = 8; */
|
||||
for (let i = 0; i < message.CriticalityAllowedRoles.length; i++)
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.CriticalityAllowedRoles[i]);
|
||||
/* repeated string ReadAllowedRoles = 9; */
|
||||
for (let i = 0; i < message.ReadAllowedRoles.length; i++)
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.ReadAllowedRoles[i]);
|
||||
/* repeated string WriteAllowedRoles = 10; */
|
||||
for (let i = 0; i < message.WriteAllowedRoles.length; i++)
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.WriteAllowedRoles[i]);
|
||||
/* repeated string AssignAllowedRoles = 11; */
|
||||
for (let i = 0; i < message.AssignAllowedRoles.length; i++)
|
||||
writer.tag(11, WireType.LengthDelimited).string(message.AssignAllowedRoles[i]);
|
||||
/* repeated api.ClaimStatus AllowedStatuses = 12; */
|
||||
if (message.AllowedStatuses.length) {
|
||||
writer.tag(12, WireType.LengthDelimited).fork();
|
||||
for (let i = 0; i < message.AllowedStatuses.length; i++)
|
||||
writer.int32(message.AllowedStatuses[i]);
|
||||
writer.join();
|
||||
}
|
||||
/* api.ClaimStatus DefaultStatus = 13; */
|
||||
if (message.DefaultStatus !== 0)
|
||||
writer.tag(13, WireType.Varint).int32(message.DefaultStatus);
|
||||
/* api.ClaimSector Sector = 14; */
|
||||
if (message.Sector !== 0)
|
||||
writer.tag(14, WireType.Varint).int32(message.Sector);
|
||||
/* repeated string DefaultAssignees = 15; */
|
||||
for (let i = 0; i < message.DefaultAssignees.length; i++)
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.DefaultAssignees[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CreateClaimTypeOnSiteRequest
|
||||
*/
|
||||
export const CreateClaimTypeOnSiteRequest = new CreateClaimTypeOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetClaimTypeOnSiteRequest$Type extends MessageType<GetClaimTypeOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.GetClaimTypeOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetClaimTypeOnSiteRequest>): GetClaimTypeOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetClaimTypeOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetClaimTypeOnSiteRequest): GetClaimTypeOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ID */ 2:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetClaimTypeOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 2; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.GetClaimTypeOnSiteRequest
|
||||
*/
|
||||
export const GetClaimTypeOnSiteRequest = new GetClaimTypeOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListClaimTypeOnSiteRequest$Type extends MessageType<ListClaimTypeOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.ListClaimTypeOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ListClaimTypeOnSiteRequest>): ListClaimTypeOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ListClaimTypeOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListClaimTypeOnSiteRequest): ListClaimTypeOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ListClaimTypeOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ListClaimTypeOnSiteRequest
|
||||
*/
|
||||
export const ListClaimTypeOnSiteRequest = new ListClaimTypeOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdateClaimTypeOnSiteRequest$Type extends MessageType<UpdateClaimTypeOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.UpdateClaimTypeOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "DefaultCriticality", kind: "enum", localName: "DefaultCriticality", jsonName: "DefaultCriticality", T: () => ["api.ClaimCriticality", ClaimCriticality], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 4, name: "Transitions", kind: "message", localName: "Transitions", jsonName: "Transitions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTransition },
|
||||
{ no: 5, name: "PossibleClosures", kind: "message", localName: "PossibleClosures", jsonName: "PossibleClosures", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimTypeClosure },
|
||||
{ no: 6, name: "CriticalityAllowedRoles", kind: "scalar", localName: "CriticalityAllowedRoles", jsonName: "CriticalityAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "ReadAllowedRoles", kind: "scalar", localName: "ReadAllowedRoles", jsonName: "ReadAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "WriteAllowedRoles", kind: "scalar", localName: "WriteAllowedRoles", jsonName: "WriteAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 9, name: "AssignAllowedRoles", kind: "scalar", localName: "AssignAllowedRoles", jsonName: "AssignAllowedRoles", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] },
|
||||
{ no: 11, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 12, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 13, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Reason"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateClaimTypeOnSiteRequest>): UpdateClaimTypeOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ID = "";
|
||||
message.DefaultCriticality = 0;
|
||||
message.Transitions = [];
|
||||
message.PossibleClosures = [];
|
||||
message.CriticalityAllowedRoles = [];
|
||||
message.ReadAllowedRoles = [];
|
||||
message.WriteAllowedRoles = [];
|
||||
message.AssignAllowedRoles = [];
|
||||
message.AllowedStatuses = [];
|
||||
message.DefaultStatus = 0;
|
||||
message.Sector = 0;
|
||||
message.DefaultAssignees = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateClaimTypeOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateClaimTypeOnSiteRequest): UpdateClaimTypeOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ID */ 2:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* api.ClaimCriticality DefaultCriticality */ 3:
|
||||
message.DefaultCriticality = reader.int32();
|
||||
break;
|
||||
case /* repeated api.ClaimTransition Transitions */ 4:
|
||||
message.Transitions.push(ClaimTransition.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.ClaimTypeClosure PossibleClosures */ 5:
|
||||
message.PossibleClosures.push(ClaimTypeClosure.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated string CriticalityAllowedRoles */ 6:
|
||||
message.CriticalityAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated string ReadAllowedRoles */ 7:
|
||||
message.ReadAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated string WriteAllowedRoles */ 8:
|
||||
message.WriteAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated string AssignAllowedRoles */ 9:
|
||||
message.AssignAllowedRoles.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.ClaimStatus AllowedStatuses */ 10:
|
||||
if (wireType === WireType.LengthDelimited)
|
||||
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
||||
message.AllowedStatuses.push(reader.int32());
|
||||
else
|
||||
message.AllowedStatuses.push(reader.int32());
|
||||
break;
|
||||
case /* api.ClaimStatus DefaultStatus */ 11:
|
||||
message.DefaultStatus = reader.int32();
|
||||
break;
|
||||
case /* api.ClaimSector Sector */ 12:
|
||||
message.Sector = reader.int32();
|
||||
break;
|
||||
case /* repeated string DefaultAssignees */ 13:
|
||||
message.DefaultAssignees.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateClaimTypeOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 2; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
||||
/* api.ClaimCriticality DefaultCriticality = 3; */
|
||||
if (message.DefaultCriticality !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.DefaultCriticality);
|
||||
/* repeated api.ClaimTransition Transitions = 4; */
|
||||
for (let i = 0; i < message.Transitions.length; i++)
|
||||
ClaimTransition.internalBinaryWrite(message.Transitions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.ClaimTypeClosure PossibleClosures = 5; */
|
||||
for (let i = 0; i < message.PossibleClosures.length; i++)
|
||||
ClaimTypeClosure.internalBinaryWrite(message.PossibleClosures[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string CriticalityAllowedRoles = 6; */
|
||||
for (let i = 0; i < message.CriticalityAllowedRoles.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.CriticalityAllowedRoles[i]);
|
||||
/* repeated string ReadAllowedRoles = 7; */
|
||||
for (let i = 0; i < message.ReadAllowedRoles.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.ReadAllowedRoles[i]);
|
||||
/* repeated string WriteAllowedRoles = 8; */
|
||||
for (let i = 0; i < message.WriteAllowedRoles.length; i++)
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.WriteAllowedRoles[i]);
|
||||
/* repeated string AssignAllowedRoles = 9; */
|
||||
for (let i = 0; i < message.AssignAllowedRoles.length; i++)
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.AssignAllowedRoles[i]);
|
||||
/* repeated api.ClaimStatus AllowedStatuses = 10; */
|
||||
if (message.AllowedStatuses.length) {
|
||||
writer.tag(10, WireType.LengthDelimited).fork();
|
||||
for (let i = 0; i < message.AllowedStatuses.length; i++)
|
||||
writer.int32(message.AllowedStatuses[i]);
|
||||
writer.join();
|
||||
}
|
||||
/* api.ClaimStatus DefaultStatus = 11; */
|
||||
if (message.DefaultStatus !== 0)
|
||||
writer.tag(11, WireType.Varint).int32(message.DefaultStatus);
|
||||
/* api.ClaimSector Sector = 12; */
|
||||
if (message.Sector !== 0)
|
||||
writer.tag(12, WireType.Varint).int32(message.Sector);
|
||||
/* repeated string DefaultAssignees = 13; */
|
||||
for (let i = 0; i < message.DefaultAssignees.length; i++)
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.DefaultAssignees[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UpdateClaimTypeOnSiteRequest
|
||||
*/
|
||||
export const UpdateClaimTypeOnSiteRequest = new UpdateClaimTypeOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteClaimTypeOnSiteRequest$Type extends MessageType<DeleteClaimTypeOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteClaimTypeOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteClaimTypeOnSiteRequest>): DeleteClaimTypeOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteClaimTypeOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteClaimTypeOnSiteRequest): DeleteClaimTypeOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string ID */ 2:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: DeleteClaimTypeOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ID = 2; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteClaimTypeOnSiteRequest
|
||||
*/
|
||||
export const DeleteClaimTypeOnSiteRequest = new DeleteClaimTypeOnSiteRequest$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.ClaimTypeService
|
||||
*/
|
||||
@@ -1032,5 +1775,11 @@ export const ClaimTypeService = new ServiceType("api.ClaimTypeService", [
|
||||
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "List claim types on a project" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: ListClaimTypeRequest, O: ListClaimTypeResponse },
|
||||
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Update a claim type for an entity" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateClaimTypeRequest, O: UpdateClaimTypeResponse },
|
||||
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Delete a claim type for an entity" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteClaimTypeRequest, O: DeleteClaimTypeResponse },
|
||||
{ name: "DeleteClaimTypesForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Delete all claim types for a project" }, "api.rscType": "Platform", "api.roles": "Platform.ClaimType", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteClaimTypesForProjectRequest, O: DeleteClaimTypesForProjectResponse }
|
||||
{ name: "DeleteClaimTypesForProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Delete all claim types for a project" }, "api.rscType": "Platform", "api.roles": "Platform.ClaimType", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteClaimTypesForProjectRequest, O: DeleteClaimTypesForProjectResponse },
|
||||
{ name: "CreateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Create a claim type for a Site" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: CreateClaimTypeOnSiteRequest, O: CreateClaimTypeResponse },
|
||||
{ name: "GetOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Get a claim type for a site" }, "api.rscType": "Site", "api.roles": "Platform.ClaimType", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: GetClaimTypeOnSiteRequest, O: GetClaimTypeResponse },
|
||||
{ name: "ListOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "List claim types on a project" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: ListClaimTypeOnSiteRequest, O: ListClaimTypeResponse },
|
||||
{ name: "UpdateOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Update a claim type for an entity" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateClaimTypeOnSiteRequest, O: UpdateClaimTypeResponse },
|
||||
{ name: "DeleteOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Delete a claim type for an entity" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "claim", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteClaimTypeOnSiteRequest, O: DeleteClaimTypeResponse },
|
||||
{ name: "DeleteClaimTypesForResource", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["ClaimType"], description: "Delete all claim types for entities within a resource" }, "api.rscType": "Platform", "api.roles": "Platform.ClaimType", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteClaimTypesForResourceRequest, O: DeleteClaimTypesForResourceResponse }
|
||||
], { "api.k8sService": "claimtype-server" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-250929082951",
|
||||
"version": "1.12.0-SNAPSHOT-250929123148",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
21
shared.ts
21
shared.ts
@@ -1396,7 +1396,8 @@ export interface ClaimType {
|
||||
*/
|
||||
ID: string; // Unique identifier for the claim type. (formatted as such: "CLAIMTYPE_<ProjectID>_<UUID>")
|
||||
/**
|
||||
* @generated from protobuf field: string ProjectID = 2
|
||||
* @deprecated
|
||||
* @generated from protobuf field: string ProjectID = 2 [deprecated = true]
|
||||
*/
|
||||
ProjectID: string; // Identifier for the project associated with the claim.
|
||||
/**
|
||||
@@ -1455,6 +1456,10 @@ export interface ClaimType {
|
||||
* @generated from protobuf field: repeated string DefaultAssignees = 16
|
||||
*/
|
||||
DefaultAssignees: string[]; // Default assignees of the claim.
|
||||
/**
|
||||
* @generated from protobuf field: string ResourceID = 17
|
||||
*/
|
||||
ResourceID: string; // Identifier for the project associated with the claim.
|
||||
}
|
||||
/**
|
||||
* Message defining the structure of a ClaimTransition.
|
||||
@@ -6510,7 +6515,8 @@ class ClaimType$Type extends MessageType<ClaimType> {
|
||||
{ no: 13, name: "AllowedStatuses", kind: "enum", localName: "AllowedStatuses", jsonName: "AllowedStatuses", repeat: 1 /*RepeatType.PACKED*/, T: () => ["api.ClaimStatus", ClaimStatus] },
|
||||
{ no: 14, name: "DefaultStatus", kind: "enum", localName: "DefaultStatus", jsonName: "DefaultStatus", T: () => ["api.ClaimStatus", ClaimStatus], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 15, name: "Sector", kind: "enum", localName: "Sector", jsonName: "Sector", T: () => ["api.ClaimSector", ClaimSector] },
|
||||
{ no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 16, name: "DefaultAssignees", kind: "scalar", localName: "DefaultAssignees", jsonName: "DefaultAssignees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 17, name: "ResourceID", kind: "scalar", localName: "ResourceID", jsonName: "ResourceID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ClaimType>): ClaimType {
|
||||
@@ -6531,6 +6537,7 @@ class ClaimType$Type extends MessageType<ClaimType> {
|
||||
message.DefaultStatus = 0;
|
||||
message.Sector = 0;
|
||||
message.DefaultAssignees = [];
|
||||
message.ResourceID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ClaimType>(this, message, value);
|
||||
return message;
|
||||
@@ -6543,7 +6550,7 @@ class ClaimType$Type extends MessageType<ClaimType> {
|
||||
case /* string ID */ 1:
|
||||
message.ID = reader.string();
|
||||
break;
|
||||
case /* string ProjectID */ 2:
|
||||
case /* string ProjectID = 2 [deprecated = true] */ 2:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Reason */ 3:
|
||||
@@ -6592,6 +6599,9 @@ class ClaimType$Type extends MessageType<ClaimType> {
|
||||
case /* repeated string DefaultAssignees */ 16:
|
||||
message.DefaultAssignees.push(reader.string());
|
||||
break;
|
||||
case /* string ResourceID */ 17:
|
||||
message.ResourceID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -6607,7 +6617,7 @@ class ClaimType$Type extends MessageType<ClaimType> {
|
||||
/* string ID = 1; */
|
||||
if (message.ID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ID);
|
||||
/* string ProjectID = 2; */
|
||||
/* string ProjectID = 2 [deprecated = true]; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Reason = 3; */
|
||||
@@ -6656,6 +6666,9 @@ class ClaimType$Type extends MessageType<ClaimType> {
|
||||
/* repeated string DefaultAssignees = 16; */
|
||||
for (let i = 0; i < message.DefaultAssignees.length; i++)
|
||||
writer.tag(16, WireType.LengthDelimited).string(message.DefaultAssignees[i]);
|
||||
/* string ResourceID = 17; */
|
||||
if (message.ResourceID !== "")
|
||||
writer.tag(17, WireType.LengthDelimited).string(message.ResourceID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user