UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

117 lines (116 loc) 4.51 kB
import { OPTIONAL, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; import { Result } from '../ISO8823-PRESENTATION/Result.ta'; export { Result, Result_acceptance, acceptance, Result_user_rejection, user_rejection, Result_provider_rejection, provider_rejection, _decode_Result, _encode_Result, } from '../ISO8823-PRESENTATION/Result.ta'; import { Transfer_syntax_name } from '../ISO8823-PRESENTATION/Transfer-syntax-name.ta'; export { Transfer_syntax_name, _decode_Transfer_syntax_name, _encode_Transfer_syntax_name, } from '../ISO8823-PRESENTATION/Transfer-syntax-name.ta'; import { Result_list_Item_provider_reason } from '../ISO8823-PRESENTATION/Result-list-Item-provider-reason.ta'; export { Result_list_Item_provider_reason, Result_list_Item_provider_reason_reason_not_specified, reason_not_specified, Result_list_Item_provider_reason_abstract_syntax_not_supported, abstract_syntax_not_supported, Result_list_Item_provider_reason_proposed_transfer_syntaxes_not_supported, proposed_transfer_syntaxes_not_supported, Result_list_Item_provider_reason_local_limit_on_DCS_exceeded, local_limit_on_DCS_exceeded, _decode_Result_list_Item_provider_reason, _encode_Result_list_Item_provider_reason, } from '../ISO8823-PRESENTATION/Result-list-Item-provider-reason.ta'; /** * @summary Result_list_Item * @description * * ### ASN.1 Definition: * * ```asn1 * Result-list-Item ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- } * ``` * * @class */ export declare class Result_list_Item { /** * @summary `result`. * @public * @readonly */ readonly result: Result; /** * @summary `transfer_syntax_name`. * @public * @readonly */ readonly transfer_syntax_name: OPTIONAL<Transfer_syntax_name>; /** * @summary `provider_reason`. * @public * @readonly */ readonly provider_reason: OPTIONAL<Result_list_Item_provider_reason>; constructor( /** * @summary `result`. * @public * @readonly */ result: Result, /** * @summary `transfer_syntax_name`. * @public * @readonly */ transfer_syntax_name: OPTIONAL<Transfer_syntax_name>, /** * @summary `provider_reason`. * @public * @readonly */ provider_reason: OPTIONAL<Result_list_Item_provider_reason>); /** * @summary Restructures an object into a Result_list_Item * @description * * This takes an `object` and converts it to a `Result_list_Item`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `Result_list_Item`. * @returns {Result_list_Item} */ static _from_object(_o: { [_K in keyof Result_list_Item]: Result_list_Item[_K]; }): Result_list_Item; } /** * @summary The Leading Root Component Types of Result_list_Item * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_Result_list_Item: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of Result_list_Item * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_Result_list_Item: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of Result_list_Item * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_Result_list_Item: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) Result_list_Item * @function * @param {_Element} el The element being decoded. * @returns {Result_list_Item} The decoded data structure. */ export declare function _decode_Result_list_Item(el: _Element): Result_list_Item; /** * @summary Encodes a(n) Result_list_Item into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The Result_list_Item, encoded as an ASN.1 Element. */ export declare function _encode_Result_list_Item(value: Result_list_Item, elGetter: $.ASN1Encoder<Result_list_Item>): _Element;