@smartlyqofficial/cli 0.1.33 → 0.1.34
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/README.md +42 -0
- package/dist/cli.js +24 -2
- package/dist/index.cjs +24 -2
- package/dist/index.js +24 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -198,6 +198,15 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
198
198
|
| `smartlyq automations list-runs <automation-id> [--query <query>]` | `GET /automations/{automation_id}/runs` | List runs |
|
|
199
199
|
| `smartlyq automations get-run <automation-id> <run-id>` | `GET /automations/{automation_id}/runs/{run_id}` | Get run |
|
|
200
200
|
|
|
201
|
+
### Calendar
|
|
202
|
+
|
|
203
|
+
| Command | Endpoint | Description |
|
|
204
|
+
| --- | --- | --- |
|
|
205
|
+
| `smartlyq calendar list-event-types` | `GET /calendar/event-types` | List booking pages |
|
|
206
|
+
| `smartlyq calendar list-slots [--query <query>]` | `GET /calendar/slots` | List open slots |
|
|
207
|
+
| `smartlyq calendar create-booking --data <json>` | `POST /calendar/bookings` | Take a booking |
|
|
208
|
+
| `smartlyq calendar cancel-booking <id> [--data <json>]` | `POST /calendar/bookings/{id}/cancel` | Cancel a booking |
|
|
209
|
+
|
|
201
210
|
### Chatbot
|
|
202
211
|
|
|
203
212
|
| Command | Endpoint | Description |
|
|
@@ -242,6 +251,18 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
242
251
|
| `smartlyq crm bulk-import-contacts --data <json>` | `POST /contacts/bulk` | Bulk import contacts |
|
|
243
252
|
| `smartlyq crm contact-channels <id>` | `GET /contacts/{id}/channels` | Contact channels |
|
|
244
253
|
|
|
254
|
+
### CRM Companies
|
|
255
|
+
|
|
256
|
+
| Command | Endpoint | Description |
|
|
257
|
+
| --- | --- | --- |
|
|
258
|
+
| `smartlyq crm-companies list [--query <query>]` | `GET /companies` | List companies |
|
|
259
|
+
| `smartlyq crm-companies create --data <json>` | `POST /companies` | Create a company |
|
|
260
|
+
| `smartlyq crm-companies get <id>` | `GET /companies/{id}` | Get a company |
|
|
261
|
+
| `smartlyq crm-companies update <id> --data <json>` | `PATCH /companies/{id}` | Update a company |
|
|
262
|
+
| `smartlyq crm-companies delete <id>` | `DELETE /companies/{id}` | Delete a company |
|
|
263
|
+
| `smartlyq crm-companies link-contact <id> --data <json>` | `POST /companies/{id}/contacts` | Link a contact to a company |
|
|
264
|
+
| `smartlyq crm-companies unlink-contact <id> --data <json>` | `DELETE /companies/{id}/contacts` | Unlink a contact from a company |
|
|
265
|
+
|
|
245
266
|
### CRM Contacts
|
|
246
267
|
|
|
247
268
|
| Command | Endpoint | Description |
|
|
@@ -280,6 +301,27 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
280
301
|
| `smartlyq opportunities delete <id>` | `DELETE /opportunities/{id}` | Delete an opportunity |
|
|
281
302
|
| `smartlyq opportunities update-status <id> --data <json>` | `POST /opportunities/{id}/status` | Update opportunity status |
|
|
282
303
|
|
|
304
|
+
### CRM Tags
|
|
305
|
+
|
|
306
|
+
| Command | Endpoint | Description |
|
|
307
|
+
| --- | --- | --- |
|
|
308
|
+
| `smartlyq crm-tags list` | `GET /tags` | List tags |
|
|
309
|
+
| `smartlyq crm-tags create --data <json>` | `POST /tags` | Create a tag |
|
|
310
|
+
| `smartlyq crm-tags rename --data <json>` | `POST /tags/rename` | Rename a tag |
|
|
311
|
+
| `smartlyq crm-tags merge --data <json>` | `POST /tags/merge` | Merge tags |
|
|
312
|
+
| `smartlyq crm-tags delete --data <json>` | `POST /tags/delete` | Delete a tag |
|
|
313
|
+
|
|
314
|
+
### CRM Tasks
|
|
315
|
+
|
|
316
|
+
| Command | Endpoint | Description |
|
|
317
|
+
| --- | --- | --- |
|
|
318
|
+
| `smartlyq crm-tasks list [--query <query>]` | `GET /tasks` | List tasks |
|
|
319
|
+
| `smartlyq crm-tasks create --data <json>` | `POST /tasks` | Create a task |
|
|
320
|
+
| `smartlyq crm-tasks get <id>` | `GET /tasks/{id}` | Get a task |
|
|
321
|
+
| `smartlyq crm-tasks update <id> --data <json>` | `PATCH /tasks/{id}` | Update a task |
|
|
322
|
+
| `smartlyq crm-tasks delete <id>` | `DELETE /tasks/{id}` | Delete a task |
|
|
323
|
+
| `smartlyq crm-tasks log-time <id> --data <json>` | `POST /tasks/{id}/time` | Log time on a task |
|
|
324
|
+
|
|
283
325
|
### Direct Messages
|
|
284
326
|
|
|
285
327
|
| Command | Endpoint | Description |
|
package/dist/cli.js
CHANGED
|
@@ -91,6 +91,10 @@ var commands = [
|
|
|
91
91
|
{ "resourceKey": "automations", "methodName": "restoreVersion", "kebabMethod": "restore-version", "pathParams": ["automationId", "version"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Restore an automation version", "httpMethod": "POST", "path": "/automations/{automation_id}/versions/{version}/restore" },
|
|
92
92
|
{ "resourceKey": "automations", "methodName": "listRuns", "kebabMethod": "list-runs", "pathParams": ["automationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List runs", "httpMethod": "GET", "path": "/automations/{automation_id}/runs" },
|
|
93
93
|
{ "resourceKey": "automations", "methodName": "getRun", "kebabMethod": "get-run", "pathParams": ["automationId", "runId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get run", "httpMethod": "GET", "path": "/automations/{automation_id}/runs/{run_id}" },
|
|
94
|
+
{ "resourceKey": "calendar", "methodName": "listEventTypes", "kebabMethod": "list-event-types", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List booking pages", "httpMethod": "GET", "path": "/calendar/event-types" },
|
|
95
|
+
{ "resourceKey": "calendar", "methodName": "listSlots", "kebabMethod": "list-slots", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List open slots", "httpMethod": "GET", "path": "/calendar/slots" },
|
|
96
|
+
{ "resourceKey": "calendar", "methodName": "createBooking", "kebabMethod": "create-booking", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Take a booking", "httpMethod": "POST", "path": "/calendar/bookings" },
|
|
97
|
+
{ "resourceKey": "calendar", "methodName": "cancelBooking", "kebabMethod": "cancel-booking", "pathParams": ["id"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Cancel a booking", "httpMethod": "POST", "path": "/calendar/bookings/{id}/cancel" },
|
|
94
98
|
{ "resourceKey": "chatbots", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List chatbots", "httpMethod": "GET", "path": "/chatbots" },
|
|
95
99
|
{ "resourceKey": "chatbots", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create chatbot", "httpMethod": "POST", "path": "/chatbots" },
|
|
96
100
|
{ "resourceKey": "chatbots", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get chatbot", "httpMethod": "GET", "path": "/chatbots/{id}" },
|
|
@@ -115,6 +119,13 @@ var commands = [
|
|
|
115
119
|
{ "resourceKey": "crm", "methodName": "updateCustomField", "kebabMethod": "update-custom-field", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update custom field", "httpMethod": "PATCH", "path": "/custom-fields/{id}" },
|
|
116
120
|
{ "resourceKey": "crm", "methodName": "bulkImportContacts", "kebabMethod": "bulk-import-contacts", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk import contacts", "httpMethod": "POST", "path": "/contacts/bulk" },
|
|
117
121
|
{ "resourceKey": "crm", "methodName": "contactChannels", "kebabMethod": "contact-channels", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Contact channels", "httpMethod": "GET", "path": "/contacts/{id}/channels" },
|
|
122
|
+
{ "resourceKey": "crmCompanies", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List companies", "httpMethod": "GET", "path": "/companies" },
|
|
123
|
+
{ "resourceKey": "crmCompanies", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a company", "httpMethod": "POST", "path": "/companies" },
|
|
124
|
+
{ "resourceKey": "crmCompanies", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a company", "httpMethod": "GET", "path": "/companies/{id}" },
|
|
125
|
+
{ "resourceKey": "crmCompanies", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a company", "httpMethod": "PATCH", "path": "/companies/{id}" },
|
|
126
|
+
{ "resourceKey": "crmCompanies", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a company", "httpMethod": "DELETE", "path": "/companies/{id}" },
|
|
127
|
+
{ "resourceKey": "crmCompanies", "methodName": "linkContact", "kebabMethod": "link-contact", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Link a contact to a company", "httpMethod": "POST", "path": "/companies/{id}/contacts" },
|
|
128
|
+
{ "resourceKey": "crmCompanies", "methodName": "unlinkContact", "kebabMethod": "unlink-contact", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Unlink a contact from a company", "httpMethod": "DELETE", "path": "/companies/{id}/contacts" },
|
|
118
129
|
{ "resourceKey": "contacts", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List contacts", "httpMethod": "GET", "path": "/contacts" },
|
|
119
130
|
{ "resourceKey": "contacts", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create or upsert a contact", "httpMethod": "POST", "path": "/contacts" },
|
|
120
131
|
{ "resourceKey": "contacts", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a contact", "httpMethod": "GET", "path": "/contacts/{id}" },
|
|
@@ -138,6 +149,17 @@ var commands = [
|
|
|
138
149
|
{ "resourceKey": "opportunities", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update an opportunity", "httpMethod": "PATCH", "path": "/opportunities/{id}" },
|
|
139
150
|
{ "resourceKey": "opportunities", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an opportunity", "httpMethod": "DELETE", "path": "/opportunities/{id}" },
|
|
140
151
|
{ "resourceKey": "opportunities", "methodName": "updateStatus", "kebabMethod": "update-status", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update opportunity status", "httpMethod": "POST", "path": "/opportunities/{id}/status" },
|
|
152
|
+
{ "resourceKey": "crmTags", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List tags", "httpMethod": "GET", "path": "/tags" },
|
|
153
|
+
{ "resourceKey": "crmTags", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a tag", "httpMethod": "POST", "path": "/tags" },
|
|
154
|
+
{ "resourceKey": "crmTags", "methodName": "rename", "kebabMethod": "rename", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rename a tag", "httpMethod": "POST", "path": "/tags/rename" },
|
|
155
|
+
{ "resourceKey": "crmTags", "methodName": "merge", "kebabMethod": "merge", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Merge tags", "httpMethod": "POST", "path": "/tags/merge" },
|
|
156
|
+
{ "resourceKey": "crmTags", "methodName": "delete", "kebabMethod": "delete", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Delete a tag", "httpMethod": "POST", "path": "/tags/delete" },
|
|
157
|
+
{ "resourceKey": "crmTasks", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List tasks", "httpMethod": "GET", "path": "/tasks" },
|
|
158
|
+
{ "resourceKey": "crmTasks", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a task", "httpMethod": "POST", "path": "/tasks" },
|
|
159
|
+
{ "resourceKey": "crmTasks", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a task", "httpMethod": "GET", "path": "/tasks/{id}" },
|
|
160
|
+
{ "resourceKey": "crmTasks", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a task", "httpMethod": "PATCH", "path": "/tasks/{id}" },
|
|
161
|
+
{ "resourceKey": "crmTasks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a task", "httpMethod": "DELETE", "path": "/tasks/{id}" },
|
|
162
|
+
{ "resourceKey": "crmTasks", "methodName": "logTime", "kebabMethod": "log-time", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Log time on a task", "httpMethod": "POST", "path": "/tasks/{id}/time" },
|
|
141
163
|
{ "resourceKey": "messages", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List DM conversations", "httpMethod": "GET", "path": "/social/conversations" },
|
|
142
164
|
{ "resourceKey": "messages", "methodName": "list", "kebabMethod": "list", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List messages in a conversation", "httpMethod": "GET", "path": "/social/conversations/{conversation_id}/messages" },
|
|
143
165
|
{ "resourceKey": "messages", "methodName": "send", "kebabMethod": "send", "pathParams": ["conversationId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a direct message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages" },
|
|
@@ -530,7 +552,7 @@ function runLogout() {
|
|
|
530
552
|
// package.json
|
|
531
553
|
var package_default = {
|
|
532
554
|
name: "@smartlyqofficial/cli",
|
|
533
|
-
version: "0.1.
|
|
555
|
+
version: "0.1.34",
|
|
534
556
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
535
557
|
keywords: [
|
|
536
558
|
"smartlyq",
|
|
@@ -580,7 +602,7 @@ var package_default = {
|
|
|
580
602
|
prepublishOnly: "npm run build"
|
|
581
603
|
},
|
|
582
604
|
dependencies: {
|
|
583
|
-
"@smartlyqofficial/node": "^0.1.
|
|
605
|
+
"@smartlyqofficial/node": "^0.1.29",
|
|
584
606
|
commander: "^12.1.0"
|
|
585
607
|
},
|
|
586
608
|
devDependencies: {
|
package/dist/index.cjs
CHANGED
|
@@ -141,6 +141,10 @@ var commands = [
|
|
|
141
141
|
{ "resourceKey": "automations", "methodName": "restoreVersion", "kebabMethod": "restore-version", "pathParams": ["automationId", "version"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Restore an automation version", "httpMethod": "POST", "path": "/automations/{automation_id}/versions/{version}/restore" },
|
|
142
142
|
{ "resourceKey": "automations", "methodName": "listRuns", "kebabMethod": "list-runs", "pathParams": ["automationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List runs", "httpMethod": "GET", "path": "/automations/{automation_id}/runs" },
|
|
143
143
|
{ "resourceKey": "automations", "methodName": "getRun", "kebabMethod": "get-run", "pathParams": ["automationId", "runId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get run", "httpMethod": "GET", "path": "/automations/{automation_id}/runs/{run_id}" },
|
|
144
|
+
{ "resourceKey": "calendar", "methodName": "listEventTypes", "kebabMethod": "list-event-types", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List booking pages", "httpMethod": "GET", "path": "/calendar/event-types" },
|
|
145
|
+
{ "resourceKey": "calendar", "methodName": "listSlots", "kebabMethod": "list-slots", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List open slots", "httpMethod": "GET", "path": "/calendar/slots" },
|
|
146
|
+
{ "resourceKey": "calendar", "methodName": "createBooking", "kebabMethod": "create-booking", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Take a booking", "httpMethod": "POST", "path": "/calendar/bookings" },
|
|
147
|
+
{ "resourceKey": "calendar", "methodName": "cancelBooking", "kebabMethod": "cancel-booking", "pathParams": ["id"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Cancel a booking", "httpMethod": "POST", "path": "/calendar/bookings/{id}/cancel" },
|
|
144
148
|
{ "resourceKey": "chatbots", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List chatbots", "httpMethod": "GET", "path": "/chatbots" },
|
|
145
149
|
{ "resourceKey": "chatbots", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create chatbot", "httpMethod": "POST", "path": "/chatbots" },
|
|
146
150
|
{ "resourceKey": "chatbots", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get chatbot", "httpMethod": "GET", "path": "/chatbots/{id}" },
|
|
@@ -165,6 +169,13 @@ var commands = [
|
|
|
165
169
|
{ "resourceKey": "crm", "methodName": "updateCustomField", "kebabMethod": "update-custom-field", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update custom field", "httpMethod": "PATCH", "path": "/custom-fields/{id}" },
|
|
166
170
|
{ "resourceKey": "crm", "methodName": "bulkImportContacts", "kebabMethod": "bulk-import-contacts", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk import contacts", "httpMethod": "POST", "path": "/contacts/bulk" },
|
|
167
171
|
{ "resourceKey": "crm", "methodName": "contactChannels", "kebabMethod": "contact-channels", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Contact channels", "httpMethod": "GET", "path": "/contacts/{id}/channels" },
|
|
172
|
+
{ "resourceKey": "crmCompanies", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List companies", "httpMethod": "GET", "path": "/companies" },
|
|
173
|
+
{ "resourceKey": "crmCompanies", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a company", "httpMethod": "POST", "path": "/companies" },
|
|
174
|
+
{ "resourceKey": "crmCompanies", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a company", "httpMethod": "GET", "path": "/companies/{id}" },
|
|
175
|
+
{ "resourceKey": "crmCompanies", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a company", "httpMethod": "PATCH", "path": "/companies/{id}" },
|
|
176
|
+
{ "resourceKey": "crmCompanies", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a company", "httpMethod": "DELETE", "path": "/companies/{id}" },
|
|
177
|
+
{ "resourceKey": "crmCompanies", "methodName": "linkContact", "kebabMethod": "link-contact", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Link a contact to a company", "httpMethod": "POST", "path": "/companies/{id}/contacts" },
|
|
178
|
+
{ "resourceKey": "crmCompanies", "methodName": "unlinkContact", "kebabMethod": "unlink-contact", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Unlink a contact from a company", "httpMethod": "DELETE", "path": "/companies/{id}/contacts" },
|
|
168
179
|
{ "resourceKey": "contacts", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List contacts", "httpMethod": "GET", "path": "/contacts" },
|
|
169
180
|
{ "resourceKey": "contacts", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create or upsert a contact", "httpMethod": "POST", "path": "/contacts" },
|
|
170
181
|
{ "resourceKey": "contacts", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a contact", "httpMethod": "GET", "path": "/contacts/{id}" },
|
|
@@ -188,6 +199,17 @@ var commands = [
|
|
|
188
199
|
{ "resourceKey": "opportunities", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update an opportunity", "httpMethod": "PATCH", "path": "/opportunities/{id}" },
|
|
189
200
|
{ "resourceKey": "opportunities", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an opportunity", "httpMethod": "DELETE", "path": "/opportunities/{id}" },
|
|
190
201
|
{ "resourceKey": "opportunities", "methodName": "updateStatus", "kebabMethod": "update-status", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update opportunity status", "httpMethod": "POST", "path": "/opportunities/{id}/status" },
|
|
202
|
+
{ "resourceKey": "crmTags", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List tags", "httpMethod": "GET", "path": "/tags" },
|
|
203
|
+
{ "resourceKey": "crmTags", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a tag", "httpMethod": "POST", "path": "/tags" },
|
|
204
|
+
{ "resourceKey": "crmTags", "methodName": "rename", "kebabMethod": "rename", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rename a tag", "httpMethod": "POST", "path": "/tags/rename" },
|
|
205
|
+
{ "resourceKey": "crmTags", "methodName": "merge", "kebabMethod": "merge", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Merge tags", "httpMethod": "POST", "path": "/tags/merge" },
|
|
206
|
+
{ "resourceKey": "crmTags", "methodName": "delete", "kebabMethod": "delete", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Delete a tag", "httpMethod": "POST", "path": "/tags/delete" },
|
|
207
|
+
{ "resourceKey": "crmTasks", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List tasks", "httpMethod": "GET", "path": "/tasks" },
|
|
208
|
+
{ "resourceKey": "crmTasks", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a task", "httpMethod": "POST", "path": "/tasks" },
|
|
209
|
+
{ "resourceKey": "crmTasks", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a task", "httpMethod": "GET", "path": "/tasks/{id}" },
|
|
210
|
+
{ "resourceKey": "crmTasks", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a task", "httpMethod": "PATCH", "path": "/tasks/{id}" },
|
|
211
|
+
{ "resourceKey": "crmTasks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a task", "httpMethod": "DELETE", "path": "/tasks/{id}" },
|
|
212
|
+
{ "resourceKey": "crmTasks", "methodName": "logTime", "kebabMethod": "log-time", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Log time on a task", "httpMethod": "POST", "path": "/tasks/{id}/time" },
|
|
191
213
|
{ "resourceKey": "messages", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List DM conversations", "httpMethod": "GET", "path": "/social/conversations" },
|
|
192
214
|
{ "resourceKey": "messages", "methodName": "list", "kebabMethod": "list", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List messages in a conversation", "httpMethod": "GET", "path": "/social/conversations/{conversation_id}/messages" },
|
|
193
215
|
{ "resourceKey": "messages", "methodName": "send", "kebabMethod": "send", "pathParams": ["conversationId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a direct message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages" },
|
|
@@ -580,7 +602,7 @@ function runLogout() {
|
|
|
580
602
|
// package.json
|
|
581
603
|
var package_default = {
|
|
582
604
|
name: "@smartlyqofficial/cli",
|
|
583
|
-
version: "0.1.
|
|
605
|
+
version: "0.1.34",
|
|
584
606
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
585
607
|
keywords: [
|
|
586
608
|
"smartlyq",
|
|
@@ -630,7 +652,7 @@ var package_default = {
|
|
|
630
652
|
prepublishOnly: "npm run build"
|
|
631
653
|
},
|
|
632
654
|
dependencies: {
|
|
633
|
-
"@smartlyqofficial/node": "^0.1.
|
|
655
|
+
"@smartlyqofficial/node": "^0.1.29",
|
|
634
656
|
commander: "^12.1.0"
|
|
635
657
|
},
|
|
636
658
|
devDependencies: {
|
package/dist/index.js
CHANGED
|
@@ -89,6 +89,10 @@ var commands = [
|
|
|
89
89
|
{ "resourceKey": "automations", "methodName": "restoreVersion", "kebabMethod": "restore-version", "pathParams": ["automationId", "version"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Restore an automation version", "httpMethod": "POST", "path": "/automations/{automation_id}/versions/{version}/restore" },
|
|
90
90
|
{ "resourceKey": "automations", "methodName": "listRuns", "kebabMethod": "list-runs", "pathParams": ["automationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List runs", "httpMethod": "GET", "path": "/automations/{automation_id}/runs" },
|
|
91
91
|
{ "resourceKey": "automations", "methodName": "getRun", "kebabMethod": "get-run", "pathParams": ["automationId", "runId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get run", "httpMethod": "GET", "path": "/automations/{automation_id}/runs/{run_id}" },
|
|
92
|
+
{ "resourceKey": "calendar", "methodName": "listEventTypes", "kebabMethod": "list-event-types", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List booking pages", "httpMethod": "GET", "path": "/calendar/event-types" },
|
|
93
|
+
{ "resourceKey": "calendar", "methodName": "listSlots", "kebabMethod": "list-slots", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List open slots", "httpMethod": "GET", "path": "/calendar/slots" },
|
|
94
|
+
{ "resourceKey": "calendar", "methodName": "createBooking", "kebabMethod": "create-booking", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Take a booking", "httpMethod": "POST", "path": "/calendar/bookings" },
|
|
95
|
+
{ "resourceKey": "calendar", "methodName": "cancelBooking", "kebabMethod": "cancel-booking", "pathParams": ["id"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Cancel a booking", "httpMethod": "POST", "path": "/calendar/bookings/{id}/cancel" },
|
|
92
96
|
{ "resourceKey": "chatbots", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List chatbots", "httpMethod": "GET", "path": "/chatbots" },
|
|
93
97
|
{ "resourceKey": "chatbots", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create chatbot", "httpMethod": "POST", "path": "/chatbots" },
|
|
94
98
|
{ "resourceKey": "chatbots", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get chatbot", "httpMethod": "GET", "path": "/chatbots/{id}" },
|
|
@@ -113,6 +117,13 @@ var commands = [
|
|
|
113
117
|
{ "resourceKey": "crm", "methodName": "updateCustomField", "kebabMethod": "update-custom-field", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update custom field", "httpMethod": "PATCH", "path": "/custom-fields/{id}" },
|
|
114
118
|
{ "resourceKey": "crm", "methodName": "bulkImportContacts", "kebabMethod": "bulk-import-contacts", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk import contacts", "httpMethod": "POST", "path": "/contacts/bulk" },
|
|
115
119
|
{ "resourceKey": "crm", "methodName": "contactChannels", "kebabMethod": "contact-channels", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Contact channels", "httpMethod": "GET", "path": "/contacts/{id}/channels" },
|
|
120
|
+
{ "resourceKey": "crmCompanies", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List companies", "httpMethod": "GET", "path": "/companies" },
|
|
121
|
+
{ "resourceKey": "crmCompanies", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a company", "httpMethod": "POST", "path": "/companies" },
|
|
122
|
+
{ "resourceKey": "crmCompanies", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a company", "httpMethod": "GET", "path": "/companies/{id}" },
|
|
123
|
+
{ "resourceKey": "crmCompanies", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a company", "httpMethod": "PATCH", "path": "/companies/{id}" },
|
|
124
|
+
{ "resourceKey": "crmCompanies", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a company", "httpMethod": "DELETE", "path": "/companies/{id}" },
|
|
125
|
+
{ "resourceKey": "crmCompanies", "methodName": "linkContact", "kebabMethod": "link-contact", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Link a contact to a company", "httpMethod": "POST", "path": "/companies/{id}/contacts" },
|
|
126
|
+
{ "resourceKey": "crmCompanies", "methodName": "unlinkContact", "kebabMethod": "unlink-contact", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Unlink a contact from a company", "httpMethod": "DELETE", "path": "/companies/{id}/contacts" },
|
|
116
127
|
{ "resourceKey": "contacts", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List contacts", "httpMethod": "GET", "path": "/contacts" },
|
|
117
128
|
{ "resourceKey": "contacts", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create or upsert a contact", "httpMethod": "POST", "path": "/contacts" },
|
|
118
129
|
{ "resourceKey": "contacts", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a contact", "httpMethod": "GET", "path": "/contacts/{id}" },
|
|
@@ -136,6 +147,17 @@ var commands = [
|
|
|
136
147
|
{ "resourceKey": "opportunities", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update an opportunity", "httpMethod": "PATCH", "path": "/opportunities/{id}" },
|
|
137
148
|
{ "resourceKey": "opportunities", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an opportunity", "httpMethod": "DELETE", "path": "/opportunities/{id}" },
|
|
138
149
|
{ "resourceKey": "opportunities", "methodName": "updateStatus", "kebabMethod": "update-status", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update opportunity status", "httpMethod": "POST", "path": "/opportunities/{id}/status" },
|
|
150
|
+
{ "resourceKey": "crmTags", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List tags", "httpMethod": "GET", "path": "/tags" },
|
|
151
|
+
{ "resourceKey": "crmTags", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a tag", "httpMethod": "POST", "path": "/tags" },
|
|
152
|
+
{ "resourceKey": "crmTags", "methodName": "rename", "kebabMethod": "rename", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rename a tag", "httpMethod": "POST", "path": "/tags/rename" },
|
|
153
|
+
{ "resourceKey": "crmTags", "methodName": "merge", "kebabMethod": "merge", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Merge tags", "httpMethod": "POST", "path": "/tags/merge" },
|
|
154
|
+
{ "resourceKey": "crmTags", "methodName": "delete", "kebabMethod": "delete", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Delete a tag", "httpMethod": "POST", "path": "/tags/delete" },
|
|
155
|
+
{ "resourceKey": "crmTasks", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List tasks", "httpMethod": "GET", "path": "/tasks" },
|
|
156
|
+
{ "resourceKey": "crmTasks", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a task", "httpMethod": "POST", "path": "/tasks" },
|
|
157
|
+
{ "resourceKey": "crmTasks", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a task", "httpMethod": "GET", "path": "/tasks/{id}" },
|
|
158
|
+
{ "resourceKey": "crmTasks", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a task", "httpMethod": "PATCH", "path": "/tasks/{id}" },
|
|
159
|
+
{ "resourceKey": "crmTasks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a task", "httpMethod": "DELETE", "path": "/tasks/{id}" },
|
|
160
|
+
{ "resourceKey": "crmTasks", "methodName": "logTime", "kebabMethod": "log-time", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Log time on a task", "httpMethod": "POST", "path": "/tasks/{id}/time" },
|
|
139
161
|
{ "resourceKey": "messages", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List DM conversations", "httpMethod": "GET", "path": "/social/conversations" },
|
|
140
162
|
{ "resourceKey": "messages", "methodName": "list", "kebabMethod": "list", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List messages in a conversation", "httpMethod": "GET", "path": "/social/conversations/{conversation_id}/messages" },
|
|
141
163
|
{ "resourceKey": "messages", "methodName": "send", "kebabMethod": "send", "pathParams": ["conversationId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a direct message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages" },
|
|
@@ -528,7 +550,7 @@ function runLogout() {
|
|
|
528
550
|
// package.json
|
|
529
551
|
var package_default = {
|
|
530
552
|
name: "@smartlyqofficial/cli",
|
|
531
|
-
version: "0.1.
|
|
553
|
+
version: "0.1.34",
|
|
532
554
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
533
555
|
keywords: [
|
|
534
556
|
"smartlyq",
|
|
@@ -578,7 +600,7 @@ var package_default = {
|
|
|
578
600
|
prepublishOnly: "npm run build"
|
|
579
601
|
},
|
|
580
602
|
dependencies: {
|
|
581
|
-
"@smartlyqofficial/node": "^0.1.
|
|
603
|
+
"@smartlyqofficial/node": "^0.1.29",
|
|
582
604
|
commander: "^12.1.0"
|
|
583
605
|
},
|
|
584
606
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartlyqofficial/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"smartlyq",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"prepublishOnly": "npm run build"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@smartlyqofficial/node": "^0.1.
|
|
53
|
+
"@smartlyqofficial/node": "^0.1.29",
|
|
54
54
|
"commander": "^12.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|