Skip to content

Commit

Permalink
refactor(company)!: rename bs to buzz (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Feb 21, 2023
1 parent 0f98518 commit 5f95aca
Show file tree
Hide file tree
Showing 32 changed files with 172 additions and 90 deletions.
18 changes: 9 additions & 9 deletions src/definitions/company.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ import type { LocaleEntry } from './definitions';
*/
export type CompanyDefinitions = LocaleEntry<{
/**
* Business/products related adjectives.
* Business/products related adjectives that can be used to demonstrate data being viewed by a manager.
*/
bs_adjective: string[];
buzz_adjective: string[];

/**
* Business/products related nouns.
* Business/products related nouns that can be used to demonstrate data being viewed by a manager.
*/
bs_noun: string[];
buzz_noun: string[];

/**
* Business/products related verbs.
* Business/products related verbs that can be used to demonstrate data being viewed by a manager.
*/
bs_verb: string[];
buzz_verb: string[];

/**
* Catchphrase adjectives.
* Catchphrase adjectives that can be displayed to an end user.
*/
adjective: string[];

/**
* Catchphrase descriptors.
* Catchphrase descriptors that can be displayed to an end user.
*/
descriptor: string[];

Expand All @@ -35,7 +35,7 @@ export type CompanyDefinitions = LocaleEntry<{
name_patterns: string[];

/**
* Catchphrase nouns.
* Catchphrase nouns that can be displayed to an end user.
*/
noun: string[];

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/el/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/en/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/es_MX/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/fa/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/fr/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/it/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/locales/pl/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
*/
import type { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import bs_adjective from './bs_adjective';
import bs_noun from './bs_noun';
import bs_verb from './bs_verb';
import buzz_adjective from './buzz_adjective';
import buzz_noun from './buzz_noun';
import buzz_verb from './buzz_verb';
import descriptor from './descriptor';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
bs_adjective,
bs_noun,
bs_verb,
buzz_adjective,
buzz_noun,
buzz_verb,
descriptor,
name_patterns,
noun,
Expand Down
96 changes: 88 additions & 8 deletions src/modules/company/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class CompanyModule {
}

/**
* Generates a random business catch phrase.
* Generates a random catch phrase that can be displayed to an end user.
*
* @example
* faker.company.catchPhrase() // 'Upgradable systematic flexibility'
Expand All @@ -100,13 +100,33 @@ export class CompanyModule {
* faker.company.bs() // 'cultivate synergistic e-markets'
*
* @since 2.0.1
*
* @deprecated Use `faker.company.buzzPhrase` instead.
*/
bs(): string {
return [this.bsBuzz(), this.bsAdjective(), this.bsNoun()].join(' ');
deprecated({
deprecated: 'faker.company.bs',
proposed: 'faker.company.buzzPhrase',
since: '8.0',
until: '9.0',
});
return this.buzzPhrase();
}

/**
* Generates a random buzz phrase that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzPhrase() // 'cultivate synergistic e-markets'
*
* @since 8.0.0
*/
buzzPhrase(): string {
return [this.buzzVerb(), this.buzzAdjective(), this.buzzNoun()].join(' ');
}

/**
* Returns a random catch phrase adjective.
* Returns a random catch phrase adjective that can be displayed to an end user..
*
* @example
* faker.company.catchPhraseAdjective() // 'Multi-tiered'
Expand All @@ -120,7 +140,7 @@ export class CompanyModule {
}

/**
* Returns a random catch phrase descriptor.
* Returns a random catch phrase descriptor that can be displayed to an end user..
*
* @example
* faker.company.catchPhraseDescriptor() // 'composite'
Expand All @@ -134,7 +154,7 @@ export class CompanyModule {
}

/**
* Returns a random catch phrase noun.
* Returns a random catch phrase noun that can be displayed to an end user..
*
* @example
* faker.company.catchPhraseNoun() // 'leverage'
Expand All @@ -152,10 +172,30 @@ export class CompanyModule {
* faker.company.bsAdjective() // 'one-to-one'
*
* @since 2.0.1
*
* @deprecated Use `faker.company.buzzAdjective` instead.
*/
bsAdjective(): string {
deprecated({
deprecated: 'faker.company.bsAdjective',
proposed: 'faker.company.buzzAdjective',
since: '8.0',
until: '9.0',
});
return this.buzzAdjective();
}

/**
* Returns a random buzz adjective that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzAdjective() // 'one-to-one'
*
* @since 8.0.0
*/
buzzAdjective(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.bs_adjective
this.faker.definitions.company.buzz_adjective
);
}

Expand All @@ -166,10 +206,30 @@ export class CompanyModule {
* faker.company.bsBuzz() // 'empower'
*
* @since 2.0.1
*
* @deprecated Use `faker.company.buzzVerb` instead.
*/
bsBuzz(): string {
deprecated({
deprecated: 'faker.company.bsBuzz',
proposed: 'faker.company.buzzVerb',
since: '8.0',
until: '9.0',
});
return this.buzzVerb();
}

/**
* Returns a random buzz verb that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzVerb() // 'empower'
*
* @since 8.0.0
*/
buzzVerb(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.bs_verb
this.faker.definitions.company.buzz_verb
);
}

Expand All @@ -180,10 +240,30 @@ export class CompanyModule {
* faker.company.bsNoun() // 'paradigms'
*
* @since 2.0.1
*
* @deprecated Use `faker.company.buzzNoun` instead.
*/
bsNoun(): string {
deprecated({
deprecated: 'faker.company.bsNoun',
proposed: 'faker.company.buzzNoun',
since: '8.0',
until: '9.0',
});
return this.buzzNoun();
}

/**
* Returns a random buzz noun that can be used to demonstrate data being viewed by a manager.
*
* @example
* faker.company.buzzNoun() // 'paradigms'
*
* @since 8.0.0
*/
buzzNoun(): string {
return this.faker.helpers.arrayElement(
this.faker.definitions.company.bs_noun
this.faker.definitions.company.buzz_noun
);
}
}

0 comments on commit 5f95aca

Please sign in to comment.