Skip to content

Commit

Permalink
Merge pull request #251 from Scrivito/id_attribute
Browse files Browse the repository at this point in the history
Add "_id" attributes to many data classes
  • Loading branch information
apepper committed May 6, 2024
2 parents f0d210c + e58d224 commit e7447c6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Data/Document/DocumentEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Document } from './DocumentDataClass'
provideEditingConfig(Document, {
title: 'Document',
attributes: {
_id: { title: 'Document ID' },
title: { title: 'Title' },
number: { title: 'Number' },
type: { title: 'Type' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Event/EventEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Event } from './EventDataClass'
provideEditingConfig(Event, {
title: 'Event',
attributes: {
_id: { title: 'Event ID' },
keyword: { title: 'Keyword' },
number: { title: 'Number' },
beginsAt: { title: 'Begins at' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Gdpr/GdprEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Gdpr } from './GdprDataClass'
provideEditingConfig(Gdpr, {
title: 'GDPR consent',
attributes: {
_id: { title: 'GDPR consent ID' },
name: { title: 'Name' },
description: { title: 'Description' },
active: { title: 'Active?' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Message/MessageEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Message } from './MessageDataClass'
provideEditingConfig(Message, {
title: 'Message',
attributes: {
_id: { title: 'Message ID' },
subjectId: { title: 'Subject ID' },
text: { title: 'Text' },
createdBy: { title: 'Created by (ID)' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Order/OrderEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Order } from './OrderDataClass'
provideEditingConfig(Order, {
title: 'Order',
attributes: {
_id: { title: 'Order ID' },
keyword: { title: 'Keyword' },
number: { title: 'Number' },
type: { title: 'Type' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Quote/QuoteEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Quote } from './QuoteDataClass'
provideEditingConfig(Quote, {
title: 'Quote',
attributes: {
_id: { title: 'Quote ID' },
keyword: { title: 'Keyword' },
number: { title: 'Number' },
type: { title: 'Type' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/ServiceObject/ServiceObjectEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ServiceObject } from './ServiceObjectDataClass'
provideEditingConfig(ServiceObject, {
title: 'Service object',
attributes: {
_id: { title: 'Service object ID' },
keyword: { title: 'Keyword' },
number: { title: 'Number' },
serialNumber: { title: 'Serial number' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Subscription/SubscriptionEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Subscription } from './SubscriptionDataClass'
provideEditingConfig(Subscription, {
title: 'Subscription',
attributes: {
_id: { title: 'Subscription ID' },
title: { title: 'Title' },
description: { title: 'Description' },
isConsentGiven: { title: 'Is consent given?' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/Ticket/TicketEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Ticket } from './TicketDataClass'
provideEditingConfig(Ticket, {
title: 'Ticket',
attributes: {
_id: { title: 'Ticket ID' },
title: { title: 'Title' },
description: { title: 'Description' },
number: { title: 'Ticket number' },
Expand Down
1 change: 1 addition & 0 deletions src/Data/User/UserEditingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { User } from './UserDataClass'
provideEditingConfig(User, {
title: 'User',
attributes: {
_id: { title: 'User ID' },
name: { title: 'Name (given and family name)' },
salutation: { title: 'Salutation' },
givenName: { title: 'Given name' },
Expand Down

0 comments on commit e7447c6

Please sign in to comment.