@mody-park-cha-raja/finance_common 1.0.6-beta.8 → 1.0.7-beta.0

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
@@ -4,12 +4,67 @@ declare enum EntityHistoryOperation {
4
4
  DELETE = "DELETE"
5
5
  }
6
6
 
7
+ declare enum EntityStatus {
8
+ ACTIVE = "Active",
9
+ DELETED = "Deleted"
10
+ }
11
+
12
+ declare enum ExpenseType {
13
+ DECORATION = "Decoration",
14
+ LIGHTING = "Lighting",
15
+ SOUND = "Sound",
16
+ PRASAD = "Prasad",
17
+ SECURITY = "Security",
18
+ TRANSPORTATION = "Transportation",
19
+ PRINTING = "Printing",
20
+ MISCELLANEOUS = "Miscellaneous"
21
+ }
22
+
23
+ declare enum PaymentType {
24
+ CASH = "Cash",
25
+ UPI = "UPI",
26
+ BANK_TRANSFER = "Bank Transfer"
27
+ }
28
+
29
+ declare const ReferenceIdPrefix: {
30
+ readonly DONATION: "DON";
31
+ readonly EXPENSE: "EXP";
32
+ readonly SPONSOR: "SPO";
33
+ readonly DAAN_PETI: "DPB";
34
+ };
35
+
7
36
  declare enum SponsorFor {
8
37
  GHEE = "ghee",
9
38
  PRASAD = "prasad",
10
39
  BANNER = "banner"
11
40
  }
12
41
 
