822bf96966
- Implemented CompanyNameComponent, DescriptionComponent, DeviceIdComponent, EconomicCodeComponent, EmailComponent, FirstNameComponent, FiscalCodeComponent, GuildIdComponent, LastNameComponent, LegalNameComponent, LicenseStartsAtComponent, MobileComponent, MobileNumberComponent, ModelComponent, NameComponent, NationalCodeComponent, NationalIdComponent, PartnerTokenComponent, PosTypeComponent, PostalCodeComponent, ProviderIdComponent, QuantityComponent, RegistrationCodeComponent, RegistrationNumberComponent, SerialNumberComponent, SetOffComponent, SkuComponent, TerminalComponent, UnitPriceComponent, UsernameComponent. - Added field control configurations for new fields in the form. - Updated routing and branding configurations for TIS tenant. - Created consumer type models for handling individual and legal consumer data.
22 lines
697 B
JavaScript
22 lines
697 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const root = path.resolve(__dirname, '..');
|
|
const packageJsonPath = path.join(root, 'package.json');
|
|
const ngswConfigPath = path.join(root, 'ngsw-config.json');
|
|
|
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
const ngswConfig = JSON.parse(fs.readFileSync(ngswConfigPath, 'utf8'));
|
|
|
|
const now = new Date();
|
|
const buildDate = process.env.BUILD_DATE || now.toISOString();
|
|
const appVersion = process.env.APP_VERSION || packageJson.version || '0.0.0';
|
|
|
|
ngswConfig.appData = {
|
|
...(ngswConfig.appData || {}),
|
|
appVersion,
|
|
buildDate,
|
|
};
|
|
|
|
fs.writeFileSync(ngswConfigPath, `${JSON.stringify(ngswConfig, null, 2)}\n`);
|