rmapi-js 12.0.1 → 12.0.3
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/raw.d.ts +7 -4
- package/dist/raw.js +10 -5
- package/dist/rmapi-js.esm.min.js +9 -9
- package/package.json +2 -1
package/dist/raw.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import "core-js/modules/es.uint8-array.from-hex.js";
|
|
2
|
+
import "core-js/modules/es.uint8-array.to-base64.js";
|
|
3
|
+
import "core-js/modules/es.uint8-array.to-hex.js";
|
|
1
4
|
import { type RmPageV5 } from "./rm5.js";
|
|
2
5
|
import { type RmScene } from "./rm6.js";
|
|
3
6
|
/**
|
|
@@ -377,7 +380,7 @@ export interface Metadata {
|
|
|
377
380
|
/** creation time, a string of the epoch timestamp */
|
|
378
381
|
createdTime?: string;
|
|
379
382
|
/** [speculative] true if the item has been actually deleted */
|
|
380
|
-
deleted?: boolean;
|
|
383
|
+
deleted?: boolean | null;
|
|
381
384
|
/** the last modify time, the string of the epoch timestamp */
|
|
382
385
|
lastModified?: string;
|
|
383
386
|
/** the last opened epoch timestamp, isn't defined for CollectionType */
|
|
@@ -385,9 +388,9 @@ export interface Metadata {
|
|
|
385
388
|
/** the last page opened, isn't defined for CollectionType, starts at 0*/
|
|
386
389
|
lastOpenedPage?: number;
|
|
387
390
|
/** [speculative] true if the metadata has been modified */
|
|
388
|
-
metadatamodified?: boolean;
|
|
391
|
+
metadatamodified?: boolean | null;
|
|
389
392
|
/** [speculative] true if the item has been modified */
|
|
390
|
-
modified?: boolean;
|
|
393
|
+
modified?: boolean | null;
|
|
391
394
|
/**
|
|
392
395
|
* the id of the parent collection
|
|
393
396
|
*
|
|
@@ -398,7 +401,7 @@ export interface Metadata {
|
|
|
398
401
|
/** true of the item is starred */
|
|
399
402
|
pinned: boolean;
|
|
400
403
|
/** [unknown] */
|
|
401
|
-
synced?: boolean;
|
|
404
|
+
synced?: boolean | null;
|
|
402
405
|
/**
|
|
403
406
|
* the type of item this corresponds to
|
|
404
407
|
*
|
package/dist/raw.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// core-js installs these only when the runtime lacks them, so node 26+ keeps
|
|
2
|
+
// its native implementations untouched
|
|
3
|
+
import "core-js/modules/es.uint8-array.from-hex.js";
|
|
4
|
+
import "core-js/modules/es.uint8-array.to-base64.js";
|
|
5
|
+
import "core-js/modules/es.uint8-array.to-hex.js";
|
|
6
|
+
import CRC32C from "crc-32/crc32c.js";
|
|
2
7
|
import { z } from "zod";
|
|
3
8
|
import { ValidationError } from "./error.js";
|
|
4
9
|
import { HEADER_LENGTH, parseV5, serializeRm, VERSION_PREFIX, } from "./rm5.js";
|
|
@@ -209,10 +214,10 @@ const metadata = z
|
|
|
209
214
|
lastOpened: z.string().optional(),
|
|
210
215
|
lastOpenedPage: z.number().int().optional(),
|
|
211
216
|
createdTime: z.string().optional(),
|
|
212
|
-
deleted: z.boolean().
|
|
213
|
-
metadatamodified: z.boolean().
|
|
214
|
-
modified: z.boolean().
|
|
215
|
-
synced: z.boolean().
|
|
217
|
+
deleted: z.boolean().nullish(),
|
|
218
|
+
metadatamodified: z.boolean().nullish(),
|
|
219
|
+
modified: z.boolean().nullish(),
|
|
220
|
+
synced: z.boolean().nullish(),
|
|
216
221
|
version: z.number().int().nonnegative().optional(),
|
|
217
222
|
new: z.boolean().optional(),
|
|
218
223
|
source: z.string().optional(),
|