@mody-park-cha-raja/finance_common 4.30.1-beta.2 → 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 -84
- package/dist/index.d.ts +3 -84
- package/dist/index.js +0 -114
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -111
- 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,34 +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
|
-
static getVendorBillNumber(vendor: VendorModel, count: number): string;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
502
|
declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
557
503
|
id: number;
|
|
558
504
|
name: string;
|
|
@@ -564,7 +510,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
564
510
|
remarks?: string;
|
|
565
511
|
description?: string;
|
|
566
512
|
paymentType: PaymentType;
|
|
567
|
-
vendorBillId?: number;
|
|
568
513
|
status: EntityStatus;
|
|
569
514
|
createdOn: number;
|
|
570
515
|
updatedOn: number;
|
|
@@ -575,7 +520,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
575
520
|
incurredByUser?: UserModel;
|
|
576
521
|
vendor?: VendorModel;
|
|
577
522
|
expenseHead?: ExpenseHeadModel;
|
|
578
|
-
vendorBill?: VendorBillModel;
|
|
579
523
|
protected constructor();
|
|
580
524
|
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
|
|
581
525
|
static populateFromEntity(entity: IExpenseEntity): ExpenseModel;
|
|
@@ -734,20 +678,6 @@ declare class VendorHistoryModel extends BaseEntityModel implements IVendorHisto
|
|
|
734
678
|
static populateFromEntity(entity: IVendorHistoryEntity): VendorHistoryModel;
|
|
735
679
|
}
|
|
736
680
|
|
|
737
|
-
declare class VendorBillHistoryModel extends BaseEntityModel implements IVendorBillHistoryEntity {
|
|
738
|
-
id: number;
|
|
739
|
-
entityId: number;
|
|
740
|
-
data: string;
|
|
741
|
-
operation: EntityHistoryOperation;
|
|
742
|
-
createdOn: number;
|
|
743
|
-
updatedOn: number;
|
|
744
|
-
createdBy: number;
|
|
745
|
-
updatedBy: number;
|
|
746
|
-
protected constructor();
|
|
747
|
-
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.VENDOR_BILL_HISTORY>>>;
|
|
748
|
-
static populateFromEntity(entity: IVendorBillHistoryEntity): VendorBillHistoryModel;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
681
|
declare class ConfigurationModel extends BaseEntityModel implements IConfigurationEntity {
|
|
752
682
|
id: number;
|
|
753
683
|
key: string;
|
|
@@ -775,8 +705,6 @@ declare const entityListEntityModelMap: {
|
|
|
775
705
|
expense_head_history: typeof ExpenseHeadHistoryModel.populateFromEntity;
|
|
776
706
|
vendor: typeof VendorModel.populateFromEntity;
|
|
777
707
|
vendor_history: typeof VendorHistoryModel.populateFromEntity;
|
|
778
|
-
vendor_bill: typeof VendorBillModel.populateFromEntity;
|
|
779
|
-
vendor_bill_history: typeof VendorBillHistoryModel.populateFromEntity;
|
|
780
708
|
transaction: typeof TransactionModel.populateFromEntity;
|
|
781
709
|
transaction_history: typeof TransactionHistoryModel.populateFromEntity;
|
|
782
710
|
sponsor: typeof SponsorModel.populateFromEntity;
|
|
@@ -1059,8 +987,6 @@ declare enum EntityList {
|
|
|
1059
987
|
EXPENSE_HEAD_HISTORY = "expense_head_history",
|
|
1060
988
|
VENDOR = "vendor",
|
|
1061
989
|
VENDOR_HISTORY = "vendor_history",
|
|
1062
|
-
VENDOR_BILL = "vendor_bill",
|
|
1063
|
-
VENDOR_BILL_HISTORY = "vendor_bill_history",
|
|
1064
990
|
TRANSACTION = "transaction",
|
|
1065
991
|
TRANSACTION_HISTORY = "transaction_history",
|
|
1066
992
|
SPONSOR = "sponsor",
|
|
@@ -1069,8 +995,8 @@ declare enum EntityList {
|
|
|
1069
995
|
FLAT_HISTORY = "flat_history",
|
|
1070
996
|
CONFIGURATION = "configuration"
|
|
1071
997
|
}
|
|
1072
|
-
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.
|
|
1073
|
-
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;
|
|
1074
1000
|
type EntityListEntityModelMap = {
|
|
1075
1001
|
[T in EntityList]: EntityModelType<T>[];
|
|
1076
1002
|
};
|
|
@@ -1179,13 +1105,6 @@ interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR
|
|
|
1179
1105
|
interface IVendorSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR>> {
|
|
1180
1106
|
}
|
|
1181
1107
|
|
|
1182
|
-
interface IVendorBillCreateDto extends Omit<IEntityCreateDto<EntityType<EntityList.VENDOR_BILL>>, 'invoiceNumber'> {
|
|
1183
|
-
}
|
|
1184
|
-
interface IVendorBillUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR_BILL>> {
|
|
1185
|
-
}
|
|
1186
|
-
interface IVendorBillSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR_BILL>> {
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
1108
|
interface ITransactionCreateDto extends IEntityCreateDto<EntityType<EntityList.TRANSACTION>> {
|
|
1190
1109
|
}
|
|
1191
1110
|
interface ITransactionUpdateDto extends IEntityUpdateDto<EntityType<EntityList.TRANSACTION>> {
|
|
@@ -1228,4 +1147,4 @@ declare function isSpecialFlatLabel(label: string): boolean;
|
|
|
1228
1147
|
declare function getFlatValidationErrors(input: Partial<IFlatEntity>): FlatValidationError[];
|
|
1229
1148
|
declare function validateFlatOrThrow(input: Partial<IFlatEntity>): void;
|
|
1230
1149
|
|
|
1231
|
-
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,34 +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
|
-
static getVendorBillNumber(vendor: VendorModel, count: number): string;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
502
|
declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
557
503
|
id: number;
|
|
558
504
|
name: string;
|
|
@@ -564,7 +510,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
564
510
|
remarks?: string;
|
|
565
511
|
description?: string;
|
|
566
512
|
paymentType: PaymentType;
|
|
567
|
-
vendorBillId?: number;
|
|
568
513
|
status: EntityStatus;
|
|
569
514
|
createdOn: number;
|
|
570
515
|
updatedOn: number;
|
|
@@ -575,7 +520,6 @@ declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
|
|
|
575
520
|
incurredByUser?: UserModel;
|
|
576
521
|
vendor?: VendorModel;
|
|
577
522
|
expenseHead?: ExpenseHeadModel;
|
|
578
|
-
vendorBill?: VendorBillModel;
|
|
579
523
|
protected constructor();
|
|
580
524
|
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
|
|
581
525
|
static populateFromEntity(entity: IExpenseEntity): ExpenseModel;
|
|
@@ -734,20 +678,6 @@ declare class VendorHistoryModel extends BaseEntityModel implements IVendorHisto
|
|
|
734
678
|
static populateFromEntity(entity: IVendorHistoryEntity): VendorHistoryModel;
|
|
735
679
|
}
|
|
736
680
|
|
|
737
|
-
declare class VendorBillHistoryModel extends BaseEntityModel implements IVendorBillHistoryEntity {
|
|
738
|
-
id: number;
|
|
739
|
-
entityId: number;
|
|
740
|
-
data: string;
|
|
741
|
-
operation: EntityHistoryOperation;
|
|
742
|
-
createdOn: number;
|
|
743
|
-
updatedOn: number;
|
|
744
|
-
createdBy: number;
|
|
745
|
-
updatedBy: number;
|
|
746
|
-
protected constructor();
|
|
747
|
-
static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList.VENDOR_BILL_HISTORY>>>;
|
|
748
|
-
static populateFromEntity(entity: IVendorBillHistoryEntity): VendorBillHistoryModel;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
681
|
declare class ConfigurationModel extends BaseEntityModel implements IConfigurationEntity {
|
|
752
682
|
id: number;
|
|
753
683
|
key: string;
|
|
@@ -775,8 +705,6 @@ declare const entityListEntityModelMap: {
|
|
|
775
705
|
expense_head_history: typeof ExpenseHeadHistoryModel.populateFromEntity;
|
|
776
706
|
vendor: typeof VendorModel.populateFromEntity;
|
|
777
707
|
vendor_history: typeof VendorHistoryModel.populateFromEntity;
|
|
778
|
-
vendor_bill: typeof VendorBillModel.populateFromEntity;
|
|
779
|
-
vendor_bill_history: typeof VendorBillHistoryModel.populateFromEntity;
|
|
780
708
|
transaction: typeof TransactionModel.populateFromEntity;
|
|
781
709
|
transaction_history: typeof TransactionHistoryModel.populateFromEntity;
|
|
782
710
|
sponsor: typeof SponsorModel.populateFromEntity;
|
|
@@ -1059,8 +987,6 @@ declare enum EntityList {
|
|
|
1059
987
|
EXPENSE_HEAD_HISTORY = "expense_head_history",
|
|
1060
988
|
VENDOR = "vendor",
|
|
1061
989
|
VENDOR_HISTORY = "vendor_history",
|
|
1062
|
-
VENDOR_BILL = "vendor_bill",
|
|
1063
|
-
VENDOR_BILL_HISTORY = "vendor_bill_history",
|
|
1064
990
|
TRANSACTION = "transaction",
|
|
1065
991
|
TRANSACTION_HISTORY = "transaction_history",
|
|
1066
992
|
SPONSOR = "sponsor",
|
|
@@ -1069,8 +995,8 @@ declare enum EntityList {
|
|
|
1069
995
|
FLAT_HISTORY = "flat_history",
|
|
1070
996
|
CONFIGURATION = "configuration"
|
|
1071
997
|
}
|
|
1072
|
-
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.
|
|
1073
|
-
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;
|
|
1074
1000
|
type EntityListEntityModelMap = {
|
|
1075
1001
|
[T in EntityList]: EntityModelType<T>[];
|
|
1076
1002
|
};
|
|
@@ -1179,13 +1105,6 @@ interface IVendorUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR
|
|
|
1179
1105
|
interface IVendorSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR>> {
|
|
1180
1106
|
}
|
|
1181
1107
|
|
|
1182
|
-
interface IVendorBillCreateDto extends Omit<IEntityCreateDto<EntityType<EntityList.VENDOR_BILL>>, 'invoiceNumber'> {
|
|
1183
|
-
}
|
|
1184
|
-
interface IVendorBillUpdateDto extends IEntityUpdateDto<EntityType<EntityList.VENDOR_BILL>> {
|
|
1185
|
-
}
|
|
1186
|
-
interface IVendorBillSearchDto extends IEntityFilterData<EntityType<EntityList.VENDOR_BILL>> {
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
1108
|
interface ITransactionCreateDto extends IEntityCreateDto<EntityType<EntityList.TRANSACTION>> {
|
|
1190
1109
|
}
|
|
1191
1110
|
interface ITransactionUpdateDto extends IEntityUpdateDto<EntityType<EntityList.TRANSACTION>> {
|
|
@@ -1228,4 +1147,4 @@ declare function isSpecialFlatLabel(label: string): boolean;
|
|
|
1228
1147
|
declare function getFlatValidationErrors(input: Partial<IFlatEntity>): FlatValidationError[];
|
|
1229
1148
|
declare function validateFlatOrThrow(input: Partial<IFlatEntity>): void;
|
|
1230
1149
|
|
|
1231
|
-
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,92 +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.invoiceNumber = "";
|
|
1605
|
-
this.totalAmount = 0;
|
|
1606
|
-
this.balancePayable = 0;
|
|
1607
|
-
this.discountAmount = 0;
|
|
1608
|
-
this.billStatus = "OPEN" /* OPEN */;
|
|
1609
|
-
this.status = "Active" /* ACTIVE */;
|
|
1610
|
-
this.createdOn = 0;
|
|
1611
|
-
this.updatedOn = 0;
|
|
1612
|
-
this.createdBy = 0;
|
|
1613
|
-
this.updatedBy = 0;
|
|
1614
|
-
}
|
|
1615
|
-
static populateFromEntity(entity) {
|
|
1616
|
-
return Object.assign(new _VendorBillModel(), entity);
|
|
1617
|
-
}
|
|
1618
|
-
get totalAmountPaid() {
|
|
1619
|
-
return this.expenses?.reduce((total, expense) => total + expense.amount, 0);
|
|
1620
|
-
}
|
|
1621
|
-
static getVendorBillNumber(vendor, count) {
|
|
1622
|
-
const initials = (vendor?.name ?? "").split(/\s+/).filter(Boolean).slice(0, 2).map((word) => word.charAt(0).toUpperCase()).join("");
|
|
1623
|
-
const invoiceNumber = `${initials}-${count + 1}`;
|
|
1624
|
-
return invoiceNumber;
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
|
-
_VendorBillModel.relations = {
|
|
1628
|
-
["user" /* USER */]: {
|
|
1629
|
-
relationType: "ONE" /* ONE */,
|
|
1630
|
-
mappingProperties: [
|
|
1631
|
-
{ sourceProperty: "createdBy", targetProperty: "createdByUser" },
|
|
1632
|
-
{ sourceProperty: "updatedBy", targetProperty: "updatedByUser" }
|
|
1633
|
-
],
|
|
1634
|
-
searchProperty: "id",
|
|
1635
|
-
entity: "user" /* USER */
|
|
1636
|
-
},
|
|
1637
|
-
["vendor" /* VENDOR */]: {
|
|
1638
|
-
relationType: "ONE" /* ONE */,
|
|
1639
|
-
mappingProperties: [
|
|
1640
|
-
{ sourceProperty: "vendorId", targetProperty: "vendor" }
|
|
1641
|
-
],
|
|
1642
|
-
searchProperty: "id",
|
|
1643
|
-
entity: "vendor" /* VENDOR */
|
|
1644
|
-
},
|
|
1645
|
-
["expense_head" /* EXPENSE_HEAD */]: {
|
|
1646
|
-
relationType: "ONE" /* ONE */,
|
|
1647
|
-
mappingProperties: [
|
|
1648
|
-
{ sourceProperty: "expenseHeadId", targetProperty: "expenseHead" }
|
|
1649
|
-
],
|
|
1650
|
-
searchProperty: "id",
|
|
1651
|
-
entity: "expense_head" /* EXPENSE_HEAD */
|
|
1652
|
-
},
|
|
1653
|
-
["expense" /* EXPENSE */]: {
|
|
1654
|
-
relationType: "MANY" /* MANY */,
|
|
1655
|
-
mappingProperties: [{ sourceProperty: "id", targetProperty: "expenses" }],
|
|
1656
|
-
searchProperty: "vendorBillId",
|
|
1657
|
-
entity: "expense" /* EXPENSE */
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
|
-
var VendorBillModel = _VendorBillModel;
|
|
1661
|
-
|
|
1662
1555
|
// src/models/configuration.entity.model.ts
|
|
1663
1556
|
var ConfigurationModel = class _ConfigurationModel extends BaseEntityModel {
|
|
1664
1557
|
constructor() {
|
|
@@ -1696,8 +1589,6 @@ var EntityList = /* @__PURE__ */ ((EntityList2) => {
|
|
|
1696
1589
|
EntityList2["EXPENSE_HEAD_HISTORY"] = "expense_head_history";
|
|
1697
1590
|
EntityList2["VENDOR"] = "vendor";
|
|
1698
1591
|
EntityList2["VENDOR_HISTORY"] = "vendor_history";
|
|
1699
|
-
EntityList2["VENDOR_BILL"] = "vendor_bill";
|
|
1700
|
-
EntityList2["VENDOR_BILL_HISTORY"] = "vendor_bill_history";
|
|
1701
1592
|
EntityList2["TRANSACTION"] = "transaction";
|
|
1702
1593
|
EntityList2["TRANSACTION_HISTORY"] = "transaction_history";
|
|
1703
1594
|
EntityList2["SPONSOR"] = "sponsor";
|
|
@@ -1720,8 +1611,6 @@ var entityListEntityModelMap = {
|
|
|
1720
1611
|
["expense_head_history" /* EXPENSE_HEAD_HISTORY */]: ExpenseHeadHistoryModel.populateFromEntity,
|
|
1721
1612
|
["vendor" /* VENDOR */]: VendorModel.populateFromEntity,
|
|
1722
1613
|
["vendor_history" /* VENDOR_HISTORY */]: VendorHistoryModel.populateFromEntity,
|
|
1723
|
-
["vendor_bill" /* VENDOR_BILL */]: VendorBillModel.populateFromEntity,
|
|
1724
|
-
["vendor_bill_history" /* VENDOR_BILL_HISTORY */]: VendorBillHistoryModel.populateFromEntity,
|
|
1725
1614
|
["transaction" /* TRANSACTION */]: TransactionModel.populateFromEntity,
|
|
1726
1615
|
["transaction_history" /* TRANSACTION_HISTORY */]: TransactionHistoryModel.populateFromEntity,
|
|
1727
1616
|
["sponsor" /* SPONSOR */]: SponsorModel.populateFromEntity,
|
|
@@ -2472,9 +2361,6 @@ function validateFlatOrThrow(input) {
|
|
|
2472
2361
|
UnauthorizedException,
|
|
2473
2362
|
UserHistoryModel,
|
|
2474
2363
|
UserModel,
|
|
2475
|
-
VendorBillHistoryModel,
|
|
2476
|
-
VendorBillModel,
|
|
2477
|
-
VendorBillStatus,
|
|
2478
2364
|
VendorHistoryModel,
|
|
2479
2365
|
VendorModel,
|
|
2480
2366
|
VendorType,
|