- Add #domain, #protocol, #utils aliases to package.json imports map - Replace all relative imports (./, ../, ../..) in app/ and database/mongo_migrations/ with the corresponding #alias imports, eliminating relative path traversal across the codebase - Remove dead code: ConfigurationVersionModel.findByConfigurationIdentifier (unused, superseded by paginateVersions) and unused exception classes (NotFoundException, UnprocessableEntityException, DatabaseException) from app/exceptions/index.ts, keeping only BadRequestException - Fix pre-existing syntax error in configuration_version.ts (mismatched parenthesis) that broke tsc - Fix eqeqeq violation in configuration_service.ts and isNaN -> Number.isNaN in configuration_engine.ts / cwmp-1-0.ts / exchange_controller.ts - Fix no-shadow violation in cwmp-1-0.ts EventStruct constructor - Prettier formatting pass on touched files Validated: tsc --noEmit clean, eslint app/ clean, full test suite green.
33 lines
804 B
TypeScript
33 lines
804 B
TypeScript
// @ts-nocheck — fichier copié de cwmp-connector (papaye)
|
|
import { Cwmp_1_2 } from '#protocol/cwmp-1-2'
|
|
|
|
/**
|
|
* CWMP Version 1.3 Protocol Classes
|
|
*
|
|
* Extends CWMP 1.2 with:
|
|
* - New SOAP Header element: SessionTimeout
|
|
*/
|
|
export class Cwmp_1_3 extends Cwmp_1_2 {
|
|
public '@class' = '.Cwmp_1_3'
|
|
public 'SessionTimeout'?: SessionTimeout
|
|
|
|
'constructor'(props: any = {}) {
|
|
super(props)
|
|
this.SessionTimeout = props.SessionTimeout
|
|
? new SessionTimeout(props.SessionTimeout)
|
|
: undefined
|
|
}
|
|
}
|
|
|
|
// SOAP Header element for CWMP 1.3
|
|
export class SessionTimeout {
|
|
public '@class' = '.SessionTimeout'
|
|
public 'MustUnderstand': string = '0'
|
|
public '_': number
|
|
|
|
'constructor'(props: any = {}) {
|
|
this.MustUnderstand = props.MustUnderstand ?? '0'
|
|
this._ = props._ ?? 0
|
|
}
|
|
}
|