@unaxiom/genesis-sdk
Version:
NPM module that provides access to Genesis' API
371 lines (370 loc) • 12.5 kB
JavaScript
"use strict";
// addShiftGroupShift
// modifyShiftGroupShift
// reorderShiftGroupShifts
// deleteShiftGroupShift
// approveShiftGroupShift
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShiftsGroupsService = void 0;
// @generated by protoc-gen-connect-es v0.12.0 with parameter "target=ts"
// @generated from file shifts_groups.proto (package Genesis, syntax proto3)
/* eslint-disable */
// @ts-nocheck
const shifts_groups_pb_js_1 = require("./shifts_groups_pb.js");
const base_pb_js_1 = require("./base_pb.js");
const protobuf_1 = require("@bufbuild/protobuf");
/**
*
* Describes the common methods applicable on each shift group
*
* @generated from service Genesis.ShiftsGroupsService
*/
exports.ShiftsGroupsService = {
typeName: "Genesis.ShiftsGroupsService",
methods: {
/**
* Create and send for verification
*
* @generated from rpc Genesis.ShiftsGroupsService.Create
*/
create: {
name: "Create",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceCreateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Create and save as draft
*
* @generated from rpc Genesis.ShiftsGroupsService.Draft
*/
draft: {
name: "Draft",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceCreateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Update draft
*
* @generated from rpc Genesis.ShiftsGroupsService.DraftUpdate
*/
draftUpdate: {
name: "DraftUpdate",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceUpdateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Send for verification
*
* @generated from rpc Genesis.ShiftsGroupsService.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.ShiftsGroupsService.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.ShiftsGroupsService.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.ShiftsGroupsService.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.ShiftsGroupsService.RevisionUpdate
*/
revisionUpdate: {
name: "RevisionUpdate",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceUpdateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Halt
*
* @generated from rpc Genesis.ShiftsGroupsService.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.ShiftsGroupsService.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.ShiftsGroupsService.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.ShiftsGroupsService.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.ShiftsGroupsService.Repeat
*/
repeat: {
name: "Repeat",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Add comment
*
* Send Email
* rpc SendEmail (Identifier) returns (Identifier);
*
* @generated from rpc Genesis.ShiftsGroupsService.CommentAdd
*/
commentAdd: {
name: "CommentAdd",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Add a shift to a shift group
*
* @generated from rpc Genesis.ShiftsGroupsService.AddShiftGroupShift
*/
addShiftGroupShift: {
name: "AddShiftGroupShift",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceShiftGroupCreateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Modify a shift in a shift group
*
* @generated from rpc Genesis.ShiftsGroupsService.ModifyShiftGroupShift
*/
modifyShiftGroupShift: {
name: "ModifyShiftGroupShift",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceShiftGroupUpdateRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Approve a shift in a shift group
*
* @generated from rpc Genesis.ShiftsGroupsService.ApproveShiftGroupShift
*/
approveShiftGroupShift: {
name: "ApproveShiftGroupShift",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Delete a shift in a shift group
*
* @generated from rpc Genesis.ShiftsGroupsService.DeleteShiftGroupShift
*/
deleteShiftGroupShift: {
name: "DeleteShiftGroupShift",
I: base_pb_js_1.IdentifierWithUserComment,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Reorder shifts in a shift group
*
* @generated from rpc Genesis.ShiftsGroupsService.ReorderShiftGroupShifts
*/
reorderShiftGroupShifts: {
name: "ReorderShiftGroupShifts",
I: base_pb_js_1.ReorderItemsRequest,
O: base_pb_js_1.Identifier,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View Shift Group Shift by ID
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewShiftGroupShiftByID
*/
viewShiftGroupShiftByID: {
name: "ViewShiftGroupShiftByID",
I: base_pb_js_1.Identifier,
O: shifts_groups_pb_js_1.ShiftGroupShift,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View approved shift group shifts for given shift group ID
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewApprovedShiftGroupShifts
*/
viewApprovedShiftGroupShifts: {
name: "ViewApprovedShiftGroupShifts",
I: base_pb_js_1.IdentifierWithSearchKey,
O: shifts_groups_pb_js_1.ShiftsGroupsShiftsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View unapproved shift group shifts for given shift group ID
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewUnapprovedShiftGroupShifts
*/
viewUnapprovedShiftGroupShifts: {
name: "ViewUnapprovedShiftGroupShifts",
I: base_pb_js_1.IdentifierWithSearchKey,
O: shifts_groups_pb_js_1.ShiftsGroupsShiftsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View the history of the shift group shift
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewShiftGroupShiftsHistory
*/
viewShiftGroupShiftsHistory: {
name: "ViewShiftGroupShiftsHistory",
I: shifts_groups_pb_js_1.ShiftsGroupsShiftsHistoryRequest,
O: shifts_groups_pb_js_1.ShiftsGroupsShiftsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View by ID
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewByID
*/
viewByID: {
name: "ViewByID",
I: base_pb_js_1.Identifier,
O: shifts_groups_pb_js_1.ShiftGroup,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewAll
*/
viewAll: {
name: "ViewAll",
I: base_pb_js_1.ActiveStatus,
O: shifts_groups_pb_js_1.ShiftsGroupsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all with the given entity UUID
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewAllForEntityUUID
*/
viewAllForEntityUUID: {
name: "ViewAllForEntityUUID",
I: base_pb_js_1.IdentifierUUID,
O: shifts_groups_pb_js_1.ShiftsGroupsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View with pagination
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewWithPagination
*/
viewWithPagination: {
name: "ViewWithPagination",
I: shifts_groups_pb_js_1.ShiftsGroupsServicePaginationReq,
O: shifts_groups_pb_js_1.ShiftsGroupsServicePaginationResponse,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View with pagination with the given entity UUID
*
* @generated from rpc Genesis.ShiftsGroupsService.ViewWithPaginationForEntityUUID
*/
viewWithPaginationForEntityUUID: {
name: "ViewWithPaginationForEntityUUID",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceEntityPaginationReq,
O: shifts_groups_pb_js_1.ShiftsGroupsServicePaginationResponse,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all that match the given search key
*
* @generated from rpc Genesis.ShiftsGroupsService.SearchAll
*/
searchAll: {
name: "SearchAll",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceSearchAllReq,
O: shifts_groups_pb_js_1.ShiftsGroupsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* View all that match the given filter criteria
*
* @generated from rpc Genesis.ShiftsGroupsService.Filter
*/
filter: {
name: "Filter",
I: shifts_groups_pb_js_1.ShiftsGroupsServiceFilterReq,
O: shifts_groups_pb_js_1.ShiftsGroupsList,
kind: protobuf_1.MethodKind.Unary,
},
/**
* Count in status
*
* @generated from rpc Genesis.ShiftsGroupsService.CountInStatus
*/
countInStatus: {
name: "CountInStatus",
I: base_pb_js_1.CountInSLCStatusRequest,
O: base_pb_js_1.CountResponse,
kind: protobuf_1.MethodKind.Unary,
},
}
};