@smartlyqofficial/node 0.1.51 → 0.1.52
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 +11 -0
- package/dist/index.cjs +32 -0
- package/dist/index.d.cts +435 -1
- package/dist/index.d.ts +435 -1
- package/dist/index.js +31 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -351,6 +351,17 @@ All methods below are available on the client. Full request/response documentati
|
|
|
351
351
|
| `sq.messages.reactTo(conversationId, messageId, body)` | `POST /social/conversations/{conversation_id}/messages/{message_id}/reactions` | React to a message |
|
|
352
352
|
| `sq.messages.removeReaction(conversationId, messageId)` | `DELETE /social/conversations/{conversation_id}/messages/{message_id}/reactions` | Remove a message reaction |
|
|
353
353
|
|
|
354
|
+
### Edits
|
|
355
|
+
|
|
356
|
+
| Method | Endpoint | Description |
|
|
357
|
+
| --- | --- | --- |
|
|
358
|
+
| `sq.edits.list(query?)` | `GET /edits` | List video edits |
|
|
359
|
+
| `sq.edits.create(body)` | `POST /edits` | Create a video edit |
|
|
360
|
+
| `sq.edits.listOptions()` | `GET /edits/options` | List edit options |
|
|
361
|
+
| `sq.edits.get(uid)` | `GET /edits/{uid}` | Get a video edit |
|
|
362
|
+
| `sq.edits.update(uid, body)` | `PATCH /edits/{uid}` | Update a video edit |
|
|
363
|
+
| `sq.edits.export(uid)` | `POST /edits/{uid}/export` | Export a video edit |
|
|
364
|
+
|
|
354
365
|
### Images
|
|
355
366
|
|
|
356
367
|
| Method | Endpoint | Description |
|
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
CrmTagsResource: () => CrmTagsResource,
|
|
39
39
|
CrmTasksResource: () => CrmTasksResource,
|
|
40
40
|
CustomFieldsResource: () => CustomFieldsResource,
|
|
41
|
+
EditsResource: () => EditsResource,
|
|
41
42
|
ImagesResource: () => ImagesResource,
|
|
42
43
|
JobsResource: () => JobsResource,
|
|
43
44
|
LogsResource: () => LogsResource,
|
|
@@ -926,6 +927,35 @@ var MessagesResource = class {
|
|
|
926
927
|
return this._client.request("DELETE", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}/reactions`, { options });
|
|
927
928
|
}
|
|
928
929
|
};
|
|
930
|
+
var EditsResource = class {
|
|
931
|
+
constructor(_client) {
|
|
932
|
+
this._client = _client;
|
|
933
|
+
}
|
|
934
|
+
/** List video edits `GET /edits` */
|
|
935
|
+
list(query, options) {
|
|
936
|
+
return this._client.request("GET", "/edits", { query, options });
|
|
937
|
+
}
|
|
938
|
+
/** Create a video edit `POST /edits` */
|
|
939
|
+
create(body, options) {
|
|
940
|
+
return this._client.request("POST", "/edits", { body, options });
|
|
941
|
+
}
|
|
942
|
+
/** List edit options `GET /edits/options` */
|
|
943
|
+
listOptions(options) {
|
|
944
|
+
return this._client.request("GET", "/edits/options", { options });
|
|
945
|
+
}
|
|
946
|
+
/** Get a video edit `GET /edits/{uid}` */
|
|
947
|
+
get(uid, options) {
|
|
948
|
+
return this._client.request("GET", `/edits/${encodeURIComponent(uid)}`, { options });
|
|
949
|
+
}
|
|
950
|
+
/** Update a video edit `PATCH /edits/{uid}` */
|
|
951
|
+
update(uid, body, options) {
|
|
952
|
+
return this._client.request("PATCH", `/edits/${encodeURIComponent(uid)}`, { body, options });
|
|
953
|
+
}
|
|
954
|
+
/** Export a video edit `POST /edits/{uid}/export` */
|
|
955
|
+
export(uid, options) {
|
|
956
|
+
return this._client.request("POST", `/edits/${encodeURIComponent(uid)}/export`, { options });
|
|
957
|
+
}
|
|
958
|
+
};
|
|
929
959
|
var ImagesResource = class {
|
|
930
960
|
constructor(_client) {
|
|
931
961
|
this._client = _client;
|
|
@@ -1926,6 +1956,7 @@ function createResources(client) {
|
|
|
1926
1956
|
crmTags: new CrmTagsResource(client),
|
|
1927
1957
|
crmTasks: new CrmTasksResource(client),
|
|
1928
1958
|
messages: new MessagesResource(client),
|
|
1959
|
+
edits: new EditsResource(client),
|
|
1929
1960
|
images: new ImagesResource(client),
|
|
1930
1961
|
jobs: new JobsResource(client),
|
|
1931
1962
|
logs: new LogsResource(client),
|
|
@@ -1973,6 +2004,7 @@ var index_default = SmartlyQ;
|
|
|
1973
2004
|
CrmTagsResource,
|
|
1974
2005
|
CrmTasksResource,
|
|
1975
2006
|
CustomFieldsResource,
|
|
2007
|
+
EditsResource,
|
|
1976
2008
|
ImagesResource,
|
|
1977
2009
|
JobsResource,
|
|
1978
2010
|
LogsResource,
|