@mody-park-cha-raja/finance_common 1.0.6-beta.7 → 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;
@@ -549,4 +614,39 @@ interface IDonationUpdateDto extends IEntityUpdateDto<EntityType<EntityList.DONA
549
614
  interface IDonationSearchDto extends IEntityFilterData<EntityType<EntityList.DONATION>> {
550
615
  }
551
616
 
552
- 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 IExpenseEntity, type IExpenseHistoryEntity, type IModelRelationConfig, type ISearchV2Response, type ISponsorEntity, type ISponsorHistoryEntity, type ITransactionEntity, type ITransactionHistoryEntity, type IUserEntity, type IUserHistoryEntity, type IVendorEntity, type IVendorHistoryEntity, NotFoundException, type Nullable, OrderByDirection, RelationType, SponsorFor, SponsorHistoryModel, SponsorModel, TransactionHistoryModel, TransactionModel, type TransactionType, UnauthorizedException, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getObjectDiffingKeys, groupBy };
617
+ interface ISponsorCreateDto extends IEntityCreateDto<EntityType<EntityList.SPONSOR>> {
618
+ }
619
+ interface ISponsorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.SPONSOR>> {
620
+ }
621
+ interface ISponsorSearchDto extends IEntityFilterData<EntityType<EntityList.SPONSOR>> {
622
+ }
623
+
624
+ interface IExpenseCreateDto extends IEntityCreateDto<EntityType<EntityList.EXPENSE>> {
625
+ }
626
+ interface IExpenseUpdateDto extends IEntityUpdateDto<EntityType<EntityList.EXPENSE>> {
627
+ }
628
+ interface IExpenseSearchDto extends IEntityFilterData<EntityType<EntityList.EXPENSE>> {
629
+ }
630
+
631
+ interface IVendorCreateDto extends IEntityCreateDto<EntityType<EntityList.VENDOR>> {
632
+ }
633
+ interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR>> {
634
+ }
635
+ interface IVendorSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR>> {
636
+ }
637
+
638
+ interface ITransactionCreateDto extends IEntityCreateDto<EntityType<EntityList.TRANSACTION>> {
639
+ }
640
+ interface ITransactionUpdateDto extends IEntityUpdateDto<EntityType<EntityList.TRANSACTION>> {
641
+ }
642
+ interface ITransactionSearchDto extends IEntityFilterData<EntityType<EntityList.TRANSACTION>> {
643
+ }
644
+
645
+ interface IUserCreateDto extends IEntityCreateDto<EntityType<EntityList.USER>> {
646
+ }
647
+ interface IUserUpdateDto extends IEntityUpdateDto<EntityType<EntityList.USER>> {
648
+ }
649
+ interface IUserSearchDto extends IEntityFilterData<EntityType<EntityList.USER>> {
650
+ }
651
+
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;
@@ -549,4 +614,39 @@ interface IDonationUpdateDto extends IEntityUpdateDto<EntityType<EntityList.DONA
549
614
  interface IDonationSearchDto extends IEntityFilterData<EntityType<EntityList.DONATION>> {
550
615
  }
551
616
 
552
- 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 IExpenseEntity, type IExpenseHistoryEntity, type IModelRelationConfig, type ISearchV2Response, type ISponsorEntity, type ISponsorHistoryEntity, type ITransactionEntity, type ITransactionHistoryEntity, type IUserEntity, type IUserHistoryEntity, type IVendorEntity, type IVendorHistoryEntity, NotFoundException, type Nullable, OrderByDirection, RelationType, SponsorFor, SponsorHistoryModel, SponsorModel, TransactionHistoryModel, TransactionModel, type TransactionType, UnauthorizedException, UserHistoryModel, UserModel, VendorHistoryModel, VendorModel, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getObjectDiffingKeys, groupBy };
617
+ interface ISponsorCreateDto extends IEntityCreateDto<EntityType<EntityList.SPONSOR>> {
618
+ }
619
+ interface ISponsorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.SPONSOR>> {
620
+ }
621
+ interface ISponsorSearchDto extends IEntityFilterData<EntityType<EntityList.SPONSOR>> {
622
+ }
623
+
624
+ interface IExpenseCreateDto extends IEntityCreateDto<EntityType<EntityList.EXPENSE>> {
625
+ }
626
+ interface IExpenseUpdateDto extends IEntityUpdateDto<EntityType<EntityList.EXPENSE>> {
627
+ }
628
+ interface IExpenseSearchDto extends IEntityFilterData<EntityType<EntityList.EXPENSE>> {
629
+ }
630
+
631
+ interface IVendorCreateDto extends IEntityCreateDto<EntityType<EntityList.VENDOR>> {
632
+ }
633
+ interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR>> {
634
+ }
635
+ interface IVendorSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR>> {
636
+ }
637
+
638
+ interface ITransactionCreateDto extends IEntityCreateDto<EntityType<EntityList.TRANSACTION>> {
639
+ }
640
+ interface ITransactionUpdateDto extends IEntityUpdateDto<EntityType<EntityList.TRANSACTION>> {
641
+ }
642
+ interface ITransactionSearchDto extends IEntityFilterData<EntityType<EntityList.TRANSACTION>> {
643
+ }
644
+
645
+ interface IUserCreateDto extends IEntityCreateDto<EntityType<EntityList.USER>> {
646
+ }
647
+ interface IUserUpdateDto extends IEntityUpdateDto<EntityType<EntityList.USER>> {
648
+ }
649
+ interface IUserSearchDto extends IEntityFilterData<EntityType<EntityList.USER>> {
650
+ }
651
+
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,18 +381,24 @@ 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;
319
390
  this.updatedBy = 0;
