@mody-park-cha-raja/finance_common 4.27.1-beta.2 → 4.27.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -123,7 +123,6 @@ interface IDonationEntity extends IAuditColumnEntity {
123
123
  id: number;
124
124
  receiptNumber: string;
125
125
  flatNo: string;
126
- flatId: number;
127
126
  amount: number;
128
127
  mobileNumber?: string;
129
128
  paymentType: PaymentType;
@@ -131,6 +130,16 @@ interface IDonationEntity extends IAuditColumnEntity {
131
130
  donationYear?: number;
132
131
  }
133
132
 
133
+ interface IExpenseHeadHistoryEntity extends IBaseHistoryEntity {
134
+ }
135
+
136
+ interface IExpenseHeadEntity extends IAuditColumnEntity {
137
+ id: number;
138
+ name: string;
139
+ description?: string;
140
+ status: EntityStatus;
141
+ }
142
+
134
143
  interface IExpenseHistoryEntity extends IBaseHistoryEntity {
135
144
  }
136
145
 
@@ -140,6 +149,7 @@ interface IExpenseEntity extends IAuditColumnEntity {
140
149
  type: ExpenseType;
141
150
  incurredBy: number;
142
151
  vendorId: number;
152
+ expenseHeadId: number;
143
153
  billNumber?: string;
144
154
  remarks?: string;
145
155
  description?: string;
@@ -293,69 +303,10 @@ declare class UserModel extends BaseEntityModel implements IUserEntity {
293
303
  static populateFromEntity(entity: IUserEntity): UserModel;
294
304
  }
295
305
 
296
- interface FlatDonationLike {
297
- flatNo: string;
298
- amount: number;
299
- donationYear?: number;
300
- createdOn?: number;
301
- createdByUser?: Nullable<{
302
- name?: string;
303
- }>;
304
- updatedByUser?: Nullable<{
305
- name?: string;
306
- }>;
307
- }
308
- type FlatCollectionStatus = "Paid" | "Pending";
309
- interface FlatCollectionEntry {
310
- flatNumber: string;
311
- status: FlatCollectionStatus;
312
- amount: number;
313
- latestDonation?: Nullable<FlatDonationLike>;
314
- }
315
- interface FlatParseResult {
316
- wing?: string;
317
- num?: string;
318
- isSpecial: boolean;
319
- }
320
- interface FlatOption {
321
- label: string;
322
- value: string;
323
- }
324
- declare class FlatModel {
325
- id: number;
326
- wing: string;
327
- unitNumber: string;
328
- status: EntityStatus;
329
- createdOn: number;
330
- updatedOn: number;
331
- createdBy: number;
332
- updatedBy: number;
333
- static populateFromEntity(entity: IFlatEntity): FlatModel;
334
- createdByUser?: UserModel;
335
- updatedByUser?: UserModel;
336
- donations?: DonationModel[];
337
- static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
338
- static readonly FLAT_NUMBERS: readonly string[];
339
- static readonly FLATS_BY_WING: ReadonlyMap<string, readonly string[]>;
340
- static readonly SPECIAL_FLATS: readonly string[];
341
- static readonly WINGS: readonly string[];
342
- static getDonationYear(): number;
343
- static getTotalFlats(): number;
344
- static buildFlatNumber(wing: string, num: string): string;
345
- static isSpecialFlat(flatNo: string): boolean;
346
- static parseFlatNumber(flatNo: string): FlatParseResult;
347
- static getFlatOptions(wing: string): FlatOption[];
348
- static getDisplayLabel(wing: string, flatNo: string): string;
349
- static computeCollectionStatus(donations: FlatDonationLike[], year: number): FlatCollectionEntry[];
350
- static compareFlatNumbers(a: string, b: string): number;
351
- static convertNumberToWords(num: number): string;
352
- }
353
-
354
306
  declare class DonationModel extends BaseEntityModel implements IDonationEntity {
355
307
  id: number;
356
308
  receiptNumber: string;
357
309
  flatNo: string;
358
- flatId: number;
359
310
  amount: number;
360
311
  mobileNumber?: string;
361
312
  paymentType: PaymentType;
@@ -367,16 +318,26 @@ declare class DonationModel extends BaseEntityModel implements IDonationEntity {
367
318
  updatedBy: number;
368
319
  createdByUser?: UserModel;
369
320
  updatedByUser?: UserModel;
370
- flat?: FlatModel;
371
321
  protected constructor();
372
322
  static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
373
323
  static populateFromEntity(entity: IDonationEntity): DonationModel;
324
+ /**
325
+ * Sums the `amount` of all ACTIVE donations in the given list.
326
+ * The list is always `DonationModel[]`.
327
+ *
328
+ * @param donations - The list of DonationModels to sum
329
+ * @returns The total amount of all `EntityStatus.ACTIVE` donations (0 for empty lists)
330
+ *
331
+ * @example
332
+ * DonationModel.sumActiveDonations(donations); // 12345
333
+ */
334
+ static sumActiveDonations(donations: DonationModel[]): number;
374
335
  static getReceiptPrefix(flatNo: string): string;
375
336
  static generateReceiptNumber(flatNo: string, existingDonations: DonationModel[]): string;
376
337
  static toWhatsAppNumber(mobile: string): string;
377
338
  }
378
339
 
379
- declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHistoryEntity {
340
+ declare class ExpenseHeadHistoryModel extends BaseEntityModel implements IExpenseHeadHistoryEntity {
380
341
  id: number;
381
342
  entityId: number;
382
343
  data: string;
@@ -386,8 +347,8 @@ declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHis
386
347
  createdBy: number;
387
348
  updatedBy: number;
388
349
  protected constructor();
389
- static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.EXPENSE_HISTORY>>>;
390
- static populateFromEntity(entity: IExpenseHistoryEntity): ExpenseHistoryModel;
350
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.EXPENSE_HEAD_HISTORY>>>;
351
+ static populateFromEntity(entity: IExpenseHeadHistoryEntity): ExpenseHeadHistoryModel;
391
352
  }
392
353
 
393
354
  declare class VendorModel extends BaseEntityModel implements IVendorEntity {
@@ -410,6 +371,7 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
410
371
  name: string;
411
372
  type: ExpenseType;
412
373
  vendorId: number;
374
+ expenseHeadId: number;
413
375
  incurredBy: number;
414
376
  amount: number;
415
377
  billNumber?: string;
@@ -425,11 +387,46 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
425
387
  updatedByUser?: UserModel;
426
388
  incurredByUser?: UserModel;
427
389
  vendor?: VendorModel;
390
+ expenseHead?: ExpenseHeadModel;
428
391
  protected constructor();
429
392
  static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
430
393
  static populateFromEntity(entity: IExpenseEntity): ExpenseModel;
431
394
  get incurredByUserName(): string | undefined;
432
395
  get vendorName(): string;
396
+ get expenseHeadName(): string;
397
+ }
398
+
399
+ declare class ExpenseHeadModel extends BaseEntityModel implements IExpenseHeadEntity {
400
+ id: number;
401
+ name: string;
402
+ description?: string;
403
+ status: EntityStatus;
404
+ createdOn: number;
405
+ updatedOn: number;
406
+ createdBy: number;
407
+ updatedBy: number;
408
+ createdByUser?: UserModel;
409
+ updatedByUser?: UserModel;
410
+ expenses?: ExpenseModel[];
411
+ protected constructor();
412
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
413
+ get activeExpenses(): ExpenseModel[];
414
+ get expenseCount(): number;
415
+ static populateFromEntity(entity: IExpenseHeadEntity): ExpenseHeadModel;
416
+ }
417
+
418
+ declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHistoryEntity {
419
+ id: number;
420
+ entityId: number;
421
+ data: string;
422
+ operation: EntityHistoryOperation;
423
+ createdOn: number;
424
+ updatedOn: number;
425
+ createdBy: number;
426
+ updatedBy: number;
427
+ protected constructor();
428
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.EXPENSE_HISTORY>>>;
429
+ static populateFromEntity(entity: IExpenseHistoryEntity): ExpenseHistoryModel;
433
430
  }
434
431
 
435
432
  declare class FlatHistoryModel extends BaseEntityModel implements IFlatHistoryEntity {
@@ -446,6 +443,60 @@ declare class FlatHistoryModel extends BaseEntityModel implements IFlatHistoryEn
446
443
  static populateFromEntity(entity: IFlatHistoryEntity): FlatHistoryModel;
447
444
  }
448
445
 
446
+ interface FlatDonationLike {
447
+ flatNo: string;
448
+ amount: number;
449
+ donationYear?: number;
450
+ createdOn?: number;
451
+ createdByUser?: Nullable<{
452
+ name?: string;
453
+ }>;
454
+ updatedByUser?: Nullable<{
455
+ name?: string;
456
+ }>;
457
+ }
458
+ type FlatCollectionStatus = "Paid" | "Pending";
459
+ interface FlatCollectionEntry {
460
+ flatNumber: string;
461
+ status: FlatCollectionStatus;
462
+ amount: number;
463
+ latestDonation?: Nullable<FlatDonationLike>;
464
+ }
465
+ interface FlatParseResult {
466
+ wing?: string;
467
+ num?: string;
468
+ isSpecial: boolean;
469
+ }
470
+ interface FlatOption {
471
+ label: string;
472
+ value: string;
473
+ }
474
+ declare class FlatModel {
475
+ id: number;
476
+ wing: string;
477
+ unitNumber: string;
478
+ status: EntityStatus;
479
+ createdOn: number;
480
+ updatedOn: number;
481
+ createdBy: number;
482
+ updatedBy: number;
483
+ static populateFromEntity(entity: IFlatEntity): FlatModel;
484
+ static readonly FLAT_NUMBERS: readonly string[];
485
+ static readonly FLATS_BY_WING: ReadonlyMap<string, readonly string[]>;
486
+ static readonly SPECIAL_FLATS: readonly string[];
487
+ static readonly WINGS: readonly string[];
488
+ static getDonationYear(): number;
489
+ static getTotalFlats(): number;
490
+ static buildFlatNumber(wing: string, num: string): string;
491
+ static isSpecialFlat(flatNo: string): boolean;
492
+ static parseFlatNumber(flatNo: string): FlatParseResult;
493
+ static getFlatOptions(wing: string): FlatOption[];
494
+ static getDisplayLabel(wing: string, flatNo: string): string;
495
+ static computeCollectionStatus(donations: FlatDonationLike[], year: number): FlatCollectionEntry[];
496
+ static compareFlatNumbers(a: string, b: string): number;
497
+ static convertNumberToWords(num: number): string;
498
+ }
499
+
449
500
  declare class SponsorHistoryModel extends BaseEntityModel implements ISponsorHistoryEntity {
450
501
  id: number;
451
502
  entityId: number;
@@ -572,6 +623,8 @@ declare const entityListEntityModelMap: {
572
623
  user_history: typeof UserHistoryModel.populateFromEntity;
573
624
  expense: typeof ExpenseModel.populateFromEntity;
574
625
  expense_history: typeof ExpenseHistoryModel.populateFromEntity;
626
+ expense_head: typeof ExpenseHeadModel.populateFromEntity;
627
+ expense_head_history: typeof ExpenseHeadHistoryModel.populateFromEntity;
575
628
  vendor: typeof VendorModel.populateFromEntity;
576
629
  vendor_history: typeof VendorHistoryModel.populateFromEntity;
577
630
  transaction: typeof TransactionModel.populateFromEntity;
@@ -685,6 +738,19 @@ declare function definedValues<T>(arr: Array<Nullable<T> | undefined>): T[];
685
738
  * epochToReadableDate(1700000000000); // "2023-11-14T18:13:20.000Z"
686
739
  */
687
740
  declare function epochToReadableDate(epoch: number | string, format?: "short" | "long" | "short-dt" | "iso"): string;
741
+ /**
742
+ * Rounds a number to exactly 2 decimal places.
743
+ * Uses `Number.EPSILON` to avoid common float artifacts
744
+ * (e.g. `305.4999999` incorrectly rounding down).
745
+ *
746
+ * @param value - The number to round
747
+ * @returns The number rounded to 2 decimal places (still a number, format per-platform afterwards)
748
+ *
749
+ * @example
750
+ * roundToTwoDecimals(305.49999); // 305.5
751
+ * roundToTwoDecimals(100.125); // 100.13
752
+ */
753
+ declare function roundToTwoDecimals(value: number): number;
688
754
 
689
755
  declare function convertNumberToWords(num: number): string;
690
756
 
@@ -711,6 +777,8 @@ declare enum OrderByDirection {
711
777
  interface UserExpenseRow {
712
778
  userId: number;
713
779
  userName: string;
780
+ headId: number;
781
+ headName: string;
714
782
  count: number;
715
783
  cash: number;
716
784
  upi: number;
@@ -816,6 +884,8 @@ declare enum EntityList {
816
884
  USER_HISTORY = "user_history",
817
885
  EXPENSE = "expense",
818
886
  EXPENSE_HISTORY = "expense_history",
887
+ EXPENSE_HEAD = "expense_head",
888
+ EXPENSE_HEAD_HISTORY = "expense_head_history",
819
889
  VENDOR = "vendor",
820
890
  VENDOR_HISTORY = "vendor_history",
821
891
  TRANSACTION = "transaction",
@@ -826,8 +896,8 @@ declare enum EntityList {
826
896
  FLAT_HISTORY = "flat_history",
827
897
  CONFIGURATION = "configuration"
828
898
  }
829
- type EntityType<T extends EntityList> = T extends EntityList.DONATION ? IDonationEntity : T extends EntityList.DONATION_HISTORY ? IDonationHistoryEntity : T extends EntityList.USER ? IUserEntity : T extends EntityList.USER_HISTORY ? IUserHistoryEntity : T extends EntityList.EXPENSE ? IExpenseEntity : T extends EntityList.EXPENSE_HISTORY ? IExpenseHistoryEntity : T extends EntityList.VENDOR ? IVendorEntity : T extends EntityList.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityList.TRANSACTION ? ITransactionEntity : T extends EntityList.TRANSACTION_HISTORY ? ITransactionHistoryEntity : T extends EntityList.SPONSOR ? ISponsorEntity : T extends EntityList.SPONSOR_HISTORY ? ISponsorHistoryEntity : T extends EntityList.FLAT ? IFlatEntity : T extends EntityList.FLAT_HISTORY ? IFlatHistoryEntity : T extends EntityList.CONFIGURATION ? IConfigurationEntity : never;
830
- type EntityModelType<T extends EntityList> = T extends EntityList.DONATION ? DonationModel : T extends EntityList.DONATION_HISTORY ? DonationHistoryModel : T extends EntityList.USER ? UserModel : T extends EntityList.USER_HISTORY ? UserHistoryModel : T extends EntityList.EXPENSE ? ExpenseModel : T extends EntityList.EXPENSE_HISTORY ? ExpenseHistoryModel : T extends EntityList.VENDOR ? VendorModel : T extends EntityList.VENDOR_HISTORY ? VendorHistoryModel : T extends EntityList.TRANSACTION ? TransactionModel : T extends EntityList.TRANSACTION_HISTORY ? TransactionHistoryModel : T extends EntityList.SPONSOR ? SponsorModel : T extends EntityList.SPONSOR_HISTORY ? SponsorHistoryModel : T extends EntityList.FLAT ? FlatModel : T extends EntityList.FLAT_HISTORY ? FlatHistoryModel : T extends EntityList.CONFIGURATION ? ConfigurationModel : never;
899
+ type EntityType<T extends EntityList> = T extends EntityList.DONATION ? IDonationEntity : T extends EntityList.DONATION_HISTORY ? IDonationHistoryEntity : T extends EntityList.USER ? IUserEntity : T extends EntityList.USER_HISTORY ? IUserHistoryEntity : T extends EntityList.EXPENSE ? IExpenseEntity : T extends EntityList.EXPENSE_HISTORY ? IExpenseHistoryEntity : T extends EntityList.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityList.EXPENSE_HEAD_HISTORY ? IExpenseHeadHistoryEntity : T extends EntityList.VENDOR ? IVendorEntity : T extends EntityList.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityList.TRANSACTION ? ITransactionEntity : T extends EntityList.TRANSACTION_HISTORY ? ITransactionHistoryEntity : T extends EntityList.SPONSOR ? ISponsorEntity : T extends EntityList.SPONSOR_HISTORY ? ISponsorHistoryEntity : T extends EntityList.FLAT ? IFlatEntity : T extends EntityList.FLAT_HISTORY ? IFlatHistoryEntity : T extends EntityList.CONFIGURATION ? IConfigurationEntity : never;
900
+ type EntityModelType<T extends EntityList> = T extends EntityList.DONATION ? DonationModel : T extends EntityList.DONATION_HISTORY ? DonationHistoryModel : T extends EntityList.USER ? UserModel : T extends EntityList.USER_HISTORY ? UserHistoryModel : T extends EntityList.EXPENSE ? ExpenseModel : T extends EntityList.EXPENSE_HISTORY ? ExpenseHistoryModel : T extends EntityList.EXPENSE_HEAD ? ExpenseHeadModel : T extends EntityList.EXPENSE_HEAD_HISTORY ? ExpenseHeadHistoryModel : T extends EntityList.VENDOR ? VendorModel : T extends EntityList.VENDOR_HISTORY ? VendorHistoryModel : T extends EntityList.TRANSACTION ? TransactionModel : T extends EntityList.TRANSACTION_HISTORY ? TransactionHistoryModel : T extends EntityList.SPONSOR ? SponsorModel : T extends EntityList.SPONSOR_HISTORY ? SponsorHistoryModel : T extends EntityList.FLAT ? FlatModel : T extends EntityList.FLAT_HISTORY ? FlatHistoryModel : T extends EntityList.CONFIGURATION ? ConfigurationModel : never;
831
901
  type EntityListEntityModelMap = {
832
902
  [T in EntityList]: EntityModelType<T>[];
833
903
  };
@@ -921,6 +991,13 @@ interface IExpenseUpdateDto extends IEntityUpdateDto<EntityType<EntityList.EXPEN
921
991
  interface IExpenseSearchDto extends IEntityFilterData<EntityType<EntityList.EXPENSE>> {
922
992
  }
923
993
 
994
+ interface IExpenseHeadCreateDto extends IEntityCreateDto<EntityType<EntityList.EXPENSE_HEAD>> {
995
+ }
996
+ interface IExpenseHeadUpdateDto extends IEntityUpdateDto<EntityType<EntityList.EXPENSE_HEAD>> {
997
+ }
998
+ interface IExpenseHeadSearchDto extends IEntityFilterData<EntityType<EntityList.EXPENSE_HEAD>> {
999
+ }
1000
+
924
1001
  interface IVendorCreateDto extends IEntityCreateDto<EntityType<EntityList.VENDOR>> {
925
1002
  }
926
1003
  interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR>> {
@@ -970,4 +1047,4 @@ declare function isSpecialFlatLabel(label: string): boolean;
970
1047
  declare function getFlatValidationErrors(input: Partial<IFlatEntity>): FlatValidationError[];
971
1048
  declare function validateFlatOrThrow(input: Partial<IFlatEntity>): void;
972
1049
 
973
- export { ALL_WINGS_SELECTION, BadRequestException, BaseEntityModel, ConfigurationKey, ConfigurationModel, ConfigurationType, DateCodeUtils, DateUtil, DonationHistoryModel, DonationModel, EntityFilterDataHelper, EntityHistoryOperation, EntityList, type EntityListEntityModelMap, type EntityModelType, EntityStatus, type EntityType, ExpenseHistoryModel, ExpenseModel, ExpenseType, FLATS_BY_WING, FLAT_NUMBERS, FLAT_UNIT_NUMBER_PATTERN, FLAT_WING_PATTERN, type FlatCollectionEntry, type FlatCollectionStatus, type FlatDonationLike, FlatHistoryModel, FlatModel, type FlatOption, type FlatParseResult, type FlatValidationError, ForbiddenException, HttpException, type IAuditColumnEntity, type IBaseHistoryEntity, type ICashBookEntry, type IConfigurationCreateDto, type IConfigurationEntity, type IConfigurationSearchDto, type IConfigurationUpdateDto, type IDonationCreateDto, type IDonationEntity, type IDonationHistoryEntity, type IDonationSearchDto, type IDonationUpdateDto, type IDtoValidationError, type IEntityCreateDto, type IEntityFilterData, type IEntityFilterSearchData, type IEntityFilterSearchDataV2, type IEntityUpdateDto, type IExpenseCreateDto, type IExpenseEntity, type IExpenseHistoryEntity, type IExpenseSearchDto, type IExpenseUpdateDto, type IFlatCreateDto, type IFlatEntity, type IFlatHistoryEntity, type IFlatSearchDto, type IFlatUpdateDto, type IMappingPropertyEntry, type IModelRelationConfig, type ISearchV2Response, type ISponsorCreateDto, type ISponsorEntity, type ISponsorHistoryEntity, type ISponsorSearchDto, type ISponsorUpdateDto, type ITransactionCreateDto, type ITransactionEntity, type ITransactionHistoryEntity, type ITransactionSearchDto, type ITransactionUpdateDto, type IUserCreateDto, type IUserEntity, type IUserHistoryEntity, type IUserSearchDto, type IUserUpdateDto, type IVendorCreateDto, type IVendorEntity, type IVendorHistoryEntity, type IVendorSearchDto, type IVendorUpdateDto, NotFoundException, type Nullable, OrderByDirection, PAYMENT_OPTIONS, PaymentType, ReferenceIdPrefix, RelationType, SHOP_UNIT_NUMBER_PATTERN, SHOP_WING, SPECIAL_FLATS, SPECIAL_FLAT_LABELS, SponsorHistoryModel, SponsorModel, SponsorTier, TransactionEntityType, TransactionHistoryModel, TransactionModel, TransactionType, USER_RELATION_CONFIG, UnauthorizedException, type UserExpenseReport, type UserExpenseReportTotals, type UserExpenseRow, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, VendorType, WINGS, type WingCollectionDonationLike, type WingCollectionReport, type WingCollectionRow, type WingCollectionTotals, type XlsxCellAddress, type XlsxMergeRange, type XlsxSerializationType, type XlsxSheetInput, type XlsxSheetOptions, buildUserExpenseReport, buildUserExpenseWorkbook, buildWingWiseCollectionReport, buildWingWiseCollectionWorkbook, buildXlsxWorkbook, convertNumberToWords, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getFlatValidationErrors, getObjectDiffingKeys, getWingSelectionLabel, getWingSelectionSlug, groupBy, isSpecialFlatLabel, isValidFlatWing, serializeXlsx, validateFlatOrThrow };
1050
+ export { ALL_WINGS_SELECTION, BadRequestException, BaseEntityModel, ConfigurationKey, ConfigurationModel, ConfigurationType, DateCodeUtils, DateUtil, DonationHistoryModel, DonationModel, EntityFilterDataHelper, EntityHistoryOperation, EntityList, type EntityListEntityModelMap, type EntityModelType, EntityStatus, type EntityType, ExpenseHeadHistoryModel, ExpenseHeadModel, ExpenseHistoryModel, ExpenseModel, ExpenseType, FLATS_BY_WING, FLAT_NUMBERS, FLAT_UNIT_NUMBER_PATTERN, FLAT_WING_PATTERN, type FlatCollectionEntry, type FlatCollectionStatus, type FlatDonationLike, FlatHistoryModel, FlatModel, type FlatOption, type FlatParseResult, type FlatValidationError, ForbiddenException, HttpException, type IAuditColumnEntity, type IBaseHistoryEntity, type ICashBookEntry, type IConfigurationCreateDto, type IConfigurationEntity, type IConfigurationSearchDto, type IConfigurationUpdateDto, type IDonationCreateDto, type IDonationEntity, type IDonationHistoryEntity, type IDonationSearchDto, type IDonationUpdateDto, type IDtoValidationError, type IEntityCreateDto, type IEntityFilterData, type IEntityFilterSearchData, type IEntityFilterSearchDataV2, type IEntityUpdateDto, type IExpenseCreateDto, type IExpenseEntity, type IExpenseHeadCreateDto, type IExpenseHeadEntity, type IExpenseHeadHistoryEntity, type IExpenseHeadSearchDto, type IExpenseHeadUpdateDto, type IExpenseHistoryEntity, type IExpenseSearchDto, type IExpenseUpdateDto, type IFlatCreateDto, type IFlatEntity, type IFlatHistoryEntity, type IFlatSearchDto, type IFlatUpdateDto, type IMappingPropertyEntry, type IModelRelationConfig, type ISearchV2Response, type ISponsorCreateDto, type ISponsorEntity, type ISponsorHistoryEntity, type ISponsorSearchDto, type ISponsorUpdateDto, type ITransactionCreateDto, type ITransactionEntity, type ITransactionHistoryEntity, type ITransactionSearchDto, type ITransactionUpdateDto, type IUserCreateDto, type IUserEntity, type IUserHistoryEntity, type IUserSearchDto, type IUserUpdateDto, type IVendorCreateDto, type IVendorEntity, type IVendorHistoryEntity, type IVendorSearchDto, type IVendorUpdateDto, NotFoundException, type Nullable, OrderByDirection, PAYMENT_OPTIONS, PaymentType, ReferenceIdPrefix, RelationType, SHOP_UNIT_NUMBER_PATTERN, SHOP_WING, SPECIAL_FLATS, SPECIAL_FLAT_LABELS, SponsorHistoryModel, SponsorModel, SponsorTier, TransactionEntityType, TransactionHistoryModel, TransactionModel, TransactionType, USER_RELATION_CONFIG, UnauthorizedException, type UserExpenseReport, type UserExpenseReportTotals, type UserExpenseRow, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, VendorType, WINGS, type WingCollectionDonationLike, type WingCollectionReport, type WingCollectionRow, type WingCollectionTotals, type XlsxCellAddress, type XlsxMergeRange, type XlsxSerializationType, type XlsxSheetInput, type XlsxSheetOptions, buildUserExpenseReport, buildUserExpenseWorkbook, buildWingWiseCollectionReport, buildWingWiseCollectionWorkbook, buildXlsxWorkbook, convertNumberToWords, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getFlatValidationErrors, getObjectDiffingKeys, getWingSelectionLabel, getWingSelectionSlug, groupBy, isSpecialFlatLabel, isValidFlatWing, roundToTwoDecimals, serializeXlsx, validateFlatOrThrow };