document-model 1.0.38 → 1.0.40
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.
- package/dist/browser/src/document/actions/types.d.ts +9 -3
- package/dist/browser/src/document/object.d.ts +665 -35
- package/dist/browser/src/document/schema/types.d.ts +0 -1
- package/dist/browser/src/document/types.d.ts +4 -1
- package/dist/browser/src/document-model/index.d.ts +6 -6
- package/dist/node/src/document/actions/types.d.ts +9 -3
- package/dist/node/src/document/object.d.ts +665 -35
- package/dist/node/src/document/schema/types.d.ts +0 -1
- package/dist/node/src/document/types.d.ts +4 -1
- package/dist/node/src/document-model/index.d.ts +6 -6
- package/package.json +1 -1
|
@@ -54,6 +54,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
54
54
|
*/
|
|
55
55
|
get operations(): {
|
|
56
56
|
readonly global: readonly ({
|
|
57
|
+
readonly type: "LOAD_STATE";
|
|
57
58
|
readonly input: {
|
|
58
59
|
readonly operations: number;
|
|
59
60
|
readonly state: {
|
|
@@ -61,51 +62,176 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
61
62
|
readonly name: string;
|
|
62
63
|
};
|
|
63
64
|
};
|
|
64
|
-
readonly type: "LOAD_STATE";
|
|
65
65
|
readonly scope: OperationScope;
|
|
66
|
+
readonly attachments?: readonly {
|
|
67
|
+
readonly data: string;
|
|
68
|
+
readonly mimeType: string;
|
|
69
|
+
readonly extension?: string | null | undefined;
|
|
70
|
+
readonly fileName?: string | null | undefined;
|
|
71
|
+
readonly hash: string;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
readonly context?: {
|
|
74
|
+
readonly signer?: {
|
|
75
|
+
readonly user: {
|
|
76
|
+
readonly address: string;
|
|
77
|
+
readonly networkId: string;
|
|
78
|
+
readonly chainId: number;
|
|
79
|
+
};
|
|
80
|
+
readonly app: {
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly key: string;
|
|
83
|
+
};
|
|
84
|
+
readonly signature: string;
|
|
85
|
+
} | undefined;
|
|
86
|
+
} | undefined;
|
|
66
87
|
readonly index: number;
|
|
67
88
|
readonly timestamp: string;
|
|
68
89
|
readonly hash: string;
|
|
69
90
|
readonly skip: number;
|
|
70
91
|
} | {
|
|
92
|
+
readonly type: "PRUNE";
|
|
71
93
|
readonly input: {
|
|
72
94
|
readonly end?: import("./types").InputMaybe<number>;
|
|
73
95
|
readonly start?: import("./types").InputMaybe<number>;
|
|
74
96
|
};
|
|
75
|
-
readonly type: "PRUNE";
|
|
76
97
|
readonly scope: OperationScope;
|
|
98
|
+
readonly attachments?: readonly {
|
|
99
|
+
readonly data: string;
|
|
100
|
+
readonly mimeType: string;
|
|
101
|
+
readonly extension?: string | null | undefined;
|
|
102
|
+
readonly fileName?: string | null | undefined;
|
|
103
|
+
readonly hash: string;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
readonly context?: {
|
|
106
|
+
readonly signer?: {
|
|
107
|
+
readonly user: {
|
|
108
|
+
readonly address: string;
|
|
109
|
+
readonly networkId: string;
|
|
110
|
+
readonly chainId: number;
|
|
111
|
+
};
|
|
112
|
+
readonly app: {
|
|
113
|
+
readonly name: string;
|
|
114
|
+
readonly key: string;
|
|
115
|
+
};
|
|
116
|
+
readonly signature: string;
|
|
117
|
+
} | undefined;
|
|
118
|
+
} | undefined;
|
|
77
119
|
readonly index: number;
|
|
78
120
|
readonly timestamp: string;
|
|
79
121
|
readonly hash: string;
|
|
80
122
|
readonly skip: number;
|
|
81
123
|
} | {
|
|
82
|
-
readonly input: number;
|
|
83
124
|
readonly type: "REDO";
|
|
125
|
+
readonly input: number;
|
|
84
126
|
readonly scope: OperationScope;
|
|
127
|
+
readonly attachments?: readonly {
|
|
128
|
+
readonly data: string;
|
|
129
|
+
readonly mimeType: string;
|
|
130
|
+
readonly extension?: string | null | undefined;
|
|
131
|
+
readonly fileName?: string | null | undefined;
|
|
132
|
+
readonly hash: string;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
readonly context?: {
|
|
135
|
+
readonly signer?: {
|
|
136
|
+
readonly user: {
|
|
137
|
+
readonly address: string;
|
|
138
|
+
readonly networkId: string;
|
|
139
|
+
readonly chainId: number;
|
|
140
|
+
};
|
|
141
|
+
readonly app: {
|
|
142
|
+
readonly name: string;
|
|
143
|
+
readonly key: string;
|
|
144
|
+
};
|
|
145
|
+
readonly signature: string;
|
|
146
|
+
} | undefined;
|
|
147
|
+
} | undefined;
|
|
85
148
|
readonly index: number;
|
|
86
149
|
readonly timestamp: string;
|
|
87
150
|
readonly hash: string;
|
|
88
151
|
readonly skip: number;
|
|
89
152
|
} | {
|
|
90
|
-
readonly input: string;
|
|
91
153
|
readonly type: "SET_NAME";
|
|
92
|
-
readonly
|
|
154
|
+
readonly input: string;
|
|
155
|
+
readonly scope: OperationScope;
|
|
156
|
+
readonly attachments?: readonly {
|
|
157
|
+
readonly data: string;
|
|
158
|
+
readonly mimeType: string;
|
|
159
|
+
readonly extension?: string | null | undefined;
|
|
160
|
+
readonly fileName?: string | null | undefined;
|
|
161
|
+
readonly hash: string;
|
|
162
|
+
}[] | undefined;
|
|
163
|
+
readonly context?: {
|
|
164
|
+
readonly signer?: {
|
|
165
|
+
readonly user: {
|
|
166
|
+
readonly address: string;
|
|
167
|
+
readonly networkId: string;
|
|
168
|
+
readonly chainId: number;
|
|
169
|
+
};
|
|
170
|
+
readonly app: {
|
|
171
|
+
readonly name: string;
|
|
172
|
+
readonly key: string;
|
|
173
|
+
};
|
|
174
|
+
readonly signature: string;
|
|
175
|
+
} | undefined;
|
|
176
|
+
} | undefined;
|
|
93
177
|
readonly index: number;
|
|
94
178
|
readonly timestamp: string;
|
|
95
179
|
readonly hash: string;
|
|
96
180
|
readonly skip: number;
|
|
97
181
|
} | {
|
|
98
|
-
readonly input: number;
|
|
99
182
|
readonly type: "UNDO";
|
|
183
|
+
readonly input: number;
|
|
100
184
|
readonly scope: OperationScope;
|
|
185
|
+
readonly attachments?: readonly {
|
|
186
|
+
readonly data: string;
|
|
187
|
+
readonly mimeType: string;
|
|
188
|
+
readonly extension?: string | null | undefined;
|
|
189
|
+
readonly fileName?: string | null | undefined;
|
|
190
|
+
readonly hash: string;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
readonly context?: {
|
|
193
|
+
readonly signer?: {
|
|
194
|
+
readonly user: {
|
|
195
|
+
readonly address: string;
|
|
196
|
+
readonly networkId: string;
|
|
197
|
+
readonly chainId: number;
|
|
198
|
+
};
|
|
199
|
+
readonly app: {
|
|
200
|
+
readonly name: string;
|
|
201
|
+
readonly key: string;
|
|
202
|
+
};
|
|
203
|
+
readonly signature: string;
|
|
204
|
+
} | undefined;
|
|
205
|
+
} | undefined;
|
|
101
206
|
readonly index: number;
|
|
102
207
|
readonly timestamp: string;
|
|
103
208
|
readonly hash: string;
|
|
104
209
|
readonly skip: number;
|
|
105
210
|
} | {
|
|
106
|
-
readonly input: unknown;
|
|
107
211
|
readonly type: "NOOP";
|
|
212
|
+
readonly input: unknown;
|
|
108
213
|
readonly scope: OperationScope;
|
|
214
|
+
readonly attachments?: readonly {
|
|
215
|
+
readonly data: string;
|
|
216
|
+
readonly mimeType: string;
|
|
217
|
+
readonly extension?: string | null | undefined;
|
|
218
|
+
readonly fileName?: string | null | undefined;
|
|
219
|
+
readonly hash: string;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
readonly context?: {
|
|
222
|
+
readonly signer?: {
|
|
223
|
+
readonly user: {
|
|
224
|
+
readonly address: string;
|
|
225
|
+
readonly networkId: string;
|
|
226
|
+
readonly chainId: number;
|
|
227
|
+
};
|
|
228
|
+
readonly app: {
|
|
229
|
+
readonly name: string;
|
|
230
|
+
readonly key: string;
|
|
231
|
+
};
|
|
232
|
+
readonly signature: string;
|
|
233
|
+
} | undefined;
|
|
234
|
+
} | undefined;
|
|
109
235
|
readonly index: number;
|
|
110
236
|
readonly timestamp: string;
|
|
111
237
|
readonly hash: string;
|
|
@@ -117,6 +243,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
117
243
|
skip: number;
|
|
118
244
|
}>)[];
|
|
119
245
|
readonly local: readonly ({
|
|
246
|
+
readonly type: "LOAD_STATE";
|
|
120
247
|
readonly input: {
|
|
121
248
|
readonly operations: number;
|
|
122
249
|
readonly state: {
|
|
@@ -124,51 +251,176 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
124
251
|
readonly name: string;
|
|
125
252
|
};
|
|
126
253
|
};
|
|
127
|
-
readonly type: "LOAD_STATE";
|
|
128
254
|
readonly scope: OperationScope;
|
|
255
|
+
readonly attachments?: readonly {
|
|
256
|
+
readonly data: string;
|
|
257
|
+
readonly mimeType: string;
|
|
258
|
+
readonly extension?: string | null | undefined;
|
|
259
|
+
readonly fileName?: string | null | undefined;
|
|
260
|
+
readonly hash: string;
|
|
261
|
+
}[] | undefined;
|
|
262
|
+
readonly context?: {
|
|
263
|
+
readonly signer?: {
|
|
264
|
+
readonly user: {
|
|
265
|
+
readonly address: string;
|
|
266
|
+
readonly networkId: string;
|
|
267
|
+
readonly chainId: number;
|
|
268
|
+
};
|
|
269
|
+
readonly app: {
|
|
270
|
+
readonly name: string;
|
|
271
|
+
readonly key: string;
|
|
272
|
+
};
|
|
273
|
+
readonly signature: string;
|
|
274
|
+
} | undefined;
|
|
275
|
+
} | undefined;
|
|
129
276
|
readonly index: number;
|
|
130
277
|
readonly timestamp: string;
|
|
131
278
|
readonly hash: string;
|
|
132
279
|
readonly skip: number;
|
|
133
280
|
} | {
|
|
281
|
+
readonly type: "PRUNE";
|
|
134
282
|
readonly input: {
|
|
135
283
|
readonly end?: import("./types").InputMaybe<number>;
|
|
136
284
|
readonly start?: import("./types").InputMaybe<number>;
|
|
137
285
|
};
|
|
138
|
-
readonly type: "PRUNE";
|
|
139
286
|
readonly scope: OperationScope;
|
|
287
|
+
readonly attachments?: readonly {
|
|
288
|
+
readonly data: string;
|
|
289
|
+
readonly mimeType: string;
|
|
290
|
+
readonly extension?: string | null | undefined;
|
|
291
|
+
readonly fileName?: string | null | undefined;
|
|
292
|
+
readonly hash: string;
|
|
293
|
+
}[] | undefined;
|
|
294
|
+
readonly context?: {
|
|
295
|
+
readonly signer?: {
|
|
296
|
+
readonly user: {
|
|
297
|
+
readonly address: string;
|
|
298
|
+
readonly networkId: string;
|
|
299
|
+
readonly chainId: number;
|
|
300
|
+
};
|
|
301
|
+
readonly app: {
|
|
302
|
+
readonly name: string;
|
|
303
|
+
readonly key: string;
|
|
304
|
+
};
|
|
305
|
+
readonly signature: string;
|
|
306
|
+
} | undefined;
|
|
307
|
+
} | undefined;
|
|
140
308
|
readonly index: number;
|
|
141
309
|
readonly timestamp: string;
|
|
142
310
|
readonly hash: string;
|
|
143
311
|
readonly skip: number;
|
|
144
312
|
} | {
|
|
145
|
-
readonly input: number;
|
|
146
313
|
readonly type: "REDO";
|
|
314
|
+
readonly input: number;
|
|
147
315
|
readonly scope: OperationScope;
|
|
316
|
+
readonly attachments?: readonly {
|
|
317
|
+
readonly data: string;
|
|
318
|
+
readonly mimeType: string;
|
|
319
|
+
readonly extension?: string | null | undefined;
|
|
320
|
+
readonly fileName?: string | null | undefined;
|
|
321
|
+
readonly hash: string;
|
|
322
|
+
}[] | undefined;
|
|
323
|
+
readonly context?: {
|
|
324
|
+
readonly signer?: {
|
|
325
|
+
readonly user: {
|
|
326
|
+
readonly address: string;
|
|
327
|
+
readonly networkId: string;
|
|
328
|
+
readonly chainId: number;
|
|
329
|
+
};
|
|
330
|
+
readonly app: {
|
|
331
|
+
readonly name: string;
|
|
332
|
+
readonly key: string;
|
|
333
|
+
};
|
|
334
|
+
readonly signature: string;
|
|
335
|
+
} | undefined;
|
|
336
|
+
} | undefined;
|
|
148
337
|
readonly index: number;
|
|
149
338
|
readonly timestamp: string;
|
|
150
339
|
readonly hash: string;
|
|
151
340
|
readonly skip: number;
|
|
152
341
|
} | {
|
|
153
|
-
readonly input: string;
|
|
154
342
|
readonly type: "SET_NAME";
|
|
155
|
-
readonly
|
|
343
|
+
readonly input: string;
|
|
344
|
+
readonly scope: OperationScope;
|
|
345
|
+
readonly attachments?: readonly {
|
|
346
|
+
readonly data: string;
|
|
347
|
+
readonly mimeType: string;
|
|
348
|
+
readonly extension?: string | null | undefined;
|
|
349
|
+
readonly fileName?: string | null | undefined;
|
|
350
|
+
readonly hash: string;
|
|
351
|
+
}[] | undefined;
|
|
352
|
+
readonly context?: {
|
|
353
|
+
readonly signer?: {
|
|
354
|
+
readonly user: {
|
|
355
|
+
readonly address: string;
|
|
356
|
+
readonly networkId: string;
|
|
357
|
+
readonly chainId: number;
|
|
358
|
+
};
|
|
359
|
+
readonly app: {
|
|
360
|
+
readonly name: string;
|
|
361
|
+
readonly key: string;
|
|
362
|
+
};
|
|
363
|
+
readonly signature: string;
|
|
364
|
+
} | undefined;
|
|
365
|
+
} | undefined;
|
|
156
366
|
readonly index: number;
|
|
157
367
|
readonly timestamp: string;
|
|
158
368
|
readonly hash: string;
|
|
159
369
|
readonly skip: number;
|
|
160
370
|
} | {
|
|
161
|
-
readonly input: number;
|
|
162
371
|
readonly type: "UNDO";
|
|
372
|
+
readonly input: number;
|
|
163
373
|
readonly scope: OperationScope;
|
|
374
|
+
readonly attachments?: readonly {
|
|
375
|
+
readonly data: string;
|
|
376
|
+
readonly mimeType: string;
|
|
377
|
+
readonly extension?: string | null | undefined;
|
|
378
|
+
readonly fileName?: string | null | undefined;
|
|
379
|
+
readonly hash: string;
|
|
380
|
+
}[] | undefined;
|
|
381
|
+
readonly context?: {
|
|
382
|
+
readonly signer?: {
|
|
383
|
+
readonly user: {
|
|
384
|
+
readonly address: string;
|
|
385
|
+
readonly networkId: string;
|
|
386
|
+
readonly chainId: number;
|
|
387
|
+
};
|
|
388
|
+
readonly app: {
|
|
389
|
+
readonly name: string;
|
|
390
|
+
readonly key: string;
|
|
391
|
+
};
|
|
392
|
+
readonly signature: string;
|
|
393
|
+
} | undefined;
|
|
394
|
+
} | undefined;
|
|
164
395
|
readonly index: number;
|
|
165
396
|
readonly timestamp: string;
|
|
166
397
|
readonly hash: string;
|
|
167
398
|
readonly skip: number;
|
|
168
399
|
} | {
|
|
169
|
-
readonly input: unknown;
|
|
170
400
|
readonly type: "NOOP";
|
|
401
|
+
readonly input: unknown;
|
|
171
402
|
readonly scope: OperationScope;
|
|
403
|
+
readonly attachments?: readonly {
|
|
404
|
+
readonly data: string;
|
|
405
|
+
readonly mimeType: string;
|
|
406
|
+
readonly extension?: string | null | undefined;
|
|
407
|
+
readonly fileName?: string | null | undefined;
|
|
408
|
+
readonly hash: string;
|
|
409
|
+
}[] | undefined;
|
|
410
|
+
readonly context?: {
|
|
411
|
+
readonly signer?: {
|
|
412
|
+
readonly user: {
|
|
413
|
+
readonly address: string;
|
|
414
|
+
readonly networkId: string;
|
|
415
|
+
readonly chainId: number;
|
|
416
|
+
};
|
|
417
|
+
readonly app: {
|
|
418
|
+
readonly name: string;
|
|
419
|
+
readonly key: string;
|
|
420
|
+
};
|
|
421
|
+
readonly signature: string;
|
|
422
|
+
} | undefined;
|
|
423
|
+
} | undefined;
|
|
172
424
|
readonly index: number;
|
|
173
425
|
readonly timestamp: string;
|
|
174
426
|
readonly hash: string;
|
|
@@ -252,6 +504,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
252
504
|
};
|
|
253
505
|
readonly operations: {
|
|
254
506
|
readonly global: readonly ({
|
|
507
|
+
readonly type: "LOAD_STATE";
|
|
255
508
|
readonly input: {
|
|
256
509
|
readonly operations: number;
|
|
257
510
|
readonly state: {
|
|
@@ -259,51 +512,176 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
259
512
|
readonly name: string;
|
|
260
513
|
};
|
|
261
514
|
};
|
|
262
|
-
readonly type: "LOAD_STATE";
|
|
263
515
|
readonly scope: OperationScope;
|
|
516
|
+
readonly attachments?: readonly {
|
|
517
|
+
readonly data: string;
|
|
518
|
+
readonly mimeType: string;
|
|
519
|
+
readonly extension?: string | null | undefined;
|
|
520
|
+
readonly fileName?: string | null | undefined;
|
|
521
|
+
readonly hash: string;
|
|
522
|
+
}[] | undefined;
|
|
523
|
+
readonly context?: {
|
|
524
|
+
readonly signer?: {
|
|
525
|
+
readonly user: {
|
|
526
|
+
readonly address: string;
|
|
527
|
+
readonly networkId: string;
|
|
528
|
+
readonly chainId: number;
|
|
529
|
+
};
|
|
530
|
+
readonly app: {
|
|
531
|
+
readonly name: string;
|
|
532
|
+
readonly key: string;
|
|
533
|
+
};
|
|
534
|
+
readonly signature: string;
|
|
535
|
+
} | undefined;
|
|
536
|
+
} | undefined;
|
|
264
537
|
readonly index: number;
|
|
265
538
|
readonly timestamp: string;
|
|
266
539
|
readonly hash: string;
|
|
267
540
|
readonly skip: number;
|
|
268
541
|
} | {
|
|
542
|
+
readonly type: "PRUNE";
|
|
269
543
|
readonly input: {
|
|
270
544
|
readonly end?: import("./types").InputMaybe<number>;
|
|
271
545
|
readonly start?: import("./types").InputMaybe<number>;
|
|
272
546
|
};
|
|
273
|
-
readonly type: "PRUNE";
|
|
274
547
|
readonly scope: OperationScope;
|
|
548
|
+
readonly attachments?: readonly {
|
|
549
|
+
readonly data: string;
|
|
550
|
+
readonly mimeType: string;
|
|
551
|
+
readonly extension?: string | null | undefined;
|
|
552
|
+
readonly fileName?: string | null | undefined;
|
|
553
|
+
readonly hash: string;
|
|
554
|
+
}[] | undefined;
|
|
555
|
+
readonly context?: {
|
|
556
|
+
readonly signer?: {
|
|
557
|
+
readonly user: {
|
|
558
|
+
readonly address: string;
|
|
559
|
+
readonly networkId: string;
|
|
560
|
+
readonly chainId: number;
|
|
561
|
+
};
|
|
562
|
+
readonly app: {
|
|
563
|
+
readonly name: string;
|
|
564
|
+
readonly key: string;
|
|
565
|
+
};
|
|
566
|
+
readonly signature: string;
|
|
567
|
+
} | undefined;
|
|
568
|
+
} | undefined;
|
|
275
569
|
readonly index: number;
|
|
276
570
|
readonly timestamp: string;
|
|
277
571
|
readonly hash: string;
|
|
278
572
|
readonly skip: number;
|
|
279
573
|
} | {
|
|
280
|
-
readonly input: number;
|
|
281
574
|
readonly type: "REDO";
|
|
575
|
+
readonly input: number;
|
|
282
576
|
readonly scope: OperationScope;
|
|
577
|
+
readonly attachments?: readonly {
|
|
578
|
+
readonly data: string;
|
|
579
|
+
readonly mimeType: string;
|
|
580
|
+
readonly extension?: string | null | undefined;
|
|
581
|
+
readonly fileName?: string | null | undefined;
|
|
582
|
+
readonly hash: string;
|
|
583
|
+
}[] | undefined;
|
|
584
|
+
readonly context?: {
|
|
585
|
+
readonly signer?: {
|
|
586
|
+
readonly user: {
|
|
587
|
+
readonly address: string;
|
|
588
|
+
readonly networkId: string;
|
|
589
|
+
readonly chainId: number;
|
|
590
|
+
};
|
|
591
|
+
readonly app: {
|
|
592
|
+
readonly name: string;
|
|
593
|
+
readonly key: string;
|
|
594
|
+
};
|
|
595
|
+
readonly signature: string;
|
|
596
|
+
} | undefined;
|
|
597
|
+
} | undefined;
|
|
283
598
|
readonly index: number;
|
|
284
599
|
readonly timestamp: string;
|
|
285
600
|
readonly hash: string;
|
|
286
601
|
readonly skip: number;
|
|
287
602
|
} | {
|
|
288
|
-
readonly input: string;
|
|
289
603
|
readonly type: "SET_NAME";
|
|
290
|
-
readonly
|
|
604
|
+
readonly input: string;
|
|
605
|
+
readonly scope: OperationScope;
|
|
606
|
+
readonly attachments?: readonly {
|
|
607
|
+
readonly data: string;
|
|
608
|
+
readonly mimeType: string;
|
|
609
|
+
readonly extension?: string | null | undefined;
|
|
610
|
+
readonly fileName?: string | null | undefined;
|
|
611
|
+
readonly hash: string;
|
|
612
|
+
}[] | undefined;
|
|
613
|
+
readonly context?: {
|
|
614
|
+
readonly signer?: {
|
|
615
|
+
readonly user: {
|
|
616
|
+
readonly address: string;
|
|
617
|
+
readonly networkId: string;
|
|
618
|
+
readonly chainId: number;
|
|
619
|
+
};
|
|
620
|
+
readonly app: {
|
|
621
|
+
readonly name: string;
|
|
622
|
+
readonly key: string;
|
|
623
|
+
};
|
|
624
|
+
readonly signature: string;
|
|
625
|
+
} | undefined;
|
|
626
|
+
} | undefined;
|
|
291
627
|
readonly index: number;
|
|
292
628
|
readonly timestamp: string;
|
|
293
629
|
readonly hash: string;
|
|
294
630
|
readonly skip: number;
|
|
295
631
|
} | {
|
|
296
|
-
readonly input: number;
|
|
297
632
|
readonly type: "UNDO";
|
|
633
|
+
readonly input: number;
|
|
298
634
|
readonly scope: OperationScope;
|
|
635
|
+
readonly attachments?: readonly {
|
|
636
|
+
readonly data: string;
|
|
637
|
+
readonly mimeType: string;
|
|
638
|
+
readonly extension?: string | null | undefined;
|
|
639
|
+
readonly fileName?: string | null | undefined;
|
|
640
|
+
readonly hash: string;
|
|
641
|
+
}[] | undefined;
|
|
642
|
+
readonly context?: {
|
|
643
|
+
readonly signer?: {
|
|
644
|
+
readonly user: {
|
|
645
|
+
readonly address: string;
|
|
646
|
+
readonly networkId: string;
|
|
647
|
+
readonly chainId: number;
|
|
648
|
+
};
|
|
649
|
+
readonly app: {
|
|
650
|
+
readonly name: string;
|
|
651
|
+
readonly key: string;
|
|
652
|
+
};
|
|
653
|
+
readonly signature: string;
|
|
654
|
+
} | undefined;
|
|
655
|
+
} | undefined;
|
|
299
656
|
readonly index: number;
|
|
300
657
|
readonly timestamp: string;
|
|
301
658
|
readonly hash: string;
|
|
302
659
|
readonly skip: number;
|
|
303
660
|
} | {
|
|
304
|
-
readonly input: unknown;
|
|
305
661
|
readonly type: "NOOP";
|
|
662
|
+
readonly input: unknown;
|
|
306
663
|
readonly scope: OperationScope;
|
|
664
|
+
readonly attachments?: readonly {
|
|
665
|
+
readonly data: string;
|
|
666
|
+
readonly mimeType: string;
|
|
667
|
+
readonly extension?: string | null | undefined;
|
|
668
|
+
readonly fileName?: string | null | undefined;
|
|
669
|
+
readonly hash: string;
|
|
670
|
+
}[] | undefined;
|
|
671
|
+
readonly context?: {
|
|
672
|
+
readonly signer?: {
|
|
673
|
+
readonly user: {
|
|
674
|
+
readonly address: string;
|
|
675
|
+
readonly networkId: string;
|
|
676
|
+
readonly chainId: number;
|
|
677
|
+
};
|
|
678
|
+
readonly app: {
|
|
679
|
+
readonly name: string;
|
|
680
|
+
readonly key: string;
|
|
681
|
+
};
|
|
682
|
+
readonly signature: string;
|
|
683
|
+
} | undefined;
|
|
684
|
+
} | undefined;
|
|
307
685
|
readonly index: number;
|
|
308
686
|
readonly timestamp: string;
|
|
309
687
|
readonly hash: string;
|
|
@@ -315,6 +693,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
315
693
|
skip: number;
|
|
316
694
|
}>)[];
|
|
317
695
|
readonly local: readonly ({
|
|
696
|
+
readonly type: "LOAD_STATE";
|
|
318
697
|
readonly input: {
|
|
319
698
|
readonly operations: number;
|
|
320
699
|
readonly state: {
|
|
@@ -322,51 +701,176 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
322
701
|
readonly name: string;
|
|
323
702
|
};
|
|
324
703
|
};
|
|
325
|
-
readonly type: "LOAD_STATE";
|
|
326
704
|
readonly scope: OperationScope;
|
|
705
|
+
readonly attachments?: readonly {
|
|
706
|
+
readonly data: string;
|
|
707
|
+
readonly mimeType: string;
|
|
708
|
+
readonly extension?: string | null | undefined;
|
|
709
|
+
readonly fileName?: string | null | undefined;
|
|
710
|
+
readonly hash: string;
|
|
711
|
+
}[] | undefined;
|
|
712
|
+
readonly context?: {
|
|
713
|
+
readonly signer?: {
|
|
714
|
+
readonly user: {
|
|
715
|
+
readonly address: string;
|
|
716
|
+
readonly networkId: string;
|
|
717
|
+
readonly chainId: number;
|
|
718
|
+
};
|
|
719
|
+
readonly app: {
|
|
720
|
+
readonly name: string;
|
|
721
|
+
readonly key: string;
|
|
722
|
+
};
|
|
723
|
+
readonly signature: string;
|
|
724
|
+
} | undefined;
|
|
725
|
+
} | undefined;
|
|
327
726
|
readonly index: number;
|
|
328
727
|
readonly timestamp: string;
|
|
329
728
|
readonly hash: string;
|
|
330
729
|
readonly skip: number;
|
|
331
730
|
} | {
|
|
731
|
+
readonly type: "PRUNE";
|
|
332
732
|
readonly input: {
|
|
333
733
|
readonly end?: import("./types").InputMaybe<number>;
|
|
334
734
|
readonly start?: import("./types").InputMaybe<number>;
|
|
335
735
|
};
|
|
336
|
-
readonly type: "PRUNE";
|
|
337
736
|
readonly scope: OperationScope;
|
|
737
|
+
readonly attachments?: readonly {
|
|
738
|
+
readonly data: string;
|
|
739
|
+
readonly mimeType: string;
|
|
740
|
+
readonly extension?: string | null | undefined;
|
|
741
|
+
readonly fileName?: string | null | undefined;
|
|
742
|
+
readonly hash: string;
|
|
743
|
+
}[] | undefined;
|
|
744
|
+
readonly context?: {
|
|
745
|
+
readonly signer?: {
|
|
746
|
+
readonly user: {
|
|
747
|
+
readonly address: string;
|
|
748
|
+
readonly networkId: string;
|
|
749
|
+
readonly chainId: number;
|
|
750
|
+
};
|
|
751
|
+
readonly app: {
|
|
752
|
+
readonly name: string;
|
|
753
|
+
readonly key: string;
|
|
754
|
+
};
|
|
755
|
+
readonly signature: string;
|
|
756
|
+
} | undefined;
|
|
757
|
+
} | undefined;
|
|
338
758
|
readonly index: number;
|
|
339
759
|
readonly timestamp: string;
|
|
340
760
|
readonly hash: string;
|
|
341
761
|
readonly skip: number;
|
|
342
762
|
} | {
|
|
343
|
-
readonly input: number;
|
|
344
763
|
readonly type: "REDO";
|
|
764
|
+
readonly input: number;
|
|
345
765
|
readonly scope: OperationScope;
|
|
766
|
+
readonly attachments?: readonly {
|
|
767
|
+
readonly data: string;
|
|
768
|
+
readonly mimeType: string;
|
|
769
|
+
readonly extension?: string | null | undefined;
|
|
770
|
+
readonly fileName?: string | null | undefined;
|
|
771
|
+
readonly hash: string;
|
|
772
|
+
}[] | undefined;
|
|
773
|
+
readonly context?: {
|
|
774
|
+
readonly signer?: {
|
|
775
|
+
readonly user: {
|
|
776
|
+
readonly address: string;
|
|
777
|
+
readonly networkId: string;
|
|
778
|
+
readonly chainId: number;
|
|
779
|
+
};
|
|
780
|
+
readonly app: {
|
|
781
|
+
readonly name: string;
|
|
782
|
+
readonly key: string;
|
|
783
|
+
};
|
|
784
|
+
readonly signature: string;
|
|
785
|
+
} | undefined;
|
|
786
|
+
} | undefined;
|
|
346
787
|
readonly index: number;
|
|
347
788
|
readonly timestamp: string;
|
|
348
789
|
readonly hash: string;
|
|
349
790
|
readonly skip: number;
|
|
350
791
|
} | {
|
|
351
|
-
readonly input: string;
|
|
352
792
|
readonly type: "SET_NAME";
|
|
353
|
-
readonly
|
|
793
|
+
readonly input: string;
|
|
794
|
+
readonly scope: OperationScope;
|
|
795
|
+
readonly attachments?: readonly {
|
|
796
|
+
readonly data: string;
|
|
797
|
+
readonly mimeType: string;
|
|
798
|
+
readonly extension?: string | null | undefined;
|
|
799
|
+
readonly fileName?: string | null | undefined;
|
|
800
|
+
readonly hash: string;
|
|
801
|
+
}[] | undefined;
|
|
802
|
+
readonly context?: {
|
|
803
|
+
readonly signer?: {
|
|
804
|
+
readonly user: {
|
|
805
|
+
readonly address: string;
|
|
806
|
+
readonly networkId: string;
|
|
807
|
+
readonly chainId: number;
|
|
808
|
+
};
|
|
809
|
+
readonly app: {
|
|
810
|
+
readonly name: string;
|
|
811
|
+
readonly key: string;
|
|
812
|
+
};
|
|
813
|
+
readonly signature: string;
|
|
814
|
+
} | undefined;
|
|
815
|
+
} | undefined;
|
|
354
816
|
readonly index: number;
|
|
355
817
|
readonly timestamp: string;
|
|
356
818
|
readonly hash: string;
|
|
357
819
|
readonly skip: number;
|
|
358
820
|
} | {
|
|
359
|
-
readonly input: number;
|
|
360
821
|
readonly type: "UNDO";
|
|
822
|
+
readonly input: number;
|
|
361
823
|
readonly scope: OperationScope;
|
|
824
|
+
readonly attachments?: readonly {
|
|
825
|
+
readonly data: string;
|
|
826
|
+
readonly mimeType: string;
|
|
827
|
+
readonly extension?: string | null | undefined;
|
|
828
|
+
readonly fileName?: string | null | undefined;
|
|
829
|
+
readonly hash: string;
|
|
830
|
+
}[] | undefined;
|
|
831
|
+
readonly context?: {
|
|
832
|
+
readonly signer?: {
|
|
833
|
+
readonly user: {
|
|
834
|
+
readonly address: string;
|
|
835
|
+
readonly networkId: string;
|
|
836
|
+
readonly chainId: number;
|
|
837
|
+
};
|
|
838
|
+
readonly app: {
|
|
839
|
+
readonly name: string;
|
|
840
|
+
readonly key: string;
|
|
841
|
+
};
|
|
842
|
+
readonly signature: string;
|
|
843
|
+
} | undefined;
|
|
844
|
+
} | undefined;
|
|
362
845
|
readonly index: number;
|
|
363
846
|
readonly timestamp: string;
|
|
364
847
|
readonly hash: string;
|
|
365
848
|
readonly skip: number;
|
|
366
849
|
} | {
|
|
367
|
-
readonly input: unknown;
|
|
368
850
|
readonly type: "NOOP";
|
|
851
|
+
readonly input: unknown;
|
|
369
852
|
readonly scope: OperationScope;
|
|
853
|
+
readonly attachments?: readonly {
|
|
854
|
+
readonly data: string;
|
|
855
|
+
readonly mimeType: string;
|
|
856
|
+
readonly extension?: string | null | undefined;
|
|
857
|
+
readonly fileName?: string | null | undefined;
|
|
858
|
+
readonly hash: string;
|
|
859
|
+
}[] | undefined;
|
|
860
|
+
readonly context?: {
|
|
861
|
+
readonly signer?: {
|
|
862
|
+
readonly user: {
|
|
863
|
+
readonly address: string;
|
|
864
|
+
readonly networkId: string;
|
|
865
|
+
readonly chainId: number;
|
|
866
|
+
};
|
|
867
|
+
readonly app: {
|
|
868
|
+
readonly name: string;
|
|
869
|
+
readonly key: string;
|
|
870
|
+
};
|
|
871
|
+
readonly signature: string;
|
|
872
|
+
} | undefined;
|
|
873
|
+
} | undefined;
|
|
370
874
|
readonly index: number;
|
|
371
875
|
readonly timestamp: string;
|
|
372
876
|
readonly hash: string;
|
|
@@ -401,6 +905,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
401
905
|
};
|
|
402
906
|
};
|
|
403
907
|
readonly clipboard: readonly ({
|
|
908
|
+
readonly type: "LOAD_STATE";
|
|
404
909
|
readonly input: {
|
|
405
910
|
readonly operations: number;
|
|
406
911
|
readonly state: {
|
|
@@ -408,51 +913,176 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
408
913
|
readonly name: string;
|
|
409
914
|
};
|
|
410
915
|
};
|
|
411
|
-
readonly type: "LOAD_STATE";
|
|
412
916
|
readonly scope: OperationScope;
|
|
917
|
+
readonly attachments?: readonly {
|
|
918
|
+
readonly data: string;
|
|
919
|
+
readonly mimeType: string;
|
|
920
|
+
readonly extension?: string | null | undefined;
|
|
921
|
+
readonly fileName?: string | null | undefined;
|
|
922
|
+
readonly hash: string;
|
|
923
|
+
}[] | undefined;
|
|
924
|
+
readonly context?: {
|
|
925
|
+
readonly signer?: {
|
|
926
|
+
readonly user: {
|
|
927
|
+
readonly address: string;
|
|
928
|
+
readonly networkId: string;
|
|
929
|
+
readonly chainId: number;
|
|
930
|
+
};
|
|
931
|
+
readonly app: {
|
|
932
|
+
readonly name: string;
|
|
933
|
+
readonly key: string;
|
|
934
|
+
};
|
|
935
|
+
readonly signature: string;
|
|
936
|
+
} | undefined;
|
|
937
|
+
} | undefined;
|
|
413
938
|
readonly index: number;
|
|
414
939
|
readonly timestamp: string;
|
|
415
940
|
readonly hash: string;
|
|
416
941
|
readonly skip: number;
|
|
417
942
|
} | {
|
|
943
|
+
readonly type: "PRUNE";
|
|
418
944
|
readonly input: {
|
|
419
945
|
readonly end?: import("./types").InputMaybe<number>;
|
|
420
946
|
readonly start?: import("./types").InputMaybe<number>;
|
|
421
947
|
};
|
|
422
|
-
readonly type: "PRUNE";
|
|
423
948
|
readonly scope: OperationScope;
|
|
949
|
+
readonly attachments?: readonly {
|
|
950
|
+
readonly data: string;
|
|
951
|
+
readonly mimeType: string;
|
|
952
|
+
readonly extension?: string | null | undefined;
|
|
953
|
+
readonly fileName?: string | null | undefined;
|
|
954
|
+
readonly hash: string;
|
|
955
|
+
}[] | undefined;
|
|
956
|
+
readonly context?: {
|
|
957
|
+
readonly signer?: {
|
|
958
|
+
readonly user: {
|
|
959
|
+
readonly address: string;
|
|
960
|
+
readonly networkId: string;
|
|
961
|
+
readonly chainId: number;
|
|
962
|
+
};
|
|
963
|
+
readonly app: {
|
|
964
|
+
readonly name: string;
|
|
965
|
+
readonly key: string;
|
|
966
|
+
};
|
|
967
|
+
readonly signature: string;
|
|
968
|
+
} | undefined;
|
|
969
|
+
} | undefined;
|
|
424
970
|
readonly index: number;
|
|
425
971
|
readonly timestamp: string;
|
|
426
972
|
readonly hash: string;
|
|
427
973
|
readonly skip: number;
|
|
428
974
|
} | {
|
|
429
|
-
readonly input: number;
|
|
430
975
|
readonly type: "REDO";
|
|
976
|
+
readonly input: number;
|
|
431
977
|
readonly scope: OperationScope;
|
|
978
|
+
readonly attachments?: readonly {
|
|
979
|
+
readonly data: string;
|
|
980
|
+
readonly mimeType: string;
|
|
981
|
+
readonly extension?: string | null | undefined;
|
|
982
|
+
readonly fileName?: string | null | undefined;
|
|
983
|
+
readonly hash: string;
|
|
984
|
+
}[] | undefined;
|
|
985
|
+
readonly context?: {
|
|
986
|
+
readonly signer?: {
|
|
987
|
+
readonly user: {
|
|
988
|
+
readonly address: string;
|
|
989
|
+
readonly networkId: string;
|
|
990
|
+
readonly chainId: number;
|
|
991
|
+
};
|
|
992
|
+
readonly app: {
|
|
993
|
+
readonly name: string;
|
|
994
|
+
readonly key: string;
|
|
995
|
+
};
|
|
996
|
+
readonly signature: string;
|
|
997
|
+
} | undefined;
|
|
998
|
+
} | undefined;
|
|
432
999
|
readonly index: number;
|
|
433
1000
|
readonly timestamp: string;
|
|
434
1001
|
readonly hash: string;
|
|
435
1002
|
readonly skip: number;
|
|
436
1003
|
} | {
|
|
437
|
-
readonly input: string;
|
|
438
1004
|
readonly type: "SET_NAME";
|
|
439
|
-
readonly
|
|
1005
|
+
readonly input: string;
|
|
1006
|
+
readonly scope: OperationScope;
|
|
1007
|
+
readonly attachments?: readonly {
|
|
1008
|
+
readonly data: string;
|
|
1009
|
+
readonly mimeType: string;
|
|
1010
|
+
readonly extension?: string | null | undefined;
|
|
1011
|
+
readonly fileName?: string | null | undefined;
|
|
1012
|
+
readonly hash: string;
|
|
1013
|
+
}[] | undefined;
|
|
1014
|
+
readonly context?: {
|
|
1015
|
+
readonly signer?: {
|
|
1016
|
+
readonly user: {
|
|
1017
|
+
readonly address: string;
|
|
1018
|
+
readonly networkId: string;
|
|
1019
|
+
readonly chainId: number;
|
|
1020
|
+
};
|
|
1021
|
+
readonly app: {
|
|
1022
|
+
readonly name: string;
|
|
1023
|
+
readonly key: string;
|
|
1024
|
+
};
|
|
1025
|
+
readonly signature: string;
|
|
1026
|
+
} | undefined;
|
|
1027
|
+
} | undefined;
|
|
440
1028
|
readonly index: number;
|
|
441
1029
|
readonly timestamp: string;
|
|
442
1030
|
readonly hash: string;
|
|
443
1031
|
readonly skip: number;
|
|
444
1032
|
} | {
|
|
445
|
-
readonly input: number;
|
|
446
1033
|
readonly type: "UNDO";
|
|
1034
|
+
readonly input: number;
|
|
447
1035
|
readonly scope: OperationScope;
|
|
1036
|
+
readonly attachments?: readonly {
|
|
1037
|
+
readonly data: string;
|
|
1038
|
+
readonly mimeType: string;
|
|
1039
|
+
readonly extension?: string | null | undefined;
|
|
1040
|
+
readonly fileName?: string | null | undefined;
|
|
1041
|
+
readonly hash: string;
|
|
1042
|
+
}[] | undefined;
|
|
1043
|
+
readonly context?: {
|
|
1044
|
+
readonly signer?: {
|
|
1045
|
+
readonly user: {
|
|
1046
|
+
readonly address: string;
|
|
1047
|
+
readonly networkId: string;
|
|
1048
|
+
readonly chainId: number;
|
|
1049
|
+
};
|
|
1050
|
+
readonly app: {
|
|
1051
|
+
readonly name: string;
|
|
1052
|
+
readonly key: string;
|
|
1053
|
+
};
|
|
1054
|
+
readonly signature: string;
|
|
1055
|
+
} | undefined;
|
|
1056
|
+
} | undefined;
|
|
448
1057
|
readonly index: number;
|
|
449
1058
|
readonly timestamp: string;
|
|
450
1059
|
readonly hash: string;
|
|
451
1060
|
readonly skip: number;
|
|
452
1061
|
} | {
|
|
453
|
-
readonly input: unknown;
|
|
454
1062
|
readonly type: "NOOP";
|
|
1063
|
+
readonly input: unknown;
|
|
455
1064
|
readonly scope: OperationScope;
|
|
1065
|
+
readonly attachments?: readonly {
|
|
1066
|
+
readonly data: string;
|
|
1067
|
+
readonly mimeType: string;
|
|
1068
|
+
readonly extension?: string | null | undefined;
|
|
1069
|
+
readonly fileName?: string | null | undefined;
|
|
1070
|
+
readonly hash: string;
|
|
1071
|
+
}[] | undefined;
|
|
1072
|
+
readonly context?: {
|
|
1073
|
+
readonly signer?: {
|
|
1074
|
+
readonly user: {
|
|
1075
|
+
readonly address: string;
|
|
1076
|
+
readonly networkId: string;
|
|
1077
|
+
readonly chainId: number;
|
|
1078
|
+
};
|
|
1079
|
+
readonly app: {
|
|
1080
|
+
readonly name: string;
|
|
1081
|
+
readonly key: string;
|
|
1082
|
+
};
|
|
1083
|
+
readonly signature: string;
|
|
1084
|
+
} | undefined;
|
|
1085
|
+
} | undefined;
|
|
456
1086
|
readonly index: number;
|
|
457
1087
|
readonly timestamp: string;
|
|
458
1088
|
readonly hash: string;
|