This commit is contained in:
Ulf Gebhardt 2021-10-01 21:59:06 +02:00
parent ca3f930c5e
commit c9a56ac0a2
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
4 changed files with 50 additions and 0 deletions

View 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
})

View 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
})

View 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
})

View 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
})