@mody-park-cha-raja/finance_common 4.30.1-beta.4 → 4.31.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 +3 -83
- package/dist/index.d.ts +3 -83
- package/dist/index.js +0 -108
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -105
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -77,14 +77,6 @@ declare enum TransactionType {
|
|
|
77
77
|
EXPENSE = "Expense"
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare enum VendorBillStatus {
|
|
81
|
-
OPEN = "OPEN",
|
|
82
|
-
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
83
|
-
PAID = "PAID",
|
|
84
|
-
CLOSED = "CLOSED",
|
|
85
|
-
CANCELLED = "CANCELLED"
|
|
86
|
-
}
|
|
87
|
-
|
|
88
80
|
declare enum VendorType {
|
|
89
81
|
SUPPLIER = "Supplier",
|
|
90
82
|
SERVICE_PROVIDER = "Service Provider",
|
|
@@ -154,7 +146,6 @@ interface IExpenseEntity extends IAuditColumnEntity {
|
|
|
154
146
|
incurredBy: number;
|
|
155
147
|
vendorId: number;
|
|
156
148
|
expenseHeadId: number;
|
|
157
|
-
vendorBillId?: number;
|
|
158
149
|
billNumber?: string;
|
|
159
150
|
remarks?: string;
|
|
160
151
|
description?: string;
|
|
@@ -285,23 +276,6 @@ interface IVendorEntity extends IAuditColumnEntity {
|
|
|
285
276
|
type: string;
|
|
286
277
|
}
|
|
287
278
|
|
|
288
|
-
interface IVendorBillHistoryEntity extends IBaseHistoryEntity {
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
interface IVendorBillEntity extends IAuditColumnEntity {
|
|
292
|
-
id: number;
|
|
293
|
-
vendorId: number;
|
|
294
|
-
expenseHeadId: number;
|
|
295
|
-
description: string;
|
|
296
|
-
invoiceNumber?: string;
|
|
297
|
-
totalAmount: number;
|
|
298
|
-
balancePayable: number;
|
|
299
|
-
discountAmount?: number;
|
|
300
|
-
discountRemarks?: string;
|
|
301
|
-
billStatus: VendorBillStatus;
|
|
302
|
-
status?: EntityStatus;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
279
|
declare class DonationHistoryModel extends BaseEntityModel implements IDonationHistoryEntity {
|
|
306
280
|
id: number;
|
|
307
281
|
entityId: number;
|
|
@@ -525,33 +499,6 @@ declare class VendorModel extends BaseEntityModel implements IVendorEntity {
|
|
|
525
499
|
static populateFromEntity(entity: IVendorEntity): VendorModel;
|
|
526
500
|
}
|
|
527
501
|
|
|
528
|
-
declare class VendorBillModel extends BaseEntityModel implements IVendorBillEntity {
|
|
529
|
-
id: number;
|
|
530
|
-
vendorId: number;
|
|
531
|
-
expenseHeadId: number;
|
|
532
|
-
description: string;
|
|
533
|
-
invoiceNumber?: string;
|
|
534
|
-
totalAmount: number;
|
|
535
|
-
balancePayable: number;
|
|
536
|
-
discountAmount?: number;
|
|
537
|
-
discountRemarks?: string;
|
|
538
|
-
billStatus: VendorBillStatus;
|
|
539
|
-
status: EntityStatus;
|
|
540
|
-
createdOn: number;
|
|
541
|
-
updatedOn: number;
|
|
542
|
-
createdBy: number;
|
|
543
|
-
updatedBy: number;
|
|
544
|
-
createdByUser?: UserModel;
|
|
545
|
-
updatedByUser?: UserModel;
|
|
546
|
-
vendor?: VendorModel;
|
|
547
|
-
expenseHead?: ExpenseHeadModel;
|
|
548
|
-
expenses?: ExpenseModel[];
|
|
549
|
-
protected constructor();
|
|
550
|
-
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
|
|
551
|
-
static populateFromEntity(entity: IVendorBillEntity): VendorBillModel;
|
|
552
|
-
get totalAmountPaid(): number | undefined;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
502
|
declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
556
503
|
id: number;
|
|
557
504
|
name: string;
|
|
@@ -563,7 +510,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
563
510
|
remarks?: string;
|
|
564
511
|
description?: string;
|
|
565
512
|
paymentType: PaymentType;
|
|
566
|
-
vendorBillId?: number;
|
|
567
513
|
status: EntityStatus;
|
|
568
514
|
createdOn: number;
|
|
569
515
|
updatedOn: number;
|
|
@@ -574,7 +520,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
574
520
|
incurredByUser?: UserModel;
|
|
575
521
|
vendor?: VendorModel;
|
|
576
522
|
expenseHead?: ExpenseHeadModel;
|
|
577
|
-
vendorBill?: VendorBillModel;
|
|
578
523
|
protected constructor();
|
|
579
524
|
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
|
|
580
525
|
static populateFromEntity(entity: IExpenseEntity): ExpenseModel;
|
|
@@ -733,20 +678,6 @@ declare class VendorHistoryModel extends BaseEntityModel implements IVendorHisto
|
|
|
733
678
|
static populateFromEntity(entity: IVendorHistoryEntity): VendorHistoryModel;
|
|
734
679
|
}
|
|
735
680
|
|
|
736
|
-
declare class VendorBillHistoryModel extends BaseEntityModel implements IVendorBillHistoryEntity {
|
|
737
|
-
id: number;
|
|
738
|
-
entityId: number;
|
|
739
|
-
data: string;
|
|
740
|
-
operation: EntityHistoryOperation;
|
|
741
|
-
createdOn: number;
|
|
742
|
-
updatedOn: number;
|
|
743
|
-
createdBy: number;
|
|
744
|
-
updatedBy: number;
|
|
745
|
-
protected constructor();
|
|
746
|
-
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.VENDOR_BILL_HISTORY>>>;
|
|
747
|
-
static populateFromEntity(entity: IVendorBillHistoryEntity): VendorBillHistoryModel;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
681
|
declare class ConfigurationModel extends BaseEntityModel implements IConfigurationEntity {
|
|
751
682
|
id: number;
|
|
752
683
|
key: string;
|
|
@@ -774,8 +705,6 @@ declare const entityListEntityModelMap: {
|
|
|
774
705
|
expense_head_history: typeof ExpenseHeadHistoryModel.populateFromEntity;
|
|
775
706
|
vendor: typeof VendorModel.populateFromEntity;
|
|
776
707
|
vendor_history: typeof VendorHistoryModel.populateFromEntity;
|
|
777
|
-
vendor_bill: typeof VendorBillModel.populateFromEntity;
|
|
778
|
-
vendor_bill_history: typeof VendorBillHistoryModel.populateFromEntity;
|
|
779
708
|
transaction: typeof TransactionModel.populateFromEntity;
|
|
780
709
|
transaction_history: typeof TransactionHistoryModel.populateFromEntity;
|
|
781
710
|
sponsor: typeof SponsorModel.populateFromEntity;
|
|
@@ -1058,8 +987,6 @@ declare enum EntityList {
|
|
|
1058
987
|
EXPENSE_HEAD_HISTORY = "expense_head_history",
|
|
1059
988
|
VENDOR = "vendor",
|
|
1060
989
|
VENDOR_HISTORY = "vendor_history",
|
|
1061
|
-
VENDOR_BILL = "vendor_bill",
|
|
1062
|
-
VENDOR_BILL_HISTORY = "vendor_bill_history",
|
|
1063
990
|
TRANSACTION = "transaction",
|
|
1064
991
|
TRANSACTION_HISTORY = "transaction_history",
|
|
1065
992
|
SPONSOR = "sponsor",
|
|
@@ -1068,8 +995,8 @@ declare enum EntityList {
|
|
|
1068
995
|
FLAT_HISTORY = "flat_history",
|
|
1069
996
|
CONFIGURATION = "configuration"
|
|
1070
997
|
}
|
|
1071
|
-
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.
|
|
1072
|
-
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.
|
|
998
|
+
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;
|
|
999
|
+
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;
|
|
1073
1000
|
type EntityListEntityModelMap = {
|
|
1074
1001
|
[T in EntityList]: EntityModelType<T>[];
|
|
1075
1002
|
};
|
|
@@ -1178,13 +1105,6 @@ interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR
|
|
|
1178
1105
|
interface IVendorSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR>> {
|
|
1179
1106
|
}
|
|
1180
1107
|
|
|
1181
|
-
interface IVendorBillCreateDto extends Omit<IEntityCreateDto<EntityType<EntityList.VENDOR_BILL>>, 'invoiceNumber'> {
|
|
1182
|
-
}
|
|
1183
|
-
interface IVendorBillUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR_BILL>> {
|
|
1184
|
-
}
|
|
1185
|
-
interface IVendorBillSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR_BILL>> {
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
1108
|
interface ITransactionCreateDto extends IEntityCreateDto<EntityType<EntityList.TRANSACTION>> {
|
|
1189
1109
|
}
|
|
1190
1110
|
interface ITransactionUpdateDto extends IEntityUpdateDto<EntityType<EntityList.TRANSACTION>> {
|
|
@@ -1227,4 +1147,4 @@ declare function isSpecialFlatLabel(label: string): boolean;
|
|
|
1227
1147
|
declare function getFlatValidationErrors(input: Partial<IFlatEntity>): FlatValidationError[];
|
|
1228
1148
|
declare function validateFlatOrThrow(input: Partial<IFlatEntity>): void;
|
|
1229
1149
|
|
|
1230
|
-
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, FLATS_BY_WING, FLAT_DONATION_RELATION_CONFIG, FLAT_NUMBERS, FLAT_UNIT_NUMBER_PATTERN, FLAT_WING_PATTERN, type FlatCollectionEntry, type FlatCollectionStatus, type FlatDonationLike, FlatHistoryModel, type FlatIdDonationLike, 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
|
|
1150
|
+
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, FLATS_BY_WING, FLAT_DONATION_RELATION_CONFIG, FLAT_NUMBERS, FLAT_UNIT_NUMBER_PATTERN, FLAT_WING_PATTERN, type FlatCollectionEntry, type FlatCollectionStatus, type FlatDonationLike, FlatHistoryModel, type FlatIdDonationLike, 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, WING_ALPHABETS, type WingCollectionDonationByIdLike, type WingCollectionDonationLike, type WingCollectionReport, type WingCollectionRow, type WingCollectionTotals, type XlsxCellAddress, type XlsxMergeRange, type XlsxSerializationType, type XlsxSheetInput, type XlsxSheetOptions, buildUserExpenseReport, buildUserExpenseWorkbook, buildWingWiseCollectionReport, buildWingWiseCollectionReportByFlatId, buildWingWiseCollectionWorkbook, buildXlsxWorkbook, convertNumberToWords, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getFlatValidationErrors, getObjectDiffingKeys, getWingSelectionLabel, getWingSelectionSlug, groupBy, isSpecialFlatLabel, isValidFlatWing, roundToTwoDecimals, serializeXlsx, validateFlatOrThrow };
|
package/dist/index.d.ts
CHANGED
|
@@ -77,14 +77,6 @@ declare enum TransactionType {
|
|
|
77
77
|
EXPENSE = "Expense"
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
declare enum VendorBillStatus {
|
|
81
|
-
OPEN = "OPEN",
|
|
82
|
-
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
83
|
-
PAID = "PAID",
|
|
84
|
-
CLOSED = "CLOSED",
|
|
85
|
-
CANCELLED = "CANCELLED"
|
|
86
|
-
}
|
|
87
|
-
|
|
88
80
|
declare enum VendorType {
|
|
89
81
|
SUPPLIER = "Supplier",
|
|
90
82
|
SERVICE_PROVIDER = "Service Provider",
|
|
@@ -154,7 +146,6 @@ interface IExpenseEntity extends IAuditColumnEntity {
|
|
|
154
146
|
incurredBy: number;
|
|
155
147
|
vendorId: number;
|
|
156
148
|
expenseHeadId: number;
|
|
157
|
-
vendorBillId?: number;
|
|
158
149
|
billNumber?: string;
|
|
159
150
|
remarks?: string;
|
|
160
151
|
description?: string;
|
|
@@ -285,23 +276,6 @@ interface IVendorEntity extends IAuditColumnEntity {
|
|
|
285
276
|
type: string;
|
|
286
277
|
}
|
|
287
278
|
|
|
288
|
-
interface IVendorBillHistoryEntity extends IBaseHistoryEntity {
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
interface IVendorBillEntity extends IAuditColumnEntity {
|
|
292
|
-
id: number;
|
|
293
|
-
vendorId: number;
|
|
294
|
-
expenseHeadId: number;
|
|
295
|
-
description: string;
|
|
296
|
-
invoiceNumber?: string;
|
|
297
|
-
totalAmount: number;
|
|
298
|
-
balancePayable: number;
|
|
299
|
-
discountAmount?: number;
|
|
300
|
-
discountRemarks?: string;
|
|
301
|
-
billStatus: VendorBillStatus;
|
|
302
|
-
status?: EntityStatus;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
279
|
declare class DonationHistoryModel extends BaseEntityModel implements IDonationHistoryEntity {
|
|
306
280
|
id: number;
|
|
307
281
|
entityId: number;
|
|
@@ -525,33 +499,6 @@ declare class VendorModel extends BaseEntityModel implements IVendorEntity {
|
|
|
525
499
|
static populateFromEntity(entity: IVendorEntity): VendorModel;
|
|
526
500
|
}
|
|
527
501
|
|
|
528
|
-
declare class VendorBillModel extends BaseEntityModel implements IVendorBillEntity {
|
|
529
|
-
id: number;
|
|
530
|
-
vendorId: number;
|
|
531
|
-
expenseHeadId: number;
|
|
532
|
-
description: string;
|
|
533
|
-
invoiceNumber?: string;
|
|
534
|
-
totalAmount: number;
|
|
535
|
-
balancePayable: number;
|
|
536
|
-
discountAmount?: number;
|
|
537
|
-
discountRemarks?: string;
|
|
538
|
-
billStatus: VendorBillStatus;
|
|
539
|
-
status: EntityStatus;
|
|
540
|
-
createdOn: number;
|
|
541
|
-
updatedOn: number;
|
|
542
|
-
createdBy: number;
|
|
543
|
-
updatedBy: number;
|
|
544
|
-
createdByUser?: UserModel;
|
|
545
|
-
updatedByUser?: UserModel;
|
|
546
|
-
vendor?: VendorModel;
|
|
547
|
-
expenseHead?: ExpenseHeadModel;
|
|
548
|
-
expenses?: ExpenseModel[];
|
|
549
|
-
protected constructor();
|
|
550
|
-
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
|
|
551
|
-
static populateFromEntity(entity: IVendorBillEntity): VendorBillModel;
|
|
552
|
-
get totalAmountPaid(): number | undefined;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
502
|
declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
556
503
|
id: number;
|
|
557
504
|
name: string;
|
|
@@ -563,7 +510,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
563
510
|
remarks?: string;
|
|
564
511
|
description?: string;
|
|
565
512
|
paymentType: PaymentType;
|
|
566
|
-
vendorBillId?: number;
|
|
567
513
|
status: EntityStatus;
|
|
568
514
|
createdOn: number;
|
|
569
515
|
updatedOn: number;
|
|
@@ -574,7 +520,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
574
520
|
incurredByUser?: UserModel;
|
|
575
521
|
vendor?: VendorModel;
|
|
576
522
|
expenseHead?: ExpenseHeadModel;
|
|
577
|
-
vendorBill?: VendorBillModel;
|
|
578
523
|
protected constructor();
|
|
579
524
|
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
|
|
580
525
|
static populateFromEntity(entity: IExpenseEntity): ExpenseModel;
|
|
@@ -733,20 +678,6 @@ declare class VendorHistoryModel extends BaseEntityModel implements IVendorHisto
|
|
|
733
678
|
static populateFromEntity(entity: IVendorHistoryEntity): VendorHistoryModel;
|
|
734
679
|
}
|
|
735
680
|
|
|
736
|
-
declare class VendorBillHistoryModel extends BaseEntityModel implements IVendorBillHistoryEntity {
|
|
737
|
-
id: number;
|
|
738
|
-
entityId: number;
|
|
739
|
-
data: string;
|
|
740
|
-
operation: EntityHistoryOperation;
|
|
741
|
-
createdOn: number;
|
|
742
|
-
updatedOn: number;
|
|
743
|
-
createdBy: number;
|
|
744
|
-
updatedBy: number;
|
|
745
|
-
protected constructor();
|
|
746
|
-
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.VENDOR_BILL_HISTORY>>>;
|
|
747
|
-
static populateFromEntity(entity: IVendorBillHistoryEntity): VendorBillHistoryModel;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
681
|
declare class ConfigurationModel extends BaseEntityModel implements IConfigurationEntity {
|
|
751
682
|
id: number;
|
|
752
683
|
key: string;
|
|
@@ -774,8 +705,6 @@ declare const entityListEntityModelMap: {
|
|
|
774
705
|
expense_head_history: typeof ExpenseHeadHistoryModel.populateFromEntity;
|
|
775
706
|
vendor: typeof VendorModel.populateFromEntity;
|
|
776
707
|
vendor_history: typeof VendorHistoryModel.populateFromEntity;
|
|
777
|
-
vendor_bill: typeof VendorBillModel.populateFromEntity;
|
|
778
|
-
vendor_bill_history: typeof VendorBillHistoryModel.populateFromEntity;
|
|
779
708
|
transaction: typeof TransactionModel.populateFromEntity;
|
|
780
709
|
transaction_history: typeof TransactionHistoryModel.populateFromEntity;
|
|
781
710
|
sponsor: typeof SponsorModel.populateFromEntity;
|
|
@@ -1058,8 +987,6 @@ declare enum EntityList {
|
|
|
1058
987
|
EXPENSE_HEAD_HISTORY = "expense_head_history",
|
|
1059
988
|
VENDOR = "vendor",
|
|
1060
989
|
VENDOR_HISTORY = "vendor_history",
|
|
1061
|
-
VENDOR_BILL = "vendor_bill",
|
|
1062
|
-
VENDOR_BILL_HISTORY = "vendor_bill_history",
|
|
1063
990
|
TRANSACTION = "transaction",
|
|
1064
991
|
TRANSACTION_HISTORY = "transaction_history",
|
|
1065
992
|
SPONSOR = "sponsor",
|
|
@@ -1068,8 +995,8 @@ declare enum EntityList {
|
|
|
1068
995
|
FLAT_HISTORY = "flat_history",
|
|
1069
996
|
CONFIGURATION = "configuration"
|
|
1070
997
|
}
|
|
1071
|
-
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.
|
|
1072
|
-
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.
|
|
998
|
+
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;
|
|
999
|
+
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;
|
|
1073
1000
|
type EntityListEntityModelMap = {
|
|
1074
1001
|
[T in EntityList]: EntityModelType<T>[];
|
|
1075
1002
|
};
|
|
@@ -1178,13 +1105,6 @@ interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR
|
|
|
1178
1105
|
interface IVendorSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR>> {
|
|
1179
1106
|
}
|
|
1180
1107
|
|
|
1181
|
-
interface IVendorBillCreateDto extends Omit<IEntityCreateDto<EntityType<EntityList.VENDOR_BILL>>, 'invoiceNumber'> {
|
|
1182
|
-
}
|
|
1183
|
-
interface IVendorBillUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR_BILL>> {
|
|
1184
|
-
}
|
|
1185
|
-
interface IVendorBillSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR_BILL>> {
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
1108
|
interface ITransactionCreateDto extends IEntityCreateDto<EntityType<EntityList.TRANSACTION>> {
|
|
1189
1109
|
}
|
|
1190
1110
|
interface ITransactionUpdateDto extends IEntityUpdateDto<EntityType<EntityList.TRANSACTION>> {
|
|
@@ -1227,4 +1147,4 @@ declare function isSpecialFlatLabel(label: string): boolean;
|
|
|
1227
1147
|
declare function getFlatValidationErrors(input: Partial<IFlatEntity>): FlatValidationError[];
|
|
1228
1148
|
declare function validateFlatOrThrow(input: Partial<IFlatEntity>): void;
|
|
1229
1149
|
|
|
1230
|
-
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, FLATS_BY_WING, FLAT_DONATION_RELATION_CONFIG, FLAT_NUMBERS, FLAT_UNIT_NUMBER_PATTERN, FLAT_WING_PATTERN, type FlatCollectionEntry, type FlatCollectionStatus, type FlatDonationLike, FlatHistoryModel, type FlatIdDonationLike, 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
|
|
1150
|
+
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, FLATS_BY_WING, FLAT_DONATION_RELATION_CONFIG, FLAT_NUMBERS, FLAT_UNIT_NUMBER_PATTERN, FLAT_WING_PATTERN, type FlatCollectionEntry, type FlatCollectionStatus, type FlatDonationLike, FlatHistoryModel, type FlatIdDonationLike, 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, WING_ALPHABETS, type WingCollectionDonationByIdLike, type WingCollectionDonationLike, type WingCollectionReport, type WingCollectionRow, type WingCollectionTotals, type XlsxCellAddress, type XlsxMergeRange, type XlsxSerializationType, type XlsxSheetInput, type XlsxSheetOptions, buildUserExpenseReport, buildUserExpenseWorkbook, buildWingWiseCollectionReport, buildWingWiseCollectionReportByFlatId, buildWingWiseCollectionWorkbook, buildXlsxWorkbook, convertNumberToWords, definedValues, diffArrays, entityListEntityModelMap, epochToReadableDate, getFlatValidationErrors, getObjectDiffingKeys, getWingSelectionLabel, getWingSelectionSlug, groupBy, isSpecialFlatLabel, isValidFlatWing, roundToTwoDecimals, serializeXlsx, validateFlatOrThrow };
|
package/dist/index.js
CHANGED
|
@@ -78,9 +78,6 @@ __export(index_exports, {
|
|
|
78
78
|
UnauthorizedException: () => UnauthorizedException,
|
|
79
79
|
UserHistoryModel: () => UserHistoryModel,
|
|
80
80
|
UserModel: () => UserModel,
|
|
81
|
-
VendorBillHistoryModel: () => VendorBillHistoryModel,
|
|
82
|
-
VendorBillModel: () => VendorBillModel,
|
|
83
|
-
VendorBillStatus: () => VendorBillStatus,
|
|
84
81
|
VendorHistoryModel: () => VendorHistoryModel,
|
|
85
82
|
VendorModel: () => VendorModel,
|
|
86
83
|
VendorType: () => VendorType,
|
|
@@ -523,16 +520,6 @@ var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
|
|
|
523
520
|
return TransactionType2;
|
|
524
521
|
})(TransactionType || {});
|
|
525
522
|
|
|
526
|
-
// src/enums/vendor-bill-status.enum.ts
|
|
527
|
-
var VendorBillStatus = /* @__PURE__ */ ((VendorBillStatus2) => {
|
|
528
|
-
VendorBillStatus2["OPEN"] = "OPEN";
|
|
529
|
-
VendorBillStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
|
530
|
-
VendorBillStatus2["PAID"] = "PAID";
|
|
531
|
-
VendorBillStatus2["CLOSED"] = "CLOSED";
|
|
532
|
-
VendorBillStatus2["CANCELLED"] = "CANCELLED";
|
|
533
|
-
return VendorBillStatus2;
|
|
534
|
-
})(VendorBillStatus || {});
|
|
535
|
-
|
|
536
523
|
// src/enums/vendor-type.enum.ts
|
|
537
524
|
var VendorType = /* @__PURE__ */ ((VendorType2) => {
|
|
538
525
|
VendorType2["SUPPLIER"] = "Supplier";
|
|
@@ -1299,14 +1286,6 @@ _ExpenseModel.relations = {
|
|
|
1299
1286
|
],
|
|
1300
1287
|
searchProperty: "id",
|
|
1301
1288
|
entity: "expense_head" /* EXPENSE_HEAD */
|
|
1302
|
-
},
|
|
1303
|
-
["vendor_bill" /* VENDOR_BILL */]: {
|
|
1304
|
-
relationType: "ONE" /* ONE */,
|
|
1305
|
-
mappingProperties: [
|
|
1306
|
-
{ sourceProperty: "vendorBillId", targetProperty: "vendorBill" }
|
|
1307
|
-
],
|
|
1308
|
-
searchProperty: "id",
|
|
1309
|
-
entity: "vendor_bill" /* VENDOR_BILL */
|
|
1310
1289
|
}
|
|
1311
1290
|
};
|
|
1312
1291
|
var ExpenseModel = _ExpenseModel;
|
|
@@ -1573,86 +1552,6 @@ _VendorModel.relations = {
|
|
|
1573
1552
|
};
|
|
1574
1553
|
var VendorModel = _VendorModel;
|
|
1575
1554
|
|
|
1576
|
-
// src/models/vendor-bill-history.entity.model.ts
|
|
1577
|
-
var _VendorBillHistoryModel = class _VendorBillHistoryModel extends BaseEntityModel {
|
|
1578
|
-
constructor() {
|
|
1579
|
-
super();
|
|
1580
|
-
this.id = 0;
|
|
1581
|
-
this.entityId = 0;
|
|
1582
|
-
this.data = "";
|
|
1583
|
-
this.operation = "CREATE" /* CREATE */;
|
|
1584
|
-
this.createdOn = 0;
|
|
1585
|
-
this.updatedOn = 0;
|
|
1586
|
-
this.createdBy = 0;
|
|
1587
|
-
this.updatedBy = 0;
|
|
1588
|
-
}
|
|
1589
|
-
static populateFromEntity(entity) {
|
|
1590
|
-
return Object.assign(new _VendorBillHistoryModel(), entity);
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
_VendorBillHistoryModel.relations = {};
|
|
1594
|
-
var VendorBillHistoryModel = _VendorBillHistoryModel;
|
|
1595
|
-
|
|
1596
|
-
// src/models/vendor-bill.entity.model.ts
|
|
1597
|
-
var _VendorBillModel = class _VendorBillModel extends BaseEntityModel {
|
|
1598
|
-
constructor() {
|
|
1599
|
-
super();
|
|
1600
|
-
this.id = 0;
|
|
1601
|
-
this.vendorId = 0;
|
|
1602
|
-
this.expenseHeadId = 0;
|
|
1603
|
-
this.description = "";
|
|
1604
|
-
this.totalAmount = 0;
|
|
1605
|
-
this.balancePayable = 0;
|
|
1606
|
-
this.discountAmount = 0;
|
|
1607
|
-
this.billStatus = "OPEN" /* OPEN */;
|
|
1608
|
-
this.status = "Active" /* ACTIVE */;
|
|
1609
|
-
this.createdOn = 0;
|
|
1610
|
-
this.updatedOn = 0;
|
|
1611
|
-
this.createdBy = 0;
|
|
1612
|
-
this.updatedBy = 0;
|
|
1613
|
-
}
|
|
1614
|
-
static populateFromEntity(entity) {
|
|
1615
|
-
return Object.assign(new _VendorBillModel(), entity);
|
|
1616
|
-
}
|
|
1617
|
-
get totalAmountPaid() {
|
|
1618
|
-
return this.expenses?.reduce((total, expense) => total + expense.amount, 0);
|
|
1619
|
-
}
|
|
1620
|
-
};
|
|
1621
|
-
_VendorBillModel.relations = {
|
|
1622
|
-
["user" /* USER */]: {
|
|
1623
|
-
relationType: "ONE" /* ONE */,
|
|
1624
|
-
mappingProperties: [
|
|
1625
|
-
{ sourceProperty: "createdBy", targetProperty: "createdByUser" },
|
|
1626
|
-
{ sourceProperty: "updatedBy", targetProperty: "updatedByUser" }
|
|
1627
|
-
],
|
|
1628
|
-
searchProperty: "id",
|
|
1629
|
-
entity: "user" /* USER */
|
|
1630
|
-
},
|
|
1631
|
-
["vendor" /* VENDOR */]: {
|
|
1632
|
-
relationType: "ONE" /* ONE */,
|
|
1633
|
-
mappingProperties: [
|
|
1634
|
-
{ sourceProperty: "vendorId", targetProperty: "vendor" }
|
|
1635
|
-
],
|
|
1636
|
-
searchProperty: "id",
|
|
1637
|
-
entity: "vendor" /* VENDOR */
|
|
1638
|
-
},
|
|
1639
|
-
["expense_head" /* EXPENSE_HEAD */]: {
|
|
1640
|
-
relationType: "ONE" /* ONE */,
|
|
1641
|
-
mappingProperties: [
|
|
1642
|
-
{ sourceProperty: "expenseHeadId", targetProperty: "expenseHead" }
|
|
1643
|
-
],
|
|
1644
|
-
searchProperty: "id",
|
|
1645
|
-
entity: "expense_head" /* EXPENSE_HEAD */
|
|
1646
|
-
},
|
|
1647
|
-
["expense" /* EXPENSE */]: {
|
|
1648
|
-
relationType: "MANY" /* MANY */,
|
|
1649
|
-
mappingProperties: [{ sourceProperty: "id", targetProperty: "expenses" }],
|
|
1650
|
-
searchProperty: "vendorBillId",
|
|
1651
|
-
entity: "expense" /* EXPENSE */
|
|
1652
|
-
}
|
|
1653
|
-
};
|
|
1654
|
-
var VendorBillModel = _VendorBillModel;
|
|
1655
|
-
|
|
1656
1555
|
// src/models/configuration.entity.model.ts
|
|
1657
1556
|
var ConfigurationModel = class _ConfigurationModel extends BaseEntityModel {
|
|
1658
1557
|
constructor() {
|
|
@@ -1690,8 +1589,6 @@ var EntityList = /* @__PURE__ */ ((EntityList2) => {
|
|
|
1690
1589
|
EntityList2["EXPENSE_HEAD_HISTORY"] = "expense_head_history";
|
|
1691
1590
|
EntityList2["VENDOR"] = "vendor";
|
|
1692
1591
|
EntityList2["VENDOR_HISTORY"] = "vendor_history";
|
|
1693
|
-
EntityList2["VENDOR_BILL"] = "vendor_bill";
|
|
1694
|
-
EntityList2["VENDOR_BILL_HISTORY"] = "vendor_bill_history";
|
|
1695
1592
|
EntityList2["TRANSACTION"] = "transaction";
|
|
1696
1593
|
EntityList2["TRANSACTION_HISTORY"] = "transaction_history";
|
|
1697
1594
|
EntityList2["SPONSOR"] = "sponsor";
|
|
@@ -1714,8 +1611,6 @@ var entityListEntityModelMap = {
|
|
|
1714
1611
|
["expense_head_history" /* EXPENSE_HEAD_HISTORY */]: ExpenseHeadHistoryModel.populateFromEntity,
|
|
1715
1612
|
["vendor" /* VENDOR */]: VendorModel.populateFromEntity,
|
|
1716
1613
|
["vendor_history" /* VENDOR_HISTORY */]: VendorHistoryModel.populateFromEntity,
|
|
1717
|
-
["vendor_bill" /* VENDOR_BILL */]: VendorBillModel.populateFromEntity,
|
|
1718
|
-
["vendor_bill_history" /* VENDOR_BILL_HISTORY */]: VendorBillHistoryModel.populateFromEntity,
|
|
1719
1614
|
["transaction" /* TRANSACTION */]: TransactionModel.populateFromEntity,
|
|
1720
1615
|
["transaction_history" /* TRANSACTION_HISTORY */]: TransactionHistoryModel.populateFromEntity,
|
|
1721
1616
|
["sponsor" /* SPONSOR */]: SponsorModel.populateFromEntity,
|
|
@@ -2466,9 +2361,6 @@ function validateFlatOrThrow(input) {
|
|
|
2466
2361
|
UnauthorizedException,
|
|
2467
2362
|
UserHistoryModel,
|
|
2468
2363
|
UserModel,
|
|
2469
|
-
VendorBillHistoryModel,
|
|
2470
|
-
VendorBillModel,
|
|
2471
|
-
VendorBillStatus,
|
|
2472
2364
|
VendorHistoryModel,
|
|
2473
2365
|
VendorModel,
|
|
2474
2366
|
VendorType,
|