mangutil 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProduktSorte, Terminart } from 'mangdto';
|
|
2
2
|
export default class EnumFormatter {
|
|
3
|
-
formatSorte(sorte: ProduktSorte): "Getränk" | "Speise";
|
|
4
|
-
formatTerminart(terminart: Terminart): "Abholung" | "Reservierung" | "Sofortbestellung" | "Lieferung";
|
|
3
|
+
static formatSorte(sorte: ProduktSorte): "Getränk" | "Speise";
|
|
4
|
+
static formatTerminart(terminart: Terminart): "Abholung" | "Reservierung" | "Sofortbestellung" | "Lieferung";
|
|
5
5
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
// import Terminart from '@/entities/common/enums/terminart'
|
|
5
5
|
const mangdto_1 = require("mangdto");
|
|
6
6
|
class EnumFormatter {
|
|
7
|
-
formatSorte(sorte) {
|
|
7
|
+
static formatSorte(sorte) {
|
|
8
8
|
switch (sorte) {
|
|
9
9
|
case mangdto_1.ProduktSorte.Getraenk:
|
|
10
10
|
return 'Getränk';
|
|
@@ -12,7 +12,7 @@ class EnumFormatter {
|
|
|
12
12
|
return 'Speise';
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
formatTerminart(terminart) {
|
|
15
|
+
static formatTerminart(terminart) {
|
|
16
16
|
switch (terminart) {
|
|
17
17
|
case mangdto_1.Terminart.Abholung:
|
|
18
18
|
return 'Abholung';
|