zinkee 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zinkee",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "CLI for Zinkee API v2",
5
5
  "type": "module",
6
6
  "bin": {
@@ -472,7 +472,7 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
472
472
  "sort": [
473
473
  { "field": "id", "direction": "DESC" }
474
474
  ],
475
- "page": { "offset": 0, "size": 10 }
475
+ "page": { "offset": 0, "limit": 10 }
476
476
  }`,
477
477
  response: `{
478
478
  "records": [
@@ -509,7 +509,20 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
509
509
  { "field": "amount", "direction": "DESC" },
510
510
  { "field": "contact-name", "direction": "ASC" }
511
511
  ],
512
- "page": { "offset": 0, "size": 25 }
512
+ "page": { "offset": 0, "limit": 25 }
513
+ }`,
514
+ },
515
+ {
516
+ description: "Filter by status with a free-text search term.",
517
+ command:
518
+ `zinkee --json records query contacts --select id,contact-name,status --where "status in OPEN" --limit 25 --raw '{"search":{"term":"garcia"}}'`,
519
+ raw: `{
520
+ "select": ["id", "contact-name", "status"],
521
+ "where": [
522
+ { "field": "status", "op": "in", "value": ["OPEN"] }
523
+ ],
524
+ "search": { "term": "garcia" },
525
+ "page": { "offset": 0, "limit": 25 }
513
526
  }`,
514
527
  },
515
528
  {
@@ -521,7 +534,7 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
521
534
  "where": [
522
535
  { "field": "contact-name", "op": "contains", "value": "Lovelace" }
523
536
  ],
524
- "page": { "offset": 0, "size": 50 }
537
+ "page": { "offset": 0, "limit": 50 }
525
538
  }`,
526
539
  },
527
540
  {