Checklist.ts 745 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { type Checklist } from '#shared/graphql/types.ts'
  3. import { convertToGraphQLId } from '#shared/graphql/utils.ts'
  4. import type { DeepPartial } from '#shared/types/utils.ts'
  5. export default (): DeepPartial<Checklist> => {
  6. return {
  7. __typename: 'Checklist',
  8. id: convertToGraphQLId('Checklist', 999),
  9. name: 'Test checklist',
  10. complete: 0,
  11. completed: false,
  12. incomplete: 1,
  13. total: 1,
  14. // items: [
  15. // {
  16. // __typename: 'ChecklistItem',
  17. // id: convertToGraphQLId('Checklist::Item', 999),
  18. // text: 'Test checklist item',
  19. // checked: false,
  20. // ticketReference: null,
  21. // },
  22. // ],
  23. }
  24. }