refactor: convert type definitions to enums for consistency in schema files
This commit is contained in:
parent
2ac16e4f33
commit
9886e5042a
6 changed files with 32 additions and 26 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
/** Represents the enum public.BanType */
|
/** Represents the enum public.BanType */
|
||||||
type BanType =
|
enum BanType {
|
||||||
| 'ip'
|
ip = 'ip',
|
||||||
| 'email'
|
email = 'email',
|
||||||
| 'phone'
|
phone = 'phone',
|
||||||
| 'cf';
|
cf = 'cf',
|
||||||
|
};
|
||||||
|
|
||||||
export default BanType;
|
export default BanType;
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/** Represents the enum public.GenericStatusEnum */
|
/** Represents the enum public.GenericStatusEnum */
|
||||||
type GenericStatusEnum =
|
enum GenericStatusEnum {
|
||||||
| 'pending'
|
pending = 'pending',
|
||||||
| 'success'
|
success = 'success',
|
||||||
| 'failed';
|
failed = 'failed',
|
||||||
|
};
|
||||||
|
|
||||||
export default GenericStatusEnum;
|
export default GenericStatusEnum;
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
/** Represents the enum public.OrderTypeEnum */
|
/** Represents the enum public.OrderTypeEnum */
|
||||||
type OrderTypeEnum =
|
enum OrderTypeEnum {
|
||||||
| 'Acconto'
|
Acconto = 'Acconto',
|
||||||
| 'Saldo'
|
Saldo = 'Saldo',
|
||||||
| 'Consulenza'
|
Consulenza = 'Consulenza',
|
||||||
| 'Altro'
|
Altro = 'Altro',
|
||||||
| 'Rinnovo';
|
Rinnovo = 'Rinnovo',
|
||||||
|
};
|
||||||
|
|
||||||
export default OrderTypeEnum;
|
export default OrderTypeEnum;
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/** Represents the enum public.PaymentStatusEnum */
|
/** Represents the enum public.PaymentStatusEnum */
|
||||||
type PaymentStatusEnum =
|
enum PaymentStatusEnum {
|
||||||
| 'processing'
|
processing = 'processing',
|
||||||
| 'success'
|
success = 'success',
|
||||||
| 'failed';
|
failed = 'failed',
|
||||||
|
};
|
||||||
|
|
||||||
export default PaymentStatusEnum;
|
export default PaymentStatusEnum;
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/** Represents the enum public.StatusConfermaEnum */
|
/** Represents the enum public.StatusConfermaEnum */
|
||||||
type StatusConfermaEnum =
|
enum StatusConfermaEnum {
|
||||||
| 'Inviato conferma'
|
'Inviato conferma' = 'Inviato conferma',
|
||||||
| 'Conferma accettata'
|
'Conferma accettata' = 'Conferma accettata',
|
||||||
| 'Caparra versata';
|
'Caparra versata' = 'Caparra versata',
|
||||||
|
};
|
||||||
|
|
||||||
export default StatusConfermaEnum;
|
export default StatusConfermaEnum;
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
/** Represents the enum public.TipologiaPosizioneEnum */
|
/** Represents the enum public.TipologiaPosizioneEnum */
|
||||||
type TipologiaPosizioneEnum =
|
enum TipologiaPosizioneEnum {
|
||||||
| 'Transitorio'
|
Transitorio = 'Transitorio',
|
||||||
| 'Stabile';
|
Stabile = 'Stabile',
|
||||||
|
};
|
||||||
|
|
||||||
export default TipologiaPosizioneEnum;
|
export default TipologiaPosizioneEnum;
|
||||||
Loading…
Add table
Reference in a new issue