UNPKG

@unaxiom/genesis-sdk

Version:

NPM module that provides access to Genesis' API

1,438 lines 58.5 kB
"use strict"; // @generated by protoc-gen-es v1.3.0 with parameter "target=ts" // @generated from file base.proto (package Genesis, syntax proto3) /* eslint-disable */ // @ts-nocheck Object.defineProperty(exports, "__esModule", { value: true }); exports.CloneRequest = exports.ReorderItemsRequest = exports.LogbookLogComplete = exports.LogbookLogConciseGenericCreateRequest = exports.LogbookLogConciseSLCCreateRequest = exports.LogbookLogConciseSLC = exports.IdentifierUUID = exports.IdentifierWithSearchKey = exports.IdentifierWithEmailAttributes = exports.IdentifierWithUserComment = exports.IdentifiersList = exports.IdentifierWithSearch = exports.IdentifierZeroable = exports.Identifier = exports.SimpleSearchReq = exports.UploadPictureReq = exports.UpdateOwnPasswordReq = exports.UpdatePasswordReq = exports.ActiveStatus = exports.ApprovalMetadata = exports.EmployeeMetadata = exports.DualQuantitiesResponse = exports.QuantityResponse = exports.CountResponse = exports.CountInSLCStatusRequest = exports.GPSCoordinatesResponse = exports.MonthAndDayFilter = exports.Base64String = exports.ImageResponse = exports.BytesResponse = exports.BooleanResponse = exports.Empty = exports.LOGBOOK_OPERATION = exports.STANDARD_LIFECYCLE_STATUS = exports.SORT_ORDER = void 0; const protobuf_1 = require("@bufbuild/protobuf"); /** * * Describes the order in which the records need to be returned * * @generated from enum Genesis.SORT_ORDER */ var SORT_ORDER; (function (SORT_ORDER) { /** * Fetch results in the ascending order of the provided sort key * * @generated from enum value: ASCENDING_UNSPECIFIED = 0; */ SORT_ORDER[SORT_ORDER["ASCENDING_UNSPECIFIED"] = 0] = "ASCENDING_UNSPECIFIED"; /** * Fetch results in the descending order of the provided sort key * * @generated from enum value: DESCENDING = 1; */ SORT_ORDER[SORT_ORDER["DESCENDING"] = 1] = "DESCENDING"; })(SORT_ORDER || (exports.SORT_ORDER = SORT_ORDER = {})); // Retrieve enum metadata with: proto3.getEnumType(SORT_ORDER) protobuf_1.proto3.util.setEnumType(SORT_ORDER, "Genesis.SORT_ORDER", [ { no: 0, name: "ASCENDING_UNSPECIFIED" }, { no: 1, name: "DESCENDING" }, ]); /** * * Describes the standard lifecycle status of each record * * @generated from enum Genesis.STANDARD_LIFECYCLE_STATUS */ var STANDARD_LIFECYCLE_STATUS; (function (STANDARD_LIFECYCLE_STATUS) { /** * The resource has just been created, and has been sent for verification * * @generated from enum value: PREVERIFY_UNSPECIFIED = 0; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["PREVERIFY_UNSPECIFIED"] = 0] = "PREVERIFY_UNSPECIFIED"; /** * The resource has been saved as a draft * * @generated from enum value: DRAFT = 1; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["DRAFT"] = 1] = "DRAFT"; /** * The resource has been verified * * @generated from enum value: VERIFIED = 2; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["VERIFIED"] = 2] = "VERIFIED"; /** * The resource has been approved * * @generated from enum value: STANDING = 3; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["STANDING"] = 3] = "STANDING"; /** * The resource has been sent for revision * * @generated from enum value: REVISION = 4; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["REVISION"] = 4] = "REVISION"; /** * The resource has been halted * * @generated from enum value: HALTED = 5; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["HALTED"] = 5] = "HALTED"; /** * The resource has been marked as completed * * @generated from enum value: COMPLETED = 6; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["COMPLETED"] = 6] = "COMPLETED"; /** * The resource has been discarded * * @generated from enum value: DISCARDED = 7; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["DISCARDED"] = 7] = "DISCARDED"; /** * Use this only in filter and search queries so as to retrieve all the records regardless of the status that they are in * * @generated from enum value: ANY = 10; */ STANDARD_LIFECYCLE_STATUS[STANDARD_LIFECYCLE_STATUS["ANY"] = 10] = "ANY"; })(STANDARD_LIFECYCLE_STATUS || (exports.STANDARD_LIFECYCLE_STATUS = STANDARD_LIFECYCLE_STATUS = {})); // Retrieve enum metadata with: proto3.getEnumType(STANDARD_LIFECYCLE_STATUS) protobuf_1.proto3.util.setEnumType(STANDARD_LIFECYCLE_STATUS, "Genesis.STANDARD_LIFECYCLE_STATUS", [ { no: 0, name: "PREVERIFY_UNSPECIFIED" }, { no: 1, name: "DRAFT" }, { no: 2, name: "VERIFIED" }, { no: 3, name: "STANDING" }, { no: 4, name: "REVISION" }, { no: 5, name: "HALTED" }, { no: 6, name: "COMPLETED" }, { no: 7, name: "DISCARDED" }, { no: 10, name: "ANY" }, ]); /** * * Describes all the possible values within a logbook operation * * @generated from enum Genesis.LOGBOOK_OPERATION */ var LOGBOOK_OPERATION; (function (LOGBOOK_OPERATION) { /** * Create a resource * * @generated from enum value: CREATE_UNSPECIFIED = 0; */ LOGBOOK_OPERATION[LOGBOOK_OPERATION["CREATE_UNSPECIFIED"] = 0] = "CREATE_UNSPECIFIED"; /** * Update a resource * * @generated from enum value: UPDATE = 1; */ LOGBOOK_OPERATION[LOGBOOK_OPERATION["UPDATE"] = 1] = "UPDATE"; /** * Archive a resource * * @generated from enum value: ARCHIVE = 2; */ LOGBOOK_OPERATION[LOGBOOK_OPERATION["ARCHIVE"] = 2] = "ARCHIVE"; /** * Restore a resource * * @generated from enum value: RESTORE = 3; */ LOGBOOK_OPERATION[LOGBOOK_OPERATION["RESTORE"] = 3] = "RESTORE"; })(LOGBOOK_OPERATION || (exports.LOGBOOK_OPERATION = LOGBOOK_OPERATION = {})); // Retrieve enum metadata with: proto3.getEnumType(LOGBOOK_OPERATION) protobuf_1.proto3.util.setEnumType(LOGBOOK_OPERATION, "Genesis.LOGBOOK_OPERATION", [ { no: 0, name: "CREATE_UNSPECIFIED" }, { no: 1, name: "UPDATE" }, { no: 2, name: "ARCHIVE" }, { no: 3, name: "RESTORE" }, ]); /** * * Describes an empty object * * @generated from message Genesis.Empty */ class Empty extends protobuf_1.Message { constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.Empty"; static fields = protobuf_1.proto3.util.newFieldList(() => []); static fromBinary(bytes, options) { return new Empty().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Empty().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Empty().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(Empty, a, b); } } exports.Empty = Empty; /** * * Describes the boolean response * * @generated from message Genesis.BooleanResponse */ class BooleanResponse extends protobuf_1.Message { /** * Stores if the value is true or false * * @generated from field: bool value = 1; */ value = false; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.BooleanResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "value", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes, options) { return new BooleanResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new BooleanResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new BooleanResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(BooleanResponse, a, b); } } exports.BooleanResponse = BooleanResponse; /** * * Describes a generic response that consists of bytes as payload * * @generated from message Genesis.BytesResponse */ class BytesResponse extends protobuf_1.Message { /** * Stores the response content in bytes * * @generated from field: bytes value = 1; */ value = new Uint8Array(0); constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.BytesResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes, options) { return new BytesResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new BytesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new BytesResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(BytesResponse, a, b); } } exports.BytesResponse = BytesResponse; /** * * Describes a generic response that consists of info of an image * * @generated from message Genesis.ImageResponse */ class ImageResponse extends protobuf_1.Message { /** * Stores the raw image content * * @generated from field: bytes image = 1; */ image = new Uint8Array(0); /** * Stores the MIME type of the image * * @generated from field: string mime_type = 2; */ mimeType = ""; /** * The timestamp of when the image was captured * * @generated from field: int64 timestamp = 3; */ timestamp = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.ImageResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "image", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new ImageResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ImageResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ImageResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(ImageResponse, a, b); } } exports.ImageResponse = ImageResponse; /** * * Describes the message that consists of a base64 string. Useful for relaying an image as a base64 string. * * @generated from message Genesis.Base64String */ class Base64String extends protobuf_1.Message { /** * Stores the image as a base64 string * * @generated from field: string image = 1; */ image = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.Base64String"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new Base64String().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Base64String().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Base64String().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(Base64String, a, b); } } exports.Base64String = Base64String; /** * * Describes the payload that will be used to filter records on the basis of the given month and day * * @generated from message Genesis.MonthAndDayFilter */ class MonthAndDayFilter extends protobuf_1.Message { /** * Stores the month (1 for Jan, 2 for Feb, etc.) * * @generated from field: int64 month = 1; */ month = protobuf_1.protoInt64.zero; /** * Stores the day * * @generated from field: int64 day = 2; */ day = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.MonthAndDayFilter"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "month", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "day", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new MonthAndDayFilter().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new MonthAndDayFilter().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new MonthAndDayFilter().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(MonthAndDayFilter, a, b); } } exports.MonthAndDayFilter = MonthAndDayFilter; /** * * Describes a generic response that represents a GPS coordinate * * @generated from message Genesis.GPSCoordinatesResponse */ class GPSCoordinatesResponse extends protobuf_1.Message { /** * Stores the latitude * * @generated from field: double latitude = 1; */ latitude = 0; /** * Stores the longitude * * @generated from field: double longitude = 2; */ longitude = 0; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.GPSCoordinatesResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "latitude", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 2, name: "longitude", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, ]); static fromBinary(bytes, options) { return new GPSCoordinatesResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new GPSCoordinatesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new GPSCoordinatesResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(GPSCoordinatesResponse, a, b); } } exports.GPSCoordinatesResponse = GPSCoordinatesResponse; /** * * Describes the payload for a request to determine the count of records in the given status * * @generated from message Genesis.CountInSLCStatusRequest */ class CountInSLCStatusRequest extends protobuf_1.Message { /** * Denote if only active records need to be returned * * @generated from field: bool is_active = 1; */ isActive = false; /** * The standard lifecycle status * * @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS status = 2; */ status = STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.CountInSLCStatusRequest"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(STANDARD_LIFECYCLE_STATUS) }, ]); static fromBinary(bytes, options) { return new CountInSLCStatusRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new CountInSLCStatusRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new CountInSLCStatusRequest().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(CountInSLCStatusRequest, a, b); } } exports.CountInSLCStatusRequest = CountInSLCStatusRequest; /** * * Describes the count response * * @generated from message Genesis.CountResponse */ class CountResponse extends protobuf_1.Message { /** * The number of records * * @generated from field: int64 count = 1; */ count = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.CountResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new CountResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new CountResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new CountResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(CountResponse, a, b); } } exports.CountResponse = CountResponse; /** * * Describes the quantity response * * @generated from message Genesis.QuantityResponse */ class QuantityResponse extends protobuf_1.Message { /** * The quantity * * @generated from field: int64 quantity = 1; */ quantity = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.QuantityResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new QuantityResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new QuantityResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new QuantityResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(QuantityResponse, a, b); } } exports.QuantityResponse = QuantityResponse; /** * * Describes the dual quantity response. Primary quantity represents quantity in internal UoM and secondary quantity represents quantity in either vendor UoM or client UoM, depending on the context * * @generated from message Genesis.DualQuantitiesResponse */ class DualQuantitiesResponse extends protobuf_1.Message { /** * Quantity in internal UoM * * @generated from field: int64 primary_quantity = 1; */ primaryQuantity = protobuf_1.protoInt64.zero; /** * Quantity in either vendor or client UoM * * @generated from field: int64 secondary_quantity = 2; */ secondaryQuantity = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.DualQuantitiesResponse"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "primary_quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "secondary_quantity", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new DualQuantitiesResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new DualQuantitiesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new DualQuantitiesResponse().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(DualQuantitiesResponse, a, b); } } exports.DualQuantitiesResponse = DualQuantitiesResponse; /** * * Describes the employee metadata of each resource * * @generated from message Genesis.EmployeeMetadata */ class EmployeeMetadata extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; /** * UUID of the resource * * @generated from field: bytes uuid = 2; */ uuid = new Uint8Array(0); /** * Stores the username of the user who added this resource * * @generated from field: string added_by = 3; */ addedBy = ""; /** * Represents if the resource is active * * @generated from field: bool is_active = 4; */ isActive = false; /** * Stores the timestamp of when the resource was created * * @generated from field: int64 created_at = 5; */ createdAt = protobuf_1.protoInt64.zero; /** * Stores the timestamp of when the resource was last modified * * @generated from field: int64 modified_at = 6; */ modifiedAt = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.EmployeeMetadata"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "added_by", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 6, name: "modified_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new EmployeeMetadata().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new EmployeeMetadata().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new EmployeeMetadata().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(EmployeeMetadata, a, b); } } exports.EmployeeMetadata = EmployeeMetadata; /** * * Describes the approval metadata of each resource * * @generated from message Genesis.ApprovalMetadata */ class ApprovalMetadata extends protobuf_1.Message { /** * Stores the UNIX timestamp of when a resource was approved * * @generated from field: int64 approved_on = 1; */ approvedOn = protobuf_1.protoInt64.zero; /** * Stores the ID of the user who approved this resource * * @generated from field: int64 approved_by_user_id = 2; */ approvedByUserId = protobuf_1.protoInt64.zero; /** * Stores the Role ID of the user who approved this resource at the time of approval. This needs to be stored, as the user's role is fluid * * @generated from field: int64 approver_role_id = 3; */ approverRoleId = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.ApprovalMetadata"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "approved_on", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "approved_by_user_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "approver_role_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new ApprovalMetadata().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ApprovalMetadata().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ApprovalMetadata().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(ApprovalMetadata, a, b); } } exports.ApprovalMetadata = ApprovalMetadata; /** * * Describes the status of the records returned to a request * * @generated from message Genesis.ActiveStatus */ class ActiveStatus extends protobuf_1.Message { /** * Used in ViewAll procedural calls, to denote if only active records need to be returned * * @generated from field: bool is_active = 1; */ isActive = false; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.ActiveStatus"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes, options) { return new ActiveStatus().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ActiveStatus().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ActiveStatus().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(ActiveStatus, a, b); } } exports.ActiveStatus = ActiveStatus; /** * * Describes the payload that is required to update the password of a user (by an administrator) * * @generated from message Genesis.UpdatePasswordReq */ class UpdatePasswordReq 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; /** * The plain text password using which the user can login * * @generated from field: string plain_text_password = 10; */ plainTextPassword = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.UpdatePasswordReq"; 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: 10, name: "plain_text_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new UpdatePasswordReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new UpdatePasswordReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new UpdatePasswordReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(UpdatePasswordReq, a, b); } } exports.UpdatePasswordReq = UpdatePasswordReq; /** * * Describes the payload that is requred to update the user's own password * * @generated from message Genesis.UpdateOwnPasswordReq */ class UpdateOwnPasswordReq extends protobuf_1.Message { /** * Stores any comment that the user might add during this operation * * @generated from field: string user_comment = 1; */ userComment = ""; /** * The old login password * * @generated from field: string old_plain_text_password = 3; */ oldPlainTextPassword = ""; /** * The new password * * @generated from field: string plain_text_password = 4; */ plainTextPassword = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.UpdateOwnPasswordReq"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "old_plain_text_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "plain_text_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new UpdateOwnPasswordReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new UpdateOwnPasswordReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new UpdateOwnPasswordReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(UpdateOwnPasswordReq, a, b); } } exports.UpdateOwnPasswordReq = UpdateOwnPasswordReq; /** * * Describes the payload that is required to upload a picture associated to a resource (such as profile picture or signature) * * @generated from message Genesis.UploadPictureReq */ class UploadPictureReq 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; /** * The base64 encoded image that is to be set as the profile picture * * @generated from field: string img = 10; */ img = ""; /** * The MIME type of the profile picture * * @generated from field: string mime_type = 11; */ mimeType = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.UploadPictureReq"; 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: 10, name: "img", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new UploadPictureReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new UploadPictureReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new UploadPictureReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(UploadPictureReq, a, b); } } exports.UploadPictureReq = UploadPictureReq; /** * * Describes a simple search request * * @generated from message Genesis.SimpleSearchReq */ class SimpleSearchReq extends protobuf_1.Message { /** * @generated from field: string search_key = 1; */ searchKey = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.SimpleSearchReq"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new SimpleSearchReq().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new SimpleSearchReq().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new SimpleSearchReq().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(SimpleSearchReq, a, b); } } exports.SimpleSearchReq = SimpleSearchReq; /** * * Describes the standard identifier * * @generated from message Genesis.Identifier */ class Identifier extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.Identifier"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new Identifier().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Identifier().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Identifier().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(Identifier, a, b); } } exports.Identifier = Identifier; /** * * Describes the standard identifier that can also be a zero * * @generated from message Genesis.IdentifierZeroable */ class IdentifierZeroable extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifierZeroable"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes, options) { return new IdentifierZeroable().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifierZeroable().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifierZeroable().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifierZeroable, a, b); } } exports.IdentifierZeroable = IdentifierZeroable; /** * * Describes the standard identifier along with a search key * * @generated from message Genesis.IdentifierWithSearch */ class IdentifierWithSearch extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; /** * Describes the key with which the search operation needs to be performed * * @generated from field: string search_key = 2; */ searchKey = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifierWithSearch"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IdentifierWithSearch().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifierWithSearch().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifierWithSearch().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifierWithSearch, a, b); } } exports.IdentifierWithSearch = IdentifierWithSearch; /** * * Describes the list of standard identifiers, used for identifying associated items * * @generated from message Genesis.IdentifiersList */ class IdentifiersList extends protobuf_1.Message { /** * List of identifiers * * @generated from field: repeated int64 list = 1; */ list = []; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifiersList"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "list", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes, options) { return new IdentifiersList().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifiersList().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifiersList().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifiersList, a, b); } } exports.IdentifiersList = IdentifiersList; /** * * Describes the standard identifier with a user comment. Useful when an operation needs to be performed, and a user comment needs to be recorded * * @generated from message Genesis.IdentifierWithUserComment */ class IdentifierWithUserComment extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; /** * Stores any comment that the user might add during this operation * * @generated from field: string user_comment = 2; */ userComment = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifierWithUserComment"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IdentifierWithUserComment().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifierWithUserComment().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifierWithUserComment().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifierWithUserComment, a, b); } } exports.IdentifierWithUserComment = IdentifierWithUserComment; /** * * Describes the standard identifier with email attributes. Useful when a record (identified by the identifier) needs to be mailed with the given subject, and the list of email addresses. * * @generated from message Genesis.IdentifierWithEmailAttributes */ class IdentifierWithEmailAttributes extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; /** * The subject of the email * * @generated from field: string subject = 10; */ subject = ""; /** * The list of email addresses of the recipients * * @generated from field: repeated string recipients = 11; */ recipients = []; /** * The body of the email * * @generated from field: string body = 12; */ body = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifierWithEmailAttributes"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "recipients", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 12, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IdentifierWithEmailAttributes().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifierWithEmailAttributes().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifierWithEmailAttributes().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifierWithEmailAttributes, a, b); } } exports.IdentifierWithEmailAttributes = IdentifierWithEmailAttributes; /** * * Describes the standard identifier with a search key. Useful when searching within sub records of a parent item (such as shift group shifts, etc) * * @generated from message Genesis.IdentifierWithSearchKey */ class IdentifierWithSearchKey extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; /** * The search key * * @generated from field: string search_key = 2; */ searchKey = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifierWithSearchKey"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IdentifierWithSearchKey().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifierWithSearchKey().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifierWithSearchKey().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifierWithSearchKey, a, b); } } exports.IdentifierWithSearchKey = IdentifierWithSearchKey; /** * * Describes the UUID identifier * * @generated from message Genesis.IdentifierUUID */ class IdentifierUUID extends protobuf_1.Message { /** * UUID of the resource * * @generated from field: string uuid = 1; */ uuid = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.IdentifierUUID"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new IdentifierUUID().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new IdentifierUUID().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new IdentifierUUID().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(IdentifierUUID, a, b); } } exports.IdentifierUUID = IdentifierUUID; /** * * Describes each parameter that's part of the logbook (does not include historical data of the object) with the operation being a standard lifecycle status * * @generated from message Genesis.LogbookLogConciseSLC */ class LogbookLogConciseSLC extends protobuf_1.Message { /** * ID of the resource * * @generated from field: int64 id = 1; */ id = protobuf_1.protoInt64.zero; /** * Stores if the resource is active * * @generated from field: bool is_active = 2; */ isActive = false; /** * Stores the timestamp of when this resource was created * * @generated from field: int64 timestamp = 3; */ timestamp = protobuf_1.protoInt64.zero; /** * The UUID of the resource * * @generated from field: bytes ref_uuid = 10; */ refUuid = new Uint8Array(0); /** * The operation that was performed * * @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS operation = 11; */ operation = STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED; /** * The username of the user who performed this operation * * @generated from field: string username = 12; */ username = ""; /** * The name of the person who made this entry * * @generated from field: string name = 13; */ name = ""; /** * The ID of the user who made this entry * * @generated from field: int64 user_id = 14; */ userId = protobuf_1.protoInt64.zero; /** * The comment generated by the application * * @generated from field: string app_comment = 15; */ appComment = ""; /** * The comment entered by the user * * @generated from field: string user_comment = 16; */ userComment = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.LogbookLogConciseSLC"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "ref_uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 11, name: "operation", kind: "enum", T: protobuf_1.proto3.getEnumType(STANDARD_LIFECYCLE_STATUS) }, { no: 12, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 14, name: "user_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 15, name: "app_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new LogbookLogConciseSLC().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new LogbookLogConciseSLC().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new LogbookLogConciseSLC().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(LogbookLogConciseSLC, a, b); } } exports.LogbookLogConciseSLC = LogbookLogConciseSLC; /** * * Describes the parameters that are required to create a standard lifecycle log entry * * @generated from message Genesis.LogbookLogConciseSLCCreateRequest */ class LogbookLogConciseSLCCreateRequest extends protobuf_1.Message { /** * Stores the timestamp of when this resource was created * * @generated from field: int64 timestamp = 3; */ timestamp = protobuf_1.protoInt64.zero; /** * The UUID of the resource * * @generated from field: bytes ref_uuid = 10; */ refUuid = new Uint8Array(0); /** * The operation that was performed * * @generated from field: Genesis.STANDARD_LIFECYCLE_STATUS operation = 11; */ operation = STANDARD_LIFECYCLE_STATUS.PREVERIFY_UNSPECIFIED; /** * The username of the user who performed this operation * * @generated from field: string username = 12; */ username = ""; /** * The comment generated by the application * * @generated from field: string app_comment = 13; */ appComment = ""; /** * The comment entered by the user * * @generated from field: string user_comment = 14; */ userComment = ""; constructor(data) { super(); protobuf_1.proto3.util.initPartial(data, this); } static runtime = protobuf_1.proto3; static typeName = "Genesis.LogbookLogConciseSLCCreateRequest"; static fields = protobuf_1.proto3.util.newFieldList(() => [ { no: 3, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "ref_uuid", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 11, name: "operation", kind: "enum", T: protobuf_1.proto3.getEnumType(STANDARD_LIFECYCLE_STATUS) }, { no: 12, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "app_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 14, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new LogbookLogConciseSLCCreateRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new LogbookLogConciseSLCCreateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new LogbookLogConciseSLCCreateRequest().fromJsonString(jsonString, options); } static equals(a, b) { return protobuf_1.proto3.util.equals(LogbookLogConciseSLCCreateRequest, a, b); } } exports.LogbookLogConciseSLCCreateRequest = LogbookLogConciseSLCCreateRequest; /** * * Describes the parameters that are required to create a generic lifecycle log entry * * @generated from message Genesis.LogbookLogConciseGenericCreateRequest */ class LogbookLogConciseGenericCreateRequest extends protobuf_1.Message { /** * Stores the timestamp of when this resource was created * * @generated fro