document-model 4.1.0-dev.9 → 4.1.0-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/index.d.ts +8 -7
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +5 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/document/actions/creators.d.ts +2 -2
  6. package/dist/src/document/actions/creators.d.ts.map +1 -1
  7. package/dist/src/document/actions/creators.js +1 -1
  8. package/dist/src/document/actions/creators.js.map +1 -1
  9. package/dist/src/document/actions/operations.d.ts +5 -5
  10. package/dist/src/document/actions/operations.d.ts.map +1 -1
  11. package/dist/src/document/actions/operations.js +11 -9
  12. package/dist/src/document/actions/operations.js.map +1 -1
  13. package/dist/src/document/object.d.ts +3 -3
  14. package/dist/src/document/object.d.ts.map +1 -1
  15. package/dist/src/document/object.js +1 -1
  16. package/dist/src/document/object.js.map +1 -1
  17. package/dist/src/document/ph-factories.d.ts +34 -3
  18. package/dist/src/document/ph-factories.d.ts.map +1 -1
  19. package/dist/src/document/ph-factories.js +64 -33
  20. package/dist/src/document/ph-factories.js.map +1 -1
  21. package/dist/src/document/ph-types.d.ts +10 -2
  22. package/dist/src/document/ph-types.d.ts.map +1 -1
  23. package/dist/src/document/reducer.d.ts +4 -4
  24. package/dist/src/document/reducer.d.ts.map +1 -1
  25. package/dist/src/document/reducer.js +27 -29
  26. package/dist/src/document/reducer.js.map +1 -1
  27. package/dist/src/document/schema/types.d.ts +13 -1
  28. package/dist/src/document/schema/types.d.ts.map +1 -1
  29. package/dist/src/document/schema/zod.d.ts +31 -2
  30. package/dist/src/document/schema/zod.d.ts.map +1 -1
  31. package/dist/src/document/schema/zod.js +23 -11
  32. package/dist/src/document/schema/zod.js.map +1 -1
  33. package/dist/src/document/types.d.ts +58 -62
  34. package/dist/src/document/types.d.ts.map +1 -1
  35. package/dist/src/document/utils/base.d.ts +5 -6
  36. package/dist/src/document/utils/base.d.ts.map +1 -1
  37. package/dist/src/document/utils/base.js +31 -30
  38. package/dist/src/document/utils/base.js.map +1 -1
  39. package/dist/src/document/utils/crypto.d.ts +5 -5
  40. package/dist/src/document/utils/crypto.d.ts.map +1 -1
  41. package/dist/src/document/utils/crypto.js +25 -15
  42. package/dist/src/document/utils/crypto.js.map +1 -1
  43. package/dist/src/document/utils/document-helpers.d.ts +9 -14
  44. package/dist/src/document/utils/document-helpers.d.ts.map +1 -1
  45. package/dist/src/document/utils/document-helpers.js +47 -17
  46. package/dist/src/document/utils/document-helpers.js.map +1 -1
  47. package/dist/src/document/utils/file.d.ts.map +1 -1
  48. package/dist/src/document/utils/file.js.map +1 -1
  49. package/dist/src/document/utils/header.js.map +1 -1
  50. package/dist/src/document/utils/validation.js +1 -1
  51. package/dist/src/document/utils/validation.js.map +1 -1
  52. package/dist/src/document-model/gen/object.d.ts +2 -2
  53. package/dist/src/document-model/gen/object.d.ts.map +1 -1
  54. package/dist/src/document-model/gen/object.js.map +1 -1
  55. package/dist/src/document-model/gen/schema/zod.d.ts +6 -6
  56. package/dist/src/document-model/gen/schema/zod.d.ts.map +1 -1
  57. package/dist/src/document-model/gen/types.d.ts +2 -2
  58. package/dist/src/document-model/gen/types.d.ts.map +1 -1
  59. package/dist/src/document-model/gen/utils.d.ts +1 -2
  60. package/dist/src/document-model/gen/utils.d.ts.map +1 -1
  61. package/dist/src/document-model/gen/utils.js +6 -8
  62. package/dist/src/document-model/gen/utils.js.map +1 -1
  63. package/dist/test/document/crypto.test.js +25 -48
  64. package/dist/test/document/crypto.test.js.map +1 -1
  65. package/dist/test/document/event-vs-command.test.js +80 -50
  66. package/dist/test/document/event-vs-command.test.js.map +1 -1
  67. package/dist/test/document/local.test.js +26 -43
  68. package/dist/test/document/local.test.js.map +1 -1
  69. package/dist/test/document/operation-id.test.js +4 -6
  70. package/dist/test/document/operation-id.test.js.map +1 -1
  71. package/dist/test/document/prune.test.js +21 -34
  72. package/dist/test/document/prune.test.js.map +1 -1
  73. package/dist/test/document/reducer.test.js +99 -76
  74. package/dist/test/document/reducer.test.js.map +1 -1
  75. package/dist/test/document/skip-operations.test.js +65 -85
  76. package/dist/test/document/skip-operations.test.js.map +1 -1
  77. package/dist/test/document/undo-redo.test.js +60 -34
  78. package/dist/test/document/undo-redo.test.js.map +1 -1
  79. package/dist/test/document/utils.test.js +49 -36
  80. package/dist/test/document/utils.test.js.map +1 -1
  81. package/dist/test/document-helpers/addUndo.test.js +1 -1
  82. package/dist/test/document-helpers/addUndo.test.js.map +1 -1
  83. package/dist/test/document-helpers/attachBranch.test.js +20 -20
  84. package/dist/test/document-helpers/attachBranch.test.js.map +1 -1
  85. package/dist/test/document-helpers/conflictResolution.test.js +10 -10
  86. package/dist/test/document-helpers/conflictResolution.test.js.map +1 -1
  87. package/dist/test/document-helpers/groupOperationsByScope.test.js +70 -70
  88. package/dist/test/document-helpers/groupOperationsByScope.test.js.map +1 -1
  89. package/dist/test/document-helpers/merge.test.js +125 -125
  90. package/dist/test/document-helpers/merge.test.js.map +1 -1
  91. package/dist/test/document-helpers/removeExistingOperations.test.js +37 -24
  92. package/dist/test/document-helpers/removeExistingOperations.test.js.map +1 -1
  93. package/dist/test/document-helpers/reshuffleByTimestamp.test.js +15 -15
  94. package/dist/test/document-helpers/reshuffleByTimestamp.test.js.map +1 -1
  95. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js +21 -21
  96. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js.map +1 -1
  97. package/dist/test/document-helpers/skipHeaderOperations.test.js +33 -40
  98. package/dist/test/document-helpers/skipHeaderOperations.test.js.map +1 -1
  99. package/dist/test/document-helpers/split.test.js +2 -2
  100. package/dist/test/document-helpers/split.test.js.map +1 -1
  101. package/dist/test/document-helpers/utils.d.ts +1 -0
  102. package/dist/test/document-helpers/utils.d.ts.map +1 -1
  103. package/dist/test/document-helpers/utils.js +13 -8
  104. package/dist/test/document-helpers/utils.js.map +1 -1
  105. package/dist/test/document-model/replay.test.js +3 -20
  106. package/dist/test/document-model/replay.test.js.map +1 -1
  107. package/dist/test/document-model/skip-operations.test.js +4 -5
  108. package/dist/test/document-model/skip-operations.test.js.map +1 -1
  109. package/dist/test/document-model/validation.test.js.map +1 -1
  110. package/dist/test/document-model/zip.test.js +1 -1
  111. package/dist/test/document-model/zip.test.js.map +1 -1
  112. package/dist/test/helpers.d.ts +25 -2
  113. package/dist/test/helpers.d.ts.map +1 -1
  114. package/dist/test/helpers.js +55 -6
  115. package/dist/test/helpers.js.map +1 -1
  116. package/dist/tsconfig.tsbuildinfo +1 -1
  117. package/package.json +4 -2
