UNPKG

@unaxiom/genesis-sdk

Version:

NPM module that provides access to Genesis' API

869 lines (868 loc) 32.6 kB
"use strict"; // @generated by protoc-gen-es v1.3.0 with parameter "target=ts" // @generated from file associates.proto (package Genesis, syntax proto3) /* eslint-disable */ // @ts-nocheck Object.defineProperty(exports, "__esModule", { value: true }); exports.AssociatesServiceSearchAllReq = exports.AssociatesServiceEntityPaginationReq = exports.AssociatesServicePaginationReq = exports.AssociatesServiceUpdateRequest = exports.AssociatesServiceCreateRequest = exports.AssociatePaginationResp = exports.AssociatesList = exports.Associate = exports.ASSOCIATE_SORT_KEY = exports.ASSOCIATE_ORG_REF_FROM = void 0; const protobuf_1 = require("@bufbuild/protobuf"); const base_pb_js_1 = require("./base_pb.js"); /** * * Describes the available options that a associate can be associated with * * @generated from enum Genesis.ASSOCIATE_ORG_REF_FROM */ var ASSOCIATE_ORG_REF_FROM; (function (ASSOCIATE_ORG_REF_FROM) { /** * The default value which is an empty string * * @generated from enum value: ASSOCIATE_ORG_REF_FROM_UNSPECIFIED = 0; */ ASSOCIATE_ORG_REF_FROM[ASSOCIATE_ORG_REF_FROM["ASSOCIATE_ORG_REF_FROM_UNSPECIFIED"] = 0] = "ASSOCIATE_ORG_REF_FROM_UNSPECIFIED"; /** * When the associate has been associated to a client * * @generated from enum value: ASSOCIATE_ORG_REF_FROM_CLIENT = 1; */ ASSOCIATE_ORG_REF_FROM[ASSOCIATE_ORG_REF_FROM["ASSOCIATE_ORG_REF_FROM_CLIENT"] = 1] = "ASSOCIATE_ORG_REF_FROM_CLIENT"; /** * When the associate has been associated to a vendor * * @generated from enum value: ASSOCIATE_ORG_REF_FROM_VENDOR = 2; */ ASSOCIATE_ORG_REF_FROM[ASSOCIATE_ORG_REF_FROM["ASSOCIATE_ORG_REF_FROM_VENDOR"] = 2] = "ASSOCIATE_ORG_REF_FROM_VENDOR"; })(ASSOCIATE_ORG_REF_FROM || (exports.ASSOCIATE_ORG_REF_FROM = ASSOCIATE_ORG_REF_FROM = {})); // Retrieve enum metadata with: proto3.getEnumType(ASSOCIATE_ORG_REF_FROM) protobuf_1.proto3.util.setEnumType(ASSOCIATE_ORG_REF_FROM, "Genesis.ASSOCIATE_ORG_REF_FROM", [ { no: 0, name: "ASSOCIATE_ORG_REF_FROM_UNSPECIFIED" }, { no: 1, name: "ASSOCIATE_ORG_REF_FROM_CLIENT" }, { no: 2, name: "ASSOCIATE_ORG_REF_FROM_VENDOR" }, ]); /** * * Describes the available sort keys for retrieving associates * * @generated from enum Genesis.ASSOCIATE_SORT_KEY */ var ASSOCIATE_SORT_KEY; (function (ASSOCIATE_SORT_KEY) { /** * Fetch ordered results by id * * @generated from enum value: ASSOCIATE_SORT_KEY_ID_UNSPECIFIED = 0; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_ID_UNSPECIFIED"] = 0] = "ASSOCIATE_SORT_KEY_ID_UNSPECIFIED"; /** * Fetch ordered results by the creation timestamp * * @generated from enum value: ASSOCIATE_SORT_KEY_CREATED_AT = 1; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_CREATED_AT"] = 1] = "ASSOCIATE_SORT_KEY_CREATED_AT"; /** * Fetch ordered results by the modified timestamp * * @generated from enum value: ASSOCIATE_SORT_KEY_MODIFIED_AT = 2; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_MODIFIED_AT"] = 2] = "ASSOCIATE_SORT_KEY_MODIFIED_AT"; /** * Fetch ordered results by first name * * @generated from enum value: ASSOCIATE_SORT_KEY_FIRST_NAME = 10; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_FIRST_NAME"] = 10] = "ASSOCIATE_SORT_KEY_FIRST_NAME"; /** * Fetch ordered results by middle name * * @generated from enum value: ASSOCIATE_SORT_KEY_MIDDLE_NAME = 11; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_MIDDLE_NAME"] = 11] = "ASSOCIATE_SORT_KEY_MIDDLE_NAME"; /** * Fetch ordered results by last name * * @generated from enum value: ASSOCIATE_SORT_KEY_LAST_NAME = 12; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_LAST_NAME"] = 12] = "ASSOCIATE_SORT_KEY_LAST_NAME"; /** * Fetch ordered results by organization name * * @generated from enum value: ASSOCIATE_SORT_KEY_ORG_NAME = 13; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_ORG_NAME"] = 13] = "ASSOCIATE_SORT_KEY_ORG_NAME"; /** * Fetch ordered results by job title * * @generated from enum value: ASSOCIATE_SORT_KEY_JOB_TITLE = 14; */ ASSOCIATE_SORT_KEY[ASSOCIATE_SORT_KEY["ASSOCIATE_SORT_KEY_JOB_TITLE"] = 14] = "ASSOCIATE_SORT_KEY_JOB_TITLE"; })(ASSOCIATE_SORT_KEY || (exports.ASSOCIATE_SORT_KEY = ASSOCIATE_SORT_KEY = {})); // Retrieve enum metadata with: proto3.getEnumType(ASSOCIATE_SORT_KEY) protobuf_1.proto3.util.setEnumType(ASSOCIATE_SORT_KEY, "Genesis.ASSOCIATE_SORT_KEY", [ { no: 0, name: "ASSOCIATE_SORT_KEY_ID_UNSPECIFIED" }, { no: 1, name: "ASSOCIATE_SORT_KEY_CREATED_AT" }, { no: 2, name: "ASSOCIATE_SORT_KEY_MODIFIED_AT" }, { no: 10, name: "ASSOCIATE_SORT_KEY_FIRST_NAME" }, { no: 11, name: "ASSOCIATE_SORT_KEY_MIDDLE_NAME" }, { no: 12, name: "ASSOCIATE_SORT_KEY_LAST_NAME" }, { no: 13, name: "ASSOCIATE_SORT_KEY_ORG_NAME" }, { no: 14, name: "ASSOCIATE_SORT_KEY_JOB_TITLE" }, ]); /** * * Describes the data structure of each associate on the platform * * @generated from message Genesis.Associate */ class Associate 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 resource * * @generated from field: Genesis.EmployeeMetadata metadata = 2; */ metadata; /** * The associated vault folder ID * * @generated from field: int64 vault_folder_id = 9; */ vaultFolderId = protobuf_1.protoInt64.zero; /** * The first name of the associate * * @generated from field: string first_name = 10; */ firstName = ""; /** * The middle name of the associate * * @generated from field: string middle_name = 11; */ middleName = ""; /** * The last name of the associate * * @generated from field: string last_name = 12; */ lastName = ""; /** * The association with a vendor or a client * * @generated from field: Genesis.ASSOCIATE_ORG_REF_FROM org_ref_from = 13; */ orgRefFrom = ASSOCIATE_ORG_REF_FROM.ASSOCIATE_ORG_REF_FROM_UNSPECIFIED; /** * The ID of the associated vendor or client * * @generated from field: int64 org_ref_id = 14; */ orgRefId = protobuf_1.protoInt64.zero; /** * The name of the organization that the associate works in. Will be autofilled if the associate is associated with either a client or a vendor * * @generated from field: string org_name = 15; */ orgName = ""; /** * The job title of the associate * * @generated from field: string job_title = 16; */ jobTitle = ""; /** * The department that the associates works in * * @generated from field: string department = 17; */ department = ""; /** * The work phone number of the associate * * @generated from field: string work_phone = 18; */ workPhone = ""; /** * The work email address of the associate * * @generated from field: string work_email = 19; */ workEmail = ""; /** * The personal phone number of the associate * * @generated from field: string personal_phone = 20; */ personalPhone = ""; /** * The personal email address of the associate * * @generated from field: string personal_email = 21; */ personalEmail = ""; /** * The associate's birthday * * @generated from field: string birthday = 22; */ birthday = ""; /** * The associate's anniversary * * @generated from field: string anniversary = 23; */ anniversary = ""; /** * A short description of the associate * * @generated from field: string description = 24; */ description = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.Associate"; 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: 9, name: "vault_folder_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "middle_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "org_ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(ASSOCIATE_ORG_REF_FROM) }, { no: 14, name: "org_ref_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 15, name: "org_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "job_title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 17, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 18, name: "work_phone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 19, name: "work_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 20, name: "personal_phone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 21, name: "personal_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 22, name: "birthday", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 23, name: "anniversary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 24, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new Associate().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Associate().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Associate().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(Associate, a, b); } } exports.Associate = Associate; /** * * Describes the data structure that stores a list of associates * * @generated from message Genesis.AssociatesList */ class AssociatesList extends protobuf_1.Message { /** * List of associates * * @generated from field: repeated Genesis.Associate list = 1; */ list = []; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.AssociatesList"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "list", kind: "message", T: Associate, repeated: true }, ]); static fromBinary(bytes, options) { return new AssociatesList().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatesList().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatesList().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatesList, a, b); } } exports.AssociatesList = AssociatesList; /** * * Describes the data structure that responds to a pagination request * * @generated from message Genesis.AssociatePaginationResp */ class AssociatePaginationResp 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.Associate payload = 4; */ payload = []; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.AssociatePaginationResp"; 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: Associate, repeated: true }, ]); static fromBinary(bytes, options) { return new AssociatePaginationResp().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatePaginationResp().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatePaginationResp().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatePaginationResp, a, b); } } exports.AssociatePaginationResp = AssociatePaginationResp; /** * * Describes the necessary data structure during creation of a associate * * @generated from message Genesis.AssociatesServiceCreateRequest */ class AssociatesServiceCreateRequest 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 first name of the associate * * @generated from field: string first_name = 10; */ firstName = ""; /** * The middle name of the associate * * @generated from field: string middle_name = 11; */ middleName = ""; /** * The last name of the associate * * @generated from field: string last_name = 12; */ lastName = ""; /** * The association with a vendor or a client * * @generated from field: Genesis.ASSOCIATE_ORG_REF_FROM org_ref_from = 13; */ orgRefFrom = ASSOCIATE_ORG_REF_FROM.ASSOCIATE_ORG_REF_FROM_UNSPECIFIED; /** * The ID of the associated vendor or client * * @generated from field: int64 org_ref_id = 14; */ orgRefId = protobuf_1.protoInt64.zero; /** * The name of the organization that the associate works in. Will be autofilled if the associate is associated with either a client or a vendor * * @generated from field: string org_name = 15; */ orgName = ""; /** * The job title of the associate * * @generated from field: string job_title = 16; */ jobTitle = ""; /** * The department that the associates works in * * @generated from field: string department = 17; */ department = ""; /** * The work phone number of the associate * * @generated from field: string work_phone = 18; */ workPhone = ""; /** * The work email address of the associate * * [(genesis_validate.rules).string.email = true]; * * @generated from field: string work_email = 19; */ workEmail = ""; /** * The personal phone number of the associate * * @generated from field: string personal_phone = 20; */ personalPhone = ""; /** * The personal email address of the associate * * [(genesis_validate.rules).string.email = true]; * * @generated from field: string personal_email = 21; */ personalEmail = ""; /** * The associate's birthday * * @generated from field: string birthday = 22; */ birthday = ""; /** * The associate's anniversary * * @generated from field: string anniversary = 23; */ anniversary = ""; /** * A short description of the associate * * @generated from field: string description = 24; */ description = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.AssociatesServiceCreateRequest"; 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: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "middle_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "org_ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(ASSOCIATE_ORG_REF_FROM) }, { no: 14, name: "org_ref_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 15, name: "org_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "job_title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 17, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 18, name: "work_phone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 19, name: "work_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 20, name: "personal_phone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 21, name: "personal_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 22, name: "birthday", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 23, name: "anniversary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 24, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new AssociatesServiceCreateRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatesServiceCreateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatesServiceCreateRequest().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatesServiceCreateRequest, a, b); } } exports.AssociatesServiceCreateRequest = AssociatesServiceCreateRequest; /** * * Describes the data structure to perform the update (draft/revision) operation on a associate * * @generated from message Genesis.AssociatesServiceUpdateRequest */ class AssociatesServiceUpdateRequest 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 associate that needs to be updated * * @generated from field: int64 id = 2; */ id = protobuf_1.protoInt64.zero; /** * The associated vault folder ID * * @generated from field: int64 vault_folder_id = 9; */ vaultFolderId = protobuf_1.protoInt64.zero; /** * The first name of the associate * * @generated from field: string first_name = 10; */ firstName = ""; /** * The middle name of the associate * * @generated from field: string middle_name = 11; */ middleName = ""; /** * The last name of the associate * * @generated from field: string last_name = 12; */ lastName = ""; /** * The association with a vendor or a client * * @generated from field: Genesis.ASSOCIATE_ORG_REF_FROM org_ref_from = 13; */ orgRefFrom = ASSOCIATE_ORG_REF_FROM.ASSOCIATE_ORG_REF_FROM_UNSPECIFIED; /** * The ID of the associated vendor or client * * @generated from field: int64 org_ref_id = 14; */ orgRefId = protobuf_1.protoInt64.zero; /** * The name of the organization that the associate works in. Will be autofilled if the associate is associated with either a client or a vendor * * @generated from field: string org_name = 15; */ orgName = ""; /** * The job title of the associate * * @generated from field: string job_title = 16; */ jobTitle = ""; /** * The department that the associates works in * * @generated from field: string department = 17; */ department = ""; /** * The work phone number of the associate * * @generated from field: string work_phone = 18; */ workPhone = ""; /** * The work email address of the associate * * [(genesis_validate.rules).string.email = true]; * * @generated from field: string work_email = 19; */ workEmail = ""; /** * The personal phone number of the associate * * @generated from field: string personal_phone = 20; */ personalPhone = ""; /** * The personal email address of the associate * * [(genesis_validate.rules).string.email = true]; * * @generated from field: string personal_email = 21; */ personalEmail = ""; /** * The associate's birthday * * @generated from field: string birthday = 22; */ birthday = ""; /** * The associate's anniversary * * @generated from field: string anniversary = 23; */ anniversary = ""; /** * A short description of the associate * * @generated from field: string description = 24; */ description = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.AssociatesServiceUpdateRequest"; 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: 9, name: "vault_folder_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "middle_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "org_ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(ASSOCIATE_ORG_REF_FROM) }, { no: 14, name: "org_ref_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 15, name: "org_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "job_title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 17, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 18, name: "work_phone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 19, name: "work_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 20, name: "personal_phone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 21, name: "personal_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 22, name: "birthday", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 23, name: "anniversary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 24, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new AssociatesServiceUpdateRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatesServiceUpdateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatesServiceUpdateRequest().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatesServiceUpdateRequest, a, b); } } exports.AssociatesServiceUpdateRequest = AssociatesServiceUpdateRequest; /** * * Describes a pagination request to retrieve records * * @generated from message Genesis.AssociatesServicePaginationReq */ class AssociatesServicePaginationReq 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.ASSOCIATE_SORT_KEY sort_key = 5; */ sortKey = ASSOCIATE_SORT_KEY.ASSOCIATE_SORT_KEY_ID_UNSPECIFIED; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.AssociatesServicePaginationReq"; 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(ASSOCIATE_SORT_KEY) }, ]); static fromBinary(bytes, options) { return new AssociatesServicePaginationReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatesServicePaginationReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatesServicePaginationReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatesServicePaginationReq, a, b); } } exports.AssociatesServicePaginationReq = AssociatesServicePaginationReq; /** * * Describes a pagination request to retrieve records associated with an entity UUID * * @generated from message Genesis.AssociatesServiceEntityPaginationReq */ class AssociatesServiceEntityPaginationReq 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.ASSOCIATE_SORT_KEY sort_key = 5; */ sortKey = ASSOCIATE_SORT_KEY.ASSOCIATE_SORT_KEY_ID_UNSPECIFIED; /** * The entity UUID that is to be used to filter associates * * @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.AssociatesServiceEntityPaginationReq"; 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(ASSOCIATE_SORT_KEY) }, { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new AssociatesServiceEntityPaginationReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatesServiceEntityPaginationReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatesServiceEntityPaginationReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatesServiceEntityPaginationReq, a, b); } } exports.AssociatesServiceEntityPaginationReq = AssociatesServiceEntityPaginationReq; /** * * Describes the request payload for performing a generic search operation on associates * * @generated from message Genesis.AssociatesServiceSearchAllReq */ class AssociatesServiceSearchAllReq extends protobuf_1.Message { /** * The sort order that is to be used to fetch the 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 response * * @generated from field: Genesis.ASSOCIATE_SORT_KEY sort_key = 5; */ sortKey = ASSOCIATE_SORT_KEY.ASSOCIATE_SORT_KEY_ID_UNSPECIFIED; /** * The entity UUID that is to be used to filter associates * * @generated from field: string entity_uuid = 6; */ entityUuid = ""; /** * Describes the key with which the search operation needs to be performed * * @generated from field: string search_key = 10; */ searchKey = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.AssociatesServiceSearchAllReq"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { 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(ASSOCIATE_SORT_KEY) }, { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new AssociatesServiceSearchAllReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AssociatesServiceSearchAllReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AssociatesServiceSearchAllReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(AssociatesServiceSearchAllReq, a, b); } } exports.AssociatesServiceSearchAllReq = AssociatesServiceSearchAllReq;