1- import { deprecated } from '../../internal/deprecated' ;
21import { ModuleBase } from '../../internal/module-base' ;
32
43/**
@@ -16,30 +15,6 @@ import { ModuleBase } from '../../internal/module-base';
1615 * - For finance-related entries, use [`faker.finance`](https://fakerjs.dev/api/finance.html).
1716 */
1817export class CompanyModule extends ModuleBase {
19- /**
20- * Returns an array with possible company name suffixes.
21- *
22- * @see faker.company.name(): For generating a complete company name.
23- *
24- * @example
25- * faker.company.suffixes() // [ 'Inc', 'and Sons', 'LLC', 'Group' ]
26- *
27- * @since 2.0.1
28- *
29- * @deprecated Use `faker.company.name` instead.
30- */
31- suffixes ( ) : string [ ] {
32- deprecated ( {
33- deprecated : 'faker.company.suffixes' ,
34- proposed : 'faker.company.name' ,
35- since : '8.0' ,
36- until : '9.0' ,
37- } ) ;
38- // Don't want the source array exposed to modification, so return a copy
39- // eslint-disable-next-line deprecation/deprecation
40- return [ ...this . faker . definitions . company . suffix ] ;
41- }
42-
4318 /**
4419 * Generates a random company name.
4520 *
@@ -52,31 +27,6 @@ export class CompanyModule extends ModuleBase {
5227 return this . faker . helpers . fake ( this . faker . definitions . company . name_pattern ) ;
5328 }
5429
55- /**
56- * Returns a random company suffix.
57- *
58- * @see faker.company.name(): For generating a complete company name.
59- *
60- * @example
61- * faker.company.companySuffix() // 'and Sons'
62- *
63- * @since 2.0.1
64- *
65- * @deprecated Use `faker.company.name` instead.
66- */
67- companySuffix ( ) : string {
68- deprecated ( {
69- deprecated : 'faker.company.companySuffix' ,
70- proposed : 'faker.company.name' ,
71- since : '8.0' ,
72- until : '9.0' ,
73- } ) ;
74- return this . faker . helpers . arrayElement (
75- // eslint-disable-next-line deprecation/deprecation
76- this . suffixes ( )
77- ) ;
78- }
79-
8030 /**
8131 * Generates a random catch phrase that can be displayed to an end user.
8232 *
@@ -93,26 +43,6 @@ export class CompanyModule extends ModuleBase {
9343 ] . join ( ' ' ) ;
9444 }
9545
96- /**
97- * Generates a random company bs phrase.
98- *
99- * @example
100- * faker.company.bs() // 'cultivate synergistic e-markets'
101- *
102- * @since 2.0.1
103- *
104- * @deprecated Use `faker.company.buzzPhrase` instead.
105- */
106- bs ( ) : string {
107- deprecated ( {
108- deprecated : 'faker.company.bs' ,
109- proposed : 'faker.company.buzzPhrase' ,
110- since : '8.0' ,
111- until : '9.0' ,
112- } ) ;
113- return this . buzzPhrase ( ) ;
114- }
115-
11646 /**
11747 * Generates a random buzz phrase that can be used to demonstrate data being viewed by a manager.
11848 *
@@ -165,26 +95,6 @@ export class CompanyModule extends ModuleBase {
16595 return this . faker . helpers . arrayElement ( this . faker . definitions . company . noun ) ;
16696 }
16797
168- /**
169- * Returns a random company bs adjective.
170- *
171- * @example
172- * faker.company.bsAdjective() // 'one-to-one'
173- *
174- * @since 2.0.1
175- *
176- * @deprecated Use `faker.company.buzzAdjective` instead.
177- */
178- bsAdjective ( ) : string {
179- deprecated ( {
180- deprecated : 'faker.company.bsAdjective' ,
181- proposed : 'faker.company.buzzAdjective' ,
182- since : '8.0' ,
183- until : '9.0' ,
184- } ) ;
185- return this . buzzAdjective ( ) ;
186- }
187-
18898 /**
18999 * Returns a random buzz adjective that can be used to demonstrate data being viewed by a manager.
190100 *
@@ -199,26 +109,6 @@ export class CompanyModule extends ModuleBase {
199109 ) ;
200110 }
201111
202- /**
203- * Returns a random company bs buzz word.
204- *
205- * @example
206- * faker.company.bsBuzz() // 'empower'
207- *
208- * @since 2.0.1
209- *
210- * @deprecated Use `faker.company.buzzVerb` instead.
211- */
212- bsBuzz ( ) : string {
213- deprecated ( {
214- deprecated : 'faker.company.bsBuzz' ,
215- proposed : 'faker.company.buzzVerb' ,
216- since : '8.0' ,
217- until : '9.0' ,
218- } ) ;
219- return this . buzzVerb ( ) ;
220- }
221-
222112 /**
223113 * Returns a random buzz verb that can be used to demonstrate data being viewed by a manager.
224114 *
@@ -233,26 +123,6 @@ export class CompanyModule extends ModuleBase {
233123 ) ;
234124 }
235125
236- /**
237- * Returns a random company bs noun.
238- *
239- * @example
240- * faker.company.bsNoun() // 'paradigms'
241- *
242- * @since 2.0.1
243- *
244- * @deprecated Use `faker.company.buzzNoun` instead.
245- */
246- bsNoun ( ) : string {
247- deprecated ( {
248- deprecated : 'faker.company.bsNoun' ,
249- proposed : 'faker.company.buzzNoun' ,
250- since : '8.0' ,
251- until : '9.0' ,
252- } ) ;
253- return this . buzzNoun ( ) ;
254- }
255-
256126 /**
257127 * Returns a random buzz noun that can be used to demonstrate data being viewed by a manager.
258128 *
0 commit comments