From c3936ca692f412918836c55b0863faedc215a78d Mon Sep 17 00:00:00 2001 From: azeeee05 Date: Thu, 9 Jul 2026 11:14:12 +0530 Subject: [PATCH] feat: implement MasterDataService for CRUD operations and database seeding, and update test script command --- README.md | 2 +- src/modules/master-data/master-data.service.ts | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0779cc9..63856de 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ npm run dev ### Run tests Run the test suite with the test environment: ```bash -npm test +npm run test ``` ### Build commands diff --git a/src/modules/master-data/master-data.service.ts b/src/modules/master-data/master-data.service.ts index fdd5a39..3de5978 100644 --- a/src/modules/master-data/master-data.service.ts +++ b/src/modules/master-data/master-data.service.ts @@ -157,11 +157,23 @@ export class MasterDataService { // ANCILLARY_PURCHASE if (await this.ancillaryPurchaseRepo.count() === 0) { const data = [ - { label: 'Extra Baggage', value: 'extra-baggage' }, - { label: 'Seat Selection', value: 'seat-selection' }, - { label: 'In-Flight Meal', value: 'in-flight-meal' }, + { label: 'Preferred Seat', value: 'preferred-seat' }, + { label: 'Extra Legroom', value: 'extra-legroom' }, + { label: 'Wi-Fi', value: 'wi-fi' }, { label: 'Lounge Access', value: 'lounge-access' }, { label: 'Priority Boarding', value: 'priority-boarding' }, + { label: 'Fast Track', value: 'fast-track' }, + { label: 'Paid Meal', value: 'paid-meal' }, + { label: 'Special Meal', value: 'special-meal' }, + { label: 'Extra Baggage', value: 'extra-baggage' }, + { label: 'Upgrade Purchase', value: 'upgrade-purchase' }, + { label: 'Airport Transfer', value: 'airport-transfer' }, + { label: 'Chauffeur Service', value: 'chauffeur-service' }, + { label: 'Sports Equipment', value: 'sports-equipment' }, + { label: 'Musical Instrument', value: 'musical-instrument' }, + { label: 'In-flight Entertainment', value: 'in-flight-entertainment' }, + { label: 'Power Outlet', value: 'power-outlet' }, + { label: 'Carbon Offset', value: 'carbon-offset' }, ]; await this.ancillaryPurchaseRepo.save(this.ancillaryPurchaseRepo.create(data)); }