updates.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. import { USER_ID, USER_EMAIL } from '../../../helpers/editor-providers'
  2. export const updates = {
  3. updates: [
  4. {
  5. fromV: 5,
  6. toV: 6,
  7. meta: {
  8. users: [
  9. {
  10. first_name: 'testuser',
  11. last_name: '',
  12. email: USER_EMAIL,
  13. id: USER_ID,
  14. },
  15. {
  16. first_name: 'john.doe',
  17. last_name: '',
  18. email: 'john.doe@test.com',
  19. id: '631710ab1094c5002647184e',
  20. },
  21. ],
  22. start_ts: 1681220036519,
  23. end_ts: 1681220036619,
  24. },
  25. labels: [],
  26. pathnames: ['name.tex'],
  27. project_ops: [],
  28. },
  29. {
  30. fromV: 4,
  31. toV: 5,
  32. meta: {
  33. users: [
  34. {
  35. first_name: 'testuser',
  36. last_name: '',
  37. email: USER_EMAIL,
  38. id: USER_ID,
  39. },
  40. {
  41. first_name: 'john.doe',
  42. last_name: '',
  43. email: 'john.doe@test.com',
  44. id: '631710ab1094c5002647184e',
  45. },
  46. ],
  47. start_ts: 1681220036419,
  48. end_ts: 1681220036419,
  49. },
  50. labels: [
  51. {
  52. id: '643561cdfa2b2beac88f0024',
  53. comment: 'tag-1',
  54. version: 4,
  55. user_id: USER_ID,
  56. created_at: '2023-04-11T13:34:05.856Z',
  57. },
  58. {
  59. id: '643561d1fa2b2beac88f0025',
  60. comment: 'tag-2',
  61. version: 4,
  62. user_id: USER_ID,
  63. created_at: '2023-04-11T13:34:09.280Z',
  64. },
  65. ],
  66. pathnames: [],
  67. project_ops: [{ add: { pathname: 'name.tex' }, atV: 3 }],
  68. },
  69. {
  70. fromV: 2,
  71. toV: 4,
  72. meta: {
  73. users: [
  74. {
  75. first_name: 'bobby.lapointe',
  76. last_name: '',
  77. email: 'bobby.lapointe@test.com',
  78. id: '631710ab1094c5002647184e',
  79. },
  80. ],
  81. start_ts: 1681220029569,
  82. end_ts: 1681220031589,
  83. },
  84. labels: [],
  85. pathnames: ['main.tex'],
  86. project_ops: [],
  87. },
  88. {
  89. fromV: 1,
  90. toV: 2,
  91. meta: {
  92. users: [
  93. {
  94. first_name: 'john.doe',
  95. last_name: '',
  96. email: 'john.doe@test.com',
  97. id: '631710ab1094c5002647184e',
  98. },
  99. ],
  100. start_ts: 1669218226672,
  101. end_ts: 1669218226672,
  102. },
  103. labels: [
  104. {
  105. id: '6436bcf630293cb49e7f13a4',
  106. comment: 'tag-3',
  107. version: 3,
  108. user_id: '631710ab1094c5002647184e',
  109. created_at: '2023-04-12T14:15:18.892Z',
  110. },
  111. {
  112. id: '6436bcf830293cb49e7f13a5',
  113. comment: 'tag-4',
  114. version: 3,
  115. user_id: '631710ab1094c5002647184e',
  116. created_at: '2023-04-12T14:15:20.814Z',
  117. },
  118. ],
  119. pathnames: ['main.tex'],
  120. project_ops: [],
  121. },
  122. {
  123. fromV: 0,
  124. toV: 1,
  125. meta: {
  126. users: [
  127. {
  128. first_name: 'testuser',
  129. last_name: '',
  130. email: USER_EMAIL,
  131. id: USER_ID,
  132. },
  133. {
  134. first_name: 'john.doe',
  135. last_name: '',
  136. email: 'john.doe@test.com',
  137. id: '631710ab1094c5002647184e',
  138. },
  139. ],
  140. start_ts: 1669218226500,
  141. end_ts: 1669218226600,
  142. },
  143. labels: [],
  144. pathnames: [],
  145. project_ops: [{ add: { pathname: 'main.tex' }, atV: 3 }],
  146. },
  147. ],
  148. }