320
391
  }
321
392
  static populateFromEntity(entity) {
322
- return Object.assign(new _DonationModel(), entity);
393
+ return Object.assign(new _DonationModel(), entity, {
394
+ amount: Number(entity.amount)
395
+ });
323
396
  }
324
397
  static generateReceiptNumber(flatNo, existingDonations) {
325
398
  const count = existingDonations.filter((d) => d.flatNo === flatNo).length + 1;
326
399
  const seq = String(count).padStart(2, "0");
327
- return `MPCR-2026-${flatNo}-${seq}`;
400
+ const year = (/* @__PURE__ */ new Date()).getFullYear();
401
+ return `MPCR-${year}-${flatNo}-${seq}`;
328
402
  }
329
403
  };
330
404
 
@@ -354,16 +428,20 @@ var ExpenseModel = class _ExpenseModel extends BaseEntityModel {
354
428
  super();
355
429
  this.id = 0;
356
430
  this.name = "";
357
- this.type = "";
431
+ this.type = "Miscellaneous" /* MISCELLANEOUS */;
358
432
  this.vendorName = "";
359
433
  this.amount = 0;
434
+ this.paymentType = "Cash" /* CASH */;
435
+ this.status = "Active" /* ACTIVE */;
360
436
  this.createdOn = 0;
361
437
  this.updatedOn = 0;
362
438
  this.createdBy = 0;
363
439
  this.updatedBy = 0;
364
440
  }
365
441
  static populateFromEntity(entity) {
366
- return Object.assign(new _ExpenseModel(), entity);
442
+ return Object.assign(new _ExpenseModel(), entity, {
443
+ amount: Number(entity.amount)
444
+ });
367
445
  }
368
446
  };
369
447
 
@@ -398,13 +476,17 @@ var SponsorModel = class _SponsorModel extends BaseEntityModel {
398
476
  this.sponsorFor = "ghee" /* GHEE */;
399
477
  this.size = "";
400
478
  this.amount = 0;
479
+ this.paymentType = "Cash" /* CASH */;
480
+ this.status = "Active" /* ACTIVE */;
401
481
  this.createdOn = 0;
402
482
  this.updatedOn = 0;
403
483
  this.createdBy = 0;
404
484
  this.updatedBy = 0;
405
485
  }
406
486
  static populateFromEntity(entity) {
407
- return Object.assign(new _SponsorModel(), entity);
487
+ return Object.assign(new _SponsorModel(), entity, {
488
+ amount: Number(entity.amount)
489
+ });
408
490
  }
409
491
  };
410
492
 
@@ -434,21 +516,26 @@ var TransactionModel = class _TransactionModel extends BaseEntityModel {
434
516
  super();
435
517
  this.id = 0;
436
518
  this.date = "";
437
- this.type = "Income";
519
+ this.type = "Income" /* INCOME */;
438
520
  this.particulars = "";
439
521
  this.amount = 0;
440
522
  this.balanceAfter = 0;
441
523
  this.referenceId = "";
524
+ this.paymentType = "Cash" /* CASH */;
525
+ this.status = "Active" /* ACTIVE */;
442
526
  this.createdOn = 0;
443
527
  this.updatedOn = 0;
444
528
  this.createdBy = 0;
445
529
  this.updatedBy = 0;
446
530
  }
447
531
  static populateFromEntity(entity) {
448
- return Object.assign(new _TransactionModel(), entity);
532
+ return Object.assign(new _TransactionModel(), entity, {
533
+ amount: Number(entity.amount),
534
+ balanceAfter: Number(entity.balanceAfter)
535
+ });
449
536
  }
450
537
  static toCashBookEntry(tx) {
451
- const isExpense = tx.type === "Expense";
538
+ const isExpense = tx.type === "Expense" /* EXPENSE */;
452
539
  return {
453
540
  date: tx.date,
454
541
  particulars: tx.particulars,
@@ -830,23 +917,30 @@ var EntityFilterDataHelper = class {
830
917
  EntityFilterDataHelper,
831
918
  EntityHistoryOperation,
832
919
  EntityList,
920
+ EntityStatus,
833
921
  ExpenseHistoryModel,
834
922
  ExpenseModel,
923
+ ExpenseType,
835
924
  ForbiddenException,
836
925
  HttpException,
837
926
  NotFoundException,
838
927
  OrderByDirection,
928
+ PaymentType,
929
+ ReferenceIdPrefix,
839
930
  RelationType,
840
931
  SponsorFor,
841
932
  SponsorHistoryModel,
842
933
  SponsorModel,
934
+ SponsorTier,
843
935
  TransactionHistoryModel,
844
936
  TransactionModel,
937
+ TransactionType,
845
938
  UnauthorizedException,
846
939
  UserHistoryModel,
847
940
  UserModel,
848
941
  VendorHistoryModel,
849
942
  VendorModel,
943
+ VendorType,
850
944
  definedValues,
851
945
  diffArrays,
852
946
  entityListEntityModelMap,