@unaxiom/genesis-sdk
Version:
NPM module that provides access to Genesis' API
300 lines (299 loc) • 9.24 kB
JavaScript
"use strict";
// @generated by protoc-gen-connect-es v0.12.0 with parameter "target=ts"
// @generated from file roles.proto (package Genesis, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Object.defineProperty(exports, "__esModule", { value: true });
exports.RolesService = void 0;
const roles_pb_js_1 = require("./roles_pb.js");
const base_pb_js_1 = require("./base_pb.js");
const protobuf_1 = require("@bufbuild/protobuf");
/**
*
* Describes the common methods applicable on each role
*
* @generated from service Genesis.RolesService
*/
exports.RolesService = {
typeName: "Genesis.RolesService",
methods: {
/**
* Create and send for verification
*
* @generated from rpc Genesis.RolesService.Create
*/
create: {
name: "Create",
I: roles_pb_js_1.RolesServiceCreateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Create and save as draft
*
* @generated from rpc Genesis.RolesService.Draft
*/
draft: {
name: "Draft",
I: roles_pb_js_1.RolesServiceCreateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Update draft
*
* @generated from rpc Genesis.RolesService.DraftUpdate
*/
draftUpdate: {
name: "DraftUpdate",
I: roles_pb_js_1.RolesServiceUpdateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Send for verification
*
* @generated from rpc Genesis.RolesService.SendForVerification
*/
sendForVerification: {
name: "SendForVerification",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Verify
*
* @generated from rpc Genesis.RolesService.Verify
*/
verify: {
name: "Verify",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Approve
*
* @generated from rpc Genesis.RolesService.Approve
*/
approve: {
name: "Approve",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Send For Revision
*
* @generated from rpc Genesis.RolesService.SendForRevision
*/
sendForRevision: {
name: "SendForRevision",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Update revision
*
* @generated from rpc Genesis.RolesService.RevisionUpdate
*/
revisionUpdate: {
name: "RevisionUpdate",
I: roles_pb_js_1.RolesServiceUpdateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Halt
*
* @generated from rpc Genesis.RolesService.Halt
*/
halt: {
name: "Halt",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Discard
*
* @generated from rpc Genesis.RolesService.Discard
*/
discard: {
name: "Discard",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Restore
*
* @generated from rpc Genesis.RolesService.Restore
*/
restore: {
name: "Restore",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Complete
*
* @generated from rpc Genesis.RolesService.Complete
*/
complete: {
name: "Complete",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Repeat
*
* @generated from rpc Genesis.RolesService.Repeat
*/
repeat: {
name: "Repeat",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Reopen
*
* @generated from rpc Genesis.RolesService.Reopen
*/
reopen: {
name: "Reopen",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Add comment
*
* Send Email
* rpc SendEmail (IdentifierWithEmailAttributes) returns (Identifier);
*
* @generated from rpc Genesis.RolesService.CommentAdd
*/
commentAdd: {
name: "CommentAdd",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Clone role from an existing role (denoted by the identifier)
*
* @generated from rpc Genesis.RolesService.Clone
*/
clone: {
name: "Clone",
I: base_pb_js_1.CloneRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View by ID
*
* @generated from rpc Genesis.RolesService.ViewByID
*/
viewByID: {
name: "ViewByID",
I: base_pb_js_1.Identifier,
O: roles_pb_js_1.Role,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all
*
* @generated from rpc Genesis.RolesService.ViewAll
*/
viewAll: {
name: "ViewAll",
I: base_pb_js_1.ActiveStatus,
O: roles_pb_js_1.RolesList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all with the given entity UUID
*
* @generated from rpc Genesis.RolesService.ViewAllForEntityUUID
*/
viewAllForEntityUUID: {
name: "ViewAllForEntityUUID",
I: base_pb_js_1.IdentifierUUID,
O: roles_pb_js_1.RolesList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View with pagination
*
* @generated from rpc Genesis.RolesService.ViewWithPagination
*/
viewWithPagination: {
name: "ViewWithPagination",
I: roles_pb_js_1.RolesServicePaginationReq,
O: roles_pb_js_1.RolesServicePaginationResponse,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View with pagination with the given entity UUID
*
* @generated from rpc Genesis.RolesService.ViewWithPaginationForEntityUUID
*/
viewWithPaginationForEntityUUID: {
name: "ViewWithPaginationForEntityUUID",
I: roles_pb_js_1.RolesServiceEntityPaginationReq,
O: roles_pb_js_1.RolesServicePaginationResponse,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View self role (the role of the logged in user). Returns the role on the basis of the logged in environment as well.
*
* @generated from rpc Genesis.RolesService.ViewSelf
*/
viewSelf: {
name: "ViewSelf",
I: base_pb_js_1.Empty,
O: roles_pb_js_1.Role,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all that match the given search key
*
* @generated from rpc Genesis.RolesService.SearchAll
*/
searchAll: {
name: "SearchAll",
I: roles_pb_js_1.RolesServiceSearchAllReq,
O: roles_pb_js_1.RolesList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all that match the given filter criteria
*
* @generated from rpc Genesis.RolesService.Filter
*/
filter: {
name: "Filter",
I: roles_pb_js_1.RolesServiceFilterReq,
O: roles_pb_js_1.RolesList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Count in status
*
* @generated from rpc Genesis.RolesService.CountInStatus
*/
countInStatus: {
name: "CountInStatus",
I: base_pb_js_1.CountInSLCStatusRequest,
O: base_pb_js_1.CountResponse,
kind: protobuf_1.MethodKind.Unary,
},
}
};