@remit/electrodb-entities 0.0.1 → 0.0.2

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
@@ -561,13 +561,11 @@ exports.Mailbox = {
561
561
  }
562
562
  },
563
563
  highestModseq: {
564
- type: "number",
564
+ type: "string",
565
565
  required: true,
566
566
  validate: value => {
567
- if (typeof value === "number" && value < 0)
568
- throw new Error("'highestModseq' must be at least 0");
569
- if (typeof value === "number" && !Number.isInteger(value))
570
- throw new Error("'highestModseq' must be an integer");
567
+ if (typeof value === "string" && value.length > 32)
568
+ throw new Error("'highestModseq' must be at most 32 characters");
571
569
  return true;
572
570
  }
573
571
  },
package/index.d.cts CHANGED
@@ -421,7 +421,7 @@ export declare const Mailbox: {
421
421
  readonly validate: (value: unknown) => boolean;
422
422
  };
423
423
  readonly highestModseq: {
424
- readonly type: "number";
424
+ readonly type: "string";
425
425
  readonly required: true;
426
426
  readonly validate: (value: unknown) => boolean;
427
427
  };
package/index.d.mts CHANGED
@@ -421,7 +421,7 @@ export declare const Mailbox: {
421
421
  readonly validate: (value: unknown) => boolean;
422
422
  };
423
423
  readonly highestModseq: {
424
- readonly type: "number";
424
+ readonly type: "string";
425
425
  readonly required: true;
426
426
  readonly validate: (value: unknown) => boolean;
427
427
  };
package/index.d.ts CHANGED
@@ -421,7 +421,7 @@ export declare const Mailbox: {
421
421
  readonly validate: (value: unknown) => boolean;
422
422
  };
423
423
  readonly highestModseq: {
424
- readonly type: "number";
424
+ readonly type: "string";
425
425
  readonly required: true;
426
426
  readonly validate: (value: unknown) => boolean;
427
427
  };
package/index.mjs CHANGED
@@ -558,13 +558,11 @@ export const Mailbox = {
558
558
  }
559
559
  },
560
560
  highestModseq: {
561
- type: "number",
561
+ type: "string",
562
562
  required: true,
563
563
  validate: value => {
564
- if (typeof value === "number" && value < 0)
565
- throw new Error("'highestModseq' must be at least 0");
566
- if (typeof value === "number" && !Number.isInteger(value))
567
- throw new Error("'highestModseq' must be an integer");
564
+ if (typeof value === "string" && value.length > 32)
565
+ throw new Error("'highestModseq' must be at most 32 characters");
568
566
  return true;
569
567
  }
570
568
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/electrodb-entities",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "ElectroDB entities",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",