@marcoappio/marco-config 2.0.465 → 2.0.466

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.
@@ -5,7 +5,7 @@ const MAX_LIMIT = 1000;
5
5
  const DEFAULT_LIMIT = 50;
6
6
  const parseArgs = (args) => {
7
7
  const schema = v.object({
8
- limit: v.optional(v.pipe(v.number(), v.minValue(1), v.maxValue(MAX_LIMIT)), DEFAULT_LIMIT),
8
+ limit: v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(MAX_LIMIT)), DEFAULT_LIMIT),
9
9
  search: v.optional(v.string()),
10
10
  where: v.optional(v.object({
11
11
  emailAddress: v.optional(v.string()),
@@ -7,7 +7,7 @@ const DEFAULT_LIMIT = 50;
7
7
  const parseArgs = (args) => {
8
8
  const schema = v.object({
9
9
  accountId: v.optional(v.string()),
10
- limit: v.optional(v.pipe(v.number(), v.minValue(1), v.maxValue(MAX_LIMIT)), DEFAULT_LIMIT),
10
+ limit: v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(MAX_LIMIT)), DEFAULT_LIMIT),
11
11
  status: v.optional(v.picklist(DRAFT_STATUSES)),
12
12
  });
13
13
  return [v.parse(schema, args[0])];
@@ -5,7 +5,7 @@ const MAX_LIMIT = 1000;
5
5
  const DEFAULT_LIMIT = 50;
6
6
  const parseArgs = (args) => {
7
7
  const schema = v.object({
8
- limit: v.optional(v.pipe(v.number(), v.minValue(1), v.maxValue(MAX_LIMIT)), DEFAULT_LIMIT),
8
+ limit: v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(MAX_LIMIT)), DEFAULT_LIMIT),
9
9
  search: v.optional(v.string()),
10
10
  where: v.optional(v.object({
11
11
  flagged: v.optional(v.boolean()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.465",
3
+ "version": "2.0.466",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",