You've already forked npm-core-sdk
Latest generation
This commit is contained in:
148
workflow.ts
148
workflow.ts
@@ -160,6 +160,36 @@ export interface StartWorkflowDeleteSiteResult {
|
||||
*/
|
||||
WorkflowExecution?: WorkflowExecutionResult;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StartWorkflowCreateSiteRequest
|
||||
*/
|
||||
export interface StartWorkflowCreateSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string OrganisationId = 1
|
||||
*/
|
||||
OrganisationId: string;
|
||||
/**
|
||||
* @generated from protobuf field: string SiteId = 2
|
||||
*/
|
||||
SiteId: string;
|
||||
/**
|
||||
* @generated from protobuf field: string UserSub = 3
|
||||
*/
|
||||
UserSub: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ManagerEmail = 4
|
||||
*/
|
||||
ManagerEmail: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StartWorkflowCreateSiteResult
|
||||
*/
|
||||
export interface StartWorkflowCreateSiteResult {
|
||||
/**
|
||||
* @generated from protobuf field: api.WorkflowExecutionResult WorkflowExecution = 1
|
||||
*/
|
||||
WorkflowExecution?: WorkflowExecutionResult;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StartWorkflowDeletePartnerAppRequest
|
||||
*/
|
||||
@@ -1476,6 +1506,123 @@ class StartWorkflowDeleteSiteResult$Type extends MessageType<StartWorkflowDelete
|
||||
*/
|
||||
export const StartWorkflowDeleteSiteResult = new StartWorkflowDeleteSiteResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StartWorkflowCreateSiteRequest$Type extends MessageType<StartWorkflowCreateSiteRequest> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowCreateSiteRequest", [
|
||||
{ no: 1, name: "OrganisationId", kind: "scalar", localName: "OrganisationId", jsonName: "OrganisationId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "SiteId", kind: "scalar", localName: "SiteId", jsonName: "SiteId", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "UserSub", kind: "scalar", localName: "UserSub", jsonName: "UserSub", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "ManagerEmail", kind: "scalar", localName: "ManagerEmail", jsonName: "ManagerEmail", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["OrganisationId", "SiteId", "UserSub", "ManagerEmail"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<StartWorkflowCreateSiteRequest>): StartWorkflowCreateSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.OrganisationId = "";
|
||||
message.SiteId = "";
|
||||
message.UserSub = "";
|
||||
message.ManagerEmail = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StartWorkflowCreateSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartWorkflowCreateSiteRequest): StartWorkflowCreateSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string OrganisationId */ 1:
|
||||
message.OrganisationId = reader.string();
|
||||
break;
|
||||
case /* string SiteId */ 2:
|
||||
message.SiteId = reader.string();
|
||||
break;
|
||||
case /* string UserSub */ 3:
|
||||
message.UserSub = reader.string();
|
||||
break;
|
||||
case /* string ManagerEmail */ 4:
|
||||
message.ManagerEmail = 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: StartWorkflowCreateSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string OrganisationId = 1; */
|
||||
if (message.OrganisationId !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationId);
|
||||
/* string SiteId = 2; */
|
||||
if (message.SiteId !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.SiteId);
|
||||
/* string UserSub = 3; */
|
||||
if (message.UserSub !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.UserSub);
|
||||
/* string ManagerEmail = 4; */
|
||||
if (message.ManagerEmail !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ManagerEmail);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.StartWorkflowCreateSiteRequest
|
||||
*/
|
||||
export const StartWorkflowCreateSiteRequest = new StartWorkflowCreateSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StartWorkflowCreateSiteResult$Type extends MessageType<StartWorkflowCreateSiteResult> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowCreateSiteResult", [
|
||||
{ no: 1, name: "WorkflowExecution", kind: "message", localName: "WorkflowExecution", jsonName: "WorkflowExecution", T: () => WorkflowExecutionResult }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<StartWorkflowCreateSiteResult>): StartWorkflowCreateSiteResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StartWorkflowCreateSiteResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StartWorkflowCreateSiteResult): StartWorkflowCreateSiteResult {
|
||||
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: StartWorkflowCreateSiteResult, 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.StartWorkflowCreateSiteResult
|
||||
*/
|
||||
export const StartWorkflowCreateSiteResult = new StartWorkflowCreateSiteResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StartWorkflowDeletePartnerAppRequest$Type extends MessageType<StartWorkflowDeletePartnerAppRequest> {
|
||||
constructor() {
|
||||
super("api.StartWorkflowDeletePartnerAppRequest", [
|
||||
@@ -4683,6 +4830,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: "StartWorkflowCreateSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Workflow"], description: "Start a workflow CreateSite" }, "api.rscType": "Platform", "api.roles": "Platform.Workflow", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartWorkflowCreateSiteRequest, O: StartWorkflowCreateSiteResult },
|
||||
{ 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 },
|
||||
|
||||
Reference in New Issue
Block a user