@@ -15,37 +15,37 @@ describe("merge", () => {
15
15
  index: 0,
16
16
  skip: 0,
17
17
  type: "OP_0",
18
- timestamp: "2021-01-01T00:00:00.000Z",
18
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
19
19
  },
20
20
  {
21
21
  index: 1,
22
22
  skip: 0,
23
23
  type: "OP_1",
24
- timestamp: "2021-01-02T00:00:00.000Z",
24
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
25
25
  },
26
26
  {
27
27
  index: 2,
28
28
  skip: 0,
29
29
  type: "OP_A_2",
30
- timestamp: "2021-01-03T00:00:00.000Z",
30
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
31
31
  },
32
32
  {
33
33
  index: 3,
34
34
  skip: 0,
35
35
  type: "OP_A_3",
36
- timestamp: "2021-01-04T00:00:00.000Z",
36
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
37
37
  },
38
38
  {
39
39
  index: 4,
40
40
  skip: 0,
41
41
  type: "OP_A_4",
42
- timestamp: "2021-01-09T00:00:00.000Z",
42
+ timestampUtcMs: "2021-01-09T00:00:00.000Z",
43
43
  },
44
44
  {
45
45
  index: 5,
46
46
  skip: 0,
47
47
  type: "OP_A_5",
48
- timestamp: "2021-01-10T00:00:00.000Z",
48
+ timestampUtcMs: "2021-01-10T00:00:00.000Z",
49
49
  },
50
50
  ],
