43 lines
946 B
TypeScript
43 lines
946 B
TypeScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
/**
|
|
* Office Node model.
|
|
*/
|
|
export class OfficeNode {
|
|
/** Office Node children. */
|
|
children: OfficeNode[];
|
|
|
|
name: string;
|
|
id: string;
|
|
parentId: string;
|
|
hierarchy: string;
|
|
externalId: string;
|
|
parentName: string;
|
|
openingDate: string;
|
|
|
|
constructor(
|
|
name: string,
|
|
id: string = '',
|
|
parentId: string = '',
|
|
hierarchy: string = '',
|
|
externalId: string = '',
|
|
parentName: string = '',
|
|
openingDate: string = ''
|
|
) {
|
|
this.name = name;
|
|
this.id = id;
|
|
this.parentId = parentId;
|
|
this.hierarchy = hierarchy;
|
|
this.externalId = externalId;
|
|
this.parentName = parentName;
|
|
this.openingDate = openingDate;
|
|
this.children = [];
|
|
}
|
|
}
|