@wildboar/copp
Version:
Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript
106 lines (105 loc) • 5.66 kB
TypeScript
import { OPTIONAL, ASN1Element as _Element } from 'asn1-ts';
import * as $ from 'asn1-ts/dist/node/functional';
import { Abort_reason } from '../ISO8823-PRESENTATION/Abort-reason.ta';
export { Abort_reason, Abort_reason_reason_not_specified, reason_not_specified, Abort_reason_unrecognized_ppdu, unrecognized_ppdu, Abort_reason_unexpected_ppdu, unexpected_ppdu, Abort_reason_unexpected_session_service_primitive, unexpected_session_service_primitive, Abort_reason_unrecognized_ppdu_parameter, unrecognized_ppdu_parameter, Abort_reason_unexpected_ppdu_parameter, unexpected_ppdu_parameter, Abort_reason_invalid_ppdu_parameter_value, invalid_ppdu_parameter_value, _decode_Abort_reason, _encode_Abort_reason, } from '../ISO8823-PRESENTATION/Abort-reason.ta';
import { Event_identifier } from '../ISO8823-PRESENTATION/Event-identifier.ta';
export { Event_identifier, Event_identifier_cp_PPDU, cp_PPDU, Event_identifier_cpa_PPDU, cpa_PPDU, Event_identifier_cpr_PPDU, cpr_PPDU, Event_identifier_aru_PPDU, aru_PPDU, Event_identifier_arp_PPDU, arp_PPDU, Event_identifier_ac_PPDU, ac_PPDU, Event_identifier_aca_PPDU, aca_PPDU, Event_identifier_td_PPDU, td_PPDU, Event_identifier_ttd_PPDU, ttd_PPDU, Event_identifier_te_PPDU, te_PPDU, Event_identifier_tc_PPDU, tc_PPDU, Event_identifier_tcc_PPDU, tcc_PPDU, Event_identifier_rs_PPDU, rs_PPDU, Event_identifier_rsa_PPDU, rsa_PPDU, Event_identifier_s_release_indication, s_release_indication, Event_identifier_s_release_confirm, s_release_confirm, Event_identifier_s_token_give_indication, s_token_give_indication, Event_identifier_s_token_please_indication, s_token_please_indication, Event_identifier_s_control_give_indication, s_control_give_indication, Event_identifier_s_sync_minor_indication, s_sync_minor_indication, Event_identifier_s_sync_minor_confirm, s_sync_minor_confirm, Event_identifier_s_sync_major_indication, s_sync_major_indication, Event_identifier_s_sync_major_confirm, s_sync_major_confirm, Event_identifier_s_p_exception_report_indication, s_p_exception_report_indication, Event_identifier_s_u_exception_report_indication, s_u_exception_report_indication, Event_identifier_s_activity_start_indication, s_activity_start_indication, Event_identifier_s_activity_resume_indication, s_activity_resume_indication, Event_identifier_s_activity_interrupt_indication, s_activity_interrupt_indication, Event_identifier_s_activity_interrupt_confirm, s_activity_interrupt_confirm, Event_identifier_s_activity_discard_indication, s_activity_discard_indication, Event_identifier_s_activity_discard_confirm, s_activity_discard_confirm, Event_identifier_s_activity_end_indication, s_activity_end_indication, Event_identifier_s_activity_end_confirm, s_activity_end_confirm, _decode_Event_identifier, _encode_Event_identifier, } from '../ISO8823-PRESENTATION/Event-identifier.ta';
/**
* @summary ARP_PPDU
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* ARP-PPDU ::= SEQUENCE {
* provider-reason [0] IMPLICIT Abort-reason OPTIONAL,
* event-identifier [1] IMPLICIT Event-identifier OPTIONAL
* }
* ```
*
* @class
*/
export declare class ARP_PPDU {
/**
* @summary `provider_reason`.
* @public
* @readonly
*/
readonly provider_reason: OPTIONAL<Abort_reason>;
/**
* @summary `event_identifier`.
* @public
* @readonly
*/
readonly event_identifier: OPTIONAL<Event_identifier>;
constructor(
/**
* @summary `provider_reason`.
* @public
* @readonly
*/
provider_reason: OPTIONAL<Abort_reason>,
/**
* @summary `event_identifier`.
* @public
* @readonly
*/
event_identifier: OPTIONAL<Event_identifier>);
/**
* @summary Restructures an object into a ARP_PPDU
* @description
*
* This takes an `object` and converts it to a `ARP_PPDU`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `ARP_PPDU`.
* @returns {ARP_PPDU}
*/
static _from_object(_o: {
[_K in keyof ARP_PPDU]: ARP_PPDU[_K];
}): ARP_PPDU;
}
/**
* @summary The Leading Root Component Types of ARP_PPDU
* @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_ARP_PPDU: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of ARP_PPDU
* @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_ARP_PPDU: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of ARP_PPDU
* @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_ARP_PPDU: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) ARP_PPDU
* @function
* @param {_Element} el The element being decoded.
* @returns {ARP_PPDU} The decoded data structure.
*/
export declare function _decode_ARP_PPDU(el: _Element): ARP_PPDU;
/**
* @summary Encodes a(n) ARP_PPDU 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 ARP_PPDU, encoded as an ASN.1 Element.
*/
export declare function _encode_ARP_PPDU(value: ARP_PPDU, elGetter: $.ASN1Encoder<ARP_PPDU>): _Element;