42
+ declare enum SponsorTier {
43
+ GOLD_SPONSOR = "Gold Sponsor",
44
+ SILVER_SPONSOR = "Silver Sponsor",
45
+ BRONZE_SPONSOR = "Bronze Sponsor",
46
+ GENERAL_SPONSOR = "General Sponsor"
47
+ }
48
+
49
+ declare enum TransactionType {
50
+ INCOME = "Income",
51
+ EXPENSE = "Expense"
52
+ }
53
+
54
+ declare enum VendorType {
55
+ SUPPLIER = "Supplier",
56
+ SERVICE_PROVIDER = "Service Provider",
57
+ CONTRACTOR = "Contractor",
58
+ OTHER = "Other"
59
+ }
60
+
61
+ declare enum ConfigurationType {
62
+ NUMBER = "number",
63
+ STRING = "string",
64
+ CRONJOB_EXPRESSION = "cronjob_expression",
65
+ JSON = "json"
66
+ }
67
+
13
68
  interface IAuditColumnEntity {
14
69
  createdOn: number;
15
70
  updatedOn: number;
@@ -17,6 +72,14 @@ interface IAuditColumnEntity {
17
72
  updatedBy: number;
18
73
  }
19
74
 
75
+ interface IConfigurationEntity extends IAuditColumnEntity {
76
+ id: number;
77
+ key: string;
78
+ value: string;
79
+ type: ConfigurationType;
80
+ label: string;
81
+ }
82
+
20
83
  interface IBaseHistoryEntity extends IAuditColumnEntity {
21
84
  id: number;
22
85
  entityId: number;
@@ -33,6 +96,9 @@ interface IDonationEntity extends IAuditColumnEntity {
33
96
  flatNo: string;
34
97
  amount: number;
35
98
  mobileNumber?: string;
99
+ paymentType: PaymentType;
100
+ status?: EntityStatus;
101
+ donationYear?: number;
36
102
  }
37
103
 
38
104
  interface IExpenseHistoryEntity extends IBaseHistoryEntity {
@@ -41,11 +107,13 @@ interface IExpenseHistoryEntity extends IBaseHistoryEntity {
41
107
  interface IExpenseEntity extends IAuditColumnEntity {
42
108
  id: number;
43
109
  name: string;
44
- type: string;
110
+ type: ExpenseType;
45
111
  vendorName: string;
46
- amount: number;
47
112
  billNumber?: string;
48
113
  remarks?: string;
114
+ amount: number;
115
+ paymentType: PaymentType;
116
+ status?: EntityStatus;
49
117
  }
50
118
 
51
119
  interface ISponsorHistoryEntity extends IBaseHistoryEntity {
@@ -59,12 +127,13 @@ interface ISponsorEntity extends IAuditColumnEntity {
59
127
  sponsorFor: SponsorFor;
60
128
  size: string;
61
129
  amount: number;
130
+ paymentType: PaymentType;
131
+ status?: EntityStatus;
62
132
  }
63
133
 
64
134
  interface ITransactionHistoryEntity extends IBaseHistoryEntity {
65
135
  }
66
136
 
67
- type TransactionType = 'Income' | 'Expense' | 'Sponsor' | 'DaanPeti';
68
137
  interface ITransactionEntity extends IAuditColumnEntity {
69
138
  id: number;
70
139
  date: string;
@@ -73,6 +142,8 @@ interface ITransactionEntity extends IAuditColumnEntity {
73
142
  amount: number;
74
143
  balanceAfter: number;
75
144
  referenceId: string;
145
+ paymentType: PaymentType;
146
+ status?: EntityStatus;
76
147
  }
77
148
 
78
149
  interface IUserHistoryEntity extends IBaseHistoryEntity {
@@ -143,9 +214,18 @@ declare class DateUtil {
143
214
  static isFuture(epoch: number): boolean;
144
215
  }
145
216
 
146
- declare abstract class BaseEntityModel {
147
- static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
148
- populateRelations(searchResponse: ISearchV2Response, visited?: Set<string>): this;
217
+ declare class DonationHistoryModel extends BaseEntityModel implements IDonationHistoryEntity {
218
+ id: number;
219
+ entityId: number;
220
+ data: string;
221
+ operation: EntityHistoryOperation;
222
+ createdOn: number;
223
+ updatedOn: number;
224
+ createdBy: number;
225
+ updatedBy: number;
226
+ protected constructor();
227
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.DONATION_HISTORY>>>;
228
+ static populateFromEntity(entity: IDonationHistoryEntity): DonationHistoryModel;
149
229
  }
150
230
 
151
231
  declare class DonationModel extends BaseEntityModel implements IDonationEntity {
@@ -154,6 +234,9 @@ declare class DonationModel extends BaseEntityModel implements IDonationEntity {
154
234
  flatNo: string;
155
235
  amount: number;
156
236
  mobileNumber?: string;
237
+ paymentType: PaymentType;
238
+ status: EntityStatus;
239
+ donationYear: number;
157
240
  createdOn: number;
158
241
  updatedOn: number;
159
242
  createdBy: number;
@@ -180,11 +263,13 @@ declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHis
180
263
  declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
181
264
  id: number;
182
265
  name: string;
183
- type: string;
266
+ type: ExpenseType;
184
267
  vendorName: string;
185
268
  amount: number;
186
269
  billNumber?: string;
187
270
  remarks?: string;
271
+ paymentType: PaymentType;
272
+ status: EntityStatus;
188
273
  createdOn: number;
189
274
  updatedOn: number;
190
275
  createdBy: number;
@@ -215,6 +300,8 @@ declare class SponsorModel extends BaseEntityModel implements ISponsorEntity {
215
300
  sponsorFor: SponsorFor;
216
301
  size: string;
217
302
  amount: number;
303
+ paymentType: PaymentType;
304
+ status: EntityStatus;
218
305
  createdOn: number;
219
306
  updatedOn: number;
220
307
  createdBy: number;
@@ -245,6 +332,8 @@ declare class TransactionModel extends BaseEntityModel implements ITransactionEn
245
332
  amount: number;
246
333
  balanceAfter: number;
247
334
  referenceId: string;
335
+ paymentType: PaymentType;
336
+ status: EntityStatus;
248
337
  createdOn: number;
249
338
  updatedOn: number;
250
339
  createdBy: number;
@@ -322,6 +411,7 @@ declare const entityListEntityModelMap: {
322
411
  transaction_history: typeof TransactionHistoryModel.populateFromEntity;
323
412
  sponsor: typeof SponsorModel.populateFromEntity;
324
413
  sponsor_history: typeof SponsorHistoryModel.populateFromEntity;
414
+ configuration: typeof ConfigurationModel.populateFromEntity;
325
415
  };
326
416
 
327
417
  declare class HttpException extends Error {
@@ -441,18 +531,23 @@ declare enum OrderByDirection {
441
531
  DESC = "DESC"
442
532
  }
443
533
 
444
- declare class DonationHistoryModel extends BaseEntityModel implements IDonationHistoryEntity {
534
+ declare abstract class BaseEntityModel {
535
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
536
+ populateRelations(searchResponse: ISearchV2Response, visited?: Set<string>): this;
537
+ }
538
+
539
+ declare class ConfigurationModel extends BaseEntityModel implements IConfigurationEntity {
445
540
  id: number;
446
- entityId: number;
447
- data: string;
448
- operation: EntityHistoryOperation;
541
+ key: string;
542
+ value: string;
543
+ type: ConfigurationType;
544
+ label: string;
449
545
  createdOn: number;
450
546
  updatedOn: number;
451
547
  createdBy: number;
452
548
  updatedBy: number;
453
549
  protected constructor();
454
- static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.DONATION_HISTORY>>>;
455
- static populateFromEntity(entity: IDonationHistoryEntity): DonationHistoryModel;
550
+ static populateFromEntity(entity: IConfigurationEntity): ConfigurationModel;
456
551
  }
457
552
 
458
553
  declare enum EntityList {
@@ -467,10 +562,11 @@ declare enum EntityList {
467
562
  TRANSACTION = "transaction",
468
563
  TRANSACTION_HISTORY = "transaction_history",
469
564
  SPONSOR = "sponsor",
470
- SPONSOR_HISTORY = "sponsor_history"
565
+ SPONSOR_HISTORY = "sponsor_history",
566
+ CONFIGURATION = "configuration"
471
567
  }
472
- 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 : never;
473
- 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 : never;
568
+ 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.CONFIGURATION ? IConfigurationEntity : never;
569
+ 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.CONFIGURATION ? ConfigurationModel : never;
474
570
  type EntityListEntityModelMap = {
475
571
  [T in EntityList]: EntityModelType<T>[];
476
572
  };
@@ -584,4 +680,11 @@ interface IUserUpdateDto extends IEntityUpdateDto<EntityType<EntityList.USER>> {
584
680
  interface IUserSearchDto extends IEntityFilterData<EntityType<EntityList.USER>> {
585
681
  }
586
682
 
587
- export { BadRequestException, BaseEntityModel, DateCodeUtils, DateUtil, DonationHistoryModel, DonationModel, EntityFilterDataHelper, EntityHistoryOperation, EntityList, type EntityListEntityModelMap, type EntityModelType, type EntityType, ExpenseHistoryModel, ExpenseModel, ForbiddenException, HttpException, type IAuditColumnEntity, type IBaseHistoryEntity, type ICashBookEntry, 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 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, RelationType, SponsorFor, SponsorHistoryModel, SponsorModel, TransactionHistoryModel, TransactionModel, type TransactionType, UnauthorizedException, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getObjectDiffingKeys, groupBy };
683
+ interface IConfigurationCreateDto extends IEntityCreateDto<EntityType<EntityList.CONFIGURATION>> {
684
+ }
685
+ interface IConfigurationUpdateDto extends IEntityUpdateDto<EntityType<EntityList.CONFIGURATION>> {
686
+ }
687
+ interface IConfigurationSearchDto extends IEntityFilterData<EntityType<EntityList.CONFIGURATION>> {
688
+ }
689
+
690
+ export { BadRequestException, BaseEntityModel, ConfigurationModel, ConfigurationType, DateCodeUtils, DateUtil, DonationHistoryModel, DonationModel, EntityFilterDataHelper, EntityHistoryOperation, EntityList, type EntityListEntityModelMap, type EntityModelType, EntityStatus, type EntityType, ExpenseHistoryModel, ExpenseModel, ExpenseType, 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 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, PaymentType, ReferenceIdPrefix, RelationType, SponsorFor, SponsorHistoryModel, SponsorModel, SponsorTier, TransactionHistoryModel, TransactionModel, TransactionType, UnauthorizedException, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, VendorType, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getObjectDiffingKeys, groupBy };
package/dist/index.d.ts CHANGED
@@ -4,12 +4,67 @@ declare enum EntityHistoryOperation {
4
4
  DELETE = "DELETE"
5
5
  }
6
6
 
7
+ declare enum EntityStatus {
8
+ ACTIVE = "Active",
9
+ DELETED = "Deleted"
10
+ }
11
+
12
+ declare enum ExpenseType {
13
+ DECORATION = "Decoration",
14
+ LIGHTING = "Lighting",
15
+ SOUND = "Sound",
16
+ PRASAD = "Prasad",
17
+ SECURITY = "Security",
18
+ TRANSPORTATION = "Transportation",
19
+ PRINTING = "Printing",
20
+ MISCELLANEOUS = "Miscellaneous"
21
+ }
22
+
23
+ declare enum PaymentType {
24
+ CASH = "Cash",
25
+ UPI = "UPI",
26
+ BANK_TRANSFER = "Bank Transfer"
27
+ }
28
+
29
+ declare const ReferenceIdPrefix: {
30
+ readonly DONATION: "DON";
31
+ readonly EXPENSE: "EXP";
32
+ readonly SPONSOR: "SPO";
33
+ readonly DAAN_PETI: "DPB";
34
+ };
35
+
7
36
  declare enum SponsorFor {
8
37
  GHEE = "ghee",
9
38
  PRASAD = "prasad",
10
39
  BANNER = "banner"
11
40
  }
12
41
 
42
+ declare enum SponsorTier {
43
+ GOLD_SPONSOR = "Gold Sponsor",
44
+ SILVER_SPONSOR = "Silver Sponsor",
45
+ BRONZE_SPONSOR = "Bronze Sponsor",
46
+ GENERAL_SPONSOR = "General Sponsor"
47
+ }
48
+
49
+ declare enum TransactionType {
50
+ INCOME = "Income",
51
+ EXPENSE = "Expense"
52
+ }
53
+
54
+ declare enum VendorType {
55
+ SUPPLIER = "Supplier",
56
+ SERVICE_PROVIDER = "Service Provider",
57
+ CONTRACTOR = "Contractor",
58
+ OTHER = "Other"
59
+ }
60
+
61
+ declare enum ConfigurationType {
62
+ NUMBER = "number",
63
+ STRING = "string",
64
+ CRONJOB_EXPRESSION = "cronjob_expression",
65
+ JSON = "json"
66
+ }
67
+
13
68
  interface IAuditColumnEntity {
14
69
  createdOn: number;
15
70
  updatedOn: number;
@@ -17,6 +72,14 @@ interface IAuditColumnEntity {
17
72
  updatedBy: number;
18
73
  }
19
74
 
75
+ interface IConfigurationEntity extends IAuditColumnEntity {
76
+ id: number;
77
+ key: string;
78
+ value: string;
79
+ type: ConfigurationType;
80
+ label: string;
81
+ }
82
+
20
83
  interface IBaseHistoryEntity extends IAuditColumnEntity {
21
84
  id: number;
22
85
  entityId: number;
@@ -33,6 +96,9 @@ interface IDonationEntity extends IAuditColumnEntity {
33
96
  flatNo: string;
34
97
  amount: number;
35
98
  mobileNumber?: string;
99
+ paymentType: PaymentType;
100
+ status?: EntityStatus;
101
+ donationYear?: number;
36
102
  }
37
103
 
38
104
  interface IExpenseHistoryEntity extends IBaseHistoryEntity {
@@ -41,11 +107,13 @@ interface IExpenseHistoryEntity extends IBaseHistoryEntity {
41
107
  interface IExpenseEntity extends IAuditColumnEntity {
42
108
  id: number;
43
109
  name: string;
44
- type: string;
110
+ type: ExpenseType;
45
111
  vendorName: string;
46
- amount: number;
47
112
  billNumber?: string;
48
113
  remarks?: string;
114
+ amount: number;
115
+ paymentType: PaymentType;
116
+ status?: EntityStatus;
49
117
  }
50
118
 
51
119
  interface ISponsorHistoryEntity extends IBaseHistoryEntity {
@@ -59,12 +127,13 @@ interface ISponsorEntity extends IAuditColumnEntity {
59
127
  sponsorFor: SponsorFor;
60
128
  size: string;
61
129
  amount: number;
130
+ paymentType: PaymentType;
131
+ status?: EntityStatus;
62
132
  }
63
133
 
64
134
  interface ITransactionHistoryEntity extends IBaseHistoryEntity {
65
135
  }
66
136
 
67
- type TransactionType = 'Income' | 'Expense' | 'Sponsor' | 'DaanPeti';
68
137
  interface ITransactionEntity extends IAuditColumnEntity {
69
138
  id: number;
70
139
  date: string;
@@ -73,6 +142,8 @@ interface ITransactionEntity extends IAuditColumnEntity {
73
142
  amount: number;
74
143
  balanceAfter: number;
75
144
  referenceId: string;
145
+ paymentType: PaymentType;
146
+ status?: EntityStatus;
76
147
  }
77
148
 
78
149
  interface IUserHistoryEntity extends IBaseHistoryEntity {
@@ -143,9 +214,18 @@ declare class DateUtil {
143
214
  static isFuture(epoch: number): boolean;
144
215
  }
145
216
 
146
- declare abstract class BaseEntityModel {
147
- static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
148
- populateRelations(searchResponse: ISearchV2Response, visited?: Set<string>): this;
217
+ declare class DonationHistoryModel extends BaseEntityModel implements IDonationHistoryEntity {
218
+ id: number;
219
+ entityId: number;
220
+ data: string;
221
+ operation: EntityHistoryOperation;
222
+ createdOn: number;
223
+ updatedOn: number;
224
+ createdBy: number;
225
+ updatedBy: number;
226
+ protected constructor();
227
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.DONATION_HISTORY>>>;
228
+ static populateFromEntity(entity: IDonationHistoryEntity): DonationHistoryModel;
149
229
  }
150
230
 
151
231
  declare class DonationModel extends BaseEntityModel implements IDonationEntity {
@@ -154,6 +234,9 @@ declare class DonationModel extends BaseEntityModel implements IDonationEntity {
154
234
  flatNo: string;
155
235
  amount: number;
156
236
  mobileNumber?: string;
237
+ paymentType: PaymentType;
238
+ status: EntityStatus;
239
+ donationYear: number;
157
240
  createdOn: number;
158
241
  updatedOn: number;
159
242
  createdBy: number;
@@ -180,11 +263,13 @@ declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHis
180
263
  declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
181
264
  id: number;
182
265
  name: string;
183
- type: string;
266
+ type: ExpenseType;
184
267
  vendorName: string;
185
268
  amount: number;
186
269
  billNumber?: string;
187
270
  remarks?: string;
271
+ paymentType: PaymentType;
272
+ status: EntityStatus;
188
273
  createdOn: number;
189
274
  updatedOn: number;
190
275
  createdBy: number;
@@ -215,6 +300,8 @@ declare class SponsorModel extends BaseEntityModel implements ISponsorEntity {
215
300
  sponsorFor: SponsorFor;
216
301
  size: string;
217
302
  amount: number;
303
+ paymentType: PaymentType;
304
+ status: EntityStatus;
218
305
  createdOn: number;
219
306
  updatedOn: number;
220
307
  createdBy: number;
@@ -245,6 +332,8 @@ declare class TransactionModel extends BaseEntityModel implements ITransactionEn
245
332
  amount: number;
246
333
  balanceAfter: number;
247
334
  referenceId: string;
335
+ paymentType: PaymentType;
336
+ status: EntityStatus;
248
337
  createdOn: number;
249
338
  updatedOn: number;
250
339
  createdBy: number;
@@ -322,6 +411,7 @@ declare const entityListEntityModelMap: {
322
411
  transaction_history: typeof TransactionHistoryModel.populateFromEntity;
323
412
  sponsor: typeof SponsorModel.populateFromEntity;
324
413
  sponsor_history: typeof SponsorHistoryModel.populateFromEntity;
414
+ configuration: typeof ConfigurationModel.populateFromEntity;
325
415
  };
326
416
 
327
417
  declare class HttpException extends Error {
@@ -441,18 +531,23 @@ declare enum OrderByDirection {
441
531
  DESC = "DESC"
442
532
  }
443
533
 
444
- declare class DonationHistoryModel extends BaseEntityModel implements IDonationHistoryEntity {
534
+ declare abstract class BaseEntityModel {
535
+ static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
536
+ populateRelations(searchResponse: ISearchV2Response, visited?: Set<string>): this;
537
+ }
538
+
539
+ declare class ConfigurationModel extends BaseEntityModel implements IConfigurationEntity {
445
540
  id: number;
446
- entityId: number;
447
- data: string;
448
- operation: EntityHistoryOperation;
541
+ key: string;
542
+ value: string;
543
+ type: ConfigurationType;
544
+ label: string;
449
545
  createdOn: number;
450
546
  updatedOn: number;
451
547
  createdBy: number;
452
548
  updatedBy: number;
453
549
  protected constructor();
454
- static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.DONATION_HISTORY>>>;
455
- static populateFromEntity(entity: IDonationHistoryEntity): DonationHistoryModel;
550
+ static populateFromEntity(entity: IConfigurationEntity): ConfigurationModel;
456
551
  }
457
552
 
458
553
  declare enum EntityList {
@@ -467,10 +562,11 @@ declare enum EntityList {
467
562
  TRANSACTION = "transaction",
468
563
  TRANSACTION_HISTORY = "transaction_history",
469
564
  SPONSOR = "sponsor",
470
- SPONSOR_HISTORY = "sponsor_history"
565
+ SPONSOR_HISTORY = "sponsor_history",
566
+ CONFIGURATION = "configuration"
471
567
  }
472
- 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 : never;
473
- 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 : never;
568
+ 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.CONFIGURATION ? IConfigurationEntity : never;
569
+ 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.CONFIGURATION ? ConfigurationModel : never;
474
570
  type EntityListEntityModelMap = {
475
571
  [T in EntityList]: EntityModelType<T>[];
476
572
  };
@@ -584,4 +680,11 @@ interface IUserUpdateDto extends IEntityUpdateDto<EntityType<EntityList.USER>> {
584
680
  interface IUserSearchDto extends IEntityFilterData<EntityType<EntityList.USER>> {
585
681
  }
586
682
 
587
- export { BadRequestException, BaseEntityModel, DateCodeUtils, DateUtil, DonationHistoryModel, DonationModel, EntityFilterDataHelper, EntityHistoryOperation, EntityList, type EntityListEntityModelMap, type EntityModelType, type EntityType, ExpenseHistoryModel, ExpenseModel, ForbiddenException, HttpException, type IAuditColumnEntity, type IBaseHistoryEntity, type ICashBookEntry, 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 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, RelationType, SponsorFor, SponsorHistoryModel, SponsorModel, TransactionHistoryModel, TransactionModel, type TransactionType, UnauthorizedException, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getObjectDiffingKeys, groupBy };
683
+ interface IConfigurationCreateDto extends IEntityCreateDto<EntityType<EntityList.CONFIGURATION>> {
684
+ }
685
+ interface IConfigurationUpdateDto extends IEntityUpdateDto<EntityType<EntityList.CONFIGURATION>> {
686
+ }
687
+ interface IConfigurationSearchDto extends IEntityFilterData<EntityType<EntityList.CONFIGURATION>> {
688
+ }
689
+
690
+ export { BadRequestException, BaseEntityModel, ConfigurationModel, ConfigurationType, DateCodeUtils, DateUtil, DonationHistoryModel, DonationModel, EntityFilterDataHelper, EntityHistoryOperation, EntityList, type EntityListEntityModelMap, type EntityModelType, EntityStatus, type EntityType, ExpenseHistoryModel, ExpenseModel, ExpenseType, 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 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, PaymentType, ReferenceIdPrefix, RelationType, SponsorFor, SponsorHistoryModel, SponsorModel, SponsorTier, TransactionHistoryModel, TransactionModel, TransactionType, UnauthorizedException, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, VendorType, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getObjectDiffingKeys, groupBy };