Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
data(): IAccountFlags {
return Factory.attributes("account_values", {});
}
};
.extend('LicenseModelBaseFactory')
.extend(IdMixin);
export const FinalizedLicenseModelFactory = new Factory()
.extend(IdMixin)
.attrs({
name: randomstring.generate(),
description: randomstring.generate()
});
export const LicenseModelOverviewFactory = new Factory()
.attrs({
licenseModelEditor: {
data: {
...Factory.attributes('LicenseModelBaseFactory'),
id: () => Math.floor(Math.random() * 1000 + 1),
version: {
id: Math.floor(Math.random() * 1000 + 1)
}
}
},
entitlementPool: {},
licenseAgreement: {},
featureGroup: {},
licenseKeyGroup: {},
licenseModelOverview: {
descriptionEditor : { data : { description : undefined}},
selectedTab: selectedButton.VLM_LIST_VIEW
}
});
build(overrides?: any): AccountValues {
const data = Factory.attributes("account_values", overrides);
data.signers = (overrides && overrides.signers) || [];
return new AccountValues(data);
},
data(): IAccountFlags {
build(overrides?: object): Signer {
const data = Factory.attributes("signer", overrides);
return new Signer(data);
}
};
build: function(overrides?: object): Transaction {
const data = Factory.attributes("transaction", overrides);
return new Transaction(data);
},
};
build(overrides?: object): Account {
const data = Factory.attributes("account", overrides);
const account = new Account();
return Object.assign(account, data);
}
};