You've already forked npm-core-sdk
Latest generation
This commit is contained in:
124
workflow.ts
124
workflow.ts
@@ -137,6 +137,28 @@ export interface StartWorkflowDeleteCoreResult {
|
||||
*/
|
||||
WorkflowExecution?: WorkflowExecutionResult;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StartWorkflowDeleteSiteRequest
|
||||
*/
|
||||
export interface StartWorkflowDeleteSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string SiteId = 1
|
||||
*/
|
||||
SiteId: string;
|
||||
/**
|
||||
* @generated from protobuf field: string UserId = 2
|
||||
*/
|
||||
UserId: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StartWorkflowDeleteSiteResult
|
||||
*/
|
||||
export interface StartWorkflowDeleteSiteResult {
|
||||
/**
|
||||
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
|
||||
*/
|
||||
WorkflowExecution?: WorkflowExecutionResult;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StartWorkflowDeletePartnerAppRequest
|
||||
*/
|
||||
@@ -1290,6 +1312,107 @@ class StartWorkflowDeleteCoreResult$Type extends MessageType<StartWorkflowDelete
|
||||
*/
|
||||
export const StartWorkflowDeleteCoreResult = new StartWorkflowDeleteCoreResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StartWorkflowDeleteSiteRequest$Type extends MessageType<StartWorkflowDeleteSiteRequest> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowDeleteSiteRequest", [
|
||||
{ no: 1, name: "SiteId", kind: "scalar", localName: "SiteId", jsonName: "SiteId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "UserId", kind: "scalar", localName: "UserId", jsonName: "UserId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteId", "UserId"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<StartWorkflowDeleteSiteRequest>): StartWorkflowDeleteSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteId = "";
|
||||
message.UserId = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StartWorkflowDeleteSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartWorkflowDeleteSiteRequest): StartWorkflowDeleteSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string SiteId */ 1:
|
||||
message.SiteId = reader.string();
|
||||
break;
|
||||
case /* string UserId */ 2:
|
||||
message.UserId = 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: StartWorkflowDeleteSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string SiteId = 1; */
|
||||
if (message.SiteId !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteId);
|
||||
/* string UserId = 2; */
|
||||
if (message.UserId !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.UserId);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.StartWorkflowDeleteSiteRequest
|
||||
*/
|
||||
export const StartWorkflowDeleteSiteRequest = new StartWorkflowDeleteSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StartWorkflowDeleteSiteResult$Type extends MessageType<StartWorkflowDeleteSiteResult> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowDeleteSiteResult", [
|
||||
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<StartWorkflowDeleteSiteResult>): StartWorkflowDeleteSiteResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StartWorkflowDeleteSiteResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartWorkflowDeleteSiteResult): StartWorkflowDeleteSiteResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.WorkflowExecutionResult WorkflowExecution */ 1:
|
||||
message.WorkflowExecution = WorkflowExecutionResult.internalBinaryRead(reader, reader.uint32(), options, message.WorkflowExecution);
|
||||
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: StartWorkflowDeleteSiteResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.WorkflowExecutionResult WorkflowExecution = 1; */
|
||||
if (message.WorkflowExecution)
|
||||
WorkflowExecutionResult.internalBinaryWrite(message.WorkflowExecution, 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.StartWorkflowDeleteSiteResult
|
||||
*/
|
||||
export const StartWorkflowDeleteSiteResult = new StartWorkflowDeleteSiteResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StartWorkflowDeletePartnerAppRequest$Type extends MessageType<StartWorkflowDeletePartnerAppRequest> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowDeletePartnerAppRequest", [
|
||||
@@ -4202,6 +4325,7 @@ export const WorkflowService = new ServiceType("api.WorkflowService", [
|
||||
{ name: "StartWorkflowCreateProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow CreateProject" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowCreateProjectRequest, O: StartWorkflowCreateProjectResult },
|
||||
{ name: "StartWorkflowDeleteProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow DeleteProject" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowDeleteProjectRequest, O: StartWorkflowDeleteProjectResult },
|
||||
{ name: "StartWorkflowDeleteCore", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow DeleteCore" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowDeleteCoreRequest, O: StartWorkflowDeleteCoreResult },
|
||||
{ name: "StartWorkflowDeleteSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow DeleteSite" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowDeleteSiteRequest, O: StartWorkflowDeleteSiteResult },
|
||||
{ name: "StartWorkflowDeletePartnerApp", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow DeletePartnerApp" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowDeletePartnerAppRequest, O: StartWorkflowDeletePartnerAppResult },
|
||||
{ name: "StartWorkflowDeleteConnection", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow DeleteConnection" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowDeleteConnectionRequest, O: StartWorkflowDeleteConnectionResult },
|
||||
{ name: "StartWorkflowBilling", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow Billing" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowBillingRequest, O: StartWorkflowBillingResult },
|
||||
|
||||
Reference in New Issue
Block a user