@remit/electrodb-entities 0.0.24 → 0.0.25

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/index.cjs CHANGED
@@ -892,22 +892,23 @@ exports.Mailbox = {
892
892
  },
893
893
  syncStatus: {
894
894
  type: ["synced", "pending", "failed", "deleting"],
895
- required: false
896
- },
897
- cursorState: {
898
- type: ["normal", "cursor_invalid", "rebuilding"],
899
895
  required: true,
900
- default: "normal"
896
+ default: "synced"
901
897
  },
902
- oldPath: {
898
+ pendingPath: {
903
899
  type: "string",
904
900
  required: false,
905
901
  validate: value => {
906
902
  if (typeof value === "string" && value.length > 512)
907
- throw new Error("'oldPath' must be at most 512 characters");
903
+ throw new Error("'pendingPath' must be at most 512 characters");
908
904
  return true;
909
905
  }
910
906
  },
907
+ cursorState: {
908
+ type: ["normal", "cursor_invalid", "rebuilding"],
909
+ required: true,
910
+ default: "normal"
911
+ },
911
912
  specialUse: {
912
913
  type: "set",
913
914
  items: ["All", "Archive", "Drafts", "Flagged", "Junk", "Sent", "Trash", "Important"],
package/index.d.cts CHANGED
@@ -632,18 +632,19 @@ export declare const Mailbox: {
632
632
  };
633
633
  readonly syncStatus: {
634
634
  readonly type: readonly ["synced", "pending", "failed", "deleting"];
635
+ readonly required: true;
636
+ readonly default: "synced";
637
+ };
638
+ readonly pendingPath: {
639
+ readonly type: "string";
635
640
  readonly required: false;
641
+ readonly validate: (value: unknown) => boolean;
636
642
  };
637
643
  readonly cursorState: {
638
644
  readonly type: readonly ["normal", "cursor_invalid", "rebuilding"];
639
645
  readonly required: true;
640
646
  readonly default: "normal";
641
647
  };
642
- readonly oldPath: {
643
- readonly type: "string";
644
- readonly required: false;
645
- readonly validate: (value: unknown) => boolean;
646
- };
647
648
  readonly specialUse: {
648
649
  readonly type: "set";
649
650
  readonly items: readonly ["All", "Archive", "Drafts", "Flagged", "Junk", "Sent", "Trash", "Important"];
package/index.d.mts CHANGED
@@ -632,18 +632,19 @@ export declare const Mailbox: {
632
632
  };
633
633
  readonly syncStatus: {
634
634
  readonly type: readonly ["synced", "pending", "failed", "deleting"];
635
+ readonly required: true;
636
+ readonly default: "synced";
637
+ };
638
+ readonly pendingPath: {
639
+ readonly type: "string";
635
640
  readonly required: false;
641
+ readonly validate: (value: unknown) => boolean;
636
642
  };
637
643
  readonly cursorState: {
638
644
  readonly type: readonly ["normal", "cursor_invalid", "rebuilding"];
639
645
  readonly required: true;
640
646
  readonly default: "normal";
641
647
  };
642
- readonly oldPath: {
643
- readonly type: "string";
644
- readonly required: false;
645
- readonly validate: (value: unknown) => boolean;
646
- };
647
648
  readonly specialUse: {
648
649
  readonly type: "set";
649
650
  readonly items: readonly ["All", "Archive", "Drafts", "Flagged", "Junk", "Sent", "Trash", "Important"];
package/index.d.ts CHANGED
@@ -632,18 +632,19 @@ export declare const Mailbox: {
632
632
  };
633
633
  readonly syncStatus: {
634
634
  readonly type: readonly ["synced", "pending", "failed", "deleting"];
635
+ readonly required: true;
636
+ readonly default: "synced";
637
+ };
638
+ readonly pendingPath: {
639
+ readonly type: "string";
635
640
  readonly required: false;
641
+ readonly validate: (value: unknown) => boolean;
636
642
  };
637
643
  readonly cursorState: {
638
644
  readonly type: readonly ["normal", "cursor_invalid", "rebuilding"];
639
645
  readonly required: true;
640
646
  readonly default: "normal";
641
647
  };
642
- readonly oldPath: {
643
- readonly type: "string";
644
- readonly required: false;
645
- readonly validate: (value: unknown) => boolean;
646
- };
647
648
  readonly specialUse: {
648
649
  readonly type: "set";
649
650
  readonly items: readonly ["All", "Archive", "Drafts", "Flagged", "Junk", "Sent", "Trash", "Important"];
package/index.mjs CHANGED
@@ -889,22 +889,23 @@ export const Mailbox = {
889
889
  },
890
890
  syncStatus: {
891
891
  type: ["synced", "pending", "failed", "deleting"],
892
- required: false
893
- },
894
- cursorState: {
895
- type: ["normal", "cursor_invalid", "rebuilding"],
896
892
  required: true,
897
- default: "normal"
893
+ default: "synced"
898
894
  },
899
- oldPath: {
895
+ pendingPath: {
900
896
  type: "string",
901
897
  required: false,
902
898
  validate: value => {
903
899
  if (typeof value === "string" && value.length > 512)
904
- throw new Error("'oldPath' must be at most 512 characters");
900
+ throw new Error("'pendingPath' must be at most 512 characters");
905
901
  return true;
906
902
  }
907
903
  },
904
+ cursorState: {
905
+ type: ["normal", "cursor_invalid", "rebuilding"],
906
+ required: true,
907
+ default: "normal"
908
+ },
908
909
  specialUse: {
909
910
  type: "set",
910
911
  items: ["All", "Archive", "Drafts", "Flagged", "Junk", "Sent", "Trash", "Important"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/electrodb-entities",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "ElectroDB entities",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",