Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | import { Injectable } from '@nestjs/common'; import { GlobalReferenceService } from '../../../domains/mdm/application/services/global-reference.service'; @Injectable() export class CountriesSeed { constructor(private readonly refService: GlobalReferenceService) {} async seed(): Promise<void> { await this.refService.bulkUpsertCountries([ { isoAlpha2: 'IN', isoAlpha3: 'IND', isoNumeric: '356', countryName: 'India', officialName: 'Republic of India', callingCode: '+91', defaultCurrencyCode: 'INR', defaultLanguageCode: 'en', defaultTimezone: 'Asia/Kolkata', continent: 'Asia', region: 'Southern Asia', active: true, }, { isoAlpha2: 'US', isoAlpha3: 'USA', isoNumeric: '840', countryName: 'United States', officialName: 'United States of America', callingCode: '+1', defaultCurrencyCode: 'USD', defaultLanguageCode: 'en', defaultTimezone: 'America/New_York', continent: 'North America', region: 'Northern America', active: true, }, { isoAlpha2: 'DE', isoAlpha3: 'DEU', isoNumeric: '276', countryName: 'Germany', officialName: 'Federal Republic of Germany', callingCode: '+49', defaultCurrencyCode: 'EUR', defaultLanguageCode: 'de', defaultTimezone: 'Europe/Berlin', continent: 'Europe', region: 'Western Europe', active: true, }, ]); } } |