@startanaicompany/crm 1.0.2 → 1.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/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -99,7 +99,7 @@ const program = new Command();
|
|
|
99
99
|
program
|
|
100
100
|
.name('saac_crm')
|
|
101
101
|
.description('AI-first CRM CLI — manage leads and API keys')
|
|
102
|
-
.version('1.0.
|
|
102
|
+
.version('1.0.3')
|
|
103
103
|
.option('--api-key <key>', 'API key (overrides SAAC_CRM_API_KEY env and config)')
|
|
104
104
|
.option('--url <url>', 'API base URL (overrides config)');
|
|
105
105
|
|
|
@@ -337,6 +337,10 @@ leadsCmd
|
|
|
337
337
|
.option('--tag <tag>', 'Filter by tag — repeatable, AND logic', (v, prev) => prev.concat([v]), [])
|
|
338
338
|
.option('--api-key-id <id>', 'Filter by the API key ID that created the lead')
|
|
339
339
|
.option('--self', 'Filter leads created by the current API key (shorthand for --api-key-id self)')
|
|
340
|
+
.option('--created-after <date>', 'Filter leads created after this ISO8601 date (e.g. 2026-01-01T00:00:00Z)')
|
|
341
|
+
.option('--created-before <date>', 'Filter leads created before this ISO8601 date')
|
|
342
|
+
.option('--updated-after <date>', 'Filter leads updated after this ISO8601 date')
|
|
343
|
+
.option('--updated-before <date>', 'Filter leads updated before this ISO8601 date')
|
|
340
344
|
.option('--page <n>', 'Page number', '1')
|
|
341
345
|
.option('--per-page <n>', 'Results per page', '20')
|
|
342
346
|
.action(async (opts) => {
|
|
@@ -349,6 +353,10 @@ leadsCmd
|
|
|
349
353
|
...(opts.email && { email: opts.email }),
|
|
350
354
|
...(opts.company && { company: opts.company }),
|
|
351
355
|
...(apiKeyIdFilter && { api_key_id: apiKeyIdFilter }),
|
|
356
|
+
...(opts.createdAfter && { created_after: opts.createdAfter }),
|
|
357
|
+
...(opts.createdBefore && { created_before: opts.createdBefore }),
|
|
358
|
+
...(opts.updatedAfter && { updated_after: opts.updatedAfter }),
|
|
359
|
+
...(opts.updatedBefore && { updated_before: opts.updatedBefore }),
|
|
352
360
|
page: opts.page,
|
|
353
361
|
per_page: opts.perPage
|
|
354
362
|
};
|