51
51
  mergeOperations: [
@@ -53,37 +53,37 @@ describe("merge", () => {
53
53
  index: 0,
54
54
  skip: 0,
55
55
  type: "OP_0",
56
- timestamp: "2021-01-01T00:00:00.000Z",
56
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
57
57
  },
58
58
  {
59
59
  index: 1,
60
60
  skip: 0,
61
61
  type: "OP_1",
62
- timestamp: "2021-01-02T00:00:00.000Z",
62
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
63
63
  },
64
64
  {
65
65
  index: 2,
66
66
  skip: 0,
67
67
  type: "OP_B_2",
68
- timestamp: "2021-01-05T00:00:00.000Z",
68
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
69
69
  },
70
70
  {
71
71
  index: 3,
72
72
  skip: 0,
73
73
  type: "OP_B_3",
74
- timestamp: "2021-01-06T00:00:00.000Z",
74
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
75
75
  },
76
76
  {
77
77
  index: 4,
78
78
  skip: 2,
79
79
  type: "OP_B_4",
80
- timestamp: "2021-01-07T00:00:00.000Z",
80
+ timestampUtcMs: "2021-01-07T00:00:00.000Z",
81
81
  },
82
82
  {
83
83
  index: 5,
84
84
  skip: 0,
85
85
  type: "OP_B_5",
86
- timestamp: "2021-01-08T00:00:00.000Z",
86
+ timestampUtcMs: "2021-01-08T00:00:00.000Z",
87
87
  },
88
88
  ],
89
89
  expected: [
@@ -91,49 +91,49 @@ describe("merge", () => {
91
91
  index: 0,
92
92
  skip: 0,
93
93
  type: "OP_0",
94
- timestamp: "2021-01-01T00:00:00.000Z",
94
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
95
95
  },
96
96
  {
97
97
  index: 1,
98
98
  skip: 0,
99
99
  type: "OP_1",
100
- timestamp: "2021-01-02T00:00:00.000Z",
100
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
101
101
  },
102
102
  {
103
103
  index: 6,
104
104
  skip: 4,
105
105
  type: "OP_A_2",
106
- timestamp: "2021-01-03T00:00:00.000Z",
106
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
107
107
  },
108
108
  {
109
109
  index: 7,
110
110
  skip: 0,
111
111
  type: "OP_A_3",
112
- timestamp: "2021-01-04T00:00:00.000Z",
112
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
113
113
  },
114
114
  {
115
115
  index: 8,
116
116
  skip: 0,
117
117
  type: "OP_B_4",
118
- timestamp: "2021-01-07T00:00:00.000Z",
118
+ timestampUtcMs: "2021-01-07T00:00:00.000Z",
119
119
  },
120
120
  {
121
121
  index: 9,
122
122
  skip: 0,
123
123
  type: "OP_A_4",
124
- timestamp: "2021-01-09T00:00:00.000Z",
124
+ timestampUtcMs: "2021-01-09T00:00:00.000Z",
125
125
  },
126
126
  {
127
127
  index: 10,
128
128
  skip: 0,
129
129
  type: "OP_B_5",
130
- timestamp: "2021-01-08T00:00:00.000Z",
130
+ timestampUtcMs: "2021-01-08T00:00:00.000Z",
131
131
  },
132
132
  {
133
133
  index: 11,
134
134
  skip: 0,
135
135
  type: "OP_A_5",
136
- timestamp: "2021-01-10T00:00:00.000Z",
136
+ timestampUtcMs: "2021-01-10T00:00:00.000Z",
137
137
  },
138
138
  ],
139
139
  },
@@ -149,37 +149,37 @@ describe("merge", () => {
149
149
  index: 0,
150
150
  skip: 0,
151
151
  type: "OP_0",
152
- timestamp: "2021-01-01T00:00:00.000Z",
152
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
153
153
  },
154
154
  {
155
155
  index: 1,
156
156
  skip: 0,
157
157
  type: "OP_1",
158
- timestamp: "2021-01-02T00:00:00.000Z",
158
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
159
159
  },
160
160
  {
161
161
  index: 2,
162
162
  skip: 0,
163
163
  type: "OP_A_2",
164
- timestamp: "2021-01-03T00:00:00.000Z",
164
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
165
165
  },
166
166
  {
167
167
  index: 3,
168
168
  skip: 0,
169
169
  type: "OP_A_3",
170
- timestamp: "2021-01-04T00:00:00.000Z",
170
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
171
171
  },
172
172
  {
173
173
  index: 4,
174
174
  skip: 0,
175
175
  type: "OP_A_4",
176
- timestamp: "2021-01-05T00:00:00.000Z",
176
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
177
177
  },
178
178
  {
179
179
  index: 5,
180
180
  skip: 1,
181
181
  type: "OP_A_5",
182
- timestamp: "2021-01-06T00:00:00.000Z",
182
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
183
183
  },
184
184
  ],
185
185
  mergeOperations: [
@@ -187,37 +187,37 @@ describe("merge", () => {
187
187
  index: 0,
188
188
  skip: 0,
189
189
  type: "OP_0",
190
- timestamp: "2021-01-01T00:00:00.000Z",
190
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
191
191
  },
192
192
  {
193
193
  index: 1,
194
194
  skip: 0,
195
195
  type: "OP_1",
196
- timestamp: "2021-01-02T00:00:00.000Z",
196
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
197
197
  },
198
198
  {
199
199
  index: 2,
200
200
  skip: 0,
201
201
  type: "OP_B_2",
202
- timestamp: "2021-01-07T00:00:00.000Z",
202
+ timestampUtcMs: "2021-01-07T00:00:00.000Z",
203
203
  },
204
204
  {
205
205
  index: 3,
206
206
  skip: 0,
207
207
  type: "OP_B_3",
208
- timestamp: "2021-01-08T00:00:00.000Z",
208
+ timestampUtcMs: "2021-01-08T00:00:00.000Z",
209
209
  },
210
210
  {
211
211
  index: 4,
212
212
  skip: 2,
213
213
  type: "OP_B_4",
214
- timestamp: "2021-01-09T00:00:00.000Z",
214
+ timestampUtcMs: "2021-01-09T00:00:00.000Z",
215
215
  },
216
216
  {
217
217
  index: 5,
218
218
  skip: 0,
219
219
  type: "OP_B_5",
220
- timestamp: "2021-01-10T00:00:00.000Z",
220
+ timestampUtcMs: "2021-01-10T00:00:00.000Z",
221
221
  },
222
222
  ],
223
223
  expected: [
@@ -225,43 +225,43 @@ describe("merge", () => {
225
225
  index: 0,
226
226
  skip: 0,
227
227
  type: "OP_0",
228
- timestamp: "2021-01-01T00:00:00.000Z",
228
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
229
229
  },
230
230
  {
231
231
  index: 1,
232
232
  skip: 0,
233
233
  type: "OP_1",
234
- timestamp: "2021-01-02T00:00:00.000Z",
234
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
235
235
  },
236
236
  {
237
237
  index: 6,
238
238
  skip: 4,
239
239
  type: "OP_A_2",
240
- timestamp: "2021-01-03T00:00:00.000Z",
240
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
241
241
  },
242
242
  {
243
243
  index: 7,
244
244
  skip: 0,
245
245
  type: "OP_A_3",
246
- timestamp: "2021-01-04T00:00:00.000Z",
246
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
247
247
  },
248
248
  {
249
249
  index: 8,
250
250
  skip: 0,
251
251
  type: "OP_B_4",
252
- timestamp: "2021-01-09T00:00:00.000Z",
252
+ timestampUtcMs: "2021-01-09T00:00:00.000Z",
253
253
  },
254
254
  {
255
255
  index: 9,
256
256
  skip: 0,
257
257
  type: "OP_A_5",
258
- timestamp: "2021-01-06T00:00:00.000Z",
258
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
259
259
  },
260
260
  {
261
261
  index: 10,
262
262
  skip: 0,
263
263
  type: "OP_B_5",
264
- timestamp: "2021-01-10T00:00:00.000Z",
264
+ timestampUtcMs: "2021-01-10T00:00:00.000Z",
265
265
  },
266
266
  ],
267
267
  },
@@ -277,37 +277,37 @@ describe("merge", () => {
277
277
  index: 0,
278
278
  skip: 0,
279
279
  type: "OP_0",
280
- timestamp: "2021-01-01T00:00:00.000Z",
280
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
281
281
  },
282
282
  {
283
283
  index: 1,
284
284
  skip: 1,
285
285
  type: "OP_1",
286
- timestamp: "2021-01-02T00:00:00.000Z",
286
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
287
287
  },
288
288
  {
289
289
  index: 2,
290
290
  skip: 0,
291
291
  type: "OP_A_2",
292
- timestamp: "2021-01-03T00:00:00.000Z",
292
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
293
293
  },
294
294
  {
295
295
  index: 3,
296
296
  skip: 0,
297
297
  type: "OP_A_3",
298
- timestamp: "2021-01-04T00:00:00.000Z",
298
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
299
299
  },
300
300
  {
301
301
  index: 4,
302
302
  skip: 0,
303
303
  type: "OP_A_4",
304
- timestamp: "2021-01-05T00:00:00.000Z",
304
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
305
305
  },
306
306
  {
307
307
  index: 5,
308
308
  skip: 1,
309
309
  type: "OP_A_5",
310
- timestamp: "2021-01-06T00:00:00.000Z",
310
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
311
311
  },
312
312
  ],
313
313
  mergeOperations: [
@@ -315,37 +315,37 @@ describe("merge", () => {
315
315
  index: 0,
316
316
  skip: 0,
317
317
  type: "OP_0",
318
- timestamp: "2021-01-01T00:00:00.000Z",
318
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
319
319
  },
320
320
  {
321
321
  index: 1,
322
322
  skip: 1,
323
323
  type: "OP_1",
324
- timestamp: "2021-01-02T00:00:00.000Z",
324
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
325
325
  },
326
326
  {
327
327
  index: 2,
328
328
  skip: 0,
329
329
  type: "OP_B_2",
330
- timestamp: "2021-01-07T00:00:00.000Z",
330
+ timestampUtcMs: "2021-01-07T00:00:00.000Z",
331
331
  },
332
332
  {
333
333
  index: 3,
334
334
  skip: 0,
335
335
  type: "OP_B_3",
336
- timestamp: "2021-01-08T00:00:00.000Z",
336
+ timestampUtcMs: "2021-01-08T00:00:00.000Z",
337
337
  },
338
338
  {
339
339
  index: 4,
340
340
  skip: 2,
341
341
  type: "OP_B_4",
342
- timestamp: "2021-01-09T00:00:00.000Z",
342
+ timestampUtcMs: "2021-01-09T00:00:00.000Z",
343
343
  },
344
344
  {
345
345
  index: 5,
346
346
  skip: 0,
347
347
  type: "OP_B_5",
348
- timestamp: "2021-01-10T00:00:00.000Z",
348
+ timestampUtcMs: "2021-01-10T00:00:00.000Z",
349
349
  },
350
350
  ],
351
351
  expected: [
@@ -353,37 +353,37 @@ describe("merge", () => {
353
353
  index: 1,
354
354
  skip: 1,
355
355
  type: "OP_1",
356
- timestamp: "2021-01-02T00:00:00.000Z",
356
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
357
357
  },
358
358
  {
359
359
  index: 6,
360
360
  skip: 4,
361
361
  type: "OP_A_2",
362
- timestamp: "2021-01-03T00:00:00.000Z",
362
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
363
363
  },
364
364
  {
365
365
  index: 7,
366
366
  skip: 0,
367
367
  type: "OP_A_3",
368
- timestamp: "2021-01-04T00:00:00.000Z",
368
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
369
369
  },
370
370
  {
371
371
  index: 8,
372
372
  skip: 0,
373
373
  type: "OP_B_4",
374
- timestamp: "2021-01-09T00:00:00.000Z",
374
+ timestampUtcMs: "2021-01-09T00:00:00.000Z",
375
375
  },
376
376
  {
377
377
  index: 9,
378
378
  skip: 0,
379
379
  type: "OP_A_5",
380
- timestamp: "2021-01-06T00:00:00.000Z",
380
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
381
381
  },
382
382
  {
383
383
  index: 10,
384
384
  skip: 0,
385
385
  type: "OP_B_5",
386
- timestamp: "2021-01-10T00:00:00.000Z",
386
+ timestampUtcMs: "2021-01-10T00:00:00.000Z",
387
387
  },
388
388
  ],
389
389
  },
@@ -399,37 +399,37 @@ describe("merge", () => {
399
399
  index: 0,
400
400
  skip: 0,
401
401
  type: "OP_0",
402
- timestamp: "2021-01-01T00:00:00.000Z",
402
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
403
403
  },
404
404
  {
405
405
  index: 1,
406
406
  skip: 1,
407
407
  type: "OP_1",
408
- timestamp: "2021-01-02T00:00:00.000Z",
408
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
409
409
  },
410
410
  {
411
411
  index: 2,
412
412
  skip: 0,
413
413
  type: "OP_2",
414
- timestamp: "2021-01-03T00:00:00.000Z",
414
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
415
415
  },
416
416
  {
417
417
  index: 3,
418
418
  skip: 0,
419
419
  type: "OP_A_3",
420
- timestamp: "2021-01-04T00:00:00.000Z",
420
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
421
421
  },
422
422
  {
423
423
  index: 4,
424
424
  skip: 0,
425
425
  type: "OP_A_4",
426
- timestamp: "2021-01-05T00:00:00.000Z",
426
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
427
427
  },
428
428
  {
429
429
  index: 5,
430
430
  skip: 1,
431
431
  type: "OP_A_5",
432
- timestamp: "2021-01-06T00:00:00.000Z",
432
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
433
433
  },
434
434
  ],
435
435
  mergeOperations: [
@@ -437,19 +437,19 @@ describe("merge", () => {
437
437
  index: 0,
438
438
  skip: 0,
439
439
  type: "OP_0",
440
- timestamp: "2021-01-01T00:00:00.000Z",
440
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
441
441
  },
442
442
  {
443
443
  index: 1,
444
444
  skip: 1,
445
445
  type: "OP_1",
446
- timestamp: "2021-01-02T00:00:00.000Z",
446
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
447
447
  },
448
448
  {
449
449
  index: 2,
450
450
  skip: 0,
451
451
  type: "OP_2",
452
- timestamp: "2021-01-03T00:00:00.000Z",
452
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
453
453
  },
454
454
  ],
455
455
  expected: [
@@ -457,25 +457,25 @@ describe("merge", () => {
457
457
  index: 1,
458
458
  skip: 1,
459
459
  type: "OP_1",
460
- timestamp: "2021-01-02T00:00:00.000Z",
460
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
461
461
  },
462
462
  {
463
463
  index: 2,
464
464
  skip: 0,
465
465
  type: "OP_2",
466
- timestamp: "2021-01-03T00:00:00.000Z",
466
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
467
467
  },
468
468
  {
469
469
  index: 6,
470
470
  skip: 3,
471
471
  type: "OP_A_3",
472
- timestamp: "2021-01-04T00:00:00.000Z",
472
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
473
473
  },
474
474
  {
475
475
  index: 7,
476
476
  skip: 0,
477
477
  type: "OP_A_5",
478
- timestamp: "2021-01-06T00:00:00.000Z",
478
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
479
479
  },
480
480
  ],
481
481
  },
@@ -491,19 +491,19 @@ describe("merge", () => {
491
491
  index: 0,
492
492
  skip: 0,
493
493
  type: "OP_0",
494
- timestamp: "2021-01-01T00:00:00.000Z",
494
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
495
495
  },
496
496
  {
497
497
  index: 1,
498
498
  skip: 1,
499
499
  type: "OP_1",
500
- timestamp: "2021-01-02T00:00:00.000Z",
500
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
501
501
  },
502
502
  {
503
503
  index: 2,
504
504
  skip: 0,
505
505
  type: "OP_2",
506
- timestamp: "2021-01-03T00:00:00.000Z",
506
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
507
507
  },
508
508
  ],
509
509
  mergeOperations: [
@@ -511,37 +511,37 @@ describe("merge", () => {
511
511
  index: 0,
512
512
  skip: 0,
513
513
  type: "OP_0",
514
- timestamp: "2021-01-01T00:00:00.000Z",
514
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
515
515
  },
516
516
  {
517
517
  index: 1,
518
518
  skip: 1,
519
519
  type: "OP_1",
520
- timestamp: "2021-01-02T00:00:00.000Z",
520
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
521
521
  },
522
522
  {
523
523
  index: 2,
524
524
  skip: 0,
525
525
  type: "OP_2",
526
- timestamp: "2021-01-03T00:00:00.000Z",
526
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
527
527
  },
528
528
  {
529
529
  index: 3,
530
530
  skip: 0,
531
531
  type: "OP_B_3",
532
- timestamp: "2021-01-04T00:00:00.000Z",
532
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
533
533
  },
534
534
  {
535
535
  index: 4,
536
536
  skip: 0,
537
537
  type: "OP_B_4",
538
- timestamp: "2021-01-05T00:00:00.000Z",
538
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
539
539
  },
540
540
  {
541
541
  index: 5,
542
542
  skip: 1,
543
543
  type: "OP_B_5",
544
- timestamp: "2021-01-06T00:00:00.000Z",
544
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
545
545
  },
546
546
  ],
547
547
  expected: [
@@ -549,25 +549,25 @@ describe("merge", () => {
549
549
  index: 1,
550
550
  skip: 1,
551
551
  type: "OP_1",
552
- timestamp: "2021-01-02T00:00:00.000Z",
552
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
553
553
  },
554
554
  {
555
555
  index: 2,
556
556
  skip: 0,
557
557
  type: "OP_2",
558
- timestamp: "2021-01-03T00:00:00.000Z",
558
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
559
559
  },
560
560
  {
561
561
  index: 6,
562
562
  skip: 3,
563
563
  type: "OP_B_3",
564
- timestamp: "2021-01-04T00:00:00.000Z",
564
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
565
565
  },
566
566
  {
567
567
  index: 7,
568
568
  skip: 0,
569
569
  type: "OP_B_5",
570
- timestamp: "2021-01-06T00:00:00.000Z",
570
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
571
571
  },
572
572
  ],
573
573
  },
@@ -583,25 +583,25 @@ describe("merge", () => {
583
583
  index: 0,
584
584
  skip: 0,
585
585
  type: "OP_A0",
586
- timestamp: "2021-01-01T00:00:00.000Z",
586
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
587
587
  },
588
588
  {
589
589
  index: 1,
590
590
  skip: 0,
591
591
  type: "OP_A1",
592
- timestamp: "2021-01-02T00:00:00.000Z",
592
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
593
593
  },
594
594
  {
595
595
  index: 2,
596
596
  skip: 1,
597
597
  type: "OP_A2",
598
- timestamp: "2021-01-03T00:00:00.000Z",
598
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
599
599
  },
600
600
  {
601
601
  index: 3,
602
602
  skip: 0,
603
603
  type: "OP_A3",
604
- timestamp: "2021-01-04T00:00:00.000Z",
604
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
605
605
  },
606
606
  ],
607
607
  mergeOperations: [
@@ -609,13 +609,13 @@ describe("merge", () => {
609
609
  index: 0,
610
610
  skip: 0,
611
611
  type: "OP_B0",
612
- timestamp: "2021-01-01T00:00:00.000Z",
612
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
613
613
  },
614
614
  {
615
615
  index: 1,
616
616
  skip: 0,
617
617
  type: "OP_B1",
618
- timestamp: "2021-01-02T00:00:00.000Z",
618
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
619
619
  },
620
620
  ],
621
621
  expected: [
@@ -623,31 +623,31 @@ describe("merge", () => {
623
623
  index: 4,
624
624
  skip: 4,
625
625
  type: "OP_A0",
626
- timestamp: "2021-01-01T00:00:00.000Z",
626
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
627
627
  },
628
628
  {
629
629
  index: 5,
630
630
  skip: 0,
631
631
  type: "OP_B0",
632
- timestamp: "2021-01-01T00:00:00.000Z",
632
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
633
633
  },
634
634
  {
635
635
  index: 6,
636
636
  skip: 0,
637
637
  type: "OP_B1",
638
- timestamp: "2021-01-02T00:00:00.000Z",
638
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
639
639
  },
640
640
  {
641
641
  index: 7,
642
642
  skip: 0,
643
643
  type: "OP_A2",
644
- timestamp: "2021-01-03T00:00:00.000Z",
644
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
645
645
  },
646
646
  {
647
647
  index: 8,
648
648
  skip: 0,
649
649
  type: "OP_A3",
650
- timestamp: "2021-01-04T00:00:00.000Z",
650
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
651
651
  },
652
652
  ],
653
653
  },
@@ -663,13 +663,13 @@ describe("merge", () => {
663
663
  index: 0,
664
664
  skip: 0,
665
665
  type: "OP_A0",
666
- timestamp: "2021-01-01T00:00:00.000Z",
666
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
667
667
  },
668
668
  {
669
669
  index: 1,
670
670
  skip: 0,
671
671
  type: "OP_A1",
672
- timestamp: "2021-01-02T00:00:00.000Z",
672
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
673
673
  },
674
674
  ],
675
675
  mergeOperations: [
@@ -677,25 +677,25 @@ describe("merge", () => {
677
677
  index: 0,
678
678
  skip: 0,
679
679
  type: "OP_B0",
680
- timestamp: "2021-01-01T00:00:00.000Z",
680
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
681
681
  },
682
682
  {
683
683
  index: 1,
684
684
  skip: 0,
685
685
  type: "OP_B1",
686
- timestamp: "2021-01-02T00:00:00.000Z",
686
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
687
687
  },
688
688
  {
689
689
  index: 2,
690
690
  skip: 1,
691
691
  type: "OP_B2",
692
- timestamp: "2021-01-03T00:00:00.000Z",
692
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
693
693
  },
694
694
  {
695
695
  index: 3,
696
696
  skip: 0,
697
697
  type: "OP_B3",
698
- timestamp: "2021-01-04T00:00:00.000Z",
698
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
699
699
  },
700
700
  ],
701
701
  expected: [
@@ -703,31 +703,31 @@ describe("merge", () => {
703
703
  index: 4,
704
704
  skip: 4,
705
705
  type: "OP_A0",
706
- timestamp: "2021-01-01T00:00:00.000Z",
706
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
707
707
  },
708
708
  {
709
709
  index: 5,
710
710
  skip: 0,
711
711
  type: "OP_B0",
712
- timestamp: "2021-01-01T00:00:00.000Z",
712
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
713
713
  },
714
714
  {
715
715
  index: 6,
716
716
  skip: 0,
717
717
  type: "OP_A1",
718
- timestamp: "2021-01-02T00:00:00.000Z",
718
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
719
719
  },
720
720
  {
721
721
  index: 7,
722
722
  skip: 0,
723
723
  type: "OP_B2",
724
- timestamp: "2021-01-03T00:00:00.000Z",
724
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
725
725
  },
726
726
  {
727
727
  index: 8,
728
728
  skip: 0,
729
729
  type: "OP_B3",
730
- timestamp: "2021-01-04T00:00:00.000Z",
730
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
731
731
  },
732
732
  ],
733
733
  },
@@ -758,42 +758,42 @@ describe("merge", () => {
758
758
  index: 0,
759
759
  skip: 0,
760
760
  type: "T_0",
761
- timestamp: "2021-01-01T00:00:00.000Z",
761
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
762
762
  id: "1",
763
763
  }, // add folder
764
764
  {
765
765
  index: 1,
766
766
  skip: 0,
767
767
  type: "T_1",
768
- timestamp: "2021-01-02T00:00:00.000Z",
768
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
769
769
  id: "2",
770
770
  }, // add folder
771
771
  {
772
772
  index: 2,
773
773
  skip: 0,
774
774
  type: "T_2",
775
- timestamp: "2021-01-05T00:00:00.000Z",
775
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
776
776
  id: "5",
777
777
  }, // 5
778
778
  {
779
779
  index: 3,
780
780
  skip: 0,
781
781
  type: "T_3",
782
- timestamp: "2021-01-06T00:00:00.000Z",
782
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
783
783
  id: "6",
784
784
  }, // 6
785
785
  {
786
786
  index: 4,
787
787
  skip: 0,
788
788
  type: "T_4",
789
- timestamp: "2021-01-07T00:00:00.000Z",
789
+ timestampUtcMs: "2021-01-07T00:00:00.000Z",
790
790
  id: "7",
791
791
  }, // 7
792
792
  {
793
793
  index: 5,
794
794
  skip: 0,
795
795
  type: "T_5",
796
- timestamp: "2021-01-08T00:00:00.000Z",
796
+ timestampUtcMs: "2021-01-08T00:00:00.000Z",
797
797
  id: "8",
798
798
  }, // 8
799
799
  ]);
@@ -802,42 +802,42 @@ describe("merge", () => {
802
802
  index: 0,
803
803
  skip: 0,
804
804
  type: "T_0",
805
- timestamp: "2021-01-01T00:00:00.000Z",
805
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
806
806
  id: "1",
807
807
  }, // add folder
808
808
  {
809
809
  index: 1,
810
810
  skip: 0,
811
811
  type: "T_1",
812
- timestamp: "2021-01-02T00:00:00.000Z",
812
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
813
813
  id: "2",
814
814
  }, // add folder
815
815
  {
816
816
  index: 4,
817
817
  skip: 2,
818
818
  type: "B_4_2",
819
- timestamp: "2021-01-03T00:00:00.000Z",
819
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
820
820
  id: "3",
821
821
  }, // 3
822
822
  {
823
823
  index: 5,
824
824
  skip: 0,
825
825
  type: "B_5",
826
- timestamp: "2021-01-04T00:00:00.000Z",
826
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
827
827
  id: "4",
828
828
  }, // 4
829
829
  {
830
830
  index: 6,
831
831
  skip: 0,
832
832
  type: "T_2",
833
- timestamp: "2021-01-05T00:00:00.000Z",
833
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
834
834
  id: "5",
835
835
  }, // 5
836
836
  {
837
837
  index: 7,
838
838
  skip: 0,
839
839
  type: "T_3",
840
- timestamp: "2021-01-06T00:00:00.000Z",
840
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
841
841
  id: "6",
842
842
  }, // 6
843
843
  ]);
@@ -848,56 +848,56 @@ describe("merge", () => {
848
848
  index: 0,
849
849
  skip: 0,
850
850
  type: "T_0",
851
- timestamp: "2021-01-01T00:00:00.000Z",
851
+ timestampUtcMs: "2021-01-01T00:00:00.000Z",
852
852
  id: "1",
853
853
  }, // add folder
854
854
  {
855
855
  index: 1,
856
856
  skip: 0,
857
857
  type: "T_1",
858
- timestamp: "2021-01-02T00:00:00.000Z",
858
+ timestampUtcMs: "2021-01-02T00:00:00.000Z",
859
859
  id: "2",
860
860
  }, // add folder
861
861
  {
862
862
  index: 8,
863
863
  skip: 6,
864
864
  type: "B_4_2",
865
- timestamp: "2021-01-03T00:00:00.000Z",
865
+ timestampUtcMs: "2021-01-03T00:00:00.000Z",
866
866
  id: "3",
867
867
  }, // 3
868
868
  {
869
869
  index: 9,
870
870
  skip: 0,
871
871
  type: "B_5",
872
- timestamp: "2021-01-04T00:00:00.000Z",
872
+ timestampUtcMs: "2021-01-04T00:00:00.000Z",
873
873
  id: "4",
874
874
  }, // 4
875
875
  {
876
876
  index: 10,
877
877
  skip: 0,
878
878
  type: "T_2",
879
- timestamp: "2021-01-05T00:00:00.000Z",
879
+ timestampUtcMs: "2021-01-05T00:00:00.000Z",
880
880
  id: "5",
881
881
  }, // 5
882
882
  {
883
883
  index: 11,
884
884
  skip: 0,
885
885
  type: "T_3",
886
- timestamp: "2021-01-06T00:00:00.000Z",
886
+ timestampUtcMs: "2021-01-06T00:00:00.000Z",
887
887
  id: "6",
888
888
  }, // 6
889
889
  {
890
890
  index: 12,
891
891
  skip: 0,
892
892
  type: "T_4",
893
- timestamp: "2021-01-07T00:00:00.000Z",
893
+ timestampUtcMs: "2021-01-07T00:00:00.000Z",
894
894
  id: "7",
895
895
  }, // 7
896
896
  {
897
897
  index: 13,
898
898
  skip: 0,
899
899
  type: "T_5",
900
- timestamp: "2021-01-08T00:00:00.000Z",
900
+ timestampUtcMs: "2021-01-08T00:00:00.000Z",
901
901
  id: "8",
902
902
  }, // 8
903
903
  ]);