mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
enums
This commit is contained in:
parent
ca3f930c5e
commit
c9a56ac0a2
16
backend/src/graphql/enum/GdtEntryType.ts
Normal file
16
backend/src/graphql/enum/GdtEntryType.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { registerEnumType } from 'type-graphql'
|
||||||
|
|
||||||
|
export enum GdtEntryType {
|
||||||
|
FORM = 1,
|
||||||
|
CVS = 2,
|
||||||
|
ELOPAGE = 3,
|
||||||
|
ELOPAGE_PUBLISHER = 4,
|
||||||
|
DIGISTORE = 5,
|
||||||
|
CVS2 = 6,
|
||||||
|
GLOBAL_MODIFICATOR = 7,
|
||||||
|
}
|
||||||
|
|
||||||
|
registerEnumType(GdtEntryType, {
|
||||||
|
name: 'GdtEntryType', // this one is mandatory
|
||||||
|
description: 'Gdt Entry Source Type', // this one is optional
|
||||||
|
})
|
||||||
11
backend/src/graphql/enum/Order.ts
Normal file
11
backend/src/graphql/enum/Order.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { registerEnumType } from 'type-graphql'
|
||||||
|
|
||||||
|
export enum Order {
|
||||||
|
ASC = 'ASC',
|
||||||
|
DESC = 'DESC',
|
||||||
|
}
|
||||||
|
|
||||||
|
registerEnumType(Order, {
|
||||||
|
name: 'Order', // this one is mandatory
|
||||||
|
description: 'Order direction - ascending or descending', // this one is optional
|
||||||
|
})
|
||||||
12
backend/src/graphql/enum/TransactionType.ts
Normal file
12
backend/src/graphql/enum/TransactionType.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { registerEnumType } from 'type-graphql'
|
||||||
|
|
||||||
|
export enum TransactionType {
|
||||||
|
CREATION = 'creation',
|
||||||
|
SEND = 'send',
|
||||||
|
RECIEVE = 'receive',
|
||||||
|
}
|
||||||
|
|
||||||
|
registerEnumType(TransactionType, {
|
||||||
|
name: 'TransactionType', // this one is mandatory
|
||||||
|
description: 'Name of the Type of the transaction', // this one is optional
|
||||||
|
})
|
||||||
11
backend/src/graphql/enum/TransactionTypeId.ts
Normal file
11
backend/src/graphql/enum/TransactionTypeId.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { registerEnumType } from 'type-graphql'
|
||||||
|
|
||||||
|
export enum TransactionTypeId {
|
||||||
|
CREATION = 1,
|
||||||
|
SEND = 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
registerEnumType(TransactionTypeId, {
|
||||||
|
name: 'TransactionTypeId', // this one is mandatory
|
||||||
|
description: 'Type of the transaction', // this one is optional
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user