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

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,60 @@ 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
+
13
61
  interface IAuditColumnEntity {
14
62
  createdOn: number;
15
63
  updatedOn: number;
@@ -33,6 +81,9 @@ interface IDonationEntity extends IAuditColumnEntity {
33
81
  flatNo: string;
34
82
  amount: number;
35
83
  mobileNumber?: string;
84
+ paymentType: PaymentType;
85
+ status?: EntityStatus;
86
+ donationYear?: number;
36
87
  }
37
88
 
38
89
  interface IExpenseHistoryEntity extends IBaseHistoryEntity {
@@ -41,11 +92,13 @@ interface IExpenseHistoryEntity extends IBaseHistoryEntity {
41
92
  interface IExpenseEntity extends IAuditColumnEntity {
42
93
  id: number;
43
94
  name: string;
44
- type: string;
95
+ type: ExpenseType;
45
96
  vendorName: string;
46
- amount: number;
47
97
  billNumber?: string;
48
98
  remarks?: string;
99
+ amount: number;
100
+ paymentType: PaymentType;
101
+ status?: EntityStatus;
49
102
  }
50
103
 
51
104
  interface ISponsorHistoryEntity extends IBaseHistoryEntity {
@@ -59,12 +112,13 @@ interface ISponsorEntity extends IAuditColumnEntity {
59
112
  sponsorFor: SponsorFor;
60
113
  size: string;
61
114
  amount: number;
115
+ paymentType: PaymentType;
116
+ status?: EntityStatus;
62
117
  }
63
118
 
64
119
  interface ITransactionHistoryEntity extends IBaseHistoryEntity {
65
120
  }
66
121
 
67
- type TransactionType = 'Income' | 'Expense' | 'Sponsor' | 'DaanPeti';
68
122
  interface ITransactionEntity extends IAuditColumnEntity {
69
123
  id: number;
70
124
  date: string;
@@ -73,6 +127,8 @@ interface ITransactionEntity extends IAuditColumnEntity {
73
127
  amount: number;
74
128
  balanceAfter: number;
75
129
  referenceId: string;
130
+ paymentType: PaymentType;
131
+ status?: EntityStatus;
76
132
  }
77
133
 
78
134
  interface IUserHistoryEntity extends IBaseHistoryEntity {
@@ -154,6 +210,9 @@ declare class DonationModel extends BaseEntityModel implements IDonationEntity {
154
210
  flatNo: string;
155
211
  amount: number;
156
212
  mobileNumber?: string;
213
+ paymentType: PaymentType;
214
+ status: EntityStatus;
215
+ donationYear: number;
157
216
  createdOn: number;
158
217
  updatedOn: number;
159
218
  createdBy: number;
@@ -180,11 +239,13 @@ declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHis
180
239
  declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
181
240
  id: number;
182
241
  name: string;
183
- type: string;
242
+ type: ExpenseType;
184
243
  vendorName: string;
185
244
  amount: number;
186
245
  billNumber?: string;
187
246
  remarks?: string;
247
+ paymentType: PaymentType;
248
+ status: EntityStatus;
188
249
  createdOn: number;
189
250
  updatedOn: number;
190
251
  createdBy: number;
@@ -215,6 +276,8 @@ declare class SponsorModel extends BaseEntityModel implements ISponsorEntity {
215
276
  sponsorFor: SponsorFor;
216
277
  size: string;
217
278
  amount: number;
279
+ paymentType: PaymentType;
280
+ status: EntityStatus;
218
281
  createdOn: number;
219
282
  updatedOn: number;
220
283
  createdBy: number;
@@ -245,6 +308,8 @@ declare class TransactionModel extends BaseEntityModel implements ITransactionEn
245
308
  amount: number;
246
309
  balanceAfter: number;
247
310
  referenceId: string;
311
+ paymentType: PaymentType;
312
+ status: EntityStatus;
248
313
  createdOn: number;
249
314
  updatedOn: number;
250
315
  createdBy: number;
@@ -584,4 +649,4 @@ interface IUserUpdateDto extends IEntityUpdateDto<EntityType<EntityList.USER>> {
584
649
  interface IUserSearchDto extends IEntityFilterData<EntityType<EntityList.USER>> {
585
650
  }
586
651
 
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 };
652
+ export { BadRequestException, BaseEntityModel, 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 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,60 @@ 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
+
13
61
  interface IAuditColumnEntity {
14
62
  createdOn: number;
15
63
  updatedOn: number;
@@ -33,6 +81,9 @@ interface IDonationEntity extends IAuditColumnEntity {
33
81
  flatNo: string;
34
82
  amount: number;
35
83
  mobileNumber?: string;
84
+ paymentType: PaymentType;
85
+ status?: EntityStatus;
86
+ donationYear?: number;
36
87
  }
37
88
 
38
89
  interface IExpenseHistoryEntity extends IBaseHistoryEntity {
@@ -41,11 +92,13 @@ interface IExpenseHistoryEntity extends IBaseHistoryEntity {
41
92
  interface IExpenseEntity extends IAuditColumnEntity {
42
93
  id: number;
43
94
  name: string;
44
- type: string;
95
+ type: ExpenseType;
45
96
  vendorName: string;
46
- amount: number;
47
97
  billNumber?: string;
48
98
  remarks?: string;
99
+ amount: number;
100
+ paymentType: PaymentType;
101
+ status?: EntityStatus;
49
102
  }
50
103
 
51
104
  interface ISponsorHistoryEntity extends IBaseHistoryEntity {
@@ -59,12 +112,13 @@ interface ISponsorEntity extends IAuditColumnEntity {
59
112
  sponsorFor: SponsorFor;
60
113
  size: string;
61
114
  amount: number;
115
+ paymentType: PaymentType;
116
+ status?: EntityStatus;
62
117
  }
63
118
 
64
119
  interface ITransactionHistoryEntity extends IBaseHistoryEntity {
65
120
  }
66
121
 
67
- type TransactionType = 'Income' | 'Expense' | 'Sponsor' | 'DaanPeti';
68
122
  interface ITransactionEntity extends IAuditColumnEntity {
69
123
  id: number;
70
124
  date: string;
@@ -73,6 +127,8 @@ interface ITransactionEntity extends IAuditColumnEntity {
73
127
  amount: number;
74
128
  balanceAfter: number;
75
129
  referenceId: string;
130
+ paymentType: PaymentType;
131
+ status?: EntityStatus;
76
132
  }
77
133
 
78
134
  interface IUserHistoryEntity extends IBaseHistoryEntity {
@@ -154,6 +210,9 @@ declare class DonationModel extends BaseEntityModel implements IDonationEntity {
154
210
  flatNo: string;
155
211
  amount: number;
156
212
  mobileNumber?: string;
213
+ paymentType: PaymentType;
214
+ status: EntityStatus;
215
+ donationYear: number;
157
216
  createdOn: number;
158
217
  updatedOn: number;
159
218
  createdBy: number;
@@ -180,11 +239,13 @@ declare class ExpenseHistoryModel extends BaseEntityModel implements IExpenseHis
180
239
  declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
181
240
  id: number;
182
241
  name: string;
183
- type: string;
242
+ type: ExpenseType;
184
243
  vendorName: string;
185
244
  amount: number;
186
245
  billNumber?: string;
187
246
  remarks?: string;
247
+ paymentType: PaymentType;
248
+ status: EntityStatus;
188
249
  createdOn: number;
189
250
  updatedOn: number;
190
251
  createdBy: number;
@@ -215,6 +276,8 @@ declare class SponsorModel extends BaseEntityModel implements ISponsorEntity {
215
276
  sponsorFor: SponsorFor;
216
277
  size: string;
217
278
  amount: number;
279
+ paymentType: PaymentType;
280
+ status: EntityStatus;
218
281
  createdOn: number;
219
282
  updatedOn: number;
220
283
  createdBy: number;
@@ -245,6 +308,8 @@ declare class TransactionModel extends BaseEntityModel implements ITransactionEn
245
308
  amount: number;
246
309
  balanceAfter: number;
247
310
  referenceId: string;
311
+ paymentType: PaymentType;
312
+ status: EntityStatus;
248
313
  createdOn: number;
249
314
  updatedOn: number;
250
315
  createdBy: number;
@@ -584,4 +649,4 @@ interface IUserUpdateDto extends IEntityUpdateDto<EntityType<EntityList.USER>> {
584
649
  interface IUserSearchDto extends IEntityFilterData<EntityType<EntityList.USER>> {
585
650
  }
586
651
 
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 };
652
+ export { BadRequestException, BaseEntityModel, 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 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.js CHANGED
@@ -29,23 +29,30 @@ __export(index_exports, {
29
29
  EntityFilterDataHelper: () => EntityFilterDataHelper,
30
30
  EntityHistoryOperation: () => EntityHistoryOperation,
31
31
  EntityList: () => EntityList,
32
+ EntityStatus: () => EntityStatus,
32
33
  ExpenseHistoryModel: () => ExpenseHistoryModel,
33
34
  ExpenseModel: () => ExpenseModel,
35
+ ExpenseType: () => ExpenseType,
34
36
  ForbiddenException: () => ForbiddenException,
35
37
  HttpException: () => HttpException,
36
38
  NotFoundException: () => NotFoundException,
37
39
  OrderByDirection: () => OrderByDirection,
40
+ PaymentType: () => PaymentType,
41
+ ReferenceIdPrefix: () => ReferenceIdPrefix,
38
42
  RelationType: () => RelationType,
39
43
  SponsorFor: () => SponsorFor,
40
44
  SponsorHistoryModel: () => SponsorHistoryModel,
41
45
  SponsorModel: () => SponsorModel,
46
+ SponsorTier: () => SponsorTier,
42
47
  TransactionHistoryModel: () => TransactionHistoryModel,
43
48
  TransactionModel: () => TransactionModel,
49
+ TransactionType: () => TransactionType,
44
50
  UnauthorizedException: () => UnauthorizedException,
45
51
  UserHistoryModel: () => UserHistoryModel,
46
52
  UserModel: () => UserModel,
47
53
  VendorHistoryModel: () => VendorHistoryModel,
48
54
  VendorModel: () => VendorModel,
55
+ VendorType: () => VendorType,
49
56
  definedValues: () => definedValues,
50
57
  diffArrays: () => diffArrays,
51
58
  entityListEntityModelMap: () => entityListEntityModelMap,
@@ -63,6 +70,42 @@ var EntityHistoryOperation = /* @__PURE__ */ ((EntityHistoryOperation2) => {
63
70
  return EntityHistoryOperation2;
64
71
  })(EntityHistoryOperation || {});
65
72
 
73
+ // src/enums/entity-status.enum.ts
74
+ var EntityStatus = /* @__PURE__ */ ((EntityStatus2) => {
75
+ EntityStatus2["ACTIVE"] = "Active";
76
+ EntityStatus2["DELETED"] = "Deleted";
77
+ return EntityStatus2;
78
+ })(EntityStatus || {});
79
+
80
+ // src/enums/expense-type.enum.ts
81
+ var ExpenseType = /* @__PURE__ */ ((ExpenseType2) => {
82
+ ExpenseType2["DECORATION"] = "Decoration";
83
+ ExpenseType2["LIGHTING"] = "Lighting";
84
+ ExpenseType2["SOUND"] = "Sound";
85
+ ExpenseType2["PRASAD"] = "Prasad";
86
+ ExpenseType2["SECURITY"] = "Security";
87
+ ExpenseType2["TRANSPORTATION"] = "Transportation";
88
+ ExpenseType2["PRINTING"] = "Printing";
89
+ ExpenseType2["MISCELLANEOUS"] = "Miscellaneous";
90
+ return ExpenseType2;
91
+ })(ExpenseType || {});
92
+
93
+ // src/enums/payment-type.enum.ts
94
+ var PaymentType = /* @__PURE__ */ ((PaymentType2) => {
95
+ PaymentType2["CASH"] = "Cash";
96
+ PaymentType2["UPI"] = "UPI";
97
+ PaymentType2["BANK_TRANSFER"] = "Bank Transfer";
98
+ return PaymentType2;
99
+ })(PaymentType || {});
100
+
101
+ // src/enums/reference-id-prefix.enum.ts
102
+ var ReferenceIdPrefix = {
103
+ DONATION: "DON",
104
+ EXPENSE: "EXP",
105
+ SPONSOR: "SPO",
106
+ DAAN_PETI: "DPB"
107
+ };
108
+
66
109
  // src/enums/sponsor-for.enum.ts
67
110
  var SponsorFor = /* @__PURE__ */ ((SponsorFor2) => {
68
111
  SponsorFor2["GHEE"] = "ghee";
@@ -71,6 +114,31 @@ var SponsorFor = /* @__PURE__ */ ((SponsorFor2) => {
71
114
  return SponsorFor2;
72
115
  })(SponsorFor || {});
73
116
 
117
+ // src/enums/sponsor-tier.enum.ts
118
+ var SponsorTier = /* @__PURE__ */ ((SponsorTier2) => {
119
+ SponsorTier2["GOLD_SPONSOR"] = "Gold Sponsor";
120
+ SponsorTier2["SILVER_SPONSOR"] = "Silver Sponsor";
121
+ SponsorTier2["BRONZE_SPONSOR"] = "Bronze Sponsor";
122
+ SponsorTier2["GENERAL_SPONSOR"] = "General Sponsor";
123
+ return SponsorTier2;
124
+ })(SponsorTier || {});
125
+
126
+ // src/enums/transaction-type.enum.ts
127
+ var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
128
+ TransactionType2["INCOME"] = "Income";
129
+ TransactionType2["EXPENSE"] = "Expense";
130
+ return TransactionType2;
131
+ })(TransactionType || {});
132
+
133
+ // src/enums/vendor-type.enum.ts
134
+ var VendorType = /* @__PURE__ */ ((VendorType2) => {
135
+ VendorType2["SUPPLIER"] = "Supplier";
136
+ VendorType2["SERVICE_PROVIDER"] = "Service Provider";
137
+ VendorType2["CONTRACTOR"] = "Contractor";
138
+ VendorType2["OTHER"] = "Other";
139
+ return VendorType2;
140
+ })(VendorType || {});
141
+
74
142
  // src/utils/date-code.utils.ts
75
143
  var DateCodeUtils = class _DateCodeUtils {
76
144
  constructor(dateCode) {
@@ -313,6 +381,9 @@ var DonationModel = class _DonationModel extends BaseEntityModel {
313
381
  this.receiptNumber = "";
314
382
  this.flatNo = "";
315
383
  this.amount = 0;
384
+ this.paymentType = "Cash" /* CASH */;
385
+ this.status = "Active" /* ACTIVE */;
386
+ this.donationYear = (/* @__PURE__ */ new Date()).getFullYear();
316
387
  this.createdOn = 0;
317
388
  this.updatedOn = 0;
318
389
  this.createdBy = 0;
@@ -326,7 +397,8 @@ var DonationModel = class _DonationModel extends BaseEntityModel {
326
397
  static generateReceiptNumber(flatNo, existingDonations) {
327
398
  const count = existingDonations.filter((d) => d.flatNo === flatNo).length + 1;
328
399
  const seq = String(count).padStart(2, "0");
329
- return `MPCR-2026-${flatNo}-${seq}`;
400
+ const year = (/* @__PURE__ */ new Date()).getFullYear();
401
+ return `MPCR-${year}-${flatNo}-${seq}`;
330
402
  }
331
403
  };
332
404
 
@@ -356,9 +428,11 @@ var ExpenseModel = class _ExpenseModel extends BaseEntityModel {
356
428
  super();
357
429
  this.id = 0;
358
430
  this.name = "";
359
- this.type = "";
431
+ this.type = "Miscellaneous" /* MISCELLANEOUS */;
360
432
  this.vendorName = "";
361
433
  this.amount = 0;
434
+ this.paymentType = "Cash" /* CASH */;
435
+ this.status = "Active" /* ACTIVE */;
362
436
  this.createdOn = 0;
363
437
  this.updatedOn = 0;
364
438
  this.createdBy = 0;
@@ -402,6 +476,8 @@ var SponsorModel = class _SponsorModel extends BaseEntityModel {
402
476
  this.sponsorFor = "ghee" /* GHEE */;
403
477
  this.size = "";
404
478
  this.amount = 0;
479
+ this.paymentType = "Cash" /* CASH */;
480
+ this.status = "Active" /* ACTIVE */;
405
481
  this.createdOn = 0;
406
482
  this.updatedOn = 0;
407
483
  this.createdBy = 0;
@@ -440,11 +516,13 @@ var TransactionModel = class _TransactionModel extends BaseEntityModel {
440
516
  super();
441
517
  this.id = 0;
442
518
  this.date = "";
443
- this.type = "Income";
519
+ this.type = "Income" /* INCOME */;
444
520
  this.particulars = "";
445
521
  this.amount = 0;
446
522
  this.balanceAfter = 0;
447
523
  this.referenceId = "";
524
+ this.paymentType = "Cash" /* CASH */;
525
+ this.status = "Active" /* ACTIVE */;
448
526
  this.createdOn = 0;
449
527
  this.updatedOn = 0;
450
528
  this.createdBy = 0;
@@ -457,7 +535,7 @@ var TransactionModel = class _TransactionModel extends BaseEntityModel {
457
535
  });
458
536
  }
459
537
  static toCashBookEntry(tx) {
460
- const isExpense = tx.type === "Expense";
538
+ const isExpense = tx.type === "Expense" /* EXPENSE */;
461
539
  return {
462
540
  date: tx.date,
463
541
  particulars: tx.particulars,
@@ -839,23 +917,30 @@ var EntityFilterDataHelper = class {
839
917
  EntityFilterDataHelper,
840
918
  EntityHistoryOperation,
841
919
  EntityList,
920
+ EntityStatus,
842
921
  ExpenseHistoryModel,
843
922
  ExpenseModel,
923
+ ExpenseType,
844
924
  ForbiddenException,
845
925
  HttpException,
846
926
  NotFoundException,
847
927
  OrderByDirection,
928
+ PaymentType,
929
+ ReferenceIdPrefix,
848
930
  RelationType,
849
931
  SponsorFor,
850
932
  SponsorHistoryModel,
851
933
  SponsorModel,
934
+ SponsorTier,
852
935
  TransactionHistoryModel,
853
936
  TransactionModel,
937
+ TransactionType,
854
938
  UnauthorizedException,
855
939
  UserHistoryModel,
856
940
  UserModel,
857
941
  VendorHistoryModel,
858
942
  VendorModel,
943
+ VendorType,
859
944
  definedValues,
860
945
  diffArrays,
861
946
  entityListEntityModelMap,