@unaxiom/genesis-sdk
Version:
NPM module that provides access to Genesis' API
1,246 lines (1,245 loc) • 49.9 kB
JavaScript
"use strict";
// @generated by protoc-gen-es v1.3.0 with parameter "target=ts"
// @generated from file skills_groups.proto (package Genesis, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Object.defineProperty(exports, "__esModule", { value: true });
exports.SkillsGroupsServiceSearchAllReq = exports.SkillsGroupsServiceFilterReq = exports.SkillsGroupsServiceEntityPaginationReq = exports.SkillsGroupsServicePaginationResponse = exports.SkillsGroupsServicePaginationReq = exports.SkillGroupItemHistoryRequest = exports.SkillsGroupsItemsList = exports.SkillsGroupsList = exports.SkillGroupItem = exports.SkillsGroupsServiceItemUpdateRequest = exports.SkillsGroupsServiceItemCreateRequest = exports.SkillGroup = exports.SkillsGroupsServiceUpdateRequest = exports.SkillsGroupsServiceCreateRequest = exports.SKILL_GROUP_SORT_KEY = exports.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE = void 0;
const protobuf_1 = require("@bufbuild/protobuf");
const forms_pb_js_1 = require("./forms_pb.js");
const base_pb_js_1 = require("./base_pb.js");
/**
*
* Describes the available input types for a skill group item (with possible vbalues being number-absolute, number-percentage, text-input, text-dropdown)
*
* @generated from enum Genesis.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE
*/
var SKILL_GROUP_ITEM_INPUT_VALUE_TYPE;
(function (SKILL_GROUP_ITEM_INPUT_VALUE_TYPE) {
/**
* Input value type is an absolute number (with min and max defined in number_min_value and number_max_value)
*
* @generated from enum value: SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED = 0;
*/
SKILL_GROUP_ITEM_INPUT_VALUE_TYPE[SKILL_GROUP_ITEM_INPUT_VALUE_TYPE["SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED"] = 0] = "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED";
/**
* Input value type is a percentage
*
* @generated from enum value: SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_PERCENTAGE = 1;
*/
SKILL_GROUP_ITEM_INPUT_VALUE_TYPE[SKILL_GROUP_ITEM_INPUT_VALUE_TYPE["SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_PERCENTAGE"] = 1] = "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_PERCENTAGE";
/**
* Input value type is a textual input
*
* @generated from enum value: SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_INPUT = 2;
*/
SKILL_GROUP_ITEM_INPUT_VALUE_TYPE[SKILL_GROUP_ITEM_INPUT_VALUE_TYPE["SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_INPUT"] = 2] = "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_INPUT";
/**
* Input value type is a dropdown (from the values as defined in text_values)
*
* @generated from enum value: SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_DROPDOWN = 3;
*/
SKILL_GROUP_ITEM_INPUT_VALUE_TYPE[SKILL_GROUP_ITEM_INPUT_VALUE_TYPE["SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_DROPDOWN"] = 3] = "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_DROPDOWN";
})(SKILL_GROUP_ITEM_INPUT_VALUE_TYPE || (exports.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE = SKILL_GROUP_ITEM_INPUT_VALUE_TYPE = {}));
// Retrieve enum metadata with: proto3.getEnumType(SKILL_GROUP_ITEM_INPUT_VALUE_TYPE)
protobuf_1.proto3.util.setEnumType(SKILL_GROUP_ITEM_INPUT_VALUE_TYPE, "Genesis.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE", [
{ no: 0, name: "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED" },
{ no: 1, name: "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_PERCENTAGE" },
{ no: 2, name: "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_INPUT" },
{ no: 3, name: "SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_TEXT_DROPDOWN" },
]);
/**
*
* Describes the available sort keys
*
* @generated from enum Genesis.SKILL_GROUP_SORT_KEY
*/
var SKILL_GROUP_SORT_KEY;
(function (SKILL_GROUP_SORT_KEY) {
/**
* Fetch ordered results by id
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED = 0;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED"] = 0] = "SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED";
/**
* Fetch ordered results by the creation timestamp
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_CREATED_AT = 1;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_CREATED_AT"] = 1] = "SKILL_GROUP_SORT_KEY_CREATED_AT";
/**
* Fetch ordered results by the modified timestamp
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_MODIFIED_AT = 2;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_MODIFIED_AT"] = 2] = "SKILL_GROUP_SORT_KEY_MODIFIED_AT";
/**
* Fetch ordered results by the approved on timestamp
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_APPROVED_ON = 3;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_APPROVED_ON"] = 3] = "SKILL_GROUP_SORT_KEY_APPROVED_ON";
/**
* Fetch ordered results by the approved by field
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_APPROVED_BY = 4;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_APPROVED_BY"] = 4] = "SKILL_GROUP_SORT_KEY_APPROVED_BY";
/**
* Fetch ordered results by the approver's role ID
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_APPROVER_ROLE_ID = 5;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_APPROVER_ROLE_ID"] = 5] = "SKILL_GROUP_SORT_KEY_APPROVER_ROLE_ID";
/**
* Fetch ordered results by the approver's completed on timestamp
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_COMPLETED_ON = 6;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_COMPLETED_ON"] = 6] = "SKILL_GROUP_SORT_KEY_COMPLETED_ON";
/**
* Fetch ordered results by the name
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_NAME = 10;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_NAME"] = 10] = "SKILL_GROUP_SORT_KEY_NAME";
/**
* Fetch ordered results by the role ID
*
* @generated from enum value: SKILL_GROUP_SORT_KEY_ROLE_ID = 11;
*/
SKILL_GROUP_SORT_KEY[SKILL_GROUP_SORT_KEY["SKILL_GROUP_SORT_KEY_ROLE_ID"] = 11] = "SKILL_GROUP_SORT_KEY_ROLE_ID";
})(SKILL_GROUP_SORT_KEY || (exports.SKILL_GROUP_SORT_KEY = SKILL_GROUP_SORT_KEY = {}));
// Retrieve enum metadata with: proto3.getEnumType(SKILL_GROUP_SORT_KEY)
protobuf_1.proto3.util.setEnumType(SKILL_GROUP_SORT_KEY, "Genesis.SKILL_GROUP_SORT_KEY", [
{ no: 0, name: "SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED" },
{ no: 1, name: "SKILL_GROUP_SORT_KEY_CREATED_AT" },
{ no: 2, name: "SKILL_GROUP_SORT_KEY_MODIFIED_AT" },
{ no: 3, name: "SKILL_GROUP_SORT_KEY_APPROVED_ON" },
{ no: 4, name: "SKILL_GROUP_SORT_KEY_APPROVED_BY" },
{ no: 5, name: "SKILL_GROUP_SORT_KEY_APPROVER_ROLE_ID" },
{ no: 6, name: "SKILL_GROUP_SORT_KEY_COMPLETED_ON" },
{ no: 10, name: "SKILL_GROUP_SORT_KEY_NAME" },
{ no: 11, name: "SKILL_GROUP_SORT_KEY_ROLE_ID" },
]);
/**
*
* Describes the parameters necessary to create a record
*
* @generated from message Genesis.SkillsGroupsServiceCreateRequest
*/
class SkillsGroupsServiceCreateRequest extends protobuf_1.Message {
/**
* Stores a globally unique entity UUID. This will be set at the organization level
*
* @generated from field: string entity_uuid = 1;
*/
entityUuid = "";
/**
* Stores any comment that the user might add during this operation
*
* @generated from field: string user_comment = 2;
*/
userComment = "";
/**
* The associated vault folder ID
*
* @generated from field: int64 vault_folder_id = 9;
*/
vaultFolderId = protobuf_1.protoInt64.zero;
/**
* The name of the skill group
*
* @generated from field: string name = 10;
*/
name = "";
/**
* The skill group code
*
* @generated from field: string code = 11;
*/
code = "";
/**
* The ID of the role that this skill group belongs to
*
* @generated from field: int64 role_id = 12;
*/
roleId = protobuf_1.protoInt64.zero;
/**
* The description of the skill group
*
* @generated from field: string description = 13;
*/
description = "";
/**
* The list of dynamic forms
*
* @generated from field: repeated Genesis.FormFieldDatumCreateRequest form_data = 30;
*/
formData = [];
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceCreateRequest";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 9, name: "vault_folder_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 12, name: "role_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 13, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 30, name: "form_data", kind: "message", T: forms_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceCreateRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceCreateRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceCreateRequest().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceCreateRequest, a, b);
}
}
exports.SkillsGroupsServiceCreateRequest = SkillsGroupsServiceCreateRequest;
/**
*
* Describes the parameters necessary to update a record
*
* @generated from message Genesis.SkillsGroupsServiceUpdateRequest
*/
class SkillsGroupsServiceUpdateRequest extends protobuf_1.Message {
/**
* Stores any comment that the user might add during this operation
*
* @generated from field: string user_comment = 1;
*/
userComment = "";
/**
* The ID of the record that needs to be updated
*
* @generated from field: int64 id = 2;
*/
id = protobuf_1.protoInt64.zero;
/**
* Optional boolean value that stores if a notification needs to be sent to users about the update to the record. This is useful when a subsequent operation needs to be performed immediately (such as send to verification after updating the revision)
*
* @generated from field: bool notify_users = 3;
*/
notifyUsers = false;
/**
* The associated vault folder ID
*
* @generated from field: int64 vault_folder_id = 9;
*/
vaultFolderId = protobuf_1.protoInt64.zero;
/**
* The name of the skill group
*
* @generated from field: string name = 10;
*/
name = "";
/**
* The skill group code
*
* @generated from field: string code = 11;
*/
code = "";
/**
* The ID of the role that this skill group belongs to
*
* @generated from field: int64 role_id = 12;
*/
roleId = protobuf_1.protoInt64.zero;
/**
* The description of the skill group
*
* @generated from field: string description = 13;
*/
description = "";
/**
* The list of dynamic forms
*
* @generated from field: repeated Genesis.FormFieldDatumCreateRequest form_data = 30;
*/
formData = [];
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceUpdateRequest";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "notify_users", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 9, name: "vault_folder_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 12, name: "role_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 13, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 30, name: "form_data", kind: "message", T: forms_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceUpdateRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceUpdateRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceUpdateRequest().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceUpdateRequest, a, b);
}
}
exports.SkillsGroupsServiceUpdateRequest = SkillsGroupsServiceUpdateRequest;
/**
*
* Describes the parameters that are part of a standard response
*
* @generated from message Genesis.SkillGroup
*/
class SkillGroup extends protobuf_1.Message {
/**
* Stores a globally unique entity UUID. This will be set at the organization level
*
* @generated from field: string entity_uuid = 1;
*/
entityUuid = "";
/**
* Stores the metadata of this skill group
*
* @generated from field: Genesis.EmployeeMetadata metadata = 2;
*/
metadata;
/**
* Stores the approval metadata
*
* @generated from field: Genesis.ApprovalMetadata approval_metadata = 3;
*/
approvalMetadata;
/**
* The status of this skill group
*
* @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS status = 4;
*/
status = base_pb_js_1.STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED;
/**
* Stores the logs of every operation performed on this skill group
*
* @generated from field: repeated Genesis.LogbookLogConciseSLC logs = 5;
*/
logs = [];
/**
* The timestamp of when this skill group was marked as completed
*
* @generated from field: int64 completed_on = 6;
*/
completedOn = protobuf_1.protoInt64.zero;
/**
* The associated vault folder ID
*
* @generated from field: int64 vault_folder_id = 9;
*/
vaultFolderId = protobuf_1.protoInt64.zero;
/**
* The name of the skill group
*
* @generated from field: string name = 10;
*/
name = "";
/**
* The skill group code
*
* @generated from field: string code = 11;
*/
code = "";
/**
* The ID of the role that this skill group belongs to
*
* @generated from field: int64 role_id = 12;
*/
roleId = protobuf_1.protoInt64.zero;
/**
* The description of the skill group
*
* @generated from field: string description = 13;
*/
description = "";
/**
* The list of associated skill group params
*
* @generated from field: repeated Genesis.SkillGroupItem list = 20;
*/
list = [];
/**
* The list of dynamic forms
*
* @generated from field: repeated Genesis.FormFieldDatum form_data = 30;
*/
formData = [];
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillGroup";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "metadata", kind: "message", T: base_pb_js_1.EmployeeMetadata },
{ no: 3, name: "approval_metadata", kind: "message", T: base_pb_js_1.ApprovalMetadata },
{ no: 4, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
{ no: 5, name: "logs", kind: "message", T: base_pb_js_1.LogbookLogConciseSLC, repeated: true },
{ no: 6, name: "completed_on", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 9, name: "vault_folder_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 12, name: "role_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 13, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 20, name: "list", kind: "message", T: SkillGroupItem, repeated: true },
{ no: 30, name: "form_data", kind: "message", T: forms_pb_js_1.FormFieldDatum, repeated: true },
]);
static fromBinary(bytes, options) {
return new SkillGroup().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillGroup().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillGroup().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillGroup, a, b);
}
}
exports.SkillGroup = SkillGroup;
/**
*
* Describes the parameters required to add a param to a skill group
*
* @generated from message Genesis.SkillsGroupsServiceItemCreateRequest
*/
class SkillsGroupsServiceItemCreateRequest extends protobuf_1.Message {
/**
* Stores any comment that the user might add during this operation
*
* @generated from field: string user_comment = 1;
*/
userComment = "";
/**
* Stores the ID of the skill group
*
* @generated from field: int64 skill_group_id = 10;
*/
skillGroupId = protobuf_1.protoInt64.zero;
/**
* The ID of the skill param that is a part of the skill group
*
* @generated from field: int64 skill_param_id = 11;
*/
skillParamId = protobuf_1.protoInt64.zero;
/**
* The input value type of the item
*
* @generated from field: Genesis.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE input_value_type = 12;
*/
inputValueType = SKILL_GROUP_ITEM_INPUT_VALUE_TYPE.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED;
/**
* The minimum value (in cents) in case the input value type is number-absolute or number-percentage
*
* @generated from field: int64 number_min_value = 13;
*/
numberMinValue = protobuf_1.protoInt64.zero;
/**
* The maximum value (in cents) in case the input value type is number-absolute or number-percentage
*
* @generated from field: int64 number_max_value = 14;
*/
numberMaxValue = protobuf_1.protoInt64.zero;
/**
* The possible values from which a user can choose in case the input type is text-dropdown
*
* @generated from field: repeated string text_values = 15;
*/
textValues = [];
/**
* An optional description
*
* @generated from field: string description = 20;
*/
description = "";
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceItemCreateRequest";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "skill_group_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 11, name: "skill_param_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 12, name: "input_value_type", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_ITEM_INPUT_VALUE_TYPE) },
{ no: 13, name: "number_min_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 14, name: "number_max_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 15, name: "text_values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 20, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceItemCreateRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceItemCreateRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceItemCreateRequest().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceItemCreateRequest, a, b);
}
}
exports.SkillsGroupsServiceItemCreateRequest = SkillsGroupsServiceItemCreateRequest;
/**
*
* Describes the parameters required to update a param in a skill group
*
* @generated from message Genesis.SkillsGroupsServiceItemUpdateRequest
*/
class SkillsGroupsServiceItemUpdateRequest extends protobuf_1.Message {
/**
* Stores any comment that the user might add during this operation
*
* @generated from field: string user_comment = 1;
*/
userComment = "";
/**
* The ID of the record
*
* @generated from field: int64 id = 2;
*/
id = protobuf_1.protoInt64.zero;
/**
* The input value type of the item
*
* @generated from field: Genesis.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE input_value_type = 12;
*/
inputValueType = SKILL_GROUP_ITEM_INPUT_VALUE_TYPE.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED;
/**
* The minimum value (in cents) in case the input value type is number-absolute or number-percentage
*
* @generated from field: int64 number_min_value = 13;
*/
numberMinValue = protobuf_1.protoInt64.zero;
/**
* The maximum value (in cents) in case the input value type is number-absolute or number-percentage
*
* @generated from field: int64 number_max_value = 14;
*/
numberMaxValue = protobuf_1.protoInt64.zero;
/**
* The possible values from which a user can choose in case the input type is text-dropdown
*
* @generated from field: repeated string text_values = 15;
*/
textValues = [];
/**
* An optional description
*
* @generated from field: string description = 20;
*/
description = "";
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceItemUpdateRequest";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 12, name: "input_value_type", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_ITEM_INPUT_VALUE_TYPE) },
{ no: 13, name: "number_min_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 14, name: "number_max_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 15, name: "text_values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 20, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceItemUpdateRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceItemUpdateRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceItemUpdateRequest().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceItemUpdateRequest, a, b);
}
}
exports.SkillsGroupsServiceItemUpdateRequest = SkillsGroupsServiceItemUpdateRequest;
/**
*
* Describes the parameters that constitute a param associated to a skill group
*
* @generated from message Genesis.SkillGroupItem
*/
class SkillGroupItem extends protobuf_1.Message {
/**
* Stores a globally unique entity UUID. This will be set at the organization level
*
* @generated from field: string entity_uuid = 1;
*/
entityUuid = "";
/**
* Stores the metadata of this skill group
*
* @generated from field: Genesis.EmployeeMetadata metadata = 2;
*/
metadata;
/**
* Stores the approval metadata
*
* @generated from field: Genesis.ApprovalMetadata approval_metadata = 3;
*/
approvalMetadata;
/**
* Denotes if this record requires approval (or has been approved)
*
* @generated from field: bool need_approval = 4;
*/
needApproval = false;
/**
* Stores any comment that the user might have added during an operation
*
* @generated from field: string user_comment = 5;
*/
userComment = "";
/**
* Stores the ID of the skill group
*
* @generated from field: int64 skill_group_id = 10;
*/
skillGroupId = protobuf_1.protoInt64.zero;
/**
* The ID of the skill param that is a part of the skill group
*
* @generated from field: int64 skill_param_id = 11;
*/
skillParamId = protobuf_1.protoInt64.zero;
/**
* The input value type of the item
*
* @generated from field: Genesis.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE input_value_type = 12;
*/
inputValueType = SKILL_GROUP_ITEM_INPUT_VALUE_TYPE.SKILL_GROUP_ITEM_INPUT_VALUE_TYPE_NUMBER_ABSOLUTE_UNSPECIFIED;
/**
* The minimum value (in cents) in case the input value type is number-absolute or number-percentage
*
* @generated from field: int64 number_min_value = 13;
*/
numberMinValue = protobuf_1.protoInt64.zero;
/**
* The maximum value (in cents) in case the input value type is number-absolute or number-percentage
*
* @generated from field: int64 number_max_value = 14;
*/
numberMaxValue = protobuf_1.protoInt64.zero;
/**
* The possible values from which a user can choose in case the input type is text-dropdown
*
* @generated from field: repeated string text_values = 15;
*/
textValues = [];
/**
* An optional description
*
* @generated from field: string description = 20;
*/
description = "";
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillGroupItem";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "metadata", kind: "message", T: base_pb_js_1.EmployeeMetadata },
{ no: 3, name: "approval_metadata", kind: "message", T: base_pb_js_1.ApprovalMetadata },
{ no: 4, name: "need_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 5, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "skill_group_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 11, name: "skill_param_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 12, name: "input_value_type", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_ITEM_INPUT_VALUE_TYPE) },
{ no: 13, name: "number_min_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 14, name: "number_max_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 15, name: "text_values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 20, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes, options) {
return new SkillGroupItem().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillGroupItem().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillGroupItem().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillGroupItem, a, b);
}
}
exports.SkillGroupItem = SkillGroupItem;
/**
*
* Describes the message consisting of the list of skills groups
*
* @generated from message Genesis.SkillsGroupsList
*/
class SkillsGroupsList extends protobuf_1.Message {
/**
* List of records
*
* @generated from field: repeated Genesis.SkillGroup list = 1;
*/
list = [];
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsList";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "list", kind: "message", T: SkillGroup, repeated: true },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsList().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsList().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsList().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsList, a, b);
}
}
exports.SkillsGroupsList = SkillsGroupsList;
/**
*
* Describes the message consisting of the list of skill group params
*
* @generated from message Genesis.SkillsGroupsItemsList
*/
class SkillsGroupsItemsList extends protobuf_1.Message {
/**
* List of records
*
* @generated from field: repeated Genesis.SkillGroupItem list = 1;
*/
list = [];
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsItemsList";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "list", kind: "message", T: SkillGroupItem, repeated: true },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsItemsList().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsItemsList().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsItemsList().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsItemsList, a, b);
}
}
exports.SkillsGroupsItemsList = SkillsGroupsItemsList;
/**
*
* Describes the parameters that are required to retrieve the history of the record
*
* @generated from message Genesis.SkillGroupItemHistoryRequest
*/
class SkillGroupItemHistoryRequest extends protobuf_1.Message {
/**
* Stores the ID of the skill group
*
* @generated from field: int64 skill_group_id = 10;
*/
skillGroupId = protobuf_1.protoInt64.zero;
/**
* The ID of the skill param that is a part of the skill group
*
* @generated from field: int64 skill_param_id = 11;
*/
skillParamId = protobuf_1.protoInt64.zero;
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillGroupItemHistoryRequest";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 10, name: "skill_group_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 11, name: "skill_param_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
]);
static fromBinary(bytes, options) {
return new SkillGroupItemHistoryRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillGroupItemHistoryRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillGroupItemHistoryRequest().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillGroupItemHistoryRequest, a, b);
}
}
exports.SkillGroupItemHistoryRequest = SkillGroupItemHistoryRequest;
/**
*
* Describes a pagination request to retrieve records
*
* @generated from message Genesis.SkillsGroupsServicePaginationReq
*/
class SkillsGroupsServicePaginationReq extends protobuf_1.Message {
/**
* If true, then returns only active records. If false, then returns only inactive records
*
* @generated from field: bool is_active = 1;
*/
isActive = false;
/**
* The number of records that need to be sent in the response
*
* @generated from field: int64 count = 2;
*/
count = protobuf_1.protoInt64.zero;
/**
* The number that need to be offset by before fetching the records
*
* @generated from field: int64 offset = 3;
*/
offset = protobuf_1.protoInt64.zero;
/**
* The sort order that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SORT_ORDER sort_order = 4;
*/
sortOrder = base_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
/**
* The sort key that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SKILL_GROUP_SORT_KEY sort_key = 5;
*/
sortKey = SKILL_GROUP_SORT_KEY.SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED;
/**
* The status of this skill group
*
* @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS status = 6;
*/
status = base_pb_js_1.STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED;
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServicePaginationReq";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.SORT_ORDER) },
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_SORT_KEY) },
{ no: 6, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServicePaginationReq().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServicePaginationReq().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServicePaginationReq().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServicePaginationReq, a, b);
}
}
exports.SkillsGroupsServicePaginationReq = SkillsGroupsServicePaginationReq;
/**
*
* Describes the response to a pagination request
*
* @generated from message Genesis.SkillsGroupsServicePaginationResponse
*/
class SkillsGroupsServicePaginationResponse extends protobuf_1.Message {
/**
* The number of records in this payload
*
* @generated from field: int64 count = 1;
*/
count = protobuf_1.protoInt64.zero;
/**
* The number that has been offset before fetching the records. This is the same value that has been sent as part of the pagination request
*
* @generated from field: int64 offset = 2;
*/
offset = protobuf_1.protoInt64.zero;
/**
* The total number of records that are available
*
* @generated from field: int64 total = 3;
*/
total = protobuf_1.protoInt64.zero;
/**
* The list of records
*
* @generated from field: repeated Genesis.SkillGroup payload = 4;
*/
payload = [];
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServicePaginationResponse";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 2, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: "payload", kind: "message", T: SkillGroup, repeated: true },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServicePaginationResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServicePaginationResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServicePaginationResponse().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServicePaginationResponse, a, b);
}
}
exports.SkillsGroupsServicePaginationResponse = SkillsGroupsServicePaginationResponse;
/**
*
* Describes a pagination request to retrieve records associated with an entity UUID
*
* @generated from message Genesis.SkillsGroupsServiceEntityPaginationReq
*/
class SkillsGroupsServiceEntityPaginationReq extends protobuf_1.Message {
/**
* If true, then returns only active records. If false, then returns only inactive records
*
* @generated from field: bool is_active = 1;
*/
isActive = false;
/**
* The number of records that need to be sent in the response
*
* @generated from field: int64 count = 2;
*/
count = protobuf_1.protoInt64.zero;
/**
* The number that need to be offset by before fetching the records
*
* @generated from field: int64 offset = 3;
*/
offset = protobuf_1.protoInt64.zero;
/**
* The sort order that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SORT_ORDER sort_order = 4;
*/
sortOrder = base_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
/**
* The sort key that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SKILL_GROUP_SORT_KEY sort_key = 5;
*/
sortKey = SKILL_GROUP_SORT_KEY.SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED;
/**
* The entity UUID that is to be used to filter records
*
* @generated from field: string entity_uuid = 6;
*/
entityUuid = "";
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceEntityPaginationReq";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.SORT_ORDER) },
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_SORT_KEY) },
{ no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceEntityPaginationReq().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceEntityPaginationReq().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceEntityPaginationReq().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceEntityPaginationReq, a, b);
}
}
exports.SkillsGroupsServiceEntityPaginationReq = SkillsGroupsServiceEntityPaginationReq;
/**
*
* Describes the base request payload of a filter search
*
* @generated from message Genesis.SkillsGroupsServiceFilterReq
*/
class SkillsGroupsServiceFilterReq extends protobuf_1.Message {
/**
* If true, then returns only active records. If false, then returns only inactive records
*
* @generated from field: bool is_active = 1;
*/
isActive = false;
/**
* The number of records that need to be sent in the response. Returns all records if it is set to -1
*
* @generated from field: int64 count = 2;
*/
count = protobuf_1.protoInt64.zero;
/**
* The number that need to be offset by before fetching the records
*
* @generated from field: int64 offset = 3;
*/
offset = protobuf_1.protoInt64.zero;
/**
* The sort order that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SORT_ORDER sort_order = 4;
*/
sortOrder = base_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
/**
* The sort key that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SKILL_GROUP_SORT_KEY sort_key = 5;
*/
sortKey = SKILL_GROUP_SORT_KEY.SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED;
/**
* The minimum timestamp that needs to be considered to filter by creation
*
* @generated from field: int64 creation_timestamp_start = 6;
*/
creationTimestampStart = protobuf_1.protoInt64.zero;
/**
* The maximum timestamp that needs to be considered to filter by creation
*
* @generated from field: int64 creation_timestamp_end = 7;
*/
creationTimestampEnd = protobuf_1.protoInt64.zero;
/**
* The entity UUID that is to be used to filter records
*
* @generated from field: string entity_uuid = 8;
*/
entityUuid = "";
/**
* The status of this skill group
*
* @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS status = 10;
*/
status = base_pb_js_1.STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED;
/**
* The start range of approved timestamp
*
* @generated from field: int64 approved_on_start = 11;
*/
approvedOnStart = protobuf_1.protoInt64.zero;
/**
* The end range of approved timestamp
*
* @generated from field: int64 approved_on_end = 12;
*/
approvedOnEnd = protobuf_1.protoInt64.zero;
/**
* The ID of the approver
*
* @generated from field: int64 approved_by_user_id = 13;
*/
approvedByUserId = protobuf_1.protoInt64.zero;
/**
* The role ID of the approver
*
* @generated from field: int64 approver_role_id = 14;
*/
approverRoleId = protobuf_1.protoInt64.zero;
/**
* The start range of completed timestamp
*
* @generated from field: int64 completed_on_start = 15;
*/
completedOnStart = protobuf_1.protoInt64.zero;
/**
* The end range of completed timestamp
*
* @generated from field: int64 completed_on_end = 16;
*/
completedOnEnd = protobuf_1.protoInt64.zero;
/**
* The name of the skill group
*
* @generated from field: string name = 20;
*/
name = "";
/**
* The ID of the role that this skill group belongs to
*
* @generated from field: int64 role_id = 21;
*/
roleId = protobuf_1.protoInt64.zero;
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceFilterReq";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.SORT_ORDER) },
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_SORT_KEY) },
{ no: 6, name: "creation_timestamp_start", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 7, name: "creation_timestamp_end", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
{ no: 11, name: "approved_on_start", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 12, name: "approved_on_end", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 13, name: "approved_by_user_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 14, name: "approver_role_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 15, name: "completed_on_start", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 16, name: "completed_on_end", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 20, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 21, name: "role_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceFilterReq().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceFilterReq().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceFilterReq().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceFilterReq, a, b);
}
}
exports.SkillsGroupsServiceFilterReq = SkillsGroupsServiceFilterReq;
/**
*
* Describes the request payload for performing a generic search operation on records
*
* @generated from message Genesis.SkillsGroupsServiceSearchAllReq
*/
class SkillsGroupsServiceSearchAllReq extends protobuf_1.Message {
/**
* If true, then returns only active records. If false, then returns only inactive records
*
* @generated from field: bool is_active = 1;
*/
isActive = false;
/**
* The number of records that need to be sent in the response. Returns all records if it is set to -1
*
* @generated from field: int64 count = 2;
*/
count = protobuf_1.protoInt64.zero;
/**
* The number that need to be offset by before fetching the records
*
* @generated from field: int64 offset = 3;
*/
offset = protobuf_1.protoInt64.zero;
/**
* The sort order that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SORT_ORDER sort_order = 4;
*/
sortOrder = base_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
/**
* The sort key that is to be used to fetch the pagination response
*
* @generated from field: Genesis.SKILL_GROUP_SORT_KEY sort_key = 5;
*/
sortKey = SKILL_GROUP_SORT_KEY.SKILL_GROUP_SORT_KEY_ID_UNSPECIFIED;
/**
* The entity UUID that is to be used to filter records
*
* @generated from field: string entity_uuid = 6;
*/
entityUuid = "";
/**
* Limit the search space to the given status
*
* @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS status = 10;
*/
status = base_pb_js_1.STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED;
/**
* Describes the key with which the search operation needs to be performed
*
* @generated from field: string search_key = 11;
*/
searchKey = "";
constructor(data) {
super();
protobuf_1.proto3.util.initPartial(data, this);
}
static runtime = protobuf_1.proto3;
static typeName = "Genesis.SkillsGroupsServiceSearchAllReq";
static fields = protobuf_1.proto3.util.newFieldList(() => [
{ no: 1, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 3, name: "offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.SORT_ORDER) },
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SKILL_GROUP_SORT_KEY) },
{ no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
{ no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes, options) {
return new SkillsGroupsServiceSearchAllReq().fromBinary(bytes, options);
}
static fromJson(jsonValue, options) {
return new SkillsGroupsServiceSearchAllReq().fromJson(jsonValue, options);
}
static fromJsonString(jsonString, options) {
return new SkillsGroupsServiceSearchAllReq().fromJsonString(jsonString, options);
}
static equals(a, b) {
return protobuf_1.proto3.util.equals(SkillsGroupsServiceSearchAllReq, a, b);
}
}
exports.SkillsGroupsServiceSearchAllReq = SkillsGroupsServiceSearchAllReq;