diff --git a/backend/src/graphql/enum/GdtEntryType.ts b/backend/src/graphql/enum/GdtEntryType.ts new file mode 100644 index 000000000..b82153222 --- /dev/null +++ b/backend/src/graphql/enum/GdtEntryType.ts @@ -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 +}) diff --git a/backend/src/graphql/enum/Order.ts b/backend/src/graphql/enum/Order.ts new file mode 100644 index 000000000..e425d21b2 --- /dev/null +++ b/backend/src/graphql/enum/Order.ts @@ -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 +}) diff --git a/backend/src/graphql/enum/TransactionType.ts b/backend/src/graphql/enum/TransactionType.ts new file mode 100644 index 000000000..2b6fc44d1 --- /dev/null +++ b/backend/src/graphql/enum/TransactionType.ts @@ -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 +}) diff --git a/backend/src/graphql/enum/TransactionTypeId.ts b/backend/src/graphql/enum/TransactionTypeId.ts new file mode 100644 index 000000000..4ff3671cf --- /dev/null +++ b/backend/src/graphql/enum/TransactionTypeId.ts @@ -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 +})